1(this["webpackJsonpkrispcall-client"]=this["webpackJsonpkrispcall-client"]||[]).push([[43],{1491:function(n,e,t){"use strict";t.d(e,"f",(function(){return x})),t.d(e,"a",(function(){return v})),t.d(e,"c",(function(){return j})),t.d(e,"b",(function(){return O})),t.d(e,"e",(function(){return w})),t.d(e,"d",(function(){return y}));var a,r,i,o,c,l,s,d,u,p,f,b=t(3),m=t(15),h=t(1403),g=t(400),x=m.d.main(a||(a=Object(b.a)(["\n display: flex;\n padding: ",";\n width: 100%;\n .content {\n width: 100%;\n }\n textarea {\n min-height: 220px !important;\n }\n"])),(function(n){return n.padding||"22px 30px"})),v=(m.d.span(r||(r=Object(b.a)(["\n margin-top: 4px !important;\n color: red !important;\n font-size: "," !important;\n font-weight: "," !important;\n line-height: 12px !important;\n text-transform: lowercase;\n &:first-letter {\n text-transform: capitalize !important;\n }\n"])),(function(n){return n.theme.text.size.body.text.caption}),(function(n){return n.theme.text.weight.regular})),m.d.div(i||(i=Object(b.a)(["\n margin-bottom: 33px;\n h6 {\n color: ",";\n margin-bottom: 6px;\n font-weight: ",";\n font-size: ",";\n line-height: 20px;\n font-family: ",";\n }\n div {\n font-family: ",";\n line-height: 12px;\n color: ",";\n }\n .ant-picker {\n width: 254px;\n height: 40px;\n border-radius: 10px;\n }\n"])),(function(n){return n.theme.colors.text.t9}),(function(n){return n.theme.text.weight.bold}),(function(n){return n.theme.text.size.body.text.secondary}),(function(n){return n.theme.text.font.body}),(function(n){return n.theme.text.font.heading}),(function(n){return n.theme.colors.text.t6}))),j=Object(m.d)(h.a)(o||(o=Object(b.a)(["\n width: 400px;\n min-width: 400px;\n border-radius: 8px;\n padding: 8px 11px 8px 15px;\n background-color: ",";\n border-color: ",";\n &.ant-input-affix-wrapper:hover {\n border-color: ",";\n }\n .ant-input {\n background-color: inherit;\n font-family: "," !important;\n font-weight: ",";\n &::placeholder {\n color: ",";\n }\n }\n\n .ant-input-prefix {\n margin-right: 8px;\n svg {\n color: ",";\n }\n }\n .ant-input-suffix {\n margin: 0;\n }\n"])),(function(n){return n.theme.colors.primary.p0}),(function(n){return n.theme.colors.primary.p2}),(function(n){return n.theme.colors.primary.p2}),(function(n){return n.theme.text.font.body}),(function(n){return n.theme.text.weight.medium}),(function(n){return n.theme.colors.text.t6}),(function(n){return n.theme.colors.text.t6})),O=m.d.div(c||(c=Object(b.a)(["\n .ant-radio-button-wrapper {\n padding: 4px 24.5px;\n height: auto;\n font-weight: ",";\n\n font-size: ",";\n line-height: 22px;\n /* Primary/Default */\n border: none;\n border-radius: 0;\n color: ",";\n box-shadow: 0px 1px 0px #d0d7e2;\n &-checked,\n &:hover,\n &:focus,\n &:focus-within {\n color: ",";\n box-shadow: 0px 1px 0px ",";\n }\n &-checked {\n background: ",";\n }\n &::before {\n display: none;\n }\n & > span {\n font-family: ",";\n }\n }\n"])),(function(n){return n.theme.text.weight.bold}),(function(n){return n.theme.text.size.body.text.small}),(function(n){return n.theme.colors.text.t5}),(function(n){return n.theme.colors.primary.default}),(function(n){return n.theme.colors.primary.default}),(function(n){return n.theme.colors.primary.p0}),(function(n){return n.theme.text.font.body})),w=m.d.div(l||(l=Object(b.a)(["\n .ant-table-thead th.ant-table-cell {\n padding: 24px 24px 23px !important;\n }\n .ant-table tbody td.ant-table-cell {\n padding: 10px 24px;\n border: none;\n }\n .ant-table-row + .ant-table-row {\n margin-top: 6px;\n }\n &.numbers-table__purchase,\n &.numbers-table__porting {\n .ant-table tbody td.ant-table-cell {\n &:first-child {\n width: 11.6%;\n }\n &:nth-child(2) {\n width: 10.3%;\n }\n &:nth-child(3) {\n width: 12%;\n }\n &:nth-child(4) {\n width: 15%;\n }\n &:nth-child(5) {\n width: 12.55%;\n }\n &:nth-child(6) {\n width: 10.55%;\n }\n &:nth-child(7) {\n width: 11.6%;\n }\n }\n }\n &.enterprise-plan-table {\n .ant-table tbody td.ant-table-cell {\n &:first-child {\n width: 11.6%;\n }\n &:nth-child(2) {\n width: 10.3%;\n }\n &:nth-child(3) {\n width: 12.9%;\n }\n &:nth-child(4) {\n width: 12.55%;\n }\n &:nth-child(5) {\n width: 10.55%;\n }\n &:nth-child(6) {\n width: 11.6%;\n }\n }\n }\n &.feedbacks-table {\n .ant-table tbody td.ant-table-cell {\n &:first-child {\n width: 10.73%;\n }\n &:nth-child(2) {\n width: 13.05%;\n }\n &:nth-child(3) {\n width: 12.39%;\n }\n &:nth-child(4) {\n width: 11.08%;\n }\n &:nth-child(5) {\n width: 9.92%;\n }\n &:nth-child(6) {\n width: 12.4%;\n }\n }\n }\n &.workspaces-table {\n .ant-table tbody td.ant-table-cell {\n &:first-child,\n &:nth-child(2),\n &:nth-child(3),\n &:nth-child(4),\n &:nth-child(5) {\n width: 16%;\n }\n\n &:nth-child(7) {\n width: 10%;\n }\n }\n }\n &.users-table {\n .ant-table tbody td.ant-table-cell {\n &:first-child {\n width: 35%;\n }\n &:nth-child(2) {\n width: 20%;\n }\n &:nth-child(3) {\n width: 30%;\n }\n &:nth-child(4) {\n width: 15%;\n }\n }\n }\n &.signup-users-table {\n .ant-table tbody td.ant-table-cell {\n width: auto;\n min-width: 150px;\n &:nth-child(7) {\n min-width: auto;\n }\n }\n }\n &.error-documentation {\n .ant-table-header {\n border-top: 1px solid #dfdde1 !important;\n border-bottom: 1px solid #dfdde1 !important;\n }\n .ant-table-body {\n tr {\n &:nth-child(even) {\n background-color: #f9f9f9; // Light gray\n }\n }\n }\n }\n"]))),y=(m.d.div(s||(s=Object(b.a)(["\n width: fit-content;\n max-width: ",";\n padding: 5px 10px;\n border-radius: 5px;\n font-weight: ",";\n line-height: 12px;\n &.forward-calls,\n &.in-progress {\n background: ",";\n color: ",";\n }\n &.ivr {\n background: ",";\n color: ",";\n }\n &.purchase-pending,\n &.doc-verification-pending {\n background: ",";\n color: ",";\n }\n &.payment-unsuccessful {\n background: ",";\n color: ",";\n }\n"])),(function(n){return n.maxwidth}),(function(n){return n.theme.text.weight.semiBold}),(function(n){return n.theme.colors.success.s2}),(function(n){return n.theme.colors.success.default}),(function(n){return n.theme.colors.warning.w2}),(function(n){return n.theme.colors.warning.default}),(function(n){return n.theme.colors.warning.w1}),(function(n){return n.theme.colors.warning.default}),(function(n){return n.theme.colors.danger.d1}),(function(n){return n.theme.colors.danger.default}
1)),m.d.div(d||(d=Object(b.a)(["\n display: flex;\n align-items: center;\n svg {\n font-size: 14px;\n color: ",";\n margin-left: 6px;\n }\n"])),(function(n){return n.theme.colors.primary.p3})),m.d.div(u||(u=Object(b.a)(["\n width: 20px;\n height: 20px;\n font-size: 20px;\n line-height: 20px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n"]))),m.d.div(p||(p=Object(b.a)(["\n .ant-avatar {\n border: 3px solid;\n border-color: ",";\n border-radius: 15px; /* extra 3px for border-width */\n }\n .ant-avatar:not(:first-child) {\n margin-left: -16px;\n }\n .ant-avatar:last-child {\n background: ",";\n .ant-avatar-string {\n font-size: ",";\n font-weight: ",";\n line-height: 18px !important;\n padding: 7px;\n }\n }\n"])),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.primary.default}),(function(n){return n.theme.text.size.body.text.caption}),(function(n){return n.theme.text.weight.semiBold})),Object(m.d)(g.a)(f||(f=Object(b.a)(["\n .capitalize {\n text-transform: capitalize;\n }\n .title {\n font-weight: ",";\n margin-bottom: 6px;\n font-size: ",";\n line-height: 24px;\n color: ",";\n }\n .info {\n margin-bottom: 40px;\n line-height: 18px;\n color: ",";\n font-weight: ",";\n font-size: ",";\n }\n .btn-wrapper {\n display: flex;\n justify-content: flex-end;\n }\n .btn {\n margin-top: 0;\n &--cancel {\n color: ",";\n margin-right: 17px;\n }\n & + .btn {\n margin-left: 0;\n }\n }\n"])),(function(n){return n.theme.text.weight.bold}),(function(n){return n.theme.text.size.heading.h5}),(function(n){return n.theme.colors.text.t9}),(function(n){return n.theme.colors.text.t6}),(function(n){return n.theme.text.weight.medium}),(function(n){return n.theme.text.size.body.text.small}),(function(n){return n.theme.colors.primary.default})))},1494:function(n,e,t){"use strict";t.d(e,"b",(function(){return l})),t.d(e,"a",(function(){return s}));var a,r,i=t(3),o=t(400),c=t(15),l=c.d.div(a||(a=Object(i.a)(["\n border: 1px solid #ece6f2;\n border-radius: 10px;\n width: 253px;\n max-width: 253px;\n padding: 26px 24px 20px;\n flex: 0 0 33%;\n margin-right: 20px;\n margin-bottom: 20px;\n\n > h3 {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 20px;\n img {\n height: 30px;\n }\n }\n h4 {\n font-family: 'Heebo';\n font-weight: 500;\n font-size: 16px;\n line-height: 150%;\n color: #3d3358;\n }\n"]))),s=Object(c.d)(o.a)(r||(r=Object(i.a)(["\n .ant-modal-close-x {\n svg {\n font-size: 18px;\n color: #6e6681 !important;\n }\n }\n .monday-delete-modal-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;
1\n align-items: center;\n gap: 32px;\n }\n\n .monday-delete-modal-logo-wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 64px;\n width: 64px;\n background: #f6f9f3;\n border-radius: 20px;\n }\n\n .monday-delete-modal-title-wrapper {\n display: flex;\n flex-direction: column;\n gap: 12px;\n text-align: center;\n }\n .monday-delete-modal-title {\n font-family: Manrope;\n font-size: 24px;\n font-weight: 700;\n line-height: 34px;\n color: #3d3358;\n }\n .monday-delete-modal-description {\n text-align: center;\n font-family: Heebo;\n font-size: 16px;\n font-weight: 400;\n color: #6e6681;\n line-height: 24px;\n }\n .moday-delete-modal-image-wrapper {\n display: flex;\n flex-direction: column;\n gap: 16px;\n }\n .monday-delete-modal-image-description {\n color: #3d3358;\n font-family: Heebo;\n font-size: 14px;\n font-weight: 500;\n line-height: 22px;\n }\n .monday-delete-modal-warning-wrapper {\n display: flex;\n border-radius: 12px;\n border: 1px solid #f9e3ce;\n background: #fcf2e7;\n padding: 12px;\n gap: 8px;\n svg {\n color: #a14204;\n }\n }\n\n .monday-delete-modal-warning-description {\n color: #a14204;\n font-family: Heebo;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n }\n button {\n color: #1a63f4;\n text-align: center;\n font-family: Manrope;\n font-size: 14px;\n font-weight: 600;\n line-height: 16px;\n }\n"])))},1497:function(n,e,t){"use strict";t.d(e,"h",(function(){return g})),t.d(e,"i",(function(){return x})),t.d(e,"g",(function(){return v})),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 C})),t.d(e,"a",(function(){return A}));var a,r,i,o,c,l,s,d,u,p,f=t(3),b=t(842),m=t(165),h=t(15),g=h.d.div(a||(a=Object(f.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})),x=Object(h.d)(b.a)(r||(r=Object(f.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})),v=h.d.div(i||(i=Object(f.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=h.d.div(o||(o=Object(f.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=h.d.div(c||(c=Object(f.a)(["\n display: flex;\n align-items: center;\n svg {\n position: relative;\n top: -1px;\n margin-left: 6px;\n }\n"]))),w=h.d.div(l||(l=Object(f.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 }
1\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(h.d)(m.a)(s||(s=Object(f.a)(["\n &.ant-btn {\n display: flex;\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(h.d)(m.a)(d||(d=Object(f.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})),C=h.d.form(u||(u=Object(f.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})),A=h.d.div(p||(p=Object(f.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"])))},1499:function(n,e,t){"use strict";t.d(e,"c",(function(){return p})),t.d(e,"b",(function(){return T})),t.d(e,"a",(function(){return P}));var a,r,i=t(3),o=(t(1476),t(15)),c=(t(80),t(609),t(1)),l=(o.d.div(a||(a=Object(i.a)(["\n background: ",";\n border-radius: 6px;\n width: fit-content;\n padding: 0px 8px;\n .ant-badge-count {\n background: ",";\n color: ",";\n box-shadow: none;\n font-size: ",";\n font-weight: ",";\n }\n &.md {\n padding: 0px 8px 0 10px;\n box-shadow: 0px 2px 5px rgba(124, 124, 124, 0.17);\n .ant-badge-count {\n height: 24px;\n padding: 2px 6px 2px 0px;\n }\n }\n &.lg {\n padding: 4px 10px;\n }\n"])),(function(n){var e=n.bgColor,t=n.theme;return""!==e?e:t.colors.primary.p1}),(function(n){var e=n.bgColor,t=n.theme;return""!==e?e:t.colors.primary.p1}),(function(n){var e=n.textColor,t=n.theme;return""!==e?e:t.colors.primary.p5}),(function(n){return n.theme.text.size.body.text.caption}),(function(n){return n.theme.text.weight.semiBold})),t(165)),s=t(154),d=t(50),u=o.d.div(r||(r=Object(i.a)(["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n height: 80px;\n .ant-btn {\n padding: 0 12px;\n display: flex;
1\n align-items: center;\n gap: 6px;\n font-weight: ",";\n font-size: ",";\n color: ",";\n &.disabled * {\n color: ",";\n }\n > svg {\n font-size: 24px;\n }\n }\n"])),(function(n){return n.theme.text.weight.bold}),(function(n){return n.theme.text.size.body.text.small}),(function(n){return n.theme.colors.text.t5}),(function(n){return n.theme.colors.text.t2}));function p(n){var e=n.prev,t=n.next,a=n.disableNext,r=n.disablePrev,i=n.showLabel,o=void 0===i||i,p=Object(s.a)().t;return Object(c.jsxs)(u,{children:[Object(c.jsxs)(l.a,{type:"link",className:"".concat(r&&"disabled"),disabled:r,onClick:e,children:[Object(c.jsx)(d.h,{}),o&&Object(c.jsx)("span",{children:p("pagination.prev","Prev")})]}),Object(c.jsxs)(l.a,{type:"link",className:"".concat(a&&"disabled"),disabled:a,onClick:t,children:[o&&Object(c.jsx)("span",{children:p("pagination.next","Next")}),Object(c.jsx)(d.i,{})]})]})}var f=t(325),b=t(189),m=t(1637),h=t(401),g=t(7),x=t(129),v=t(139),j=t(1490),O=t(6),w=t.n(O),y=t(21),k=t(5),C=t(842),A=t(2),N=t(88),I=t(13),E=t(1488),U=t(1494),S=t(1551),z=t(1514),D=t.p+"static/media/mondayDeleteInfo.c4c93e18.png",M=function(n){var e=n.isModalOpen,t=n.onCancel;return Object(c.jsx)(U.a,{visible:e,footer:null,onCancel:t,width:680,centered:!0,children:Object(c.jsxs)("div",{className:"monday-delete-modal-wrapper",children:[Object(c.jsx)("div",{className:"monday-delete-modal-logo-wrapper",children:Object(c.jsx)("img",{src:z.a,alt:"monday"})}),Object(c.jsxs)("div",{className:"monday-delete-modal-title-wrapper",children:[Object(c.jsx)("div",{className:"monday-delete-modal-title",children:"Remove monday.com integration?"}),Object(c.jsx)("div",{className:"monday-delete-modal-description",children:"monday.com integration uses recipes to sync contacts. So in order to remove the integration you need to follow the step below"})]}),Object(c.jsxs)("div",{className:"moday-delete-modal-image-wrapper",children:[Object(c.jsx)("div",{className:"monday-delete-modal-image-description",children:"Go to your board and locate the KrispCall integration, and select 'Delete Integration\u2019."}),Object(c.jsx)("img",{src:D,alt:"mondayDeleteInfo"})]}),Object(c.jsxs)("div",{className:"monday-delete-modal-warning-wrapper",children:[Object(c.jsx)(S.a,{}),Object(c.jsx)("div",{className:"monday-delete-modal-warning-description",children:"Once removed, the recipe will no longer function in your connected monday.com account. To fully remove the KrispCall integration, uninstall the KrispCall app from installed apps section. This will disconnect your entire team from monday.com on KrispCall."})]})]})})},T=function(n){var e=n.crm,t=n.className,a=n.imageSrc,r=n.title,i=n.description,o=n.isIntegrated,l=n.status,s=(n.isAvailable,n.handleConnect),d=void 0===s?function(){return console.log("connect")}:s,u=n.isConnectionLoading,p=void 0!==u&&u,O=function(n){var e=n.crm,t=Object(N.g)(),a=Object(A.useState)("Active"===(null===e||void 0===e?void 0:e.status)),r=Object(k.a)(a,2),i=r[0],o=r[1],l=Object(A.useState)(!1),s=Object(k.a)(l,2),d=s[0],u=s[1],p=Object(A.useState)(!1),f=Object(k.a)(p,2),b=f[0],m=f[1],h=Object(A.useState)(!1),x=Object(k.a)(h,2),v=x[0],j=x[1],O=function(){return j((function(n){return!n}))},U=function(){return m((function(n){return!n}))},S=Object(E.a)({toggleDeleteConfirm:O}).changeCrmStatus,z=Object(E.a)().reSyncGoogleContacts,D="googlecontacts"===(null===e||void 0===e?void 0:e.code),M=null===e||void 0===e?void 0:e.id,T="gong"===(null===e||void 0===e?void 0:e.code),_=function(){var n=Object(y.a)(w.a.mark((function n(){return w.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:S({id:null===e||void 0===e?void 0:e.id,status:"Archived"});case 1:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),P=function(){var n=Object(y.a)(w.a.mark((function n(){return w.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:z({id:M});case 1:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),F={edit:function(){t.replace({pathname:"".concat(I.SETTINGS).concat(I.INTEGRATION).concat(I.EDIT),state:{crm:e}})},details:function(){return"details"},delete:"monday"===(null===e||void 0===e?void 0:e.crmPlatform)?U:O,resync:P},$=Object(c.jsxs)(C.a,{onClick:function(n){var e,t=n.key;u(!1),null===(e=F[t])||void 0===e||e.call(F)},children:[i&&D&&Object(c.jsx)(C.a.Item,{icon:Object(c.jsx)(g.i,{name:"resync-icon"}),children:"Resync"},"resync"),i&&!D&&!T&&Object(c.jsx)(C.a.Item,{icon:Object(c.jsx)(g.i,{name:"edit-square"}),children:"Edit"},"edit"),Object(c.jsx)(C.a.Divider,{}),Object(c.jsx)(C.a.Item,{icon:Object(c.jsx)(g.i,{name:"delete-bin"}),danger:!0,children:"Delete"},"delete")]});return{isCrmActive:i,setIsCrmActive:o,dropdownVisible:d,setDropdownVisible:u,visibleDeleteConfirm:v,toggleDeleteConfirm:O,visibleMondayInfoModal:b,togggleMondayInfoModal:U,options:$,handleCrmIntegration:function(n){var t={id:null===e||void 0===e?void 0:e.id,status:n?"Active":"Inactive"};S(t),o(n)},onDelete:_}}({crm:e}),S=O.isCrmActive,z=O.options,D=O.dropdownVisible,T=O.visibleDeleteConfirm,_=O.toggleDeleteConfirm,P=O.visibleMondayInfoModal,F=O.togggleMondayInfoModal,$=O.setDropdownVisible,B=O.handleCrmIntegration,W=O.onDelete;return Object(c.jsxs)(U.b,{className:t,children:[Object(c.jsxs)("h3",{className:"flex justify-between items-center mb-5",children:[Object(c.jsx)("img",{src:a,alt:"integration icon"}),o&&Object(c.jsx)(h.h,{overlayClassName:"menu-width-180",options:z,optionDropdownVisible:D,setOptionDropdownVisible:$})]}),Object(c.jsxs)("div",{className:"flex items-center mb-1",children:[Object(c.jsx)("h4",{children:r}),"beta"===l&&Object(c.jsx)("span",{className:" bg-gray-50 text-gray-600 text-xs rounded ml-2 py-0.5 px-2 font-medium",children:"Beta"})]}),Object(c.jsx)("p",{children:i}),P&&Object(c.jsx)(M,{isModalOpen:P,onCancel:F}),T&&Object(c.jsx)(x.b,{onOk:W,isModalOpen:T,onCancel:_,onModalCancel:_,title:"Confirm Delete",info:Object(c.jsx)("div",{className:"mt-2",children:"Are you sure want to delete this integration?"}),btnText:"Delete",action:"delete",icon:Object(c.jsx)(v.f,{}),btnIcon:Object(c.jsx)(g.i,{name:"delete-bin-2"})}),o&&(null===e||void 0===e?void 0:e.crmPlatform)!==j.b.Monday&&Object(c.jsx)("div",{className:"mt-6.5",children:Object(c.jsx)(g.u,{checked:S,onChange:B})}),!o&&Object(c.jsxs)(c.Fragment,{children:[("live"===l||"beta"===l)&&Object(c.jsxs)("button",{type:"button",className:"font-semibold font-manrope text-info mt-6.5 flex gap-2 items-center",onClick:function(){return d()},disabled:p,children:["Connect"," ",p?Object(c.jsx)(m.a,{indicator:Object(c.jsx)(b.a,{style:{fontSize:14,color:"#1A63F4"},spin:!0})}):Object(c.jsx)(f.d,{size:16,color:"#1A63F4"})]}),"coming_soon"===l&&Object(c.jsx)("div",{className:"font-semibold font-manrope text-info bg-info-50 py-0.75 px-2.5 mt-6.5 inline-block rounded w-fit",children:"Coming Soon"})]})]})},_=t(324);function P(n){var e=n.getSearchedQuery,t=n.placeholder,a=n.className,r=void 0===a?"contact-list-search":a,i=n.waitTime,o=void 0===i?500:i,l=Object(s.a)().t,u=Object(A.useState)(""),p=Object(k.a)(u,2),f=p[0],b=p[1],m=Object(_.a)(f,o),h=Object(A.useCallback)((function(n){b(n.target.value)}),[]);return Object(A.useEffect)((function(){null===e||void 0===e||e(m)}),[m]),Object(c.jsx)(g.r,{size:"large",placeholder:null!==t&&void 0!==t?t:l("searchContacts.placeholder","Search contacts"),prefix:Object(c.jsx)(d.Q,{}),onChange:h,className:r})}},1502:function(n,e,t){"use strict";t.d(e,"a",(function(){return r}));var a=t(72),r=function(n){var e=n.hasDateFilter,t=Object(a.a)(),r=t.isLaptop,i=t.isTablet,o=t.isMobile,c=e?153:151;r&&(c=e?200:151),(i||o)&&(c=e?254:198);return{tableBodyHeight:window.innerHeight-c-47-80-22,padding:"22px 32px 0px 28px"}}},1522:function(n,e,t){"use strict";t.d(e,"a",(function(){return c}));var a,r=t(3),i=t(826),o=t(15),c=Object(o.d)(i.a)(a||(a=Object(r.a)(["\n width: fit-content;\n > svg {\n width: 28px;\n height: 28px;\n padding: 4px;\n color: #857f96;\n border-radius: 6px;\n }\n > svg:hover,\n &.ant-popover-open > svg {\n background: #ece6f2;\n color: #564d6d;\n }\n"])))},1551:function(n,e,t){"use strict";var a=t(8),r=t(2),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},o=t(67),c=function(n,e){return r.createElement(o.a,Object(a.a)(Object(a.a)({},n),{},{ref:e,icon:i}))};c.displayName="WarningFilled";e.a=r.forwardRef(c)},1634:function(n,e,t){"use strict";t.d(e,"d",(function(){return h})),t.d(e,"h",(function(){return x})),t.d(e,"g",(function(){return v})),t.d(e,"e",(function(){return g})),t.d(e,"f",(function(){return j})),t.d(e,"i",(function(){return O})),t.d(e,"b",(function(){return w})),t.d(e,"a",(function(){return y}
1)),t.d(e,"c",(function(){return k}));var a,r,i,o,c,l,s,d,u,p=t(3),f=t(16),b=t(22),m=t(122),h=Object(f.d)(a||(a=Object(p.a)(["\n query allUsers($params: ConnectionInput) {\n allUsers(params: $params) {\n status\n error {\n ...Error\n }\n data {\n pageInfo {\n ...PageInfo\n }\n edges {\n cursor\n node {\n authId\n firstname\n lastname\n email\n profilePicture\n status\n createdOn\n workspaces {\n id\n title\n photo\n status\n }\n }\n }\n }\n }\n }\n ","\n ","\n"])),b.a,m.b),g=Object(f.d)(r||(r=Object(p.a)(["\n query activityLogs($userId: ShortId!, $params: ConnectionInput) {\n activityLogs(userId: $userId, params: $params) {\n data {\n pageInfo {\n ...PageInfo\n }\n edges {\n cursor\n node {\n authId\n userEmail\n instanceId\n status\n createdOn\n userAgentInfo\n loginOs\n loginBrowser\n loginLocation\n loginDevice\n ipAddress\n fromData\n toData\n modelType\n action\n requestPayload\n operationMessage\n }\n }\n }\n status\n error {\n ...Error\n }\n }\n }\n ","\n ","\n"])),b.a,m.b),x=Object(f.d)(i||(i=Object(p.a)(["\n mutation toggleUserActivation($data: UserActivationToggle!) {\n toggleUserActivation(data: $data) {\n status\n data {\n userId\n firstname\n lastname\n email\n status\n }\n error {\n ...Error\n }\n }\n }\n ","\n"])),b.a),v=Object(f.d)(o||(o=Object(p.a)(["\n mutation toggleMemberActivation($data: MemberActivationToggle!) {\n toggleMemberActivation(data: $data) {\n status\n data {\n action\n }\n error {\n ...Error\n }\n }\n }\n ","\n"])),b.a),j=Object(f.d)(c||(c=Object(p.a)(["\n mutation bulkUserActivationToggle($data: BulkUserActivationToggleInput!) {\n bulkUserActivationToggle(data: $data) {\n status\n data {\n action\n }\n error {\n ...Error\n }\n }\n }\n ","\n"])),b.a),O=Object(f.d)(l||(l=Object(p.a)(["\n mutation toggleWorkspaceFeatureStatus($data: WorkspaceFeatureStatusInputData!) {\n toggleWorkspaceFeatureStatus(data: $data) {\n status\n data\n error {\n ...Error\n }\n }\n }\n ","\n"])),b.a),w=Object(f.d)(s||(s=Object(p.a)(["\n mutation deleteUserData($data: DeleteUserDataInput!) {\n deleteUserData(data: $data) {\n status\n data {\n success\n }\n error {\n ...Error\n }\n }\n }\n ","\n"])),b.a),y=Object(f.d)(d||(d=Object(p.a)(["\n mutation updateUserEmailSupport($data: UpdateEmailInput!) {\n updateUserEmailSupport(data: $data) {\n status\n data {\n success\n }\n error {\n ...Error\n }\n }\n }\n ","\n"])),b.a),k=Object(f.d)(u||(u=Object(p.a)(["\n mutation generateOtp($email: String!) {\n generateOtp(email: $email) {\n status\n data {\n id\n email\n otpCode\n }\n error {\n ...Error\n }\n }\n }\n ","\n"])),b.a)},1649:function(n,e,t){"use strict";t.d(e,"a",(function(){return p}));var a=t(6),r=t.n(a),i=t(21),o=t(5),c=t(138),l=t(154),s=t(7),d=t(1634),u=t(1657);function p(n){var e=Object(l.a)().t,t=Object(c.a)(d.h,{onCompleted:function(e){var t=e.toggleUserActivation,a=t.error,r=t.data;if(null===a){var i,o=(r||{}).status;return Object(s.w)({content:"User ".concat("Inactive"===o?"deactivated":"activated"," successfully"),type:"success"}),void(null===n||void 0===n||null===(i=n.toggleActivationModal)||void 0===i||i.call(n))}Object(s.w)({content:null===a||void 0===a?void 0:a.message,type:"danger"})},onError:function(t){var a;Object(s.w)({content:(null===t||void 0===t?void 0:t.message)||e("error.unspecific","Something went wrong."),type:"danger"}),null===n||void 0===n||null===(a=n.callback)||void 0===a||a.call(n)}}),a=Object(o.a)(t,2),p=a[0],f=a[1].loading,b=Object(c.a)(d.g,{onCompleted:function(e){var t=e.toggleMemberActivation,a=t.error,r=t.data;if(null===a){var i,o=(r||{}).status;return Object(s.w)({content:"Member ".concat("Inactive"===o?"deactivated":"activated"," successfully"),type:"success"}
1),void(null===n||void 0===n||null===(i=n.toggleWorkspaceMembersModal)||void 0===i||i.call(n))}Object(s.w)({content:null===a||void 0===a?void 0:a.message,type:"danger"})},onError:function(t){var a;Object(s.w)({content:(null===t||void 0===t?void 0:t.message)||e("error.unspecific","Something went wrong."),type:"danger"}),null===n||void 0===n||null===(a=n.callback)||void 0===a||a.call(n)}}),m=Object(o.a)(b,2),h=m[0],g=m[1].loading,x=Object(c.a)(d.f,{onCompleted:function(e){var t=e.bulkUserActivationToggle,a=t.error,r=t.data;if(null===a){var i,o=(r||{}).action;return Object(s.w)({content:"All User ".concat("Deactivate"===o?"deactivated":"activated"," successfully"),type:"success"}),void(null===n||void 0===n||null===(i=n.toggleWorkspaceMembersModal)||void 0===i||i.call(n))}Object(s.w)({content:null===a||void 0===a?void 0:a.message,type:"danger"})},onError:function(){var t;Object(s.w)({content:e("error.unspecific","Something went wrong."),type:"danger"}),null===n||void 0===n||null===(t=n.callback)||void 0===t||t.call(n)}}),v=Object(o.a)(x,2),j=v[0],O=v[1].loading,w=Object(c.a)(d.b,{onCompleted:function(e){var t=e.deleteUserData,a=t.error,r=t.data;if(null===a){var i;(r||{}).status;return Object(s.w)({content:"User's Data permanently deleted",type:"success"}),void(null===n||void 0===n||null===(i=n.toggleDeleteModal)||void 0===i||i.call(n))}Object(s.w)({content:null===a||void 0===a?void 0:a.message,type:"danger"})},onError:function(){var t;Object(s.w)({content:e("error.unspecific","Something went wrong."),type:"danger"}),null===n||void 0===n||null===(t=n.callback)||void 0===t||t.call(n)}}),y=Object(o.a)(w,2),k=y[0],C=y[1].loading,A=Object(c.a)(d.a,{onCompleted:function(e){var t=e.updateUserEmailSupport,a=t.error,r=t.data;if(null===a){var i;(r||{}).status;return Object(s.w)({content:"User's email changed.",type:"success"}),void(null===n||void 0===n||null===(i=n.toggleChangeEmail)||void 0===i||i.call(n))}Object(s.w)({content:null===a||void 0===a?void 0:a.message,type:"danger"})},onError:function(t){var a;Object(s.w)({content:(null===t||void 0===t?void 0:t.message)||e("error.unspecific","Something went wrong."),type:"danger"}),null===n||void 0===n||null===(a=n.toggleChangeEmail)||void 0===a||a.call(n)}}),N=Object(o.a)(A,2),I=N[0],E=N[1].loading,U=Object(c.a)(u.b,{onCompleted:function(n){var e=n.unblockOtp.error;null!==e?Object(s.w)({content:null===e||void 0===e?void 0:e.message,type:"danger"}):Object(s.w)({content:"OTP code unblocked successfully",type:"success"})},onError:function(n){Object(s.w)({content:(null===n||void 0===n?void 0:n.message)||e("error.unspecific","Something went wrong."),type:"danger"})}}),S=Object(o.a)(U,2),z=S[0],D=S[1].loading,M=Object(c.a)(d.c,{onCompleted:function(e){var t,a=e.generateOtp||{},r=a.error,i=a.data;if(null===r)return null===n||void 0===n||null===(t=n.setOtpCode)||void 0===t||t.call(n,i.otpCode),void Object(s.w)({content:"OTP code generated successfully",type:"success"});Object(s.w)({content:null===r||void 0===r?void 0:r.message,type:"danger"})},onError:function(n){Object(s.w)({content:(null===n||void 0===n?void 0:n.message)||e("error.unspecific","Something went wrong."),type:"danger"})}}),T=Object(o.a)(M,2),_=T[0],P=T[1].loading,F=function(){var n=Object(i.a)(r.a.mark((function n(e){return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,k({variables:{data:e},update:function(n,e){var t,a=e.data.deleteUserData;(null===a||void 0===a||null===(t=a.data)||void 0===t?void 0:t.success)&&n.modify({fields:{allUsers:function(){},getAllWorkspaces:function(){}}})}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return{toggleUserActivation:function(){var n=Object(i.a)(r.a.mark((function n(e){return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,p({variables:{data:e},update:function(n,e){var t,a=e.data.toggleUserActivation;(null===a||void 0===a||null===(t=a.data)||void 0===t?void 0:t.userId)&&n.modify({fields:{allUsers:function(){},getAllWorkspaces:function(){}}})}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),loadingUserActivation:f,toggleWorksapceMemberActivation:function(){var n=Object(i.a)(r.a.mark((function n(e){return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,h({variables:{data:e},update:function(n,e){var t,a=e.data.toggleMemberActivation;(null===a||void 0===a||null===(t=a.data)||void 0===t?void 0:t.action)&&n.modify({fields:{allUsers:function(){}
1,getAllWorkspaces:function(){}}})}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),loadingMemberActivation:g,toggleBulkUserStatus:function(){var n=Object(i.a)(r.a.mark((function n(e){return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,j({variables:{data:e},update:function(n,e){var t,a=e.data.bulkUserActivationToggle;(null===a||void 0===a||null===(t=a.data)||void 0===t?void 0:t.action)&&n.modify({fields:{allUsers:function(){},getAllWorkspaces:function(){}}})}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),loadingBulk:O,wipeData:F,wipingUserData:C,changeUserEmail:function(){var n=Object(i.a)(r.a.mark((function n(e){return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,I({variables:{data:e},update:function(n,e){var t,a=e.data.updateUserEmailSupport;(null===a||void 0===a||null===(t=a.data)||void 0===t?void 0:t.success)&&n.modify({fields:{allUsers:function(){},getAllWorkspaces:function(){}}})}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),changingEmail:E,unblockOtp:function(){var n=Object(i.a)(r.a.mark((function n(e){return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e){n.next=3;break}return n.next=3,z({variables:{email:e},update:function(n,e){e.data.unblockOtp&&n.modify({fields:{allEmailOtp:function(){}}})}});case 3:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),loadingUnblockOtp:D,generateOtp:function(){var n=Object(i.a)(r.a.mark((function n(e){return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e){n.next=3;break}return n.next=3,_({variables:{email:e}});case 3:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),loadingGenerateOtp:P}}},1657:function(n,e,t){"use strict";t.d(e,"a",(function(){return d})),t.d(e,"b",(function(){return u})),t.d(e,"c",(function(){return p}));var a,r,i,o=t(3),c=t(16),l=t(22),s=t(122),d=Object(c.d)(a||(a=Object(o.a)(["\n query allEmailOtp($params: ConnectionInput) {\n allEmailOtp(params: $params) {\n status\n error {\n ...Error\n }\n data {\n pageInfo {\n ...PageInfo\n }\n edges {\n cursor\n node {\n id\n email\n retryCount\n resendCount\n resendLimitExceeded\n retryLimitExceeded\n resendTimeLimit\n isValidated\n }\n }\n }\n }\n }\n ","\n ","\n"])),l.a,s.b),u=Object(c.d)(r||(r=Object(o.a)(["\n mutation unblockOtp($email: String!) {\n unblockOtp(email: $email) {\n status\n data {\n success\n }\n error {\n ...Error\n }\n }\n }\n ","\n"])),l.a),p=Object(c.d)(i||(i=Object(o.a)(["\n mutation verifyOtp($email: String!) {\n verifyOtp(email: $email) {\n status\n data {\n success\n }\n error {\n ...Error\n }\n }\n }\n ","\n"])),l.a)},2309:function(n,e,t){"use strict";t.r(e),t.d(e,"default",(function(){return tn}));var a=t(2),r=t(2277),i=t(229),o=t(1499),c=t(1161),l=t(228),s=t(7),d=t(80),u=t(31),p=t(543),f=t(172),b=t(1497),m=t(6),h=t.n(m),g=t(21),x=t(5),v=t(842),j=t(50),O=t(406),w=t(88),y=t(13),k=t(129),C=t(139),A=t(1649),N=t(1);function I(n){var e=n.visibleActivationModal,t=n.toggleActivationModal,a=n.user||{},r=a.status,i=a.authId,o=a.firstname,c=a.lastname,l="Inactive"===r,s="".concat(o," ").concat(c),d=Object(A.a)({toggleActivationModal:t}).toggleUserActivation,u=function(){var n=Object(g.a)(h.a.mark((function n(){var e;return h.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e={authId:i,action:l?"Activate":"Deactivate"},n.next=3,d(e);case 3:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return Object(N.jsx)(N.Fragment,{children:Object(N.jsx)(k.b,{onOk:u,isModalOpen:e,onCancel:t,onModalCancel:t,title:"".concat(l?"Activate ":"Deactivate"," User?"),btnText:"Confirm",info:Object(N.jsxs)(N.Fragment,{children:["Are you sure you want to ",l?"activate ":"deactivate"," user",Object(N.jsxs)("span",{className:"text-gray-700 font-medium",children:[" '",s,"' "]}),"?"]}),action:"delete",loading:!1,icon:Object(N.jsx)(C.O,{})})})}function E(n){var e=n.openDeleteModal,t=n.toggleDeleteModal,a=n.user||{},r=a.authId,i=a.firstname,o=a.lastname,c="".concat(i," ").concat(o),l=Object(A.a)({toggleDeleteModal:t}),s=l.wipeData,d=l.wipingUserData,u=function(){var n=Object(g.a)(h.a.mark((function n(){var e;return h.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e={authId:r},n.next=3,s(e);case 3:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return Object(N.jsx)(N.Fragment,{children:Object(N.jsx)(k.b,{onOk:u,isModalOpen:e,onCancel:t,onModalCancel:t,title:"Erase User Data",btnText:"Confirm",info:Object(N.jsxs)(N.Fragment,{children:["Are you sure you want to wipe",Object(N.jsxs)("span",{className:"text-gray-700 font-medium",children:[" '",c,"' 's Data "]}),"?"]}),action:"delete",loading:d,icon:Object(N.jsx)(C.O,{})})})}var U=t(14),S=t(33),z=t(62),D=t(107),M=t(61);function T(n){var e=n.toggleChangeEmail,t=n.visibleChangeEmail,a=n.user,r=S.e().shape({newEmail:S.g().email("Email must be a valid email").max(46,"Shouldn't exceed ".concat(46," characters")).required("Email is required"),notifyUser:S.b()}),i=Object(A.a)({toggleChangeEmail:e}),o=i.changeUserEmail,c=i.changingEmail,l=Object(z.g)({resolver:Object(D.a)(r),mode:"onChange",defaultValues:{newEmail:"",n
1otifyUser:!0}}),s=l.control,d=l.formState.errors,u=l.handleSubmit,p=function(){var n=Object(g.a)(h.a.mark((function n(e){var t;return h.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=Object(U.a)(Object(U.a)({},e),{},{oldEmail:null===a||void 0===a?void 0:a.email,notifyUser:e.notifyUser}),n.next=3,o(t);case 3:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return Object(N.jsx)(N.Fragment,{children:Object(N.jsx)(k.g,{buttonText:"Submit",isModalOpen:t,formId:"add-number-form",onCancel:e,loading:c,children:Object(N.jsxs)("form",{className:"add-number-form items-center",id:"add-number-form",onSubmit:u(p),children:[Object(N.jsx)("div",{className:"w-85 m-auto",children:Object(N.jsx)("div",{className:"flex flex-col mb-10 mt-7.5 text-center",children:Object(N.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-snug",children:"Change Email"})})}),Object(N.jsx)("div",{children:Object(N.jsx)(M.b,{"data-cy":"support-change-email",name:"newEmail",id:"newEmail",control:s,label:"Email Address",errors:d})}),Object(N.jsx)("div",{children:Object(N.jsx)(M.a,{"data-cy":"support-notify-change-email",name:"notifyUser",id:"notify-user",control:s,label:"Notify User",errors:d})})]})})})}var _=t(1522),P=t(100),F=function(){var n=Object(P.b)("support","users_list",P.a.support.users_list.table_action_menu),e=Object(x.a)(n,1)[0],t=Object(P.b)("support","users_list",P.a.support.users_list.wipe_data),a=Object(x.a)(t,1)[0],r=Object(P.b)("support","users_list",P.a.support.users_list.change_email),i=Object(x.a)(r,1)[0],o=Object(P.b)("support","users_list",P.a.support.users_list.view_activities),c=Object(x.a)(o,1)[0],l=Object(P.b)("support","users_list",P.a.support.users_list.deactivate_user),s=Object(x.a)(l,1)[0],d=Object(P.b)("support","users_list",P.a.support.users_list.unblock_otp),u=Object(x.a)(d,1)[0],p=Object(P.b)("support","users_list",P.a.support.users_list.generate_otp);return{hasActionMenuAccess:e,hasDataWipingAccess:a,hasEmailChangingAccess:i,hasViewActivitiesAccess:c,hasDeactivateUserAccess:s,hasUnblockOtpAccess:u,hasGenerateOtpAccess:Object(x.a)(p,1)[0]}};function $(n){var e=n.user,t=F(),r=t.hasDataWipingAccess,i=t.hasEmailChangingAccess,o=t.hasDeactivateUserAccess,c=t.hasUnblockOtpAccess,l=t.hasGenerateOtpAccess,d=Object(a.useState)(!1),u=Object(x.a)(d,2),p=u[0],f=u[1],b=(e||{}).status,m=Object(w.g)(),C=Object(a.useState)(null),U=Object(x.a)(C,2),S=U[0],z=U[1],D=Object(A.a)({setOtpCode:z}),M=D.unblockOtp,P=D.generateOtp,$=D.loadingGenerateOtp,B=Object(a.useState)(!1),W=Object(x.a)(B,2),V=W[0],q=W[1],G=function(){return q((function(n){return!n}))},H=Object(a.useState)(!1),L=Object(x.a)(H,2),R=L[0],K=L[1],J=function(){return K((function(n){return!n}))},Q=Object(a.useState)(!1),X=Object(x.a)(Q,2),Y=X[0],Z=X[1],nn=function(){return Z((function(n){return!n}))},en=Object(a.useState)(!1),tn=Object(x.a)(en,2),an=tn[0],rn=tn[1],on=function(){return rn((function(n){return!n}))},cn=Object(a.useState)(!1),ln=Object(x.a)(cn,2),sn=ln[0],dn=ln[1],un=function(){return dn((function(n){return!n}))},pn=function(){var n=Object(g.a)(h.a.mark((function n(){return h.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,M(null===e||void 0===e?void 0:e.email);case 2:K(!1);case 3:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),fn=function(){P(null===e||void 0===e?void 0:e.email)},bn=function(){un(),fn()},mn=function(n){return{changeEmail:on,toggleUserActivation:G,viewActivity:function(){return m.replace({pathname:"".concat(y.USERS,"/").concat(null===e||void 0===e?void 0:e.authId,"/activities"),state:{user:e}})},wipeData:nn,unblockOtp:J,generateOtp:bn}[n]},hn=Object(N.jsxs)(v.a,{className:"w-51.75",onClick:function(n){var e,t=n.key;f(!1),null===mn||void 0===mn||null===(e=mn(t))||void 0===e||e()},children:[i&&Object(N.jsx)(v.a.Item,{children:Object(N.jsx)("span",{className:"text-info",children:"Change Email"})},"changeEmail"),o&&Object(N.jsx)(v.a.Item,{children:Object(N.jsx)("span",{className:"text-info",children:"View activities"})},"viewActivity"),l&&Object(N.jsx)(v.a.Item,{danger:!0,children:"Inactive"===b?"Activate":"Deactivate"},"toggleUserActivation"),r&&Object(N.jsx)(v.a.Item,{danger:!0,children:"Wipe data"},"wipeData"),c&&Object(N.jsx)(v.a.Item,{children:Object(N.jsx)("span",{children:"Unblock OTP"})},"unblockOtp"),l&&Object(N.jsx)(v.a.Item,{children:Object(N.jsx)("span",{children:"Generate OTP"})},"generateOtp")]});return Object(N.jsxs)(N.Fragment,{children:[Object(N.jsx)(_.a,{placement:"rightTop",visible:p,onVisibleChange:function(n){f(n)},content:hn,trigger:"click",overlayClassName:"more-options",getPopupContainer:function(n){var e,t;return null===n||void 0===n||null===(e=n.parentNode)||void 0===e||null===(t=e.parentNode)||void 0===t?void 0:t.parentNode},children:Object(N.jsx)("div",{children:Object(N.jsx)(j.H,{})})}),V&&Object(N.jsx)(I,{toggleActivationModal:G,visibleActivationModal:V,user:e}),Y&&Object(N.jsx)(E,{toggleDeleteModal:nn,openDeleteModal:Y,user:e}),an&&Object(N.jsx)(T,{toggleChangeEmail:on,visibleChangeEmail:an,user:e}),Object(N.jsx)(k.b,{isModalOpen:R,onOk:pn,onCancel:J,onModalCancel:J,type:"primary",btnText:"Unblock",title:"Unblock OTP code",info:"Are you sure you want to unblock OTP code for this user?"}),sn&&Object(N.jsx)(k.b,{onOk:fn,isModalOpen:sn,onModalCancel:un,onCancel:un,type:"primary",btnText:"Re-Generate",cancelBtnText:"Cancel",title:"OTP Code",info:"Generate new code for this user",loading:$,children:Object(N.jsxs)("div",{className:"relative mt-4",children:[Object(N.jsx)("div",{className:"text-xl bg-primary-100 text-center tracking-0.5 py-4",children:S||" ______ "}
1),S&&Object(N.jsx)("span",{className:"absolute top-5 right-8 cursor-pointer",children:Object(N.jsx)(O.CopyToClipboard,{text:S,onCopy:function(){return Object(s.w)({content:"".concat(S," copied.")})},children:Object(N.jsx)(j.z,{className:"copy",size:16,title:"Copy"})})})]})})]})}var B=t(60),W=t(78),V={first:50,search:null,filter:null,after:null},q=Object(B.c)(null),G=Object(B.c)(V);function H(n){return{setSearch:function(e){var t=n(),a=Object(W.a)(t,(function(n){n.search=e}));n(a)},setFilters:function(e){var t=n(),a=Object(W.a)(t,(function(n){n.filter=e}));n(a)}}}var L=t(253),R=t(1634),K=t(324);var J=t(1491),Q=t(473),X=t(843),Y=t(404),Z=[{label:"Column(All)",value:""},{label:"Email",value:"email"},{label:"Name",value:"name"}],nn=function(n){var e=n.title,t=n.description,a=n.placeholder,r=n.handleSearch,i=n.handleStatusFilter,o=n.handleColFilter;return Object(N.jsxs)(N.Fragment,{children:[Object(N.jsx)(J.a,{className:"flex justify-between",children:Object(N.jsxs)("div",{children:[Object(N.jsx)("h6",{children:e}),Object(N.jsx)("div",{children:t})]})}),Object(N.jsxs)("div",{className:"flex mb-4 flex-wrap gap-4",children:[Object(N.jsx)("div",{className:"flex gap-5",children:Object(N.jsxs)("div",{className:"flex gap-2 ",children:[Object(N.jsx)(M.g,{name:"select-filter",id:"select-filter",placeholder:"Column(All)",onChange:o,className:"w-50",children:Z.map((function(n){return Object(N.jsx)(Q.a.Option,{value:null===n||void 0===n?void 0:n.value,children:null===n||void 0===n?void 0:n.label},null===n||void 0===n?void 0:n.value)}))}),Object(N.jsx)(J.c,{placeholder:a,prefix:Object(N.jsx)(Y.c,{}),onChange:r,allowClear:!0})]})}),Object(N.jsx)(J.b,{className:"ml-auto",children:Object(N.jsxs)(X.a.Group,{defaultValue:"",size:"large",onChange:i,children:[Object(N.jsx)(X.a.Button,{value:"",children:"All"}),Object(N.jsx)(X.a.Button,{value:"Active",children:"Active"}),Object(N.jsx)(X.a.Button,{value:"Inactive",children:"Inactive"})]})})]})]})},en=t(1502);function tn(){var n=Object(en.a)({hasDateFilter:!1}),e=n.tableBodyHeight,t=n.padding,m=function(){var n=F().hasActionMenuAccess,e=Object(l.a)(q),t=(null===e||void 0===e?void 0:e.split(" "))||[];return[{title:"User",render:function(n){var e=n.node||{},a=e.firstname,r=e.lastname,i=e.email,o=e.profilePicture,c="".concat(a," ").concat(r),l=c&&c.length>40?c:"";return Object(N.jsxs)("div",{className:"flex items-center",children:[Object(N.jsx)(f.b,{shape:"square",size:40,icon:Object(N.jsx)(u.ab,{}),src:o,className:"min-w-32"}),Object(N.jsxs)("div",{className:"flex flex-col ml-2",children:[Object(N.jsx)(s.x,{title:l,children:Object(N.jsx)(b.g,{children:Object(N.jsx)(p.a,{textToHighlight:Object(d.l)(c,40),searchWords:t,className:"line-clamp-1"})})}),Object(N.jsx)("div",{className:"text-13 text-gray font-medium leading-4.5",children:Object(N.jsx)(p.a,{textToHighlight:i,searchWords:t,className:"line-clamp-1"})})]})]})}},{title:"Status",render:function(n){var e=n.node;return Object(N.jsx)("div",{className:"flex",children:Object(N.jsx)("p",{className:"text-sm font-normal px-2 ".concat("Inactive"===(null===e||void 0===e?void 0:e.status)?"bg-error-50 text-error border border-error rounded":"bg-success-50 text-success border border-success rounded"),children:"Inactive"===(null===e||void 0===e?void 0:e.status)?"Inactive":"Active"})})}},{title:"Workspaces",render:function(n){var e,t,a=n.node;return(null===a||void 0===a||null===(e=a.workspaces)||void 0===e?void 0:e.length)?Object(N.jsx)(b.a,{children:Object(N.jsx)(c.a.Group,{size:38,maxCount:3,children:null===(t=(null===a||void 0===a?void 0:a.workspaces)||[])||void 0===t?void 0:t.map((function(n){var e=n||{},t=e.id,a=void 0===t?"":t,r=e.title,i=void 0===r?"":r,o=e.photo,l=void 0===o?"":o;return Object(N.jsx)(s.x,{title:i,placement:"top",children:Object(N.jsx)(c.a,{shape:"square",src:l,children:null===i||void 0===i?void 0:i.charAt(0)},a)},a)}))})}):Object(N.jsx)(b.g,{children:"N/a"})}},{title:"",render:function(n){var e=n.node;return Object(N.jsx)("div",{className:"ml-auto cursor-pointer more",children:Object(N.jsx)($,{user:e})})},hidden:!n}].filter((function(n){return!n.hidden}))}(),v=function(){var n,e,t,r,i,o,c,s,d,u,p,f,b,m=Object(l.a)(G),v=H(G),j=v.setSearch,O=v.setFilters,w=Object(a.useState)(""),y=Object(x.a)(w,2),k=y[0],C=y[1],A=Object(a.useState)(""),N=Object(x.a)(A,2),I=N[0],E=N[1],S=Object(K.a)(k,500),z=Object(L.a)(R.d,{fetchPolicy:"cache-and-network"}),D=Object(x.a)(z,2),M=D[0],T=D[1],_=T.data,P=T.fetchMore,F=T.loading,$=T.refetch;Object(a.useEffect)((function(){M({variables:{params:m}})}),[m,M]);var B=Object(a.useMemo)((function(){var n,e,t;return null!==(n=null===_||void 0===_||null===(e=_.allUsers)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.edges)&&void 0!==n?n:[]}),[_]),W=B.length>0,V=null===_||void 0===_||null===(n=_.allUsers)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.pageInfo.hasPreviousPage,J=null===_||void 0===_||null===(t=_.allUsers)||void 0===t||null===(r=t.data)||void 0===r||null===(i=r.pageInfo)||void 0===i?void 0:i.startCursor,Q=null===_||void 0===_||null===(o=_.allUsers)||void 0===o||null===(c=o.data)||void 0===c?void 0:c.pageInfo.hasNextPage,X=null===_||void 0===_||null===(s=_.allUsers)||void 0===s||null===(d=s.data)||void 0===d||null===(u=d.pageInfo)||void 0===u?void 0:u.endCursor,Y=null===_||void 0===_||null===(p=_.allUsers)||void 0===p||null===(f=p.data)||void 0===f||null===(b=f.pageInfo)||void 0===b?void 0:b.totalCount,Z=function(){var n=Object(g.a)(h.a.mark((function n(){return h.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!P||!J){n.next=3;break}return n.next=3,P({variables:{params:Object(U.a)(Object(U.a)({},m),{},{after:null,before:J||null,first:null,last:50})}});case 3:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),nn=function(){var n=Object(g.a)(h.a.mark((function n(){return h.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!P||!X){n.next=3;break}return n.next=3,P({variables:{params:Object(U.a)(Object(U.a)({},m),{},{after:X||null,before:null,first:50,last:null})}});case 3:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return Object(a.useEffect)((function(){j(S?{columns:I||["email","firstname","lastname"],value:S}:null)}),[S]),{data:B,refetch:$,hasData:W,hasPreviousPage:V,hasNextPage:Q,loading:F,onPrev:Z,qParams:m,totalCount:Y,onNext:nn,handleSearch:function(n){var e,t=null===n||void 0===n||null===(e=n.target)||void 0===e?void 0:e.value;C(t),q(t)},handleStatusFilter:function(n){var e=n.target.value;e.trim()?O("Inactive"===e?{"status.eq":e}:{"status.in_":["Active","Verified"]}):O(null)},handleColFilter:function(n){E("name"===n?["firstname","lastname"]:n)}}}(),j=v.data,O=v.hasNextPage,w=v.hasPreviousPage,y=v.onNext,k=v.onPrev,C=v.loading,A=(v.totalCount,v.handleSearch),I=v.handleStatusFilter,E=v.handleColFilter,S=H(G).setFilters;return Object(a.useEffect)((function(){S(null),q(null)}),[]),Object(N.jsx)(J.f,{padding:t,children:Object(N.jsxs)("div",{className:"content",children:[Object(N.jsx)(nn,{title:Object(N.jsx)(N.Fragment,{children:Object(N.jsx)("span",{className:"mr-1",children:"Users"})}),description:"Record of users from KrispCall",handleSearch:A,placeholder:"Search",handleStatusFilter:I,handleColFilter:E}),Object(N.jsxs)(J.e,{className:"users-table",children:[Object(N.jsx)(r.a,{columns:m,dataSource:j,rowKey:function(n){return Object(i.a)()},loading:C,pagination:!1,scroll:{x:"max-content",y:e}}),Object(N.jsx)(o.c,{next:y,prev:k,disablePrev:!w,disableNext:!O})]})]})})}}}]); 2//# sourceMappingURL=43.b470f7d1.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.