1(this["webpackJsonpkrispcall-client"]=this["webpackJsonpkrispcall-client"]||[]).push([[64],{1494:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var r,i,a=n(3),o=n(400),c=n(15),s=c.d.div(r||(r=Object(a.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"]))),l=Object(c.d)(o.a)(i||(i=Object(a.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;\n align-items: center;\n gap: 32px;\n }\n\n .monday-delete-modal-logo-wrapper {\n display: flex;\n justify-content: center;
1\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"])))},1499:function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return M})),n.d(t,"a",(function(){return K}));var r,i,a=n(3),o=(n(1476),n(15)),c=(n(80),n(609),n(1)),s=(o.d.div(r||(r=Object(a.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(e){var t=e.bgColor,n=e.theme;return""!==t?t:n.colors.primary.p1}),(function(e){var t=e.bgColor,n=e.theme;return""!==t?t:n.colors.primary.p1}),(function(e){var t=e.textColor,n=e.theme;return""!==t?t:n.colors.primary.p5}),(function(e){return e.theme.text.size.body.text.caption}),(function(e){return e.theme.text.weight.semiBold})),n(165)),l=n(154),d=n(50),m=o.d.div(i||(i=Object(a.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;\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(e){return e.theme.text.weight.bold}),(function(e){return e.theme.text.size.body.text.small}),(function(e){return e.theme.colors.text.t5}),(function(e){return e.theme.colors.text.t2}));function u(e){var t=e.prev,n=e.next,r=e.disableNext,i=e.disablePrev,a=e.showLabel,o=void 0===a||a,u=Object(l.a)().t;return Object(c.jsxs)(m,{children:[Object(c.jsxs)(s.a,{type:"link",className:"".concat(i&&"disabled"),disabled:i,onClick:t,children:[Object(c.jsx)(d.h,{}),o&&Object(c.jsx)("span",{children:u("pagination.prev","Prev")})]}),Object(c.jsxs)(s.a,{type:"link",className:"".concat(r&&"disabled"),disabled:r,onClick:n,children:[o&&Object(c.jsx)("span",{children:u("pagination.next","Next")}),Object(c.jsx)(d.i,{})]})]})}var b=n(325),p=n(189),f=n(1637),j=n(401),g=n(7),h=n(129),O=n(139),v=n(1490),A=n(6),x=n.n(A),E=n(21),_=n(5),C=n(842),P=n(2),y=n(88),T=n(13),R=n(1488),S=n(1494),I=n(1551),N=n(1514),L=n.p+"static/media/mondayDeleteInfo.c4c93e18.png",w=function(e){var t=e.isModalOpen,n=e.onCancel;return Object(c.jsx)(S.a,{visible:t,footer:null,onCancel:n,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:N.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:L,alt:"mondayDeleteInfo"})]}),Object(c.jsxs)("div",{className:"monday-delete-modal-warning-wrapper",children:[Object(c.jsx)(I.a,{}
1),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."})]})]})})},M=function(e){var t=e.crm,n=e.className,r=e.imageSrc,i=e.title,a=e.description,o=e.isIntegrated,s=e.status,l=(e.isAvailable,e.handleConnect),d=void 0===l?function(){return console.log("connect")}:l,m=e.isConnectionLoading,u=void 0!==m&&m,A=function(e){var t=e.crm,n=Object(y.g)(),r=Object(P.useState)("Active"===(null===t||void 0===t?void 0:t.status)),i=Object(_.a)(r,2),a=i[0],o=i[1],s=Object(P.useState)(!1),l=Object(_.a)(s,2),d=l[0],m=l[1],u=Object(P.useState)(!1),b=Object(_.a)(u,2),p=b[0],f=b[1],j=Object(P.useState)(!1),h=Object(_.a)(j,2),O=h[0],v=h[1],A=function(){return v((function(e){return!e}))},S=function(){return f((function(e){return!e}))},I=Object(R.a)({toggleDeleteConfirm:A}).changeCrmStatus,N=Object(R.a)().reSyncGoogleContacts,L="googlecontacts"===(null===t||void 0===t?void 0:t.code),w=null===t||void 0===t?void 0:t.id,M="gong"===(null===t||void 0===t?void 0:t.code),k=function(){var e=Object(E.a)(x.a.mark((function e(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:I({id:null===t||void 0===t?void 0:t.id,status:"Archived"});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),K=function(){var e=Object(E.a)(x.a.mark((function e(){return x.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:N({id:w});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B={edit:function(){n.replace({pathname:"".concat(T.SETTINGS).concat(T.INTEGRATION).concat(T.EDIT),state:{crm:t}})},details:function(){return"details"},delete:"monday"===(null===t||void 0===t?void 0:t.crmPlatform)?S:A,resync:K},q=Object(c.jsxs)(C.a,{onClick:function(e){var t,n=e.key;m(!1),null===(t=B[n])||void 0===t||t.call(B)},children:[a&&L&&Object(c.jsx)(C.a.Item,{icon:Object(c.jsx)(g.i,{name:"resync-icon"}),children:"Resync"},"resync"),a&&!L&&!M&&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:a,setIsCrmActive:o,dropdownVisible:d,setDropdownVisible:m,visibleDeleteConfirm:O,toggleDeleteConfirm:A,visibleMondayInfoModal:p,togggleMondayInfoModal:S,options:q,handleCrmIntegration:function(e){var n={id:null===t||void 0===t?void 0:t.id,status:e?"Active":"Inactive"};I(n),o(e)},onDelete:k}}({crm:t}),I=A.isCrmActive,N=A.options,L=A.dropdownVisible,M=A.visibleDeleteConfirm,k=A.toggleDeleteConfirm,K=A.visibleMondayInfoModal,B=A.togggleMondayInfoModal,q=A.setDropdownVisible,U=A.handleCrmIntegration,D=A.onDelete;return Object(c.jsxs)(S.b,{className:n,children:[Object(c.jsxs)("h3",{className:"flex justify-between items-center mb-5",children:[Object(c.jsx)("img",{src:r,alt:"integration icon"}),o&&Object(c.jsx)(j.h,{overlayClassName:"menu-width-180",options:N,optionDropdownVisible:L,setOptionDropdownVisible:q})]}),Object(c.jsxs)("div",{className:"flex items-center mb-1",children:[Object(c.jsx)("h4",{children:i}),"beta"===s&&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:a}),K&&Object(c.jsx)(w,{isModalOpen:K,onCancel:B}),M&&Object(c.jsx)(h.b,{onOk:D,isModalOpen:M,onCancel:k,onModalCancel:k,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)(O.f,{}),btnIcon:Object(c.jsx)(g.i,{name:"delete-bin-2"})}),o&&(null===t||void 0===t?void 0:t.crmPlatform)!==v.b.Monday&&Object(c.jsx)("div",{className:"mt-6.5",children:Object(c.jsx)(g.u,{checked:I,onChange:U})}),!o&&Object(c.jsxs)(c.Fragment,{children:[("live"===s||"beta"===s)&&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:u,children:["Connect"," ",u?Object(c.jsx)(f.a,{indicator:Object(c.jsx)(p.a,{style:{fontSize:14,color:"#1A63F4"},spin:!0})}):Object(c.jsx)(b.d,{size:16,color:"#1A63F4"})]}),"coming_soon"===s&&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"})]})]})},k=n(324);function K(e){var t=e.getSearchedQuery,n=e.placeholder,r=e.className,i=void 0===r?"contact-list-search":r,a=e.waitTime,o=void 0===a?500:a,s=Object(l.a)().t,m=Object(P.useState)(""),u=Object(_.a)(m,2),b=u[0],p=u[1],f=Object(k.a)(b,o),j=Object(P.useCallback)((function(e){p(e.target.value)}),[]);return Object(P.useEffect)((function(){null===t||void 0===t||t(f)}),[f]),Object(c.jsx)(g.r,{size:"large",placeholder:null!==n&&void 0!==n?n:s("searchContacts.placeholder","Search contacts"),prefix:Object(c.jsx)(d.Q,{}),onChange:j,className:i})}},1556:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r,i=n(5),a=n(2),o=n(1480),c=n(406),s=n(50),l=n(7),d=n(72),m=n(3),u=n(15).d.div(r||(r=Object(m.a)(["\n text-transform: none;\n font-family: 'Heebo';\n font-weight: normal;\n font-size: 13px;\n line-height: 16px;\n color: #6e6681;\n display: flex;\n\n > div {\n display: inline-block;\n max-width: 200px;\n }\n svg {\n display: inline-block;\n cursor: pointer;\n height: 14px;\n width: 14px;\n margin-left: 4px;\n visibility: hidden;\n }\n :hover {\n svg {\n visibility: visible;\n }\n }\n"]))),b=n(1),p=function(e){var t=e.email,n=Object(d.a)().isBigScreen,r=Object(a.useState)("Copy Email"),m=Object(i.a)(r,2),p=m[0],f=m[1];return Object(b.jsxs)(u,{className:"email ".concat(n?"":"email-sm"),children:[Object(b.jsx)(l.x,{title:t,children:Object(b.jsx)("div",{className:"truncate",children:t})}),Object(b.jsx)(l.x,{placement:"topLeft",title:Object(b.jsx)(o.a,{i18nKey:"Copied"===p?"copied":"copyEmail",children:"Copied"===p?"Copied ":"Copy Email"}),onVisibleChange:function(e){e||setTimeout((function(){return f("Copy Email")}),500)}
1,children:Object(b.jsx)(c.CopyToClipboard,{text:t,onCopy:function(){f("Copied")},children:Object(b.jsx)(s.z,{})})})]})}},1607:function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return b})),n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return j})),n.d(t,"c",(function(){return g}));var r,i,a,o,c,s,l,d=n(3),m=n(15),u=(m.d.div(r||(r=Object(d.a)(["\n :host(.button) {\n background-color: red !important;\n }\n p {\n margin-bottom: 20px;\n }\n"]))),m.d.section(i||(i=Object(d.a)(["\n h2 {\n font-weight: 700;\n font-size: 18px;\n line-height: 140%;\n color: #3d3358;\n margin-bottom: 16px;\n }\n\n .ps__thumb-x {\n background-color: #cfccd5;\n }\n"])))),b=m.d.div(a||(a=Object(d.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"]))),p=m.d.div(o||(o=Object(d.a)(["\n height: ",";\n overflow-y: auto;\n"])),(function(e){return e.height})),f=m.d.a(c||(c=Object(d.a)(["\n .icon {\n height: 40px;\n padding: 5px;\n &:not(:last-child) {\n border-right: 1px solid #ccc;\n }\n }\n"]))),j=m.d.div(s||(s=Object(d.a)(["\n border: 1px solid #ece6f2;\n border-radius: 24px;\n width: 400px;\n max-width: 400px;\n padding: 36px 25px;\n\n h2 {\n font-family: 'Heebo';\n font-weight: 500;\n font-size: 24px;\n line-height: 150%;\n color: #3d3358;\n margin-bottom: 30px;\n }\n .ant-select {\n &.ant-select:not(.ant-select-customize-input) .ant-select-selector {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n }\n .ant-btn {\n border: none;\n width: 100%;\n border-radius: 12px;\n &.btn--ok--primary {\n background: #390179;\n }\n :disabled {\n background-color: #e7e6eb;\n span {\n color: #857f96;\n }\n }\n }\n"]))),g=m.d.div(l||(l=Object(d.a)(["\n .field-error {\n .ant-input-group-wrapper {\n border: none !important;\n .ant-input {\n border: 1px solid red;\n }\n }\n }\n\n .ant-input-group-wrapper {\n padding: 0;\n border: none;\n overflow: hidden;\n border-radius: 8px;\n\n .ant-input-group-addon {\n border: none;\n background-color: #fff;\n padding: 0;\n }\n .ant-input {\n margin: 0 !important;\n background: inherit;\n height: 44px !important;\n border: none;\n outline: none;\n padding-left: 18px;\n border: 1px solid #d7cce4;\n border-radius: 8px !important;\n &:focus {\n background: white;\n box-shadow: none;\n }\n }\n }\n"])))},1652:function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return m}));var r,i,a,o=n(3),c=n(15),s=n(2245),l=c.d.div(r||(r=Object(o.a)(["\n .ant-btn {\n font-weight: ",";\n font-size: ",";\n width: fit-content;\n height: 40px;\n box-shadow: none;\n svg {\n position: relative;\n top: 1px;\n font-size: 14px;\n margin-right: 8px;\n }\n }\n\n .pending-options {\n width: fit-content;\n }\n"])),(function(e){return e.theme.text.weight.medium}),(function(e){return e.theme.text.size.body.text.small})),d=Object(c.d)(s.a)(i||(i=Object(o.a)(["\n overflow: visible !important;\n height: calc(100% - 64px); // parent container - header\n &.ant-tabs > .ant-tabs-nav {\n font-weight: ",";\n color: ",";\n height: 40px;\n margin: 24px 0;\n padding: 0 24px;\n\n .ant-tabs-tab {\n padding: 0 16px;\n font-family: 'Manrope';\n & + .ant-tabs-tab {\n margin: 0;\n }\n }\n }\n & .ant-tabs-ink-bar {\n border-bottom: 2px solid ",";\n }\n .ant-tabs-content-holder {\n padding: 0 24px;\n .ant-tabs-content {\n height: 100%;\n }\n }\n &.member-view {\n margin-top: 24px;\n .ant-tabs-nav {\n display: none;\n }\n }\n"])),(function(e){return e.theme.text.weight.bold}),(function(e){return e.theme.colors.text.t4}),(function(e){return e.theme.colors.primary.default})),m=c.d.div(a||(a=Object(o.a)(["\n display: flex;\n align-items: flex-start;\n margin: 4px 0;\n svg {\n margin-right: 8px;\n height: 18px;\n min-width: 18px;
1\n margin-top: 1px;\n }\n color: ",";\n font-weight: 500;\n font-size: 14px;\n line-height: 20px;\n text-align: left;\n margin-bottom: 12px;\n"])),(function(e){return e.theme.colors.danger.default}))},1692:function(e,t,n){"use strict";n.d(t,"d",(function(){return m})),n.d(t,"a",(function(){return u})),n.d(t,"f",(function(){return b})),n.d(t,"e",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return j}));var r,i,a,o,c,s,l=n(3),d=n(15),m=d.d.div(r||(r=Object(l.a)(["\n width: 100%;\n position: relative;\n display: grid;\n align-items: center;\n grid-template-columns: minmax(250px, 46.634%) minmax(52px, 19.2%) minmax(150px, 26.7%) minmax(\n 28px,\n auto\n );\n &.pending-member-list {\n grid-template-columns: minmax(250px, 46.634%) minmax(52px, 47.114%) auto; // 360px 356px 24px;\n }\n padding: 10px 14px;\n border-radius: 10px;\n column-gap: 10px;\n &:hover {\n background: #f8f8fa;\n }\n & + div {\n margin-top: 4px;\n }\n &.header-row {\n height: 40px;\n min-height: 40px;\n padding: 0 16px;\n margin-bottom: 2px;\n &:hover {\n background: none;\n }\n + div {\n margin-top: 2px;\n }\n > h6 {\n font-family: 'Manrope';\n font-weight: 600;\n font-size: 13px;\n line-height: 150%;\n letter-spacing: 0.03em;\n color: #6e6681;\n }\n }\n\n &.crm-members {\n grid-template-columns: 237px auto;\n &.header-row + div {\n max-height: calc(100% - 40px);\n overflow-y: scroll;\n }\n }\n"]))),u=d.d.div(i||(i=Object(l.a)(["\n display: flex;\n align-items: center;\n gap: 10px;\n .member-name {\n text-transform: capitalize;\n color: #564d6d;\n font-family: 'Manrope';\n font-weight: 600;\n line-height: 16px;\n > span.ellipsis {\n display: inline-block;\n max-width: ",";\n vertical-align: middle;\n margin-bottom: 4px;\n }\n }\n"])),(function(e){return e.maxnamelength||"130px"})),b=d.d.div(a||(a=Object(l.a)(["\n font-family: 'Heebo';\n font-weight: normal;\n font-size: 14px;\n line-height: 18px;\n"]))),p=d.d.div(o||(o=Object(l.a)(["\n font-family: 'Manrope';\n font-weight: 600;\n font-size: 14px;\n color: #564d6d;\n max-width: 200px;\n"]))),f=d.d.div(c||(c=Object(l.a)(["\n width: fit-content;\n border-radius: 5px;\n color: ",";\n background: ",";\n font-weight: normal;\n line-height: 14px;\n padding: 6px 10px;\n"])),(function(e){return e.theme.colors.warning.default}),(function(e){return e.theme.colors.warning.w1})),j=d.d.div(s||(s=Object(l.a)(["\n height: calc(100% - 40px);\n display: grid;\n align-items: center;\n justify-content: center;\n justify-items: center;\n align-content: center;
1\n"])))},2275:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return Li}));var r=n(14),i=n(6),a=n.n(i),o=n(42),c=n(21),s=n(5),l=n(2),d=n.n(l),m=n(2245),u=n(154),b=n(88),p=n(152),f=n(306),j=n.n(f),g=n(95),h=n.n(g),O=n(2220),v=n.n(O),A=n(1732),x=n(1735),E=n(1736),_=n(1737),C=n(1739),P=n(1733),y=n(1738),T=n.p+"static/media/exploreMore.6b7aa4b5.svg",R=n(1740),S=n(1755),I=n.p+"static/media/followupboss.b8f004b3.svg",N=n(7),L=n(403),w=n(1499),M=n.p+"static/media/inactive-integration.6efe5d4b.svg",k=n(1494),K=n(1),B=function(e){var t=e.integration;return Object(K.jsxs)(k.b,{className:"bg-gray-50",children:[Object(K.jsx)("h3",{className:"h-7.5",children:Object(K.jsx)("img",{src:M,alt:"integration icon"})}),"activeIntegration"===t?Object(K.jsxs)(K.Fragment,{children:[Object(K.jsx)("h4",{className:"mb-1",children:"No Active Integrations"}),Object(K.jsx)("p",{children:"To begin, link up with any of the integrations that are currently accessible."})]}):Object(K.jsxs)(K.Fragment,{children:[Object(K.jsx)("h4",{className:"mb-1",children:"No Result Found"}),Object(K.jsx)("p",{children:"Please try searching with a different name."})]})]})},q=n(50),U=n(455),D=function(e){Object(u.a)().t;var t=e.isModalOpen,n=e.onModalCancel,r=e.type,i=e.title,a=e.subTitle,o=e.image,c=e.children,s=e.className,l=e.closable,d=e.maskClosable,m=void 0===d||d;return Object(K.jsxs)(U.a,{className:"".concat("primary"!==r&&"delete-modal"," ").concat(o&&"has-head-img"," ").concat(s),width:768,style:{left:"7px",margin:"-8px"},bodyStyle:{minHeight:"auto",maxHeight:500,overflowY:"scroll",marginRight:"4",position:"relative"},centered:!0,visible:t,maskClosable:m,closeIcon:Object(K.jsx)(q.n,{}),closable:null!==l&&void 0!==l&&l,onCancel:function(e){e.stopPropagation(),n()},footer:null,children:[i&&Object(K.jsxs)("div",{className:"flex flex-col items-center mb-10",children:[i&&Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-snug-2",children:i}),a&&Object(K.jsx)("p",{className:"text-15 mt-2 text-gray font-normal text-center leading-normal max-w-340",children:a})]}),c]})},V=n(1742),G=n(64),F=n.p+"static/media/lessannoying.169f9168.svg",z=n.p+"static/media/livespace.485d597c.svg",H=n.p+"static/media/loxo.9ab16a34.svg",Z=n.p+"static/media/konnektive.b57101b3.svg",W=n(1489),Y=n(76),J=n(13),X=n(324),Q=n(1488),$=n(228),ee=n(253),te=n(1561),ne=n(60),re=n(78),ie={first:100,search:null,filter:null,after:null},ae=Object(ne.c)(ie);var oe=n(1607),ce=n(1490),se=Object(l.createContext)({}),le=function(e){var t=e.children,n=Object(Q.b)(),r=n.integratedCrmList,i=n.hasIntegratedCRM,a=Object(l.useMemo)((function(){return{integratedCrmList:r,hasIntegratedCRM:i}}),[r,i]);return Object(K.jsx)(se.Provider,{value:a,children:t})},de=n(271),me=n.n(de),ue=n(3),be=n(15),pe=n(229),fe=n(139),je=n(72),ge=n(31),he=n(1556),Oe=n(172),ve=n(405),Ae=n(83),xe=n(255),Ee={first:10,search:null,filter:null,after:null},_e=Object(ne.c)(Ee);var Ce,Pe,ye,Te=n(1692),Re=n(401),Se=n(842),Ie=be.d.div(Ce||(Ce=Object(ue.a)(["\n .member-option-dropdown {\n transform: scale(0.75);\n }\n img {\n mix-blend-mode: darken;\n }\n"]))),Ne=function(e){var t=e.crm,n=Object(b.g)(),r=Object(l.useState)(!1),i=Object(s.a)(r,2),a=i[0],o=i[1],c={edit:function(){n.replace({pathname:"".concat(J.SETTINGS).concat(J.INTEGRATION).concat(J.EDIT),state:{crm:t}})}},d=Object(K.jsx)(Se.a,{onClick:function(e){var t,n=e.key;o(!1),null===(t=c[n])||void 0===t||t.call(c)},children:Object(K.jsx)(Se.a.Item,{icon:Object(K.jsx)(N.i,{name:"settings-3"}),children:"Manage"},"edit")}),m=t||{},u=m.crmUser,p=m.crmName,f=m.crmLogo;return Object(K.jsx)(Ie,{className:"flex-shrink-0",children:Object(K.jsxs)(Te.a,{maxnamelength:"180px",children:[Object(K.jsx)("div",{className:"w-9 h-9 p-1.5 rounded-14 bg-primary-50",children:Object(K.jsx)("img",{src:f,alt:"integration icon"})}),Object(K.jsxs)("div",{className:"member-name",children:[Object(K.jsxs)("div",{className:"flex justify-between items-center",children:[p,"gong"!==t.crmPlatform&&Object(K.jsx)(Re.h,{overlayClassName:"menu-width-180",placement:"bottomRight",options:d,optionDropdownVisible:a,setOptionDropdownVisible:o})]}),Object(K.jsx)(he.a,{email:u})]})]})})},Le=be.d.div(Pe||(Pe=Object(ue.a)(["\n display: flex;\n flex-direction: column;\n /* height: 388px; */\n /* custom Scrollbar */\n * {\n /* width */\n ::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n }\n"]))),we=Object(be.d)(me.a)(ye||(ye=Object(ue.a)(["\n display: flex;\n gap: 22px;\n overflow: auto !important;\n .ps__rail-x {\n display: none;\n }\n"]))),Me=function(){Object(u.a)().t;var e=Object(je.a)().isBigScreen,t=Object(l.useRef)(null),n=Object(ve.a)({elementRef:t}),i=Object(s.a)(n,2),o=i[0],d=i[1],m=null===d||void 0===d?void 0:d.target,b=function(){var e,t,n,i,o,d,m=Object($.a)(_e),u=Object(l.useContext)(G.a).loggedInMemberId,b=Y.s?xe.j:Ae.B,p=Object(ee.a)(b,{fetchPolicy:"cache-and-network",notifyOnNetworkStatusChange:!0}),f=Object(s.a)(p,2),j=f[0],g=f[1],h=g.data,O=g.fetchMore,v=g.loading,A=g.networkStatus,x=g.called;Object(l.useEffect)((function(){j({variables:{pageParams:m}})}),[j,m]);var E=3===A,_=Object(l.useMemo)((function(){var e,t,n;return null!==(e=null===h||void 0===h||null===(t=h.allWorkspaceMembers)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.edges)&&void 0!==e?e:[]}),[h]),C=null===h||void 0===h||null===(e=h.allWorkspaceMembers)||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.pageInfo)||void 0===n?void 0:n.endCursor,P=null===h||void 0===h||null===(i=h.allWorkspaceMembers)||void 0===i||null===(o=i.data)||void 0===o||null===(d=o.pageInfo)||void 0===d?void 0:d.hasNextPage,y=function(){var e=Object(c.a)(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(O&&C&&P)){e.next=3;break}return e.next=3,O({variables:{pageParams:Object(r.a)(Object(r.a)({},m),{},{after:C})},updateQuery:function(e,t){var n=t.fetchMoreResult;if(!n)return e;var r=n.allWorkspaceMembers.data;return Object(re.a)(e,(function(e){var t,n,i,a,o;e.allWorkspaceMembers.data={pageInfo:r.pageInfo,edges:null===e||void 0===e||null===(t=e.allWorkspaceMembers)||void 0===t||null===(n=t.data)||void 0===n||null===(i=n.edges)||void 0===i?void 0:i.concat(r.edges),__typename:null===e||void 0===e||null===(a=e.allWorkspaceMembers)||void 0===a||null===(o=a.data)||void 0===o?void 0:o.__typename}}))}});case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return{members:_.filter((function(e){var t;return(null===e||void 0===e||null===(t=e.node)||void 0===t?void 0:t.id)!==u})),loading:v,called:x,isRefetching:E,hasNextPage:P,onLoadMore:y}}(),p=b.members,f=b.hasNextPage,j=b.loading,g=b.called,h=b.onLoadMore,O=(Object(l.useContext)(G.a).loggedInMemberId,(null===p||void 0===p?void 0:p.length)<10?"0".concat(null===p||void 0===p?void 0:p.length):null===p||void 0===p?void 0:p.length);Object(l.useEffect)((function(){o&&m instanceof HTMLElement&&f&&(null===m||void 0===m||m.click())}),[f,o,m]);var v=Object(K.jsxs)(Te.d,{className:"crm-members header-row ",children:[Object(K.jsxs)("h6",{children:["MEMBERS (",O,")"]}),Object(K.jsx)("h6",{children:"INTEGRATIONS"})]});return!j&&g&&(null===p||void 0===p?void 0:p.length)<=0?Object(K.jsx)(Te.b,{children:Object(K.jsx)(Re.d,{vector:Object(K.jsx)(fe.C,{}),title:"No Members",description:"Your member list is empty"})}):Object(K.jsxs)(Le,{children:[v,Object(K.jsxs)("div",{children:[(p||[]).map((function(t){var n,r,i,a,o,c,s,l=e?"130px":"180px",d="".concat(null===t||void 0===t||null===(n=t.node)||void 0===n?void 0:n.firstname," ").concat(null===t||void 0===t||null===(r=t.node)||void 0===r?void 0:r.lastname),m=d&&d.length>20?d:"";return Object(K.jsxs)(Te.d,{className:"crm-members",children:[Object(K.jsxs)(Te.a,{maxnamelength:l,children:[Object(K.jsx)(Oe.b,{src:null===t||void 0===t||null===(i=t.node)||void 0===i?void 0:i.profilePicture,size:36,icon:Object(K.jsx)(ge.ab,{bgColor:"#b099c9",color:"#F3F2F4"}),style:{borderRadius:14,minWidth:36}}),Object(K.jsxs)("div",{className:"member-name",children:[Object(K.jsx)("div",{className:"flex",children:Object(K.jsx)(N.x,{title:m,children:Object(K.jsx)("span",{className:"inline-block w-40 truncate",children:d})})}),Object(K.jsx)(he.a,{email:null!==(a=null===t||void 0===t||null===(o=t.node)||void 0===o?void 0:o.email)&&void 0!==a?a:""})]})]}),Object(K.jsx)(we,{className:"flex gap-6.5",children:null===t||void 0===t||null===(c=t.node)||void 0===c||null===(s=c.memberCrmIntegration)||void 0===s?void 0:s.map((function(e){return Object(K.jsx)(Ne,{crm:e},null===e||void 0===e?void 0:e.id)}
1))})]},Object(pe.a)())})),Object(K.jsx)("div",{ref:t,onClick:h})]})]})},ke=function(){return Object(K.jsx)(me.a,{className:"overflow-auto w-full",children:Object(K.jsx)(Me,{})})},Ke=function(e){var t=e.integration,n=void 0===t?"slack":t,r=e.title,i=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FP_SCRIPT_URL_PATTERN:"https://aaula.krispcall.com/web/v<version>/<apiKey>/loader_v<loaderVersion>.js",REACT_APP_ENABLE_APPTIVO:"true",REACT_APP_CLOSE_BETA:"false",REACT_APP_CRISP_PREFILLED_TEXT_SEND_INTERVAL:"86400;",REACT_APP_DATADOG_APPLICATION_ID:"f149ecac-1b0b-43e4-926e-cd35248a1dc9",REACT_APP_SHOW_MAINTENANCE_ALERT:"false",REACT_APP_ENABLE_DIALER_V3:"true",REACT_APP_ENABLE_SALESFORCE:"true",REACT_APP_INTERCOM_BETA:"false",REACT_APP_CASDOOR_CLIENT_ID:"951e05659e0099b09648",REACT_APP_ENABLE_ADD_WORKSPACE_FEATURE:"false",REACT_APP_ENABLE_HUBSPOT:"true",REACT_APP_ENABLE_FRONT:"true",REACT_APP_ZENDESK_BETA:"true",REACT_APP_PIPEDREAM_MARKETPLACE_LINK:"https://pipedream.com/apps/krispcall",REACT_APP_CRM_URI:"https://app.krispcall.com/api/v3/crm",REACT_APP_DATADOG_TRACING_URLS:"https://app.krispcall.com,https://app.krispcall.com/api/v1/graphql/,https://app-login.krispcall.com,https://app-gw.krispcall.com/api/v3,https://ai.krispcall.com/api/v1,wss://app.krispcall.com/api/v1/graphql/ws,https://analyticsapp.krispcall.com/api/v1,wss://analyticsapp.krispcall.com/api/v1/graphql/ws,https://salesprodapi.krispcall.com/api/v1,https://powerdialer.krispcall.com/api/v1,wss://powerdialer.krispcall.com/api/v1/graphql/ws,https://app.krispcall.com/api/v3/crm,https://clients3.google.com/generate_204,krispcall-ed867.firebaseapp.com,krispcall-ed867.appspot.com",REACT_APP_VOICE_TOKEN_REFRESH_MS:"120000",REACT_APP_GONG_BETA:"false",REACT_APP_CURRENT_GIT_SHA:"",REACT_APP_ENABLE_CASDOOR_SSO:"true",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"736681501686",REACT_APP_MONDAY_BETA:"false",REACT_APP_ACTIVEPIECES_BETA:"false",REACT_APP_DATADOG_RECORDING_ENABLED:"true",REACT_APP_PORTING_TOOLTIP_CUSTOM_MSG_DATE:"2026-01-01T23:59:59",REACT_APP_POWER_DIALER_BETA:"true",REACT_APP_ENABLE_ACTIVECAMPAIGN:"true",REACT_APP_COPPER_BETA:"false",REACT_APP_DEVELOPER_API_ENDPOINT:"https://api.krispcall.com/api/v1",REACT_APP_CASDOOR_APP_NAME:"web",REACT_APP_ENABLE_ADDONS_FEATURE:"true",REACT_APP_TWILIO_LOG_WARNING:"true",REACT_APP_ANALYTICS_ENDPOINT:"https://analyticsapp.krispcall.com/api/v1",REACT_APP_CASDOOR_SUPPORT_CLIENT_ID:"37bc1c4f5ba55dfba528",REACT_APP_NON_VOIP_OFFER_PRICE:"100",REACT_APP_ENABLE_ZOHO:"true",REACT_APP_ENABLE_SALESMATE:"true",REACT_APP_DATADOG_RUM_DISABLED:"false",REACT_APP_CHARGEBEE_SITE:"krispcall",REACT_APP_A2P_FORM_LINK:"https://submit.jotform.com/KrispCall/a2p-10dlc-registration-form",REACT_APP_MSTEAMS_BETA:"false",REACT_APP_LEADSQUARED_BETA:"false",REACT_APP_ENABLE_NIMBLE:"true",REACT_APP_ENABLE_CRISPCHAT:"true",REACT_APP_HELPSCOUT_BETA:"false",REACT_APP_NOCRM_BETA:"false",REACT_APP_NEW_ARCH_CRM_LIST:"hubspot,pipedrive,crispchat,activecampaign,nocrm,copper,firmao,freshsales,zoho,helpscout,kommo,gorgias,monday,onepagecrm,intercom,nutshell,nimble,klaviyo,salesforce,ontraport,capsule,gong,salesflare,outplay,gohigh,peppercloud,close,insightly,outreach,salesloft,engagebay,keap,teamleader,salesmate,apptivo,dynamics,zapier,leadsquared,engagebay,front",REACT_APP_NON_VOIP_PRICE:"75",REACT_APP_ENABLE_FRESHSALES:"true",REACT_APP_ENABLE_ONTRAPORT:"true",REACT_APP_API_ENDPOINT_V3:"https://app-gw.krispcall.com/api/v3",REACT_APP_CASDOOR_SERVER_URL:"https://app-login.krispcall.com",REACT_APP_CASDOOR_SUPPORT_APP_NAME:"support-portal",REACT_APP_CAPTCHA_SITE_KEY:"6LcgGnQgAAAAAAE9XvnIBDYncJc6qAWLy14-ccLh",REACT_APP_PS_KEY:"pk_FdaVxv0gQFJOAO0sUxVPkm9qzT8J0plH",REACT_APP_REFUND_POLICY_URL:"https://krispcall.com/legal/refund-policy/",REACT_APP_ENABLE_OUTPLAY:"false",REACT_APP_GOHIGHLEVEL_BETA:"true",REACT_APP_AI_API_ENDPOINT:"https://ai.krispcall.com/api/v1",REACT_APP_COOKIE_PREFIX:"app",REACT_APP_ZAP_TEMPLATE_EMAIL:"[email protected]",REACT_APP_ENABLE_REPORT_BUG:"true",REACT_APP_NON_VOIP:"true",REACT_APP_HIDE_SUPPORT_ALPHA_NUM_ID:"false",REACT_APP_ENABLE_PABBLY:"true",REACT_APP_ENABLE_PIPELINE:"true",REACT_APP_ENABLE_MAKE:"true",REACT_APP_ONEPAGECRM_BETA:"false",REACT_APP_SHOW_FLAGGED_WORSPACES_SUPPORT:"true",REACT_APP_API_ENDPOINT:"/api/v1/graphql/",REACT_APP_COUNTRY_COVERAGE_
1URL:"https://krispcall.com/country-coverage/",REACT_APP_ENABLE_ONPIPELINE:"true",REACT_APP_KOMMO_BETA:"false",REACT_APP_SALESFLARE_BETA:"true",REACT_APP_KLAVIYO_BETA:"true",REACT_APP_INSIGHTLY_BETA:"true",REACT_APP_BASE_URI_FILE:"https://krispcall-prod.sgp1.digitaloceanspaces.com",REACT_APP_SALES_DIALER_SUB_ENDPOINT:"wss://powerdialer.krispcall.com/api/v1/graphql/ws",REACT_APP_ENABLE_DYNAMICS:"true",REACT_APP_ZAP_TEMPLATE_LASTNAME:"CRM",REACT_APP_PRICING_DETAIL_URL:"https://krispcall.com/pricing",REACT_APP_ENABLE_KEAP:"true",REACT_APP_ENABLE_PEPPERCLOUD:"false",REACT_APP_NUTSHELL_BETA:"false",REACT_APP_PABBLY_MARKETPLACE_LINK:"https://www.pabbly.com/connect/integrations/krispcall/",REACT_APP_MAKE_MARKETPLACE_LINK:"https://www.make.com/en/integrations/krispcall",REACT_APP_SALES_API_ENDPOINT:"https://salesprodapi.krispcall.com/api/v1",REACT_APP_STRIPE_PUBLISHABLE_KEY:"pk_live_51LDg7jCrG6G60FxTpbbRJy2iG2qgUVUse87BXzB6TcUAf5BVJ8B2IhIzX1J4wNXFcOHo2s2IolMWOLeBtHarWkN700hB0DtaBo",REACT_APP_ENABLE_PIPEDRIVE:"true",REACT_APP_ENABLE_PIPELINER:"true",REACT_APP_ENABLE_FIRMAO:"true",REACT_APP_ENABLE_GORGIAS:"true",REACT_APP_PIPEDREAM_BETA:"false",REACT_APP_ENABLE_OUTREACH:"true",REACT_APP_ENABLE_CAPSULE:"true",REACT_APP_FIREBASE_STORAGE_BUCKET:"krispcall-ed867.appspot.com",REACT_APP_ENABLE_ENGAGEBAY:"true",REACT_APP_SALESFORCE_BETA:"true",REACT_APP_FIREBASE_AUTH_DOMAIN:"krispcall-ed867.firebaseapp.com",REACT_APP_CHARGEBEE_PUBLISHABLE_KEY:"live_5cuMWkCC8Aoz0D7zIMf9lMFuF09MdUYfk",REACT_APP_AVAILABLE_NUMBERS_FILTER:'{"countryIso": "PH","Local":true,"Mobile":false,"TollFree":true};{"countryIso":"JP","Local":false,"Mobile":false,"TollFree":false}',REACT_APP_FRONT_BETA:"false",REACT_APP_ENABLE_WORKFLOW_SMS_OPTION:"true",REACT_APP_SMS_AND_CONNECTED_NUM_ENABLED_CRM_LIST:"zoho,copper,pipedrive,close,onepagecrm,activecampaign,outreach,helpscout,hubspot,gorgias,gohigh,salesflare,engagebay,capsule,leadsquared,keap,monday,nocrm,kommo,firmao,intercom,nimble,klaviyo,dynamics,teamleader,insightly,salesmate,salesloft,ontraport,bitrix24,apptivo,pipeline,pipeliner,nutshell,zendesk",REACT_APP_DATADOG_SERVICE:"krispcall-web-frontend-v2-unified",REACT_APP_ENABLE_INTEGRATELY:"true",REACT_APP_SUPPORT_USER_EMAIL_DOMAINS:"krispcallmail.com, krispcall.com, codavatar.tech, krispcall.dev",REACT_APP_BASE_URI:"https://app.krispcall.com",REACT_APP_INTEGRATION_SUBSCRIPTION_ENDPOINT:"wss://app.krispcall.com/api/v3/crm/front/graphql/ws",REACT_APP_MIXPANEL_TOKEN:"34d4db450604a5e5c4bd3f4ba277627e",REACT_APP_ZAP_TEMPLATE_FIRSTNAME:"Krispcall",REACT_APP_ENABLE_BITRIX24:"true",REACT_APP_ENABLE_SALESLOFT:"true",REACT_APP_ENABLE_TEAMLEADER:"true",REACT_APP_FLOWLU_BETA:"true",REACT_APP_FP_REGION:"ap",REACT_APP_NON_VOIP_DISCOUNT_PERCENT:"25",REACT_APP_HIDE_TOTAL_COUNT_CONTACTS_PAGE:"true",REACT_APP_ENABLE_CLOSE:"true",REACT_APP_IOS_APP_URL:"https://apps.apple.com/us/app/krispcall/id1597876448?platform=iphone",REACT_APP_ZAP_TEMPLATE_CLIENT_ID:"bpWdtoFwRSLOuqC3BSyUcsgT2flvE6bNHqHiZxkM",REACT_APP_PRIVACY_POLICY_URL:"https://krispcall.com/legal/privacy-policy/",REACT_APP_FP_ENDPOINT:"https://aaula.krispcall.com",REACT_APP_ENABLE_RTC_SAMPLE_DATA:"true",REACT_APP_ENABLE_INTERCOM:"true",REACT_APP_INTEGRATELY_MARKETPLACE_LINK:"https://integrately.com/integrations/krispcall",REACT_APP_ANALYTICS_SUB_ENDPOINT:"wss://analyticsapp.krispcall.com/api/v1/graphql/ws",REACT_APP_GOOGLE_TAG_MANAGER:"GTM-T4MVDDJ",REACT_APP_PORTING_TOOLTIP_CUSTOM_MSG1:"Port activations (except for US, Canada, and Puerto Rican numbers) will be paused from December 22, 2025 to January 1, 2026 and will resume on January 6, 2026.",REACT_APP_IPINFO_TOKEN:"d244f72144b176",REACT_APP_ENABLE_ZENDESK:"true",REACT_APP_ZOHO_BETA:"false",REACT_APP_SALESMATE_BETA:"true",REACT_APP_PING_API_ENDPOINTS:"https://clients3.google.com/generate_204,https://cp.cloudflare.com/generate_204",REACT_APP_PORTING_TOOLTIP_CUSTOM_MSG2:"US, Canada, and Puerto Rico port activations will be paused on December 24, 25, 2025 and January 1, 2026.",REACT_APP_ENABLE_PAYPAL:"false",REACT_APP_ENABLE_GONG:"true",REACT_APP_SUBSCRIPTION_ENDPOINT:"wss://app.krispcall.com/api/v1/graphql/ws",REACT_APP_CRISP_WEBSITE_ID:"7cc44f6d-29de-4a1a-9ac6-2211adbba7e9",REACT_APP_A2P_DESC_LINK:"https://help.krispcall.com/en/article/what-is-a2p-10dlc-and-how-does-it-benefit-your-businesses-16nxb1r/",REACT_APP_ENABLE_MONDAY:"true",REACT_APP_ENABLE_ACTIVEPIECES:"true",REACT_APP_CRISPCHAT_BETA:"false",REACT_APP_FORCE_LOGOUT:"false",REACT_APP_FIREBASE_PROJECT_ID:"krispcall-ed867",REACT_APP_SHOW_FREE_USAGE_BALANCE:"true",REACT_APP_ENABLE_COPPER:"true",REACT_APP_FRESHSALES_BETA:"false",REACT_APP_ONTRAPORT_BETA:"true",REACT_APP_BUG_REPORT_URL:"https://form.typeform.com/to/YrfIZFVn",REACT_APP_DATADOG_CLIENT_TOKEN:"pub8716fb784c255ac9d74b3d59fb52297e",REACT_APP_ANDROID_APP_URL:"https://play.google.com/store/apps/details?id=app.krispcall&pli=1",REACT_APP_ENABLE_USAGE_INSIGTS_REPORTS:"true",REACT_APP_ENABLE_SIP_DESKPHONE:"true",REACT_APP_OUTPLAY_BETA:"true",REACT_APP_FIREBASE_APP_ID:"1:736681501686:web:9ab925f4f3493e23c31dd7",REACT_APP_SECRET_KEY:"7wRxs3-VtruSWF2cUNC0trRszwTtHgsfeSBjOCK4dUM=",REACT_APP_TERMS_OF_SERVICE_URL:"https://krispcall.com/legal/terms-and-conditions/",REACT_APP_REFER_TO_FRIEND_REWARDS:"https://krispcall.com/refer-a-friend/#rewards",REACT_APP_ENABLE_ZAPIER:"true",REACT_APP_PIPELINE_BETA:"true",REACT_APP_MAKE_BETA:"false",REACT_APP_ACTIVEPIECES_MARKETPLACE_LINK:"https://www.activepieces.com/pieces/krisp-call",REACT_APP_AI_TRANSCRIPTION_AND_SUMMARY_URL:"https://krispcall.com/call-summary/",REACT_APP_ENABLE_KRISPCALL_MAX_PLAN:"true",REACT_APP_ENABLE_MSTEAMS:"true",REACT_APP_ENABLE_LEADSQUARED:"true",REACT_APP_REFER_TO_FRIEND_LEARN_MORE:"https://krispcall.com/refer-a-friend/",REACT_APP_ENABLE_HELPSCOUT:"true",REACT_APP_ENABLE_NOCRM:"true",REACT_APP_SIGN_UP_NUMBER_SECRET_KEY:"kc_d9f7b1dcb2785c4c3b4f3e7587123456",REACT_APP_ENABLE_MY_ZAPS:"true",REACT_APP_PEPPERCLOUD_BETA:"true",REACT_APP_ZAPIER_MARKETPLACE_LINK:"https://zapier.com/apps/krispcall/integrations",REACT_APP_MIXPANEL_API_HOST:"https://api-eu.mixpanel.com",REACT_APP_ENABLE_GOHIGHLEVEL:"true",REACT_APP_PIPELINER_BETA:"true",REACT_APP_FIRMAO_BETA:"false",REACT_APP_GORGIAS_BETA:"true",REACT_APP_DATADOG_SITE:"us5.datadoghq.com",REACT_APP_FORWARD_CALL_RATE_URL:"https://krispcall.com/rate/",REACT_APP_ENABLE_ONEPAGECRM:"true",REACT_APP_OUTREACH_BETA:"true",REACT_APP_CAPSULE_BETA:"false",REACT_APP_CASDOOR_ORGANIZATION_NAME:"krispcall",REACT_APP_SHOW_RECORDING_TRANSCRIPT:"true",REACT_APP_ENABLE_KOMMO:"true",REACT_APP_ENABLE_SALESFLARE:"true",REACT_APP_ENABLE_KLAVIYO:"true",REACT_APP_ENABLE_INSIGHTLY:"true",REACT_APP_ENGAGEBAY_BETA:"true",REACT_APP_SALES_DIALER_API_ENDPINT:"https://powerdialer.krispcall.com/api/v1",REACT_APP_FIREBASE_API_KEY:"AIzaSyBoVfIPKmYfQkuuK0jbXlbEfLavMaan-5Y",REACT_APP_DATADOG_ENV:"prod",REACT_APP_CALL_BOX_INTERNAL_REPLY:"true",REACT_APP_REFER_TO_FRIEND_TERMS_AND_CON
1DITIONS:"https://krispcall.com/legal/#ReferAndEarn",REACT_APP_REINITIALIZE_TWILIO_DEVICE:"true",REACT_APP_ENABLE_NUTSHELL:"true",REACT_APP_FP_API_KEY:"DjCSid92v6O0UyXSMG2H",REACT_APP_ENABLE_PIPEDREAM:"true",REACT_APP_BITRIX24_BETA:"false",REACT_APP_TEAMLEADER_BETA:"true",REACT_APP_SALESLOFT_BETA:"true"}),a=i.REACT_APP_ZAP_TEMPLATE_EMAIL,o=i.REACT_APP_ZAP_TEMPLATE_FIRSTNAME,c=i.REACT_APP_ZAP_TEMPLATE_LASTNAME,s=i.REACT_APP_ZAP_TEMPLATE_CLIENT_ID;return Object(K.jsxs)(K.Fragment,{children:[Object(K.jsx)("div",{className:"text-center",children:Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-snug-2",children:r})}),Object(K.jsx)("zapier-zap-templates",{"sign-up-email":a,"sign-up-first-name":o,"sign-up-last-name":c,"client-id":s,theme:"light",apps:"krispcall, ".concat(n),"create-without-template":"hide","use-this-zap":"show"})]})},Be=n(62),qe=n(107),Ue=n(126),De=n.n(Ue),Ve=n(33),Ge=n(61),Fe=n(129),ze=Ve.e().shape({title:Ve.g().trim().matches(/^(https?|ftp):\/\/(([a-z\d]([a-z\d-]*[a-z\d])?\.)+[a-z]{2,}|localhost)(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z\d_]*)?$/i,"Enter valid URL")}),He=function(e){var t=e.toggleDynamicUrlModal,n=e.visibleDynamicUrlModal,r=e.isConnectDynamicUrlLoading,i=e.title,o=e.description1,d=e.description2,m=e.titleImage,u=e.placeholder,b=e.label,p=Object(l.useState)(0),f=Object(s.a)(p,2),j=f[0],g=f[1],h=Object(Q.a)().connectNewArchDynamic,O=Object(Be.g)({resolver:Object(qe.a)(ze),mode:"onChange",defaultValues:{title:""}}),v=O.control,A=O.formState.errors,x=O.setError,E=O.handleSubmit,_=O.reset;Object(l.useEffect)((function(){return function(){g(0),_()}}),[n]);var C=function(){var e=Object(c.a)(a.a.mark((function e(n){var r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(j){e.next=3;break}return g(1),e.abrupt("return");case 3:if(null===(r=n.title)||void 0===r?void 0:r.length){e.next=6;break}return x&&x("title",{type:"focus",message:"Required"}),e.abrupt("return");case 6:return i={instanceUrl:n.title},localStorage.setItem("dynamicsInstanceUrl",n.title),e.next=10,h(i);case 10:return e.next=12,t();case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=j?o:d,y=j?"Submit":"Next";return Object(K.jsx)(Fe.g,{buttonText:y,isModalOpen:n,formId:"create-dynamics-form",onCancel:t,disableSubmitButton:!De()(A),loading:r,children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-dynamics-form",onSubmit:E(C),children:[Object(K.jsxs)("div",{className:"w-100 m-auto",children:[Object(K.jsx)("div",{className:"flex justify-center",children:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:m,alt:"Dynamics"})})}),Object(K.jsxs)("div",{className:"mb-10 mt-7.5 text-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7 mb-2",children:i}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:P})]})]}),Object(K.jsx)("div",{className:"".concat(j&&"hidden"),children:Object(K.jsx)(Ge.b,{name:"title",id:"title",control:v,placeholder:u,label:b,errors:A})})]})})},Ze=n(1469),We=n(46),Ye=n(98);var Je=n(2374),Xe=n(183),Qe=function(e){var t=(e||{}).zap,n=t||{},r=n.steps,i=n.modified_at,a=i&&Object(Xe.default)(new Date(i),"do, LLL yyyy");return Object(K.jsx)(oe.a,{href:null===t||void 0===t?void 0:t.url,target:"_blank",rel:"noopener noreferrer",children:Object(K.jsx)(Je.a,{style:{width:"auto"},className:"cardlist mb-2",children:Object(K.jsxs)("div",{className:"flex items-center",children:[Object(K.jsx)("div",{className:"flex border rounded-md",children:null===r||void 0===r?void 0:r.map((function(e){var t,n;return(null===e||void 0===e||null===(t=e.app)||void 0===t?void 0:t.image)&&Object(K.jsx)("img",{className:"icon",src:null===e||void 0===e||null===(n=e.app)||void 0===n?void 0:n.image,alt:null===e||void 0===e?void 0:e.title})}))}),Object(K.jsxs)("div",{className:"ml-5",children:[Object(K.jsx)("h4",{children:null===t||void 0===t?void 0:t.t
1itle}),Object(K.jsxs)("span",{children:["Updated at: ",a]})]}),Object(K.jsxs)("div",{className:"ml-auto",children:["Status: ",t.state.toUpperCase()]})]})})})},$e=function(e){var t,n,r=e.crmPlatform,i=Object(Q.a)().connectZapier,o=function(){var e=(null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.Zapier))?te.f:te.e,t=Object(ee.a)(e,{fetchPolicy:"network-only"}),n=Object(s.a)(t,2),r=n[0],i=n[1],a=i.data,o=i.loading;return Object(l.useEffect)((function(){r()}),[r]),{zapToken:Object(l.useMemo)((function(){var e,t,n;return null!==(e=null===a||void 0===a||null===(t=a.getZapierAccessToken)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.token)&&void 0!==e?e:""}),[a]),isgetZapTokenQueryLoading:o}}(),d=o.zapToken,m=o.isgetZapTokenQueryLoading,u=Object(Q.c)().integrateGenericCrm,p=null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.Zapier),f=function(){var e=Object(l.useState)(!1),t=Object(s.a)(e,2),n=t[0],r=t[1],i=Object(l.useState)(!1),o=Object(s.a)(i,2),d=o[0],m=o[1],u=Object(l.useState)(),b=Object(s.a)(u,2),p=b[0],f=b[1],j=Object(l.useContext)(G.a).activeWorkspaceId,g=Object(Ye.a)().log;return{zapierTemplateList:p,zapierTemplateListLoading:d,zapierTemplateListAPICalled:n,getZapTemplates:function(){var e=Object(c.a)(a.a.mark((function e(t){var n,i,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,m(!0),e.next=4,fetch("https://api.zapier.com/v1/zaps",{method:"GET",headers:{"Content-type":"application/json",Authorization:"Bearer ".concat(t)}});case 4:return n=e.sent,e.next=7,n.json();case 7:i=e.sent,f(i),m(!1),r(!0),null===(null===i||void 0===i?void 0:i.error)&&window.location.assign(null===i||void 0===i||null===(o=i.data)||void 0===o?void 0:o.auth_url),e.next=20;break;case 14:e.prev=14,e.t0=e.catch(0),m(!1),r(!0),Object(N.w)({content:"Unable to fetch Zap Templates",type:"danger"}),g("Unable to fetch Zap Templates",We.b.WARN,{error:e.t0,additionalInfo:{workspaceID:j},context:We.a.CrmIntegration});case 20:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(t){return e.apply(this,arguments)}}()}}(),j=f.zapierTemplateListLoading,g=f.zapierTemplateList,O=f.zapierTemplateListAPICalled,v=f.getZapTemplates,A=new h.a({encodingType:"aes",isCompression:!1}),x=function(){A.remove("zapier"),i()},E=new URLSearchParams(Object(b.h)().search).get("code");Object(l.useEffect)((function(){if(E&&"zapier"===r){var e=r;if(!e)return;if("true"===A.get(e))return;A.set(e,"true"),Object(c.a)(a.a.mark((function e(){var t,n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={token:E,crmPlatform:ce.b.Zapier},n=p?W.s:W.ab,e.next=4,u(n,t);case 4:case"end":return e.stop()}}),e)})))()}}),[E,r]),Object(l.useEffect)((function(){d&&v(d)}),[d]);var _=function(){return d?Object(K.jsx)(Re.d,{wrapperClassName:"h-100",vector:Object(K.jsx)(fe.C,{}),title:"No Zaps",description:"Your zap list is empty"}):Object(K.jsx)("div",{className:"fit-content",children:Object(K.jsx)(N.b,{type:"primary",size:"large",className:"min-w-195 mr-4",onClick:x,children:"Connect Zap"})})};return m||d&&!O||j?Object(K.jsxs)("div",{className:"h-100 w-full flex flex-col",children:[Object(K.jsxs)("div",{className:"mt-1 mb-4 flex flex-col",children:[Object(K.jsx)(Ze.a.Input,{active:!0,size:"large",block:!0}),Object(K.jsx)(Ze.a.Input,{active:!0,size:"large",block:!0})]}),Object(K.jsxs)("div",{className:"mb-4 flex flex-col",children:[Object(K.jsx)(Ze.a.Input,{active:!0,size:"large",block:!0}),Object(K.jsx)(Ze.a.Input,{active:!0,size:"large",block:!0})]}),Object(K.jsxs)("div",{className:"mb-4 flex flex-col",children:[Object(K.jsx)(Ze.a.Input,{active:!0,size:"large",block:!0}),Object(K.jsx)(Ze.a.Input,{active:!0,size:"large",block:!0})]}),Object(K.jsxs)("div",{className:"mb-4 flex flex-col",children:[Object(K.jsx)(Ze.a.Input,{active:!0,size:"large",block:!0}),Object(K.jsx)(Ze.a.Input,{active:!0,size:"large",block:!0})]})]}):Object(K.jsx)(K.Fragment,{children:(null===g||void 0===g||null===(t=g.objects)||void 0===t?void 0:t.length)?Object(K.jsx)(oe.b,{height:"400px",children:null===g||void 0===g||null===(n=g.objects)||void 0===n?void 0:n.map((function(e){return Object(K.jsx)(Qe,{zap:e})}))}):Object(K.jsx)(_,{})})},et=n(86),tt=Ve.e().shape({instanceUrl:Ve.g().trim().matches(/^(https?|ftp):\/\/(([a-z\d]([a-z\d-]*[a-z\d])?\.)+[a-z]{2,}|localhost)(\/[-a-z\d%_.~+]*)*(\?[;
1&a-z\d%_.~+=-]*)?(\#[-a-z\d_]*)?$/i,"Enter valid URL").required("Required"),apiKey:Ve.g().required("Required"),crmUser:et.f.email.required("Required")}),nt=function(e){Object(u.a)().t;var t=Object(l.useState)(0),n=Object(s.a)(t,2),r=n[0],i=n[1],o=Object(Q.c)().integrateGenericCrm,d=e.toggleFreshsalesUrlModal,m=e.visibleFreshsalesUrlModal,b=e.isConnectFreshsalesUrlLoading,p=e.title,f=e.description1,j=e.description2,g=e.titleImage,h=Object(Be.g)({resolver:Object(qe.a)(tt),mode:"onChange",defaultValues:{instanceUrl:"",apiKey:"",crmUser:""}}),O=h.control,v=h.formState.errors,A=h.setError,x=h.setValue,E=h.handleSubmit;Object(l.useEffect)((function(){return function(){i(0),x("instanceUrl",""),x("apiKey",""),x("crmUser","")}}),[m]);var _=function(){var e=Object(c.a)(a.a.mark((function e(t){var n,c,s,l,m,u,b;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=3;break}return i(1),e.abrupt("return");case 3:return c=(n=t||{}).apiKey,s=n.crmUser,!(null===(l=n.instanceUrl)||void 0===l?void 0:l.length)&&A&&A("instanceUrl",{type:"focus",message:"Required"}),!(null===c||void 0===c?void 0:c.length)&&A&&A("apiKey",{type:"focus",message:"Required"}),!(null===s||void 0===s?void 0:s.length)&&A&&A("crmUser",{type:"focus",message:"Required"}),m=null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.Freshsales),u=m?W.s:W.v,b={crmPlatform:ce.b.Freshsales,apiKey:c,instanceUrl:l},m?b.email=s:b.crmUser=s,e.next=13,o(u,b);case 13:return e.next=15,d();case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),C=r?f:j,P=r?"Submit":"Next";return Object(K.jsx)(Fe.g,{buttonText:P,isModalOpen:m,formId:"create-freshsales-form",onCancel:d,disableSubmitButton:!De()(v),loading:b,children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-freshsales-form",onSubmit:E(_),children:[Object(K.jsxs)("div",{className:"w-100 m-auto",children:[Object(K.jsx)("div",{className:"flex justify-center",children:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:g,alt:"CrispChat"})})}),Object(K.jsxs)("div",{className:"mb-10 mt-7.5 text-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7 mb-2",children:p}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:C})]})]}),Object(K.jsxs)("div",{className:"".concat(r&&"hidden"),children:[Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"instanceUrl",id:"instanceUrl",control:O,placeholder:"Freshsales url",label:"Freshsales url",errors:v})}),Object(K.jsx)("div",{className:"mt-5",children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:O,placeholder:"API token",label:"API token",errors:v})}),Object(K.jsx)("div",{className:"mt-5",children:Object(K.jsx)(Ge.b,{name:"crmUser",id:"crmUser",control:O,placeholder:"Freshsales Email",label:"Freshsales email",errors:v})})]})]})})},rt=Ve.e().shape({accountUrl:Ve.g().trim().required("Required"),token:Ve.g().trim().required("Required")}),it=function(e){Object(u.a)().t;var t=Object(l.useState)(0),n=Object(s.a)(t,2),r=(n[0],n[1],e.toggleActiveCampaignUrlModal),i=e.visibleActiveCampaignUrlModal,o=e.isConnectActiveCampaignUrlLoading,d=e.title,m=(e.description1,e.description2),b=e.titleImage,p=e.integrateActiveCampaign,f=Object(Be.g)({resolver:Object(qe.a)(rt),mode:"onChange",defaultValues:{accountUrl:"",token:""}}),j=f.control,g=f.formState.errors,h=f.setError,O=f.setValue,v=f.handleSubmit;Object(l.useEffect)((function(){return function(){O("accountUrl","")}}),[i]);var A=function(){var e=Object(c.a)(a.a.mark((function e(t){var n,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(null===(n=t.accountUrl)||void 0===n?void 0:n.length)||h&&h("accountUrl",{type:"focus",message:"Required"}),i={accountUrl:null===t||void 0===t?void 0:t.accountUrl,token:null===t||void 0===t?void 0:t.token,crmPlatform:ce.b.ActiveCampaign},e.next=4,p(W.s,i);case 4:return e.next=6,r();case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),x=m;return Object(K.jsx)(Fe.g,{buttonText:"Submit",isModalOpen:i,formId:"create-dynamics-form",onCancel:r,disableSubmitButton:!De()(g),loading:o,children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-dynamics-form",onSubmit:v(A),children:[Object(K.jsxs)("div",{className:"w-100 m-auto",children:[Object(K.jsx)("div",{className:"flex justify-center",children:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:b,alt:"CrispChat"})})}),Object(K.jsxs)("div",{className:"mb-10 mt-7.5 text-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7 mb-2",children:d}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:x})]})]}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"accountUrl",id:"accountUrl",control:j,placeholder:"Account Url",label:"ActiveCampaign Url",errors:g})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"token",
1id:"token",control:j,placeholder:"Token",label:"ActiveCampaign Token",errors:g})})]})})},at=n(473),ot=Ve.e().shape({email:et.f.email,accessKey:Ve.g().trim().required("Required"),secretKey:Ve.g().trim().required("Required"),location:Ve.g().trim().required("Required")}),ct=function(e){var t,n,r=Object(ee.a)(te.d,{fetchPolicy:"cache-and-network"}),i=Object(s.a)(r,2),o=i[0],d=i[1],m=d.data,b=(d.loading,Object(u.a)().t,Object(Q.c)().integrateGenericCrm),p=e.toggleLeadSquaredUrlModal,f=e.visibleLeadSquaredUrlModal,j=e.isConnectLeadSquaredUrlLoading,g=e.title,h=e.description2,O=e.titleImage,v=Object(Be.g)({resolver:Object(qe.a)(ot),mode:"onChange",defaultValues:{email:"",accessKey:"",secretKey:"",location:""}}),A=v.control,x=v.formState.errors,E=v.setError,_=v.setValue,C=v.handleSubmit;Object(l.useEffect)((function(){return function(){_("email","")}}),[f]),Object(l.useEffect)((function(){(function(){var e=Object(c.a)(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error("Error fetching data:",e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}})()()}),[o]);var P=function(){var e=Object(c.a)(a.a.mark((function e(t){var n,r,i,o,c,s,l,d;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.email,i=t.accessKey,o=t.secretKey,c=t.location,(null===(n=t.email)||void 0===n?void 0:n.length)||E&&E("email",{type:"focus",message:"Required"}),s=null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.LeadSquared),l=s?W.s:W.H,d={email:r,accessKey:i,secretKey:o,location:c,crmPlatform:ce.b.LeadSquared},e.next=7,b(l,d);case 7:return e.next=9,p();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),y=h;return Object(K.jsx)(Fe.g,{buttonText:"Submit",isModalOpen:f,formId:"create-dynamics-form",onCancel:p,disableSubmitButton:!De()(x),loading:j,children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-dynamics-form",onSubmit:C(P),children:[Object(K.jsxs)("div",{className:"w-100 m-auto",children:[Object(K.jsx)("div",{className:"flex justify-center",children:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:O,alt:"CrispChat"})})}),Object(K.jsxs)("div",{className:"mb-10 mt-7.5 text-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7 mb-2",children:g}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:y})]})]}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"email",id:"email",control:A,placeholder:"Email",label:"Lead Squared Account Email",errors:x})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"accessKey",id:"accessKey",control:A,placeholder:"Access Key",label:"Lead Squared Account Access Key",errors:x})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"secretKey",id:"secretKey",control:A,placeholder:"Secret Key",label:"Lead Squared Account Secret Key",errors:x})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.g,{name:"location",id:"location",className:"w-100",placeholder:"Location",control:A,errors:x,children:null===m||void 0===m||null===(t=m.getLeadSquaredApiHosts)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.map((function(e){return Object(K.jsx)(at.a.Option,{value:e,children:e},e)}))})})]})})},st=Ve.e().shape({apiKey:Ve.g().required("Required"),email:et.f.email.required("Required"),appId:Ve.g().required("Required")}),lt=function(e){Object(u.a)().t;var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=Object(l.useState)(0),o=Object(s.a)(i,2),d=o[0],m=o[1],b=e.togglePipelineModal,p=e.visiblePipelineModal,f=e.title,j=e.description1,g=e.description2,h=e.titleImage,O=Object(Be.g)({resolver:Object(qe.a)(st),mode:"onChange",defaultValues:{apiKey:"",email:"",appId:""}}),v=O.control,A=O.formState.errors,x=O.setError,E=O.setValue,_=O.handleSubmit;Object(l.useEffect)((function(){return function(){m(0),E("apiKey",""),E("email",""),E("appId","")}}),[p]);var C=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=3;break}return m(1),e.abrupt("return");case 3:return!(null===(r=t.apiKey)||void 0===r?void 0:r.length)&&x&&x("apiKey",{type:"focus",message:"Required"}),!(null===(i=t.email)||void 0===i?void 0:i.length)&&x&&x("email",{type:"focus",message:"Required"}),!(null===(o=t.appId)||void 0===o?void 0:o.length)&&x&&x("appId",{type:"focus",message:"Required"}),c={apiKey:null===t||void 0===t?void 0:t.apiKey,email:null===t||void 0===t?void 0:t.email,appId:null===t||void 0===t?void 0:t.appId,crmPlatform:"pipeline"},e.next=9,n(W.U,c);case 9:return e.next=11,b();case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=d?j:g,y=d?"Submit":"Next";return Object(K.jsx)(Fe.g,{buttonText:y,isModalOpen:p,formId:"create-freshsales-form",onCancel:b,disableSubmitButton:!De()(A),loading:r,children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-freshsales-form",onSubmit:_(C),children:[Object(K.jsxs)("div",{className:"w-100 m-auto",children:[Object(K.jsx)("div",{className:"flex justify-center",children:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:h,alt:"CrispChat"})})}),Object(K.jsxs)("div",{className:"mb-10 mt-7.5 text-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7 mb-2",children:f}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:P})]})]}),Object(K.jsxs)("div",{className:"".concat(d&&"hidden"),children:[Object(K.jsx)("div",{className:"mt-5",children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:v,placeholder:"API token",label:"API token",errors:A})}),Object(K.jsx)("div",{className:"mt-5",children:Object(K.jsx)(Ge.b,{name:"email",id:"email",control:v,placeholder:"Pipeline Email",label:"Pipeline email",errors:A})}),Object(K.jsx)("div",{className:"mt-5",children:Object(K.jsx)(Ge.b,{name:"appId",id:"appId",control:v,placeholder:"Pipeline App Id",label:"Pipeline App Id",errors:A})})]})]})})},dt=Ve.e().shape({email:et.f.email,apiKey:Ve.g().trim().required("Required"),accountSubdomain:Ve.g().trim().required("Required")}),mt=function(e){Object(u.a)().t;var t=Object(Q.c)().integrateGenericCrm,n=e.toggleNoCrmUrlModal,r=e.visibleNoCrmUrlModal,i=e.isConnectNoCrmUrlLoading,o=e.title,s=e.description2,d=e.titleImage,m=Object(Be.g)({resolver:Object(qe.a)(dt),mode:"onChange",defaultValues:{accountSubdomain:"",apiKey:"",email:""}}),b=m.control,p=m.formState.errors,f=m.setError,j=m.setValue,g=m.handleSubmit;Object(l.useEffect)((function(){return function(){j("accountSubdomain",""),j("email","")}}),[r]);var h=function(){var e=Object(c.a)(a.a.mark((function e(r){var i,o,c,s,l,d,m;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(i=r||{}).accountSubdomain,c=i.email,s=i.apiKey,(null===o||void 0===o?void 0:o.length)||f&&f("accountSubdomain",{type:"focus",message:"Required"}),(null===c||void 0===c?void 0:c.length)||f&&f("email",{type:"focus",message:"Required"}),l=null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.NoCrm),d=l?W.s:W.M,m={accountSubdomain:o,apiKey:s,crmPlatform:ce.b.NoCrm},l?m.email=c:m.noCrmEmail=c,e.next=9,t(d,m);case 9:return e.next=11,n();case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=s;return Object(K.jsx)(Fe.g,{buttonText:"Submit",isModalOpen:r,formId:"create-dynamics-form",onCancel:n,disableSubmitButton:!De()(p),loading:i,children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-dynamics-form",onSubmit:g(h),children:[Object(K.jsxs)("div",{className:"w-100 m-auto",children:[Object(K.jsx)("div",{className:"flex justify-center",children:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:d,alt:"CrispChat"})})}),Object(K.jsxs)("div",{className:"mb-10 mt-7.5 text-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7 mb-2",children:o}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:O})]})]}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"accountSubdomain",id:"accountSubdomain",control:b,placeholder:"Account Sub Domain",label:"noCRM Subdomain",errors:p})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"email",id:"email",control:b,placeholder:"noCRM Email",label:"noCRM Email",errors:p})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:b,placeholder:"Api Key",label:"noCRM Account Api Key",errors:p})})]})})},ut=Ve.e().shape({apiKey:Ve.g().trim().required("Required"),userName:Ve.g().trim().required("Required")}),bt=function(e){Object(u.a)().t;var t=Object(Q.c)().integrateGenericCrm,n=e.toggleNutShellUrlModal,r=e.visibleNutShellUrlModal,i=e.title,o=e.description2,s=e.titleImage,d=Object(Be.g)({resolver:Object(qe.a)(ut),mode:"onChange",defaultValues:{userName:"",apiKey:""}}),m=d.control,b=d.formState.errors,p=d.setError,f=d.setValue,j=d.handleSubmit;Object(l.useEffect)((function(){return function(){f("userName",""),f("apiKey","")}}),[r]);var g=function(){var e=Object(c.a)(a.a.mark((function e(r){var i,o,c,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(null===(i=r.userName)||void 0===i?void 0:i.length)||p&&p("userName",{type:"focus",message:"Required"}),(null===(o=r.apiKey)||void 0===o?void 0:o.length)||p&&p("apiKey",{type:"focus",message:"Required"}),c=null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.NutShell),s=c?W.s:W.N,l={apiKey:null===r||void 0===r?void 0:r.apiKey,crmPlatform:ce.b.NutShell},c?l.email=null===r||void 0===r?void 0:r.userName:l.username=null===r||void 0===r?void 0:r.userName,e.next=8,t(s,l);case 8:return e.next=10,n();case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=o;return Object(K.jsx)(Fe.g,{buttonText:"Submit",isModalOpen:r,formId:"create-dynamics-form",onCancel:n,disableSubmitButton:!De()(b),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-dynamics-form",onSubmit:j(g),children:[Object(K.jsxs)("div",{className:"w-100 m-auto",children:[Object(K.jsx)("div",{className:"flex justify-center",children:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:s,alt:"CrispChat"})})}),Object(K.jsxs)("div",{className:"mb-10 mt-7.5 text-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7 mb-2",children:i}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:h})]})]}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"userName",id:"userName",control:m,placeholder:"Username",label:"Nutshell username",errors:b})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:m,placeholder:"Api Key",label:"Nutshell Account Api Key",errors:b})})]})})}
1,pt=n(620),ft=n(1741),jt=function(e){e.title;var t=e.copyableModalVisible,n=e.setCopyableModalVisible,r=Object(l.useState)(""),i=Object(s.a)(r,2),a=i[0],o=i[1],c=Object(l.useState)(!1),d=Object(s.a)(c,2),m=(d[0],d[1]),u=Object(l.useContext)(se),b=u.integratedCrmList,p=(u.hasIntegratedCRM,Object(Q.a)({toggleDeleteConfirm:function(){return m((function(e){return!e}))}}).changeCrmStatus);Object(l.useEffect)((function(){o(localStorage.getItem("frontKey")||""),n(!!localStorage.getItem("frontKey"))}),[n]);var f=function(){n(!1),b.forEach((function(e){"front"===(null===e||void 0===e?void 0:e.crmPlatform)&&(p({id:null===e||void 0===e?void 0:e.id,status:"Archived"}),localStorage.removeItem("frontIntegrationId"),localStorage.removeItem("frontKey"))}))};return Object(K.jsx)(Fe.g,{vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:ft.a,alt:"OnePageCRM"})}),title:"Front",subTitle:"Enter API Key below and Set to Front",isModalOpen:t,onCancel:f,className:"front-crm-api-key-modal",children:Object(K.jsxs)("div",{className:"flex flex-col",children:[Object(K.jsx)(N.l,{children:"API Key"}),Object(K.jsxs)("div",{className:"flex mt-2 mr-2 text-white gap-2 mb-8",children:[Object(K.jsx)(pt.a,{name:"api-key",value:a,onChange:function(e){o(e.target.value)}}),Object(K.jsx)(N.i,{name:"copyable",onClick:function(){navigator.clipboard.writeText(a).then((function(){Object(N.w)({content:"Content copied to clipboard",type:"success"})})).catch((function(e){console.error("Error copying content:",e)}))},className:"cursor-pointer"})]}),Object(K.jsxs)("div",{className:"flex gap-4",children:[Object(K.jsx)(N.b,{type:"link",className:"btn btn--cancel--front bg-primary-200",size:"large",onClick:f,children:"Cancel"},"back"),Object(K.jsxs)(N.b,{type:"link",className:"btn btn--ok--front",size:"large",onClick:function(){window.open("https://help.krispcall.com/en/article/how-to-integrate-your-front-crm-account-with-krispcall-13cvkeq")},children:[Object(K.jsx)("span",{children:"Setup Documentation"}),Object(K.jsx)(ge.d,{className:"text-white min-w-20 ml-2",style:{marginRight:0}})]},"back")]})]})})},gt=Ve.e().shape({email:et.f.email.required("Required"),sessionKey:Ve.g().required("Required"),salesmateDomain:Ve.g().required("Required")}),ht=function(e){Object(u.a)().t;var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=Object(l.useState)(0),o=Object(s.a)(i,2),d=o[0],m=o[1],b=e.toggleSalesmateModal,p=e.visibleSalesmateModal,f=(e.isConnectSalesmateLoading,e.title),j=e.description1,g=e.description2,h=e.titleImage,O=Object(Be.g)({resolver:Object(qe.a)(gt),mode:"onChange",defaultValues:{email:"",sessionKey:"",salesmateDomain:""}}),v=O.control,A=O.formState.errors,x=O.setError,E=O.setValue,_=O.handleSubmit;Object(l.useEffect)((function(){return function(){m(0),E("email",""),E("sessionKey",""),E("salesmateDomain","")}}),[p]);var C=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=3;break}return m(1),e.abrupt("return");case 3:return!(null===(r=t.email)||void 0===r?void 0:r.length)&&x&&x("email",{type:"focus",message:"Required"}),!(null===(i=t.sessionKey)||void 0===i?void 0:i.length)&&x&&x("sessionKey",{type:"focus",message:"Required"}),!(null===(o=t.salesmateDomain)||void 0===o?void 0:o.length)&&x&&x("salesmateDomain",{type:"focus",message:"Required"}),c=null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.Salesmate),s=c?W.s:W.Y,l={crmPlatform:ce.b.Salesmate,email:null===t||void 0===t?void 0:t.email,sessionKey:null===t||void 0===t?void 0:t.sessionKey,salesmateDomain:null===t||void 0===t?void 0:t.salesmateDomain},e.next=11,n(s,l);case 11:return e.next=13,b();case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=d?j:g,y=d?"Submit":"Next";return Object(K.jsx)(Fe.g,{buttonText:y,isModalOpen:p,formId:"create-salesmate-form",onCancel:b,disableSubmitButton:!De()(A),loading:r,children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-salesmate-form",onSubmit:_(C),children:[Object(K.jsxs)("div",{className:"w-100 m-auto",children:[Object(K.jsx)("div",{className:"flex justify-center",children:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:h,alt:"CrispChat"})})}),Object(K.jsxs)("div",{className:"mb-10 mt-7.5 text-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7 mb-2",children:f}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:P})]})]}),Object(K.jsxs)("div",{className:"".concat(d&&"hidden"),children:[Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"email",id:"email",control:v,placeholder:"Salesmate Email",label:"Salesmate Email",errors:A})}),Object(K.jsx)("div",{className:"mt-5",children:Object(K.jsx)(Ge.b,{name:"sessionKey",id:"sessionKey",control:v,placeholder:"Salesmate Session Key",label:"Salesmate Session Key",errors:A})}),Object(K.jsx)(oe.c,{className:"mt-5",children:Object(K.jsx)(Ge.b,{addonBefore:"https://",addonAfter:".salesmate.io",name:"salesmateDomain",id:"salesmateDomain",control:v,placeholder:"Salesmate Domain",label:"Salesmate Domain",errors:A})})]})]})})},Ot=n(1157),vt=n(551);var At,xt=function(){var e=(null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.Front))?vt.c:vt.b;return Object(Ot.a)(e,{variables:{integration:localStorage.getItem("frontIntegrationId")},onSubscriptionData:function(e){var t,n,r,i,a,o,c,s,l,d,m=null===e||void 0===e||null===(t=e.client)||void 0===t?void 0:t.cache;(null===e||void 0===e||null===(n=e.subscriptionData)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.integrationUpdate)&&("success_integration"===(null===e||void 0===e||null===(i=e.subscriptionData)||void 0===i||null===(a=i.data)||void 0===a||null===(o=a.integrationUpdate)||void 0===o?void 0:o.event)&&(null===e||void 0===e||null===(c=e.subscriptionData)||void 0===c||null===(s=c.data)||void 0===s||null===(l=s.integrationUpdate)||void 0===l||null===(d=l.message)||void 0===d?void 0:d.id)===localStorage.getItem("frontIntegrationId")&&(localStorage.removeItem("frontIntegrationId"),localStorage.removeItem("frontKey"),Object(N.w)({content:"Channel connected successfully.",type:"success"}),setTimeout((function(){window.location.reload()}),2e3)),Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FP_SCRIPT_URL_PATTERN:"https://aaula.krispcall.com/web/v<version>/<apiKey>/loader_v<loaderVersion>.js",REACT_APP_ENABLE_APPTIVO:"true",REACT_APP_CLOSE_BETA:"false",REACT_APP_CRISP_PREFILLED_TEXT_SEND_INTERVAL:"86400;",REACT_APP_DATADOG_APPLICATION_ID:"f149ecac-1b0b-43e4-926e-cd35248a1dc9",REACT_APP_SHOW_MAINTENANCE_ALERT:"false",REACT_APP_ENABLE_DIALER_V3:"true",REACT_APP_ENABLE_SALESFORCE:"true",REACT_APP_INT
1ERCOM_BETA:"false",REACT_APP_CASDOOR_CLIENT_ID:"951e05659e0099b09648",REACT_APP_ENABLE_ADD_WORKSPACE_FEATURE:"false",REACT_APP_ENABLE_HUBSPOT:"true",REACT_APP_ENABLE_FRONT:"true",REACT_APP_ZENDESK_BETA:"true",REACT_APP_PIPEDREAM_MARKETPLACE_LINK:"https://pipedream.com/apps/krispcall",REACT_APP_CRM_URI:"https://app.krispcall.com/api/v3/crm",REACT_APP_DATADOG_TRACING_URLS:"https://app.krispcall.com,https://app.krispcall.com/api/v1/graphql/,https://app-login.krispcall.com,https://app-gw.krispcall.com/api/v3,https://ai.krispcall.com/api/v1,wss://app.krispcall.com/api/v1/graphql/ws,https://analyticsapp.krispcall.com/api/v1,wss://analyticsapp.krispcall.com/api/v1/graphql/ws,https://salesprodapi.krispcall.com/api/v1,https://powerdialer.krispcall.com/api/v1,wss://powerdialer.krispcall.com/api/v1/graphql/ws,https://app.krispcall.com/api/v3/crm,https://clients3.google.com/generate_204,krispcall-ed867.firebaseapp.com,krispcall-ed867.appspot.com",REACT_APP_VOICE_TOKEN_REFRESH_MS:"120000",REACT_APP_GONG_BETA:"false",REACT_APP_CURRENT_GIT_SHA:"",REACT_APP_ENABLE_CASDOOR_SSO:"true",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"736681501686",REACT_APP_MONDAY_BETA:"false",REACT_APP_ACTIVEPIECES_BETA:"false",REACT_APP_DATADOG_RECORDING_ENABLED:"true",REACT_APP_PORTING_TOOLTIP_CUSTOM_MSG_DATE:"2026-01-01T23:59:59",REACT_APP_POWER_DIALER_BETA:"true",REACT_APP_ENABLE_ACTIVECAMPAIGN:"true",REACT_APP_COPPER_BETA:"false",REACT_APP_DEVELOPER_API_ENDPOINT:"https://api.krispcall.com/api/v1",REACT_APP_CASDOOR_APP_NAME:"web",REACT_APP_ENABLE_ADDONS_FEATURE:"true",REACT_APP_TWILIO_LOG_WARNING:"true",REACT_APP_ANALYTICS_ENDPOINT:"https://analyticsapp.krispcall.com/api/v1",REACT_APP_CASDOOR_SUPPORT_CLIENT_ID:"37bc1c4f5ba55dfba528",REACT_APP_NON_VOIP_OFFER_PRICE:"100",REACT_APP_ENABLE_ZOHO:"true",REACT_APP_ENABLE_SALESMATE:"true",REACT_APP_DATADOG_RUM_DISABLED:"false",REACT_APP_CHARGEBEE_SITE:"krispcall",REACT_APP_A2P_FORM_LINK:"https://submit.jotform.com/KrispCall/a2p-10dlc-registration-form",REACT_APP_MSTEAMS_BETA:"false",REACT_APP_LEADSQUARED_BETA:"false",REACT_APP_ENABLE_NIMBLE:"true",REACT_APP_ENABLE_CRISPCHAT:"true",REACT_APP_HELPSCOUT_BETA:"false",REACT_APP_NOCRM_BETA:"false",REACT_APP_NEW_ARCH_CRM_LIST:"hubspot,pipedrive,crispchat,activecampaign,nocrm,copper,firmao,freshsales,zoho,helpscout,kommo,gorgias,monday,onepagecrm,intercom,nutshell,nimble,klaviyo,salesforce,ontraport,capsule,gong,salesflare,outplay,gohigh,peppercloud,close,insightly,outreach,salesloft,engagebay,keap,teamleader,salesmate,apptivo,dynamics,zapier,leadsquared,engagebay,front",REACT_APP_NON_VOIP_PRICE:"75",REACT_APP_ENABLE_FRESHSALES:"true",REACT_APP_ENABLE_ONTRAPORT:"true",REACT_APP_API_ENDPOINT_V3:"https://app-gw.krispcall.com/api/v3",REACT_APP_CASDOOR_SERVER_URL:"https://app-login.krispcall.com",REACT_APP_CASDOOR_SUPPORT_APP_NAME:"support-portal",REACT_APP_CAPTCHA_SITE_KEY:"6LcgGnQgAAAAAAE9XvnIBDYncJc6qAWLy14-ccLh",REACT_APP_PS_KEY:"pk_FdaVxv0gQFJOAO0sUxVPkm9qzT8J0plH",REACT_APP_REFUND_POLICY_URL:"https://krispcall.com/legal/refund-policy/",REACT_APP_ENABLE_OUTPLAY:"false",REACT_APP_GOHIGHLEVEL_BETA:"true",REACT_APP_AI_API_ENDPOINT:"https://ai.krispcall.com/api/v1",REACT_APP_COOKIE_PREFIX:"app",REACT_APP_ZAP_TEMPLATE_EMAIL:"[email protected]",REACT_APP_ENABLE_REPORT_BUG:"true",REACT_APP_NON_VOIP:"true",REACT_APP_HIDE_SUPPORT_ALPHA_NUM_ID:"false",REACT_APP_ENABLE_PABBLY:"true",REACT_APP_ENABLE_PIPELINE:"true",REACT_APP_ENABLE_MAKE:"true",REACT_APP_ONEPAGECRM_BETA:"false",REACT_APP_SHOW_FLAGGED_WORSPACES_SUPPORT:"true",REACT_APP_API_ENDPOINT:"/api/v1/graphql/",REACT_APP_COUNTRY_COVERAGE_URL:"https://krispcall.com/country-coverage/",REACT_APP_ENABLE_ONPIPELINE:"true",REACT_APP_KOMMO_BETA:"false",REACT_APP_SALESFLARE_BETA:"true",REACT_APP_KLAVIYO_BETA:"true",REACT_APP_INSIGHTLY_BETA:"true",REACT_APP_BASE_URI_FILE:"https://krispcall-prod.sgp1.digitaloceanspaces.com",REACT_APP_SALES_DIALER_SUB_ENDPOINT:"wss://powerdialer.krispcall.com/api/v1/graphql/ws",REACT_APP_ENABLE_DYNAMICS:"true",REACT_APP_ZAP_TEMPLATE_LASTNAME:"CRM",REACT_APP_PRICING_DETAIL_URL:"https://krispcall.com/pricing",REACT_APP_ENABLE_KEAP:"true",REACT_APP_ENABLE_PEPPERCLOUD:"false",REACT_APP_NUTSHELL_BETA:"false",REACT_APP_PABBLY_MARKETPLACE_LINK:"https://www.pabbly.com/connect/integrations/krispcall/",REACT_APP_MAKE_MARKETPLACE_LINK:"https://www.make.com/en/integrations/krispcall",REACT_APP_SALES_API_ENDPOINT:"https://salesprodapi.krispcall.com/api/v1",REACT_APP_STRIPE_PUBLISHABLE_KEY:"pk_live_51LDg7jCrG6G60FxTpbbRJy2iG2qgUVUse87BXzB6TcUAf5BVJ8B2IhIzX1J4wNX
1FcOHo2s2IolMWOLeBtHarWkN700hB0DtaBo",REACT_APP_ENABLE_PIPEDRIVE:"true",REACT_APP_ENABLE_PIPELINER:"true",REACT_APP_ENABLE_FIRMAO:"true",REACT_APP_ENABLE_GORGIAS:"true",REACT_APP_PIPEDREAM_BETA:"false",REACT_APP_ENABLE_OUTREACH:"true",REACT_APP_ENABLE_CAPSULE:"true",REACT_APP_FIREBASE_STORAGE_BUCKET:"krispcall-ed867.appspot.com",REACT_APP_ENABLE_ENGAGEBAY:"true",REACT_APP_SALESFORCE_BETA:"true",REACT_APP_FIREBASE_AUTH_DOMAIN:"krispcall-ed867.firebaseapp.com",REACT_APP_CHARGEBEE_PUBLISHABLE_KEY:"live_5cuMWkCC8Aoz0D7zIMf9lMFuF09MdUYfk",REACT_APP_AVAILABLE_NUMBERS_FILTER:'{"countryIso": "PH","Local":true,"Mobile":false,"TollFree":true};{"countryIso":"JP","Local":false,"Mobile":false,"TollFree":false}',REACT_APP_FRONT_BETA:"false",REACT_APP_ENABLE_WORKFLOW_SMS_OPTION:"true",REACT_APP_SMS_AND_CONNECTED_NUM_ENABLED_CRM_LIST:"zoho,copper,pipedrive,close,onepagecrm,activecampaign,outreach,helpscout,hubspot,gorgias,gohigh,salesflare,engagebay,capsule,leadsquared,keap,monday,nocrm,kommo,firmao,intercom,nimble,klaviyo,dynamics,teamleader,insightly,salesmate,salesloft,ontraport,bitrix24,apptivo,pipeline,pipeliner,nutshell,zendesk",REACT_APP_DATADOG_SERVICE:"krispcall-web-frontend-v2-unified",REACT_APP_ENABLE_INTEGRATELY:"true",REACT_APP_SUPPORT_USER_EMAIL_DOMAINS:"krispcallmail.com, krispcall.com, codavatar.tech, krispcall.dev",REACT_APP_BASE_URI:"https://app.krispcall.com",REACT_APP_INTEGRATION_SUBSCRIPTION_ENDPOINT:"wss://app.krispcall.com/api/v3/crm/front/graphql/ws",REACT_APP_MIXPANEL_TOKEN:"34d4db450604a5e5c4bd3f4ba277627e",REACT_APP_ZAP_TEMPLATE_FIRSTNAME:"Krispcall",REACT_APP_ENABLE_BITRIX24:"true",REACT_APP_ENABLE_SALESLOFT:"true",REACT_APP_ENABLE_TEAMLEADER:"true",REACT_APP_FLOWLU_BETA:"true",REACT_APP_FP_REGION:"ap",REACT_APP_NON_VOIP_DISCOUNT_PERCENT:"25",REACT_APP_HIDE_TOTAL_COUNT_CONTACTS_PAGE:"true",REACT_APP_ENABLE_CLOSE:"true",REACT_APP_IOS_APP_URL:"https://apps.apple.com/us/app/krispcall/id1597876448?platform=iphone",REACT_APP_ZAP_TEMPLATE_CLIENT_ID:"bpWdtoFwRSLOuqC3BSyUcsgT2flvE6bNHqHiZxkM",REACT_APP_PRIVACY_POLICY_URL:"https://krispcall.com/legal/privacy-policy/",REACT_APP_FP_ENDPOINT:"https://aaula.krispcall.com",REACT_APP_ENABLE_RTC_SAMPLE_DATA:"true",REACT_APP_ENABLE_INTERCOM:"true",REACT_APP_INTEGRATELY_MARKETPLACE_LINK:"https://integrately.com/integrations/krispcall",REACT_APP_ANALYTICS_SUB_ENDPOINT:"wss://analyticsapp.krispcall.com/api/v1/graphql/ws",REACT_APP_GOOGLE_TAG_MANAGER:"GTM-T4MVDDJ",REACT_APP_PORTING_TOOLTIP_CUSTOM_MSG1:"Port activations (except for US, Canada, and Puerto Rican numbers) will be paused from December 22, 2025 to January 1, 2026 and will resume on January 6, 2026.",REACT_APP_IPINFO_TOKEN:"d244f72144b176",REACT_APP_ENABLE_ZENDESK:"true",REACT_APP_ZOHO_BETA:"false",REACT_APP_SALESMATE_BETA:"true",REACT_APP_PING_API_ENDPOINTS:"https://clients3.google.com/generate_204,https://cp.cloudflare.com/generate_204",REACT_APP_PORTING_TOOLTIP_CUSTOM_MSG2:"US, Canada, and Puerto Rico port activations will be paused on December 24, 25, 2025 and January 1, 2026.",REACT_APP_ENABLE_PAYPAL:"false",REACT_APP_ENABLE_GONG:"true",REACT_APP_SUBSCRIPTION_ENDPOINT:"wss://app.krispcall.com/api/v1/graphql/ws",REACT_APP_CRISP_WEBSITE_ID:"7cc44f6d-29de-4a1a-9ac6-2211adbba7e9",REACT_APP_A2P_DESC_LINK:"https://help.krispcall.com/en/article/what-is-a2p-10dlc-and-how-does-it-benefit-your-businesses-16nxb1r/",REACT_APP_ENABLE_MONDAY:"true",REACT_APP_ENABLE_ACTIVEPIECES:"true",REACT_APP_CRISPCHAT_BETA:"false",REACT_APP_FORCE_LOGOUT:"false",REACT_APP_FIREBASE_PROJECT_ID:"krispcall-ed867",REACT_APP_SHOW_FREE_USAGE_BALANCE:"true",REACT_APP_ENABLE_COPPER:"true",REACT_APP_FRESHSALES_BETA:"false",REACT_APP_ONTRAPORT_BETA:"true",REACT_APP_BUG_REPORT_URL:"https://form.typeform.com/to/YrfIZFVn",REACT_APP_DATADOG_CLIENT_TOKEN:"pub8716fb784c255ac9d74b3d59fb52297e",REACT_APP_ANDROID_APP_URL:"https://play.google.com/store/apps/details?id=app.krispcall&pli=1",REACT_APP_ENABLE_USAGE_INSIGTS_REPORTS:"true",REACT_APP_ENABLE_SIP_DESKPHONE:"true",REACT_APP_OUTPLAY_BETA:"true",REACT_APP_FIREBASE_APP_ID:"1:736681501686:web:9ab925f4f3493e23c31dd7",REACT_APP_SECRET_KEY:"7wRxs3-VtruSWF2cUNC0trRszwTtHgsfeSBjOCK4dUM=",REACT_APP_TERMS_OF_SERVICE_URL:"https://krispcall.com/legal/terms-and-conditions/",REACT_APP_REFER_TO_FRIEND_REWARDS:"https://krispcall.com/refer-a-friend/#rewards",REACT_APP_ENABLE_ZAPIER:"true",REACT_APP_PIPELINE_BETA:"true",REACT_APP_MAKE_BETA:"false",REACT_APP_ACTIVEPIECES_MARKETPLACE_LINK:"https://www.activepieces.com/pieces/krisp-call",REACT_APP_AI_TRANSCRIPTION_AND_SUMMARY_URL:"https://krispcall.com/call-summary/",REACT_APP_ENABLE_KRISPCALL_MAX_PLAN:"true",REACT_APP_ENABLE_MSTEAMS:"true",REACT_APP_ENABLE_LEADSQUARED:"true",REACT_APP_REFER_TO_FRIEND_LEARN_MORE:"https://krispcall.com/refer-a-friend/",REACT_APP_ENABLE_HELPSCOUT:"true",REACT_APP_ENABLE_NOCRM:"true",REACT_APP_SIGN_UP_NUMBER_SECRET_KEY:"kc_d9f7b1dcb2785c4c3b4f3e7587123456",REACT_APP_ENABLE_MY_ZAPS:"true",REACT_APP_PEPPERCLOUD_BETA:"true",REACT_APP_ZAPIER_MARKETPLACE_LINK:"https://zapier.com/apps/krispcall/integrations",REACT_APP_MIXPANEL_API_HOST:"https://api-eu.mixpanel.com",REACT_APP_ENABLE_GOHIGHLEVEL:"true",REACT_APP_PIPELINER_BETA:"true",REACT_APP_FIRMAO_BETA:"false",REACT_APP_GORGIAS_BETA:"true",REACT_APP_DATADOG_SITE:"us5.datadoghq.com",REACT_APP_FORWARD_CALL_RATE_URL:"https://krispcall.com/rate/",REACT_APP_ENABLE_ONEPAGECRM:"true",REACT_APP_OUTREACH_BETA:"true",REACT_APP_CAPSULE_BETA:"false",REACT_APP_CASDOOR_ORGANIZATION_NAME:"krispcall",REACT_APP_SHOW_RECORDING_TRANSCRIPT:"true",REACT_APP_ENABLE_KOMMO:"true",REACT_APP_ENABLE_SALESFLARE:"true",REACT_APP_ENABLE_KLAVIYO:"true",REACT_APP_ENABLE_INSIGHTLY:"true",REACT_APP_ENGAGEBAY_BETA:"true",REACT_APP_SALES_DIALER_API_ENDPINT:"https://powerdialer.krispcall.com/api/v1",REACT_APP_FIREBASE_API_KEY:"AIzaSyBoVfIPKmYfQkuuK0jbXlbEfLavMaan-5Y",REACT_APP_DATADOG_ENV:"prod",REACT_APP_CALL_BOX_INTERNAL_REPLY:"true",REACT_APP_REFER_TO_FRIEND_TERMS_AND_CON
1DITIONS:"https://krispcall.com/legal/#ReferAndEarn",REACT_APP_REINITIALIZE_TWILIO_DEVICE:"true",REACT_APP_ENABLE_NUTSHELL:"true",REACT_APP_FP_API_KEY:"DjCSid92v6O0UyXSMG2H",REACT_APP_ENABLE_PIPEDREAM:"true",REACT_APP_BITRIX24_BETA:"false",REACT_APP_TEAMLEADER_BETA:"true",REACT_APP_SALESLOFT_BETA:"true"}).REACT_APP_DEBUG&&m.modify({broadcast:!1,fields:{channels:function(){}}}))}}).data,null},Et=Ve.e().shape({gongEmail:Ve.g().trim().required("Required")}),_t=function(e){Object(u.a)().t,Object(Q.c)().integrateGenericCrm;var t=e.toggleGongUrlModal,n=e.visibleGongUrlModal,r=e.title,i=(e.description1,e.description2),o=e.titleImage,s=Object(Be.g)({resolver:Object(qe.a)(Et),mode:"onChange",defaultValues:{gongEmail:""}}),d=s.control,m=s.formState.errors,b=(s.setError,s.setValue),p=s.handleSubmit,f=Object(l.useContext)(G.a).accessToken,j={Authorization:"JWT ".concat(f),"X-Auth-Platform-Type":"Web","X-Heimdall-Authentication":"true"};Object(l.useEffect)((function(){return function(){b("gongEmail","")}}),[n]);var g=function(){var e=Object(c.a)(a.a.mark((function e(t){var n,r,i,o,c,s,l,d;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.Gong))?"".concat(Y.s,"/gong/connect"):"".concat(Y.g,"/api/v1/gong/connect"),e.prev=1,e.next=4,fetch(n,{method:"GET",headers:j});case 4:return r=e.sent,e.next=7,r.json();case 7:null===(null===(i=e.sent)||void 0===i?void 0:i.error)&&(o=null===i||void 0===i?void 0:i.data,c=o.url,s=o.authUrl,d=null===(l=c||s)||void 0===l?void 0:l.replace(/&state=.*/,""),window.location.assign("".concat(d,"&state=").concat(t))),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),Object(N.w)({content:"Cannot Connect To Gong",type:"error"});case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(t){return e.apply(this,arguments)}}(),h=function(){var e=Object(c.a)(a.a.mark((function e(n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(null===n||void 0===n?void 0:n.gongEmail);case 2:return e.next=4,t();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=i;return Object(K.jsx)(Fe.g,{buttonText:"Submit",isModalOpen:n,formId:"create-dynamics-form",onCancel:t,disableSubmitButton:!De()(m),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-dynamics-form",onSubmit:p(h),children:[Object(K.jsxs)("div",{className:"w-100 m-auto",children:[Object(K.jsx)("div",{className:"flex justify-center",children:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:o,alt:"CrispChat"})})}),Object(K.jsxs)("div",{className:"mb-10 mt-7.5 text-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7 mb-2",children:r}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:O})]})]}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"gongEmail",id:"gongEmail",control:d,placeholder:"Gong Email",label:"Gong Account Email",errors:m})})]})})},Ct=n(1743),Pt=Ve.e().shape({apiKey:Ve.g().trim().required("Required"),onePageUserId:Ve.g().trim().required("Required")}),yt=function(e){Object(u.a)().t;var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.toggleOnePageUrlModal,o=e.visibleOnePageUrlModal,s=Object(Be.g)({resolver:Object(qe.a)(Pt),mode:"onChange",defaultValues:{apiKey:"",onePageUserId:""}}),d=s.control,m=s.formState.errors,b=s.setError,p=s.setValue,f=s.handleSubmit;Object(l.useEffect)((function(){return function(){p("apiKey",""),p("onePageUserId","")}}),[o]);var j=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,o,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.apiKey.length||b&&b("apiKey",{type:"focus",message:"Required"}),(null===t||void 0===t?void 0:t.onePageUserId.length)||b&&b("onePageUserId",{type:"focus",message:"Required"}),r=null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.OnePageCrm),o=r?W.s:W.O,c={apiKey:t.apiKey,crmPlatform:ce.b.OnePageCrm},r?c.userId=t.onePageUserId:c.onePageUserId=t.onePageUserId,e.next=8,n(o,c);case 8:i();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"OnePageCRM",subTitle:"Please provide User ID and API Key from OnePageCRM Account.",buttonText:"Submit",vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:Ct.a,alt:"OnePageCRM"})}),isModalOpen:o,formId:"create-onepagecrm-form",onCancel:i,loading:r,disableSubmitButton:!De()(m),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-onepagecrm-form",onSubmit:f(j),children:[Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"onePageUserId",id:"onePageUserId",control:d,placeholder:"OnePageCRM User ID",label:"OnePageCRM User ID",errors:m})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:d,placeholder:"OnePageCRM API Key",label:"OnePageCRM API Key",errors:m})})]})})},Tt=n(1744),Rt=Ve.e().shape({email:et.f.email}),St=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.toggleOntraportModal,o=e.visibleOntraportModal,s=Object(Be.g)({resolver:Object(qe.a)(Rt),mode:"onChange",defaultValues:{appId:"",apiKey:"",email:""}}),d=s.control,m=s.formState.errors,u=s.setError,b=s.setValue,p=s.handleSubmit;Object(l.useEffect)((function(){return function(){b("appId",""),b("email","")}}),[o]);var f=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,o,c,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(null===(r=t.appId)||void 0===r?void 0:r.length)||u&&u("appId",{type:"focus",message:"Required"}),(null===(o=t.email)||void 0===o?void 0:o.length)||u&&u("email",{type:"focus",message:"Required"}),c=null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.Ontraport),s=c?W.s:W.P,l={appId:null===t||void 0===t?void 0:t.appId,apiKey:null===t||void 0===t?void 0:t.apiKey,email:null===t||void 0===t?void 0:t.email,crmPlatform:ce.b.Ontraport},e.next=7,n(s,l);case 7:return e.next=9,i();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();
1return Object(K.jsx)(Fe.g,{title:"Ontraport",subTitle:"Enhance communication to strengthen customer relations.",buttonText:"Submit",isModalOpen:o,formId:"create-ontraport-form",onCancel:i,loading:r,disableSubmitButton:!De()(m),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:Tt.a,alt:"CrispChat"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-ontraport-form",onSubmit:p(f),children:[Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"appId",id:"appId",control:d,placeholder:"Enter Application ID",label:"Enter the Application ID",errors:m})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"email",id:"email",control:d,placeholder:"Ontraport Email",label:"Ontraport Email",errors:m})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:d,placeholder:"Api Key",label:"Ontraport Account Api Key",errors:m})})]})})},It=n(1745),Nt=Ve.e().shape({email:et.f.email.required("Required"),username:Ve.g().required("Required"),password:Ve.g().required("Required"),organizationId:Ve.g().required("Required")}),Lt=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.toggleFirmaoModal,o=e.visibleFirmaoModal,s=Object(Be.g)({resolver:Object(qe.a)(Nt),mode:"onChange",defaultValues:{organizationId:"",username:"",password:"",email:""}}),d=s.control,m=s.formState.errors,u=s.setError,b=s.reset,p=s.handleSubmit;Object(l.useEffect)((function(){return function(){b()}}),[o]);var f=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,o,c,s,l,d,m;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return!(null===(r=t.organizationId)||void 0===r?void 0:r.length)&&u&&u("organizationId",{type:"focus",message:"Required"}),!(null===(o=t.username)||void 0===o?void 0:o.length)&&u&&u("username",{type:"focus",message:"Required"}),!(null===(c=t.password)||void 0===c?void 0:c.length)&&u&&u("password",{type:"focus",message:"Required"}),!(null===(s=t.email)||void 0===s?void 0:s.length)&&u&&u("email",{type:"focus",message:"Required"}),l=null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.Firmao),d=l?W.s:W.u,m={organizationId:null===t||void 0===t?void 0:t.organizationId,username:null===t||void 0===t?void 0:t.username,password:null===t||void 0===t?void 0:t.password,email:null===t||void 0===t?void 0:t.email,crmPlatform:ce.b.Firmao},e.next=9,n(d,m);case 9:i();case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"Firmao",subTitle:"Enhance communication to strengthen customer relations.",buttonText:"Submit",isModalOpen:o,formId:"create-firmao-form",onCancel:i,loading:r,disableSubmitButton:!De()(m),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:It.a,alt:"CrispChat"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-firmao-form",onSubmit:p(f),children:[Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"organizationId",id:"organizationId",control:d,placeholder:"Enter Organisation ID",label:"Enter the Organisation ID",errors:m,required:!0})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"username",id:"username",control:d,placeholder:"Firmao Username",label:"Firmao Username",errors:m,required:!0})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"password",id:"password",control:d,placeholder:"Firmao Password",label:"Firmao Password",errors:m,required:!0})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"email",id:"email",control:d,placeholder:"Firmao Email",label:"Firmao Email",errors:m,required:!0})})]})})},wt=n(1746),Mt=Ve.e().shape({email:et.f.email}),kt=function(e){var t=e.toggleGorgiasModal,n=e.visibleGorgiasModal,r=Object(Be.g)({resolver:Object(qe.a)(Mt),mode:"onChange",defaultValues:{domain:""}}),i=r.control,o=r.formState.errors,s=r.setError,d=r.setValue,m=r.handleSubmit;Object(l.useEffect)((function(){return function(){d("domain","")}}),[n]);var u=function(){var e=Object(c.a)(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!(null===(n=t.domain)||void 0===n?void 0:n.length)&&s&&s("domain",{type:"focus",message:"Required"}),(null===(r=t.domain)||void 0===r?void 0:r.length)&&localStorage.setItem("gorgiasdomain",JSON.stringify(t.domain)),function(){var e=Object(c.a)(a.a.mark((function e(){var n,r,i,o,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.Gorgias),r=n?"".concat(Y.s,"/gorgias/connect?value=").concat(t.domain):"".concat(Y.g,"/api/v1/gorgias/connect?value=").concat(t.domain),e.prev=2,e.next=5,fetch(r,{method:"GET",headers:{"Content-Type":"application/json"}});case 5:return i=e.sent,e.next=8,i.json();case 8:null===(null===(o=e.sent)||void 0===o?void 0:o.error)&&window.location.assign(null===o||void 0===o||null===(c=o.data)||void 0===c?void 0:c.authUrl),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),Object(N.w)({content:null!==e.t0&&void 0!==e.t0?e.t0:"Something went wrong",type:"danger"});case 15:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}()();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"Gorgias",subTitle:"Enhance communication to strengthen customer relations.",buttonText:"Submit",isModalOpen:n,formId:"create-gorgias-form",onCancel:t,disableSubmitButton:!De()(o),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:wt.a,alt:"Gorgias"})}),children:Object(K.jsx)("form",{className:"team-form items-center mt-2",id:"create-gorgias-form",onSubmit:m(u),children:Object(K.jsx)(oe.c,{className:"mt-5",children:Object(K.jsx)(Ge.b,{addonBefore:"https://",addonAfter:".gorgias.com",name:"domain",id:"GorgiasDomain",control:i,placeholder:"Gorgias Domain",label:"Gorgias Domain",errors:o})})})})},Kt=n(1747),Bt=Ve.e().shape({email:et.f.email}),qt=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.toggleSalesflareModal,o=e.visibleSalesflareModal,s=Object(Be.g)({resolver:Object(qe.a)(Bt),mode:"onChange",defaultValues:{apiKey:""}}),d=s.control,m=s.formState.errors,u=s.setError,b=s.setValue,p=s.handleSubmit;Object(l.useEffect)((function(){return function(){b("apiKey","")}}),[o]);var f=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return!(null===(r=t.apiKey)||void 0===r?void 0:r.length)&&u&&u("apiKey",{type:"focus",message:"Required"}),o=null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.Salesflare),c=o?W.s:W.V,s={apiKey:null===t||void 0===t?void 0:t.apiKey,crmPlatform:ce.b.Salesflare},e.next=6,n(c,s);case 6:i();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"Salesflare",subTitle:"Enhance communication to strengthen customer relations.",buttonText:"Submit",isModalOpen:o,formId:"create-salesflare-form",onCancel:i,loading:r,disableSubmitButton:!De()(m),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:Kt.a,alt:"CrispChat"})}),children:Object(K.jsx)("form",{className:"team-form items-center mt-2",id:"create-salesflare-form",onSubmit:p(f),children:Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:d,placeholder:"Api Key",label:"Salesflare Account Api Key",errors:m})})})})},Ut=n(1748),Dt=Ve.e().shape({email:et.f.email}),Vt=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.toggleApptivoModal,o=e.visibleApptivoModal,s=Object(Be.g)({resolver:Object(qe.a)(Dt),mode:"onChange",defaultValues:{apiKey:"",accessKey:"",crmPlatform:"",email:""}}),d=s.control,m=s.formState.errors,u=s.setError,b=s.setValue,p=s.handleSubmit;Object(l.useEffect)((function(){return function(){b("apiKey",""),b("accessKey",""),b("email","")}}),[o]);var f=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,o,c,s,l,d;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return!(null===(r=t.apiKey)||void 0===r?void 0:r.length)&&u&&u("apiKey",{type:"focus",message:"Required"}),(null===(o=t.email)||void 0===o?void 0:o.length)||u&&u("email",{type:"focus",message:"Required"}),(null===(c=t.accessKey)||void 0===c?void 0:c.length)||u&&u("accessKey",{type:"focus",message:"Required"}),s=null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.Apptivo),l=s?W.s:W.k,d={accessKey:null===t||void 0===t?void 0:t.accessKey,apiKey:null===t||void 0===t?void 0:t.apiKey,email:null===t||void 0===t?void 0:t.email,crmPlatform:ce.b.Apptivo},e.next=8,n(l,d);case 8:return e.next=10,i();case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();
1return Object(K.jsx)(Fe.g,{title:"Apptivo",subTitle:"Seamless VoIP integration, call logging automation.",buttonText:"Submit",isModalOpen:o,formId:"create-apptivo-form",onCancel:i,loading:r,disableSubmitButton:!De()(m),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:Ut.a,alt:"CrispChat"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-apptivo-form",onSubmit:p(f),children:[Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"accessKey",id:"accessKey",control:d,placeholder:"Access Key",label:"Apptivo Access Key",errors:m})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"email",id:"email",control:d,placeholder:"Email",label:"Apptivo Email",errors:m})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:d,placeholder:"API Key",label:"Apptivo Account API Key",errors:m})})]})})},Gt=n(1750),Ft=Ve.e().shape({email:et.f.email}),zt=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.toggleOutplayModal,o=e.visibleOutplayModal,s=Object(Be.g)({resolver:Object(qe.a)(Ft),mode:"onChange",defaultValues:{clientId:"",clientSecret:"",crmPlatform:"",location:""}}),d=s.control,m=s.formState.errors,u=s.setError,b=s.setValue,p=s.handleSubmit;Object(l.useEffect)((function(){return function(){b("clientId",""),b("clientSecret",""),b("location","")}}),[o]);var f=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,o,c,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return!(null===(r=t.clientId)||void 0===r?void 0:r.length)&&u&&u("clientId",{type:"focus",message:"Required"}),!(null===(o=t.clientId)||void 0===o?void 0:o.length)&&u&&u("clientId",{type:"focus",message:"Required"}),c=null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.Outplay),s=c?W.s:W.Q,l={clientId:null===t||void 0===t?void 0:t.clientId,clientSecret:null===t||void 0===t?void 0:t.clientSecret,location:null===t||void 0===t?void 0:t.location,crmPlatform:ce.b.Outplay},e.next=7,n(s,l);case 7:i();case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"Outplay",subTitle:"Combine call data & marketing metrics for better reports.",buttonText:"Submit",isModalOpen:o,formId:"create-outplay-form",onCancel:i,loading:r,disableSubmitButton:!De()(m),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:Gt.a,alt:"Outplay"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-outplay-form",onSubmit:p(f),children:[Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"clientId",id:"clientId",control:d,placeholder:"Client Id",label:"Outplay Client Id",errors:m})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"clientSecret",id:"clientSecret",control:d,placeholder:"Client Secret Key",label:"Outplay Client Secret Key",errors:m})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"location",id:"location",control:d,placeholder:"Location",label:"Location",errors:m})})]})})},Ht=be.d.div(At||(At=Object(ue.a)(["\n width: 280px;\n"]))),Zt=function(e){var t=e.handleSearch;return Object(K.jsx)(Ht,{children:Object(K.jsx)(N.r,{size:"large",placeholder:"Search Integration",prefix:Object(K.jsx)(q.Q,{}),onChange:t,className:"contact-logs-search mb-6"})})},Wt=n(1749),Yt=Ve.e().shape({email:et.f.email}),Jt=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.toggleInsightlyModal,o=e.visibleInsightlyModal,s=Object(Be.g)({resolver:Object(qe.a)(Yt),mode:"onChange",defaultValues:{apiKey:""}}),d=s.control,m=s.formState.errors,u=s.setError,b=s.setValue,p=s.handleSubmit;Object(l.useEffect)((function(){return function(){b("apiKey","")}}),[o]);var f=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,o,c,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return!(null===(r=t.apiKey)||void 0===r?void 0:r.length)&&u&&u("apiKey",{type:"focus",message:"Required"}),(null===(o=t.email)||void 0===o?void 0:o.length)||u&&u("email",{type:"focus",message:"Required"}),c=null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.Insightly),s=c?W.s:W.C,l={apiKey:null===t||void 0===t?void 0:t.apiKey,email:null===t||void 0===t?void 0:t.email,crmPlatform:ce.b.Insightly},e.next=7,n(s,l);case 7:i();case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"Insightly",subTitle:"Enhance communication to strengthen customer relations.",buttonText:"Submit",isModalOpen:o,formId:"create-insightly-form",onCancel:i,loading:r,disableSubmitButton:!De()(m),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:Wt.a,alt:"CrispChat"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-insightly-form",onSubmit:p(f),children:[Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:d,placeholder:"Api Key",label:"Insightly Account API Key",errors:m})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"email",id:"email",control:d,placeholder:"Email",label:"Email",errors:m})})]})})},Xt=n(1752),Qt=Ve.e().shape({email:et.f.email}),$t=function(e){var t=e.toggleGoHighLevelModal,n=e.visibleGoHighLevelModal,r=Object(Be.g)({resolver:Object(qe.a)(Qt),mode:"onChange",defaultValues:{email:""}}),i=r.control,o=r.formState.errors,s=r.setError,d=r.setValue,m=r.handleSubmit;Object(l.useEffect)((function(){return function(){d("email","")}}),[n]);var u=function(){var e=Object(c.a)(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!(null===(n=t.email)||void 0===n?void 0:n.length)&&s&&s("email",{type:"focus",message:"Required"}),(null===(r=t.email)||void 0===r?void 0:r.length)&&localStorage.setItem("gohighlevelEmail",JSON.stringify(t.email)),function(){var e=Object(c.a)(a.a.mark((function e(){var t,n,r,i,o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.GoHighLevel))?"".concat(Y.s,"/gohigh/connect"):"".concat(Y.g,"/api/v1/gohighlevel/connect"),e.prev=1,e.next=4,fetch(t,{method:"GET",headers:{"Content-Type":"application/json","ngrok-skip-browser-warning":"69420"}});case 4:return n=e.sent,e.next=7,n.json();case 7:null===(null===(r=e.sent)||void 0===r?void 0:r.error)&&(i=(null===r||void 0===r?void 0:r.data)||{},o=i.url,c=i.authUrl,(s=o||c)&&window.location.assign(s)),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),console.log("Error",e.t0);case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(){return e.apply(this,arguments)}}()();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"HighLevel",subTitle:"Elevate your marketing and sales.",buttonText:"Submit",isModalOpen:n,formId:"create-gohighlevel-form",onCancel:t,disableSubmitButton:!De()(o),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:Xt.a,alt:"Highlevel"})}),children:Object(K.jsx)("form",{className:"team-form items-center mt-2",id:"create-gohighlevel-form",onSubmit:m(u),children:Object(K.jsx)(Ge.b,{name:"email",id:"email",control:i,placeholder:"Email",label:"HighLevel Account Email",errors:o})})})},en=n(1751),tn=Ve.e().shape({email:et.f.email}),nn=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.toggleEngagebayModal,o=e.visibleEngagebayModal,s=Object(Be.g)({resolver:Object(qe.a)(tn),mode:"onChange",defaultValues:{apiKey:"",crmPlatform:"",email:""}}),d=s.control,m=s.formState.errors,u=s.setError,b=s.setValue,p=s.handleSubmit;Object(l.useEffect)((function(){return function(){b("apiKey",""),b("email","")}}),[o]);var f=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,o,c,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return!(null===(r=t.apiKey)||void 0===r?void 0:r.length)&&u&&u("apiKey",{type:"focus",message:"Required"}),(null===(o=t.email)||void 0===o?void 0:o.length)||u&&u("email",{type:"focus",message:"Required"}),c=null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.Engagebay),s=c?W.s:W.t,l={apiKey:null===t||void 0===t?void 0:t.apiKey,email:null===t||void 0===t?void 0:t.email,crmPlatform:ce.b.Engagebay},e.next=7,n(s,l);case 7:return e.next=9,i();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"Engagebay",subTitle:"Seamless VoIP integration, call logging automation.",buttonText:"Submit",isModalOpen:o,formId:"create-enagagebay-form",onCancel:i,loading:r,disableSubmitButton:!De()(m),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:en.a,alt:"CrispChat"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-enagagebay-form",onSubmit:p(f),children:[Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"email",id:"email",control:d,placeholder:"Email",label:"Engagebay Email",errors:m})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:d,placeholder:"API Key",label:"Engagebay New Account API Key",errors:m})})]})})},rn=n(1753),an=Ve.e().shape({email:et.f.email}),on=function(e){var t=e.toggleSellsyModal,n=e.visibleSellsyModal,r=Object(Be.g)({resolver:Object(qe.a)(an),mode:"onChange",defaultValues:{email:""}}),i=r.control,o=r.formState.errors,s=r.setError,d=r.setValue,m=r.handleSubmit;Object(l.useEffect)((function(){return function(){d("email","")}}),[n]);var u=function(){var e=Object(c.a)(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!(null===(n=t.email)||void 0===n?void 0:n.length)&&s&&s("email",{type:"focus",message:"Required"}),(null===(r=t.email)||void 0===r?void 0:r.length)&&localStorage.setItem("sellsyEmail",JSON.stringify(t.email)),function(){var e=Object(c.a)(a.a.mark((function e(){var t,n,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Y.s?"".concat(Y.s,"/sellsy/connect"):"".concat(Y.g,"/api/v1/sellsy/connect"),e.prev=1,e.next=4,fetch(t,{method:"GET",headers:{"Content-Type":"application/json","ngrok-skip-browser-warning":"69420"}});case 4:return n=e.sent,e.next=7,n.json();case 7:null===(null===(r=e.sent)||void 0===r?void 0:r.error)&&window.location.assign(null===r||void 0===r||null===(i=r.data)||void 0===i?void 0:i.authUrl),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),console.log("Error");case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(){return e.apply(this,arguments)}}()();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"Sellsy",subTitle:"Elevate your marketing and sales.",buttonText:"Submit",isModalOpen:n,formId:"create-sellsy-form",onCancel:t,disableSubmitButton:!De()(o),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:rn.a,alt:"sellsy"})}),children:Object(K.jsx)("form",{className:"team-form items-center mt-2",id:"create-sellsy-form",onSubmit:m(u),children:Object(K.jsx)(Ge.b,{name:"email",id:"email",control:i,placeholder:"Email",label:"Sellsy Account Email",errors:o})})})},cn=n(1754),sn=Ve.e().shape({email:Ve.g().trim().required("Required"),username:Ve.g().trim().required("Required"),password:Ve.g().trim().required("Required"),spaceId:Ve.g().trim().required("Required"),serviceUrl:Ve.g().trim().required("Required")}),ln=function(e){Object(u.a)().t;var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.togglePipeLinerUrlModal,o=e.visiblePipeLinerUrlModal,s=Object(Be.g)({resolver:Object(qe.a)(sn),mode:"onChange",defaultValues:{username:"",password:"",spaceId:"",serviceUrl:"",email:""}}),d=s.control,m=s.formState.errors,b=s.setError,p=s.setValue,f=s.handleSubmit;Object(l.useEffect)((function(){return function(){p("username",""),p("email",""),p("password",""),p("spaceId",""),p("serviceUrl","")}}),[o]);var j=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,o,c,s,l,d;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(null===(r=t.email)||void 0===r?void 0:r.length)||b&&b("email",{type:"focus",message:"Required"}),(null===(o=t.username)||void 0===o?void 0:o.length)||b&&b("username",{type:"focus",message:"Required"}),(null===t||void 0===t||null===(c=t.password)||void 0===c?void 0:c.length)||b&&b("password",{type:"focus",message:"Required"}),(null===t||void 0===t||null===(s=t.spaceId)||void 0===s?void 0:s.length)||b&&b("spaceId",{type:"focus",message:"Required"}),(null===t||void 0===t||null===(l=t.serviceUrl)||void 0===l?void 0:l.length)||b&&b("serviceUrl",{type:"focus",message:"Required"}),d={username:null===t||void 0===t?void 0:t.username,password:null===t||void 0===t?void 0:t.password,spaceId:null===t||void 0===t?void 0:t.spaceId,serviceUrl:null===t||void 0===t?void 0:t.serviceUrl,crmPlatform:ce.b.PipeLiner,email:null===t||void 0===t?void 0:t.email},e.next=8,n(W.s,d);case 8:i();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"Pipeliner",subTitle:"Please provide Detail from Pipeliner Account.",buttonText:"Submit",vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:cn.a,alt:"OnePageCRM"})}),isModalOpen:o,formId:"create-pipeliner-form",onCancel:i,loading:r,disableSubmitButton:!De()(m),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-pipeliner-form",onSubmit:f(j),children:[Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"email",id:"email",control:d,placeholder:"Email",label:"Pipeliner Email",errors:m})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"username",id:"username",control:d,placeholder:"Username",label:"API Username",errors:m})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"password",id:"password",control:d,placeholder:"Password",label:"API Password",errors:m})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"spaceId",id:"spaceId",control:d,placeholder:"Space ID",label:"Pipeliner Space Id",errors:m})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"serviceUrl",id:"serviceUrl",control:d,placeholder:"Service Url",label:"Pipeliner Service Url",errors:m})})]})})},dn=Ve.e().shape({zendeskSubdomain:Ve.g().trim().required("Required")}),mn=function(e){Object(u.a)().t;var t=e.toggleZendeskUrlModal,n=e.visibleZendeskUrlModal,r=e.title,i=(e.description1,e.description2),o=e.titleImage,s=Object(Be.g)({resolver:Object(qe.a)(dn),mode:"onChange",defaultValues:{zendeskSubdomain:""}}),d=s.control,m=s.formState.errors,b=(s.setError,s.setValue),p=s.handleSubmit,f=Object(l.useContext)(G.a).accessToken,j=Object(Q.a)().connectZendesk;"JWT ".concat(f);Object(l.useEffect)((function(){return function(){b("zendeskSubdomain","")}}),[n]);var g=function(){var e=Object(c.a)(a.a.mark((function e(n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j(null===n||void 0===n?void 0:n.zendeskSubdomain);case 2:return e.next=4,t();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=i;return Object(K.jsx)(Fe.g,{buttonText:"Submit",isModalOpen:n,formId:"create-dynamics-form",onCancel:t,disableSubmitButton:!De()(m),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-dynamics-form",onSubmit:p(g),children:[Object(K.jsxs)("div",{className:"w-100 m-auto",children:[Object(K.jsx)("div",{className:"flex justify-center",children:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:
140,width:40,src:o,alt:"Zendesk"})})}),Object(K.jsxs)("div",{className:"mb-10 mt-7.5 text-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7 mb-2",children:r}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:h})]})]}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"zendeskSubdomain",id:"zendeskSubdomain",control:d,placeholder:"Zendesk Account Url",label:"Zendesk Account Url",errors:m})})]})})},un=Ve.e().shape({xSystem:Ve.g().required("Required"),token:Ve.g().required("Required"),xSystemKey:Ve.g().required("Required")}),bn=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.toggleFollowUpBossModal,o=e.visibleFollowUpBossModal,s=e.title,d=e.description1,m=e.titleImage,u=Object(Be.g)({resolver:Object(qe.a)(un),mode:"onChange",defaultValues:{xSystem:"",token:"",xSystemKey:""}}),b=u.control,p=u.formState.errors,f=u.setError,j=u.setValue,g=u.handleSubmit;Object(l.useEffect)((function(){return function(){j("xSystem",""),j("token",""),j("xSystemKey","")}}),[o]);var h=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,o,c,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(r=t||{}).xSystem,c=r.token,s=r.xSystemKey,!(null===o||void 0===o?void 0:o.length)&&f&&f("xSystem",{type:"focus",message:"Required"}),!(null===c||void 0===c?void 0:c.length)&&f&&f("token",{type:"focus",message:"Required"}),!(null===s||void 0===s?void 0:s.length)&&f&&f("xSystemKey",{type:"focus",message:"Required"}),l={crmPlatform:ce.b.FollowUpBoss,token:c,xSystem:o,xSystemKey:s},e.next=7,n(W.s,l);case 7:return e.next=9,i();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{buttonText:"Submit",isModalOpen:o,formId:"create-followupboss-form",onCancel:i,disableSubmitButton:!De()(p),loading:r,children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-followupboss-form",onSubmit:g(h),children:[Object(K.jsxs)("div",{className:"w-100 m-auto",children:[Object(K.jsx)("div",{className:"flex justify-center",children:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:m,alt:"FollowUpBoss"})})}),Object(K.jsxs)("div",{className:"mb-10 mt-7.5 text-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7 mb-2",children:s}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:d})]})]}),Object(K.jsxs)(K.Fragment,{children:[Object(K.jsx)("div",{className:"mt-5",children:Object(K.jsx)(Ge.b,{name:"token",id:"token",control:b,label:"Enter your Follow Up Boss API Key",errors:p,required:!0})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"xSystem",id:"xSystem",control:b,label:Object(K.jsxs)(K.Fragment,{children:["Log your texts with contacts in Follow Up Boss by entering your system details here."," ",Object(K.jsx)("a",{href:"https://apps.followupboss.com/system_registration/index",target:"_blank",rel:"noreferrer",className:"underline",children:"Register your system"})]}),errors:p,required:!0})}),Object(K.jsx)("div",{className:"mt-5",children:Object(K.jsx)(Ge.b,{name:"xSystemKey",id:"xSystemKey",control:b,label:"Enter your Follow Up Boss Registered System Key",errors:p,required:!0})})]})]})})},pn=n(138),fn=Ve.e().shape({apiKey:Ve.g().trim().required("Required"),userId:Ve.g().trim().required("Required")}),jn=function(e){var t=e.title,n=e.titleImage,r=e.toggleLessAnnoying,i=e.visibleLessAnnoyingModal,o=e.description,s=Object(Q.c)().integrateGenericCrm,d=Object(Be.g)({resolver:Object(qe.a)(fn),mode:"onChange",defaultValues:{userId:"",apiKey:""}}),m=d.control,u=d.formState.errors,b=d.setError,p=d.setValue,f=d.handleSubmit;Object(l.useEffect)((function(){return function(){p("userId",""),p("apiKey","")}}),[i]);var j=function(){var e=Object(c.a)(a.a.mark((function e(t){var n,i,o,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(n=t||{}).userId,o=n.apiKey,i.length||b&&b("userId",{type:"focus",message:"Required"}),o.length||b&&b("apiKey",{type:"focus",message:"Required"}),c={apiKey:o,userId:i,crmPlatform:ce.b.LessAnnoyingCrm},e.next=6,s(W.s,c);case 6:return e.next=8,r();case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{buttonText:"Next",isModalOpen:i,formId:"create-less-annoying-form",onCancel:r,disableSubmitButton:!De()(u),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-less-annoying-form",onSubmit:f(j),children:[Object(K.jsxs)("div",{className:"w-100 m-auto",children:[Object(K.jsx)("div",{className:"flex justify-center",children:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:n,alt:"LessAnnoyingCrm"})})}),Object(K.jsxs)("div",{className:"mb-10 mt-7.5 text-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7 mb-2",children:t}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:o})]})]}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"userId",id:"userId",control:m,label:"Enter your Less Annoying CRM User Code",errors:u,required:!0})}),Object(K.jsx)("div",{className:"mt-5",children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:m,label:"Enter your Less Annoying CRM API Token",errors:u,required:!0})})]})})},gn=n.p+"static/media/kylas-sales-crm.8adf076f.svg",hn=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.toggleKylasModal,o=e.visibleKylasModal,s=Object(Be.g)({mode:"onChange",defaultValues:{apiKey:""}}),d=s.control,m=s.formState.errors,u=s.setError,b=s.setValue,p=s.handleSubmit;Object(l.useEffect)((function(){return function(){b("apiKey","")}}),[o]);var f=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return!(null===(r=t.apiKey)||void 0===r?void 0:r.length)&&u&&u("apiKey",{type:"focus",message:"Required"}),o={apiKey:null===t||void 0===t?void 0:t.apiKey,crmPlatform:ce.b.Kylas},e.next=4,n(W.s,o);case 4:i();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"Kylas",subTitle:"Integrate easily with your go-to business tools.",buttonText:"Connect now",isModalOpen:o,formId:"create-kylas-form",onCancel:i,loading:r,disableSubmitButton:!De()(m),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:gn,alt:"Kylas"})}),children:Object(K.jsx)("form",{className:"team-form items-center mt-2",id:"create-kylas-form",onSubmit:p(f),children:Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:d,placeholder:"Api Key",label:"Enter your API Token",errors:m,required:!0})})})})},On=n(1760),vn=Ve.e().shape({domain:Ve.g().trim().required("Required"),
1clientId:Ve.g().trim().required("Required"),clientSecret:Ve.g().trim().required("Required")}),An=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsHaloPSAModalVisible,o=e.isHaloPSAModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(vn),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).domain,o=r.clientId,c=r.clientSecret,s={domain:i,clientId:o,clientSecret:c,crmPlatform:ce.b.HaloPSA},e.next=4,n(W.s,s);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.HaloPSATitle,subTitle:"Streamline your managed IT services with one platform.",buttonText:"Connect now",isModalOpen:o,formId:"create-halopsa-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:On.a,alt:"HaloPSA"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-halopsa-form",onSubmit:m(p),children:[Object(K.jsx)(Ge.b,{name:"domain",id:"domain",control:l,label:"Enter your HaloPSA URL",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"clientId",id:"clientId",control:l,label:"Enter your HaloPSA Client ID",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"clientSecret",id:"clientSecret",control:l,label:"Enter your HaloPSA Client Secret Key",errors:d,required:!0})]})})},xn=Ve.e().shape({domain:Ve.g().trim().required("Required"),apiKey:Ve.g().trim().required("Required"),secretKey:Ve.g().trim().required("Required")}),En=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e||{},o=i.isLiveSpaceModalVisible,s=i.setIsLiveSpaceModalVisible,l=i.titleImage,d=i.title,m=Object(Be.g)({resolver:Object(qe.a)(xn),mode:"onChange"}),u=m.control,b=m.handleSubmit,p=m.formState.errors,f=m.reset,j=function(){s(!1),f()},g=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).apiKey,o=r.secretKey,c=r.domain,s={apiKey:i,secretKey:o,domain:c,crmPlatform:ce.b.LiveSpace},e.next=4,n(W.s,s);case 4:j();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsxs)(Fe.g,{buttonText:"Connect now",isModalOpen:o,formId:"live-space-form",onCancel:j,disableSubmitButton:!De()(p),loading:r,children:[Object(K.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4.5 mb-10",children:[Object(K.jsx)("div",{className:"flex justify-center items-center w-20 h-20 p-4.5 rounded-20 bg-info-50",children:Object(K.jsx)("img",{className:"w-20 h-20",src:l,alt:"livespace"})}),Object(K.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7",children:d}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:"Optimize sales, manage teams, and forecast results."})]})]}),Object(K.jsxs)("form",{id:"live-space-form",className:"item-center",onSubmit:b(g),children:[Object(K.jsx)(Ge.b,{name:"domain",id:"domain",label:"Enter your Livespace Domain",control:u,errors:p,required:!0}),Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",label:"Enter your Livespace API Key",control:u,errors:p,required:!0}),Object(K.jsx)(Ge.b,{name:"secretKey",id:"secretKey",label:"Enter your Livespace Secret Key",control:u,errors:p,required:!0})]})]})},_n=Ve.e().shape({email:Ve.g().trim().required("Required"),apiKey:Ve.g().trim().required("Required"),slug:Ve.g().trim().required("Required")}),Cn=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e||{},o=i.isLoxoModalVisible,s=i.setIsLoxoModalVisible,l=i.titleImage,d=i.title,m=Object(Be.g)({resolver:Object(qe.a)(_n),mode:"onChange"}),u=m.control,b=m.handleSubmit,p=m.formState.errors,f=m.reset,j=function(){s(!1),f()},g=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).apiKey,o=r.slug,c=r.email,s={apiKey:i,agencySlug:o,email:c,crmPlatform:ce.b.Loxo},e.next=4,n(W.s,s);case 4:j();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsxs)(Fe.g,{buttonText:"Connect now",isModalOpen:o,formId:"loxo-form",onCancel:j,disableSubmitButton:!De()(p),loading:r,children:[Object(K.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4.5 mb-10",children:[Object(K.jsx)("div",{className:"flex justify-center items-center w-20 h-20 p-4.5 rounded-20 bg-info-50",children:Object(K.jsx)("img",{className:"w-20 h-20",src:l,alt:"loxo"})}),Object(K.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7",children:d}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:"Boost efficiency, cut costs, and enhance performance."})]})]}),Object(K.jsxs)("form",{id:"loxo-form",className:"item-center",onSubmit:b(g),children:[Object(K.jsx)(Ge.b,{name:"slug",id:"slug",label:"Enter your Loxo Agency Slug",control:u,errors:p,required:!0}),Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",label:"Enter your Loxo API Key",control:u,errors:p,required:!0}),Object(K.jsx)(Ge.b,{name:"email",id:"email",label:"Enter your Loxo Email",control:u,errors:p,required:!0})]})]})},Pn=Ve.e().shape({userId:Ve.g().trim().required("Required"),password:Ve.g().trim().required("Required"),organizationId:Ve.g().trim().required("Required")}),yn=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e||{},o=i.isKonnektiveModalVisible,s=i.setIsKonnektiveModalVisible,l=i.titleImage,d=i.title,m=Object(Be.g)({resolver:Object(qe.a)(Pn),mode:"onChange"}),u=m.control,b=m.handleSubmit,p=m.formState.errors,f=m.reset,j=function(){s(!1),f()},g=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).password,o=r.organizationId,c=r.userId,s={password:i,organizationId:o,userId:c,crmPlatform:ce.b.Konnektive},e.next=4,n(W.s,s);case 4:j();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsxs)(Fe.g,{buttonText:"Connect now",isModalOpen:o,formId:"konnektive-form",onCancel:j,disableSubmitButton:!De()(p),loading:r,children:[Object(K.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4.5 mb-10",children:[Object(K.jsx)("div",{className:"flex justify-center items-center w-20 h-20 p-4.5 rounded-20 bg-info-50",children:Object(K.jsx)("img",{className:"w-20 h-20",src:l,alt:"Konnektive"})}),Object(K.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7",children:d}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:"Optimize sales, manage teams, and forecast results."})]})]}),Object(K.jsxs)("form",{id:"konnektive-form",className:"item-center",onSubmit:b(g),children:[Object(K.jsx)(Ge.b,{name:"userId",id:"userId",label:"Enter your API Username",control:u,errors:p,required:!0}),Object(K.jsx)(Ge.b,{name:"password",id:"password",label:"Enter your API Password",control:u,errors:p,required:!0}),Object(K.jsx)(Ge.b,{name:"organizationId",id:"organizationId",label:"Enter your Organization Id",control:u,errors:p,required:!0})]})]})},Tn=n.p+"static/media/crispchat.e2591b57.svg",Rn=Ve.e().shape({email:et.f.email.required("Required")}
1),Sn=function(e){var t=e.setIsCrispchatModalVisible,n=e.isCrispchatModalVisible,r=Object(l.useState)(!1),i=Object(s.a)(r,2),o=i[0],d=i[1],m=Object(Be.g)({resolver:Object(qe.a)(Rn),mode:"onChange"}),u=m.control,b=m.formState.errors,p=m.handleSubmit,f=m.reset,j=function(){t(!1),f()},g=function(){var e=Object(c.a)(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:localStorage.setItem("crispChatEmail",JSON.stringify(t.email)),function(){var e=Object(c.a)(a.a.mark((function e(){var t,n,r,i,o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(null===ce.d||void 0===ce.d?void 0:ce.d.includes(ce.b.CrispChat))?"".concat(Y.s,"/crispchat/connect"):"".concat(Y.g,"/api/v1/crispchat/connect"),e.prev=1,d(!0),e.next=5,fetch(t,{method:"GET",headers:{"Content-Type":"application/json"}});case 5:return n=e.sent,e.next=8,n.json();case 8:null===(null===(r=e.sent)||void 0===r?void 0:r.error)&&(i=(null===r||void 0===r?void 0:r.data)||{},o=i.url,c=i.authUrl,(s=o||c)&&window.location.assign(s)),d(!1),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),d(!1);case 16:case"end":return e.stop()}}),e,null,[[1,13]])})));return function(){return e.apply(this,arguments)}}()(),j();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"Crispchat",subTitle:"Enhance communication to strengthen customer relations.",buttonText:"Submit",isModalOpen:n,formId:"create-crispchat-form",onCancel:j,disableSubmitButton:!De()(b),loading:o,vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:Tn,alt:"Crispchat"})}),children:Object(K.jsx)("form",{className:"team-form items-center mt-2",id:"create-crispchat-form",onSubmit:p(g),children:Object(K.jsx)(oe.c,{className:"mt-5",children:Object(K.jsx)(Ge.b,{name:"email",id:"crispchat",control:u,label:"Crispchat Email",errors:b,required:!0})})})})},In=n.p+"static/media/cloze.2b1150b8.svg",Nn=Ve.e().shape({email:Ve.g().trim().required("Required"),apiKey:Ve.g().trim().required("Required")}),Ln=ce.b.ClozeTitle,wn=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e||{},o=i.isClozeFormModalVisible,s=i.setIsClozeFormModalVisible,l=Object(Be.g)({resolver:Object(qe.a)(Nn),mode:"onChange"}),d=l.control,m=l.handleSubmit,u=l.formState.errors,b=l.reset,p=function(){s(!1),b()},f=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).apiKey,o=r.email,c={apiKey:i,email:o,crmPlatform:ce.b.Cloze},e.next=4,n(W.s,c);case 4:p();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsxs)(Fe.g,{buttonText:"Connect now",isModalOpen:o,formId:"cloze-form",onCancel:p,disableSubmitButton:!De()(u),loading:r,children:[Object(K.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4.5 mb-10",children:[Object(K.jsx)("div",{className:"flex justify-center items-center w-20 h-20 p-4.5 rounded-20 bg-info-50",children:Object(K.jsx)("img",{className:"w-20 h-20",src:In,alt:"cloze"})}),Object(K.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7",children:Ln}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:"Close more deals and boost productivity."})]})]}),Object(K.jsxs)("form",{id:"cloze-form",className:"item-center",onSubmit:m(f),children:[Object(K.jsx)(Ge.b,{name:"email",id:"email",label:"Enter your Cloze email address.",control:d,errors:u,required:!0}),Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",label:"Enter your Cloze API Key.",control:d,errors:u,required:!0})]})]})},Mn=n.p+"static/media/recruit.de17dc54.svg",kn=Ve.e().shape({email:Ve.g().trim().required("Required"),token:Ve.g().trim().required("Required")}),Kn=ce.b.RecruitTitle,Bn=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e||{},o=i.isRecruitCrmModalVisible,s=i.setIsRecruitCrmModalVisible,l=Object(Be.g)({resolver:Object(qe.a)(kn),mode:"onChange"}),d=l.control,m=l.handleSubmit,u=l.formState.errors,b=l.reset,p=function(){s(!1),b()},f=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).token,o=r.email,c={token:i,email:o,crmPlatform:ce.b.Recruit},e.next=4,n(W.s,c);case 4:p();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsxs)(Fe.g,{buttonText:"Connect now",isModalOpen:o,formId:"recruit-form",onCancel:p,disableSubmitButton:!De()(u),loading:r,children:[Object(K.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4.5 mb-10",children:[Object(K.jsx)("div",{className:"flex justify-center items-center w-20 h-20 p-4.5 rounded-20 bg-info-50",children:Object(K.jsx)("img",{className:"w-20 h-20",src:Mn,alt:"recruit"})}),Object(K.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7",children:Kn}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:"Elevate your recruitment strategy."})]})]}),Object(K.jsxs)("form",{id:"recruit-form",className:"item-center",onSubmit:m(f),children:[Object(K.jsx)(Ge.b,{name:"email",id:"email",label:"Enter your Recruit CRM email address.",control:d,errors:u,required:!0}
1),Object(K.jsx)(Ge.b,{name:"token",id:"token",label:"Enter your Recruit CRM API Key.",control:d,errors:u,required:!0})]})]})},qn=n.p+"static/media/vtiger.e875fb5c.svg",Un=Ve.e().shape({email:Ve.g().trim().required("Required"),accessKey:Ve.g().trim().required("Required"),domain:Ve.g().trim().required("Required")}),Dn=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e||{},o=i.isVtigerModalVisible,s=i.setIsVtigerModalVisible,l=Object(Be.g)({resolver:Object(qe.a)(Un),mode:"onChange"}),d=l.control,m=l.handleSubmit,u=l.formState.errors,b=l.reset,p=function(){s(!1),b()},f=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).accessKey,o=r.domain,c=r.email,s={accessKey:i,domain:o,email:c,crmPlatform:ce.b.Vtiger},e.next=4,n(W.s,s);case 4:p();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsxs)(Fe.g,{buttonText:"Connect now",isModalOpen:o,formId:"vtiger-form",onCancel:p,disableSubmitButton:!De()(u),loading:r,children:[Object(K.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4.5 mb-10",children:[Object(K.jsx)("div",{className:"flex justify-center items-center w-20 h-20 p-4.5 rounded-20 bg-info-50",children:Object(K.jsx)("img",{className:"w-20 h-20",src:qn,alt:"vtiger"})}),Object(K.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7",children:ce.b.VtigerTitle}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:"Empowers you to align your teams."})]})]}),Object(K.jsxs)("form",{id:"vtiger-form",className:"item-center",onSubmit:m(f),children:[Object(K.jsx)(Ge.b,{name:"domain",id:"domain",label:"Enter your Vtiger Domain",placeholder:"Eg: https://krispcall.od2.vtiger.com",control:d,errors:u,required:!0}),Object(K.jsx)(Ge.b,{name:"email",id:"email",label:"Enter your Vtiger Email",control:d,errors:u,required:!0}),Object(K.jsx)(Ge.b,{name:"accessKey",id:"accessKey",label:"Enter your Vtiger Access Key",control:d,errors:u,required:!0})]})]})},Vn=n(1652),Gn=Ve.e().shape({title:Ve.g().trim().matches(/^(https?|ftp):\/\/(([a-z\d]([a-z\d-]*[a-z\d])?\.)+[a-z]{2,}|localhost)(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z\d_]*)?$/i,"Enter valid URL")}),Fn=function(e){var t=e.isBitrixModalVisible,n=e.title,r=e.description1,i=e.description2,o=e.titleImage,d=e.setIsBitixModalVisible,m=e.connectBitrixUrl,u=e.loading,b=Object(l.useState)(0),p=Object(s.a)(b,2),f=p[0],j=p[1],g=Object(Be.g)({resolver:Object(qe.a)(Gn),mode:"onChange",defaultValues:{title:""}}),h=g.control,O=g.formState.errors,v=g.setError,A=g.handleSubmit,x=g.reset,E=function(){x(),d(!1)},_=function(){var e=Object(c.a)(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f){e.next=3;break}return j(1),e.abrupt("return");case 3:if(null===(n=t.title)||void 0===n?void 0:n.length){e.next=6;break}return v&&v("title",{type:"focus",message:"Required"}),e.abrupt("return");case 6:return e.next=8,m(null===t||void 0===t?void 0:t.title);case 8:E();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),C=f?r:i,P=f?"Submit":"Next";return Object(K.jsx)(Fe.g,{buttonText:P,isModalOpen:t,formId:"create-bitrix-form",onCancel:E,disableSubmitButton:!De()(O),loading:u,children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-bitrix-form",onSubmit:A(_),children:[Object(K.jsxs)("div",{className:"w-100 m-auto",children:[Object(K.jsx)("div",{className:"flex justify-center",children:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:o,alt:"Dynamics"})})}),Object(K.jsxs)("div",{className:"mb-10 mt-7.5 text-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7 mb-2",children:n}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:C})]})]}),Object(K.jsx)("div",{className:"".concat(f&&"hidden"),children:Object(K.jsx)(Ge.b,{name:"title",id:"title",control:h,placeholder:"Bitrix24 URL",label:"Bitrix24 URL",errors:O})})]})})},zn=n.p+"static/media/pcRecruiter.1cda8563.svg",Hn=Ve.e().shape({username:Ve.g().trim().required("Required"),password:Ve.g().trim().required("Required"),spaceId:Ve.g().trim().required("Required")}),Zn=ce.b.PcRecruiterTitle,Wn=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e||{},o=i.isPcRecruiterCrmModalVisible,s=i.setIsPcRecruiterCrmModalVisible,l=Object(Be.g)({resolver:Object(qe.a)(Hn),mode:"onChange"}),d=l.control,m=l.handleSubmit,u=l.formState.errors,b=l.reset,p=function(){s(!1),b()},f=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).username,o=r.password,c=r.spaceId,s={username:i,password:o,spaceId:c,crmPlatform:ce.b.PcRecruiter},e.next=4,n(W.s,s);case 4:p();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsxs)(Fe.g,{buttonText:"Connect now",isModalOpen:o,formId:"pcrecruiter-form",onCancel:p,disableSubmitButton:!De()(u),loading:r,children:[Object(K.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4.5 mb-10",children:[Object(K.jsx)("div",{className:"flex justify-center items-center w-20 h-20 p-4.5 rounded-20 bg-info-50",children:Object(K.jsx)("img",{className:"w-20 h-20",src:zn,alt:"pcrecruiter"})}),Object(K.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7",children:Zn}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:"Streamline your hiring and recruitment process."})]})]}),Object(K.jsxs)("form",{id:"pcrecruiter-form",className:"item-center",onSubmit:m(f),children:[Object(K.jsx)(Ge.b,{name:"username",id:"username",label:"Enter your PCRecruiter Username.",control:d,errors:u,required:!0}),Object(K.jsx)(Ge.b,{name:"password",id:"password",label:"Enter your PCRecruiter Password.",control:d,errors:u,required:!0}),Object(K.jsx)(Ge.b,{name:"spaceId",id:"spaceId",label:"Enter your PCRecruiter Database ID.",control:d,errors:u,placeholder:"database_name.profile_name",required:!0,help:Object(K.jsxs)(K.Fragment,{children:["Found in PCR: SYSTEM ",">>"," API ",">>"," API Settings",Object(K.jsx)("br",{}),"Format: database_name.profile_name"]})})]})]})},Yn=n.p+"static/media/deskpro.d066d356.svg",Jn=Ve.e().shape({apiKey:Ve.g().trim().required("Required"),domain:Ve.g().trim().required("Required").matches(/\.com$/,"Invalid URL")}),Xn=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsDeskproModalVisible,o=e.isDeskproModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(Jn),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.apiKey,i=t.domain,o={apiKey:r,crmPlatform:ce.b.Deskpro,domain:i},e.next=4,n(W.s,o);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"Deskpro",subTitle:"Handles every conversation on any channel.",buttonText:"Connect now",isModalOpen:o,formId:"create-deskpro-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:Yn,alt:"Deskpro"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-deskpro-form",onSubmit:m(p),children:[Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:l,label:"Enter your API Key",errors:d,required:!0})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"domain",id:"domain",control:l,label:"Enter your URL",placeholder:"Eg: https://annaclerk.deskpro.com",errors:d,required:!0})})]})})},Qn=n.p+"static/media/podio.a3bf5f06.svg",$n=at.a.Option,er=Ve.e().shape({workspace:Ve.g().trim().required("Required")}),tr=function(e){var t=e||{},n=t.contactApp,r=t.isContactAppModalVisible,i=t.setIsContactAppModalVisible,o=t.crmId,d=t.organizationId,m=t.workspaceId,u=Object(l.useState)(""),b=Object(s.a)(u,2),p=b[0],f=b[1],j=Object(Be.g)({resolver:Object(qe.a)(er),mode:"onChange"}),g=j.control,h=j.formState.errors,O=j.handleSubmit,v=j.reset,A=function(){i(!1),v()},x=Object(Q.a)({closeContactAppModal:A}),E=x.podioIntegration,_=x.isPodioIntegrationLoading,C=function(){var e=Object(c.a)(a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={crmId:o,contactAppId:p,organizationId:d,workspaceId:m,success:!0},e.next=3,E(t);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"Podio",subTitle:"Drive your project forward, successfully.",buttonText:"Integrate now",isModalOpen:r,formId:"create-contact-app-form",onCancel:A,maskClosable:!1,loading:_,disableSubmitButton:!De()(h),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{height:40,width:40,src:Qn,alt:"Podio"})}),children:Object(K.jsx)("form",{className:"team-form items-center mt-2",id:"create-contact-app-form",onSubmit:O(C),children:Object(K.jsx)("div",{children:Object(K.jsx)(Ge.g,{size:"small",name:"workspace",placeholder:"Select the Contact App Id",onChange:function(e){f(e)},control:g,label:"Select the Contact App Id",className:"subscription-status-select",children:null===n||void 0===n?void 0:n.map((function(e){var t=e||{},n=t.name,r=t.id;return Object(K.jsx)($n,{value:r,children:n},n)}))})})})})},nr=at.a.Option,rr=Ve.e().shape({contactApp:Ve.g().trim().required("Required")}),ir=function(e){var t=Object(Be.g)({resolver:Object(qe.a)(rr),mode:"onChange"}),n=t.control,r=t.formState.errors,i=t.handleSubmit,o=t.reset,d=e||{},m=d.isWorkspaceModalVisible,u=d.setIsWorkspaceModalVisible,b=d.crmId,p=d.podioWorkspaces,f=d.organizationId,j=function(){u(!1),o()},g=Object(l.useState)(""),h=Object(s.a)(g,2),O=h[0],v=h[1],A=Object(l.useState)([]),x=Object(s.a)(A,2),E=x[0],_=x[1],C=Object(l.useState)(!1),P=Object(s.a)(C,2),y=P[0],T=P[1],R=Object(Q.a)({setContactApp:_,closeWorkspaceModal:j,openContactAppModal:function(){return T(!0)}}),S=R.getPodioContactApp,I=R.isPodioContactAppLoading,N=function(){var e=Object(c.a)(a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={crmId:b,workspaceId:O,organizationId:f},e.next=3,S(t);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(K.jsxs)(K.Fragment,{children:[Object(K.jsx)(Fe.g,{title:"Podio",subTitle:"Drive your project forward, successfully.",buttonText:"Next",isModalOpen:m,formId:"create-workspace-form",onCancel:j,maskClosable:!1,loading:I,disableSubmitButton:!De()(r),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{height:40,width:40,src:Qn,alt:"Podio"})}),children:Object(K.jsx)("form",{className:"team-form items-center mt-2",id:"create-workspace-form",onSubmit:i(N),children:Object(K.jsx)(Ge.g,{size:"small",name:"contactApp",placeholder:"Select the Workspace",onChange:function(e){v(e)},control:n,label:"Select the Workspace",className:"subscription-status-select",children:null===p||void 0===p?void 0:p.map((function(e){var t=e||{},n=t.name,r=t.id;return Object(K.jsx)(nr,{value:r,children:n},n)}))})})}
1),Object(K.jsx)(tr,{contactApp:E,isContactAppModalVisible:y,setIsContactAppModalVisible:T,crmId:b,workspaceId:O,organizationId:f})]})},ar=at.a.Option,or=Ve.e().shape({organization:Ve.g().trim().required("Required")}),cr=function(e){var t=e.setIsPodioModalVisible,n=e.isPodioModalVisible,r=e.podioOrganizations,i=e.isPodioOrganizationLoading,o=e.crmId,d=Object(l.useState)(""),m=Object(s.a)(d,2),u=m[0],b=m[1],p=Object(l.useState)(!1),f=Object(s.a)(p,2),j=f[0],g=f[1],h=Object(l.useState)([]),O=Object(s.a)(h,2),v=O[0],A=O[1],x=Object(Be.g)({resolver:Object(qe.a)(or),mode:"onChange"}),E=x.control,_=x.formState.errors,C=x.handleSubmit,P=x.reset,y=function(){t(!1),P()},T=Object(Q.a)({openWorkspaceModal:function(){return g(!0)},setPodioWorkspaces:A,closePodioFormModal:y}).getPodioWorkspaces,R=function(){var e=Object(c.a)(a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={crmId:o,organizationId:u},e.next=3,T(t);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(K.jsxs)(K.Fragment,{children:[Object(K.jsx)(Fe.g,{title:"Podio",subTitle:"Drive your project forward, successfully.",buttonText:"Next",isModalOpen:n,formId:"create-organization-form",onCancel:y,maskClosable:!1,loading:i,disableSubmitButton:!De()(_),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{height:40,width:40,src:Qn,alt:"Podio"})}),children:Object(K.jsx)("form",{className:"team-form items-center mt-2",id:"create-organization-form",onSubmit:C(R),children:Object(K.jsx)(Ge.g,{size:"small",name:"organization",placeholder:"Select an Organization",onChange:function(e){b(e)},control:E,label:"Select an Organization",className:"subscription-status-select",children:null===r||void 0===r?void 0:r.map((function(e){var t=e||{},n=t.name,r=t.id;return Object(K.jsx)(ar,{value:r,children:n},n)}))})})}),Object(K.jsx)(ir,{isWorkspaceModalVisible:j,setIsWorkspaceModalVisible:g,crmId:o,organizationId:u,podioWorkspaces:v})]})},sr=n.p+"static/media/odoo.acb4c632.svg",lr=Ve.e().shape({apiKey:Ve.g().trim().required("Required"),domain:Ve.g().trim().required("Required"),email:Ve.g().trim().required("Required")}),dr=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsOdoModalVisible,o=e.isOdooModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(lr),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.apiKey,i=t.domain,o=t.email,c={apiKey:r,crmPlatform:ce.b.Odoo,domain:i,email:o},e.next=4,n(W.s,c);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"Odoo",subTitle:"Simplifies process and empowers more people.",buttonText:"Connect now",isModalOpen:o,formId:"create-odoo-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:sr,alt:"Odoo"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-odoo-form",onSubmit:m(p),children:[Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:l,label:"Enter your API Key",errors:d,required:!0})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"domain",id:"domain",control:l,label:"Enter your Database Name",errors:d,required:!0})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"email",id:"email",control:l,label:"Enter your Email",errors:d,required:!0})})]})})},mr=n.p+"static/media/bolddesk.ee905c31.svg",ur=Ve.e().shape({email:Ve.g().trim().required("Required"),apiKey:Ve.g().trim().required("Required"),domain:Ve.g().trim().required("Required")}),br=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e||{},o=i.isBoldDeskModalVisible,s=i.setIsBoldDeskModalVisible,l=Object(Be.g)({resolver:Object(qe.a)(ur),mode:"onChange"}),d=l.control,m=l.handleSubmit,u=l.formState.errors,b=l.reset,p=function(){s(!1),b()},f=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).apiKey,o=r.domain,c=r.email,s={apiKey:i,domain:o,email:c,crmPlatform:ce.b.BoldDesk},e.next=4,n(W.s,s);case 4:p();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsxs)(Fe.g,{buttonText:"Connect now",isModalOpen:o,formId:"bold-desk-form",onCancel:p,disableSubmitButton:!De()(u),loading:r,children:[Object(K.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4.5 mb-10",children:[Object(K.jsx)("div",{className:"flex justify-center items-center w-20 h-20 p-4.5 rounded-20 bg-info-50",children:Object(K.jsx)("img",{className:"w-20 h-20",src:mr,alt:"bolddesk"})}),Object(K.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7",children:ce.b.BoldDeskTitle}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:"Supercharge your customer support."})]})]}),Object(K.jsxs)("form",{id:"bold-desk-form",className:"item-center",onSubmit:m(f),children:[Object(K.jsx)(Ge.b,{name:"domain",id:"domain",label:"Enter your BoldDesk URL",control:d,errors:u,required:!0}),Object(K.jsx)(Ge.b,{name:"email",id:"email",label:"Enter your BoldDesk Email",control:d,errors:u,required:!0}),Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",label:"Enter your BoldDesk API Key",control:d,errors:u,required:!0})]})]})},pr=n.p+"static/media/freshservice.5646d282.svg",fr=Ve.e().shape({email:Ve.g().trim().required("Required"),apiKey:Ve.g().trim().required("Required"),linkName:Ve.g().trim().required("Required")}),jr=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e||{},o=i.isFreshServiceModalVisible,s=i.setIsFreshServiceModalVisible,l=Object(Be.g)({resolver:Object(qe.a)(fr),mode:"onChange"}),d=l.control,m=l.handleSubmit,u=l.formState.errors,b=l.reset,p=function(){s(!1),b()},f=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).apiKey,o=r.linkName,c=r.email,s={apiKey:i,linkName:o,email:c,crmPlatform:ce.b.FreshService},e.next=4,n(W.s,s);case 4:p();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsxs)(Fe.g,{buttonText:"Connect now",isModalOpen:o,formId:"fresh-service-form",onCancel:p,disableSubmitButton:!De()(u),loading:r,children:[Object(K.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4.5 mb-10",children:[Object(K.jsx)("div",{className:"flex justify-center items-center w-20 h-20 p-4.5 rounded-20 bg-info-50",children:Object(K.jsx)("img",{className:"w-20 h-20",src:pr,alt:"freshservice"})}),Object(K.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7",children:ce.b.FreshServiceTitle}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:"AI-powered employee service management solution."})]})]}),Object(K.jsxs)("form",{id:"fresh-service-form",className:"item-center",onSubmit:m(f),children:[Object(K.jsx)(Ge.b,{name:"email",id:"email",label:"Enter your Freshservice Email",control:d,errors:u,required:!0}),Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",label:"Enter your Freshservice API Key",control:d,errors:u,required:!0}),Object(K.jsx)(Ge.b,{name:"linkName",id:"linkName",label:"Enter your Freshservice Link Name",control:d,errors:u,required:!0})]})]})},gr=n.p+"static/media/folk.6a82e443.svg",hr=Ve.e().shape({apiKey:Ve.g().trim().required("Required")}),Or=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e||{},o=i.isFolkModalVisible,s=i.setIsFolkModalVisible,l=Object(Be.g)({resolver:Object(qe.a)(hr),mode:"onChange"}),d=l.control,m=l.handleSubmit,u=l.formState.errors,b=l.reset,p=function(){s(!1),b()},f=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(t||{}).apiKey,i={apiKey:r,crmPlatform:ce.b.Folk},e.next=4,n(W.s,i);case 4:p();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsxs)(Fe.g,{buttonText:"Connect now",isModalOpen:o,formId:"folk-form",onCancel:p,disableSubmitButton:!De()(u),loading:r,children:[Object(K.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4.5 mb-10",children:[Object(K.jsx)("div",{className:"flex justify-center items-center w-20 h-20 p-4.5 rounded-20 bg-info-50",children:Object(K.jsx)("img",{className:"w-20 h-20",src:gr,alt:"folk"})}),Object(K.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7",children:ce.b.FolkTitle}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:"Like the sales assistant your team never had."})]})]}),Object(K.jsx)("form",{id:"folk-form",className:"item-center",onSubmit:m(f),children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",label:"Enter your API Key",control:d,errors:u,required:!0})})]})},vr=n.p+"static/media/recruiterflow.a43cf32e.svg",Ar=Ve.e().shape({apiKey:Ve.g().trim().required("Required"),email:Ve.g().trim().required("Required")}),xr=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsRecruiterFlowModalVisible,o=e.isRecruiterFlowModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(Ar),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.apiKey,i=t.email,o={apiKey:r,crmPlatform:ce.b.RecruiterFlow,email:i},e.next=4,n(W.s,o);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.RecruiterFlowTitle,subTitle:"Handles every conversation on any channel.",buttonText:"Connect now",isModalOpen:o,formId:"create-recruit-flow-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:vr,alt:"Recruiter flow"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-recruit-flow-form",onSubmit:m(p),children:[Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:l,label:"Enter your API Key",errors:d,required:!0})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"email",id:"email",control:l,label:"Enter your Email",errors:d,required:!0})})]})})},Er=n.p+"static/media/manatal.145b0a67.svg",_r=Ve.e().shape({apiKey:Ve.g().trim().required("Required"),email:Ve.g().trim().required("Required")}
1),Cr=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsManatalModalVisible,o=e.isManatalModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(_r),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.apiKey,i=t.email,o={apiKey:r,email:i,crmPlatform:ce.b.Manatal},e.next=4,n(W.s,o);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"Manatal",subTitle:"AI Recruitment to transform the way you recruit.",buttonText:"Connect now",isModalOpen:o,formId:"create-manatal-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:Er,alt:"Manatal"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-manatal-form",onSubmit:m(p),children:[Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:l,label:"Enter your API Key",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"email",id:"email",label:"Enter your Manatal Email",control:l,errors:d,required:!0})]})})},Pr=n.p+"static/media/teamtailor.369b4cc9.svg",yr=Ve.e().shape({apiKey:Ve.g().trim().required("Required"),email:Ve.g().trim().required("Required")}),Tr=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsTeamtailorModalVisible,o=e.isTeamtailorModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(yr),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.apiKey,i=t.email,o={apiKey:r,email:i,crmPlatform:ce.b.Teamtailor},e.next=4,n(W.s,o);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:"Teamtailor",subTitle:"All-in-one recruitment software.",buttonText:"Connect now",isModalOpen:o,formId:"create-teamtailor-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:Pr,alt:"Teamtailor"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-teamtailor-form",onSubmit:m(p),children:[Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:l,label:"Enter your Teamtailor API",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"email",id:"email",label:"Enter your Teamtailor Email",control:l,errors:d,required:!0})]})})},Rr=n.p+"static/media/creatio.dda56c6f.svg",Sr=Ve.e().shape({baseUrl:Ve.g().trim().required("Required"),clientId:Ve.g().trim().required("Required"),clientSecret:Ve.g().trim().required("Required"),siteId:Ve.g().trim().required("Required"),username:Ve.g().trim().required("Required")}),Ir=function(e){var t=e.isCreatioModalVisible,n=e.setIsCreatioModalVisible,r=Object(Be.g)({resolver:Object(qe.a)(Sr),mode:"onChange"}),i=r.control,o=r.formState.errors,s=r.reset,l=r.handleSubmit,d=ce.b.CreatioTitle,m=Rr,u=function(){var e=Object(c.a)(a.a.mark((function e(t){var n,r,i,o,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t,i=(r=t||{}).baseUrl,o=r.clientId,s=r.clientSecret,l=r.siteId,localStorage.setItem("creatioDetails",JSON.stringify(n)),function(){var e=Object(c.a)(a.a.mark((function e(){var t,n,r,c,d;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(Y.s,"/creatio/connect?baseUrl=").concat(i,"&clientId=").concat(o,"&clientSecret=").concat(s,"&siteId=").concat(l),{method:"GET",headers:{"Content-Type":"application/json"}});case 3:return t=e.sent,e.next=6,t.json();case 6:if(n=e.sent,c=(r=n||{}).error,d=r.data,null!==c){e.next=11;break}return window.location.assign(null===d||void 0===d?void 0:d.authUrl),e.abrupt("return");case 11:Object(N.w)({content:c||"Something went wrong.",type:"danger"}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),Object(N.w)({content:null!==e.t0&&void 0!==e.t0?e.t0:"Something went wrong",type:"danger"});case 17:case"end":return e.stop()}}),e,null,[[0,14]])}
1)));return function(){return e.apply(this,arguments)}}()();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{buttonText:"Submit",isModalOpen:t,formId:"create-creatio-form",onCancel:function(){n(!1),s()},disableSubmitButton:!De()(o),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-creatio-form",onSubmit:l(u),children:[Object(K.jsxs)("div",{className:"w-100 m-auto",children:[Object(K.jsx)("div",{className:"flex justify-center",children:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10",height:40,width:40,src:m,alt:"Creatio"})})}),Object(K.jsxs)("div",{className:"mb-10 mt-7.5 text-center",children:[Object(K.jsx)("h5",{className:"text-xl text-gray-700 font-bold leading-7 mb-2",children:d}),Object(K.jsx)("p",{className:"text-15 text-gray font-normal text-center leading-normal",children:"Agentic CRM & workflow platform with no-code"})]})]}),Object(K.jsx)(Ge.b,{name:"username",id:"username",control:i,label:"Enter your Creatio Username",errors:o,required:!0}),Object(K.jsx)(Ge.b,{name:"clientId",id:"clientId",control:i,label:"Enter your Creatio Client Id",errors:o,required:!0}),Object(K.jsx)(Ge.b,{name:"clientSecret",id:"clientSecret",control:i,label:"Enter your Creatio Client Secret Key",errors:o,required:!0}),Object(K.jsx)(Ge.b,{name:"baseUrl",id:"baseUrl",control:i,label:"Enter your Creatio URL",errors:o,required:!0}),Object(K.jsx)(Ge.b,{name:"siteId",id:"siteId",control:i,label:"Enter your Creatio Site Id",errors:o,required:!0})]})})},Nr=n(1756),Lr=Ve.e().shape({apiKey:Ve.g().trim().required("Required"),email:Ve.g().trim().required("Required")}),wr=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsOnpipelineModalVisible,o=e.isOnpipelineModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(Lr),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.apiKey,i=t.email,o={apiKey:r,crmPlatform:ce.b.OnPipeline,email:i},e.next=4,n(W.s,o);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.OnPipelineTitle,subTitle:"The CRM that drives your sales.",buttonText:"Connect now",isModalOpen:o,formId:"create-onpipeline-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:Nr.a,alt:"Onpipeline"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-onpipeline-form",onSubmit:m(p),children:[Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:l,label:"Enter your API Key",errors:d,required:!0})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"email",id:"email",control:l,label:"Enter your Email",errors:d,required:!0})})]})})},Mr=n(1757),kr=Ve.e().shape({apiKey:Ve.g().trim().required("Required"),email:Ve.g().trim().email("Invalid email").required("Required"),accountUrl:Ve.g().trim().url("Invalid URL").required("Required")}),Kr=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsFlowluModalVisible,o=e.isFlowluModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(kr),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.apiKey,i=t.email,o=t.accountUrl,c={apiKey:r,crmPlatform:ce.b.Flowlu,email:i,accountUrl:o},e.next=4,n(W.s,c);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.FlowluTitle,subTitle:"Unified business platform for work management",buttonText:"Connect now",isModalOpen:o,formId:"create-flowlu-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:Mr.a,alt:"Flowlu"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-flowlu-form",onSubmit:m(p),children:[Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:l,label:"Enter your API Key",errors:d,required:!0})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"email",id:"email",control:l,label:"Enter your Email",errors:d,required:!0})}),Object(K.jsx)("div",{children:Object(K.jsx)(Ge.b,{name:"accountUrl",id:"accountUrl",control:l,label:"Enter your Account URL",errors:d,required:!0})})]})})},Br=n(1758),qr=n(73),Ur=Ve.e().shape({apiKey:Ve.g().trim().required("Required"),email:Ve.g().matches(qr.c,"Email must be a valid email").email("Email must be a valid email").max(qr.b,"Shouldn't exceed ".concat(qr.b," characters"))}),Dr=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsAshbyModalVisible,o=e.isAshbyModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(Ur),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).apiKey,o=r.email,c={apiKey:i,crmPlatform:ce.b.Ashby,email:o},e.next=4,n(W.s,c);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.AshbyTitle,subTitle:"Unified business platform for work management",buttonText:"Connect now",isModalOpen:o,formId:"create-ashby-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:Br.a,alt:"Ashby"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-ashby-form",onSubmit:m(p),children:[Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:l,label:"Enter your API Key",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"email",id:"email",control:l,label:"Enter your Email",errors:d,required:!0})]})})},Vr=n(1759),Gr=Ve.e().shape({apiKey:Ve.g().trim().required("Required"),email:Ve.g().matches(qr.c,"Email must be a valid email").email("Email must be a valid email").max(qr.b,"Shouldn't exceed ".concat(qr.b," characters"))}),Fr=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsAffinityModalVisible,o=e.isAffinityModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(Gr),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).apiKey,o=r.email,c={apiKey:i,crmPlatform:ce.b.Affinity,email:o},e.next=4,n(W.s,c);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.AffinityTitle,subTitle:"Unified business platform for work management",buttonText:"Connect now",isModalOpen:o,formId:"create-affinity-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:Vr.a,alt:"Affinity"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-affinity-form",onSubmit:m(p),children:[Object(K.jsx)(Ge.b,{name:"email",id:"email",control:l,label:"Enter your Affinity Email",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:l,label:"Enter your Affinity API Key",errors:d,required:!0})]})})},zr=n.p+"static/media/halocrm.ec8b4dcf.svg",Hr=Ve.e().shape({domain:Ve.g().trim().required("Required").matches(/^(https?):\/\/([a-zA-Z0-9-]+\.)*halocrm\.io(\/[^\s]*)?$/i,"Enter a valid halocrm.io URL"),clientId:Ve.g().trim().required("Required"),
1clientSecret:Ve.g().trim().required("Required")}),Zr=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsHaloCRMModalVisible,o=e.isHaloCRMModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(Hr),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).domain,o=r.clientId,c=r.clientSecret,s={domain:i,clientId:o,clientSecret:c,crmPlatform:ce.b.HaloCRM},e.next=4,n(W.s,s);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.HaloCRMTitle,subTitle:"Master every step of the customer journey.",buttonText:"Connect now",isModalOpen:o,formId:"create-halocrm-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:zr,alt:"HaloCRM"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-halocrm-form",onSubmit:m(p),children:[Object(K.jsx)(Ge.b,{name:"clientId",id:"clientId",control:l,label:"Enter your HaloCRM Client ID",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"clientSecret",id:"clientSecret",control:l,label:"Enter your HaloCRM Client Secret Key",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"domain",id:"domain",control:l,label:"Enter your HaloCRM URL",errors:d,required:!0})]})})},Wr=n(1761),Yr=Ve.e().shape({apiKey:Ve.g().trim().required("Required"),email:Ve.g().matches(qr.c,"Email must be a valid email").email("Email must be a valid email").max(qr.b,"Shouldn't exceed ".concat(qr.b," characters"))}),Jr=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsWeekmateModalVisible,o=e.isWeekmateModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(Yr),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).apiKey,o=r.email,c={apiKey:i,crmPlatform:ce.b.Weekmate,email:o},e.next=4,n(W.s,c);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.WeekmateTitle,subTitle:"Unified business platform for work management",buttonText:"Connect now",isModalOpen:o,formId:"create-weekmate-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:Wr.a,alt:"Weekmate"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-weekmate-form",onSubmit:m(p),children:[Object(K.jsx)(Ge.b,{name:"email",id:"email",control:l,label:"Enter your Weekmate Email",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:l,label:"Enter your Weekmate API Key",errors:d,required:!0})]})})},Xr=n.p+"static/media/spechy.05e04ca5.svg",Qr=Ve.e().shape({apiKey:Ve.g().trim().required("Required"),email:Ve.g().matches(qr.c,"Email must be a valid email").email("Email must be a valid email").max(qr.b,"Shouldn't exceed ".concat(qr.b," characters")),secretKey:Ve.g().trim().required("Required")}),$r=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsSpechyModalVisible,o=e.isSpechyModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(Qr),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).apiKey,o=r.email,c=r.secretKey,s={apiKey:i,crmPlatform:ce.b.Spechy,email:o,secretKey:c},e.next=4,n(W.s,s);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.SpechyTitle,subTitle:"Unified business platform for work management",buttonText:"Connect now",isModalOpen:o,formId:"create-spechy-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:Xr,alt:"Spechy"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-spechy-form",onSubmit:m(p),children:[Object(K.jsx)(Ge.b,{name:"email",id:"email",control:l,label:"Enter your Spechy Email",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:l,label:"Enter your Spechy API Key",errors:d,required:!0}
1),Object(K.jsx)(Ge.b,{name:"secretKey",id:"secretKey",control:l,label:"Enter your Spechy Secret Key",errors:d,required:!0})]})})},ei=n.p+"static/media/brevo.0e9b769f.svg",ti=Ve.e().shape({apiKey:Ve.g().trim().required("Required"),email:Ve.g().matches(qr.c,"Email must be a valid email").email("Email must be a valid email").max(qr.b,"Shouldn't exceed ".concat(qr.b," characters"))}),ni=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsBrevoModalVisible,o=e.isBrevoModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(ti),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).apiKey,o=r.email,c={apiKey:i,crmPlatform:ce.b.Brevo,email:o},e.next=4,n(W.s,c);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.BrevoTitle,subTitle:"Unified business platform for work management",buttonText:"Connect now",isModalOpen:o,formId:"create-brevo-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:ei,alt:"Brevo"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-brevo-form",onSubmit:m(p),children:[Object(K.jsx)(Ge.b,{name:"email",id:"email",control:l,label:"Enter your Brevo Email",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:l,label:"Enter your Brevo API Key",errors:d,required:!0})]})})},ri=n.p+"static/media/liveagent.ff0f8c09.svg",ii=Ve.e().shape({email:Ve.g().matches(qr.c,"Email must be a valid email").email("Email must be a valid email").max(qr.b,"Shouldn't exceed ".concat(qr.b," characters")).required("Required"),apiKey:Ve.g().trim().required("Required"),domain:Ve.g().trim().required("Required")}),ai=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsLiveAgentModalVisible,o=e.isLiveAgentModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(ii),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).email,o=r.apiKey,c=r.domain,s={email:i,apiKey:o,domain:c,crmPlatform:ce.b.LiveAgent},e.next=4,n(W.s,s);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.LiveAgentTitle,subTitle:"All-in-one help desk with AI chatbot and live chat.",buttonText:"Connect now",isModalOpen:o,formId:"create-liveagent-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"p-10 rounded-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:ri,alt:"Live Agent"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-liveagent-form",onSubmit:m(p),children:[Object(K.jsx)(Ge.b,{name:"email",id:"email",control:l,label:"Enter your Live Agent Email",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:l,label:"Enter your Live Agent API Key",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"domain",id:"domain",control:l,label:"Enter your Live Agent Domain",errors:d,required:!0})]})})},oi=n.p+"static/media/formitize.e2d66fd9.svg",ci=Ve.e().shape({email:Ve.g().matches(qr.c,"Email must be a valid email").email("Email must be a valid email").max(qr.b,"Shouldn't exceed ".concat(qr.b," characters")).required("Required"),apiKey:Ve.g().trim().required("Required")}),si=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsFormitizeModalVisible,o=e.isFormitizeModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(ci),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).email,o=r.apiKey,c={email:i,apiKey:o,crmPlatform:ce.b.Formitize},e.next=4,n(W.s,c);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.FormitizeTitle,subTitle:"Go paperless, run your business smarter.",buttonText:"Connect now",isModalOpen:o,formId:"create-formitize-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:oi,alt:"Formitize"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-formitize-form",onSubmit:m(p),children:[Object(K.jsx)(Ge.b,{name:"email",id:"email",control:l,label:"Enter your Formitize Email",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:l,label:"Enter your Formitize API Token",errors:d,required:!0})]})})},li=n.p+"static/media/tracker_rms.d36500d2.svg",di=["UK","USA","CA"],mi=Ve.e().shape({token:Ve.g().trim().required("Required"),location:Ve.g().trim().required("Required")}),ui=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsTrackerRMSModalVisible,o=e.isTrackerRMSModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(mi),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).token,o=r.location,c={token:i,location:o,crmPlatform:ce.b.TrackerRMS},e.next=4,n(W.s,c);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.TrackerRMSTitle,subTitle:"The all-in-one ATS & CRM for staffing agencies.",buttonText:"Connect now",isModalOpen:o,formId:"create-trackerrms-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"flex justify-center items-center rounded-20 h-20 w-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:li,alt:"TrackerRMS"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-trackerrms-form",onSubmit:m(p),children:[Object(K.jsx)(Ge.b,{name:"token",
1id:"token",control:l,label:"Enter your TrackerRMS API Token",errors:d,required:!0}),Object(K.jsx)(Ge.g,{name:"location",id:"location",className:"w-100",placeholder:"Select a region",label:"Region",control:l,errors:d,required:!0,children:di.map((function(e){return Object(K.jsx)(at.a.Option,{value:e,children:e},e)}))})]})})},bi=n.p+"static/media/karmacrm.940d1325.svg",pi=Ve.e().shape({email:et.f.email.required("Required"),password:Ve.g().required("Required")}),fi=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsKarmaCrmModalVisible,o=e.isKarmaCrmModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(pi),mode:"onChange",defaultValues:{email:"",password:""}}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).email,o=r.password,c={email:i,password:o,crmPlatform:ce.b.KarmaCrm},e.next=4,n(W.s,c);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.KarmaCrmTitle,subTitle:"Sales made simple, relationships made strong.",buttonText:"Connect now",isModalOpen:o,formId:"create-karmacrm-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"p-5 rounded-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:bi,alt:"KarmaCRM"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-karmacrm-form",onSubmit:m(p),children:[Object(K.jsx)(Ge.b,{name:"email",id:"email",control:l,label:"Enter your karmaCRM Email",errors:d,required:!0}),Object(K.jsx)(Ge.d,{name:"password",id:"password",control:l,label:"Enter your karmaCRM Password",errors:d,required:!0})]})})},ji=n.p+"static/media/agilecrm.d8d6256e.svg",gi=Ve.e().shape({email:et.f.email.required("Required"),domain:Ve.g().trim().required("Required"),apiKey:Ve.g().trim().required("Required")}),hi=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsAgileCrmModalVisible,o=e.isAgileCrmModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(gi),mode:"onChange",defaultValues:{email:"",domain:"",apiKey:""}}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).email,o=r.domain,c=r.apiKey,s={email:i,domain:o,apiKey:c,crmPlatform:ce.b.AgileCrm},e.next=4,n(W.s,s);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.AgileCrmTitle,subTitle:"All-in-one CRM to sell smarter and grow faster.",buttonText:"Connect now",isModalOpen:o,formId:"create-agilecrm-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"p-5 rounded-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:ji,alt:"AgileCRM"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-agilecrm-form",onSubmit:m(p),children:[Object(K.jsx)(Ge.b,{name:"email",id:"email",control:l,label:"Enter your AgileCRM Email",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"domain",id:"domain",control:l,label:"Enter your AgileCRM Domain",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:l,label:"Enter your AgileCRM API Key",errors:d,required:!0})]})})},Oi=n.p+"static/media/desku.3cdd92f3.svg",vi=Ve.e().shape({email:et.f.email.required("Required"),apiKey:Ve.g().trim().required("Required"),accountUrl:Ve.g().trim().required("Required")}),Ai=function(e){var t=Object(Q.c)(),n=t.integrateGenericCrm,r=t.isIntegrateCrmLoading,i=e.setIsDeskuModalVisible,o=e.isDeskuModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(vi),mode:"onChange",defaultValues:{email:"",apiKey:"",accountUrl:""}}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(r=t||{}).email,o=r.apiKey,c=r.accountUrl,s={email:i,apiKey:o,accountUrl:c,crmPlatform:ce.b.Desku},e.next=4,n(W.s,s);case 4:b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.DeskuTitle,subTitle:"Unify chat, email, and social in one AI helpdesk.",buttonText:"Connect now",isModalOpen:o,formId:"create-desku-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"p-5 rounded-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:Oi,alt:"Desku"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-desku-form",onSubmit:m(p),children:[Object(K.jsx)(Ge.b,{name:"email",id:"email",control:l,label:"Enter your Desku Email",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"apiKey",id:"apiKey",control:l,label:"Enter your Desku API Key",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"accountUrl",id:"accountUrl",control:l,label:"Enter your Desku Account URL",errors:d,required:!0})]})})},xi=n.p+"static/media/constantcontact.bc493b8c.svg",Ei="constantContactClientId",_i="constantContactClientSecret",Ci=Ve.e().shape({clientId:Ve.g().trim().required("Required"),
1clientSecret:Ve.g().trim().required("Required")}),Pi=function(e){var t=Object(Q.a)(),n=t.connectConstantContact,r=t.isConstantContactConnectionLoading,i=e.setIsConstantContactModalVisible,o=e.isConstantContactModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(Ci),mode:"onChange"}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r,i,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=(r=t||{}).clientId,o=r.clientSecret,localStorage.setItem(Ei,i),localStorage.setItem(_i,o),n(i),b();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.ConstantContactTitle,subTitle:"Connect across email, social, and messaging.",buttonText:"Connect now",isModalOpen:o,formId:"create-constantcontact-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"p-5 rounded-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:xi,alt:"ConstantContact"})}),children:Object(K.jsxs)("form",{className:"team-form items-center mt-2",id:"create-constantcontact-form",onSubmit:m(p),children:[Object(K.jsx)(Ge.b,{name:"clientId",id:"clientId",control:l,label:"Enter your Constant Contact Client ID",errors:d,required:!0}),Object(K.jsx)(Ge.b,{name:"clientSecret",id:"clientSecret",control:l,label:"Enter your Constant Contact Client Secret",errors:d,required:!0})]})})},yi=n(1734),Ti=Ve.e().shape({shop:Ve.g().trim().required("Required")}),Ri=function(e){var t=Object(Q.a)(),n=t.connectShopify,r=t.isShopifyConnectionLoading,i=e.setIsShopifyModalVisible,o=e.isShopifyModalVisible,s=Object(Be.g)({resolver:Object(qe.a)(Ti),mode:"onChange",defaultValues:{shop:""}}),l=s.control,d=s.formState.errors,m=s.handleSubmit,u=s.reset,b=function(){i(!1),u()},p=function(){var e=Object(c.a)(a.a.mark((function e(t){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=(t||{}).shop,n(r.trim()),b();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(K.jsx)(Fe.g,{title:ce.b.ShopifyTitle,subTitle:"Sync your Shopify store to reach customers where they buy.",buttonText:"Connect now",isModalOpen:o,formId:"create-shopify-form",onCancel:b,loading:r,disableSubmitButton:!De()(d),vector:Object(K.jsx)("div",{className:"p-5 rounded-20 bg-info-50",children:Object(K.jsx)("img",{className:"h-10 w-10",src:yi.a,alt:"Shopify"})}),children:Object(K.jsx)("form",{className:"team-form items-center mt-2",id:"create-shopify-form",onSubmit:m(p),children:Object(K.jsx)(Ge.b,{name:"shop",id:"shop",control:l,label:"Enter your Shopify Store Name",errors:d,required:!0})})})},Si=m.a.TabPane,Ii=function(e){return null===ce.d||void 0===ce.d?void 0:ce.d.includes(e)},Ni=function(){var e,t,n,i=Object(u.a)(),m=i.t,f=Object(b.g)(),g=Object(l.useState)(!1),O=Object(s.a)(g,2),M=O[0],k=O[1],q=Object(l.useState)(""),U=Object(s.a)(q,2),ne=U[0],ie=U[1],le=Object(l.useState)(""),de=Object(s.a)(le,2),me=de[0],ue=de[1],be=Object(l.useContext)(se),pe=be.integratedCrmList,fe=be.hasIntegratedCRM,je=Object(l.useContext)(G.a),ge=je.accessToken,he=Object(l.useState)(!1),Oe=Object(s.a)(he,2),ve=Oe[0],Ae=Oe[1],xe=Object(l.useState)(!1),Ee=Object(s.a)(xe,2),_e=Ee[0],Ce=Ee[1],Pe=Object(l.useState)(!1),ye=Object(s.a)(Pe,2),Te=ye[0],Re=ye[1],Se=Object(l.useState)(!1),Ie=Object(s.a)(Se,2),Ne=Ie[0],Le=Ie[1],we=Object(l.useState)(!1),Me=Object(s.a)(we,2),Be=(Me[0],Me[1],Object(l.useState)(!1)),qe=Object(s.a)(Be,2),Ue=qe[0],De=qe[1],Ve=Object(l.useState)(!1),Ge=Object(s.a)(Ve,2),Fe=Ge[0],ze=Ge[1],Ze=Object(l.useState)(!1),We=Object(s.a)(Ze,2),Ye=We[0],Je=We[1],Xe=Object(l.useState)(!1),Qe=Object(s.a)(Xe,2),et=Qe[0],tt=Qe[1],rt=Object(l.useState)(!1),at=Object(s.a)(rt,2),ot=at[0],st=at[1],dt=Object(l.useState)(!1),ut=Object(s.a)(dt,2),pt=(ut[0],ut[1],Object(l.useState)(!1)),ft=Object(s.a)(pt,2),gt=ft[0],Ot=ft[1],vt=Object(l.useState)(!1),At=Object(s.a)(vt,2),Et=At[0],Ct=At[1],Pt=Object(l.useState)(!1),Tt=Object(s.a)(Pt,2),Rt=Tt[0],It=Tt[1],Nt=Object(l.useState)(!1),wt=Object(s.a)(Nt,2),Mt=wt[0],Kt=wt[1],Bt=Object(l.useState)(!1),Ut=Object(s.a)(Bt,2),Dt=Ut[0],Gt=Ut[1],Ft=Object(l.useState)(!1),Ht=Object(s.a)(Ft,2),Wt=Ht[0],Yt=Ht[1],Xt=Object(l.useState)(!1),Qt=Object(s.a)(Xt,2),en=Qt[0],tn=Qt[1],rn=Object(l.useState)(!1),an=Object(s.a)(rn,2),cn=an[0],sn=an[1],dn=Object(l.useState)(""),un=Object(s.a)(dn,2),fn=un[0],gn=un[1],On=Object(l.useState)(!1),vn=Object(s.a)(On,2),xn=vn[0],_n=vn[1],Pn=Object(l.useState)(!1),Tn=Object(s.a)(Pn,2),Rn=Tn[0],In=Tn[1],Nn=Object(l.useState)(!1),Ln=Object(s.a)(Nn,2),Mn=Ln[0],kn=Ln[1],Kn=Object(l.useState)(!1),qn=Object(s.a)(Kn,2),Un=qn[0],Gn=qn[1],zn=Object(l.useState)(!1),Hn=Object(s.a)(zn,2),Zn=Hn[0],Yn=Hn[1],Jn=Object(l.useState)(!1),Qn=Object(s.a)(Jn,2),$n=Qn[0],er=Qn[1],tr=Object(l.useState)(!1),nr=Object(s.a)(tr,2),rr=nr[0],ir=nr[1],ar=Object(l.useState)(!1),or=Object(s.a)(ar,2),sr=or[0],lr=or[1],mr=Object(l.useState)(!1),ur=Object(s.a)(mr,2),pr=ur[0],fr=ur[1],gr=Object(l.useState)(!1),hr=Object(s.a)(gr,2),vr=hr[0],Ar=hr[1],Er=Object(l.useState)(!1),_r=Object(s.a)(Er,2),Pr=_r[0],yr=_r[1],Rr=Object(l.useState)(!1),Sr=Object(s.a)(Rr,2),Nr=Sr[0],Lr=Sr[1],Mr=Object(l.useState)(!1),kr=Object(s.a)(Mr,2),Br=kr[0],qr=kr[1],Ur=Object(l.useState)(!1),Vr=Object(s.a)(Ur,2),Gr=Vr[0],zr=Vr[1],Hr=Object(l.useState)(!1),Wr=Object(s.a)(Hr,2),Yr=Wr[0],Xr=Wr[1],Qr=Object(l.useState)(!1),ei=Object(s.a)(Qr,2),ti=ei[0],ri=ei[1],ii=Object(l.useState)(!1),oi=Object(s.a)(ii,2),ci=oi[0],li=oi[1],di=Object(l.useState)(!1),mi=Object(s.a)(di,2),bi=mi[
10],pi=mi[1],ji=Object(l.useState)(!1),gi=Object(s.a)(ji,2),Oi=gi[0],vi=gi[1],xi=Object(l.useState)(!1),Ci=Object(s.a)(xi,2),yi=Ci[0],Ti=Ci[1],Ni=Object(l.useState)(!1),Li=Object(s.a)(Ni,2),wi=Li[0],Mi=Li[1],ki=Object(l.useState)([]),Ki=Object(s.a)(ki,2),Bi=Ki[0],qi=Ki[1],Ui=Object(l.useState)(!1),Di=Object(s.a)(Ui,2),Vi=Di[0],Gi=Di[1],Fi=Object(l.useState)(!1),zi=Object(s.a)(Fi,2),Hi=zi[0],Zi=zi[1],Wi=Object(l.useState)(!1),Yi=Object(s.a)(Wi,2),Ji=Yi[0],Xi=Yi[1],Qi=Object(l.useState)(!1),$i=Object(s.a)(Qi,2),ea=$i[0],ta=$i[1],na=Object(l.useState)(!1),ra=Object(s.a)(na,2),ia=ra[0],aa=ra[1],oa=Object(l.useState)(!1),ca=Object(s.a)(oa,2),sa=ca[0],la=ca[1],da=Object(l.useState)(!1),ma=Object(s.a)(da,2),ua=ma[0],ba=ma[1],pa=Object(l.useState)(!1),fa=Object(s.a)(pa,2),ja=fa[0],ga=fa[1],ha=Object(l.useState)(!1),Oa=Object(s.a)(ha,2),va=Oa[0],Aa=Oa[1],xa=Object(l.useState)(!1),Ea=Object(s.a)(xa,2),_a=Ea[0],Ca=Ea[1],Pa=Object(l.useState)(!1),ya=Object(s.a)(Pa,2),Ta=ya[0],Ra=ya[1],Sa=Object(l.useState)(!1),Ia=Object(s.a)(Sa,2),Na=Ia[0],La=Ia[1],wa=Object(l.useState)(!1),Ma=Object(s.a)(wa,2),ka=Ma[0],Ka=Ma[1],Ba=Object(l.useState)(!1),qa=Object(s.a)(Ba,2),Ua=qa[0],Da=qa[1],Va=Object(l.useState)(!1),Ga=Object(s.a)(Va,2),Fa=Ga[0],za=Ga[1],Ha=Object(l.useState)(!1),Za=Object(s.a)(Ha,2),Wa=Za[0],Ya=Za[1],Ja=Object(l.useState)(!1),Xa=Object(s.a)(Ja,2),Qa=Xa[0],$a=Xa[1],eo=Object(l.useState)(!1),to=Object(s.a)(eo,2),no=to[0],ro=to[1],io=Object(l.useState)(!1),ao=Object(s.a)(io,2),oo=ao[0],co=ao[1],so=Object(l.useState)(!1),lo=Object(s.a)(so,2),mo=lo[0],uo=lo[1],bo=Object(l.useState)(!1),po=Object(s.a)(bo,2),fo=po[0],jo=po[1],go=Object(l.useState)(!1),ho=Object(s.a)(go,2),Oo=ho[0],vo=ho[1],Ao=Object(l.useState)(!1),xo=Object(s.a)(Ao,2),Eo=xo[0],_o=xo[1],Co=Object(l.useState)(!1),Po=Object(s.a)(Co,2),yo=Po[0],To=Po[1],Ro=function(){return Ae((function(e){return!e}))},So=function(){return De((function(e){return!e}))},Io=function(){return Ce((function(e){return!e}))},No=function(){return Re((function(e){return!e}))},Lo=function(){return ze((function(e){return!e}))},wo=function(){return st((function(e){return!e}))},Mo=function(){return Le((function(e){return!e}))},ko=function(){return Je((function(e){return!e}))},Ko=function(){k((function(e){return!e}))},Bo=function(){return Ot((function(e){return!e}))},qo=function(){return Ct((function(e){return!e}))},Uo=function(){return It((function(e){return!e}))},Do=function(){return Kt((function(e){return!e}))},Vo=function(){return Gt((function(e){return!e}))},Go=function(){return Yt((function(e){return!e}))},Fo=function(){return tn((function(e){return!e}))},zo=function(){return sn((function(e){return!e}))},Ho=function(){return _n((function(e){return!e}))},Zo=function(){return In((function(e){return!e}))},Wo=function(){return kn((function(e){return!e}))},Yo=function(){return Gn((function(e){return!e}))},Jo=function(){return Yn((function(e){return!e}))},Xo=function(){return er((function(e){return!e}))},Qo=function(){return ir((function(e){return!e}))},$o=function(){return lr((function(e){return!e}))},ec=function(){return fr((function(e){return!e}))},tc=new URLSearchParams(Object(b.h)().search),nc=tc.get("code")||tc.get("website_id"),rc=tc.get("shop"),ic=tc.get("crm")||tc.get("crmPlatform")||"",ac=ic.split("?")[0],oc=tc.get("state"),cc=tc.get("error"),sc=tc.get("location"),lc=tc.get("utm_code"),dc=tc.get("event_type"),mc=tc.get("crmId"),uc=tc.get("accounts-server")||"",bc="access_denied"===cc,pc=(n=ae,{setSearch:function(e){var t=n(),r=Object(re.a)(t,(function(t){t.search=e}));n(r)}}).setSearch,fc=Object(l.useState)(""),jc=Object(s.a)(fc,2),gc=jc[0],hc=jc[1],Oc=Object(X.a)(gc,500),vc=function(){var e=Object($.a)(ae),t=Object(ee.a)(te.a,{fetchPolicy:"cache-and-network"}),n=Object(s.a)(t,2),r=n[0],i=n[1].data;return Object(l.useEffect)((function(){r({variables:{params:e}})}),[e,r]),{allCrmList:Object(l.useMemo)((function(){var e;return(null===i||void 0===i||null===(e=i.listCrmMetadata)||void 0===e?void 0:e.data)||[]}),[i])}}().allCrmList,Ac=tc.get("referer"),xc=null===ic||void 0===ic?void 0:ic.split("?")[0],Ec=null===ic||void 0===ic?void 0:ic.split("=")[1],_c=null!==(e=null===ic||void 0===ic?void 0:ic.split("=")[2])&&void 0!==e?e:"",Cc=ac||xc,Pc=nc||Ec,yc="Click on Submit button to activate the integration.",Tc=Object(Q.a)({setPodioOrganizations:qi,openPodioFormModal:function(){return Gi(!0)}}),Rc=(Tc.integrateCrm,Tc.integratePipedrive,Tc.integrateSalesforce,Tc.integrateDynamics,Tc.isIntegratePipedriveLoading),Sc=Tc.isIntegrateSalesforceLoading,Ic=Tc.isIntegrateDynamicsLoading,Nc=Tc.isIntegrateMondayLoading,Lc=Tc.connectHubspot,wc=Tc.isHubspotConnectionLoading,Mc=Tc.connectPipedrive,kc=Tc.isPipedriveConnectionLoading,Kc=Tc.isZohoCrmConnectionLoading,Bc=Tc.connectZoho,qc=(Tc.integrateZoho,Tc.connectSalesforce),Uc=Tc.isSalesforceConnectionLoading,Dc=Tc.connectDynamics,Vc=Tc.isDynamicsConnectionLoading,Gc=Tc.isConnectDynamicsLoading,Fc=Tc.isMsTeamsConnectionLoading,zc=(Tc.integrateMsTeams,Tc.connectMsTeams),Hc=Tc.connectBitrix24,Zc=Tc.integrateBitrix24,Wc=(Tc.isBitrix24ConnectionLoading,Tc.isIntegrateBitrix24Loa
1ding),Yc=Tc.isCapsuleConnectionLoading,Jc=Tc.connectCapsule,Xc=Tc.integrateFreshsales,Qc=Tc.isIntegrateFreshsalesLoading,$c=Tc.isFreshsalesConnectionLoading,es=Tc.isActiveCampaignConnectionLoading,ts=(Tc.integrateActiveCampaign,Tc.isKeapConnectionLoading),ns=(Tc.integrateKeap,Tc.connectKeap),rs=Tc.connectMonday,is=Tc.isMondayConnectionLoading,as=Tc.isLeadSquaredConnectionLoading,os=Tc.integrateLeadSquared,cs=Tc.connectOutReach,ss=(Tc.integrateOutReach,Tc.isOutReachConnectionLoading),ls=Tc.connectIntercom,ds=Tc.isIntercomConnectionLoading,ms=Tc.isNimbleConnectionLoading,us=Tc.connectNimble,bs=Tc.isNoCrmConnectionLoading,ps=Tc.integrateNoCrm,fs=Tc.connectHelpscout,js=Tc.isHelpscoutConnectionLoading,gs=Tc.integrateHelpscout,hs=Tc.isCopperConnectionLoading,Os=Tc.connectCopper,vs=Tc.isFrontConnectionLoading,As=Tc.connectFront,xs=Tc.isCloseConnectionLoading,Es=Tc.connectClose,_s=Tc.isKommoConnectionLoading,Cs=Tc.connectKommo,Ps=Tc.isSalesLoftConnectionLoading,ys=Tc.connectSalesLoft,Ts=Tc.isTeamLeaderConnectionLoading,Rs=Tc.connectTeamLeader,Ss=(Tc.reSyncGoogleContacts,Tc.connectKlaviyo),Is=Tc.isKlaviyoConnectionLoading,Ns=Tc.isShopifyConnectionLoading,Ls=Tc.connectCalendly,ws=Tc.isCalendlyConnectionLoading,Ms=Tc.connectPepperCloud,ks=Tc.isPepperCloudConnectionLoading,Ks=(Tc.connectZendesk,Tc.isZendeskConnectionLoading),Bs=Tc.connectZohodesk,qs=Tc.isZ
1ohodeskConnectionLoading,Us=Tc.connectSlack,Ds=Tc.isSlackConnectionLoading,Vs=Tc.connectBigin,Gs=Tc.isBiginConnectionLoading,Fs=Tc.connectGoogleContact,zs=Tc.isGoogleContactConnectionLoading,Hs=Tc.connectAttio,Zs=Tc.isAttioConnectionLoading,Ws=Tc.isConnectBitrix24Loading,Ys=Tc.isClioConnectionLoading,Js=Tc.connectClio,Xs=Tc.isPodioConnectionLoading,Qs=Tc.connectPodio,$s=Tc.getpodioOrganizations,el=Tc.isPodioOrganizationLoading,tl=Tc.isSuperOfficeConnectionLoading,nl=Tc.connectSuperOffice,rl=Tc.connectNotion,il=Tc.isNotionConnectionLoading,al=Tc.connectGreenHouse,ol=Tc.isGreenHouseConnectionLoading,cl=Tc.connectZohoRecruit,sl=Tc.isZohoRecruitConnectionLoading,ll=(Tc.connectConstantContact,Tc.isConstantContactConnectionLoading),dl=Object(l.useState)("active"),ml=Object(s.a)(dl,2),ul=ml[0],bl=ml[1];Object(l.useEffect)((function(){ac===ce.b.Zapier&&bl("myZaps")}),[ac]);var pl=Object(Q.c)(),fl=pl.integrateGenericCrm,jl=pl.isIntegrateCrmLoading,gl=function(){var e=Object(u.a)().t,t=Object(pn.a)(W.db,{onCompleted:function(e){var t,n=((null===e||void 0===e?void 0:e.revokeCrmIntegration)||{}).error;if(null!==n)Object(N.w)({content:null!==(t=null===n||void 0===n?void 0:n.message)&&void 0!==t?t:"Something went wrong.",type:"danger"});else{var r,i=((null===e||void 0===e||null===(r=e.revokeCrmIntegration)||void 0===r?void 0:r.data)||{}).url;i&&window.location.assign(i)}},onError:function(t){var n;return Object(N.w)({content:null!==(n=null===t||void 0===t?void 0:t.message)&&void 0!==n?n:e("error.unspecific","Something went wrong."),type:"danger"})}}),n=Object(s.a)(t,2),r=n[0];return{loading:n[1].loading,handleCrmIntegrationRevocation:function(){var e=Object(c.a)(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({variables:{data:t}});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}().handleCrmIntegrationRevocation,hl=function(e){null===j.a||void 0===j.a||j.a.track("Integration Connect Clicked",{Platform:e})},Ol=function(e,t){var n;n=t,null===j.a||void 0===j.a||j.a.track("Zapier Connect Clicked",{Platform:n}),Ko(),ie(e),ue(t)},vl=ge&&Object(p.a)(ge),Al=null===vl||void 0===vl||null===(t=vl.user_claims)||void 0===t?void 0:t.role,xl=["Admin","Owner"].includes(Al);function El(){return(El=Object(c.a)(a.a.mark((function e(){var t,n,r,i,o,c,s,l,d;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Ii(ce.b.Front),i=r?W.s:W.w,o={crmPlatform:ce.b.Front,cbCode:nc},e.next=5,fl(i,o);case 5:c=e.sent,s=r?null===c||void 0===c||null===(t=c.integrateCrm)||void 0===t?void 0:t.data:null===c||void 0===c||null===(n=c.integrateFront)||void 0===n?void 0:n.data,l=null===s||void 0===s?void 0:s.apiKey,d=null===s||void 0===s?void 0:s.id,l&&d&&(localStorage.setItem("frontKey",l),localStorage.setItem("frontIntegrationId",d),window.location.reload());case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _l(){return(_l=Object(c.a)(a.a.mark((function e(){var t,n,r,i,o,c,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Ii(ce.b.Monday),i=r?W.J:W.I,o={crmPlatform:ce.b.Monday,cbCode:Ec,backToUrl:_c},e.next=5,fl(i,o);case 5:(null===(c=e.sent)||void 0===c||null===(t=c.integrateMonday)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.url)&&(v()().execute("valueCreatedForUser"),window.location.href=null===c||void 0===c||null===(s=c.integrateMonday)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.url);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Cl=Object(l.useMemo)((function(){return function(e,t){var n=t.toLowerCase().trim();return(null===e||void 0===e?void 0:e.filter((function(e){var t;return null===e||void 0===e||null===(t=e.crmName)||void 0===t?void 0:t.toLowerCase().includes(n)})))||[]}(pe,fn)}),[fn,pe]),Pl=Object(l.useMemo)((function(){return function(e){var t=Object(o.a)(e);return(null===t||void 0===t?void 0:t.sort((function(e,t){var n=(e||{}).status,r=(t||{}).status;return"live"!==n&&"beta"!==n||"coming_soon"!==r?"coming_soon"!==n||"beta"!==r&&"live"===r?0:1:-1})))||[]}(vc)}),[vc]);d.a.useEffect((function(){pc(Oc?{columns:["code"],value:Oc}:null)}),[Oc]);var yl=function(e){return"string"===typeof e?e.replace(/"/g,""):e};Object(l.useEffect)((function(){mc&&Object(c.a)(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$s(mc);case 2:case"end":return e.stop()}}),e)})))()}),[mc]);var Tl=new h.a({encodingType:"aes",isCompression:!1});Object(l.useEffect)((function(){if(bc)return Object(N.w)({type:"danger",content:"Acce
1ss Denied. Please try integrating again."}),void f.push("".concat(J.SETTINGS).concat(J.INTEGRATION));if(nc||ac||oc||Ec||xc||Cc){var e=xc||Ac||Cc||ac||oc;if(e&&"zapier"!==e)if(!("true"===Tl.get(e))){if(ac!==ce.b.Monday&&Tl.set(e,"true"),nc&&ac===ce.b.Hubspot){var t=Ii(ce.b.Hubspot)?W.s:W.r,n={crmPlatform:ce.b.Hubspot,cbCode:nc};fl(t,n)}if(nc&&ac===ce.b.Pipedrive){var i=Ii(ce.b.Pipedrive)?W.s:W.T,a={crmPlatform:ce.b.Pipedrive,cbCode:nc};fl(i,a)}if(nc&&oc&&sc&&ac===ce.b.Zoho){var o=Ii(ce.b.Zoho)?W.s:W.bb,c={cbCode:nc,crmPlatform:ce.b.Zoho,state:oc,location:sc};fl(o,c)}if(nc&&ac===ce.b.Salesforce){var s=localStorage.getItem("salesforceCodeVerifier"),l=W.s,d={crmPlatform:ce.b.Salesforce,cbCode:nc,codeVerifier:s};fl(l,d),localStorage.removeItem("salesforceCodeVerifier")}if(nc&&ac===ce.b.Dynamics){var m=W.s,u=localStorage.getItem("dynamicsInstanceUrl"),b=Object(r.a)({cbCode:nc,crmPlatform:ce.b.Dynamics},u&&{instanceUrl:u});fl(m,b),localStorage.removeItem("dynamicsInstanceUrl")}if(Ec&&xc===ce.b.Monday&&function(){_l.apply(this,arguments)}(),nc&&ac===ce.b.MsTeams){var p={crmPlatform:ce.b.MsTeams,cbCode:nc};fl(W.s,p)}if(nc&&ac===ce.b.Bitrix24)if(Y.s){var j={crmPlatform:ce.b.Bitrix24,cbCode:nc};fl(W.s,j)}else Zc(nc,ac);if(nc&&ac===ce.b.Zendesk&&oc){var g={crmPlatform:ce.b.Zendesk,cbCode:nc,accountSubdomain:oc};fl(W.s,g)}if(nc&&ac===ce.b.Slack&&oc){var h={crmPlatform:ce.b.Slack,cbCode:nc,state:oc};fl(W.s,h)}if(Cc===ce.b.Capsule&&Pc){var O=Ii(ce.b.Capsule)?W.s:W.n,v={crmPlatform:ce.b.Capsule,cbCode:Pc};fl(O,v)}if(nc&&ac===ce.b.Keap){var A=Ii(ce.b.Keap)?W.s:W.E;fl(A,{cbCode:nc,crmPlatform:ac})}if(nc&&ac===ce.b.CrispChat){var x=localStorage.getItem("crispChatEmail"),E=Ii(ce.b.CrispChat)?W.s:W.q,_={crmPlatform:ce.b.CrispChat,cbCode:nc,email:null===x||void 0===x?void 0:x.replace(/"/g,"")};fl(E,_)}if(Ec&&xc===ce.b.Intercom){var C=Ii(ce.b.Intercom)?W.s:W.D,P={crmPlatform:ce.b.Intercom,cbCode:Ec};fl(C,P)}if(nc&&ac===ce.b.OutReach){var y=Ii(ce.b.OutReach)?W.s:W.R,T={crmPlatform:ce.b.OutReach,cbCode:nc};fl(y,T)}if(nc&&ac===ce.b.GoogleContact){var R={crmPlatform:ce.b.GoogleContact,cbCode:nc};fl(W.s,R)}if(nc&&ac===ce.b.Helpscout&&gs(nc,ac),nc&&ac===ce.b.Nimble){var S=Ii(ce.b.Nimble)?W.s:W.L,I={crmPlatform:ce.b.Nimble,cbCode:nc};fl(S,I)}if(nc&&ac===ce.b.Copper){var L=Ii(ce.b.Copper)?W.s:W.p,w={crmPlatform:ce.b.Copper,cbCode:nc};fl(L,w)}if(nc&&ac===ce.b.SalesLoft){var M=Ii(ce.b.SalesLoft)?W.s:W.X,k={crmPlatform:ce.b.SalesLoft,cbCode:nc};fl(M,k)}if(nc&&ac===ce.b.Teamleader){var K=Ii(ce.b.Teamleader)?W.s:W.Z,B={crmPlatform:ce.b.Teamleader,cbCode:nc};fl(K,B)}if(nc&&ac===ce.b.Front&&function(){El.apply(this,arguments)}(),nc&&ac===ce.b.Close){var q=Ii(ce.b.Close)?W.s:W.o,U={crmPlatform:ce.b.Close,cbCode:nc};fl(q,U)}if(nc&&ac===ce.b.Kommo&&Ac){var D=Ii(ce.b.Kommo),V=D?W.s:W.G,G={cbCode:nc,instanceUrl:Ac};D?G.crmPlatform=ce.b.Kommo:G.crm=ce.b.Kommo,fl(V,G)}if(nc&&ac===ce.b.Gong&&oc){var F=Ii(ce.b.Gong)?W.s:W.y,z={crmPlatform:ce.b.Gong,cbCode:nc,crmUser:oc};fl(F,z)}if(nc&&ac===ce.b.Calendly){var H={crmPlatform:ce.b.Calendly,cbCode:nc};fl(W.m,H)}var Z=localStorage.getItem("gorgiasdomain");if(nc&&ac===ce.b.Gorgias){var X=Ii(ce.b.Gorgias)?W.s:W.z,Q={crmPlatform:ce.b.Gorgias,domain:null===Z||void 0===Z?void 0:Z.replace(/"/g,""),cbCode:nc};fl(X,Q),localStorage.removeItem("gorgiasdomain")}var $=localStorage.getItem("gohighlevelEmail");if(nc&&ac===ce.b.GoHighLevel){var ee=Ii(ce.b.GoHighLevel),te=ee?W.s:W.x,ne={crmPlatform:ce.b.GoHighLevel,cbCode:nc};ee||(ne.crmUser=null===$||void 0===$?void 0:$.replace(/"/g,"")),fl(te,ne),localStorage.removeItem("gohighlevelEmail")}var re=localStorage.getItem("sellsyEmail");if(nc&&ac===ce.b.Sellsy&&oc){var ie={crmPlatform:ce.b.Sellsy,email:null===re||void 0===re?void 0:re.replace(/"/g,""),cbCode:nc,codeVerifier:oc};fl(W.s,ie),localStorage.removeItem("sellsyEmail")}if(cc&&ac===ce.b.Klaviyo)Object(N.w)({content:"You denied the permission to integrate Klaviyo. To integrate, please re-authorize.",type:"danger"});else{if(nc&&ac===ce.b.HaloPSA){var ae=localStorage.getItem("haloUrl"),oe=ae?JSON.parse(ae):{},se=oe.url,le=oe.clientId,de=oe.clientSecret,me={crmPlatform:ce.b.HaloPSA,cbCode:nc,domain:yl(se),clientId:yl(le),clientSecret:yl(de)};fl(W.s,me),localStorage.removeItem("haloUrl")}if(nc&&ac===ce.b.HaloCRM){var ue=localStorage.getItem("haloCrmUrl"),be=ue?JSON.parse(ue):{},pe=be.url,fe=be.clientId,je=be.clientSecret,ge={crmPlatform:ce.b.HaloCRM,cbCode:nc,domain:yl(pe),clientId:yl(fe),
1clientSecret:yl(je)};fl(W.s,ge),localStorage.removeItem("haloCrmUrl")}if(nc&&ac===ce.b.Klaviyo){var he=Ii(ce.b.Klaviyo)?W.s:W.F,Oe={crmPlatform:ce.b.Klaviyo,cbCode:nc,codeVerifier:oc};fl(he,Oe)}if(nc&&ac===ce.b.Shopify&&rc){var ve={crmPlatform:ce.b.Shopify,cbCode:nc,shopUrl:rc};fl(W.s,ve),localStorage.removeItem("codeVerifier")}if(Ec&&xc===ce.b.PepperCloud){var Ae=Ii(ce.b.PepperCloud)?W.s:W.S,xe={crmPlatform:ce.b.PepperCloud,cbCode:Ec};fl(Ae,xe)}if(nc&&ac===ce.b.Zohodesk&&oc&&sc){var Ee={crmPlatform:ce.b.Zohodesk,cbCode:nc,state:oc,location:sc};fl(W.s,Ee)}if(nc&&ac===ce.b.Attio){var _e={crmPlatform:ce.b.Attio,cbCode:nc};fl(W.s,_e)}if(lc&&dc&&ac===ce.b.PepperCloud){var Ce={crmPlatform:ce.b.PepperCloud,eventType:dc,organizationId:lc};gl(Ce)}if(nc&&sc&&oc&&ac===ce.b.Bigin){var Pe={cbCode:nc,crmPlatform:ce.b.Bigin,location:sc,state:oc};fl(W.s,Pe)}if(nc&&ac===ce.b.Clio){var ye={cbCode:nc,crmPlatform:ce.b.Clio};fl(W.s,ye)}if(nc&&ac===ce.b.Podio){var Te={crmPlatform:ce.b.Podio,cbCode:nc};fl(W.s,Te,ac)}if(nc&&ac===ce.b.SuperOffice){var Re={crmPlatform:ce.b.SuperOffice,cbCode:nc};fl(W.s,Re)}if(nc&&oc===ce.b.Notion){var Se={crmPlatform:ce.b.Notion,cbCode:nc};fl(W.s,Se)}if(nc&&ac===ce.b.Creatio&&oc){var Ie=localStorage.getItem("creatioDetails"),Ne=Ie?JSON.parse(Ie):{},Le=Ne.baseUrl,we=Ne.clientId,Me=Ne.clientSecret,ke=Ne.siteId,Ke=Ne.username,Be={crmPlatform:ce.b.Creatio,cbCode:nc,state:oc,clientId:yl(we),clientSecret:yl(Me),accountUrl:yl(Le),appId:yl(ke),username:yl(Ke)};fl(W.s,Be),localStorage.removeItem("creatioDetails")}if(nc&&ac===ce.b.ZohoRecruit&&uc){var qe={cbCode:nc,crmPlatform:ce.b.ZohoRecruit,accountUrl:uc};fl(W.s,qe)}if(nc&&ac===ce.b.Greenhouse){var Ue={cbCode:nc,crmPlatform:ce.b.Greenhouse};fl(W.s,Ue)}if(nc&&ac===ce.b.ConstantContact){var De=localStorage.getItem(Ei),Ve=localStorage.getItem(_i),Ge={cbCode:nc,crmPlatform:ce.b.ConstantContact,clientId:De,clientSecret:Ve};fl(W.s,Ge),localStorage.removeItem(Ei),localStorage.removeItem(_i)}}}}}),[]);var Rl={hubspot:{connect:function(){hl(ce.b.HubspotTitle),Lc()},isConnectionLoading:wc},pipedrive:{connect:function(){hl(ce.b.PipedriveTitle),Mc()},isConnectionLoading:kc},salesforce:{connect:function(){hl(ce.b.SalesforceTitle),qc()},isConnectionLoading:Uc},zoho:{connect:function(){hl(ce.b.ZohoTitle),Bc()},isConnectionLoading:Kc},dynamics:{connect:function(){hl(ce.b.DynamicsTitle),Ro()},isConnectionLoading:Vc},teams:{connect:function(){hl(ce.b.MsTeamsTitle),zc()},isConnectionLoading:Fc},bitrix24:{connect:function(){hl(ce.b.Bitrix24Title),pi(!0)}},zendesk:{connect:function(){hl(ce.b.ZendeskTitle),Xo()},isConnectionLoading:Ks},pabbly:{connect:function(){hl(ce.b.PabblyTitle),window.open("https://www.pabbly.com/connect/integrations/krispcall/","_blank")},isConnectionLoading:!1},integrately:{connect:function(){hl(ce.b.IntegratelyTitle),window.open("https://integrately.com/integrations/krispcall","_blank")},isConnectionLoading:!1},pipedream:{connect:function(){hl(ce.b.PipedreamTitle),window.open("https://pipedream.com/apps/krispcall","_blank")},isConnectionLoading:!1},crispchat:{connect:function(){hl(ce.b.CrispChatTitle),zr(!0)}},capsule:{connect:function(){hl(ce.b.CapsuleTitle),Jc()},isConnectionLoading:Yc},nocrm:{connect:function(){hl(ce.b.NoCrmTitle),Mo()},isConnectionLoading:bs},nutshell:{connect:function(){hl(ce.b.NoCrmTitle),ko()}},freshsales:{connect:function(){hl(ce.b.FreshsalesTitle),So()},isConnectionLoading:!1},activecampaign:{connect:function(){hl(ce.b.ActiveCampaignTitle),Io()},isConnectionLoading:es},keap:{connect:function(){hl(ce.b.KeapTitle),ns()},isConnectionLoading:ts},monday:{connect:function(){hl(ce.b.MondayTitle),rs()},isConnectionLoading:is},leadsquared:{connect:function(){hl(ce.b.LeadSquaredTitle),No()},isConnectionLoading:as},outreach:{connect:function(){hl(ce.b.OutReachTitle),cs()},isConnectionLoading:ss},googlecontact:{connect:function(){hl(ce.b.GoogleContactTitle),Fs()},isConnectionLoading:zs},pipeline:{connect:function(){hl(ce.b.PipelineTitle),Lo()},isConnectionLoading:!1},intercom:{connect:function(){hl(ce.b.IntercomTitle),ls()},isConnectionLoading:ds},helpscout:{connect:function(){hl(ce.b.HelpscoutTitle),fs()},isConnectionLoading:js},nimble:{connect:function(){hl(ce.b.NimbleTitle),us()},isConnectionLoading:ms},copper:{connect:function(){hl(ce.b.CopperTitle),Os()},isConnectionLoading:hs},salesloft:{connect:function(){hl(ce.b.SalesLoftTitle),ys()},isConnectionLoading:Ps},teamleader:{connect:function(){hl(ce.b.TeamleaderTitle),Rs()},isConnectionLoading:Ts},front:{connect:function(){hl(ce.b.FrontTitle),As()},isConnectionLoading:vs},close:{connect:function(){hl(ce.b.CloseTitle),Es()},isConnectionLoading:xs},salesmate:{connect:function(){hl(ce.b.SalesmateTitle),wo()},isConnectionLoading:!1},kommo:{connect:function(){hl(ce.b.KommoTitle),Cs()},isConnectionLoading:_s},gong:{connect:function(){hl(ce.b.GongTitle),Bo()},isConnectionLoading:!1},onepagecrm:{connect:function(){hl(ce.b.OnePageCrmTitle),qo()},isConnectionLoading:!1},pipeliner:{connect:function(){hl(ce.b.PipeLinerTitle),Jo()},isConnectionLoading:!1},ontraport:{connect:function(){hl(ce.b.OntraportTitle),Uo()},isConnectionLoading:!1},firmao:{connect:function(){hl(ce.b.FirmaoTitle),Do()},isConnectionLoading:!1},gorgias:{connect:function(){hl(ce.b.GongTitle),Vo()},isConnectionLoading:!1},salesflare:{connect:function(){hl(ce.b.Salesflare),Go()},isConnectionLoading:!1},activepieces:{connect:function(){hl(ce.b.ActivePiecesTitle),window.open("https://www.activepieces.com/pieces/krisp-call","_blank")},isConnectionLoading:!1},klaviyo:{connect:function(){hl(ce.b.KlaviyoTitle),Ss()},isConnectionLoading:Is},apptivo:{connect:function(){hl(ce.b.ApptivoTitle),Fo()},isConnectionLoading:!1},engagebay:{connect:function(){hl(ce.b.EngagebayTitle),Wo()},isConnectionLoading:!1},outplay:{connect:function(){hl(ce.b.OutplayTitle),zo()},isConnectionLoading:!1},insightly:{connect:function(){hl(ce.b.InsightlyTitle),Ho()},isConnectionLoading:Is},gohigh:{connect:function(){hl(ce.b.GoHighLevelTitle),Zo()},isConnectionLoading:!1},shopify:{connect:function(){hl(ce.b.ShopifyTitle),To(!0)},isConnectionLoading:Ns},calendly:{connect:function(){hl(ce.b.ShopifyTitle),Ls()},isConnectionLoading:ws},sellsy:{connect:function(){hl(ce.b.ShopifyTitle),Yo()},isConnectionLoading:Ns},make:{connect:function(){hl(ce.b.MakeTitle),window.open("https://www.make.com/en/integrations/krispcall","_blank")},isConnectionLoading:!1},peppercloud:{connect:function(){hl(ce.b.PepperCloudTitle),Ms()},isConnectionLoading:ks},zohodesk:{connect:function(){hl(ce.b.ZohodeskTitle),Bs()},isConnectionLoading:qs},followupboss:{connect:function(){hl(ce.b.FollowupbossTitle),Qo()},isConnectionLoading:!1},slack:{connect:function(){hl(ce.b.SlackTitle),Us()},isConnectionLoading:Ds},bigin:{connect:function(){hl(ce.b.BiginTitle),Vs()},isConnectionLoading:Gs},lessannoyingcrm:{connect:function(){hl(ce.b.LessAnnoyingCrmTitle),$o()}},kylas:{connect:function(){hl(ce.b.Kylastitle),ec()}},halopsa:{connect:function(){hl(ce.b.HaloPSATitle),Ar(!0)}},livespace:{connect:function(){hl(ce.b.LiveSpaceTitle),yr(!0)}},loxo:{connect:function(){hl(ce.b.LoxoTitle),Lr(!0)}},attio:{connect:function(){hl(ce.b.AttioTitle),Hs()},isConnectionLoading:Zs},konnektive:{connect:function(){hl(ce.b.KonnektiveTitle),qr(!0)}},greenhouse:{connect:function(){hl(ce.b.GreenHouseTitle),al()},isConnectionLoading:ol},cloze:{connect:function(){hl(ce.b.ClozeTitle),Xr(!0)}},recruit:{connect:function(){hl(ce.b.RecruitTitle),ri(!0)}},vtiger:{connect:function(){hl(ce.b.VtigerTitle),li(!0)}},halocrm:{connect:function(){hl(ce.b.HaloCRMTitle),vi(!0)}},pcrecruiter:{connect:function(){hl(ce.b.PcRecruiterTitle),Ti(!0)}},deskpro:{connect:function(){hl(ce.b.DeskproTitle),Mi(!0)}},odoo:{connect:function(){hl(ce.b.OdooTitle),Zi(!0)}},bolddesk:{connect:function(){hl(ce.b.BoldDeskTitle),Xi(!0)}},clio:{connect:function(){hl(ce.b.ClioTitle),Js()},isConnectionLoading:Ys},podio:{connect:function(){hl(ce.b.PodioTitle),Qs()},isConnectionLoading:Xs},freshservice:{connect:function(){hl(ce.b.FreshServiceTitle),ta(!0)}},folk:{connect:function(){hl(ce.b.FolkTitle),aa(!0)}},recruiterflow:{connect:function(){hl(ce.b.RecruiterFlowTitle),la(!0)}},keragon:{connect:function(){hl(ce.b.KeragonTitle),window.open(ce.a.keragon,"_blank")}},n8n:{connect:function(){hl(ce.b.n8nTitle),window.open(ce.a.n8n,"_blank")}},superoffice:{connect:function(){hl(ce.b.SuperOfficeTitle),nl()},isConnectionLoading:tl},notion:{connect:function(){hl(ce.b.NotionTitle),rl()},isConnectionLoading:il},manatal:{connect:function(){hl(ce.b.ManatalTitle),ba(!0)}},teamtailor:{connect:function(){hl(ce.b.TeamtailorTitle),ga(!0)}},creatio:{connect:function(){hl(ce.b.CreatioTitle),Aa(!0)}},onpipeline:{connect:function(){hl(ce.b.OnPipelineTitle),Ca(!0)}},flowlu:{connect:function(){hl(ce.b.FlowluTitle),Ra(!0)}},ashby:{connect:function(){hl(ce.b.AshbyTitle),La(!0)}},affinity:{connect:function(){hl(ce.b.AffinityTitle),Ka(!0)}},weekmate:{connect:function(){hl(ce.b.WeekmateTitle),Da(!0)}},zohorecruit:{connect:function(){hl(ce.b.ZohoRecruitTitle),cl()},isConnectionLoading:sl},spechy:{connect:function(){hl(ce.b.SpechyTitle),za(!0)},isConnectionLoading:!1},brevo:{connect:function(){hl(ce.b.BrevoTitle),Ya(!0)},isConnectionLoading:!1},liveagent:{connect:function(){hl(ce.b.LiveAgentTitle),$a(!0)},isConnectionLoading:!1},formitize:{connect:function(){hl(ce.b.FormitizeTitle),co(!0)},isConnectionLoading:!1},trackerrms:{connect:function(){hl(ce.b.TrackerRMSTitle),uo(!0)},isConnectionLoading:!1},karmacrm:{connect:function(){hl(ce.b.KarmaCrmTitle),jo(!0)},isConnectionLoading:!1},agilecrm:{connect:function(){hl(ce.b.AgileCrmTitle),vo(!0)},isConnectionLoading:!1},desku:{connect:function(){hl(ce.b.DeskuTitle),_o(!0)},isConnectionLoading:!1},constantcontact:{connect:function(){hl(ce.b.ConstantContactTitle),ro(!0)},isConnectionLoading:ll}};Object.keys(Rl).forEach((function(e){var t=Rl[e];t.connect&&(t.connect=function(e,t){return function(){Tl.remove(e),t()}}(e,t.connect))}));var Sl={googleSheets:{connect:function(){return Ol("google-sheets","Google Sheets")},isConnectionLoading:!1},slack:{connect:function(){return Ol("slack","Slack")},isConnectionLoading:!1},pipedrive:{connect:function(){return Ol("pipedrive","Pipedrive")},isConnectionLoading:!1},shopify:{connect:function(){return Ol("shopify","Shopify")},isConnectionLoading:!1},facebook:{connect:function(){return Ol("facebook-lead-ads","Facebook")},isConnectionLoading:!1},monday:{connect:function(){return Ol("monday","Monday")},isConnectionLoading:!1},calendly:{connect:function(){return Ol("calendly","Calendly")},isConnectionLoading:!1},mailchimp:{connect:function(){return Ol("mailchimp","Mailchimp")},isConnectionLoading:!1},acuity:{connect:function(){return Ol("acuity-scheduling","Acuity Scheduling")},isConnectionLoading:!1},nocrm:{connect:function(){return Ol("nocrm-io","noCRM.io")},isConnectionLoading:!1},jotform:{connect:function(){return Ol("jotform","Jotform")},isConnectionLoading:!1},asana:{connect:function(){return Ol("asana","Asana")},isConnectionLoading:!1},trello:{connect:function(){return Ol("trello","Trello")},isConnectionLoading:!1},simplyBook:{connect:function(){return Ol("simplybook","SimplyBook.me")},isConnectionLoading:!1},webhooksByZapier:{connect:function(){return Ol("webhook","Webhook")},isConnectionLoading:!1}};if(Rc||wc||Kc||Sc||Ic||Wc||Nc||jl||Qc||Nc)return Object(K.jsx)("div",{className:"relative w-full",children:Object(K.jsx)(N.t,{})});return Object(K.jsxs)(d.a.Suspense,{fallback:Object(K.jsx)(N.t,{}),children:[localStorage.getItem("frontIntegrationId")&&Object(K.jsx)(xt,{}),Object(K.jsxs)("div",{className:"flex flex-col w-full",children:[Object(K.jsx)(L.a,{title:m("settings.sidebar.integrations","Integrations")}),Object(K.jsx)("div",{children:Object(K.jsx)(oe.e,{children:Object(K.jsxs)(Vn.b,{className:"integration-tab",activeKey:ul,onChange:function(e){bl(e)},children:[Object(K.jsxs)(Si,{tab:"Active",children:[Object(K.jsx)(Zt,{handleSearch:function(e){var t,n=null===e||void 0===e||null===(t=e.target)||void 0===t?void 0:t.value;gn(n)},searchData:fn}),Object(K.jsx)("div",{className:"flex flex-wrap max-w-screen-lg",children:fe&&(null===Cl||void 0===Cl?void 0:Cl.length)>0?null===Cl||void 0===Cl?void 0:Cl.map((function(e){var t=e||{},n=t.id,r=t.crmName,i=t.crmDescription,a=t.crmLogo;
1return Object(K.jsx)(w.b,{crm:e,title:r,description:i,imageSrc:a,isIntegrated:!0},n)})):Object(K.jsx)(B,{integration:"activeIntegration"})})]},"active"),Object(K.jsx)(Si,{tab:"My Zaps",children:Object(K.jsx)($e,{crmPlatform:ac})},"myZaps")]})})}),Object(K.jsx)("div",{className:"p-6",children:xl&&Object(K.jsxs)(oe.e,{className:"mt-10",children:[Object(K.jsx)("h2",{children:"Member Integrations"}),Object(K.jsx)(ke,{})]})}),Object(K.jsxs)("div",{children:[Object(K.jsx)(oe.e,{className:"mt-1",children:Object(K.jsxs)(Vn.b,{className:"integration-tab",children:[Object(K.jsxs)(Si,{tab:"All Integration",children:[Object(K.jsx)(Zt,{handleSearch:function(e){hc(e.target.value)}}),Object(K.jsx)("div",{className:"flex flex-wrap max-w-screen-lg",children:(null===Pl||void 0===Pl?void 0:Pl.length)>0?null===Pl||void 0===Pl?void 0:Pl.map((function(e){var t,n,r=e||{},i=r.id,a=r.code,o=r.displayName,c=r.description,s=r.logo,l=r.status;return Object(K.jsx)(w.b,{crm:e,title:o,description:c,imageSrc:s,handleConnect:null===(t=Rl["".concat(a)])||void 0===t?void 0:t.connect,isConnectionLoading:null===(n=Rl["".concat(a)])||void 0===n?void 0:n.isConnectionLoading,status:l},i)})):Object(K.jsx)(B,{integration:"allIntegration"})})]},"allIntegration"),Object(K.jsxs)(Si,{tab:"Zapier",children:[Object(K.jsx)("div",{className:"flex flex-wrap max-w-screen-lg",children:ce.c.map((function(e){var t=e||{},n=t.title,r=t.label,i=t.description,a=t.image,o=t.status;return Object(K.jsx)(w.b,{crm:e,title:r,description:i,imageSrc:a,handleConnect:Sl["".concat(n)].connect,isConnectionLoading:Sl["".concat(n)].isConnectionLoading,status:o},n)}))}),Object(K.jsxs)(oe.f,{children:[Object(K.jsx)("a",{href:"https://zapier.com/apps/krispcall/integrations",target:"_blank",className:"flex justify-between items-center mb-5",rel:"noreferrer",onClick:function(){null===j.a||void 0===j.a||j.a.track("Zapier Explore More Clicked")},children:Object(K.jsx)("img",{src:T,alt:"Explore More"})}),Object(K.jsx)("div",{className:"flex items-center mb-1",children:Object(K.jsx)("h4",{className:"capitalize",children:"Explore More"})}),Object(K.jsx)("p",{children:"Find more apps provided by Zapier to automate your tasks with KrispCall"})]})]},"zapier")]})}),Object(K.jsx)(D,{isModalOpen:M,onModalCancel:Ko,children:Object(K.jsx)(Ke,{integration:ne,title:me})})]}),Object(K.jsx)(He,{title:ce.b.DynamicsTitle,titleImage:A.a,connectDynamicUrl:function(e){Dc(e)},isConnectDynamicUrlLoading:Gc,toggleDynamicUrlModal:Ro,visibleDynamicUrlModal:ve,description1:yc,description2:"MS Dynamics 365 URL of your account e.g if you log in to https://mycompany.crm4.dynamics.com then you should input complete URL.",placeholder:"Microsoft Dynamics 365 URL",label:"Microsoft Dynamics 365 URL"}),Object(K.jsx)(it,{title:"ActiveCampaign",titleImage:E.a,isConnectActiveCampaignUrlLoading:es,toggleActiveCampaignUrlModal:Io,visibleActiveCampaignUrlModal:_e,description1:"Click on Submit button to activate the integration.",description2:"ActiveCampaign URL of your account e.g if you log in to https://example.activehosted.com then you should input complete URL.",integrateActiveCampaign:fl}),Object(K.jsx)(ct,{title:"LeadSquared",titleImage:_.a,isConnectLeadSquaredUrlLoading:as,toggleLeadSquaredUrlModal:No,visibleLeadSquaredUrlModal:Te,description1:"Click on Submit button to activate the integration.",description2:"Provide Apikey SecretKey from Lead Squared Account",integrateLeadSquard:os}),Object(K.jsx)(mt,{title:"noCRM",titleImage:C.a,isConnectNoCrmUrlLoading:bs,toggleNoCrmUrlModal:Mo,visibleNoCrmUrlModal:Ne,description1:"Click on Submit button to activate the integration.",description2:"Please Provide Apikey Account Subdomain from noCRM Account",integrateNoCrm:ps}),Object(K.jsx)(bt,{title:"Nutshell",titleImage:R.a,toggleNutShellUrlModal:ko,visibleNutShellUrlModal:Ye,description1:"Click on Submit button to activate the integration.",description2:"Please Provide Apikey SecretKey from Nutshell Account"}),Object(K.jsx)(Fn,{isBitrixModalVisible:bi,setIsBitixModalVisible:pi,description1:"Click on Submit button to activate the integration.",description2:"Bitrix24 URL of your account e.g if you log in to https://mycompany.bitrix24.com then you should input complete URL.",titleImage:P.a,title:ce.b.Bitrix24Title,connectBitrixUrl:function(e){Hc(e)},loading:Ws}),Object(K.jsx)(mn,{title:ce.b.ZendeskTitle,isConnectZendeskLoading:!1,titleImage:S.a,toggleZendeskUrlModal:Xo,visibleZendeskUrlModal:$n,description1:"Click on Submit button to activate the integration.",description2:"Zendesk URL of your account e.g if you log in to https://mycompany.zendesk.com then you should input complete URL."}),Object(K.jsx)(nt,{title:"Freshsales",titleImage:x.a,isConnectFreshsalesUrlLoading:$c,toggleFreshsalesUrlModal:So,visibleFreshsalesUrlModal:Ue,description1:yc,description2:"Enter your Freshsales url, api token and email id.",integrateFreshsales:Xc}),Object(K.jsx)(lt,{title:"Pipeline",titleImage:y.a,togglePipelineModal:Lo,visiblePipelineModal:Fe,description1:yc,description2:"Enter your Pipeline Email Id and API key below"}),Object(K.jsx)(jt,{title:"Copy Api Key And Set To Front",copyableModalVisible:et,setCopyableModalVisible:tt}),Object(K.jsx)(ht,{title:"Salesmate",titleImage:y.a,isConnectSalesmateLoading:!1,toggleSalesmateModal:wo,visibleSalesmateModal:ot,description1:"Click on Submit button to activate the integration.",description2:"Connect your Salesmate account with KrispCall"}),Object(K.jsx)(bn,{title:"Follow Up Boss",titleImage:I,toggleFollowUpBossModal:Qo,visibleFollowUpBossModal:rr,description1:"Streamline lead management and boost conversion rates."}),Object(K.jsx)(jn,{title:"Less Annoying CRM",titleImage:F,toggleLessAnnoying:$o,visibleLessAnnoyingModal:sr,description:"Track leads, and stay on top of follow-ups."}),Object(K.jsx)(_t,{title:"Gong",isConnectGongLoading:!1,titleImage:V.a,toggleGongUrlModal:Bo,visibleGongUrlModal:gt,description1:"Click on Submit button to activate the integration.",description2:"Connect your Gong account with KrispCall"}),Object(K.jsx)(yt,{toggleOnePageUrlModal:qo,visibleOnePageUrlModal:Et}),Object(K.jsx)(ln,{togglePipeLinerUrlModal:Jo,visiblePipeLinerUrlModal:Zn}),Object(K.jsx)(St,{toggleOntraportModal:Uo,visibleOntraportModal:Rt}),Object(K.jsx)(Lt,{toggleFirmaoModal:Do,visibleFirmaoModal:Mt}),Object(K.jsx)(kt,{toggleGorgiasModal:Vo,visibleGorgiasModal:Dt}),Object(K.jsx)(qt,{toggleSalesflareModal:Go,visibleSalesflareModal:Wt}),Object(K.jsx)(zt,{toggleOutplayModal:zo,visibleOutplayModal:cn}),Object(K.jsx)(Jt,{toggleInsightlyModal:Ho,visibleInsightlyModal:xn}),Object(K.jsx)(Vt,{toggleApptivoModal:Fo,visibleApptivoModal:en}),Object(K.jsx)(nn,{toggleEngagebayModal:Wo,visibleEngagebayModal:Mn}),Object(K.jsx)($t,{toggleGoHighLevelModal:Zo,visibleGoHighLevelModal:Rn}),Object(K.jsx)(on,{toggleSellsyModal:Yo,visibleSellsyModal:Un}),Object(K.jsx)(An,{isHaloPSAModalVisible:vr,setIsHaloPSAModalVisible:Ar}),Object(K.jsx)(En,{titleImage:z,title:ce.b.LiveSpaceTitle,isLiveSpaceModalVisible:Pr,setIsLiveSpaceModalVisible:yr}),Object(K.jsx)(Cn,{titleImage:H,title:ce.b.LoxoTitle,isLoxoModalVisible:Nr,setIsLoxoModalVisible:Lr}),Object(K.jsx)(yn,{isKonnektiveModalVisible:Br,setIsKonnektiveModalVisible:qr,titleImage:Z,title:ce.b.KonnektiveTitle}
1),Object(K.jsx)(Sn,{isCrispchatModalVisible:Gr,setIsCrispchatModalVisible:zr}),Object(K.jsx)(hn,{toggleKylasModal:ec,visibleKylasModal:pr}),Object(K.jsx)(wn,{isClozeFormModalVisible:Yr,setIsClozeFormModalVisible:Xr}),Object(K.jsx)(Bn,{isRecruitCrmModalVisible:ti,setIsRecruitCrmModalVisible:ri}),Object(K.jsx)(Dn,{isVtigerModalVisible:ci,setIsVtigerModalVisible:li}),Object(K.jsx)(Zr,{isHaloCRMModalVisible:Oi,setIsHaloCRMModalVisible:vi}),Object(K.jsx)(Wn,{isPcRecruiterCrmModalVisible:yi,setIsPcRecruiterCrmModalVisible:Ti}),Object(K.jsx)(Xn,{isDeskproModalVisible:wi,setIsDeskproModalVisible:Mi}),Object(K.jsx)(cr,{podioOrganizations:Bi,setPodioOrganizations:qi,isPodioOrganizationLoading:el,isPodioModalVisible:Vi,setIsPodioModalVisible:Gi,crmId:mc||""}),Object(K.jsx)(br,{isBoldDeskModalVisible:Ji,setIsBoldDeskModalVisible:Xi}),Object(K.jsx)(dr,{isOdooModalVisible:Hi,setIsOdoModalVisible:Zi}),Object(K.jsx)(jr,{setIsFreshServiceModalVisible:ta,isFreshServiceModalVisible:ea}),Object(K.jsx)(Or,{isFolkModalVisible:ia,setIsFolkModalVisible:aa}),Object(K.jsx)(xr,{isRecruiterFlowModalVisible:sa,setIsRecruiterFlowModalVisible:la}),Object(K.jsx)(Cr,{isManatalModalVisible:ua,setIsManatalModalVisible:ba}),Object(K.jsx)(Tr,{isTeamtailorModalVisible:ja,setIsTeamtailorModalVisible:ga}),Object(K.jsx)(Ir,{isCreatioModalVisible:va,setIsCreatioModalVisible:Aa}),Object(K.jsx)(wr,{isOnpipelineModalVisible:_a,setIsOnpipelineModalVisible:Ca}),Object(K.jsx)(Kr,{isFlowluModalVisible:Ta,setIsFlowluModalVisible:Ra}),Object(K.jsx)(Dr,{isAshbyModalVisible:Na,setIsAshbyModalVisible:La}),Object(K.jsx)(Fr,{isAffinityModalVisible:ka,setIsAffinityModalVisible:Ka}),Object(K.jsx)(Jr,{isWeekmateModalVisible:Ua,setIsWeekmateModalVisible:Da}),Object(K.jsx)($r,{isSpechyModalVisible:Fa,setIsSpechyModalVisible:za}),Object(K.jsx)(ni,{isBrevoModalVisible:Wa,setIsBrevoModalVisible:Ya}),Object(K.jsx)(ai,{isLiveAgentModalVisible:Qa,setIsLiveAgentModalVisible:$a}),Object(K.jsx)(si,{isFormitizeModalVisible:oo,setIsFormitizeModalVisible:co}),Object(K.jsx)(ui,{isTrackerRMSModalVisible:mo,setIsTrackerRMSModalVisible:uo}),Object(K.jsx)(fi,{isKarmaCrmModalVisible:fo,setIsKarmaCrmModalVisible:jo}),Object(K.jsx)(hi,{isAgileCrmModalVisible:Oo,setIsAgileCrmModalVisible:vo}),Object(K.jsx)(Ai,{isDeskuModalVisible:Eo,setIsDeskuModalVisible:_o}),Object(K.jsx)(Pi,{isConstantContactModalVisible:no,setIsConstantContactModalVisible:ro}),Object(K.jsx)(Ri,{isShopifyModalVisible:yo,setIsShopifyModalVisible:To})]})]})};function Li(){return Object(K.jsx)(le,{children:Object(K.jsx)(Ni,{})})}}}]); 2//# sourceMappingURL=64.8b7f1fb2.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.