{"version":3,"file":"lab-time.a905172378847f160f0b.js","mappings":"mHAcAA,OAAOC,aATP,SAAsBC,GAEpB,OAAIA,aAA2BC,QAAUD,EAAgBE,eAAe,QAC/D,IAAIC,KAAKH,EAAgBI,MAAMC,mBAAmB,GAAI,CAAEC,KAAM,UAAWC,OAAQ,YAGnF,IAAIJ,KAAKH,EAClB,C","sources":["webpack://stdcheck-exposed-wp-theme/./themes/stdcheck-exposed/src/js/lab-time.js"],"sourcesContent":["/**\n * Toggles the menu icon on click.\n * @param {Object} structure_hours containing the lab hours on structure time ( Day Open & close time )\n * @return string the structure hours on the format hh:mm AM/PM\n */\nfunction printLabTime(structure_hours) {\n  // From php Carbon\n  if (structure_hours instanceof Object && structure_hours.hasOwnProperty('date')) {\n    return new Date(structure_hours.date).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });\n  }\n\n  return new Date(structure_hours);\n}\n\nwindow.printLabTime = printLabTime;\n"],"names":["window","printLabTime","structure_hours","Object","hasOwnProperty","Date","date","toLocaleTimeString","hour","minute"],"sourceRoot":""}