{"version":3,"file":"useMatchingExplanation-upOzSOVF.js","sources":["../../../app/javascript/modules/growthmentor/matches-v2/composables/useMatchingExplanation.ts"],"sourcesContent":["import { useActionCable } from '@/shared/composables/useActionCable.ts'\nimport { MENTORS_MATCHING_EXPLANATION_CHANNEL } from '@/shared/data/actionCableChannels.js'\nimport { useDebugger } from '@/shared/composables/useDebugger.js'\nimport { onMounted } from 'vue'\n\nexport const useMatchingExplanation = ({\n onReceived,\n}: {\n onReceived: (data: unknown) => void\n}) => {\n const { $debug } = useDebugger()\n\n const { subscribeChannel } = useActionCable({\n channelName: MENTORS_MATCHING_EXPLANATION_CHANNEL,\n onConnected: () => {\n $debug(`[AC Channel: ${MENTORS_MATCHING_EXPLANATION_CHANNEL}] connected`)\n },\n onReceived: (data) => {\n onReceived(data)\n },\n })\n\n onMounted(() => {\n subscribeChannel()\n })\n}\n"],"names":["useMatchingExplanation","onReceived","$debug","useDebugger","subscribeChannel","useActionCable","MENTORS_MATCHING_EXPLANATION_CHANNEL","data","onMounted"],"mappings":"6sEAKaA,EAAyB,CAAC,CACrC,WAAAC,CACF,IAEM,CACE,KAAA,CAAE,OAAAC,GAAWC,IAEb,CAAE,iBAAAC,CAAiB,EAAIC,EAAe,CAC1C,YAAaC,EACb,YAAa,IAAM,CACVJ,EAAA,gBAAgBI,CAAoC,aAAa,CAC1E,EACA,WAAaC,GAAS,CACpBN,EAAWM,CAAI,CACjB,CAAA,CACD,EAEDC,EAAU,IAAM,CACGJ,GAAA,CAClB,CACH"}