1(this["webpackJsonpone-free-ui"]=this["webpackJsonpone-free-ui"]||[]).push([[80],{1151:function(e,t,a){"use strict";var n=a(15),r=a(1149),c=a(1169),l=a(313),i=a(21),o=a(2);t.a=function(e){var t=Object(l.a)().t,a=e.backgroundColor,s=e.label,d=e.handleDelete;return s?Object(o.jsx)(r.a,{style:{height:"auto",padding:"5px 10px",borderRadius:"18px",color:a,border:"2px solid ".concat(a),backgroundColor:Object(i.Z)(a,.1),fontFamily:"Inter-Bold"},label:t(n.a.capitalize(s)),onDelete:d,deleteIcon:Object(o.jsx)(c.a,{})}):""}},1152:function(e,t,a){"use strict";var n=a(9),r=a(3),c=a(381),l=a(1368),i=a(1372),o=a(1371),s=a(1367),d=a(1369),u=a(1370),b=a(10),j=a(8),p=a(0),m=a.n(p),O=a(313),x=a(1166),v=a(2),g=Object(c.a)((function(e){var t;return{tableHeaderRow:(t={fontFamily:"Inter-Bold, sans-serif",whiteSpace:"pre-wrap",textAlign:"center",verticalAlign:"top"},Object(r.a)(t,e.breakpoints.down("sm"),{border:"none",display:"flex",flexDirection:"column",alignItems:"center",padding:"0"}),Object(r.a)(t,"& > div",Object(r.a)({"& > label":{fontFamily:"Inter-Regular"},"& > div:nth-of-type(1)":{borderBottom:"1px solid ".concat(e.palette.utility.main)}},e.breakpoints.down("sm"),{minHeight:"50px",display:"flex",flexDirection:"column",alignItems:"center",width:"100%","& > div:nth-of-type(1)":{display:"none"},"& > input":{marginTop:"20px",maxWidth:"100%",width:"85%","&::placeholder":{color:"black"}}})),t),tableBody:{"& tr:nth-of-type(odd)":{background:e.palette.utility.rowOdd}},tableRow:Object(r.a)({},e.breakpoints.down("sm"),{borderBottom:"1px solid ".concat(e.palette.background.border)}),tableBodyRow:Object(r.a)({whiteSpace:"pre-wrap",textAlign:"center"},e.breakpoints.down("sm"),{border:"none",display:"flex",flexDirection:"column",alignItems:"center",padding:"0"}),inputPage:{margin:"0px 10px",width:"70px",textAlign:"center",border:"1px solid ".concat(e.palette.utility.main),background:e.palette.background.main,padding:"5px 7px",borderRadius:"3px",fontWeight:"400"},selectPageSize:{margin:"0px 10px",border:"1px solid ".concat(e.palette.utility.main),background:e.palette.background.main,padding:"7px",borderRadius:"3px",fontWeight:"400"},pagination:Object(r.a)({color:e.palette.text.main,fontFamily:"Inter-Bold"},e.breakpoints.down("sm"),{display:"flex",flexDirection:"column","& > *":{margin:"10px 0"}}),emptyRowsPlaceholder:{height:"80px",backgroundColor:e.palette.background.main}}}));t.a=function(e){var t,a,r,c=e.columns,p=e.onRowClick,h=void 0===p?function(){}:p,f=e.data,y=e.tablePagination,S=void 0!==y&&y,k=e.page,N=void 0===k?1:k,w=e.onChangePage,C=e.pageSize,P=void 0===C?10:C,I=e.pageSizes,T=void 0===I?b.z:I,D=e.changePageSize,H=e.noDataText,R=void 0===H?b.gc:H,A=e.classWrapper,B=e.classRow,V=e.rowProps,F=void 0===V?function(){return{}}:V,z=e.cellProps,E=void 0===z?function(){return{}}:z,W=e.error,M=void 0===W?null:W,L=e.editInvoiceItemIndex,G=void 0===L?void 0:L,_=e.editInvoiceItemId,q=void 0===_?void 0:_,U=Object(O.a)().t,Y=g(e),J=Array.isArray(f)&&f||[],K=Object(x.useTable)({columns:c,data:J}),Z=K.getTableProps,Q=K.headerGroups,X=K.rows,$=K.prepareRow;return Object(v.jsxs)("div",{className:A||"",children:[Object(v.jsx)(s.a,{className:"flex flex-1 striped",children:Object(v.jsxs)(l.a,Object(n.a)(Object(n.a)({},Z()),{},{children:[Object(v.jsx)(d.a,{children:Q.map((function(e){return Object(v.jsx)(u.a,Object(n.a)(Object(n.a)({},e.getHeaderGroupProps()),{},{className:Y.tableHead,children:e.headers.map((function(e){return Object(v.jsx)(o.a,Object(n.a)(Object(n.a)({},e.getHeaderProps()),{},{className:Object(j.a)(Y.tableHeaderRow,(null===e||void 0===e?void 0:e.classHeader)||""),children:e.render("Header")}))}))}))}))}),Object(v.jsx)(i.a,{className:Y.tableBody,children:X.length>0?X.map((function(e,t){return $(e),Object(v.jsxs)(m.a.Fragment,{children:[Object(v.jsx)(u.a,Object(n.a)(Object(n.a)({},e.getRowProps(F(e))),{},{className:Object(j.a)(Y.tableRow,B||""),onClick:function(t){return h(t,e)},children:e.cells.map((function(a){var r;return Object(v.jsxs)(o.a,Object(n.a)(Object(n.a)({},a.getCellProps(E(e))),{},{className:Object(j.a)(Y.tableBodyRow,(null===a||void 0===a||null===(r=a.column)||void 0===r?void 0:r.className)||""),children:[a.render("Cell"),M&&t===G&&a.column.id===q&&Object(v.jsx)("div",{className:"text-10 text-red-500 \n relative md:absolute max-w-160 text-left self-end \n lg:mr-0 mr-16 sm:mr-40 -mt-4 md:mt-0",children:"* ".concat(M)})]}),a.column.id)}))}))," "]},e.id)})):Object(v.jsx)(u.a,{children:Object(v.jsx)(o.a,{className:Object(j.a)(Y.emptyRowsPlaceholder,"text-center"),colSpan:"100%",children:U(R)})})})]}))}),(S&&X.length>0||S&&0!==(null===S||void 0===S?void 0:S.totalPages)&&N>((null===S||void 0===S?void 0:S.totalPages)||0))&&Object(v.jsxs)("div",{className:Object(j.a)(Y.pagination,"flex m-10 items-center"),children:[Object(v.jsxs)("span",{children:[Object(v.jsx)("span",{children:U("Page Size")}),Object(v.jsx)("select",{"aria-label":"rows per page",className:Y.selectPageSize,value:P,onChange:function(e){return D(e)},children:T.map((function(e){return Object(v.jsxs)("option",{value:e,children:[e," ",U("rows")]},e)}))})]}),Object(v.jsxs)("span",{children:[Object(v.jsx)("span",{className:"ml-10",children:U("Page")}),Object(v.jsx)("input",{className:Y.inputPage,"aria-label":"jump to page",type:"number",onChange:function(e){return w(e)},value:N,max:null===S||void 0===S?void 0:S.totalPages,min:1}),Object(v.jsxs)("span",{children:[" / ",null!==(t=null===S||void 0===S?void 0:S.totalPages)&&void 0!==t?t:0]})]}),Object(v.jsx)("span",{className:"w-64"}),Object(v.jsxs)("span",{className:"px-10",children:[U("Number of items"),": ",null!==(a=null===S||void 0===S?void 0:S.numberOfElements)&&void 0!==a?a:0]}),Object(v.jsxs)("span",{id:"total-of-items",className:"px-10",children:[U("Total of items"),": ",null!==(r=null===S||void 0===S?void 0:S.totalElements)&&void 0!==r?r:0]})," "]})]})}},1153:function(e,t,a){"use strict";var n=a(381),r=a(623),c=a(396),l=a(109),i=a(8),o=a(1140),s=a(313),d=a(46),u=a(2),b=Object(n.a)((function(e){return{root:{backgroundColor:e.palette.background.main,color:e.palette.text.main,"& .titleText":{fontFamily:"PlusJakartaSans-Bold !important"}}}}));t.a=function(e){var t=Object(s.a)().t,a=b();return Object(u.jsx)(u.Fragment,{children:Object(u.jsx)("div",{className:Object(i.a)(a.root,"flex items-center w-full"),children:Object(u.jsxs)("div",{className:"w-full mt-12",children:[e.linkBack&&Object(u.jsxs)(l.a,{className:"font-bold flex items-center sm:mb-12",component:d.a,role:"button",to:e.linkBack,color:"inherit",children:[Object(u.jsx)(c.a,{className:"mr-4 text-20",children:"arrow_back"}),t(e.titleBack)]}),e.title&&Object(u.jsx)("div",{className:"headline",children:Object(u.jsxs)("div",{className:"flex items-center",children:[e.icon&&Object(u.jsx)(c.a,{className:"text-24 sm:text-32 mr-12",children:e.icon}),Object(u.jsx)(o.a.span,{initial:{scale:.6},animate:{scale:1,transition:{delay:.2}},className:"text-24 sm:text-32 uppercase titleText",children:t(e.title)})]})}),Object(u.jsxs)("div",{className:"my-10",children:[e.button&&!e.buttonHidden&&Object(u.jsx)(r.a,{component:d.a,to:e.link,className:"whitespace-no-wrap mr-20 ",variant:"contained",color:"primary",children:Object(u.jsx)("span",{children:t(e.button)})}),e.refresh&&Object(u.jsx)(r.a,{id:"refresh",className:"ml-2 m-0",variant:"outlined",color:"primary",onClick:e.handleRefresh,children:Object(u.jsx)(c.a,{className:"",children:"refresh"})}),e.isClearFilter&&Object(u.jsxs)(r.a,{id:"clearFilters",className:"ml-2 m-0",variant:"outlined",color:"primary",onClick:function(){var e=window.location.search.includes("tenantType")?"tenantType=".concat(window.location.search.split("tenantType=")[1].split("&")[0]):"";window.location.search=e},children:[Object(u.jsx)(c.a,{children:"filter_alt"})," Clear"]})]})]})})})}},1154:function(e,t,a){"use strict";var n=a(3),r=a(1132),c=a(10),l=a(52),i=a(16),o=a(2);var s=function(e){var t=Object(i.c)(l.f),a=Object(i.c)(l.c),n=Object(i.c)((function(e){return e.auth.user.data})).role;return Object(o.jsx)("div",{className:e.classes.header,children:e.header&&Object(o.jsx)(r.a,{theme:n===c.kd.contractor_company.name?a:t,children:e.header})})},d=a(9),u=a(19),b=a(108),j=a(1144),p=a(1147),m=a(8),O=a(0),x=a.n(O),v=a(233),g=a(59);var h=function(e){var t=Object(g.a)(),a=Object(i.c)(Object(l.e)(t.palette.primary.main)),n=e.classes;return Object(o.jsxs)(o.Fragment,{children:[e.header&&Object(o.jsx)(r.a,{theme:a,children:Object(o.jsx)("div",{className:Object(m.a)(n.sidebarHeader,e.variant),children:e.header})}),e.content&&Object(o.jsx)(v.a,{className:n.sidebarContent,enable:e.innerScroll,children:e.content})]})};function f(e,t){var a=Object(O.useState)(!1),n=Object(u.a)(a,2),r=n[0],c=n[1],l=e.classes;Object(O.useImperativeHandle)(t,(function(){return{toggleSidebar:i}}));var i=function(){c(!r)};return Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)(j.a,{lgUp:"permanent"===e.variant,children:Object(o.jsx)(p.a,{variant:"temporary",anchor:e.position,open:r,onOpen:function(e){},onClose:function(e){return i()},disableSwipeToOpen:!0,classes:{root:Object(m.a)(l.sidebarWrapper,e.variant),paper:Object(m.a)(l.sidebar,e.variant,"left"===e.position?l.leftSidebar:l.rightSidebar)},ModalProps:{keepMounted:!0},container:e.rootRef.current,BackdropProps:{classes:{root:l.backdrop}},style:{position:"absolute"},children:Object(o.jsx)(h,Object(d.a)({},e))})}),"permanent"===e.variant&&Object(o.jsx)(j.a,{mdDown:!0,children:Object(o.jsx)(b.a,{variant:"permanent",className:Object(m.a)(l.sidebarWrapper,e.variant),open:r,classes:{paper:Object(m.a)(l.sidebar,e.variant,"left"===e.position?l.leftSidebar:l.rightSidebar)},children:Object(o.jsx)(h,Object(d.a)({},e))})})]})}var y=Object(O.forwardRef)(f),S=a(381),k=200,N=Object(S.a)((function(e){var t;return{"@global":{"#fuse-main":{height:function(e){return e.innerScroll&&"100vh"}}},root:{display:"flex",flexDirection:"row",minWidth:0,minHeight:"100%",position:"relative",flex:"1 1 auto",height:"auto",backgroundColor:e.palette.background.main},innerScroll:{height:"100%"},topBg:Object(n.a)({position:"absolute",left:0,right:0,top:0,height:k,pointerEvents:"none",backgroundSize:"200px auto !important",backgroundRepeat:"no-repeat !important",backgroundPosition:"bottom 60px right 10px !important",backgroundColor:"".concat(e.palette.background.main," !important")},e.breakpoints.down("md"),{backgroundImage:"none !important"}),contentWrapper:(t={display:"flex",flexDirection:"column",padding:"0 3.2rem",flex:"1 1 100%",zIndex:2,maxWidth:"100%",minWidth:0,minHeight:0},Object(n.a)(t,e.breakpoints.down("sm"),{padding:"0 1.6rem"}),Object(n.a)(t,e.breakpoints.down("xs"),{padding:"0 0.5rem"}),t),header:{height:136,minHeight:136,maxHeight:136,display:"flex",color:e.palette.primary.contrastText},headerSidebarToggleButton:{color:e.palette.primary.contrastText},contentCard:{display:"flex",flex:"1 1 100%",flexDirection:"column",paddingTop:"20px",backgroundColor:e.palette.background.dark,boxSh
1adow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",minHeight:0,borderRadius:"8px 8px 0 0"},toolbar:{display:"flex",minHeight:64,alignItems:"center",borderBottom:"1px solid ".concat(e.palette.utility.main)},content:{color:e.palette.text.main,flex:"1 1 auto",height:"100%",overflow:"auto","-webkit-overflow-scrolling":"touch"},sidebarWrapper:{position:"absolute",backgroundColor:"transparent",zIndex:5,overflow:"hidden","&.permanent":Object(n.a)({},e.breakpoints.up("lg"),{zIndex:1,position:"relative"})},sidebar:{position:"absolute","&.permanent":Object(n.a)({},e.breakpoints.up("lg"),{backgroundColor:"transparent",position:"relative",border:"none",overflow:"hidden"}),width:240,height:"100%"},leftSidebar:{},rightSidebar:{},sidebarHeader:{height:k,minHeight:k,color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark,"&.permanent":Object(n.a)({},e.breakpoints.up("lg"),{backgroundColor:"transparent"})},sidebarContent:Object(n.a)({display:"flex",flex:"1 1 auto",flexDirection:"column",backgroundColor:e.palette.background.default,color:e.palette.text.primary},e.breakpoints.up("lg"),{overflow:"auto","-webkit-overflow-scrolling":"touch"}),backdrop:{position:"absolute"}}})),w=x.a.forwardRef((function(e,t){var a=Object(O.useRef)(null),n=Object(O.useRef)(null),r=Object(O.useRef)(null),c=N(e),l=e.rightSidebarHeader||e.rightSidebarContent,i=e.leftSidebarHeader||e.leftSidebarContent;return x.a.useImperativeHandle(t,(function(){return{rootRef:r,toggleLeftSidebar:function(){a.current.toggleSidebar()},toggleRightSidebar:function(){n.current.toggleSidebar()}}})),Object(o.jsxs)("div",{className:Object(m.a)(c.root,e.innerScroll&&c.innerScroll),ref:r,children:[Object(o.jsx)("div",{className:c.topBg}),Object(o.jsxs)("div",{className:"flex container w-full",children:[i&&Object(o.jsx)(y,{position:"left",header:e.leftSidebarHeader,content:e.leftSidebarContent,variant:e.leftSidebarVariant||"permanent",innerScroll:e.innerScroll,classes:c,ref:a,rootRef:r}),Object(o.jsxs)("div",{className:Object(m.a)(c.contentWrapper,i&&(void 0===e.leftSidebarVariant||"permanent"===e.leftSidebarVariant)&&"lg:ltr:pl-0 lg:rtl:pr-0",l&&(void 0===e.rightSidebarVariant||"permanent"===e.rightSidebarVariant)&&"lg:pr-0"),children:[Object(o.jsx)(s,{header:e.header,classes:c}),Object(o.jsxs)("div",{className:Object(m.a)(c.contentCard,e.innerScroll&&"inner-scroll"),children:[e.contentToolbar&&Object(o.jsx)("div",{className:c.toolbar,children:e.contentToolbar}),e.content&&Object(o.jsx)(v.a,{className:c.content,enable:e.innerScroll,scrollToTopOnRouteChange:e.innerScroll,children:e.content})]})]}),l&&Object(o.jsx)(y,{position:"right",header:e.rightSidebarHeader,content:e.rightSidebarContent,variant:e.rightSidebarVariant||"permanent",innerScroll:e.innerScroll,classes:c,ref:n,rootRef:r})]})]})}));w.defaultProps={};t.a=x.a.memo(w)},1156:function(e,t,a){"use strict";var n=a(118),r=a(313),c=a(2);t.a=function(e){var t=e.label,a=e.placeholder,l=e.value,i=e.setValue,o=e.styleWrapper,s=void 0===o?"min-w-128":o,d=e.styleLabel,u=void 0===d?"pb-5":d,b=e.styleInput,j=void 0===b?"text-center text-12 border-b-1 border-grey-400 max-w-320 bg-transparent":b,p=e.setPage,m=e.type,O=void 0===m?"text":m,x=Object(r.a)().t,v=Object(n.a)((function(e){p(1),i(e.target.value)}),1e3);return Object(c.jsx)(c.Fragment,{children:Object(c.jsxs)("div",{className:s,children:[Object(c.jsx)("div",{className:u,children:x(t)}),Object(c.jsx)("input",{id:t,type:O,className:j,placeholder:x(a||t),defaultValue:l,onChange:v})]})})}},1167:function(e,t,a){"use strict";var n=a(19),r=a(3),c=a(381),l=a(0),i=a(313),o=a(2),s=Object(c.a)((function(e){return{inputGroup:Object(r.a)({},e.breakpoints.between("md","lg"),{maxWidth:"32rem"}),inputLabelHidden:Object(r.a)({},e.breakpoints.up("md"),{display:"none"})}}));t.a=function(e){var t=e.dateLabel,a=e.dateId,r=e.startDateId,c=e.setStartDate,d=e.endDateId,u=e.setEndDate,b=e.startDate,j=e.endDate,p=Object(i.a)().t,m=s(e),O=Object(l.useState)(!!b||!!j),x=Object(n.a)(O,2),v=x[0],g=x[1];return Object(o.jsx)(o.Fragment,{children:v?Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("span",{className:m.inputLabelHidden,children:[p(t),":"]}),Object(o.jsxs)("div",{className:m.inputGroup,children:[Object(o.jsx)("input",{id:r,className:"text-center border-b-1 border-grey-400 max-w-320 bg-transparent text-12",type:"date",onKeyDown:function(e){return e.preventDefault()},onBlur:function(e){return c(e.target.value)},defaultValue:b,onChange:function(e){return c(e.target.value)}}),Object(o.jsx)("input",{id:d,type:"date",className:"text-center border-b-1 border-grey-400 max-w-320 bg-transparent text-12",onKeyDown:function(e){return e.preventDefault()},onBlur:function(e){return u(e.target.value)},defaultValue:j,onChange:function(e){return u(e.target.value)}})]})]}):Object(o.jsx)("input",{id:a,className:"text-center border-b-1 border-grey-400 max-w-128 bg-transparent text-12",placeholder:p(t),onClick:function(){return g(!0)}})})}},1169:function(e,t,a){"use strict";var n=a(0),r=a(44);t.a=Object(r.a)(n.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete")},1469:function(e,t,a){"use strict";a.r(t);var n=a(19),r=a(1154),c=a(397),l=a(1153),i=a(234),o=a(143),s=a(0),d=a(313),u=a(42),b=a(9),j=a(25),p=a(15),m=a(1062),O=a(628),x=a(625),v=a(10),g=a(21),h=a(1152),f=a(65),y=a.n(f),S=a(16),k=a(46),N=a(159),w=a(240),C=a(1167),P=a(1156),I=a(1151),T=a(236),D=a(403),H=a(2),R=Object(o.a)("oneFreeApp",i.a)((function(e){var t,a,r,l,i=e.refresh,o=Object(d.a)().t,u=Object(S.b)(),f=Object(T.a)(),R=Object(c.m)(e),A=Object(S.c)((function(e){return e.oneFreeApp.customers})).commissionAgreements,B=Object(s.useState)(+(null===f||void 0===f?void 0:f.get("size"))||v.A.PAGE_SIZE),V=Object(n.a)(B,2),F=V[0],z=V[1],E=Object(s.useState)(null!==f&&void 0!==f&&f.get("page")?+(null===f||void 0===f?void 0:f.get("page")):v.A.PAGE),W=Object(n.a)(E,2),M=W[0],L=W[1],G=Object(s.useState)((null===f||void 0===f||null===(t=f.get("status"))||void 0===t?void 0:t.split(","))||[v.e.PENDING]),_=Object(n.a)(G,2),q=_[0],U=_[1],Y=Object(s.useState)((null===f||void 0===f?void 0:f.get("id"))||""),J=Object(n.a)(Y,2),K=J[0],Z=J[1],Q=Object(s.useState)((null===f||void 0===f||null===(a=f.get("agreementType"))||void 0===a?void 0:a.split(","))||[v.h.MANUA
1L.value]),X=Object(n.a)(Q,2),$=X[0],ee=X[1],te=Object(s.useState)((null===f||void 0===f?void 0:f.get("userProfileId"))||""),ae=Object(n.a)(te,2),ne=ae[0],re=ae[1],ce=Object(s.useState)((null===f||void 0===f?void 0:f.get("fullname"))||""),le=Object(n.a)(ce,2),ie=le[0],oe=le[1],se=Object(s.useState)((null===f||void 0===f?void 0:f.get("customerName"))||""),de=Object(n.a)(se,2),ue=de[0],be=de[1],je=Object(s.useState)((null===f||void 0===f?void 0:f.get("businessId"))||""),pe=Object(n.a)(je,2),me=pe[0],Oe=pe[1],xe=Object(s.useState)((null===f||void 0===f||null===(r=f.get("contractType"))||void 0===r?void 0:r.split(","))||[]),ve=Object(n.a)(xe,2),ge=ve[0],he=ve[1],fe=Object(s.useState)((null===f||void 0===f?void 0:f.get("startDate"))||""),ye=Object(n.a)(fe,2),Se=ye[0],ke=ye[1],Ne=Object(s.useState)((null===f||void 0===f?void 0:f.get("endDate"))||""),we=Object(n.a)(Ne,2),Ce=we[0],Pe=we[1],Ie=Object(s.useState)((null===f||void 0===f||null===(l=f.get("expenseType"))||void 0===l?void 0:l.split(","))||[]),Te=Object(n.a)(Ie,2),De=Te[0],He=Te[1],Re=Object(s.useState)((null===f||void 0===f?void 0:f.get("rejectionReason"))||""),Ae=Object(n.a)(Re,2),Be=Ae[0],Ve=Ae[1];Object(s.useEffect)((function(){var e={page:M-1,size:F,id:K,statuses:q.join(","),userProfileId:ne,agreementTypes:$.join(","),fullname:ie,customerName:ue,businessId:me,contractTypes:ge.join(","),startDateStart:Se,startDateEnd:Ce,expenseTypes:De.join(","),rejectionReason:Be},t=p.a.omitBy(e,(function(e){return""===e}));u(Object(D.q)(t)),j.a.push({search:g.L(Object(b.a)(Object(b.a)({},t),{},{page:M}))})}),[u,i,M,F,q,ne,$,ie,ue,me,ge,Se,Ce,De,Be,K]);var Fe=Object(s.useMemo)((function(){return[{Header:Object(H.jsx)(P.a,{label:"Id",placeholder:"Id",value:K,setValue:Z,setPage:L,styleWrapper:"max-w-64",styleInput:"text-center border-b-1 max-w-64"}),className:"justify-center",id:"id",accessor:function(e){return Object(H.jsxs)("div",{className:"flex flex-row",children:[Object(H.jsx)(k.a,{to:"customers/".concat(null===e||void 0===e?void 0:e.customerId,"/?agreement=").concat(null===e||void 0===e?void 0:e.id),className:"p-4",children:null===e||void 0===e?void 0:e.id}),Object(H.jsx)(w.a,{message:null===e||void 0===e?void 0:e.id})]})}},{Header:function(){return Object(H.jsxs)("div",{children:[Object(H.jsx)("div",{className:"pb-5",children:o("Status")}),Object(H.jsx)(m.a,{id:"selectStatus",multiple:!0,value:q,displayEmpty:!0,placeholder:o("Status"),required:!1,input:Object(H.jsx)(O.a,{}),onChange:function(e){return U(e.target.value)},renderValue:function(e){return Object(H.jsx)("div",{className:R.chips,children:e.map((function(e){return Object(H.jsx)(I.a,{backgroundColor:Object(N.e)(e),label:e},e)}))})},MenuProps:c.l,children:Object.values(v.f).map((function(e){var t=e.value;return Object(H.jsx)(x.a,{value:t,children:Object(H.jsx)(I.a,{backgroundColor:Object(N.e)(t),label:t})},t)}))})]})},id:"status",accessor:function(e){return Object(H.jsx)(I.a,{backgroundColor:Object(N.e)(null===e||void 0===e?void 0:e.status),label:null===e||void 0===e?void 0:e.status})}},{Header:function(){return Object(H.jsxs)("div",{children:[Object(H.jsx)("div",{className:"pb-5",children:o("Agreement Type")}),Object(H.jsx)(m.a,{id:"selectAgreementType",multiple:!0,value:$,displayEmpty:!0,placeholder:o("Agreement Type"),required:!1,input:Object(H.jsx)(O.a,{}),onChange:function(e){return ee(e.target.value)},renderValue:function(e){return Object(H.jsx)("div",{className:R.chips,children:e.map((function(e){return Object(H.jsx)(I.a,{backgroundColor:Object(N.e)(e),label:e},e)}))})},MenuProps:c.l,children:Object.values(v.h).map((function(e){var t=e.value;return Object(H.jsx)(x.a,{value:t,children:Object(H.jsx)(I.a,{backgroundColor:Object(N.e)(t),label:t})},t)}))})]})},id:"agreementType",accessor:function(e){return Object(H.jsx)(I.a,{backgroundColor:Object(N.e)(null===e||void 0===e?void 0:e.agreementType),label:null===e||void 0===e?void 0:e.agreementType})}},{Header:Object(H.jsx)(P.a,{type:"number",label:o("User Profile Id"),placeholder:"User Profile Id",value:ne,setValue:re,setPage:L}),id:"userProfileId",accessor:"userProfileId"},{Header:Object(H.jsx)(P.a,{label:o("Full Name"),placeholder:"Full Name",value:ie,setValue:oe,setPage:L}),id:"fullname",accessor:function(e){var t;return Object(H.jsx)("span",{children:"".concat(null!==(t=null===e||void 0===e?void 0:e.fullname)&&void 0!==t?t:"")})}},{Header:Object(H.jsx)(P.a,{label:o("Customer Name"),placeholder:"Customer Name",value:ue,setValue:be,setPage:L}),id:"customerName",accessor:function(e){var t;return Object(H.jsx)("span",{children:"".concat(null!==(t=null===e||void 0===e?void 0:e.customerName)&&void 0!==t?t:"")})}},{Header:Object(H.jsx)(P.a,{label:o("Business Id / SSN"),placeholder:"Business Id / SSN",value:me,setValue:Oe,setPage:L}),id:"businessId",accessor:function(e){var t;return Object(H.jsx)("span",{children:"".concat(null!==(t=null===e||void 0===e?void 0:e.businessId)&&void 0!==t?t:"")})}},{Header:function(){return Object(H.jsxs)("div",{children:[Object(H.jsx)("div",{className:"pb-5",children:o("Contract Type")}),Object(H.jsx)(m.a,{id:"selectContractType",multiple:!0,value:ge,displayEmpty:!0,placeholder:o("Contract Type"),required:!1,input:Object(H.jsx)(O.a,{}),onChange:function(e){return he(e.target.value)},renderValue:function(e){return Object(H.jsx)("div",{className:R.chips,children:e.map((function(e){return Object(H.jsx)(I.a,{backgroundColor:Object(N.e)(e),label:e},e)}))})},MenuProps:c.l,children:Object.values(v.b).map((function(e,t){return Object(H.jsx)(x.a,{value:e,children:Object(H.jsx)(I.a,{backgroundColor:Object(N.e)(e),label:e})},t)}))})]})},id:"contractType",accessor:function(e){return Object(H.jsx)(I.a,{backgroundColor:Object(N.e)(null===e||void 0===e?void 0:e.contractType),label:null===e||void 0===e?void 0:e.contractType})}},{Header:function(){return Object(H.jsxs)("div",{className:"max-w-320",children:[Object(H.jsx)("div",{className:"pb-5 block",children:o("Start Date")}),Object(H.jsx)(C.a,{dateLabel:"Start Date",dateId:"starDate",startDateId:"startDate",setStartDate:ke,endDateId:"endDate",setEndDate:Pe,startDate:Se,endDate:Ce})]})},id:"startDate",accessor:"startDate",Cell:function(e){return e.value?y()(e.value).format("DD.MM.YYYY"):o("(not set)")}},{Header:function(){return Object(H.jsxs)("div",{children:[Object(H.jsx)("div",{className:"pb-5",children:o("Agreement Expense Type")}),Object(H.jsx)(m.a,{id:"selectAgreementType",multiple:!0,value:De,displayEmpty:!0,placeholder:o("Agreement Expense Type"),required:!1,input:Object(H.jsx)(O.a,{}),onChange:function(e){return He(e.target.value)},renderValue:function(e){return Object(H.jsx)("div",{className:R.chips,children:e.map((function(e){return Object(H.jsx)(I.a,{backgroundColor:Object(N.e)(e),label:e},e)}))})},MenuProps:c.l,children:Object.values(v.d).map((function(e,t){return Object(H.jsx)(x.a,{value:e,children:Object(H.jsx)(I.a,{backgroundColor:Object(N.e)(e),label:e})},t)}))})]})},id:"expenseType",accessor:function(e){return Object(H.jsx)(I.a,{backgroundColor:Object(N.e)(null===e||void 0===e?void 0:e.expenseType),label:null===e||void 0===e?void 0:e.expenseType})}},{Header:Object(H.jsx)(P.a,{label:o("Rejection reason"),placeholder:"Rejection reason",value:
1Be,setValue:Ve,setPage:L}),id:"rejectionReason",accessor:function(e){var t;return Object(H.jsx)("span",{children:"".concat(null!==(t=null===e||void 0===e?void 0:e.rejectionReason)&&void 0!==t?t:"")})}}]}),[De,$,me,R.chips,ge,ue,Ce,ie,K,Be,Se,q,o,ne]);return Object(H.jsx)(h.a,{columns:Fe,data:null===A||void 0===A?void 0:A.content,tablePagination:A,page:M,onChangePage:function(e){L(e.target.value)},pageSize:F,changePageSize:function(e){z(e.target.value)}})}));t.default=Object(o.a)("oneFreeApp",i.a)((function(e){var t=Object(d.a)().t,a=(Object(u.useParams)(),Object(s.useState)(!1)),i=Object(n.a)(a,2),o=i[0],b=i[1];return Object(H.jsx)(r.a,{classes:c.n,header:Object(H.jsx)(l.a,{refresh:!0,handleRefresh:function(){b(!o)},isClearFilter:!0,title:t("Service Agreements"),icon:"supervised_user_circle"}),content:Object(H.jsx)(H.Fragment,{children:Object(H.jsx)(R,{refresh:o})}),sidebarInner:!0})}))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.