var p=Object.defineProperty;var y=(i,e,t)=>e in i?p(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var u=(i,e,t)=>(y(i,typeof e!="symbol"?e+"":e,t),t);const d=class{static formatDayOfMonth(e){const t={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0};return new Intl.DateTimeFormat("es-PE",t).format(e)}static formatShortDayOfMonth(e){const t={year:"numeric",month:"short",day:"numeric"};return new Intl.DateTimeFormat("es-PE",t).format(e)}static formatShort(e){const t={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0};return new Intl.DateTimeFormat("es-PE",t).format(e)}};let c=d;u(c,"toValidDate",e=>{const[t,r]=e.split(" "),[n,a,o]=t.split("-"),[s,l,m]=r.split(":");return new Date(parseInt(o),parseInt(a)-1,parseInt(n),parseInt(s),parseInt(l),parseInt(m))}),u(c,"formatDateTimePickerComponent",(e,t="Y-m-d hh:mm:ss")=>{let r;e?r=new Date(d.toValidDate(e)):r=new Date,r.setHours(12,59,59,0);const n=h=>h.toString().padStart(2,"0"),a=r.getFullYear(),o=n(r.getMonth()+1),s=n(r.getDate()),l=n(r.getHours()),m=n(r.getMinutes()),f=n(r.getSeconds());return t==="Y-m-d hh:mm:ss"?`${a}-${o}-${s} ${l}:${m}:${f}`:r.toString()}),u(c,"timeAgo",e=>{const t=Math.floor((new Date().getTime()-e.getTime())/1e3),r=Math.floor(t/31536e3);if(r>1)return`Hace ${r} años`;if(r===1)return`Hace ${r} año`;const n=Math.floor(t/2628e3);if(n>1)return`Hace ${n} meses`;if(n===1)return`Hace ${n} mes`;const a=Math.floor(t/86400);if(a>1)return`Hace ${a} dias`;if(a===1)return`Hace ${a} día`;const o=Math.floor(t/3600);if(o>1)return`Hace ${o} horas`;if(o===1)return`Hace ${o} hora`;const s=Math.floor(t/60);return s>1?`Hace ${s} minutos`:s===1?`Hace ${s} minuto`:"ahora"});const T={categories:[],contractTypes:[],locations:[],schedules:[],companies:[],salaryRanges:[],dateFilters:[],orderBy:[],departments:[],provincies:[],isAdmin:!1},O={orderBy:null,categoryId:null,dateFilter:null,salary:null,scheduleId:null,locationId:null,contractTypeId:null,province:null,companyId:null,search:null,perPage:20,page:1},$={title:null,description:"<br>",requirements:"<br>",benefits:"<br>",companyId:null,categoryId:null,contractTypeId:null,locationId:null,scheduleId:null,salary:0,salaryCurrency:"SOL",address:"",department:"",province:"",country:"PERÚ",publicationDate:c.formatDateTimePickerComponent(),attachments:null};export{O as D,T as a,c as b,$ as c};
