import{K as _,c as M,aw as a,y as P,i as N,v as b,bf as S}from"./index-26FXPGkN.js";/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const T=[["path",{d:"M4 6l7 0",key:"svg-0"}],["path",{d:"M4 12l7 0",key:"svg-1"}],["path",{d:"M4 18l9 0",key:"svg-2"}],["path",{d:"M15 9l3 -3l3 3",key:"svg-3"}],["path",{d:"M18 6l0 12",key:"svg-4"}]],G=_("outline","sort-ascending","SortAscending",T);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const j=[["path",{d:"M4 6l9 0",key:"svg-0"}],["path",{d:"M4 12l7 0",key:"svg-1"}],["path",{d:"M4 18l7 0",key:"svg-2"}],["path",{d:"M15 15l3 3l3 -3",key:"svg-3"}],["path",{d:"M18 6l0 12",key:"svg-4"}]],R=_("outline","sort-descending","SortDescending",j),A=t=>{const s=M.c(6),{data:e}=a();e==null||e.Projects;let i;e:{if(!(e!=null&&e.Projects)){let l;s[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],s[0]=l):l=s[0],i=l;break e}let r;if(s[1]!==(e==null?void 0:e.Projects)||s[2]!==t){let l;s[4]!==(e==null?void 0:e.Projects)?(l=c=>e==null?void 0:e.Projects.find(f=>f.Id===c),s[4]=e==null?void 0:e.Projects,s[5]=l):l=s[5],r=t.map(l).filter(Boolean),s[1]=e==null?void 0:e.Projects,s[2]=t,s[3]=r}else r=s[3];i=r}return i},q=(t,s)=>{const e=M.c(21);let i;e:{if(P(t)){let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],e[0]=o):o=e[0],i=o;break e}if(N(t)){let o;e[1]!==t?(o=[t].filter(D),e[1]=t,e[2]=o):o=e[2],i=o;break e}let k;e[3]!==t?(k=b(t.filter($)),e[3]=t,e[4]=k):k=e[4],i=k}const r=i,l=A(r);let c;e[5]!==l?(c=l.map(x),e[5]=l,e[6]=c):c=e[6];let f;e[7]!==s||e[8]!==c?(f={ProjectIds:c,IsDeleted:s},e[7]=s,e[8]=c,e[9]=f):f=e[9];const m=!r.length||!l.length;let u;e[10]!==m?(u={skip:m},e[10]=m,e[11]=u):u=e[11];const h=S.useGetTaskTypesQuery(f,u);let n,p;e[12]!==h?({data:n,...p}=h,e[12]=h,e[13]=n,e[14]=p):(n=e[13],p=e[14]);let y;e[15]!==(n==null?void 0:n.list)?(y=(n==null?void 0:n.list)||[],e[15]=n==null?void 0:n.list,e[16]=y):y=e[16];const v=y;let g;return e[17]!==n||e[18]!==p||e[19]!==v?(g={...p,data:n,taskTypes:v},e[17]=n,e[18]=p,e[19]=v,e[20]=g):g=e[20],g};function D(t){return!isNaN(t)}function $(t){return!isNaN(t)}function x(t){return t.Id||0}export{G as I,R as a,q as u};
