File manager - Edit - /home/autoph/public_html/projects/ahg-hr/assets/index.c15e8af0.js
Back
import{B as p}from"./index.d5f9070d.js";import{F as m}from"./index.a538f310.js";import{I as h}from"./index.0cc90e2a.js";import{_ as b,r as f,o as i,b as n,e as s,w as d,d as e,f as v,k as x,F as _,m as k,h as w,t as F,j as y}from"./index.6f826883.js";const C={data(){return{openFilter:!1,filter:{date_created:null,range:null,status:[]},statusOptions:[{label:"Validated",value:"validated"},{label:"Denied",value:"denied"},{label:"Pending",value:"pending"},{label:"For Validation",value:"for_validation"}]}},components:{Button:p,FromGroup:m,Icon:h},methods:{toggleFilter(){this.openFilter=!this.openFilter},applyFilter(){this.$emit("filter-changed",this.filter),this.toggleFilter()},toggleStatus(o){this.filter.status.includes(o)?this.filter.status=this.filter.status.filter(t=>t!==o):this.filter.status.push(o)},clearFilters(){this.filter.date_created=null,this.filter.range=null,this.filter.status=[]}}},V={class:"flex items-center gap-4"},B={key:0,class:"absolute top-full right-0 mt-2 w-96 bg-white border border-gray-300 shadow-lg rounded-lg p-4 z-50"},z={class:"w-full"},N={class:"w-full"},S={class:"mt-4"},D={class:"flex flex-wrap gap-2"},M=["onClick"],R={class:"mt-8 flex justify-between"};function j(o,t,G,I,r,a){const g=f("Button"),c=f("flat-pickr"),u=f("FromGroup");return i(),n("div",V,[s(g,{text:"Filter",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-blue-500",iconClass:"text-2xl",onClick:x(a.toggleFilter,["stop"])},{default:d(()=>t[4]||(t[4]=[e("span",{class:"absolute inset-0 bg-blue-500 transition-transform duration-300 transform -translate-x-full group-hover:translate-x-0"},null,-1),e("span",{class:"relative z-10 flex items-center transition-colors duration-300 group-hover:text-white"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2"},[e("path",{"stroke-dasharray":"20","stroke-dashoffset":"20",d:"M4 7h16"},[e("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.28s",values:"20;0"})]),e("path",{"stroke-dasharray":"12","stroke-dashoffset":"12",d:"M7 12h10"},[e("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.28s",dur:"0.28s",values:"12;0"})]),e("path",{"stroke-dasharray":"4","stroke-dashoffset":"4",d:"M11 17h2"},[e("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.56s",dur:"0.28s",values:"4;0"})])])]),v(" Filter ")],-1)])),_:1},8,["onClick"]),r.openFilter?(i(),n("div",B,[e("div",z,[s(u,{label:"Date Coverage",name:"dateRange"},{default:d(()=>[s(c,{class:"form-control w-full border-gray-300 rounded-lg px-3 py-2 focus:ring-blue-500 focus:border-blue-500",id:"dateRange",placeholder:"Select date range",modelValue:r.filter.range,"onUpdate:modelValue":t[0]||(t[0]=l=>r.filter.range=l),config:{mode:"range"}},null,8,["modelValue"])]),_:1})]),e("div",N,[s(u,{label:"Date Created",name:"dateRange"},{default:d(()=>[s(c,{class:"form-control w-full border-gray-300 rounded-lg px-3 py-2 focus:ring-blue-500 focus:border-blue-500",id:"dateRange",placeholder:"Select date range",modelValue:r.filter.date_created,"onUpdate:modelValue":t[1]||(t[1]=l=>r.filter.date_created=l),config:{mode:"range"}},null,8,["modelValue"])]),_:1})]),e("div",S,[s(u,{label:"Status",name:"statusFilter"},{default:d(()=>[e("div",D,[(i(!0),n(_,null,k(r.statusOptions,l=>(i(),n("button",{key:l.label,onClick:O=>a.toggleStatus(l.value),class:w(["cursor-pointer inline-block rounded-full text-sm capitalize whitespace-nowrap text-center py-1 px-4 transition",r.filter.status.includes(l.value)?"bg-blue-500 text-white shadow-md":"bg-gray-100 text-gray-600 hover:bg-gray-200"])},F(l.label),11,M))),128))])]),_:1})]),e("div",R,[e("button",{class:"text-gray-500 hover:text-red-500 text-sm",onClick:t[2]||(t[2]=(...l)=>a.clearFilters&&a.clearFilters(...l))}," Clear all filters "),e("button",{class:"text-gray-500 hover:text-blue-500 text-sm",onClick:t[3]||(t[3]=(...l)=>a.applyFilter&&a.applyFilter(...l))}," Submit ")])])):y("",!0)])}const P=b(C,[["render",j]]);export{P as F};
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings