{"version":3,"file":"9AD-N2M2.js","sources":["../../../../components/ScreenSuccess/ScreenSuccess.vue","../../../../composables/useSuccessScreen/useSuccessScreen.ts"],"sourcesContent":["\n","import { onUnmounted, ref } from 'vue';\nconst TIMEROUT = 1000;\n\nexport const useSuccessScreen = () => {\n const isSuccessVisible = ref(false);\n const timerId = ref | null>(null);\n\n const showSuccessScreen = () => {\n timerId.value = setTimeout(() => {\n isSuccessVisible.value = true;\n }, TIMEROUT);\n };\n\n const hideSuccessScreen = () => {\n isSuccessVisible.value = false;\n };\n\n onUnmounted(() => {\n if (timerId.value) {\n clearTimeout(timerId.value);\n }\n });\n\n return {\n isSuccessVisible,\n showSuccessScreen,\n hideSuccessScreen\n };\n};\n"],"names":["_openBlock","_createElementBlock","_hoisted_1","_createVNode","_component_BaseImage","_renderSlot","_ctx","TIMEROUT","useSuccessScreen","isSuccessVisible","ref","timerId","showSuccessScreen","hideSuccessScreen","onUnmounted"],"mappings":"+hBAEgFA,EAAA,EAAAC,EAAA,MAAAC,EAAA,CAAjEC,EAA0BC,EAAA,CAAC,IAAK,uBAAQ,MAAsB,8BAC5C,EAC7BC,EAA0BC,EAAA,OAAA,SAAA,EAC1BD,EAAyBC,EAAA,OAAA,MAAA,kDCJvBC,EAAW,IAEJC,EAAmB,IAAM,CAC9B,MAAAC,EAAmBC,EAAI,EAAK,EAC5BC,EAAUD,EAA0C,IAAI,EAExDE,EAAoB,IAAM,CACtBD,EAAA,MAAQ,WAAW,IAAM,CAC/BF,EAAiB,MAAQ,IACxBF,CAAQ,CACb,EAEMM,EAAoB,IAAM,CAC9BJ,EAAiB,MAAQ,EAC3B,EAEA,OAAAK,EAAY,IAAM,CACZH,EAAQ,OACV,aAAaA,EAAQ,KAAK,CAC5B,CACD,EAEM,CACL,iBAAAF,EACA,kBAAAG,EACA,kBAAAC,CACF,CACF"}