import{createStore as l}from"zustand";import{identity as e}from"lodash";import{getEffectiveIsLoadAllWells as s}from"./utils/getEffectiveIsLoadAllWells.js";var o=function(o){var n,t=s({offsetSettingsIsLoadAllWells:null===(n=o.offsetSettings)||void 0===n?void 0:n.isLoadAllWells,loadAllWellsByDefault:o.loadAllWellsByDefault,isGlobalMode:o.isGlobalMode});return l()((function(l){var n,a,i,d,u,r,f,W,A,c;return{segment:null!==(n=o.segment)&&void 0!==n?n:"drilling",open:o.open,defaultSubjectWell:o.defaultSubjectWell,offsetSettings:o.offsetSettings,currentUser:o.currentUser,addWellsUsabilityInfo:null!==(a=o.addWellsUsabilityInfo)&&void 0!==a?a:e,onSave:o.onSave,onClose:o.onClose,isViewOnly:null!==(i=o.isViewOnly)&&void 0!==i&&i,isWDUser:null!==(d=o.isWDUser)&&void 0!==d&&d,maxOffsetSize:null!==(u=o.maxOffsetSize)&&void 0!==u?u:50,localMaxOffsetSize:null!==(r=o.localMaxOffsetSize)&&void 0!==r?r:50,syncAutoEnabled:null!==(f=o.syncAutoEnabled)&&void 0!==f&&f,isManualWellsEnabled:null!==(W=o.isManualWellsEnabled)&&void 0!==W&&W,isGlobalMode:null!==(A=o.isGlobalMode)&&void 0!==A&&A,loadAllWellsByDefault:o.loadAllWellsByDefault,additionalFilterControls:null!==(c=o.additionalFilterControls)&&void 0!==c?c:[],isLoadAllWells:t,allWellsLoadProgress:null,shouldRecenter:!1,toggleLoadAllWells:function(){l((function(l){return{isLoadAllWells:!l.isLoadAllWells,allWellsLoadProgress:null}}))},resetIsLoadAllWells:function(){l((function(l){var e;return{isLoadAllWells:s({offsetSettingsIsLoadAllWells:null===(e=l.offsetSettings)||void 0===e?void 0:e.isLoadAllWells,loadAllWellsByDefault:l.loadAllWellsByDefault,isGlobalMode:l.isGlobalMode}),allWellsLoadProgress:null}}))},setIsLoadAllWells:function(e){l({isLoadAllWells:e,allWellsLoadProgress:null})},setAllWellsLoadProgress:function(e){l({allWellsLoadProgress:e})},setShouldRecenter:function(e){l({shouldRecenter:e})}}}))};export{o as createPickerPropsStore};
//# sourceMappingURL=createPickerPropsStore.js.map
