import{checkoutMachine}from"../../../src/components/providers/form-state-provider/checkout-machine";import{interpret}from"@xstate/fsm";import{speak}from"@wordpress/a11y";import state,{onChange}from"./store";const service=interpret(checkoutMachine);service.subscribe((e=>state.formState=e)),service.start(),onChange("formState",(()=>{const{formState:e}=state,{value:t}=e;void 0!==state.text.loading[t]&&speak(state.text.loading[t],"assertive")}));export default service;