1(this["webpackJsonpkrispcall-client"]=this["webpackJsonpkrispcall-client"]||[]).push([[97],{1497:function(n,e,t){"use strict";t.d(e,"h",(function(){return b})),t.d(e,"i",(function(){return g})),t.d(e,"g",(function(){return m})),t.d(e,"c",(function(){return j})),t.d(e,"d",(function(){return O})),t.d(e,"f",(function(){return w})),t.d(e,"j",(function(){return y})),t.d(e,"b",(function(){return k})),t.d(e,"e",(function(){return D})),t.d(e,"a",(function(){return z}));var r,i,o,a,c,l,d,s,u,f,p=t(3),h=t(842),x=t(165),v=t(15),b=v.d.div(r||(r=Object(p.a)(["\n white-space: nowrap;\n border-radius: 5px;\n padding: 3px 6px 3px 10px;\n display: flex;\n align-items: center;\n width: fit-content;\n font-weight: ",";\n font-size: ",";\n color: ",";\n > svg {\n font-size: 16px;\n margin-left: 4px;\n vertical-align: middle;\n }\n &.closed {\n background: ",";\n }\n &.open,\n &.in-progress {\n color: ",";\n > svg {\n margin-left: 2px;\n }\n }\n &.open {\n background: ",";\n }\n &.in-progress {\n background: ",";\n }\n"])),(function(n){return n.theme.text.weight.semiBold}),(function(n){return n.theme.text.size.body.text.smaller}),(function(n){return n.theme.colors.text.t6}),(function(n){return n.theme.colors.text.t1}),(function(n){return n.theme.colors.text.t0}),(function(n){return n.theme.colors.info.default}),(function(n){return n.theme.colors.success.default})),g=Object(v.d)(h.a)(i||(i=Object(p.a)(["\n min-width: 180px !important;\n box-shadow: 0px 4px 16px rgba(36, 44, 55, 0.1);\n border-radius: 6px;\n .ant-dropdown-menu-item {\n padding: 12px 24px;\n &:hover {\n background: ",";\n color: ",";\n }\n }\n .menu-item__active {\n background: ",";\n color: ",";\n }\n"])),(function(n){return n.theme.colors.primary.p0}),(function(n){return n.theme.colors.primary.default}),(function(n){return n.theme.colors.primary.p0}),(function(n){return n.theme.colors.primary.default})),m=v.d.div(o||(o=Object(p.a)(["\n min-width: 120px;\n white-space: break-spaces;\n font-weight: ",";\n font-size: 14px;\n color: ",";\n &.color-t5 {\n color: ",";\n }\n svg.copy {\n visibility: hidden;\n position: relative;\n display: inline;\n color: ",";\n margin-left: 4px;\n }\n &:hover {\n svg.copy {\n visibility: visible;\n }\n }\n"])),(function(n){return n.theme.text.weight.semiBold}),(function(n){return n.theme.colors.text.t7}),(function(n){return n.theme.colors.text.t5}),(function(n){return n.theme.colors.text.t7})),j=v.d.div(a||(a=Object(p.a)(["\n display: flex;\n align-items: center;\n line-height: 14px;\n column-gap: 6px;\n img {\n min-width: 18px;\n width: 18px;\n height: 12px;\n border-radius: 2px;\n object-fit: cover;\n &[alt='NP'] {\n object-fit: contain;\n }\n }\n"]))),O=v.d.div(c||(c=Object(p.a)(["\n display: flex;\n align-items: center;\n svg {\n position: relative;\n top: -1px;\n margin-left: 6px;\n }\n"]))),w=v.d.div(l||(l=Object(p.a)(["\n display: flex;\n align-items: center;\n padding: 5px 9px;\n font-weight: ",";\n font-size: ",";\n line-height: 16px;\n border-radius: 5px;\n width: fit-content;\n white-space: nowrap;\n svg {\n margin-left: 10px;\n font-size: 16px;\n vertical-align: middle;\n }\n &.purchase-approved,\n &.porting-approved,\n &.kyc-verified {\n color: ",";\n background: ",";\n }\n &.verification-pending,\n &.port-requested,\n &.kyc-unverified {\n color: ",";\n background: ",";\n }\n &.kyc-requested,\n &.in-progress,\n &.porting-in-progress {\n color: ",";\n background: ",";\n }\n &.payment-failed {\n color: ",";\n background: ",";\n }\n &.purchase-pending {\n color: ",";\n background: ",";\n }\n &.basic-kyc-rejected,\n &.selfie-kyc-rejected {\n color: ",";\n background: ",";\n }\n"])),(function(n){return n.theme.text.weight.semiBold}),(function(n){return n.theme.text.size.body.text.caption}),(function(n){return n.theme.colors.success.default}),(function(n){return n.theme.colors.success.s0}),(function(n){return n.theme.colors.warning.default}),(function(n){return n.theme.colors.warning.w1}),(function(n){return n.theme.colors.info.default}),(function(n){return n.theme.colors.info.i0}),(function(n){return n.theme.colors.danger.default}),(function(n){return n.theme.colors.danger.d0}),(function(n){return n.theme.colors.text.t6}),(function(n){return n.theme.colors.text.t0}),(function(n){return n.theme.colors.danger.default}),(function(n){return n.theme.colors.danger.d0})),y=Object(v.d)(x.a)(d||(d=Object(p.a)(["\n &.ant-btn {\n display: flex;
1\n align-items: center;\n background: ",";\n border: none;\n border-radius: 10px;\n padding: 10px 16px;\n font-weight: ",";\n font-size: ",";\n line-height: 12px;\n color: ",";\n }\n"])),(function(n){return n.theme.colors.primary.p1}),(function(n){return n.theme.text.weight.bold}),(function(n){return n.theme.text.size.body.text.caption}),(function(n){return n.theme.colors.text.t7})),k=Object(v.d)(x.a)(s||(s=Object(p.a)(["\n &.ant-btn {\n display: flex;\n align-items: center;\n padding: 0px 10px;\n font-weight: ",";\n font-size: ",";\n color: ",";\n border: 1px solid ",";\n border-radius: 5px;\n height: 26px;\n line-height: 16px;\n svg {\n margin-left: 10px;\n font-size: 16px;\n vertical-align: middle;\n }\n }\n"])),(function(n){return n.theme.text.weight.bold}),(function(n){return n.theme.text.size.body.text.caption}),(function(n){return n.theme.colors.text.t8}),(function(n){return n.theme.colors.text.t3})),D=v.d.form(u||(u=Object(p.a)(["\n h5 {\n font-weight: ",";\n font-size: ",";\n line-height: 16px;\n color: ",";\n margin-bottom: 6px;\n }\n .workspace-id {\n font-weight: ",";\n font-size: ",";\n line-height: 16px;\n color: ",";\n }\n"])),(function(n){return n.theme.text.weight.bold}),(function(n){return n.theme.text.size.body.text.secondary}),(function(n){return n.theme.colors.text.t7}),(function(n){return n.theme.text.weight.semiBold}),(function(n){return n.theme.text.size.body.text.small}),(function(n){return n.theme.colors.text.t5})),z=v.d.div(f||(f=Object(p.a)(["\n span.ant-avatar {\n border: 3px solid;\n border-color: #ffffff;\n border-radius: 15px;\n width: 32px;\n height: 32px;\n background: rgb(97 51 149);\n .ant-avatar-string {\n font-weight: 600;\n font-size: 14px;\n line-height: 32px !important;\n color: rgb(207, 204, 213);\n text-transform: capitalize;\n }\n }\n .avatar:not(:first-child) {\n margin-left: -16px;\n }\n"])))},1502:function(n,e,t){"use strict";t.d(e,"a",(function(){return i}));var r=t(72),i=function(n){var e=n.hasDateFilter,t=Object(r.a)(),i=t.isLaptop,o=t.isTablet,a=t.isMobile,c=e?153:151;i&&(c=e?200:151),(o||a)&&(c=e?254:198);return{tableBodyHeight:window.innerHeight-c-47-80-22,padding:"22px 32px 0px 28px"}}},1506:function(n,e,t){"use strict";var r=t(610),i=t.n(r),o=t(611),a=Object(o.b)(i.a);e.a=a},2356:function(n,e,t){"use strict";t.r(e),t.d(e,"default",(function(){return I}));var r=t(2277),i=t(183),o=t(228),a=t(229),c=t(1499),l=t(406),d=t(50),s=t(543),u=t(7),f=t(1497),p=t(60),h=t(78),x=new Date,v=new Date;v.setDate(x.getDate()-30);var b={first:50,after:null,startDate:v,endDate:x},g=Object(p.c)(null),m=Object(p.c)(b);var j=t(1);var O=t(6),w=t.n(O),y=t(14),k=t(21),D=t(5),z=t(2),N=t(253),P=t(1542);function L(){var n,e,t,r,i,a,c,l,d,s,u,f,p,x,v=(x=m,{setSearch:function(n){var e=x(),t=Object(h.a)(e,(function(e){e.search=n}));x(t)},setDateRangeFilter:function(n,e){var t=x(),r=Object(h.a)(t,(function(t){t.startDate=n,t.endDate=e}));x(r)}}).setDateRangeFilter,g=Object(o.a)(m),j=Object(N.a)(P.q,{fetchPolicy:"cache-and-network"}),O=Object(D.a)(j,2),L=O[0],F=O[1],C=F.data,A=F.fetchMore,B=F.loading,I=F.refetch;Object(z.useEffect)((function(){L({variables:{params:g}})}),[g,L]);var M=Object(z.useMemo)((function(){var n,e,t;return null!==(n=null===C||void 0===C||null===(e=C.workspaceActivities)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.edges)&&void 0!==n?n:[]}),[C]),T=M.length>0,q=null===C||void 0===C||null===(n=C.workspaceActivities)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.pageInfo.hasPreviousPage,H=null===C||void 0===C||null===(t=C.workspaceActivities)||void 0===t||null===(r=t.data)||void 0===r||null===(i=r.pageInfo)||void 0===i?void 0:i.startCursor,R=null===C||void 0===C||null===(a=C.workspaceActivities)||void 0===a||null===(c=a.data)||void 0===c?void 0:c.pageInfo.hasNextPage,Y=null===C||void 0===C||null===(l=C.workspaceActivities)||void 0===l||null===(d=l.data)||void 0===d||null===(s=d.pageInfo)||void 0===s?void 0:s.endCursor;return{data:M,totalCount:null===C||void 0===C||null===(u=C.workspaceActivities)||void 0===u||null===(f=u.data)||void 0===f||null===(p=f.pageInfo)||void 0===p?void 0:p.totalCount,refetch:I,hasData:T,hasPreviousPage:q,hasNextPage:R,loading:B,onPrev:function(){var n=Object(k.a)(w.a.mark((function n(){return w.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!A||!H){n.next=3;break}return n.next=3,A({variables:{params:Object(y.a)(Object(y.a)({},g),{},{after:null,before:H||null,first:null,last:50})}});case 3:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),qParams:g,onNext:function(){var n=Object(k.a)(w.a.mark((function n(){return w.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!A||!Y){n.next=3;break}return n.next=3,A({variables:{params:Object(y.a)(Object(y.a)({},g),{},{after:Y||null,before:null,first:50,last:null})}});case 3:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),handleDateFilter:function(n){n?v(null===n||void 0===n?void 0:n[0],null===n||void 0===n?void 0:n[1]):v(b.startDate,b.endDate)}}}var F=t(1491),C=t(1506).a.RangePicker,A=function(n){var e=n.title,t=n.description,r=n.enableDateFilter,i=n.children,o=n.handleDateFilter;return Object(j.jsx)(j.Fragment,{children:Object(j.jsxs)(F.a,{className:"flex justify-between flex-wrap gap-4",children:[Object(j.jsxs)("div",{children:[Object(j.jsx)("h6",{children:e}),Object(j.jsx)("div",{children:t})]}),r&&Object(j.jsxs)("div",{className:"flex items-center",children:[i,Ob
1ject(j.jsx)(C,{format:"YYYY-MM-DD",onChange:o})]})]})})},B=t(1502);function I(){var n=Object(o.a)(m),e=Object(B.a)({hasDateFilter:!1}),t=e.tableBodyHeight,p=e.padding,h=function(){var n=Object(o.a)(g);return[{title:"Workspace",render:function(e){var t=e.node;return Object(j.jsxs)("div",{children:[Object(j.jsx)(f.g,{children:Object(j.jsx)("div",{className:"flex",children:Object(j.jsx)(s.a,{textToHighlight:null===t||void 0===t?void 0:t.title,searchWords:[n],className:"line-clamp-1"})})}),Object(j.jsx)(f.g,{className:"color-t5",children:(null===t||void 0===t?void 0:t.id)&&Object(j.jsx)(u.x,{title:null===t||void 0===t?void 0:t.id,children:Object(j.jsxs)("div",{className:"flex",children:["#",null===t||void 0===t?void 0:t.id.substring(0,4),Object(j.jsx)(l.CopyToClipboard,{text:null===t||void 0===t?void 0:t.id,onCopy:function(){return Object(u.w)({content:"".concat(null===t||void 0===t?void 0:t.id," copied.")})},children:Object(j.jsx)(d.z,{className:"copy"})})]})})})]})}},{title:"Last Login Date",render:function(n){var e=n.node,t=(null===e||void 0===e?void 0:e.lastLoginDate)&&Object(i.default)(new Date(null===e||void 0===e?void 0:e.lastLoginDate),"LLL do, yyyy");return Object(j.jsx)(f.g,{children:null!==t&&void 0!==t?t:"N/a"})}},{title:"Total count of numbers",render:function(n){var e,t=(n.node||{}).allNumbers;return Object(j.jsx)("div",{children:null!==(e=null===t||void 0===t?void 0:t.length)&&void 0!==e?e:0})}}]}(),x=L(),v=x.data,b=(x.totalCount,x.hasNextPage),O=x.hasPreviousPage,w=x.onNext,y=x.onPrev,k=x.loading,D=x.handleDateFilter,z=Object(i.default)(new Date(null===n||void 0===n?void 0:n.startDate),"LLL do, yyyy"),N=Object(i.default)(new Date(null===n||void 0===n?void 0:n.endDate),"LLL do, yyyy");return Object(j.jsx)(F.f,{padding:p,children:Object(j.jsxs)("div",{className:"content",children:[Object(j.jsx)(A,{title:Object(j.jsx)(j.Fragment,{children:Object(j.jsx)("span",{className:"mr-1",children:"Inactive Workspaces"})}),handleDateFilter:D,enableDateFilter:!0,description:"Record of inactive workspaces from ".concat(z," to ").concat(N)}),Object(j.jsxs)(F.e,{className:"workspaces-table",children:[Object(j.jsx)(r.a,{columns:h,dataSource:v,rowKey:function(n){return Object(a.a)()},showSorterTooltip:!1,loading:k,pagination:!1,scroll:{x:"max-content",y:t}}),Object(j.jsx)(c.c,{next:w,prev:y,disablePrev:!O,disableNext:!b})]})]})})}}}]); 2//# sourceMappingURL=97.e357e28c.chunk.js.map
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.