import { c as createStore } from './index6.js';

const { state, onChange, dispose } = createStore({
  id: '',
  method: '',
  manual: false,
});

// handle manual processors
onChange('id', () => {
  state.manual = (state === null || state === void 0 ? void 0 : state.id) && !['paypal', 'stripe', 'mollie'].includes(state.id);
});

export { onChange as o, state as s };
