import{jsx as t}from"react/jsx-runtime";import{useMemo as o}from"react";import{usePickerPropsStore as s}from"../../../../stores/picker-props-store/usePickerPropsStore.js";import{CompanySafeguardContext as r}from"../../../../stores/company-safeguard/CompanySafeguardContext.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"lodash";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../../../../clients/jsonApi/index.js";import"../../../../../../clients/subscriptions/constants.js";import"../../../../../../clients/subscriptions.v1.js";import"../../../../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../../../../clients/api/apiCore.js";import"../../../../../../clients/constants.js";import"../../../../../../clients/sso/auth0.js";import"../../../../../../clients/sso/oauth2.js";import"../../../../../../clients/api/rateLimiter.js";import"../../../../constants.js";import"../../../../api/shared/dataFormatter.js";import"zustand";import"../../../../stores/picker-props-store/PickerPropsStoreContext.js";import"@babel/runtime/helpers/objectWithoutProperties";import"../../../../viewport/ViewportProvider.js";import"../../../../viewport/ViewportContext.js";import"querystring";import"uuid/v1";import"immutable";import"query-string";import"../../../../../../constants/goals.js";import"../../../../../../constants/segment.js";import"../../../../../../constants/alerts.js";import"../../../../../../constants/apps.js";import"../../../../../../constants/drillstring.js";import"../../../../../../constants/completion.js";import"../../../../../../constants/appPackages.js";import"../../../../../../constants/notifications.js";import"../../../../../../constants/feed.js";import"../../../../../../constants/bha.js";import"../../../../../../constants/corvaCompanyId.js";import"../../../../../GradientManager/configuration/constants.js";import"../../../../../../utils/index.js";import"jsona";import"../../../../../../utils/env.js";import"../../../../../StatusBadge/constants.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../../../../../constants/streamSourceType.js";import"../../../../../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../../../../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../../../../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../../../../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../../../stores/filter-store/FilterStoreContext.js";import"../../../../stores/filter-store/utils/cascade-hierarchies.js";import"react-virtualized";import{useCompanies as e}from"../../../../hooks/useCompanies.js";import"lodash/debounce";import"../../../../stores/viewport-store/ViewportStoreContext.js";import"lz-string";import"@mapbox/tilebelt";import"../../../Map/OffsetWellMap/constants.js";import"lodash/isEqual";import"../../../../stores/viewport-store/ViewportStoreProvider.js";import{useLoadAllWellsCompanySafeguard as i}from"../../../../hooks/useLoadAllWellsCompanySafeguard.js";import"../../../../utils/getCoordinatedWells.js";import"geolib";import"../../../../../../utils/convert.js";import"@babel/runtime/helpers/typeof";import"../../../../stores/idas-resync-store/IdasResyncStoreContext.js";import"../../../../stores/idas-resync-store/IdasResyncStoreProvider.js";import"../../../../hooks/use-well-data-pipeline/useCompanyMetricKey.js";import"../../../../hooks/use-well-data-pipeline/wellTransformations.js";var p=function(p){var n=p.children,a=s((function(t){return t.open})),m=e({open:a}),c=m.canViewCompanies,l=m.canViewCompaniesLoading,d=m.companies,u=i({companies:d,canViewCompanies:c,canViewCompaniesLoading:l}),j=u.isSafeguardReady,C=u.safeguardAppliedCompanyId,g=u.targetCompanyId,f=u.resetSafeguard,h=o((function(){return{companies:d,canViewCompanies:c,isSafeguardReady:j,safeguardAppliedCompanyId:C,targetCompanyId:g,resetSafeguard:f}}),[d,c,j,C,g,f]);return t(r.Provider,{value:h,children:n})};p.displayName="CompanySafeguardWrapper";export{p as CompanySafeguardWrapper};
//# sourceMappingURL=CompanySafeguardWrapper.js.map
