'use strict';
import { createContext, useContext } from 'react';
import { metaErrorMessages } from '../constants/meta-error-messages-constants.js';
import { createError } from '../../../fd-toolbox/errors/errors.js';

var __defProp=Object['defineProperty'],__name=(_0x402b4d,_0x511004)=>__defProp(_0x402b4d,'name',{'value':_0x511004,'configurable':!![]});const saveCompleteNaming={'hook':'useSaveComplete','provider':'SaveCompleteProvider'};const SaveCompleteContext=createContext(void(-0x3fb*-0x7+0x1*0x1139+0x3a*-0xc7));function useSaveComplete(){const _0x101669=useContext(SaveCompleteContext);if(!_0x101669)throw createError(metaErrorMessages['hookWithoutProvider']['replace']('{0}',saveCompleteNaming['hook'])['replace']('{1}',saveCompleteNaming['provider']));return _0x101669;}__name(useSaveComplete,'useSaveComplete');

export { SaveCompleteContext, useSaveComplete };
