File manager - Edit - /home/autoph/public_html/projects/ahg-hr/assets/HelperService.e2fd9eef.js
Back
import{q as u}from"./index.e8902503.js";const s={shortenedText(e,r=5){const t=e.replace(/-/g," ").split(" ");return t.length>r?t.slice(0,r).join(" ")+"...":e},formatNumber(e,r=2,t=!0){return t?parseFloat(e).toFixed(r).replace(/\B(?=(\d{3})+(?!\d))/g,","):parseFloat(parseFloat(e).toFixed(r))},formatHoursMinute(e,r="minutes"){let t=0,o=0;r=="minutes"?e>=60?(t=Math.floor(e/60),o=Math.round(e%60)):o=Math.round(e):r=="hours"&&(t=Math.floor(e),o=Math.round((e-t)*60));const a=o.toString().padStart(2,"0");return t===0&&o===0?"0":`${t}.${a}`},ucWords(e){return e.toLowerCase().replace(/\b\w/g,r=>r.toUpperCase())},formatDate(e,r="MMM DD, Y"){return u(e).format(r)},formatTime(e,r="hh:mm A"){return u(e,"HH:mm:ss").format(r,"")},getMonthMap(){return{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},getYearMap(e=2023){const r=new Date().getFullYear(),t=[];for(let o=r;o>=e;o--)t.push(o);return t}};export{s as H};
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings