@burdenoff/microfe-movethewheels 2026.1108.5 → 2026.1109.2
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 +62 -61
- package/dist/MoveTheWheelsRoutes.js +6 -7
- package/dist/_virtual/_rolldown/runtime.js +4 -5
- package/dist/components/AssignmentSuggestions.js +18 -19
- package/dist/components/CarbonFootprintPanel.js +17 -18
- package/dist/components/CarrierRecommendationDialog.js +1 -2
- package/dist/components/ContainerEvidencePicker.js +15 -16
- package/dist/components/CustomerDeliveryUpdatesFields.js +1 -2
- package/dist/components/CustomerNotificationSettingsCard.js +43 -44
- package/dist/components/CustomerPicker.js +24 -26
- package/dist/components/DataTable.js +169 -170
- package/dist/components/DispatchDecisionCard.js +24 -25
- package/dist/components/DocumentsCard.js +54 -55
- package/dist/components/EntityCombobox.js +21 -22
- package/dist/components/EpodCaptureForm.js +113 -117
- package/dist/components/ExportStatusBanner.js +6 -7
- package/dist/components/FleetAlertsPanel.js +28 -29
- package/dist/components/ForecastModelsPanel.js +2 -3
- package/dist/components/FormError.js +2 -3
- package/dist/components/FreeTimeAgreementForm.js +54 -55
- package/dist/components/GlassPanel.js +1 -2
- package/dist/components/InventoryCoverPanel.js +68 -69
- package/dist/components/MetricCard.js +1 -2
- package/dist/components/Notice.js +3 -4
- package/dist/components/OrderItemRow.js +21 -22
- package/dist/components/PageLayout.js +1 -2
- package/dist/components/ProofOfDeliveryCard.js +19 -20
- package/dist/components/ReturnInstructionForm.js +28 -29
- package/dist/components/ReuseControls.js +1 -2
- package/dist/components/ReusePermissionForm.js +23 -24
- package/dist/components/ReuseProposalForm.js +168 -169
- package/dist/components/ReuseSourceFields.js +1 -2
- package/dist/components/ScenarioPlanningPanel.js +80 -81
- package/dist/components/ShipmentDecisionPanel.js +59 -60
- package/dist/components/ShipmentRiskDialog.js +32 -33
- package/dist/components/ShippingQuoteResults.js +32 -33
- package/dist/components/SignaturePad.js +7 -8
- package/dist/components/StatusBadge.js +1 -2
- package/dist/components/StockActionDialogs.js +77 -78
- package/dist/components/TrackingAlertList.js +26 -27
- package/dist/components/UpcomingDemandPanel.js +24 -25
- package/dist/components/VehicleServiceCard.js +34 -39
- package/dist/components/charts/ChartShell.js +1 -2
- package/dist/components/charts/Sparkline.js +14 -15
- package/dist/components/charts/StatusDonut.js +12 -13
- package/dist/components/charts/TrendChart.js +29 -30
- package/dist/components/charts/VolumeBar.js +21 -22
- package/dist/components/charts/chartTokens.js +1 -2
- package/dist/components/charts/index.js +7 -6
- package/dist/components/consolidation/ConsolidationHistory.js +1 -2
- package/dist/components/consolidation/ConsolidationLotEditor.js +22 -23
- package/dist/components/consolidation/ConsolidationManifestWorkbench.js +30 -31
- package/dist/components/consolidation/ConsolidationPlanForm.js +44 -45
- package/dist/components/consolidation/ConsolidationPlanWorkbench.js +106 -105
- package/dist/components/consolidation/ConsolidationReportForm.js +17 -18
- package/dist/components/consolidation/ConsolidationReportsWorkbench.js +35 -36
- package/dist/components/consolidation/ConsolidationSummary.js +1 -2
- package/dist/components/consolidation/OriginalConsolidationHistory.js +15 -16
- package/dist/components/freight-cost/FreightCommercialEditor.js +39 -40
- package/dist/components/freight-cost/FreightCommercialFactEditor.js +2 -3
- package/dist/components/freight-cost/FreightCommercialHistory.js +8 -9
- package/dist/components/freight-cost/FreightDraftForm.js +45 -47
- package/dist/components/freight-cost/FreightFields.js +1 -2
- package/dist/components/freight-cost/FreightFxEditor.js +1 -2
- package/dist/components/freight-cost/FreightHistory.js +32 -33
- package/dist/components/freight-cost/FreightLineEditor.js +1 -2
- package/dist/components/freight-cost/FreightScopeEditor.js +1 -2
- package/dist/components/freight-cost/FreightTotals.js +1 -2
- package/dist/components/freight-invoice/InvoiceForm.js +41 -42
- package/dist/components/freight-invoice/InvoiceResults.js +42 -43
- package/dist/components/freight-invoice/InvoiceReviewPanel.js +26 -28
- package/dist/components/freight-invoice/InvoiceReviewQueue.js +9 -10
- package/dist/components/index.js +22 -21
- package/dist/components/logistics-procedure/ProcedureDecisionForm.js +24 -25
- package/dist/components/logistics-procedure/ProcedureFields.js +1 -2
- package/dist/components/logistics-procedure/ProcedureHistory.js +29 -30
- package/dist/components/logistics-procedure/ProcedurePolicyForm.js +27 -28
- package/dist/components/logistics-procedure/ProcedurePolicyWorkbench.js +23 -24
- package/dist/components/logistics-procedure/ProcedureReviewWorkbench.js +43 -44
- package/dist/components/logistics-procedure/ProcedureRunWorkbench.js +30 -31
- package/dist/components/logistics-procedure/ProcedureSubjectPicker.js +1 -2
- package/dist/components/maps/LogisticsMap.js +12 -13
- package/dist/components/maps/MapCanvas.js +31 -29
- package/dist/components/maps/RouteMap.js +6 -7
- package/dist/components/maps/TrackingMap.js +17 -18
- package/dist/components/maps/index.js +6 -5
- package/dist/components/maps/leaflet-setup.js +2 -3
- package/dist/components/marketplace/MarketplaceDialogs.js +26 -28
- package/dist/components/pallet-preview/PalletPreviewResults.js +2 -3
- package/dist/components/pending-pick/PendingPickDraft.js +1 -2
- package/dist/components/pending-pick/PendingPickHistory.js +32 -33
- package/dist/components/pending-pick/PickCapture.js +1 -2
- package/dist/components/pending-pick/PickLineSelection.js +1 -2
- package/dist/components/pending-pick/PickReviewPanel.js +53 -53
- package/dist/components/stock-binding/StockAssessmentDraft.js +5 -6
- package/dist/components/stock-binding/StockAssessmentHistory.js +18 -19
- package/dist/components/stock-binding/StockAssessmentSummary.js +1 -2
- package/dist/components/stock-binding/StockFactForm.js +5 -6
- package/dist/components/stock-observation/StockIssueForm.js +1 -2
- package/dist/components/stock-observation/StockIssueHistory.js +1 -2
- package/dist/components/stock-observation/StockIssueReadPanel.js +1 -2
- package/dist/components/trip-utilization/TripReportForm.js +6 -7
- package/dist/components/trip-utilization/TripReportHistory.js +15 -16
- package/dist/components/trip-utilization/TripReportSummary.js +1 -2
- package/dist/components/trip-utilization/TripSegmentFields.js +14 -15
- package/dist/components/ui.js +1 -2
- package/dist/constants/index.js +1 -2
- package/dist/generated/wspace-operations.d.ts +91 -0
- package/dist/generated/wspace-types.d.ts +43259 -9124
- package/dist/hooks/index.js +12 -11
- package/dist/hooks/useAnalytics.js +3 -3
- package/dist/hooks/useCarrierIntegrations.js +1 -2
- package/dist/hooks/useConsolidationAction.js +12 -13
- package/dist/hooks/useConsumedFuelPreview.js +17 -18
- package/dist/hooks/useContainerCondition.js +4 -3
- package/dist/hooks/useContainerLifecycle.js +70 -80
- package/dist/hooks/useCustomers.js +17 -16
- package/dist/hooks/useDebouncedValue.js +1 -2
- package/dist/hooks/useDemandForecast.js +1 -2
- package/dist/hooks/useDispatchPlan.js +3 -3
- package/dist/hooks/useDocumentExtractions.js +12 -13
- package/dist/hooks/useDriverDay.js +3 -4
- package/dist/hooks/useEmptyReuseAction.js +1 -2
- package/dist/hooks/useEntityDocuments.js +25 -27
- package/dist/hooks/useEntityExport.js +7 -8
- package/dist/hooks/useEntityImport.js +1 -2
- package/dist/hooks/useEpod.js +79 -81
- package/dist/hooks/useFleet.js +70 -74
- package/dist/hooks/useFleetIntelligence.js +1 -2
- package/dist/hooks/useForecastModelChoices.js +1 -2
- package/dist/hooks/useFreightRecoveryAction.js +15 -16
- package/dist/hooks/useInventory.js +59 -60
- package/dist/hooks/useInventoryCoverPlan.js +2 -3
- package/dist/hooks/useInvoiceComparisonRecovery.js +52 -52
- package/dist/hooks/useInvoiceReviewPermissions.js +1 -2
- package/dist/hooks/useMarketplace.js +1 -2
- package/dist/hooks/useMultiModalShipments.js +1 -2
- package/dist/hooks/useOrderDispatch.js +6 -5
- package/dist/hooks/useOrders.js +44 -46
- package/dist/hooks/usePalletPreview.js +19 -20
- package/dist/hooks/useProcedureAction.js +24 -25
- package/dist/hooks/useProcedureSelection.js +6 -7
- package/dist/hooks/useRefetchOnLeaveEdit.js +1 -2
- package/dist/hooks/useReuseRecoveryAction.js +26 -27
- package/dist/hooks/useRoutes.js +100 -63
- package/dist/hooks/useScenarioPlanning.js +20 -21
- package/dist/hooks/useShipmentDecision.js +1 -2
- package/dist/hooks/useShipmentPermissions.js +1 -2
- package/dist/hooks/useShipmentRisk.js +12 -14
- package/dist/hooks/useShipmentStatusAuthority.js +7 -5
- package/dist/hooks/useShippingCarriers.js +1 -2
- package/dist/hooks/useTracking.js +53 -52
- package/dist/hooks/useTrackingEventQuality.js +26 -27
- package/dist/index.js +15 -15
- package/dist/movethewheels/hooks/useRoutes.d.ts +3 -2
- package/dist/movethewheels/store/movethewheelsStore.d.ts +1 -1
- package/dist/movethewheels/types/index.d.ts +21 -1
- package/dist/node_modules/@react-leaflet/core/lib/attribution.js +1 -2
- package/dist/node_modules/@react-leaflet/core/lib/component.js +1 -2
- package/dist/node_modules/@react-leaflet/core/lib/context.js +0 -1
- package/dist/node_modules/@react-leaflet/core/lib/div-overlay.js +1 -2
- package/dist/node_modules/@react-leaflet/core/lib/element.js +1 -2
- package/dist/node_modules/@react-leaflet/core/lib/events.js +1 -2
- package/dist/node_modules/@react-leaflet/core/lib/generic.js +9 -6
- package/dist/node_modules/@react-leaflet/core/lib/grid-layer.js +1 -2
- package/dist/node_modules/@react-leaflet/core/lib/layer.js +1 -2
- package/dist/node_modules/@react-leaflet/core/lib/pane.js +1 -2
- package/dist/node_modules/@react-leaflet/core/lib/path.js +6 -7
- package/dist/node_modules/clsx/dist/clsx.js +8 -7
- package/dist/node_modules/d3-array/dist/d3-array.js +202 -0
- package/dist/node_modules/d3-color/dist/d3-color.js +386 -0
- package/dist/node_modules/d3-format/dist/d3-format.js +184 -0
- package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js +183 -0
- package/dist/node_modules/d3-path/{src/path.js → dist/d3-path.js} +38 -13
- package/dist/node_modules/d3-scale/dist/d3-scale.js +620 -0
- package/dist/node_modules/d3-shape/dist/d3-shape.js +899 -0
- package/dist/node_modules/d3-time/dist/d3-time.js +239 -0
- package/dist/node_modules/d3-time-format/{src/locale.js → dist/d3-time-format.js} +228 -173
- package/dist/node_modules/decimal.js-light/decimal.js +33 -30
- package/dist/node_modules/eventemitter3/index.js +2 -3
- package/dist/node_modules/fast-equals/dist/es/index.js +89 -72
- package/dist/node_modules/leaflet/dist/leaflet-src.js +114 -167
- package/dist/node_modules/lodash/_DataView.js +4 -5
- package/dist/node_modules/lodash/_Hash.js +1 -2
- package/dist/node_modules/lodash/_ListCache.js +1 -2
- package/dist/node_modules/lodash/_Map.js +4 -5
- package/dist/node_modules/lodash/_MapCache.js +1 -2
- package/dist/node_modules/lodash/_Promise.js +4 -5
- package/dist/node_modules/lodash/_Set.js +4 -5
- package/dist/node_modules/lodash/_SetCache.js +1 -2
- package/dist/node_modules/lodash/_Stack.js +1 -2
- package/dist/node_modules/lodash/_Symbol.js +1 -2
- package/dist/node_modules/lodash/_Uint8Array.js +1 -2
- package/dist/node_modules/lodash/_WeakMap.js +4 -5
- package/dist/node_modules/lodash/_apply.js +1 -2
- package/dist/node_modules/lodash/_arrayEvery.js +1 -2
- package/dist/node_modules/lodash/_arrayFilter.js +1 -2
- package/dist/node_modules/lodash/_arrayIncludes.js +1 -2
- package/dist/node_modules/lodash/_arrayIncludesWith.js +1 -2
- package/dist/node_modules/lodash/_arrayLikeKeys.js +5 -6
- package/dist/node_modules/lodash/_arrayMap.js +1 -2
- package/dist/node_modules/lodash/_arrayPush.js +1 -2
- package/dist/node_modules/lodash/_arraySome.js +1 -2
- package/dist/node_modules/lodash/_asciiToArray.js +1 -2
- package/dist/node_modules/lodash/_assocIndexOf.js +1 -2
- package/dist/node_modules/lodash/_baseAssignValue.js +1 -2
- package/dist/node_modules/lodash/_baseEach.js +1 -2
- package/dist/node_modules/lodash/_baseEvery.js +1 -2
- package/dist/node_modules/lodash/_baseExtremum.js +1 -2
- package/dist/node_modules/lodash/_baseFindIndex.js +1 -2
- package/dist/node_modules/lodash/_baseFlatten.js +1 -2
- package/dist/node_modules/lodash/_baseFor.js +1 -2
- package/dist/node_modules/lodash/_baseForOwn.js +4 -5
- package/dist/node_modules/lodash/_baseGet.js +1 -2
- package/dist/node_modules/lodash/_baseGetAllKeys.js +4 -5
- package/dist/node_modules/lodash/_baseGetTag.js +1 -2
- package/dist/node_modules/lodash/_baseGt.js +1 -2
- package/dist/node_modules/lodash/_baseHasIn.js +1 -2
- package/dist/node_modules/lodash/_baseIndexOf.js +1 -2
- package/dist/node_modules/lodash/_baseIsArguments.js +1 -2
- package/dist/node_modules/lodash/_baseIsEqual.js +4 -5
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +10 -11
- package/dist/node_modules/lodash/_baseIsMatch.js +1 -2
- package/dist/node_modules/lodash/_baseIsNaN.js +1 -2
- package/dist/node_modules/lodash/_baseIsNative.js +5 -6
- package/dist/node_modules/lodash/_baseIsTypedArray.js +4 -5
- package/dist/node_modules/lodash/_baseIteratee.js +6 -7
- package/dist/node_modules/lodash/_baseKeys.js +1 -2
- package/dist/node_modules/lodash/_baseLt.js +1 -2
- package/dist/node_modules/lodash/_baseMap.js +4 -5
- package/dist/node_modules/lodash/_baseMatches.js +1 -2
- package/dist/node_modules/lodash/_baseMatchesProperty.js +7 -8
- package/dist/node_modules/lodash/_baseOrderBy.js +11 -12
- package/dist/node_modules/lodash/_baseProperty.js +1 -2
- package/dist/node_modules/lodash/_basePropertyDeep.js +1 -2
- package/dist/node_modules/lodash/_baseRange.js +1 -2
- package/dist/node_modules/lodash/_baseRest.js +1 -2
- package/dist/node_modules/lodash/_baseSetToString.js +5 -6
- package/dist/node_modules/lodash/_baseSlice.js +1 -2
- package/dist/node_modules/lodash/_baseSome.js +1 -2
- package/dist/node_modules/lodash/_baseSortBy.js +1 -2
- package/dist/node_modules/lodash/_baseTimes.js +1 -2
- package/dist/node_modules/lodash/_baseToString.js +6 -7
- package/dist/node_modules/lodash/_baseTrim.js +1 -2
- package/dist/node_modules/lodash/_baseUnary.js +1 -2
- package/dist/node_modules/lodash/_baseUniq.js +7 -8
- package/dist/node_modules/lodash/_cacheHas.js +1 -2
- package/dist/node_modules/lodash/_castPath.js +1 -2
- package/dist/node_modules/lodash/_castSlice.js +1 -2
- package/dist/node_modules/lodash/_compareAscending.js +1 -2
- package/dist/node_modules/lodash/_compareMultiple.js +1 -2
- package/dist/node_modules/lodash/_coreJsData.js +1 -2
- package/dist/node_modules/lodash/_createBaseEach.js +1 -2
- package/dist/node_modules/lodash/_createBaseFor.js +1 -2
- package/dist/node_modules/lodash/_createCaseFirst.js +6 -7
- package/dist/node_modules/lodash/_createFind.js +5 -6
- package/dist/node_modules/lodash/_createRange.js +4 -5
- package/dist/node_modules/lodash/_createSet.js +6 -7
- package/dist/node_modules/lodash/_defineProperty.js +1 -2
- package/dist/node_modules/lodash/_equalArrays.js +1 -2
- package/dist/node_modules/lodash/_equalByTag.js +5 -6
- package/dist/node_modules/lodash/_equalObjects.js +1 -2
- package/dist/node_modules/lodash/_freeGlobal.js +1 -2
- package/dist/node_modules/lodash/_getAllKeys.js +1 -2
- package/dist/node_modules/lodash/_getMapData.js +1 -2
- package/dist/node_modules/lodash/_getMatchData.js +4 -5
- package/dist/node_modules/lodash/_getNative.js +1 -2
- package/dist/node_modules/lodash/_getPrototype.js +1 -2
- package/dist/node_modules/lodash/_getRawTag.js +1 -2
- package/dist/node_modules/lodash/_getSymbols.js +1 -2
- package/dist/node_modules/lodash/_getTag.js +9 -10
- package/dist/node_modules/lodash/_getValue.js +1 -2
- package/dist/node_modules/lodash/_hasPath.js +8 -9
- package/dist/node_modules/lodash/_hasUnicode.js +1 -2
- package/dist/node_modules/lodash/_hashClear.js +1 -2
- package/dist/node_modules/lodash/_hashDelete.js +1 -2
- package/dist/node_modules/lodash/_hashGet.js +1 -2
- package/dist/node_modules/lodash/_hashHas.js +1 -2
- package/dist/node_modules/lodash/_hashSet.js +1 -2
- package/dist/node_modules/lodash/_isFlattenable.js +5 -6
- package/dist/node_modules/lodash/_isIndex.js +6 -7
- package/dist/node_modules/lodash/_isIterateeCall.js +5 -6
- package/dist/node_modules/lodash/_isKey.js +1 -2
- package/dist/node_modules/lodash/_isKeyable.js +1 -2
- package/dist/node_modules/lodash/_isMasked.js +1 -2
- package/dist/node_modules/lodash/_isPrototype.js +1 -2
- package/dist/node_modules/lodash/_isStrictComparable.js +1 -2
- package/dist/node_modules/lodash/_listCacheClear.js +1 -2
- package/dist/node_modules/lodash/_listCacheDelete.js +1 -2
- package/dist/node_modules/lodash/_listCacheGet.js +1 -2
- package/dist/node_modules/lodash/_listCacheHas.js +1 -2
- package/dist/node_modules/lodash/_listCacheSet.js +1 -2
- package/dist/node_modules/lodash/_mapCacheClear.js +1 -2
- package/dist/node_modules/lodash/_mapCacheDelete.js +1 -2
- package/dist/node_modules/lodash/_mapCacheGet.js +1 -2
- package/dist/node_modules/lodash/_mapCacheHas.js +1 -2
- package/dist/node_modules/lodash/_mapCacheSet.js +1 -2
- package/dist/node_modules/lodash/_mapToArray.js +1 -2
- package/dist/node_modules/lodash/_matchesStrictComparable.js +2 -3
- package/dist/node_modules/lodash/_memoizeCapped.js +1 -2
- package/dist/node_modules/lodash/_nativeCreate.js +1 -2
- package/dist/node_modules/lodash/_nativeKeys.js +1 -2
- package/dist/node_modules/lodash/_nodeUtil.js +1 -2
- package/dist/node_modules/lodash/_objectToString.js +1 -2
- package/dist/node_modules/lodash/_overArg.js +1 -2
- package/dist/node_modules/lodash/_overRest.js +1 -2
- package/dist/node_modules/lodash/_root.js +1 -2
- package/dist/node_modules/lodash/_setCacheAdd.js +4 -6
- package/dist/node_modules/lodash/_setCacheHas.js +1 -2
- package/dist/node_modules/lodash/_setToArray.js +1 -2
- package/dist/node_modules/lodash/_setToString.js +1 -2
- package/dist/node_modules/lodash/_shortOut.js +8 -9
- package/dist/node_modules/lodash/_stackClear.js +1 -2
- package/dist/node_modules/lodash/_stackDelete.js +1 -2
- package/dist/node_modules/lodash/_stackGet.js +1 -2
- package/dist/node_modules/lodash/_stackHas.js +1 -2
- package/dist/node_modules/lodash/_stackSet.js +1 -2
- package/dist/node_modules/lodash/_strictIndexOf.js +1 -2
- package/dist/node_modules/lodash/_stringToArray.js +4 -5
- package/dist/node_modules/lodash/_stringToPath.js +1 -2
- package/dist/node_modules/lodash/_toKey.js +2 -3
- package/dist/node_modules/lodash/_toSource.js +1 -2
- package/dist/node_modules/lodash/_trimmedEndIndex.js +1 -2
- package/dist/node_modules/lodash/_unicodeToArray.js +1 -2
- package/dist/node_modules/lodash/constant.js +1 -2
- package/dist/node_modules/lodash/debounce.js +1 -2
- package/dist/node_modules/lodash/eq.js +1 -2
- package/dist/node_modules/lodash/every.js +7 -8
- package/dist/node_modules/lodash/find.js +1 -2
- package/dist/node_modules/lodash/findIndex.js +4 -5
- package/dist/node_modules/lodash/flatMap.js +1 -2
- package/dist/node_modules/lodash/get.js +1 -2
- package/dist/node_modules/lodash/hasIn.js +1 -2
- package/dist/node_modules/lodash/identity.js +1 -2
- package/dist/node_modules/lodash/isArguments.js +4 -5
- package/dist/node_modules/lodash/isArray.js +1 -2
- package/dist/node_modules/lodash/isArrayLike.js +1 -2
- package/dist/node_modules/lodash/isBoolean.js +1 -2
- package/dist/node_modules/lodash/isBuffer.js +1 -2
- package/dist/node_modules/lodash/isEqual.js +1 -2
- package/dist/node_modules/lodash/isFunction.js +1 -2
- package/dist/node_modules/lodash/isLength.js +4 -6
- package/dist/node_modules/lodash/isNaN.js +1 -2
- package/dist/node_modules/lodash/isNil.js +1 -2
- package/dist/node_modules/lodash/isNumber.js +1 -2
- package/dist/node_modules/lodash/isObject.js +1 -2
- package/dist/node_modules/lodash/isObjectLike.js +1 -2
- package/dist/node_modules/lodash/isPlainObject.js +4 -5
- package/dist/node_modules/lodash/isString.js +4 -5
- package/dist/node_modules/lodash/isSymbol.js +1 -2
- package/dist/node_modules/lodash/isTypedArray.js +1 -2
- package/dist/node_modules/lodash/keys.js +1 -2
- package/dist/node_modules/lodash/last.js +1 -2
- package/dist/node_modules/lodash/map.js +6 -7
- package/dist/node_modules/lodash/mapValues.js +4 -5
- package/dist/node_modules/lodash/max.js +5 -6
- package/dist/node_modules/lodash/maxBy.js +5 -6
- package/dist/node_modules/lodash/memoize.js +1 -2
- package/dist/node_modules/lodash/min.js +5 -6
- package/dist/node_modules/lodash/minBy.js +4 -5
- package/dist/node_modules/lodash/noop.js +1 -2
- package/dist/node_modules/lodash/now.js +1 -2
- package/dist/node_modules/lodash/property.js +6 -7
- package/dist/node_modules/lodash/range.js +1 -2
- package/dist/node_modules/lodash/some.js +7 -8
- package/dist/node_modules/lodash/sortBy.js +1 -2
- package/dist/node_modules/lodash/stubArray.js +1 -2
- package/dist/node_modules/lodash/stubFalse.js +1 -2
- package/dist/node_modules/lodash/throttle.js +4 -5
- package/dist/node_modules/lodash/toFinite.js +2 -3
- package/dist/node_modules/lodash/toInteger.js +1 -2
- package/dist/node_modules/lodash/toNumber.js +4 -5
- package/dist/node_modules/lodash/toString.js +1 -2
- package/dist/node_modules/lodash/uniqBy.js +1 -2
- package/dist/node_modules/lodash/upperFirst.js +1 -2
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +6 -7
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +2 -3
- package/dist/node_modules/lucide-react/dist/esm/icons/activity.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-down-right.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-down-up.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-down.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-left-right.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-left.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up-down.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up-right.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/badge-check.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/bell-ring.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/bell.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/bot.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/box.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/boxes.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/building-2.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/building.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/calculator.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar-clock.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar-days.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/car.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chart-column.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-left.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-right.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-up-down.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check-big.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-x.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/clipboard-list.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/clock.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/cloud-download.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/coffee.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/copy.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/credit-card.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/dollar-sign.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/download.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/external-link.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/file-chart-column-increasing.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/file-check.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/file-search.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/file-spreadsheet.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/file-text.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/file-up.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/filter.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/fuel.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/gauge.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/git-compare.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/history.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/info.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/key-round.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/leaf.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/list.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/lock.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/mail.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/map-pin.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/map.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/navigation.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/package-plus.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/package.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/pause.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/pencil.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/phone.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/plane.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/play.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/plug.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/printer.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/radio-tower.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/receipt.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/refresh-cw.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/repeat-2.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/route.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/save.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/scale.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/search.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/shield-check.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/ship.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/sigma.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/square-pen.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/star.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/sticky-note.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/store.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/tag.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/thermometer.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/train-front.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/trash-2.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/trending-down.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/trending-up.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/truck.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/type.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/upload.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/user-check.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/user-minus.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/user-plus.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/user-round.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/user-x.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/user.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/users.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/wand-sparkles.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/warehouse.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/wifi-off.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/wrench.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/zap.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +1 -2
- package/dist/node_modules/object-assign/index.js +1 -2
- package/dist/node_modules/prop-types/checkPropTypes.js +1 -2
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +1 -2
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +3 -3
- package/dist/node_modules/prop-types/index.js +1 -2
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -2
- package/dist/node_modules/prop-types/lib/has.js +1 -2
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -2
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +1 -2
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +2 -3
- package/dist/node_modules/react-leaflet/lib/MapContainer.js +1 -2
- package/dist/node_modules/react-leaflet/lib/Marker.js +7 -8
- package/dist/node_modules/react-leaflet/lib/Polyline.js +7 -8
- package/dist/node_modules/react-leaflet/lib/Popup.js +7 -7
- package/dist/node_modules/react-leaflet/lib/TileLayer.js +12 -12
- package/dist/node_modules/react-leaflet/lib/hooks.js +1 -2
- package/dist/node_modules/react-smooth/es6/Animate.js +31 -39
- package/dist/node_modules/react-smooth/es6/AnimateManager.js +2 -5
- package/dist/node_modules/react-smooth/es6/configUpdate.js +1 -2
- package/dist/node_modules/react-smooth/es6/easing.js +1 -2
- package/dist/node_modules/react-smooth/es6/index.js +1 -2
- package/dist/node_modules/react-smooth/es6/setRafTimeout.js +1 -2
- package/dist/node_modules/react-smooth/es6/util.js +17 -16
- package/dist/node_modules/recharts/es6/cartesian/Area.js +95 -96
- package/dist/node_modules/recharts/es6/cartesian/Bar.js +100 -101
- package/dist/node_modules/recharts/es6/cartesian/Brush.js +23 -24
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +58 -65
- package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +33 -34
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +17 -18
- package/dist/node_modules/recharts/es6/cartesian/Line.js +76 -77
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +28 -29
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +22 -23
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +28 -29
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js +8 -9
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js +8 -9
- package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js +5 -6
- package/dist/node_modules/recharts/es6/cartesian/getTicks.js +7 -8
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +1 -4
- package/dist/node_modules/recharts/es6/chart/AreaChart.js +5 -6
- package/dist/node_modules/recharts/es6/chart/BarChart.js +7 -8
- package/dist/node_modules/recharts/es6/chart/LineChart.js +5 -6
- package/dist/node_modules/recharts/es6/chart/PieChart.js +11 -12
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +534 -533
- package/dist/node_modules/recharts/es6/component/Cell.js +1 -2
- package/dist/node_modules/recharts/es6/component/Cursor.js +16 -17
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +27 -28
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +11 -12
- package/dist/node_modules/recharts/es6/component/Label.js +78 -79
- package/dist/node_modules/recharts/es6/component/LabelList.js +16 -17
- package/dist/node_modules/recharts/es6/component/Legend.js +25 -22
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +14 -15
- package/dist/node_modules/recharts/es6/component/Text.js +17 -20
- package/dist/node_modules/recharts/es6/component/Tooltip.js +16 -17
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +1 -2
- package/dist/node_modules/recharts/es6/container/Layer.js +3 -4
- package/dist/node_modules/recharts/es6/container/Surface.js +3 -4
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +20 -20
- package/dist/node_modules/recharts/es6/polar/Pie.js +102 -106
- package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +28 -29
- package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +36 -39
- package/dist/node_modules/recharts/es6/shape/Cross.js +3 -4
- package/dist/node_modules/recharts/es6/shape/Curve.js +38 -49
- package/dist/node_modules/recharts/es6/shape/Dot.js +2 -3
- package/dist/node_modules/recharts/es6/shape/Polygon.js +3 -4
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +8 -9
- package/dist/node_modules/recharts/es6/shape/Sector.js +33 -34
- package/dist/node_modules/recharts/es6/shape/Symbols.js +26 -34
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js +8 -9
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +20 -21
- package/dist/node_modules/recharts/es6/util/BarUtils.js +10 -11
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js +32 -33
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +231 -236
- package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js +1 -2
- package/dist/node_modules/recharts/es6/util/DOMUtils.js +1 -2
- package/dist/node_modules/recharts/es6/util/DataUtils.js +7 -8
- package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js +20 -21
- package/dist/node_modules/recharts/es6/util/Events.js +0 -1
- package/dist/node_modules/recharts/es6/util/Global.js +0 -1
- package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js +1 -2
- package/dist/node_modules/recharts/es6/util/LogUtils.js +9 -8
- package/dist/node_modules/recharts/es6/util/PolarUtils.js +5 -6
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +10 -11
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +4 -5
- package/dist/node_modules/recharts/es6/util/ShallowEqual.js +1 -2
- package/dist/node_modules/recharts/es6/util/TickUtils.js +4 -4
- package/dist/node_modules/recharts/es6/util/calculateViewBox.js +0 -1
- package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js +7 -6
- package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js +1 -2
- package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js +1 -2
- package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js +1 -2
- package/dist/node_modules/recharts/es6/util/getLegendProps.js +9 -10
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +1 -2
- package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js +4 -5
- package/dist/node_modules/recharts/es6/util/tooltip/translate.js +3 -4
- package/dist/node_modules/recharts/es6/util/types.js +1 -2
- package/dist/node_modules/recharts/node_modules/react-is/cjs/react-is.development.js +31 -32
- package/dist/node_modules/recharts/node_modules/react-is/cjs/react-is.production.min.js +1 -2
- package/dist/node_modules/recharts/node_modules/react-is/index.js +2 -3
- package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +2 -3
- package/dist/node_modules/recharts-scale/es6/index.js +1 -1
- package/dist/node_modules/recharts-scale/es6/util/arithmetic.js +1 -2
- package/dist/node_modules/recharts-scale/es6/util/utils.js +3 -4
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +134 -151
- package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +2 -3
- package/dist/node_modules/victory-vendor/es/d3-scale.js +28 -45
- package/dist/node_modules/zustand/esm/middleware.js +209 -112
- package/dist/pages/AnalyticsPage.js +41 -42
- package/dist/pages/ConsolidationPage.js +8 -9
- package/dist/pages/ConsumedFuelPreviewPage.js +60 -61
- package/dist/pages/ContainerConditionPage.js +49 -50
- package/dist/pages/ContainersPage.js +53 -53
- package/dist/pages/CreateOrderPage.js +134 -144
- package/dist/pages/CustomerDetailsPage.js +342 -345
- package/dist/pages/CustomersPage.js +36 -37
- package/dist/pages/DashboardPage.js +92 -93
- package/dist/pages/DeliveryCapturePage.js +199 -200
- package/dist/pages/DispatchPlanPage.js +94 -95
- package/dist/pages/DriverDetailsPage.js +393 -399
- package/dist/pages/DriversPage.js +64 -65
- package/dist/pages/EmptyReusePage.js +320 -321
- package/dist/pages/FinancePage.js +72 -70
- package/dist/pages/FleetPage.js +88 -89
- package/dist/pages/FreeTimePage.js +92 -92
- package/dist/pages/FreightEstimatePage.js +92 -93
- package/dist/pages/FreightInvoicePage.js +123 -124
- package/dist/pages/ImportExportPage.js +173 -178
- package/dist/pages/IntegrationsPage.js +264 -267
- package/dist/pages/InventoryPage.js +233 -234
- package/dist/pages/LiveTrackingPage.js +120 -121
- package/dist/pages/LogisticsProceduresPage.js +10 -11
- package/dist/pages/MarketplacePage.js +170 -171
- package/dist/pages/MultiModalShipmentPage.js +172 -177
- package/dist/pages/OrderDetailsPage.js +317 -318
- package/dist/pages/OrdersListPage.js +163 -164
- package/dist/pages/PalletPreviewPage.js +113 -114
- package/dist/pages/PendingPickPage.js +32 -33
- package/dist/pages/ProductDetailsPage.js +164 -166
- package/dist/pages/ProductsPage.js +39 -40
- package/dist/pages/ReportsPage.js +315 -316
- package/dist/pages/RouteDetailsPage.js +425 -357
- package/dist/pages/RoutesPage.js +39 -40
- package/dist/pages/SettingsPage.js +87 -88
- package/dist/pages/ShipmentStatusAuthorityPage.js +67 -67
- package/dist/pages/ShippingRatesPage.js +31 -32
- package/dist/pages/StockBindingPage.js +39 -40
- package/dist/pages/StockObservationsPage.js +23 -24
- package/dist/pages/TrackingEventQualityPage.js +30 -31
- package/dist/pages/TrackingPage.js +88 -89
- package/dist/pages/TripUtilizationPage.js +24 -25
- package/dist/pages/VehicleDetailsPage.js +241 -243
- package/dist/pages/VehiclesPage.js +59 -60
- package/dist/pages/WarehouseDetailsPage.js +151 -156
- package/dist/pages/WarehousesPage.js +33 -34
- package/dist/providers/ModuleSettingsProvider.js +1 -2
- package/dist/providers/MoveTheWheelsProvider.js +2 -7
- package/dist/services/createSandboxAssistantTransport.js +1 -2
- package/dist/shared/hooks/useTr.js +1 -2
- package/dist/src/generated/consolidation-operations.js +1 -2
- package/dist/src/generated/consumed-fuel-preview-operations.js +1 -2
- package/dist/src/generated/container-condition-operations.js +1 -2
- package/dist/src/generated/container-operations.js +1 -2
- package/dist/src/generated/empty-reuse-operations.js +1 -2
- package/dist/src/generated/free-time-operations.js +1 -2
- package/dist/src/generated/freight-cost-operations.js +1 -2
- package/dist/src/generated/freight-invoice-operations.js +1 -2
- package/dist/src/generated/logistics-procedure-operations.js +1 -2
- package/dist/src/generated/pallet-preview-operations.js +1 -2
- package/dist/src/generated/pending-pick-operations.js +1 -2
- package/dist/src/generated/shipment-status-authority-operations.js +1 -2
- package/dist/src/generated/stock-binding-operations.js +1 -2
- package/dist/src/generated/stock-observation-operations.js +1 -2
- package/dist/src/generated/tracking-quality-operations.js +1 -2
- package/dist/src/generated/trip-utilization-operations.js +1 -2
- package/dist/src/generated/wspace-operations.js +1 -2
- package/dist/store/movethewheelsStore.js +1 -2
- package/dist/utils/carrierIntegrations.js +4 -5
- package/dist/utils/cn.js +2 -3
- package/dist/utils/consolidationHistoryTarget.js +1 -2
- package/dist/utils/consolidationInput.js +1 -2
- package/dist/utils/consolidationLot.js +1 -2
- package/dist/utils/consolidationPins.js +1 -2
- package/dist/utils/consolidationRecovery.js +1 -2
- package/dist/utils/consolidationReportHead.js +1 -2
- package/dist/utils/consumedFuelInput.js +2 -3
- package/dist/utils/consumedFuelResponse.js +2 -3
- package/dist/utils/customerNotifications.js +2 -3
- package/dist/utils/driverLicenseExpiry.js +1 -2
- package/dist/utils/driverNavigation.js +2 -3
- package/dist/utils/entityExport.js +3 -4
- package/dist/utils/entityImport.js +3 -4
- package/dist/utils/formatters.js +41 -36
- package/dist/utils/freeTimeDate.js +1 -2
- package/dist/utils/freightAcknowledgement.js +1 -2
- package/dist/utils/freightCommercial.js +2 -3
- package/dist/utils/freightDraft.js +1 -2
- package/dist/utils/freightRecovery.js +1 -2
- package/dist/utils/graphqlClient.js +1 -2
- package/dist/utils/invoiceComparison.js +5 -6
- package/dist/utils/invoiceReview.js +1 -2
- package/dist/utils/mapMarkers.js +2 -3
- package/dist/utils/moduleSettings.js +2 -3
- package/dist/utils/navigation.js +2 -3
- package/dist/utils/orderPricing.js +1 -2
- package/dist/utils/orderValidation.js +3 -4
- package/dist/utils/orderVehicleHold.js +2 -3
- package/dist/utils/palletPreviewInput.js +1 -2
- package/dist/utils/palletPreviewResponse.js +2 -3
- package/dist/utils/pendingPickDraft.js +1 -2
- package/dist/utils/pickReviewAcknowledgement.js +1 -2
- package/dist/utils/procedureInput.js +1 -2
- package/dist/utils/procedureRecovery.js +1 -2
- package/dist/utils/reports.js +1 -2
- package/dist/utils/reuseAttempt.js +1 -2
- package/dist/utils/reuseForm.js +1 -2
- package/dist/utils/reuseRecovery.js +2 -3
- package/dist/utils/shipmentStatusDraft.js +1 -2
- package/dist/utils/stockBindingForm.js +1 -2
- package/dist/utils/stockBindingLabels.js +1 -2
- package/dist/utils/stockObservationForm.js +2 -3
- package/dist/utils/trackingAlerts.js +1 -2
- package/dist/utils/tripDraftContext.js +1 -2
- package/dist/utils/tripUtilizationForm.js +2 -3
- package/package.json +136 -86
- package/src/generated/wspace-operations.ts +13 -12
- package/src/generated/wspace-types.ts +43737 -9125
- package/src/movethewheels/hooks/useRoutes.ts +37 -10
- package/src/movethewheels/pages/RouteDetailsPage.tsx +107 -10
- package/src/movethewheels/types/index.ts +27 -1
- package/src/movethewheels/utils/orderPricing.test.ts +1 -1
- package/src/operations/wspace/movethewheels/fragments/core.graphql +15 -0
- package/src/operations/wspace/movethewheels/mutations/logistics.graphql +2 -2
- package/dist/node_modules/d3-array/src/ascending.js +0 -6
- package/dist/node_modules/d3-array/src/bisect.js +0 -8
- package/dist/node_modules/d3-array/src/bisector.js +0 -41
- package/dist/node_modules/d3-array/src/descending.js +0 -6
- package/dist/node_modules/d3-array/src/max.js +0 -12
- package/dist/node_modules/d3-array/src/min.js +0 -12
- package/dist/node_modules/d3-array/src/number.js +0 -13
- package/dist/node_modules/d3-array/src/quantile.js +0 -23
- package/dist/node_modules/d3-array/src/quickselect.js +0 -24
- package/dist/node_modules/d3-array/src/range.js +0 -8
- package/dist/node_modules/d3-array/src/sort.js +0 -15
- package/dist/node_modules/d3-array/src/ticks.js +0 -32
- package/dist/node_modules/d3-color/src/color.js +0 -289
- package/dist/node_modules/d3-color/src/define.js +0 -11
- package/dist/node_modules/d3-format/src/defaultLocale.js +0 -13
- package/dist/node_modules/d3-format/src/exponent.js +0 -7
- package/dist/node_modules/d3-format/src/formatDecimal.js +0 -11
- package/dist/node_modules/d3-format/src/formatGroup.js +0 -9
- package/dist/node_modules/d3-format/src/formatNumerals.js +0 -10
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +0 -11
- package/dist/node_modules/d3-format/src/formatRounded.js +0 -10
- package/dist/node_modules/d3-format/src/formatSpecifier.js +0 -27
- package/dist/node_modules/d3-format/src/formatTrim.js +0 -18
- package/dist/node_modules/d3-format/src/formatTypes.js +0 -21
- package/dist/node_modules/d3-format/src/identity.js +0 -6
- package/dist/node_modules/d3-format/src/locale.js +0 -84
- package/dist/node_modules/d3-format/src/precisionFixed.js +0 -7
- package/dist/node_modules/d3-format/src/precisionPrefix.js +0 -7
- package/dist/node_modules/d3-format/src/precisionRound.js +0 -7
- package/dist/node_modules/d3-interpolate/src/array.js +0 -13
- package/dist/node_modules/d3-interpolate/src/basis.js +0 -14
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +0 -11
- package/dist/node_modules/d3-interpolate/src/color.js +0 -23
- package/dist/node_modules/d3-interpolate/src/constant.js +0 -4
- package/dist/node_modules/d3-interpolate/src/date.js +0 -9
- package/dist/node_modules/d3-interpolate/src/number.js +0 -8
- package/dist/node_modules/d3-interpolate/src/numberArray.js +0 -14
- package/dist/node_modules/d3-interpolate/src/object.js +0 -12
- package/dist/node_modules/d3-interpolate/src/piecewise.js +0 -12
- package/dist/node_modules/d3-interpolate/src/rgb.js +0 -17
- package/dist/node_modules/d3-interpolate/src/round.js +0 -8
- package/dist/node_modules/d3-interpolate/src/string.js +0 -26
- package/dist/node_modules/d3-interpolate/src/value.js +0 -16
- package/dist/node_modules/d3-scale/src/band.js +0 -50
- package/dist/node_modules/d3-scale/src/constant.js +0 -8
- package/dist/node_modules/d3-scale/src/continuous.js +0 -71
- package/dist/node_modules/d3-scale/src/diverging.js +0 -80
- package/dist/node_modules/d3-scale/src/identity.js +0 -18
- package/dist/node_modules/d3-scale/src/init.js +0 -27
- package/dist/node_modules/d3-scale/src/linear.js +0 -34
- package/dist/node_modules/d3-scale/src/log.js +0 -75
- package/dist/node_modules/d3-scale/src/nice.js +0 -8
- package/dist/node_modules/d3-scale/src/number.js +0 -6
- package/dist/node_modules/d3-scale/src/ordinal.js +0 -29
- package/dist/node_modules/d3-scale/src/pow.js +0 -35
- package/dist/node_modules/d3-scale/src/quantile.js +0 -35
- package/dist/node_modules/d3-scale/src/quantize.js +0 -31
- package/dist/node_modules/d3-scale/src/radial.js +0 -37
- package/dist/node_modules/d3-scale/src/sequential.js +0 -65
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js +0 -28
- package/dist/node_modules/d3-scale/src/symlog.js +0 -28
- package/dist/node_modules/d3-scale/src/threshold.js +0 -23
- package/dist/node_modules/d3-scale/src/tickFormat.js +0 -29
- package/dist/node_modules/d3-scale/src/time.js +0 -45
- package/dist/node_modules/d3-scale/src/utcTime.js +0 -17
- package/dist/node_modules/d3-shape/src/area.js +0 -53
- package/dist/node_modules/d3-shape/src/array.js +0 -6
- package/dist/node_modules/d3-shape/src/constant.js +0 -8
- package/dist/node_modules/d3-shape/src/curve/basis.js +0 -47
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +0 -48
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +0 -44
- package/dist/node_modules/d3-shape/src/curve/bump.js +0 -38
- package/dist/node_modules/d3-shape/src/curve/linear.js +0 -34
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +0 -23
- package/dist/node_modules/d3-shape/src/curve/monotone.js +0 -92
- package/dist/node_modules/d3-shape/src/curve/natural.js +0 -37
- package/dist/node_modules/d3-shape/src/curve/step.js +0 -45
- package/dist/node_modules/d3-shape/src/line.js +0 -28
- package/dist/node_modules/d3-shape/src/math.js +0 -6
- package/dist/node_modules/d3-shape/src/noop.js +0 -4
- package/dist/node_modules/d3-shape/src/offset/expand.js +0 -13
- package/dist/node_modules/d3-shape/src/offset/none.js +0 -6
- package/dist/node_modules/d3-shape/src/offset/silhouette.js +0 -13
- package/dist/node_modules/d3-shape/src/offset/wiggle.js +0 -19
- package/dist/node_modules/d3-shape/src/order/none.js +0 -7
- package/dist/node_modules/d3-shape/src/path.js +0 -17
- package/dist/node_modules/d3-shape/src/point.js +0 -9
- package/dist/node_modules/d3-shape/src/stack.js +0 -32
- package/dist/node_modules/d3-shape/src/symbol/circle.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol/cross.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol/diamond.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol/square.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol/star.js +0 -13
- package/dist/node_modules/d3-shape/src/symbol/triangle.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol/wye.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol.js +0 -21
- package/dist/node_modules/d3-time/src/day.js +0 -19
- package/dist/node_modules/d3-time/src/duration.js +0 -4
- package/dist/node_modules/d3-time/src/hour.js +0 -17
- package/dist/node_modules/d3-time/src/interval.js +0 -26
- package/dist/node_modules/d3-time/src/millisecond.js +0 -12
- package/dist/node_modules/d3-time/src/minute.js +0 -17
- package/dist/node_modules/d3-time/src/month.js +0 -16
- package/dist/node_modules/d3-time/src/second.js +0 -11
- package/dist/node_modules/d3-time/src/ticks.js +0 -123
- package/dist/node_modules/d3-time/src/week.js +0 -23
- package/dist/node_modules/d3-time/src/year.js +0 -24
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +0 -60
- package/dist/node_modules/internmap/src/index.js +0 -38
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { DEFAULT_GEOTAB_SERVER as
|
|
23
|
-
import {
|
|
1
|
+
import e from "../node_modules/lucide-react/dist/esm/icons/activity.js";
|
|
2
|
+
import t from "../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
3
|
+
import n from "../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
|
|
4
|
+
import r from "../node_modules/lucide-react/dist/esm/icons/chevron-up.js";
|
|
5
|
+
import i from "../node_modules/lucide-react/dist/esm/icons/copy.js";
|
|
6
|
+
import a from "../node_modules/lucide-react/dist/esm/icons/cloud-download.js";
|
|
7
|
+
import o from "../node_modules/lucide-react/dist/esm/icons/key-round.js";
|
|
8
|
+
import s from "../node_modules/lucide-react/dist/esm/icons/pause.js";
|
|
9
|
+
import c from "../node_modules/lucide-react/dist/esm/icons/play.js";
|
|
10
|
+
import l from "../node_modules/lucide-react/dist/esm/icons/plug.js";
|
|
11
|
+
import u from "../node_modules/lucide-react/dist/esm/icons/plus.js";
|
|
12
|
+
import d from "../node_modules/lucide-react/dist/esm/icons/refresh-cw.js";
|
|
13
|
+
import ee from "../node_modules/lucide-react/dist/esm/icons/shield-check.js";
|
|
14
|
+
import f from "../node_modules/lucide-react/dist/esm/icons/trash-2.js";
|
|
15
|
+
import { PageLayout as p } from "../components/PageLayout.js";
|
|
16
|
+
import { MetricCard as m, MetricGrid as h } from "../components/MetricCard.js";
|
|
17
|
+
import { Notice as g, useNotice as _ } from "../components/Notice.js";
|
|
18
|
+
import { FormError as v } from "../components/FormError.js";
|
|
19
|
+
import { Badge as y, Button as b, Card as x, CardContent as S, Checkbox as C, Input as w, Label as T, Select as te, SelectContent as ne, SelectItem as E, SelectTrigger as re, SelectValue as ie, Skeleton as D, Textarea as ae } from "../components/ui.js";
|
|
20
|
+
import { useMoveTheWheels as O } from "../providers/MoveTheWheelsProvider.js";
|
|
21
|
+
import { useCarrierIntegrationActions as oe, useCarrierIntegrationCounts as se, useCarrierIntegrationEvents as k, useCarrierIntegrations as ce } from "../hooks/useCarrierIntegrations.js";
|
|
22
|
+
import { DEFAULT_GEOTAB_SERVER as le, DEFAULT_SAMSARA_SHIPMENT_KEY as A, GEOTAB_RULE_EVENT_TYPES as ue, INTEGRATION_STATUSES as de, MOTIVE_ACTIONS as j, MOTIVE_SIGNATURE_HEADER as fe, ROADMAP_PROVIDERS as pe, SAMSARA_EVENT_TYPES as M, SAMSARA_SIGNATURE_HEADERS as N, SIGNATURE_HEADER as P, TRACKING_EVENT_TYPES as F, buildGeotabConfig as me, curlExample as I, eventStatusTone as L, examplePayload as R, externalIdKeyError as z, generateSigningSecret as B, geotabPasswordError as V, humanize as H, integrationNameError as he, integrationStatusTone as ge, isPolledProvider as _e, pollResultMessage as ve, pollStatusSummary as ye, pollStatusTone as be, providerLabel as xe, samsaraSecretError as U, signingSecretError as W, statusExplanation as Se, webhookUrl as Ce } from "../utils/carrierIntegrations.js";
|
|
23
|
+
import { formatDateTime as G } from "../utils/formatters.js";
|
|
24
24
|
import { useEffect as we, useRef as Te, useState as K } from "react";
|
|
25
25
|
import { Fragment as Ee, jsx as q, jsxs as J } from "react/jsx-runtime";
|
|
26
26
|
import { CTAOverflowMenu as De, PagePurpose as Oe, ResponsiveDialog as Y, ResponsiveDialogContent as X, ResponsiveDialogDescription as ke, ResponsiveDialogFooter as Ae, ResponsiveDialogHeader as je, ResponsiveDialogTitle as Me } from "@burdenoff/fe-libs/ui";
|
|
27
|
-
|
|
27
|
+
// src/movethewheels/pages/IntegrationsPage.tsx
|
|
28
28
|
var Ne = 20, Z = "ALL";
|
|
29
29
|
function Q(e, t) {
|
|
30
30
|
return e instanceof Error && e.message ? e.message : t;
|
|
31
31
|
}
|
|
32
32
|
function $({ label: e, value: n, multiline: r }) {
|
|
33
|
-
let [
|
|
33
|
+
let [a, o] = K(!1), s = async () => {
|
|
34
34
|
try {
|
|
35
35
|
await navigator.clipboard.writeText(n), o(!0), window.setTimeout(() => o(!1), 2e3);
|
|
36
36
|
} catch {
|
|
@@ -44,16 +44,16 @@ function $({ label: e, value: n, multiline: r }) {
|
|
|
44
44
|
children: [/* @__PURE__ */ q("span", {
|
|
45
45
|
className: "text-xs font-medium text-text-secondary",
|
|
46
46
|
children: e
|
|
47
|
-
}), /* @__PURE__ */ J(
|
|
47
|
+
}), /* @__PURE__ */ J(b, {
|
|
48
48
|
type: "button",
|
|
49
49
|
size: "sm",
|
|
50
50
|
variant: "ghost",
|
|
51
51
|
onClick: () => void s(),
|
|
52
52
|
"aria-label": `Copy ${e.toLowerCase()}`,
|
|
53
|
-
children: [q(
|
|
53
|
+
children: [q(a ? t : i, {
|
|
54
54
|
size: 14,
|
|
55
55
|
className: "mr-1"
|
|
56
|
-
}),
|
|
56
|
+
}), a ? "Copied" : "Copy"]
|
|
57
57
|
})]
|
|
58
58
|
}), r ? /* @__PURE__ */ q("pre", {
|
|
59
59
|
className: "max-h-64 overflow-auto whitespace-pre-wrap break-all rounded-lg bg-bg-sunken px-3 py-2 font-mono text-xs text-text-primary",
|
|
@@ -74,7 +74,7 @@ function Pe({ secret: e, integrationName: t, onClose: n }) {
|
|
|
74
74
|
label: "Signing secret",
|
|
75
75
|
value: e
|
|
76
76
|
}, e) : null,
|
|
77
|
-
/* @__PURE__ */ q(Ae, { children: /* @__PURE__ */ q(
|
|
77
|
+
/* @__PURE__ */ q(Ae, { children: /* @__PURE__ */ q(b, {
|
|
78
78
|
onClick: n,
|
|
79
79
|
children: "I have saved it"
|
|
80
80
|
}) })
|
|
@@ -82,21 +82,21 @@ function Pe({ secret: e, integrationName: t, onClose: n }) {
|
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
function Fe({ open: e, onOpenChange: t, onCreated: n }) {
|
|
85
|
-
let r =
|
|
86
|
-
a("GENERIC_WEBHOOK"), s(""), l(
|
|
87
|
-
},
|
|
88
|
-
let e =
|
|
89
|
-
server:
|
|
90
|
-
database:
|
|
91
|
-
userName:
|
|
92
|
-
ruleMappings:
|
|
93
|
-
locationUpdates:
|
|
85
|
+
let r = oe(), [i, a] = K("GENERIC_WEBHOOK"), [o, s] = K(""), [c, l] = K(() => B()), [u, ee] = K(""), [f, p] = K(""), [m, h] = K(""), [g, _] = K(""), [y, x] = K(""), [S, D] = K(""), [O, se] = K(""), [k, ce] = K(!0), [de, j] = K(null), [fe, pe] = K(!1), M = i === "SAMSARA", N = i === "GEOTAB", P = i === "MOTIVE", F = () => {
|
|
86
|
+
a("GENERIC_WEBHOOK"), s(""), l(B()), ee(""), p(""), h(""), _(""), x(""), D(""), se(""), ce(!0), j(null);
|
|
87
|
+
}, I = () => {
|
|
88
|
+
let e = me({
|
|
89
|
+
server: m,
|
|
90
|
+
database: g,
|
|
91
|
+
userName: y,
|
|
92
|
+
ruleMappings: O,
|
|
93
|
+
locationUpdates: k
|
|
94
94
|
});
|
|
95
95
|
if (!e.ok) return {
|
|
96
96
|
error: e.error,
|
|
97
97
|
input: null
|
|
98
98
|
};
|
|
99
|
-
let t =
|
|
99
|
+
let t = V(S);
|
|
100
100
|
return t ? {
|
|
101
101
|
error: t,
|
|
102
102
|
input: null
|
|
@@ -105,155 +105,154 @@ function Fe({ open: e, onOpenChange: t, onCreated: n }) {
|
|
|
105
105
|
input: {
|
|
106
106
|
provider: "GEOTAB",
|
|
107
107
|
name: o,
|
|
108
|
-
apiSecret:
|
|
108
|
+
apiSecret: S,
|
|
109
109
|
config: e.config
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
|
-
},
|
|
112
|
+
}, L = async (e) => {
|
|
113
113
|
e.preventDefault();
|
|
114
|
-
let i =
|
|
115
|
-
if (a)
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
N(!1);
|
|
114
|
+
let i = N ? I() : null, a = he(o) ?? (N ? i?.error ?? null : M ? U(u) ?? z(f) : W(c));
|
|
115
|
+
if (a) j(a);
|
|
116
|
+
else {
|
|
117
|
+
pe(!0), j(null);
|
|
118
|
+
try {
|
|
119
|
+
let e = f.trim();
|
|
120
|
+
n(await r.create(i?.input ? i.input : M ? {
|
|
121
|
+
provider: "SAMSARA",
|
|
122
|
+
name: o,
|
|
123
|
+
apiSecret: u.trim(),
|
|
124
|
+
...e ? { config: { shipmentExternalIdKey: e } } : {}
|
|
125
|
+
} : {
|
|
126
|
+
provider: P ? "MOTIVE" : "GENERIC_WEBHOOK",
|
|
127
|
+
name: o,
|
|
128
|
+
apiSecret: c
|
|
129
|
+
}), M || N ? null : c), F(), t(!1);
|
|
130
|
+
} catch (e) {
|
|
131
|
+
j(Q(e, "Could not create the integration."));
|
|
132
|
+
} finally {
|
|
133
|
+
pe(!1);
|
|
134
|
+
}
|
|
136
135
|
}
|
|
137
136
|
};
|
|
138
137
|
return /* @__PURE__ */ q(Y, {
|
|
139
138
|
open: e,
|
|
140
139
|
onOpenChange: (e) => {
|
|
141
|
-
e ||
|
|
140
|
+
e || F(), t(e);
|
|
142
141
|
},
|
|
143
142
|
children: /* @__PURE__ */ q(X, { children: /* @__PURE__ */ J("form", {
|
|
144
|
-
onSubmit: (e) => void
|
|
143
|
+
onSubmit: (e) => void L(e),
|
|
145
144
|
className: "space-y-4",
|
|
146
145
|
children: [
|
|
147
|
-
/* @__PURE__ */ J(je, { children: [/* @__PURE__ */ q(Me, { children: "Connect a tracking feed" }), /* @__PURE__ */ q(ke, { children:
|
|
146
|
+
/* @__PURE__ */ J(je, { children: [/* @__PURE__ */ q(Me, { children: "Connect a tracking feed" }), /* @__PURE__ */ q(ke, { children: N ? "MoveTheWheels signs in to MyGeotab and reads new GPS positions and exception events every 5 minutes. They become tracking events on the matching shipments." : "A signed webhook from a carrier, ELD or GPS provider. Updates it sends become tracking events on the matching shipments." })] }),
|
|
148
147
|
/* @__PURE__ */ J("div", {
|
|
149
148
|
className: "space-y-1.5",
|
|
150
|
-
children: [/* @__PURE__ */ q(
|
|
149
|
+
children: [/* @__PURE__ */ q(T, {
|
|
151
150
|
htmlFor: "integration-name",
|
|
152
151
|
children: "Name"
|
|
153
|
-
}), /* @__PURE__ */ q(
|
|
152
|
+
}), /* @__PURE__ */ q(w, {
|
|
154
153
|
id: "integration-name",
|
|
155
154
|
value: o,
|
|
156
155
|
maxLength: 120,
|
|
157
|
-
placeholder:
|
|
156
|
+
placeholder: M ? "e.g. Samsara fleet" : N ? "e.g. Geotab fleet" : P ? "e.g. Motive fleet" : "e.g. Fleet GPS feed",
|
|
158
157
|
onChange: (e) => s(e.target.value),
|
|
159
158
|
autoFocus: !0
|
|
160
159
|
})]
|
|
161
160
|
}),
|
|
162
161
|
/* @__PURE__ */ J("div", {
|
|
163
162
|
className: "space-y-1.5",
|
|
164
|
-
children: [/* @__PURE__ */ q(
|
|
163
|
+
children: [/* @__PURE__ */ q(T, {
|
|
165
164
|
htmlFor: "integration-type",
|
|
166
165
|
children: "Type"
|
|
167
|
-
}), /* @__PURE__ */ J(
|
|
166
|
+
}), /* @__PURE__ */ J(te, {
|
|
168
167
|
value: i,
|
|
169
168
|
onValueChange: (e) => {
|
|
170
|
-
a(e),
|
|
169
|
+
a(e), j(null);
|
|
171
170
|
},
|
|
172
|
-
children: [/* @__PURE__ */ q(
|
|
171
|
+
children: [/* @__PURE__ */ q(re, {
|
|
173
172
|
id: "integration-type",
|
|
174
173
|
"aria-label": "Type",
|
|
175
|
-
children: /* @__PURE__ */ q(
|
|
176
|
-
}), /* @__PURE__ */ J(
|
|
177
|
-
/* @__PURE__ */ q(
|
|
174
|
+
children: /* @__PURE__ */ q(ie, {})
|
|
175
|
+
}), /* @__PURE__ */ J(ne, { children: [
|
|
176
|
+
/* @__PURE__ */ q(E, {
|
|
178
177
|
value: "GENERIC_WEBHOOK",
|
|
179
178
|
children: "Signed webhook (any system that can send HTTPS POSTs)"
|
|
180
179
|
}),
|
|
181
|
-
/* @__PURE__ */ q(
|
|
180
|
+
/* @__PURE__ */ q(E, {
|
|
182
181
|
value: "SAMSARA",
|
|
183
182
|
children: "Samsara (ELD and telematics)"
|
|
184
183
|
}),
|
|
185
|
-
/* @__PURE__ */ q(
|
|
184
|
+
/* @__PURE__ */ q(E, {
|
|
186
185
|
value: "MOTIVE",
|
|
187
186
|
children: "Motive, formerly KeepTruckin (ELD and telematics)"
|
|
188
187
|
}),
|
|
189
|
-
/* @__PURE__ */ q(
|
|
188
|
+
/* @__PURE__ */ q(E, {
|
|
190
189
|
value: "GEOTAB",
|
|
191
190
|
children: "Geotab / MyGeotab (telematics, polled)"
|
|
192
191
|
})
|
|
193
192
|
] })]
|
|
194
193
|
})]
|
|
195
194
|
}),
|
|
196
|
-
|
|
195
|
+
N ? /* @__PURE__ */ J(Ee, { children: [
|
|
197
196
|
/* @__PURE__ */ J("div", {
|
|
198
197
|
className: "grid gap-4 sm:grid-cols-2",
|
|
199
198
|
children: [
|
|
200
199
|
/* @__PURE__ */ J("div", {
|
|
201
200
|
className: "space-y-1.5",
|
|
202
|
-
children: [/* @__PURE__ */ q(
|
|
201
|
+
children: [/* @__PURE__ */ q(T, {
|
|
203
202
|
htmlFor: "geotab-database",
|
|
204
203
|
children: "MyGeotab database"
|
|
205
|
-
}), /* @__PURE__ */ q(
|
|
204
|
+
}), /* @__PURE__ */ q(w, {
|
|
206
205
|
id: "geotab-database",
|
|
207
|
-
value:
|
|
206
|
+
value: g,
|
|
208
207
|
maxLength: 255,
|
|
209
208
|
autoComplete: "off",
|
|
210
209
|
spellCheck: !1,
|
|
211
210
|
placeholder: "e.g. acme_logistics",
|
|
212
|
-
onChange: (e) =>
|
|
211
|
+
onChange: (e) => _(e.target.value)
|
|
213
212
|
})]
|
|
214
213
|
}),
|
|
215
214
|
/* @__PURE__ */ J("div", {
|
|
216
215
|
className: "space-y-1.5",
|
|
217
|
-
children: [/* @__PURE__ */ q(
|
|
216
|
+
children: [/* @__PURE__ */ q(T, {
|
|
218
217
|
htmlFor: "geotab-server",
|
|
219
218
|
children: "Server (optional)"
|
|
220
|
-
}), /* @__PURE__ */ q(
|
|
219
|
+
}), /* @__PURE__ */ q(w, {
|
|
221
220
|
id: "geotab-server",
|
|
222
|
-
value:
|
|
221
|
+
value: m,
|
|
223
222
|
maxLength: 255,
|
|
224
223
|
autoComplete: "off",
|
|
225
224
|
spellCheck: !1,
|
|
226
|
-
placeholder:
|
|
227
|
-
onChange: (e) =>
|
|
225
|
+
placeholder: le,
|
|
226
|
+
onChange: (e) => h(e.target.value)
|
|
228
227
|
})]
|
|
229
228
|
}),
|
|
230
229
|
/* @__PURE__ */ J("div", {
|
|
231
230
|
className: "space-y-1.5",
|
|
232
|
-
children: [/* @__PURE__ */ q(
|
|
231
|
+
children: [/* @__PURE__ */ q(T, {
|
|
233
232
|
htmlFor: "geotab-user",
|
|
234
233
|
children: "User name"
|
|
235
|
-
}), /* @__PURE__ */ q(
|
|
234
|
+
}), /* @__PURE__ */ q(w, {
|
|
236
235
|
id: "geotab-user",
|
|
237
|
-
value:
|
|
236
|
+
value: y,
|
|
238
237
|
maxLength: 255,
|
|
239
238
|
autoComplete: "off",
|
|
240
239
|
spellCheck: !1,
|
|
241
240
|
placeholder: "e.g. mtw-api@acme.com",
|
|
242
|
-
onChange: (e) =>
|
|
241
|
+
onChange: (e) => x(e.target.value)
|
|
243
242
|
})]
|
|
244
243
|
}),
|
|
245
244
|
/* @__PURE__ */ J("div", {
|
|
246
245
|
className: "space-y-1.5",
|
|
247
|
-
children: [/* @__PURE__ */ q(
|
|
246
|
+
children: [/* @__PURE__ */ q(T, {
|
|
248
247
|
htmlFor: "geotab-password",
|
|
249
248
|
children: "Password"
|
|
250
|
-
}), /* @__PURE__ */ q(
|
|
249
|
+
}), /* @__PURE__ */ q(w, {
|
|
251
250
|
id: "geotab-password",
|
|
252
251
|
type: "password",
|
|
253
252
|
autoComplete: "new-password",
|
|
254
253
|
spellCheck: !1,
|
|
255
|
-
value:
|
|
256
|
-
onChange: (e) =>
|
|
254
|
+
value: S,
|
|
255
|
+
onChange: (e) => D(e.target.value)
|
|
257
256
|
})]
|
|
258
257
|
})
|
|
259
258
|
]
|
|
@@ -264,11 +263,11 @@ function Fe({ open: e, onOpenChange: t, onCreated: n }) {
|
|
|
264
263
|
}),
|
|
265
264
|
/* @__PURE__ */ J("div", {
|
|
266
265
|
className: "flex items-center gap-3",
|
|
267
|
-
children: [/* @__PURE__ */ q(
|
|
266
|
+
children: [/* @__PURE__ */ q(C, {
|
|
268
267
|
id: "geotab-locations",
|
|
269
|
-
checked:
|
|
270
|
-
onCheckedChange: (e) =>
|
|
271
|
-
}), /* @__PURE__ */ q(
|
|
268
|
+
checked: k,
|
|
269
|
+
onCheckedChange: (e) => ce(e === !0)
|
|
270
|
+
}), /* @__PURE__ */ q(T, {
|
|
272
271
|
htmlFor: "geotab-locations",
|
|
273
272
|
children: "Add each vehicle's latest GPS position as an In transit event"
|
|
274
273
|
})]
|
|
@@ -276,13 +275,13 @@ function Fe({ open: e, onOpenChange: t, onCreated: n }) {
|
|
|
276
275
|
/* @__PURE__ */ J("div", {
|
|
277
276
|
className: "space-y-1.5",
|
|
278
277
|
children: [
|
|
279
|
-
/* @__PURE__ */ q(
|
|
278
|
+
/* @__PURE__ */ q(T, {
|
|
280
279
|
htmlFor: "geotab-rules",
|
|
281
280
|
children: "Exception rules to track (optional)"
|
|
282
281
|
}),
|
|
283
|
-
/* @__PURE__ */ q(
|
|
282
|
+
/* @__PURE__ */ q(ae, {
|
|
284
283
|
id: "geotab-rules",
|
|
285
|
-
value:
|
|
284
|
+
value: O,
|
|
286
285
|
rows: 3,
|
|
287
286
|
spellCheck: !1,
|
|
288
287
|
placeholder: "RuleArriveCustomerId = ARRIVED\nRuleLeaveDepotId = DEPARTED",
|
|
@@ -292,27 +291,27 @@ function Fe({ open: e, onOpenChange: t, onCreated: n }) {
|
|
|
292
291
|
className: "text-xs text-text-secondary",
|
|
293
292
|
children: [
|
|
294
293
|
"One per line: a MyGeotab rule id (for example a zone arrival rule) and the event it becomes: ",
|
|
295
|
-
|
|
294
|
+
ue.join(", "),
|
|
296
295
|
". Other rules are ignored."
|
|
297
296
|
]
|
|
298
297
|
})
|
|
299
298
|
]
|
|
300
299
|
})
|
|
301
|
-
] }) :
|
|
300
|
+
] }) : M ? /* @__PURE__ */ J(Ee, { children: [/* @__PURE__ */ J("div", {
|
|
302
301
|
className: "space-y-1.5",
|
|
303
302
|
children: [
|
|
304
|
-
/* @__PURE__ */ q(
|
|
303
|
+
/* @__PURE__ */ q(T, {
|
|
305
304
|
htmlFor: "samsara-secret",
|
|
306
305
|
children: "Samsara webhook secret key"
|
|
307
306
|
}),
|
|
308
|
-
/* @__PURE__ */ q(
|
|
307
|
+
/* @__PURE__ */ q(w, {
|
|
309
308
|
id: "samsara-secret",
|
|
310
309
|
type: "password",
|
|
311
310
|
autoComplete: "off",
|
|
312
311
|
spellCheck: !1,
|
|
313
312
|
value: u,
|
|
314
313
|
placeholder: "Paste from Samsara → Settings → Webhooks",
|
|
315
|
-
onChange: (e) =>
|
|
314
|
+
onChange: (e) => ee(e.target.value)
|
|
316
315
|
}),
|
|
317
316
|
/* @__PURE__ */ q("p", {
|
|
318
317
|
className: "text-xs text-text-secondary",
|
|
@@ -322,16 +321,16 @@ function Fe({ open: e, onOpenChange: t, onCreated: n }) {
|
|
|
322
321
|
}), /* @__PURE__ */ J("div", {
|
|
323
322
|
className: "space-y-1.5",
|
|
324
323
|
children: [
|
|
325
|
-
/* @__PURE__ */ q(
|
|
324
|
+
/* @__PURE__ */ q(T, {
|
|
326
325
|
htmlFor: "samsara-shipment-key",
|
|
327
326
|
children: "Shipment external ID key (optional)"
|
|
328
327
|
}),
|
|
329
|
-
/* @__PURE__ */ q(
|
|
328
|
+
/* @__PURE__ */ q(w, {
|
|
330
329
|
id: "samsara-shipment-key",
|
|
331
|
-
value:
|
|
330
|
+
value: f,
|
|
332
331
|
maxLength: 64,
|
|
333
|
-
placeholder:
|
|
334
|
-
onChange: (e) =>
|
|
332
|
+
placeholder: A,
|
|
333
|
+
onChange: (e) => p(e.target.value)
|
|
335
334
|
}),
|
|
336
335
|
/* @__PURE__ */ J("p", {
|
|
337
336
|
className: "text-xs text-text-secondary",
|
|
@@ -340,7 +339,7 @@ function Fe({ open: e, onOpenChange: t, onCreated: n }) {
|
|
|
340
339
|
" ",
|
|
341
340
|
/* @__PURE__ */ q("code", {
|
|
342
341
|
className: "font-mono",
|
|
343
|
-
children:
|
|
342
|
+
children: A
|
|
344
343
|
}),
|
|
345
344
|
"."
|
|
346
345
|
]
|
|
@@ -351,11 +350,11 @@ function Fe({ open: e, onOpenChange: t, onCreated: n }) {
|
|
|
351
350
|
children: [
|
|
352
351
|
/* @__PURE__ */ J("div", {
|
|
353
352
|
className: "flex items-center justify-between",
|
|
354
|
-
children: [/* @__PURE__ */ q(
|
|
353
|
+
children: [/* @__PURE__ */ q(T, { children: "Signing secret" }), /* @__PURE__ */ J(b, {
|
|
355
354
|
type: "button",
|
|
356
355
|
size: "sm",
|
|
357
356
|
variant: "ghost",
|
|
358
|
-
onClick: () => l(
|
|
357
|
+
onClick: () => l(B()),
|
|
359
358
|
children: [/* @__PURE__ */ q(d, {
|
|
360
359
|
size: 14,
|
|
361
360
|
className: "mr-1"
|
|
@@ -368,20 +367,20 @@ function Fe({ open: e, onOpenChange: t, onCreated: n }) {
|
|
|
368
367
|
}),
|
|
369
368
|
/* @__PURE__ */ q("p", {
|
|
370
369
|
className: "text-xs text-text-secondary",
|
|
371
|
-
children:
|
|
370
|
+
children: P ? "Generated in your browser. You can copy it on the next step and enter it as the secret on the Motive webhook." : "Generated in your browser. You can copy it on the next step."
|
|
372
371
|
})
|
|
373
372
|
]
|
|
374
373
|
}),
|
|
375
|
-
/* @__PURE__ */ q(
|
|
376
|
-
/* @__PURE__ */ J(Ae, { children: [/* @__PURE__ */ q(
|
|
374
|
+
/* @__PURE__ */ q(v, { message: de }),
|
|
375
|
+
/* @__PURE__ */ J(Ae, { children: [/* @__PURE__ */ q(b, {
|
|
377
376
|
type: "button",
|
|
378
377
|
variant: "outline",
|
|
379
378
|
onClick: () => t(!1),
|
|
380
379
|
children: "Cancel"
|
|
381
|
-
}), /* @__PURE__ */ q(
|
|
380
|
+
}), /* @__PURE__ */ q(b, {
|
|
382
381
|
type: "submit",
|
|
383
|
-
disabled:
|
|
384
|
-
children:
|
|
382
|
+
disabled: fe,
|
|
383
|
+
children: fe ? "Connecting…" : "Connect"
|
|
385
384
|
})] })
|
|
386
385
|
]
|
|
387
386
|
}) })
|
|
@@ -392,18 +391,17 @@ function Ie({ integration: e, onClose: t, onReplace: n }) {
|
|
|
392
391
|
i(""), o(null), t();
|
|
393
392
|
}, d = async (t) => {
|
|
394
393
|
if (t.preventDefault(), !e) return;
|
|
395
|
-
let i = l ?
|
|
396
|
-
if (i)
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
c(!1);
|
|
394
|
+
let i = l ? V(r) : U(r);
|
|
395
|
+
if (i) o(i);
|
|
396
|
+
else {
|
|
397
|
+
c(!0), o(null);
|
|
398
|
+
try {
|
|
399
|
+
await n(e, l ? r : r.trim()), u();
|
|
400
|
+
} catch (e) {
|
|
401
|
+
o(Q(e, "Could not replace the secret."));
|
|
402
|
+
} finally {
|
|
403
|
+
c(!1);
|
|
404
|
+
}
|
|
407
405
|
}
|
|
408
406
|
};
|
|
409
407
|
return /* @__PURE__ */ q(Y, {
|
|
@@ -416,10 +414,10 @@ function Ie({ integration: e, onClose: t, onReplace: n }) {
|
|
|
416
414
|
/* @__PURE__ */ J(je, { children: [/* @__PURE__ */ q(Me, { children: l ? `Update the MyGeotab password for ${e?.name ?? ""}` : `Replace the Samsara secret for ${e?.name ?? ""}` }), /* @__PURE__ */ q(ke, { children: l ? "Enter the current password of the MyGeotab user this feed signs in as. The next poll signs in with it." : "Regenerate the secret on the webhook page in Samsara, then paste the new key here. Deliveries signed with the old key are refused once you save." })] }),
|
|
417
415
|
/* @__PURE__ */ J("div", {
|
|
418
416
|
className: "space-y-1.5",
|
|
419
|
-
children: [/* @__PURE__ */ q(
|
|
417
|
+
children: [/* @__PURE__ */ q(T, {
|
|
420
418
|
htmlFor: "samsara-new-secret",
|
|
421
419
|
children: l ? "New MyGeotab password" : "New Samsara webhook secret key"
|
|
422
|
-
}), /* @__PURE__ */ q(
|
|
420
|
+
}), /* @__PURE__ */ q(w, {
|
|
423
421
|
id: "samsara-new-secret",
|
|
424
422
|
type: "password",
|
|
425
423
|
autoComplete: "off",
|
|
@@ -429,13 +427,13 @@ function Ie({ integration: e, onClose: t, onReplace: n }) {
|
|
|
429
427
|
autoFocus: !0
|
|
430
428
|
})]
|
|
431
429
|
}),
|
|
432
|
-
/* @__PURE__ */ q(
|
|
433
|
-
/* @__PURE__ */ J(Ae, { children: [/* @__PURE__ */ q(
|
|
430
|
+
/* @__PURE__ */ q(v, { message: a }),
|
|
431
|
+
/* @__PURE__ */ J(Ae, { children: [/* @__PURE__ */ q(b, {
|
|
434
432
|
type: "button",
|
|
435
433
|
variant: "outline",
|
|
436
434
|
onClick: u,
|
|
437
435
|
children: "Cancel"
|
|
438
|
-
}), /* @__PURE__ */ q(
|
|
436
|
+
}), /* @__PURE__ */ q(b, {
|
|
439
437
|
type: "submit",
|
|
440
438
|
disabled: s,
|
|
441
439
|
children: s ? "Saving…" : l ? "Update password" : "Replace secret"
|
|
@@ -462,7 +460,7 @@ function Le({ url: e }) {
|
|
|
462
460
|
/* @__PURE__ */ J("li", { children: [
|
|
463
461
|
"In Samsara, open Settings → Developer → Webhooks, add a webhook with the URL above and subscribe it to",
|
|
464
462
|
" ",
|
|
465
|
-
|
|
463
|
+
M.map((e, t) => /* @__PURE__ */ J("span", { children: [t > 0 ? ", " : "", /* @__PURE__ */ q("code", {
|
|
466
464
|
className: "font-mono",
|
|
467
465
|
children: e.type
|
|
468
466
|
})] }, e.type)),
|
|
@@ -474,7 +472,7 @@ function Le({ url: e }) {
|
|
|
474
472
|
" ",
|
|
475
473
|
/* @__PURE__ */ q("code", {
|
|
476
474
|
className: "font-mono",
|
|
477
|
-
children:
|
|
475
|
+
children: A
|
|
478
476
|
}),
|
|
479
477
|
"). Without one, the Samsara vehicle name or licence plate is matched to a MoveTheWheels vehicle, and the event goes to that vehicle's single in-progress route."
|
|
480
478
|
] }),
|
|
@@ -525,7 +523,7 @@ function Re({ url: e }) {
|
|
|
525
523
|
" ",
|
|
526
524
|
/* @__PURE__ */ q("code", {
|
|
527
525
|
className: "font-mono",
|
|
528
|
-
children:
|
|
526
|
+
children: fe
|
|
529
527
|
}),
|
|
530
528
|
"; deliveries with a wrong signature are refused, and a repeated Motive event is recorded once."
|
|
531
529
|
] })
|
|
@@ -570,14 +568,14 @@ function Be({ integration: e }) {
|
|
|
570
568
|
children: [/* @__PURE__ */ q("span", {
|
|
571
569
|
className: "text-xs font-medium",
|
|
572
570
|
children: "Latest poll"
|
|
573
|
-
}), t?.lastPollStatus ? /* @__PURE__ */ q(
|
|
574
|
-
variant:
|
|
575
|
-
children:
|
|
571
|
+
}), t?.lastPollStatus ? /* @__PURE__ */ q(y, {
|
|
572
|
+
variant: be(t.lastPollStatus),
|
|
573
|
+
children: H(t.lastPollStatus)
|
|
576
574
|
}) : null]
|
|
577
575
|
}),
|
|
578
576
|
/* @__PURE__ */ q("p", {
|
|
579
577
|
className: "text-xs text-text-secondary",
|
|
580
|
-
children:
|
|
578
|
+
children: ye(t, G)
|
|
581
579
|
}),
|
|
582
580
|
t?.lastPollError ? /* @__PURE__ */ q("p", {
|
|
583
581
|
className: "break-words text-xs text-status-error-text",
|
|
@@ -587,7 +585,7 @@ function Be({ integration: e }) {
|
|
|
587
585
|
});
|
|
588
586
|
}
|
|
589
587
|
function Ve({ integrationId: e, refreshKey: t, polled: n = !1 }) {
|
|
590
|
-
let { events: r, isLoading: i, error: a } =
|
|
588
|
+
let { events: r, isLoading: i, error: a } = k(e, t);
|
|
591
589
|
return /* @__PURE__ */ J("div", {
|
|
592
590
|
className: "space-y-2",
|
|
593
591
|
children: [
|
|
@@ -595,8 +593,8 @@ function Ve({ integrationId: e, refreshKey: t, polled: n = !1 }) {
|
|
|
595
593
|
className: "text-sm font-medium",
|
|
596
594
|
children: n ? "Recent polls" : "Recent deliveries"
|
|
597
595
|
}),
|
|
598
|
-
/* @__PURE__ */ q(
|
|
599
|
-
i && r.length === 0 ? /* @__PURE__ */ q(
|
|
596
|
+
/* @__PURE__ */ q(v, { message: a?.message }),
|
|
597
|
+
i && r.length === 0 ? /* @__PURE__ */ q(D, { className: "h-12 w-full" }) : r.length === 0 ? /* @__PURE__ */ q("p", {
|
|
600
598
|
className: "text-sm text-text-secondary",
|
|
601
599
|
children: n ? "No polls with updates yet. Polls that find nothing to add are not listed." : "No deliveries yet. Send a signed test update with the example below."
|
|
602
600
|
}) : /* @__PURE__ */ q("ul", {
|
|
@@ -608,23 +606,23 @@ function Ve({ integrationId: e, refreshKey: t, polled: n = !1 }) {
|
|
|
608
606
|
children: [
|
|
609
607
|
/* @__PURE__ */ J("p", {
|
|
610
608
|
className: "text-sm font-medium",
|
|
611
|
-
children: [e.eventType ?
|
|
609
|
+
children: [e.eventType ? H(e.eventType) : n ? "Poll" : "Delivery", e.externalEventId ? /* @__PURE__ */ q("span", {
|
|
612
610
|
className: "ml-2 font-mono text-xs text-text-tertiary",
|
|
613
611
|
children: e.externalEventId
|
|
614
612
|
}) : null]
|
|
615
613
|
}),
|
|
616
614
|
/* @__PURE__ */ q("p", {
|
|
617
615
|
className: "text-xs text-text-secondary",
|
|
618
|
-
children:
|
|
616
|
+
children: G(e.receivedAt)
|
|
619
617
|
}),
|
|
620
618
|
e.errorMessage ? /* @__PURE__ */ q("p", {
|
|
621
619
|
className: "mt-1 break-words text-xs text-status-error-text",
|
|
622
620
|
children: e.errorMessage
|
|
623
621
|
}) : null
|
|
624
622
|
]
|
|
625
|
-
}), /* @__PURE__ */ q(
|
|
626
|
-
variant:
|
|
627
|
-
children:
|
|
623
|
+
}), /* @__PURE__ */ q(y, {
|
|
624
|
+
variant: L(e.status),
|
|
625
|
+
children: H(e.status)
|
|
628
626
|
})]
|
|
629
627
|
}, e.id))
|
|
630
628
|
})
|
|
@@ -694,20 +692,20 @@ function He({ url: e }) {
|
|
|
694
692
|
}),
|
|
695
693
|
/* @__PURE__ */ q($, {
|
|
696
694
|
label: "Example body",
|
|
697
|
-
value:
|
|
695
|
+
value: R(),
|
|
698
696
|
multiline: !0
|
|
699
697
|
}),
|
|
700
698
|
/* @__PURE__ */ q($, {
|
|
701
699
|
label: "Example request",
|
|
702
|
-
value:
|
|
700
|
+
value: I(e),
|
|
703
701
|
multiline: !0
|
|
704
702
|
})
|
|
705
703
|
]
|
|
706
704
|
});
|
|
707
705
|
}
|
|
708
|
-
function Ue({ integration: e, url: t, expanded:
|
|
709
|
-
let
|
|
710
|
-
return /* @__PURE__ */ q(
|
|
706
|
+
function Ue({ integration: e, url: t, expanded: i, refreshKey: l, busy: u, onToggle: d, onSetStatus: ee, onRotate: p, onPoll: m, onDelete: h }) {
|
|
707
|
+
let g = e.status === "ACTIVE", _ = _e(e.provider);
|
|
708
|
+
return /* @__PURE__ */ q(x, { children: /* @__PURE__ */ J(S, {
|
|
711
709
|
className: "p-5",
|
|
712
710
|
children: [/* @__PURE__ */ J("div", {
|
|
713
711
|
className: "flex flex-wrap items-start justify-between gap-3",
|
|
@@ -719,31 +717,31 @@ function Ue({ integration: e, url: t, expanded: a, refreshKey: l, busy: u, onTog
|
|
|
719
717
|
children: [/* @__PURE__ */ q("p", {
|
|
720
718
|
className: "text-base font-semibold",
|
|
721
719
|
children: e.name
|
|
722
|
-
}), /* @__PURE__ */ q(
|
|
723
|
-
variant:
|
|
724
|
-
children:
|
|
720
|
+
}), /* @__PURE__ */ q(y, {
|
|
721
|
+
variant: ge(e.status),
|
|
722
|
+
children: H(e.status)
|
|
725
723
|
})]
|
|
726
724
|
}),
|
|
727
725
|
/* @__PURE__ */ J("p", {
|
|
728
726
|
className: "text-xs text-text-secondary",
|
|
729
727
|
children: [
|
|
730
|
-
|
|
728
|
+
xe(e.provider),
|
|
731
729
|
" ·",
|
|
732
730
|
" ",
|
|
733
|
-
|
|
731
|
+
Se(e.status, e.provider)
|
|
734
732
|
]
|
|
735
733
|
}),
|
|
736
|
-
|
|
734
|
+
_ ? /* @__PURE__ */ q("p", {
|
|
737
735
|
className: "text-xs text-text-secondary",
|
|
738
|
-
children:
|
|
736
|
+
children: ye(e.pollStatus, G)
|
|
739
737
|
}) : null,
|
|
740
738
|
/* @__PURE__ */ J("p", {
|
|
741
739
|
className: "text-xs text-text-secondary",
|
|
742
740
|
children: [
|
|
743
741
|
"Last accepted update:",
|
|
744
742
|
" ",
|
|
745
|
-
e.lastSyncAt ?
|
|
746
|
-
e.lastErrorAt ? ` · Last error ${
|
|
743
|
+
e.lastSyncAt ? G(e.lastSyncAt) : "none yet",
|
|
744
|
+
e.lastErrorAt ? ` · Last error ${G(e.lastErrorAt)}` : ""
|
|
747
745
|
]
|
|
748
746
|
}),
|
|
749
747
|
e.lastErrorMessage ? /* @__PURE__ */ q("p", {
|
|
@@ -754,95 +752,95 @@ function Ue({ integration: e, url: t, expanded: a, refreshKey: l, busy: u, onTog
|
|
|
754
752
|
}), /* @__PURE__ */ J("div", {
|
|
755
753
|
className: "flex flex-wrap items-center gap-2",
|
|
756
754
|
children: [
|
|
757
|
-
/* @__PURE__ */ J(
|
|
755
|
+
/* @__PURE__ */ J(b, {
|
|
758
756
|
size: "sm",
|
|
759
757
|
variant: "outline",
|
|
760
758
|
disabled: u,
|
|
761
|
-
onClick: () =>
|
|
762
|
-
children: [q(
|
|
759
|
+
onClick: () => ee(g ? "PAUSED" : "ACTIVE"),
|
|
760
|
+
children: [q(g ? s : c, {
|
|
763
761
|
size: 14,
|
|
764
762
|
className: "mr-1"
|
|
765
|
-
}),
|
|
763
|
+
}), g ? "Pause" : "Resume"]
|
|
766
764
|
}),
|
|
767
|
-
|
|
765
|
+
_ ? /* @__PURE__ */ J(b, {
|
|
768
766
|
size: "sm",
|
|
769
767
|
variant: "outline",
|
|
770
|
-
disabled: u || !
|
|
771
|
-
onClick:
|
|
772
|
-
children: [/* @__PURE__ */ q(
|
|
768
|
+
disabled: u || !g,
|
|
769
|
+
onClick: m,
|
|
770
|
+
children: [/* @__PURE__ */ q(a, {
|
|
773
771
|
size: 14,
|
|
774
772
|
className: "mr-1"
|
|
775
773
|
}), "Poll now"]
|
|
776
774
|
}) : null,
|
|
777
|
-
/* @__PURE__ */ J(
|
|
775
|
+
/* @__PURE__ */ J(b, {
|
|
778
776
|
size: "sm",
|
|
779
777
|
variant: "outline",
|
|
780
778
|
disabled: u,
|
|
781
|
-
onClick:
|
|
779
|
+
onClick: p,
|
|
782
780
|
children: [/* @__PURE__ */ q(o, {
|
|
783
781
|
size: 14,
|
|
784
782
|
className: "mr-1"
|
|
785
|
-
}), e.provider === "SAMSARA" ? "Replace secret" :
|
|
783
|
+
}), e.provider === "SAMSARA" ? "Replace secret" : _ ? "Update password" : "Rotate secret"]
|
|
786
784
|
}),
|
|
787
|
-
/* @__PURE__ */ q(
|
|
785
|
+
/* @__PURE__ */ q(b, {
|
|
788
786
|
size: "sm",
|
|
789
787
|
variant: "ghost",
|
|
790
788
|
disabled: u,
|
|
791
|
-
onClick:
|
|
789
|
+
onClick: h,
|
|
792
790
|
"aria-label": `Delete ${e.name}`,
|
|
793
|
-
children: /* @__PURE__ */ q(
|
|
791
|
+
children: /* @__PURE__ */ q(f, { size: 14 })
|
|
794
792
|
}),
|
|
795
|
-
/* @__PURE__ */ q(
|
|
793
|
+
/* @__PURE__ */ q(b, {
|
|
796
794
|
size: "sm",
|
|
797
795
|
variant: "ghost",
|
|
798
796
|
onClick: d,
|
|
799
|
-
"aria-expanded":
|
|
800
|
-
"aria-label":
|
|
801
|
-
children: q(
|
|
797
|
+
"aria-expanded": i,
|
|
798
|
+
"aria-label": i ? "Hide details" : "Show details",
|
|
799
|
+
children: q(i ? r : n, { size: 16 })
|
|
802
800
|
})
|
|
803
801
|
]
|
|
804
802
|
})]
|
|
805
|
-
}),
|
|
803
|
+
}), i ? /* @__PURE__ */ J("div", {
|
|
806
804
|
className: "mt-4 grid gap-6 border-t border-border-subtle pt-4 lg:grid-cols-2",
|
|
807
|
-
children: [
|
|
805
|
+
children: [_ ? /* @__PURE__ */ q(ze, { integration: e }) : e.provider === "SAMSARA" ? /* @__PURE__ */ q(Le, { url: t }) : e.provider === "MOTIVE" ? /* @__PURE__ */ q(Re, { url: t }) : /* @__PURE__ */ q(He, { url: t }), /* @__PURE__ */ q(Ve, {
|
|
808
806
|
integrationId: e.id,
|
|
809
807
|
refreshKey: l,
|
|
810
|
-
polled:
|
|
808
|
+
polled: _
|
|
811
809
|
})]
|
|
812
810
|
}) : null]
|
|
813
811
|
}) });
|
|
814
812
|
}
|
|
815
813
|
function We() {
|
|
816
|
-
let { tenantId: e, workspaceId: t } =
|
|
814
|
+
let { tenantId: e, workspaceId: t } = O();
|
|
817
815
|
return /* @__PURE__ */ q(Ge, {}, `${e ?? ""}:${t ?? ""}`);
|
|
818
816
|
}
|
|
819
817
|
function Ge() {
|
|
820
|
-
let { apiGatewayUrl: t } =
|
|
818
|
+
let { apiGatewayUrl: t } = O(), n = oe(), { message: r, notify: i } = _(), [a, o] = K(null), [s, c] = K(Z), [f, C] = K(0), [w, T] = K(0), [ae, k] = K(null), [le, A] = K(!1), [ue, j] = K(null), [fe, M] = K([]), N = fe[0] ?? null, P = (e, t) => M((n) => [...n, {
|
|
821
819
|
name: e,
|
|
822
820
|
secret: t
|
|
823
|
-
}]),
|
|
824
|
-
if (!
|
|
825
|
-
|
|
821
|
+
}]), F = Te(/* @__PURE__ */ new Set()), [me, I] = K(() => /* @__PURE__ */ new Set()), L = async (e, t) => {
|
|
822
|
+
if (!F.current.has(e)) {
|
|
823
|
+
F.current.add(e), I(new Set(F.current));
|
|
826
824
|
try {
|
|
827
825
|
await t();
|
|
828
826
|
} finally {
|
|
829
|
-
|
|
827
|
+
F.current.delete(e), I(new Set(F.current));
|
|
830
828
|
}
|
|
831
829
|
}
|
|
832
|
-
}, { integrations:
|
|
830
|
+
}, { integrations: R, total: z, isLoading: V, error: he, refetch: ge } = ce({
|
|
833
831
|
status: s === Z ? void 0 : s,
|
|
834
832
|
limit: Ne,
|
|
835
|
-
offset:
|
|
836
|
-
}), { all:
|
|
833
|
+
offset: f * Ne
|
|
834
|
+
}), { all: ye, active: be, refetch: xe } = se(), U = Math.max(1, Math.ceil(z / Ne));
|
|
837
835
|
we(() => {
|
|
838
|
-
!
|
|
836
|
+
!V && f > 0 && f >= U && C(U - 1);
|
|
839
837
|
}, [
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
838
|
+
V,
|
|
839
|
+
f,
|
|
840
|
+
U
|
|
843
841
|
]);
|
|
844
|
-
let
|
|
845
|
-
|
|
842
|
+
let W = R.map((e) => e.lastSyncAt).filter((e) => !!e).sort(), Se = W.length > 0 ? W[W.length - 1] : void 0, Ee = (e) => Ce(t, e.workspaceId, e.id, window.location.origin), Y = () => {
|
|
843
|
+
T((e) => e + 1), ge(), xe();
|
|
846
844
|
}, X = (e) => {
|
|
847
845
|
o(null), i(e), Y();
|
|
848
846
|
}, ke = async (e, t) => {
|
|
@@ -853,35 +851,35 @@ function Ge() {
|
|
|
853
851
|
}
|
|
854
852
|
}, Ae = async (e) => {
|
|
855
853
|
if (!window.confirm(`Rotate the signing secret for ${e.name}? Deliveries signed with the old secret are refused as soon as it changes.`)) return;
|
|
856
|
-
let t =
|
|
854
|
+
let t = B();
|
|
857
855
|
try {
|
|
858
|
-
await n.update(e.id, { apiSecret: t }),
|
|
856
|
+
await n.update(e.id, { apiSecret: t }), P(e.name, t), X(`Rotated the signing secret for ${e.name}.`);
|
|
859
857
|
} catch (e) {
|
|
860
858
|
o(Q(e, "Could not rotate the signing secret."));
|
|
861
859
|
}
|
|
862
860
|
}, je = async (e, t) => {
|
|
863
|
-
await
|
|
861
|
+
await L(e.id, async () => {
|
|
864
862
|
await n.update(e.id, { apiSecret: t }), X(e.provider === "GEOTAB" ? `Updated the MyGeotab password for ${e.name}.` : `Replaced the Samsara secret for ${e.name}.`);
|
|
865
863
|
});
|
|
866
864
|
}, Me = async (e) => {
|
|
867
865
|
try {
|
|
868
866
|
let t = await n.pollNow(e.id);
|
|
869
867
|
if (t.status === "FAILED") {
|
|
870
|
-
o(
|
|
868
|
+
o(ve(e.name, t)), Y();
|
|
871
869
|
return;
|
|
872
870
|
}
|
|
873
|
-
X(
|
|
871
|
+
X(ve(e.name, t));
|
|
874
872
|
} catch (t) {
|
|
875
873
|
o(Q(t, `Could not poll ${e.name}.`));
|
|
876
874
|
}
|
|
877
875
|
}, $ = async (e) => {
|
|
878
876
|
if (window.confirm(`Delete ${e.name}? Its webhook URL stops working; tracking events it already created stay on their shipments.`)) try {
|
|
879
|
-
await n.remove(e.id),
|
|
877
|
+
await n.remove(e.id), ae === e.id && k(null), X(`Deleted ${e.name}.`);
|
|
880
878
|
} catch (e) {
|
|
881
879
|
o(Q(e, "Could not delete the integration."));
|
|
882
880
|
}
|
|
883
881
|
};
|
|
884
|
-
return /* @__PURE__ */ J(
|
|
882
|
+
return /* @__PURE__ */ J(p, {
|
|
885
883
|
title: "Integrations",
|
|
886
884
|
subtitle: "Carrier, ELD and GPS tracking feeds",
|
|
887
885
|
icon: /* @__PURE__ */ q(l, { size: 24 }),
|
|
@@ -902,26 +900,26 @@ function Ge() {
|
|
|
902
900
|
icon: /* @__PURE__ */ q(l, { size: 18 }),
|
|
903
901
|
children: "Connect the systems that already know where your freight is. Each feed gets its own signed webhook; every update it sends becomes a tracking event on the matching shipment, so status and ETA stay current without manual entry."
|
|
904
902
|
}),
|
|
905
|
-
/* @__PURE__ */ q(
|
|
906
|
-
/* @__PURE__ */ q(
|
|
907
|
-
/* @__PURE__ */ J(
|
|
903
|
+
/* @__PURE__ */ q(g, { message: r }),
|
|
904
|
+
/* @__PURE__ */ q(v, { message: a }),
|
|
905
|
+
/* @__PURE__ */ J(h, {
|
|
908
906
|
columns: 3,
|
|
909
907
|
children: [
|
|
910
|
-
/* @__PURE__ */ q(
|
|
908
|
+
/* @__PURE__ */ q(m, {
|
|
911
909
|
label: "Feeds",
|
|
912
|
-
value:
|
|
910
|
+
value: ye,
|
|
913
911
|
icon: /* @__PURE__ */ q(l, { size: 20 }),
|
|
914
912
|
accent: "brand"
|
|
915
913
|
}),
|
|
916
|
-
/* @__PURE__ */ q(
|
|
914
|
+
/* @__PURE__ */ q(m, {
|
|
917
915
|
label: "Active",
|
|
918
|
-
value:
|
|
919
|
-
icon: /* @__PURE__ */ q(
|
|
916
|
+
value: be,
|
|
917
|
+
icon: /* @__PURE__ */ q(ee, { size: 20 }),
|
|
920
918
|
accent: "success"
|
|
921
919
|
}),
|
|
922
|
-
/* @__PURE__ */ q(
|
|
920
|
+
/* @__PURE__ */ q(m, {
|
|
923
921
|
label: "Last accepted update (shown)",
|
|
924
|
-
value: Se ?
|
|
922
|
+
value: Se ? G(Se) : "—",
|
|
925
923
|
icon: /* @__PURE__ */ q(e, { size: 20 }),
|
|
926
924
|
accent: "blue"
|
|
927
925
|
})
|
|
@@ -929,29 +927,29 @@ function Ge() {
|
|
|
929
927
|
}),
|
|
930
928
|
/* @__PURE__ */ q("div", {
|
|
931
929
|
className: "flex flex-col gap-3 sm:flex-row sm:items-center",
|
|
932
|
-
children: /* @__PURE__ */ J(
|
|
930
|
+
children: /* @__PURE__ */ J(te, {
|
|
933
931
|
value: s,
|
|
934
932
|
onValueChange: (e) => {
|
|
935
|
-
c(e),
|
|
933
|
+
c(e), C(0);
|
|
936
934
|
},
|
|
937
|
-
children: [/* @__PURE__ */ q(
|
|
935
|
+
children: [/* @__PURE__ */ q(re, {
|
|
938
936
|
"aria-label": "Status",
|
|
939
937
|
className: "sm:w-56",
|
|
940
|
-
children: /* @__PURE__ */ q(
|
|
941
|
-
}), /* @__PURE__ */ J(
|
|
938
|
+
children: /* @__PURE__ */ q(ie, {})
|
|
939
|
+
}), /* @__PURE__ */ J(ne, { children: [/* @__PURE__ */ q(E, {
|
|
942
940
|
value: Z,
|
|
943
941
|
children: "All statuses"
|
|
944
|
-
}),
|
|
942
|
+
}), de.map((e) => /* @__PURE__ */ q(E, {
|
|
945
943
|
value: e,
|
|
946
|
-
children:
|
|
944
|
+
children: H(e)
|
|
947
945
|
}, e))] })]
|
|
948
946
|
})
|
|
949
947
|
}),
|
|
950
|
-
/* @__PURE__ */ q(
|
|
951
|
-
|
|
948
|
+
/* @__PURE__ */ q(v, { message: he?.message }),
|
|
949
|
+
V && R.length === 0 ? /* @__PURE__ */ J("div", {
|
|
952
950
|
className: "grid gap-4",
|
|
953
|
-
children: [/* @__PURE__ */ q(
|
|
954
|
-
}) :
|
|
951
|
+
children: [/* @__PURE__ */ q(D, { className: "h-28 w-full" }), /* @__PURE__ */ q(D, { className: "h-28 w-full" })]
|
|
952
|
+
}) : R.length === 0 && !he ? /* @__PURE__ */ q(x, { children: /* @__PURE__ */ J(S, {
|
|
955
953
|
className: "flex flex-col items-center gap-3 p-10 text-center",
|
|
956
954
|
children: [
|
|
957
955
|
/* @__PURE__ */ q(l, {
|
|
@@ -966,7 +964,7 @@ function Ge() {
|
|
|
966
964
|
className: "max-w-md text-sm text-text-secondary",
|
|
967
965
|
children: s === Z ? "Connect a carrier portal, ELD or GPS tracker so shipment updates arrive on their own." : "Choose another status to see the rest of your feeds."
|
|
968
966
|
}),
|
|
969
|
-
s === Z ? /* @__PURE__ */ J(
|
|
967
|
+
s === Z ? /* @__PURE__ */ J(b, {
|
|
970
968
|
onClick: () => A(!0),
|
|
971
969
|
children: [/* @__PURE__ */ q(u, {
|
|
972
970
|
size: 16,
|
|
@@ -976,50 +974,50 @@ function Ge() {
|
|
|
976
974
|
]
|
|
977
975
|
}) }) : /* @__PURE__ */ q("div", {
|
|
978
976
|
className: "grid gap-4",
|
|
979
|
-
children:
|
|
977
|
+
children: R.map((e) => /* @__PURE__ */ q(Ue, {
|
|
980
978
|
integration: e,
|
|
981
979
|
url: Ee(e),
|
|
982
|
-
expanded:
|
|
983
|
-
refreshKey:
|
|
984
|
-
busy:
|
|
985
|
-
onToggle: () =>
|
|
986
|
-
onSetStatus: (t) => void
|
|
987
|
-
onRotate: () => e.provider === "SAMSARA" ||
|
|
988
|
-
onPoll: () => void
|
|
989
|
-
onDelete: () => void
|
|
980
|
+
expanded: ae === e.id,
|
|
981
|
+
refreshKey: w,
|
|
982
|
+
busy: me.has(e.id),
|
|
983
|
+
onToggle: () => k((t) => t === e.id ? null : e.id),
|
|
984
|
+
onSetStatus: (t) => void L(e.id, () => ke(e, t)),
|
|
985
|
+
onRotate: () => e.provider === "SAMSARA" || _e(e.provider) ? j(e) : void L(e.id, () => Ae(e)),
|
|
986
|
+
onPoll: () => void L(e.id, () => Me(e)),
|
|
987
|
+
onDelete: () => void L(e.id, () => $(e))
|
|
990
988
|
}, e.id))
|
|
991
989
|
}),
|
|
992
|
-
|
|
990
|
+
z > Ne ? /* @__PURE__ */ J("div", {
|
|
993
991
|
className: "flex items-center justify-between text-sm",
|
|
994
992
|
children: [/* @__PURE__ */ J("span", {
|
|
995
993
|
className: "text-text-secondary",
|
|
996
994
|
children: [
|
|
997
995
|
"Page ",
|
|
998
|
-
|
|
996
|
+
f + 1,
|
|
999
997
|
" of ",
|
|
1000
|
-
|
|
998
|
+
U,
|
|
1001
999
|
" · ",
|
|
1002
|
-
|
|
1000
|
+
z,
|
|
1003
1001
|
" feeds"
|
|
1004
1002
|
]
|
|
1005
1003
|
}), /* @__PURE__ */ J("div", {
|
|
1006
1004
|
className: "flex gap-2",
|
|
1007
|
-
children: [/* @__PURE__ */ q(
|
|
1005
|
+
children: [/* @__PURE__ */ q(b, {
|
|
1008
1006
|
variant: "outline",
|
|
1009
1007
|
size: "sm",
|
|
1010
|
-
disabled:
|
|
1011
|
-
onClick: () =>
|
|
1008
|
+
disabled: f === 0,
|
|
1009
|
+
onClick: () => C((e) => e - 1),
|
|
1012
1010
|
children: "Previous"
|
|
1013
|
-
}), /* @__PURE__ */ q(
|
|
1011
|
+
}), /* @__PURE__ */ q(b, {
|
|
1014
1012
|
variant: "outline",
|
|
1015
1013
|
size: "sm",
|
|
1016
|
-
disabled:
|
|
1017
|
-
onClick: () =>
|
|
1014
|
+
disabled: f + 1 >= U,
|
|
1015
|
+
onClick: () => C((e) => e + 1),
|
|
1018
1016
|
children: "Next"
|
|
1019
1017
|
})]
|
|
1020
1018
|
})]
|
|
1021
1019
|
}) : null,
|
|
1022
|
-
/* @__PURE__ */ q(
|
|
1020
|
+
/* @__PURE__ */ q(x, { children: /* @__PURE__ */ J(S, {
|
|
1023
1021
|
className: "space-y-2 p-5",
|
|
1024
1022
|
children: [
|
|
1025
1023
|
/* @__PURE__ */ q("p", {
|
|
@@ -1030,26 +1028,26 @@ function Ge() {
|
|
|
1030
1028
|
className: "text-sm text-text-secondary",
|
|
1031
1029
|
children: [
|
|
1032
1030
|
"Samsara, Motive and Geotab connect directly: choose them when you connect a feed. Direct connections to ",
|
|
1033
|
-
|
|
1031
|
+
pe.map((e) => e.label).join(", "),
|
|
1034
1032
|
" are not available yet. Until they are, any carrier or telematics system that can send HTTPS webhooks connects through a signed feed above."
|
|
1035
1033
|
]
|
|
1036
1034
|
}),
|
|
1037
1035
|
/* @__PURE__ */ J("div", {
|
|
1038
1036
|
className: "flex flex-wrap gap-2",
|
|
1039
1037
|
children: [
|
|
1040
|
-
/* @__PURE__ */ q(
|
|
1038
|
+
/* @__PURE__ */ q(y, {
|
|
1041
1039
|
variant: "default",
|
|
1042
1040
|
children: "Samsara · available"
|
|
1043
1041
|
}),
|
|
1044
|
-
/* @__PURE__ */ q(
|
|
1042
|
+
/* @__PURE__ */ q(y, {
|
|
1045
1043
|
variant: "default",
|
|
1046
1044
|
children: "Motive · available"
|
|
1047
1045
|
}),
|
|
1048
|
-
/* @__PURE__ */ q(
|
|
1046
|
+
/* @__PURE__ */ q(y, {
|
|
1049
1047
|
variant: "default",
|
|
1050
1048
|
children: "Geotab · available"
|
|
1051
1049
|
}),
|
|
1052
|
-
|
|
1050
|
+
pe.map((e) => /* @__PURE__ */ J(y, {
|
|
1053
1051
|
variant: "outline",
|
|
1054
1052
|
children: [e.label, " · not available yet"]
|
|
1055
1053
|
}, e.id))
|
|
@@ -1058,24 +1056,23 @@ function Ge() {
|
|
|
1058
1056
|
]
|
|
1059
1057
|
}) }),
|
|
1060
1058
|
/* @__PURE__ */ q(Fe, {
|
|
1061
|
-
open:
|
|
1059
|
+
open: le,
|
|
1062
1060
|
onOpenChange: A,
|
|
1063
1061
|
onCreated: (e, t) => {
|
|
1064
|
-
|
|
1062
|
+
k(e.id), t && P(e.name, t), X(`Connected ${e.name}.`);
|
|
1065
1063
|
}
|
|
1066
1064
|
}),
|
|
1067
1065
|
/* @__PURE__ */ q(Ie, {
|
|
1068
|
-
integration:
|
|
1069
|
-
onClose: () =>
|
|
1066
|
+
integration: ue,
|
|
1067
|
+
onClose: () => j(null),
|
|
1070
1068
|
onReplace: je
|
|
1071
1069
|
}),
|
|
1072
1070
|
/* @__PURE__ */ q(Pe, {
|
|
1073
|
-
secret:
|
|
1074
|
-
integrationName:
|
|
1075
|
-
onClose: () =>
|
|
1071
|
+
secret: N?.secret ?? null,
|
|
1072
|
+
integrationName: N?.name ?? "",
|
|
1073
|
+
onClose: () => M((e) => e.slice(1))
|
|
1076
1074
|
})
|
|
1077
1075
|
]
|
|
1078
1076
|
});
|
|
1079
1077
|
}
|
|
1080
|
-
//#endregion
|
|
1081
1078
|
export { We as default };
|