{ "version": 3, "sources": ["../javascripts/actions/liveshopping.ts"], "sourcesContent": ["import type { Dispatch } from '@reduxjs/toolkit';\nimport type { BaseAction } from '../@types/actions';\n\nexport const SET_LIVE_SHOPPING_REFERENCE = 'SET_LIVE_SHOPPING_REFERENCE';\ntype SET_LIVESHOPPING_REFERENCE_TYPE = BaseAction & {\n reference: string;\n};\nexport const CLEAR_LIVE_SHOPPING_REFERENCE = 'CLEAR_LIVE_SHOPPING_REFERENCE';\ntype CLEAR_LIVE_SHOPPING_REFERENCE_TYPE = BaseAction;\n\nexport type LIVESHOPPING_ACTION =\n | SET_LIVESHOPPING_REFERENCE_TYPE\n | CLEAR_LIVE_SHOPPING_REFERENCE_TYPE;\n\nexport const setLiveshoppingReference = (reference: string) => (dispatch: Dispatch) =>\n dispatch({ type: SET_LIVE_SHOPPING_REFERENCE, reference });\n\nexport const clearLiveshoppingReference = () => (dispatch: Dispatch) =>\n dispatch({ type: CLEAR_LIVE_SHOPPING_REFERENCE });\n"], "mappings": "AAGO,IAAMA,EAA8B,8BAI9BC,EAAgC,gCAOhCC,EAA4BC,GAAuBC,GAC9DA,EAAS,CAAE,KAAMJ,EAA6B,UAAAG,CAAU,CAAC,EAE9CE,EAA6B,IAAOD,GAC/CA,EAAS,CAAE,KAAMH,CAA8B,CAAC", "names": ["SET_LIVE_SHOPPING_REFERENCE", "CLEAR_LIVE_SHOPPING_REFERENCE", "setLiveshoppingReference", "reference", "dispatch", "clearLiveshoppingReference"] }