File manager - Edit - /home/autoph/public_html/projects/ahg-hr/assets/index.93f9d37a.js
Back
import{w as $,L as ee}from"./index.a2e6eae1.js";import{C as te}from"./index.80034d43.js";import{B as se}from"./index.cc73f214.js";import{B as ie}from"./index.6e6276ec.js";import{I as V}from"./index.0683473b.js";import{I as oe}from"./index.a2c793b0.js";import"./lodash.436e061f.js";import{_ as D,r as m,o as l,c as p,w as f,j as d,d as o,f as b,t as y,k as L,e as a,b as u,p as re,s as ne}from"./index.85badd64.js";import{E as B}from"./EmployeeTimeAdjusmentService.98d5ef04.js";import{C as I}from"./CloseButton.d4d5b449.js";import{C as ae}from"./CreateButton.69489aea.js";import{D as le}from"./DeleteButton.f13880af.js";import{E as me}from"./EditButton.f8e95215.js";/* empty css */import{S as M}from"./SubmitButton.fbd40930.js";import{V as ce}from"./ViewButton.13bd1aa9.js";import{A as de}from"./ActionCellRenderer.e268db3d.js";/* empty css */import"./vue-cleave.min.5fe175a4.js";import{c as fe,a as E,V as R}from"./array.e024b95a.js";import{L as O}from"./Loading.585cd43f.js";import"./vue-quill.snow.37e2074d.js";/* empty css */import{F as j}from"./index.d64b81fa.js";import{F as U}from"./index.1361a4ca.js";import{T as P}from"./index.4b5a3e02.js";import{T as H}from"./index.00e97a5e.js";import{U as z}from"./UpdateButton.7c791611.js";import"./jspdf.es.min.23081428.js";/* empty css */import{A as q}from"./ApproverService.ab09ac07.js";import{F as G}from"./FileService.f48416f8.js";import{M as Y}from"./Multiselect.a507ebe0.js";import{F as ue}from"./index.95c1c484.js";import{F as W}from"./index.2b90fc01.js";import{C as N}from"./index.a33bfc5d.js";import{A as he}from"./index.554b08cb.js";import{p as Z,j as K}from"./scr-1.d9aaecca.js";import{P as pe}from"./index.cf4c1c51.js";import{A as ge}from"./main.esm.35b2f04c.js";import{D as _e}from"./DenyButton.8ee62a2e.js";import{T as S}from"./TimeAdjustmentApprovalService.f59426d1.js";import{f as ye}from"./apiUtils.a5c0e9e2.js";import{F as ve}from"./index.90fa1727.js";import"./logo-black.7c15feb3.js";import"./logo-white.b04c5a89.js";import"./transition.47a550d7.js";import"./EmployeeService.9af9860f.js";import"./es.string.replace.52fb44b9.js";import"./Loading.vue_vue_type_style_index_0_scoped_cbded5a2_lang.ffa9415b.js";import"./index.9cc1ebc8.js";import"./ck-white.4bf441fa.js";import"./CompanyService.3bc3e8e7.js";import"./DealershipService.f84ce80b.js";import"./DepartmentService.f3eac72a.js";import"./DivisionService.ccdd7240.js";import"./EmploymentTypeService.722aa14d.js";import"./GroupService.fd7dccf7.js";import"./JobClassficationService.05b84574.js";import"./JobTitleService.f399f1b2.js";import"./SectionService.4f10ceb0.js";import"./SupportingDocumentService.d68a6798.js";import"./UnitService.5565ff86.js";import"./CitizenshipService.b30ca72f.js";import"./CivilStatusService.4a6966f9.js";import"./ReligionService.b056f0be.js";import"./index.53d9b6cb.js";const we={components:{Alert:he,FileType:W,Fileinput:ue,FormModal:U,FormGroup:j,TextInput:P,Textarea:H,SubmitButton:M,UpdateButton:z,CloseButton:I,Loading:O,Multiselect:Y,Icon:V,Checkbox:N},data(){return{inOutOptions:[{value:0,label:"IN"},{value:1,label:"OUT"}],recommending:"",recommending_img:"",approving:"",approving_img:"",form:{date:"",date_to:"",time:null,in_out:"",description:"",attachment:"",recommending_id:"",allow_higher_approval:"",approver_id:""},errors:{},state:{isEdit:!1,isSaving:!1,isLoading:!1,isCompanyLoading:!1},fileIcons:{pdf:Z,jpg:K,default:""}}},methods:{deleteFile(t){this.$swal.fire({title:"Are you sure you want remove the attachment?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(e=>{e.value&&this.deleteFileAttachment()}),console.log("wawawawa",t)},async deleteFileAttachment(){const t=this.form.id,e=this.form.attachment,i={id:t,attachment:e};await B.removeAttachment(i).then(n=>{n.status==201?(this.$swal.fire({title:"Great!",text:"Attachment successfully deleted.",icon:"success",timer:2e3}),this.state.isSaving=!1,this.form.attachment="",console.log("null dapat",this.form.attachment)):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3}),this.reload()}).catch(n=>{n.response.status==422?this.$swal.fire({title:"Ooops! something is wrong.",text:n.response.data.message,icon:"warning"}):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3})})},getFileTypeImage(t){if(typeof t=="string"){if(!t)return this.fileIcons.default;const e=t.substring(t.lastIndexOf(".")+1).toLowerCase();return this.fileIcons[e]||this.fileIcons.default}},async viewAttachment(t){if(this.state.isDownloading)return;this.state.isDownloading=!0;let e=await G.Reader2("employee-overtime",t),i;if(t.endsWith(".pdf"))i="application/pdf";else if(t.endsWith(".png"))i="image/png";else if(t.endsWith(".jpg")||t.endsWith(".jpeg"))i="image/jpeg";else if(t.endsWith(".svg"))i="image/svg+xml";else throw new Error("Unsupported file type");const n=atob(e),s=new Array(n.length);for(let c=0;c<n.length;c++)s[c]=n.charCodeAt(c);const r=new Uint8Array(s),g=new Blob([r],{type:i}),v=URL.createObjectURL(g);window.open(v),this.state.isLoadingPDF=!1},reload(){return this.$emit("reload")},handleMainImageUpload(){const t=event.target.files[0];this.form.attachment=t;const e=new FileReader;e.onload=()=>{t.type.startsWith("image/")?this.form.imageView=e.result:t.type==="application/pdf"?this.form.imageView=this.pdf_file_view:t.type==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"&&(this.form.imageView=this.excel_file_view)},console.log(t),e.readAsDataURL(t)},loadRecord(t){this.resetForm(),this.state.isEdit=!0,this.form=t,this.form.meal=t.meal==1,this.form.transportation=t.transportation==1},closeModal(){this.state.showModal=!1},resetForm(){this.state.isEdit=!1,this.form={date:"",in_out:"",time:null,description:"",attachment:"",allow_higher_approval:"",recommending_id:this.form.recommending_id,approver_id:this.form.approver_id}},async fetchApprover(){this.state.isLoading=!0,await q.fetchApproverRecords().then(t=>{this.$store.userSettings.getActiveUser.employees.classification_id==1&&t.data.map(e=>{this.form.allow_higher_approval?((e.classification_id==2||e.classification_id==1)&&(this.form.recommending_id=e.employee_id,this.recommending=e.firstname+" "+e.lastname,this.recommending_img=e.attachment||""),this.recommending==""&&e.classification_id==3&&(this.form.recommending_id=e.employee_id,this.recommending=e.firstname+" "+e.lastname,this.recommending_img=e.attachment||""),e.classification_id==3&&(this.form.approver_id=e.employee_id,this.approving=e.firstname+" "+e.lastname,this.approving_img=e.attachment||""),this.approving==""&&e.classification_id==4&&(this.form.approver_id=e.employee_id,this.approving=e.firstname+" "+e.lastname,this.approving_img=e.attachment||"")):((e.classification_id==2||e.classification_id==1)&&(this.form.recommending_id=e.employee_id,this.recommending=e.firstname+" "+e.lastname,this.recommending_img=e.attachment||"",this.form.approver_id=e.employee_id,this.approving=e.firstname+" "+e.lastname,this.approving_img=e.attachment||""),this.recommending==""&&e.classification_id==3&&(this.form.recommending_id=e.employee_id,this.recommending=e.firstname+" "+e.lastname,this.recommending_img=e.attachment||"",this.form.approver_id=e.employee_id,this.approving=e.firstname+" "+e.lastname,this.approving_img=e.attachment||""))}),this.$store.userSettings.getActiveUser.employees.classification_id==2&&t.data.map(e=>{e.classification_id==3&&(this.form.recommending_id=e.employee_id,this.recommending=e.firstname+" "+e.lastname,this.recommending_img=e.attachment||""),this.recommending==""&&e.classification_id==4&&(this.form.recommending_id=e.employee_id,this.recommending=e.firstname+" "+e.lastname,this.recommending_img=e.attachment||""),e.classification_id==4&&(this.form.approver_id=e.employee_id,this.approving=e.firstname+" "+e.lastname,this.approving_img=e.attachment||"")}),this.$store.userSettings.getActiveUser.employees.classification_id==3&&t.data.map(e=>{e.classification_id==3&&(this.form.recommending_id=e.employee_id,this.recommending=e.firstname+" "+e.lastname,this.recommending_img=e.attachment||""),this.recommending==""&&e.classification_id==4&&(this.form.recommending_id=e.employee_id,this.recommending=e.firstname+" "+e.lastname,this.recommending_img=e.attachment||""),e.classification_id==4&&(this.form.approver_id=e.employee_id,this.approving=e.firstname+" "+e.lastname,this.approving_img=e.attachment||"")}),this.state.isLoading=!1}).catch(t=>{console.log(t)})},async saveRecord(){if(this.state.isEdit){this.form.id;let t=new FormData;Object.keys(this.form).forEach(e=>{t.append(e,this.form[e])}),await B.update(t).then(e=>{e.status==201?(this.$swal.fire({title:"Great!",text:"Record successfully updated.",icon:"success",timer:2e3}),this.state.isSaving=!1,this.state.showModal=!1):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3}),this.reload()}).catch(e=>{e.response.status==422?(this.$swal.fire({title:"Ooops! something is wrong.",text:e.response.data.message,icon:"warning"}),this.state.showModal=!1):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3})})}else{this.state.isSaving=!0;let t=new FormData;Object.keys(this.form).forEach(e=>{t.append(e,this.form[e])}),await B.create(t).then(e=>{e.status==201&&(this.$swal.fire({title:"Great!",text:"Record successfully saved.",icon:"success",timer:2e3}),this.state.showModal=!1,this.state.isSaving=!1,this.resetForm(),this.reload())}).catch(e=>{console.log(e),e.response.status==422?this.$swal.fire({title:"Ooops! something is wrong.",text:e.response.data.message,icon:"warning"}):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3})})}},async submitForm(){try{await fe().shape({date:E().required("Date from is required"),time:E().nullable().required("Time from is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to save this record?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(e=>{e.value&&this.saveRecord()})}catch(t){if(t instanceof R){const e={};t.inner.forEach(i=>{e[i.path]=i.message}),this.errors=e}this.state.isSaving=!1}}},mounted(){this.fetchApprover()},watch:{"form.allow_higher_approval":{handler:"fetchApprover",immediate:!0}}},xe={class:"text-slate-600 dark:text-slate-400 text-sm font-normal"},be={key:0,class:"text-[#ec4899]"},Ce={class:"relative"},ke={key:0,class:"text-[#ec4899]"},Ae={class:"grid grid-cols-1"},Fe={class:"grid grid-cols-1"},Re={key:0,class:"text-[#ec4899]"},Be={key:0,class:"flex items-center gap-2 mt-2 cursor-pointer"},Te={class:"flex justify-between w-full items-center"},Se={key:0,class:"flex justify-end text-xl text-red-500 cursor-pointer"},Ve={class:"grid grid-cols-12 gap-4"},De={class:"col-span-6 flex items-center p-4 bg-gray-100 rounded-lg shadow-md"},Ie={class:"flex-shrink-0 mr-4"},Me=["src"],Oe={key:1,class:"w-16 h-16 rounded-full object-cover bg-black-200 flex justify-center items-center"},Ee={class:"text-left"},Le={class:"text-sm font-semibold text-gray-600"},je={class:"text-lg font-bold text-gray-900"},Ue={key:0,class:"text-sm text-gray-900"},Pe={key:1,class:"text-sm text-gray-900"},He={key:0,class:"col-span-6 flex items-center p-4 bg-gray-100 rounded-lg shadow-md"},ze={class:"flex-shrink-0 mr-4"},qe=["src"],Ge={key:1,class:"w-16 h-16 rounded-full object-cover bg-black-200 flex justify-center items-center"},Ye={class:"text-left"},We={class:"text-lg font-bold text-gray-900"},Ne={class:"text-sm text-gray-900"},Ze={class:"flex gap-2 justify-between"},Ke={class:"flex items-center cursor-pointer"},Qe=["checked"],Je={class:"flex gap-2"};function Xe(t,e,i,n,s,r){const g=m("Loading"),v=m("Alert"),c=m("flat-pickr"),w=m("FormGroup"),C=m("Multiselect"),k=m("Textarea"),x=m("Fileinput"),A=m("Card"),F=m("FileType"),T=m("Icon"),h=m("SubmitButton"),Q=m("UpdateButton"),J=m("CloseButton"),X=m("FormModal");return l(),p(X,{title:s.form.status!==0?"Time Adjustment Application Form":s.state.isEdit?"Edit Time Adjustment":"Time Adjustment Application Form",active:s.state.showModal,onSubmit:t.confirmSubmit,onClose:r.closeModal,themeClass:s.state.isEdit&&s.form.status==0?"bg-primary-600":"bg-gray-800",sizeClass:"lg:w-2/4"},{default:f(()=>[s.state.isEdit&&s.state.isLoading?(l(),p(g,{key:0,text:"Fetching record"})):d("",!0),s.state.isLoading?(l(),p(g,{key:1,text:"Fetching Approver"})):d("",!0),s.form.denied_reason?(l(),p(v,{key:2,type:"danger-light",icon:"heroicons-outline:exclamation",class:"mb-4"},{default:f(()=>[e[9]||(e[9]=o("span",{class:"font-semibold"},"Denied Reason:",-1)),b(" "+y(s.form.denied_reason),1)]),_:1})):d("",!0),o("div",xe,[o("form",{onSubmit:e[8]||(e[8]=L((..._)=>t.confirmSubmit&&t.confirmSubmit(..._),["prevent"])),class:"space-y-6",enctype:"multipart/form-data"},[s.state.isSaving?(l(),p(g,{key:0,text:"Saving record"})):d("",!0),o("div",null,[a(w,{label:"Date",isRequired:!0},{default:f(()=>[a(c,{modelValue:s.form.date,"onUpdate:modelValue":e[0]||(e[0]=_=>s.form.date=_),class:"form-control h-12",id:"date",placeholder:"yyyy, dd M",disabled:s.form.status==2||s.form.status==1},null,8,["modelValue","disabled"]),s.errors.date?(l(),u("div",be,"Date is required")):d("",!0)]),_:1})]),a(w,{label:"Int / Out"},{default:f(()=>[o("div",Ce,[a(C,{modelValue:s.form.in_out,"onUpdate:modelValue":e[1]||(e[1]=_=>s.form.in_out=_),"close-on-select":!0,searchable:!0,id:"in_out",options:s.inOutOptions,disabled:s.form.status==2||s.form.status==1},null,8,["modelValue","options","disabled"])])]),_:1}),o("div",null,[a(w,{label:"Time",isRequired:!0},{default:f(()=>[a(c,{modelValue:s.form.time,"onUpdate:modelValue":e[2]||(e[2]=_=>s.form.time=_),class:"form-control h-12",placeholder:"Time",disabled:s.form.status==2||s.form.status==1,config:{enableTime:!0,noCalendar:!0,dateFormat:"H:i"}},null,8,["modelValue","disabled"]),s.errors.time?(l(),u("div",ke,"Time is required")):d("",!0)]),_:1})]),o("div",Ae,[o("div",Fe,[a(w,{label:"Remarks"},{default:f(()=>[a(k,{placeholder:"Remarks",modelValue:s.form.description,"onUpdate:modelValue":e[3]||(e[3]=_=>s.form.description=_),disabled:s.form.status==2||s.form.status==1},null,8,["modelValue","disabled"])]),_:1})]),o("div",null,[a(w,{label:"Attachment"},{default:f(()=>[a(A,{title:"File Input Basic"},{default:f(()=>[a(x,{modelValue:s.form.attachment,"onUpdate:modelValue":e[4]||(e[4]=_=>s.form.attachment=_),name:"basic",onChange:r.handleMainImageUpload,class:"h-[48px] w-full"},null,8,["modelValue","onChange"]),s.errors.attachment?(l(),u("div",Re,y(s.errors.attachment),1)):d("",!0)]),_:1}),typeof s.form.attachment=="string"&&s.form.attachment?(l(),u("div",Be,[o("div",Te,[o("div",{class:"flex items-center cursor-pointer",onClick:e[5]||(e[5]=_=>r.viewAttachment(s.form.attachment))},[a(F,{image:r.getFileTypeImage(s.form.attachment)},null,8,["image"]),b(" "+y(s.form.attachment),1)]),s.form.status==0?(l(),u("div",Se,[a(T,{icon:"mingcute:delete-2-fill",onClick:e[6]||(e[6]=_=>r.deleteFile(s.form.id))})])):d("",!0)])])):d("",!0)]),_:1})])]),o("div",Ve,[o("div",De,[o("div",Ie,[s.recommending_img?(l(),u("img",{key:0,src:s.recommending_img,alt:"Profile",class:"w-16 h-16 rounded-full object-cover"},null,8,Me)):(l(),u("div",Oe," No Image "))]),o("div",Ee,[o("div",Le,y(s.form.allow_higher_approval?"Recommending":"Approving"),1),o("div",je,y(s.recommending),1),s.form.allow_higher_approval?(l(),u("div",Ue,y(s.form.recommended_at?"Date: ("+this.$formatDate(s.form.recommended_at)+")":""),1)):(l(),u("div",Pe,y(s.form.approved_at?"Date: ("+this.$formatDate(s.form.approved_at)+")":""),1))])]),s.form.allow_higher_approval?(l(),u("div",He,[o("div",ze,[s.approving_img?(l(),u("img",{key:0,src:s.approving_img,alt:"Profile",class:"w-16 h-16 rounded-full object-cover"},null,8,qe)):(l(),u("div",Ge," No Image "))]),o("div",Ye,[e[10]||(e[10]=o("div",{class:"text-sm font-semibold text-gray-600"},"Approving",-1)),o("div",We,y(s.approving),1),o("div",Ne,y(s.form.approved_at?"Date: ("+this.$formatDate(s.form.approved_at)+")":""),1)])])):d("",!0)]),o("div",Ze,[o("div",null,[o("label",Ke,[re(o("input",{type:"checkbox",class:"peer h-6 w-6 cursor-pointer rounded-full bg-slate-100 border border-slate-300 checked:bg-blue-500 checked:border-blue-500",checked:s.form.allow_higher_approval,"onUpdate:modelValue":e[7]||(e[7]=_=>s.form.allow_higher_approval=_)},null,8,Qe),[[ne,s.form.allow_higher_approval]]),e[11]||(e[11]=o("span",{class:"absolute text-white opacity-0 peer-checked:opacity-100"},[o("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor","stroke-width":"1"},[o("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"})])],-1)),e[12]||(e[12]=o("span",{class:"ml-2 text-slate-500 dark:text-slate-400 text-sm"},"Allow Higher Head Approval?",-1))])]),o("div",Je,[s.state.isEdit?s.form.status===0?(l(),p(Q,{key:1,onClick:r.submitForm},null,8,["onClick"])):d("",!0):(l(),p(h,{key:0,onClick:r.submitForm},null,8,["onClick"])),a(J,{onClick:r.closeModal},null,8,["onClick"])])])],32)])]),_:1},8,["title","active","onSubmit","onClose","themeClass"])}const $e=D(we,[["render",Xe],["__scopeId","data-v-39d8fd59"]]);const et={components:{FileType:W,DenyButton:_e,FormModal:U,FormGroup:j,TextInput:P,Textarea:H,SubmitButton:M,UpdateButton:z,CloseButton:I,Loading:O,Multiselect:Y,Icon:V,Checkbox:N},data(){return{inOutOptions:[{value:0,label:"IN"},{value:1,label:"OUT"}],currentEmployeeId:this.$store.userSettings.getActiveUser.employees?this.$store.userSettings.getActiveUser.employees.employee_id:"",currentClassificationId:this.$store.userSettings.getActiveUser.employees?this.$store.userSettings.getActiveUser.employees.classification_id:"",currentRecommendingId:"",currentApprovingId:"",btnTitle:"",recommendingOptions:[],approvingOptions:[],recommending:"",approving:"",status:[],form:{date:"",in_out:"",time:"",description:"",attachment:"",recommending_id:"",approver_id:""},errors:{},state:{isEdit:!1,isSaving:!1,isLoading:!1,isCompanyLoading:!1,isDownloading:!1},fileIcons:{pdf:Z,jpg:K,default:""}}},methods:{getFileTypeImage(t){if(typeof t=="string"){if(!t)return this.fileIcons.default;const e=t.substring(t.lastIndexOf(".")+1).toLowerCase();return this.fileIcons[e]||this.fileIcons.default}},async viewAttachment(t){if(this.state.isDownloading)return;this.state.isDownloading=!0;let e=await G.Reader2("employee-overtime",t),i;if(t.endsWith(".pdf"))i="application/pdf";else if(t.endsWith(".png"))i="image/png";else if(t.endsWith(".jpg")||t.endsWith(".jpeg"))i="image/jpeg";else if(t.endsWith(".svg"))i="image/svg+xml";else throw new Error("Unsupported file type");const n=atob(e),s=new Array(n.length);for(let c=0;c<n.length;c++)s[c]=n.charCodeAt(c);const r=new Uint8Array(s),g=new Blob([r],{type:i}),v=URL.createObjectURL(g);window.open(v),this.state.isLoadingPDF=!1},async fetchCompanyRecords(){try{this.state.isCompanyLoading=!0,this.companyOptions=await ye()}catch(t){console.error("Failed to fetch company data:",t)}finally{this.state.isCompanyLoading=!1}},handleMainImageUpload(){const t=event.target.files[0];this.form.attachment=t;const e=new FileReader;e.onload=()=>{t.type.startsWith("image/")?this.form.imageView=e.result:t.type==="application/pdf"?this.form.imageView=this.pdf_file_view:t.type==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"&&(this.form.imageView=this.excel_file_view)},e.readAsDataURL(t)},async loadRecord(t){this.resetForm(),this.form=t,this.form.meal=!!this.form.meal,this.form.transportation=!!this.form.transportation,this.currentRecommendingId=t.recommending?t.recommending[0].employee_id:"",this.currentApprovingId=t.approving?t.approving[0].employee_id:"",this.recommending=t.recommending?t.recommending[0].firstname+" "+t.recommending[0].lastname:"",this.approving=t.approving?t.approving[0].firstname+" "+t.approving[0].lastname:"",this.currentRecommendingId==this.currentEmployeeId&&this.form.status<1?this.btnTitle="Submit For Approval":this.currentApprovingId==this.currentEmployeeId&&(this.btnTitle="Approve"),this.currentClassificationId>=3&&await q.fetchEmployeeApprover(t.employee_id).then(e=>{if(e.status==200)this.recommendingOptions=e.data.map((i,n)=>({value:i.employee_id,label:i.firstname+" "+i.lastname})),this.approvingOptions=e.data.filter(i=>i.classification_id>=3).map((i,n)=>({value:i.employee_id,label:i.firstname+" "+i.lastname}));else throw new Error("Failed to fetch employee approvers")})},closeModal(){this.state.showModal=!1},resetForm(){this.state.isEdit=!1,this.form={date:"",in_out:"",time:"",description:"",attachment:"",recommending_id:"",approver_id:""}},reload(){return this.state.isSaving=!1,this.state.showModal=!1,this.$emit("reload")},async updateApproverRecord(){this.state.isSaving=!0;const t=this.form.id;this.state.isSaving=!1;let e={recommending_id:this.form.recommending_id,approver_id:this.form.approver_id};await S.updateApprover(t,e).then(i=>{i.status==201?(this.$swal.fire({title:"Great!",text:"Record successfully updated.",icon:"success",timer:2e3}),this.state.showModal=!1):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3}),this.reload()}).catch(i=>{i.response.status==422?this.$swal.fire({title:"Ooops! something is wrong.",text:i.response.data.message,icon:"warning"}):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3})})},async saveRecord(){this.state.isSaving=!0;const t=this.form.id;await S.update(t,this.status).then(e=>{e.status==201?(this.$swal.fire({title:"Great!",text:"Record successfully updated.",icon:"success",timer:2e3}),this.state.isSaving=!1,this.state.showModal=!1):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3}),this.reload()}).catch(e=>{e.response.status==422?this.$swal.fire({title:"Ooops! something is wrong.",text:e.response.data.message,icon:"warning"}):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3})})},async submitForm(){this.form.recommending_id==this.currentEmployeeId&&(this.status={status:1}),this.form.approver_id==this.currentEmployeeId&&(this.status={status:2});try{this.$swal.fire({title:"Are you sure you want to save submit this record?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(t=>{t.value&&this.saveRecord()})}catch(t){if(t instanceof R){const e={};t.inner.forEach(i=>{e[i.path]=i.message}),this.errors=e}}},async updateApproverForm(){try{this.$swal.fire({title:"Are you sure you want to update the approver of this record?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(t=>{t.value&&this.updateApproverRecord()})}catch(t){if(t instanceof R){const e={};t.inner.forEach(i=>{e[i.path]=i.message}),this.errors=e}}},async denyForm(){this.status={status:99};try{this.$swal.fire({title:"Are you sure you want to deny this record?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No",html:` <textarea id="swal-input" style="width: 100%; height: 80px; padding: 8px; border: 1px solid #ced4da; border-radius: 4px;" placeholder="Enter reason"></textarea>`,preConfirm:()=>{const t=document.getElementById("swal-input").value;return t?this.denied_reason=t:(this.$swal.showValidationMessage("The reason field is required"),!1)}}).then(t=>{this.status={status:99,denied_reason:this.denied_reason},t.value&&this.saveRecord()})}catch(t){if(t instanceof R){const e={};t.inner.forEach(i=>{e[i.path]=i.message}),this.errors=e}}},async ReceiveByHr(t){try{if(t==99){const e=await this.$swal.fire({title:"State the Reason for Deferring this Request",input:"textarea",inputPlaceholder:"Enter your reason here...",inputAttributes:{"aria-label":"Reason for deferment"},showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Submit",cancelButtonText:"Cancel",preConfirm:i=>i||(this.$swal.showValidationMessage("Reason is required!"),!1)});e.isConfirmed&&e.value&&(console.log("Reason for deferment:",e.value),this.updateRecordByHR(t,e.value))}else this.$swal.fire({title:"Are you sure you want to receive/validate this record?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(e=>{e.value&&(console.log("recieved by HR"),this.updateRecordByHR(t))})}catch(e){if(e instanceof R){const i={};e.inner.forEach(n=>{i[n.path]=n.message}),this.errors=i}}},async updateRecordByHR(t,e=null){this.state.isSaving=!0;const i=this.form.id;let s={status:t,reason:e};await S.hrValidation(i,s).then(r=>{r.status==201?(console.log("response"),console.log(r),this.$swal.fire({title:"Great!",text:"Record successfully updated.",icon:"success",timer:2e3})):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3}),this.reload()}).catch(r=>{r.response.status==422?this.$swal.fire({title:"Ooops! something is wrong.",text:r.response.data.message,icon:"warning"}):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3}),this.state.isSaving=!1})}},mounted(){this.fetchCompanyRecords()},watch:{}},tt={class:"text-slate-600 dark:text-slate-400 text-sm font-normal"},st={key:0,class:"bg-red-50 dark:bg-red-900 dark:bg-opacity-30 border-l-4 border-red-500 p-4 rounded-md shadow-sm"},it={class:"text-red-600 dark:text-red-400 text-sm"},ot={key:0,class:"text-[#ec4899]"},rt={class:"relative"},nt={class:"grid grid-cols-1"},at={class:"grid grid-cols-1"},lt={class:"col-span-6"},mt={key:1},ct={class:"grid grid-cols-12 justify-center items-center"},dt={class:"col-span-8 flex justify-between items-center gap-4"},ft={class:"col-span-6 flex justify-center items-center gap-4"},ut={class:"font-bold"},ht={class:"col-span-6 flex justify-center items-center gap-4"},pt={class:"font-bold"},gt={key:2},_t={class:"grid grid-cols-12 gap-4"},yt={class:"col-span-6"},vt={class:"relative"},wt={class:"col-span-6"},xt={class:"relative"},bt={class:"flex gap-1 justify-end pt-8"},Ct={key:0,class:"flex gap-1 justify-end"},kt={key:1,class:"flex gap-1 justify-end"};function At(t,e,i,n,s,r){const g=m("Loading"),v=m("flat-pickr"),c=m("FormGroup"),w=m("Multiselect"),C=m("Textarea"),k=m("FileType"),x=m("UpdateButton"),A=m("DenyButton"),F=m("CloseButton"),T=m("FormModal");return l(),p(T,{title:"View Record",active:s.state.showModal,sideTitle:this.form.status==0?"for recommendation":this.form.status==1?"for approval":this.form.status==2&&this.form.validated==1?"Validated":this.form.status==2&&this.form.validated==99?"Denied":this.form.status==2?"For Validation":this.form.status==99?"denied":"",badgeColor:this.form.status==0?"warning":this.form.status==1?"info":this.form.status==2&&this.form.validated==1?"purple":this.form.status==2&&this.form.validated==99?"danger":this.form.status==2?"success":this.form.status==99?"danger":"",onSubmit:t.confirmSubmit,onClose:r.closeModal,themeClass:"bg-gray-800",sizeClass:"lg:w-3/4"},{default:f(()=>[s.state.isEdit&&s.state.isLoading?(l(),p(g,{key:0,text:"Fetching record"})):d("",!0),o("div",tt,[this.form.status==2&&this.form.validated==99?(l(),u("div",st,[e[10]||(e[10]=o("h3",{class:"text-red-700 dark:text-red-300 font-semibold mb-1 text-sm"}," Denied Reason : ",-1)),o("p",it,y(this.form.deferred_reason),1)])):d("",!0),o("form",{onSubmit:e[9]||(e[9]=L((...h)=>t.confirmSubmit&&t.confirmSubmit(...h),["prevent"])),class:"space-y-4",enctype:"multipart/form-data"},[s.state.isSaving?(l(),p(g,{key:0,text:"Saving record"})):d("",!0),o("div",null,[a(c,{label:"Date",isRequired:!0},{default:f(()=>[a(v,{modelValue:s.form.date,"onUpdate:modelValue":e[0]||(e[0]=h=>s.form.date=h),class:"form-control h-12",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"]),s.errors.date?(l(),u("div",ot,y(s.errors.date),1)):d("",!0)]),_:1})]),a(c,{label:"Int / Out"},{default:f(()=>[o("div",rt,[a(w,{modelValue:s.form.in_out,"onUpdate:modelValue":e[1]||(e[1]=h=>s.form.in_out=h),"close-on-select":!0,searchable:!0,id:"in_out",options:s.inOutOptions},null,8,["modelValue","options"])])]),_:1}),o("div",null,[a(c,{label:"Time"},{default:f(()=>[a(v,{modelValue:s.form.time,"onUpdate:modelValue":e[2]||(e[2]=h=>s.form.time=h),class:"form-control h-12",placeholder:"time",config:{enableTime:!0,noCalendar:!0,dateFormat:"H:i"}},null,8,["modelValue"])]),_:1})]),o("div",nt,[o("div",at,[a(c,{label:"Remarks"},{default:f(()=>[a(C,{placeholder:"Remarks",modelValue:s.form.description,"onUpdate:modelValue":e[3]||(e[3]=h=>s.form.description=h)},null,8,["modelValue"])]),_:1})]),o("div",lt,[a(c,{label:"Attachment"},{default:f(()=>[typeof s.form.attachment=="string"?(l(),u("div",{key:0,class:"flex items-center gap-2 mt-2 cursor-pointer",onClick:e[4]||(e[4]=h=>r.viewAttachment(s.form.attachment))},[a(k,{image:r.getFileTypeImage(s.form.attachment)},null,8,["image"]),b(" "+y(s.form.attachment),1)])):d("",!0)]),_:1})])]),s.currentClassificationId<=2?(l(),u("div",mt,[o("div",ct,[o("div",dt,[o("div",ft,[e[11]||(e[11]=b(" Recommending: ")),o("p",ut,y(s.recommending),1)]),o("div",ht,[e[12]||(e[12]=b(" Approving: ")),o("p",pt,y(s.approving),1)])])])])):(l(),u("div",gt,[o("div",_t,[o("div",yt,[a(c,{label:"Recommending"},{default:f(()=>[o("div",vt,[a(w,{modelValue:s.form.recommending_id,"onUpdate:modelValue":e[5]||(e[5]=h=>s.form.recommending_id=h),"close-on-select":!0,searchable:!0,id:"recommending_id",options:s.recommendingOptions},null,8,["modelValue","options"])])]),_:1})]),o("div",wt,[a(c,{label:"Approver"},{default:f(()=>[o("div",xt,[a(w,{modelValue:s.form.approver_id,"onUpdate:modelValue":e[6]||(e[6]=h=>s.form.approver_id=h),"close-on-select":!0,searchable:!0,id:"approver_id",options:s.approvingOptions},null,8,["modelValue","options"])])]),_:1})])])])),o("div",bt,[this.form.status==0&&s.currentRecommendingId==s.currentEmployeeId||s.currentApprovingId==s.currentEmployeeId&&this.form.status==1&&s.currentApprovingId==this.form.approver_id||this.form.approver_id==this.form.recommending_id&&s.currentApprovingId==this.form.approver_id&&s.currentEmployeeId==this.form.approver_id?(l(),u("div",Ct,[this.form.status<=1?(l(),p(x,{key:0,onClick:r.submitForm,text:s.btnTitle},null,8,["onClick","text"])):d("",!0),this.form.status<=1?(l(),p(A,{key:1,onClick:r.denyForm,text:"Deny"},null,8,["onClick"])):d("",!0)])):this.form.status==0&&s.currentApprovingId==s.currentEmployeeId||s.currentApprovingId!=this.form.approver_id?(l(),u("div",kt,[this.form.status<=1?(l(),p(x,{key:0,onClick:r.updateApproverForm,text:"Update Approver"},null,8,["onClick"])):d("",!0)])):d("",!0),this.form.status===2&&this.form.validated==0?(l(),p(x,{key:2,btnClass:"text-green-600 bg-transpanent hover:ring ring-green-600 ring-offset-1 border border-green-600 transition duration-150 ease-out hover:ease-in py-2 px-3",onClick:e[7]||(e[7]=h=>r.ReceiveByHr(1)),text:"Receive"})):d("",!0),this.form.status===2&&this.form.validated==0?(l(),p(x,{key:3,btnClass:"text-red-600 bg-transparent hover:ring ring-red-600 ring-offset-1 border border-red-600 transition duration-150 ease-out hover:ease-in py-2 px-3",icon:"material-symbols:unpublished",onClick:e[8]||(e[8]=h=>r.ReceiveByHr(99)),text:"Defer"})):d("",!0),a(F,{onClick:r.closeModal},null,8,["onClick"])])],32)])]),_:1},8,["active","sideTitle","badgeColor","onSubmit","onClose"])}const Ft=D(et,[["render",At],["__scopeId","data-v-b4d2899d"]]);const Rt={mixins:[$],components:{FilterTimekeeping:ve,ActionCellRenderer:de,AgGridVue:ge,Pagination:pe,Card:te,Button:se,Badge:ie,Layout:ee,Icon:V,CreateButton:ae,SubmitButton:M,CloseButton:I,EditButton:me,DeleteButton:le,ViewButton:ce,Form:$e,InputGroup:oe,Loading:O,View:Ft},data(){return{paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",flex:1},{field:"date & time",filter:!0,floatingFilter:!0,flex:2},{field:"in/out",filter:!0,floatingFilter:!0,flex:2},{field:"date created",filter:!0,floatingFilter:!0},{headerName:"Status",field:"status",filter:!0,floatingFilter:!0,valueGetter:t=>{if(t.data.status==2&&t.data.validated==1)return"Validated";if(t.data.status==2&&t.data.validated==99)return"Deferred by HR";switch(t.data.status){case 0:return"For Recommendation";case 1:return"For Approval";case 2:return"Approved";case 99:return"Denied";default:return""}},cellRenderer:t=>{const e=t.value,i=document.createElement("div");switch(e){case"For Recommendation":i.innerHTML='<span class="inline-block rounded-full text-xs capitalize whitespace-nowrap text-center py-1 text-yellow-600 bg-gray-100 px-4">For Recommendation</span>';break;case"For Approval":i.innerHTML='<span class="inline-block rounded-full text-xs capitalize whitespace-nowrap text-center py-1 text-blue-600 bg-gray-100 px-4">For Approval</span>';break;case"Validated":i.innerHTML='<div class="inline-block rounded-full text-xs capitalize whitespace-nowrap text-center py-1 bg-gray-100 text-green-600 px-4">Validated</div>';break;case"Deferred by HR":i.innerHTML=` <div class="inline-block rounded-full text-xs capitalize whitespace-nowrap text-center py-1 bg-gray-100 text-red-600 px-4"> Denied <button class="ml-2 inline-flex items-center px-2 py-1 text-white text-sm font-medium rounded hover:bg-white-700 focus:ring-2 focus:ring-yellow-500 focus:outline-none view-button" title="View details of why it was deferred"> <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1 text-yellow-500" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> <path stroke-linecap="round" stroke-linejoin="round" d="M10 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V8a2 2 0 00-2-2h-6l-2-2H10a2 2 0 00-2 2v0z" /> </svg> </button> </div>`,i.querySelector(".view-button").addEventListener("click",()=>{this.view(t.data)});break;case"Approved":i.innerHTML='<div class="inline-block rounded-full text-xs capitalize whitespace-nowrap text-center py-1 bg-gray-100 text-fuchsia-600 px-4">For Validation</div>';break;case"Denied":i.innerHTML='<span class="inline-block rounded-full text-xs capitalize whitespace-nowrap text-center py-1 text-red-600 bg-gray-100 px-4">Denied</span>';break;default:i.innerHTML=""}return i}},{headerName:"Actions",cellRenderer:"ActionCellRenderer",flex:1,cellRendererParams:{context:{componentParent:this}}}],breadcrumbs:[{text:"Home",href:"/"},{text:"Timekeeping",href:"/attendance/employee-overtime"},{text:"Time Adjustment Application",active:!0}],statistics:[{title:"Time Adjusted",subtitle:"For this month",count:"20",bg:"bg-info-500",text:"text-info-500",icon:"heroicons-outline:menu-alt-1"}],statuses:[{count:1,status:"Pending"},{count:2,status:"Approved"},{count:1,status:"Denied"}],items:[],totalItems:0,searchQuery:null,serverOptions:{page:1,rowsPerPage:10,sortBy:"status",sortType:"asc"},state:{isLoading:!1,isEdit:!1,isDeleting:!1}}},watch:{},methods:{applyFilters(t){if(!t||Object.keys(t).length===0){const e=new Date;let i=e.getFullYear(),n=e.getMonth()+1,s=n-1||12;s===12&&(i-=1);const r=n.toString().padStart(2,"0"),g=s.toString().padStart(2,"0"),v=e.getDate();t={range:v>1&&v<15?`${i}-${g}-21 to ${e.getFullYear()+1}-${r}-05`:`${e.getFullYear()}-${r}-06 to ${e.getFullYear()+1}-${r}-20`}}this.fetchRecords(t)},onGridReady(t){this.gridApi=t.api},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(t=>t.field!=="actions").map(t=>t.field)}):console.error("Grid API is not ready.")},formatTime(t){let[e,i]=t.split(":");e=parseInt(e);const n=e>=12;return e=e%12||12,`${e}:${i} ${n?"PM":"AM"}`},formatDate(t){const e=new Date(t),i=new Date(e.toLocaleString("en-US",{timeZone:"UTC"})),n=new Date(i.toLocaleString("en-US",{timeZone:"Asia/Singapore"})),s=n.getFullYear(),r=String(n.getMonth()+1).padStart(2,"0"),g=String(n.getDate()).padStart(2,"0");return`${s}-${r}-${g}`},async fetchRecords(t={}){this.state.isLoading=!0,await B.fetchRecords({...t}).then(e=>{let i=e.data.data;this.items=i,this.items=i.map((n,s)=>({...n,"#":s+1,"date & time":this.$formatDate(n.date)+" - "+this.$formatTime(n.time),"in/out":n.in_out==1?"OUT":"IN","date created":this.$formatDate(n.created_at),status:n.status})),this.totalItems=e.data.total}).finally(()=>{this.state.isLoading=!1})},reload(){this.$emit("reload")},async deleteRecord(t){this.$swal.fire({title:"Are you sure?",text:"You want to delete this record?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes, delete it!",background:this.$store.themeSettingsStore.isDark?"#1e293b":"#fff"}).then(e=>{console.log(e.value),e.value&&(this.state.isDeleting=!0,B.remove(t).then(i=>{i.status==200&&(this.$swal.fire({title:"Yaaay!",text:"Record has been deleted successfully.",type:"success",icon:"success",timer:2e3}),this.reload(),this.applyFilters())}))}).catch(e=>{e.response&&e.response.status==401&&this.$swal.fire({title:"Ooops! something is wrong.",text:"Error deleting record. Please contact system administrator",type:"error",icon:"error",timer:2e3})}).finally(()=>{this.applyFilters(),this.state.isDeleting=!1})},createRecord(){this.$refs.form.resetForm(),this.$refs.form.state.showModal=!0},editRecord(t){console.log(t),this.$refs.form.resetForm(),this.$refs.form.loadRecord(t),this.$refs.form.state.showModal=!0},view(t){console.log("view"),this.viewRecord(t)},viewRecord(t){console.log(t),this.$refs.view.resetForm(),this.$refs.view.loadRecord(t),this.$refs.view.state.showModal=!0},handlePageChange(t){console.log(t),console.log(this.serverOptions.page),this.serverOptions.page!=t&&(this.serverOptions.page=t)},handlePerPageChange(t){this.serverOptions.page=1,this.serverOptions.rowsPerPage=t}},mounted(){this.applyFilters()}},Bt={class:"space-y-4 mt-4"},Tt={class:"flex items-center justify-between mb-4"},St={class:"text-lg font-semibold"},Vt={class:"relative"},Dt={class:"ag-grid-toolbar flex items-center justify-between px-4 py-2 bg-gray-100 border-b rounded-t-xl border-gray-200"},It={class:"flex items-center gap-4"},Mt={class:"relative z-10 flex items-center transition-colors duration-300 group-hover:text-white"},Ot={class:"relative z-10 flex items-center transition-colors duration-300 group-hover:text-white"};function Et(t,e,i,n,s,r){const g=m("FilterTimekeeping"),v=m("Icon"),c=m("Button"),w=m("View"),C=m("ag-grid-vue"),k=m("Card"),x=m("Loading"),A=m("Form"),F=m("Layout");return l(),p(F,{breadcrumbs:s.breadcrumbs},{default:f(()=>[o("div",Bt,[a(k,{title:"Time Adjustment Applications"},{default:f(()=>[o("div",Tt,[o("h6",St,y(t.title),1)]),o("div",Vt,[o("div",Dt,[e[5]||(e[5]=o("div",{class:"flex items-center justify-center gap-4 text-gray-900"}," Time Adjustment List ",-1)),o("div",It,[a(g,{onFilterChanged:r.applyFilters},null,8,["onFilterChanged"]),a(c,{icon:"mdi:microsoft-excel",text:"Export to CSV",btnClass:"relative overflow-hidden font-normal px-4 py-2 rounded-lg shadow-md bg-white text-gray-900 border group transition-colors duration-300 group-hover:border-green-500",iconClass:"text-2xl",onClick:r.exportToCsv},{default:f(()=>[e[2]||(e[2]=o("span",{class:"absolute inset-0 bg-green-500 transition-transform duration-300 transform -translate-x-full group-hover:translate-x-0"},null,-1)),o("span",Mt,[a(v,{icon:"mdi:microsoft-excel",class:"text-2xl mr-2"}),e[1]||(e[1]=b(" Export to CSV "))])]),_:1},8,["onClick"]),a(c,{icon:"heroicons-outline:plus-sm",text:"Add Record",btnClass:"relative overflow-hidden font-normal px-4 py-2 rounded-lg shadow-md bg-white text-gray-900 border group transition-colors duration-300 group-hover:border-gray-500 group-hover:border",iconClass:"text-lg",onClick:r.createRecord},{default:f(()=>[e[4]||(e[4]=o("span",{class:"absolute inset-0 bg-gray-900 transition-transform duration-300 transform -translate-x-full group-hover:translate-x-0"},null,-1)),o("span",Ot,[a(v,{icon:"heroicons-outline:plus-sm",class:"text-2xl mr-2"}),e[3]||(e[3]=b(" Add Record "))])]),_:1},8,["onClick"])])])]),a(w,{onCloseModal:s.state.showModal,ref:"view",onReload:r.fetchRecords},null,8,["onCloseModal","onReload"]),a(C,{ref:"agGrid",rowData:s.items,columnDefs:s.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:s.paginationPageSize,paginationPageSizeSelector:s.paginationPageSizeSelector,onGridReady:r.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1}),s.state.isLoading?(l(),p(x,{key:0,text:"Fetching records"})):d("",!0),a(A,{onCloseModal:e[0]||(e[0]=T=>s.state.showModal=!1),ref:"form",onReload:r.applyFilters},null,8,["onReload"])])]),_:1},8,["breadcrumbs"])}const Qs=D(Rt,[["render",Et],["__scopeId","data-v-c95e3c9f"]]);export{Qs as default};
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.11 |
proxy
|
phpinfo
|
Settings