import t from"@babel/runtime/helpers/defineProperty";import{useRef as o,useEffect as r}from"react";import"../clients/subscriptions/constants.js";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"lodash";import"../clients/subscriptions.v1.js";import"../clients/jsonApi/index.js";import"../clients/subscriptions/subscriptions-client.factory.js";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"../components/GradientManager/configuration/constants.js";import"../utils/index.js";import"uuid";import"jsona";import"../utils/env.js";import"../components/StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";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"lodash/isEmpty";import"lodash/sortBy";import"../constants/streamSourceType.js";import"../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import{useAppCommons as s}from"../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../componentsV2/AppSettings/AppSettingsPinningContext.js";function e(t,o){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);o&&(s=s.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.push.apply(r,s)}return r}function n(o){for(var r=1;r<arguments.length;r++){var s=null!=arguments[r]?arguments[r]:{};r%2?e(Object(s),!0).forEach((function(r){t(o,r,s[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):e(Object(s)).forEach((function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(s,t))}))}return o}var i=function(t,e,i){var p=s(),m=null==p?void 0:p.globalOffsetWells,c=null==p?void 0:p.globalOffsetWellsVersion,a=o();r((function(){if(m&&Array.isArray(m)&&void 0!==c)if(void 0!==a.current){if(a.current!==c){a.current=c;var o=m.slice(0,i),r=o.map((function(t){return t.id}));e(n(n({},t||{}),{},{selectedWellIds:r}),o)}}else a.current=c}),[c,m,i,t,e])};export{i as useGlobalOffsetWellsSync};
//# sourceMappingURL=useGlobalOffsetWellsSync.js.map
