{"version":3,"file":"videoDuration-BoaXHcsH.js","sources":["../../../app/javascript/shared/utils/videoDuration.js"],"sourcesContent":["// Duration argument is in seconds\nconst formatDuration = (duration) => {\n const minutes = getMinutes(duration)\n const seconds = getSeconds(duration)\n return `${minutes}:${seconds < 10 ? `0${seconds}` : seconds}`\n}\n\nconst getMinutes = (duration) => {\n return Math.floor(duration / 60)\n}\n\nconst getSeconds = (duration) => {\n return duration % 60\n}\n\nexport { formatDuration, getMinutes, getSeconds }\n"],"names":["formatDuration","duration","minutes","getMinutes","seconds","getSeconds"],"mappings":"AACK,MAACA,EAAkBC,GAAa,CACnC,MAAMC,EAAUC,EAAWF,CAAQ,EAC7BG,EAAUC,EAAWJ,CAAQ,EACnC,MAAO,GAAGC,CAAO,IAAIE,EAAU,GAAK,IAAIA,CAAO,GAAKA,CAAO,EAC7D,EAEMD,EAAcF,GACX,KAAK,MAAMA,EAAW,EAAE,EAG3BI,EAAcJ,GACXA,EAAW"}