1(this["webpackJsonpoptx-web"]=this["webpackJsonpoptx-web"]||[]).push([[35,56],{1798:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),c=n.n(a).a.createContext({step:0,setStep:function(e){},title:"",setTitle:function(e){},submitForm:null,setSubmitForm:function(e){},cadence:void 0,setCadence:function(e){},selectedContacts:[],setSelectedContacts:function(e){},addon:void 0,setAddon:function(e){},isAddon:!1,setIsAddon:function(e){},errors:[],setErrors:function(e){}})},1806:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var a=n(3),c=(n(0),n(9)),i=n(24),l=n(34),o=n.n(l),s=n(657),r=n(70),d=n(36),u=n(551),b=n(73),j=n(226),p=n(1803),O=n(1),v=function(e){var t=e.visible,n=e.contactData,l=e.onCancel,v=e.maxEmails,f=e.shouldResolve,m=e.isEtBulk,h=e.isExtension,_=void 0!==h&&h,y=Object(c.e)(),x=Object(c.f)(b.e.companyIndividualEdit.getAllOptions),g=s.d;return Object(O.jsx)(p.a,{type:"add",visible:t,onCancel:function(){window.pendo.track(d.A.companyPage.cancel),l()},onSubmit:function(e){var t=Object(a.a)({},e),c=t.emails,s=Object(a.a)(Object(a.a)({},t),{},{email:c.filter((function(e){return""!==e.email})).map((function(e){return e.email})).join(","),person_id:null===n||void 0===n?void 0:n.person_id,company_name:null===n||void 0===n?void 0:n.company_name,company_url:null===n||void 0===n?void 0:n.company_url,company_id:null===n||void 0===n?void 0:n.company_id,tenure_start_date:t.tenure_start_date?o()(t.tenure_start_date).format(r.a):null,tenure_end_date:t.tenure_end_date&&t.tenure_end_date!==r.e?o()(t.tenure_end_date).format(r.a):null,is_edited:!0,primary_email:null===n||void 0===n?void 0:n.email,phones:Object(u.e)(t,null===x||void 0===x?void 0:x.person_phone_type.received_values),additional_phones:Object(u.e)(t,null===x||void 0===x?void 0:x.person_phone_type.received_values),source_db:null===n||void 0===n?void 0:n.source_db});Object(i.isEqual)(g,e)||(window.pendo.track(d.A.companyPage.save),y(j.a.addContact({contact:s,shouldResolve:f,isEtBulk:m}))),l()},initialValues:g,maxEmails:v,isExtension:_})}},1815:function(e,t,n){"use strict";n.d(t,"b",(function(){return se})),n.d(t,"a",(function(){return me}));var a,c,i,l=n(3),o=(n(112),n(42),n(22)),s=n(0),r=n(9),d=(n(95),n(23),n(15),n(72),n(294)),u=n(1),b=(n(153),n(44)),j=(n(188),n(45)),p=(n(1788),n(1789)),O=(n(1328),n(550)),v=(n(609),n(256)),f=(n(549),n(232)),m=(n(754),n(273)),h=n(103),_=n(358),y=n(5),x=n(12),g=n(11),C=(n(178),n(85)),S=n(68),w=function(e){var t=e.group;return Object(u.jsxs)("span",{className:"d-flex align-items-center",children:[Object(u.jsx)(S.a,{title:t.text,children:Object(u.jsx)("span",{className:"text-ellipsis",children:t.text})}),!(null!==t&&void 0!==t&&t.type)&&Object(u.jsx)(C.a,{color:"gold",className:"ml-1",children:"ET"})]})},k=m.a.Option,T=Object(g.default)(m.a)(a||(a=Object(x.a)(["\n .ant-select-selection-item {\n gap: 5px;\n }\n"]))),I=function(e){var t=e.dealTeamLead,n=e.initialFormData,a=Object(s.useState)([]),c=Object(y.a)(a,2),i=c[0],l=c[1],o=Object(s.useState)([]),b=Object(y.a)(o,2),j=b[0],p=b[1],O=Object(r.f)(d.d.getFormValues);Object(s.useEffect)((function(){var e,a=n["Deal Team Lead"].received_values.find((function(e){return e.itemId===t}));l(a?a.groups:[]),n.Groups.from_database?p(n.Groups.from_database.map((function(e){return Number(e)}))):null!==O&&void 0!==O&&null!==(e=O.Groups)&&void 0!==e&&e.length?p(O.Groups):p([])}),[t,O.Groups,n]);return Object(u.jsx)(T,{name:"Groups",mode:"multiple",disabled:!(i.length>0),placeholder:"Please select Groups/Watchlists",value:j,onChange:function(e){p(e)},filterOption:_.c,dropdownMatchSelectWidth:200,children:i.map((function(e,t){return Object(u.jsx)(k,{value:e.itemId,children:Object(u.jsx)(w,{group:e})},t)}))})},q=(n(458),n(194)),F=n(24),D=["className","formItem","fieldName","fieldKey","readOnly"],N=function(e){var t=e.className,n=e.formItem,a=e.fieldName,c=(e.fieldKey,e.readOnly),i=Object(o.a)(e,D),r=Object(h.g)({name:"Description"}),d=Object(y.a)(r,3),b=d[0],j=d[2],p=n.meta.sources,O=p.descriptions,m=p.options,_=p.label,x=Object(s.useMemo)((function(){var e;
1return m.length&&Object(F.forEach)(O,(function(t,n){if(t===b.value)return e=n,!1})),e}),[O,m.length,b.value]);return Object(u.jsxs)(u.Fragment,{children:[m.length&&Object(u.jsx)(f.a.Item,{name:a,label:_,children:Object(u.jsx)(q.a,{placeholder:"Please select ".concat(a),onChange:function(e){j.setValue(O[e]||"")},options:m,value:x,disabled:c})}),Object(u.jsx)(f.a.Item,Object(l.a)(Object(l.a)({className:t,label:n.label,required:n.is_required},i),{},{children:Object(u.jsx)(v.a.TextArea,{name:a,rows:n.rows||1,disabled:c})}),a)]})},E=n(198),A=n(709),V=n(251),P=n(20),R=n(96),L=n(193),B={AsyncWrapper:g.default.div(c||(c=Object(x.a)(["\n .multiselect-select__control {\n border: 1px solid #d9d9d9;\n border-radius: 0;\n\n .multiselect-select__value-container {\n padding-left: 34px;\n height: 40px;\n\n .multiselect-select__value-container__icon {\n position: absolute;\n top: 10px;\n left: 12px;\n height: 14px;\n }\n\n .multiselect-select__single-value {\n max-width: calc(100% - 6px);\n }\n }\n\n .multiselect-select__indicator-separator {\n display: none;\n }\n }\n"])))},G=n(1798),W=n(169),M=function(e){return Object(u.jsx)(E.z.DropdownIndicator,Object(l.a)(Object(l.a)({},e),{},{children:Object(u.jsx)(A.a,{})}))},z=function(e){var t=e.children;return Object(u.jsx)("div",{className:"multiselect-select__single-value",children:Object(u.jsx)(S.a,{title:t,placement:"topLeft",children:t})})},K=function(e){var t=e.name,n=e.readOnly,a=Object(r.f)(R.a.equityTouch.getCompanyData),c=Object(r.f)(R.a.equityTouch.getCompanies),i=Object(r.f)(R.a.equityTouch.getBulkValues),l=Object(r.f)(R.a.equityTouch.getTemporaryData),o=Object(s.useState)([]),d=Object(y.a)(o,2),b=d[0],j=d[1],p=Object(s.useState)(),O=Object(y.a)(p,2),v=O[0],f=O[1],m=Object(h.g)(t),_=Object(y.a)(m,3)[2],x=Object(s.useContext)(G.a),g=x.step,C=x.addon,S=Object(L.a)({endpoint:V.e}).loadOptions;Object(s.useEffect)((function(){if(Object.keys(a).length){var e,t,n=null===c||void 0===c||null===(e=c[null===a||void 0===a?void 0:a.company_id])||void 0===e?void 0:e["Add-On For"];if(f(n),_.setValue(n),null!==l&&void 0!==l&&l.step2)(null===(t=l.step2[null===a||void 0===a?void 0:a.company_id])||void 0===t?void 0:t["Add-On For"])!==v&&(f(n),_.setValue(n))}if(0===g){var o,s=i["Add-On For"]||C||(null===(o=l.step1)||void 0===o?void 0:o["Add-On For"]);f(s),_.setValue(s)}}),[c,a]);var w=Object(F.debounce)((function(e,t){e.length>=P.f&&S(e,(function(e){var n=t(e);return j(e),n}))}),300);return Object(u.jsx)(B.AsyncWrapper,{children:Object(u.jsx)(W.b,{className:"addon--multiselect-async",cacheOptions:!0,components:{DropdownIndicator:M,SingleValue:z},loadOptions:w,defaultOptions:b,defaultValue:v,getOptionValue:function(e){var t;return(null===(t=e.id)||void 0===t?void 0:t.toString())||""},onChange:function(e){f(e),_.setValue(e)},maxLength:500,loadingMessage:function(e){return e.inputValue.length>2?"Loading...":"Begin typing"},onSelectResetsInput:!1,blurInputOnSelect:!1,closeOnSelect:!0,isDisabled:n,autoFocus:!1})})},U=function(e){var t=e.name,n=e.label,a=e.disabled,c=Object(s.useContext)(G.a),i=c.step,l=c.addon,o=Object(r.f)(R.a.equityTouch.getCompanyData),d=Object(r.f)(R.a.equityTouch.getCompanies),b=Object(r.f)(R.a.equityTouch.getBulkValues),j=Object(r.f)(R.a.equityTouch.getTemporaryData),p=Object(s.useState)(!1),v=Object(y.a)(p,2),f=v[0],m=v[1],_=Object(h.g)(t),x=Object(y.a)(_,3)[2];Object(s.useEffect)((function(){if(Object.keys(o).length){var e,t,n=!(null===d||void 0===d||null===(e=d[null===o||void 0===o?void 0:o.company_id])||void 0===e||!e["Add-On"]);if(m(n),x.setValue(n),null!==j&&void 0!==j&&j.step2)!(null===(t=j.step2[null===o||void 0===o?void 0:o.company_id])||void 0===t||!t["Add-On"])!==f&&(m(n),x.setValue(n))}if(0===i){var a,c=!!(b["Add-On"]||l&&l.length||null!==(a=j.step1)&&void 0!==a&&a["Add-On"]);m(c),x.setValue(c)}}),[d,o]);return Object(u.jsx)(O.a,{onChange:function(e){var t=e.target.checked;m(t),x.setValue(t)},checked:f,name:t,disabled:a,children:n})},$=m.a.Option,Y=Object(g.default)(m.a)(i||(i=Object(x.a)(["\n .ant-select-selection-item {\n gap: 5px;\n }\n"]))),J=function(e){var t=e.readOnly,n=e.step,a=Object(r.f)(R.a.equityTouch.getFormData),c=Object(r.f)(R.a.equityTouch.getCompanyData),i=Object(r.f)(R.a.equityTouch.getCompanies),l=Object(s.useState)([]),o=Object(y.a)(l,2),d=o[0],b=o[1],j=Object(s.useState)([]),p=Object(y.a)(j,2),O=p[0],v=p[1],f=Object(h.h)().values["Deal Team Lead"],m=Object(h.g)("Groups"),x=Object(y.a)(m,3)[2];return Object(s.useEffect)((function(){var e=a["Deal Team Lead"].received_values.find((function(e){return e.itemId===f}));b(e?e.groups:[]),a.Groups.from_database?v(a.Groups.from_database.map((function(e){return Number(e)}))):v([])}),[f,a]),Object(s.useEffect)((function(){if(Object.keys(c).length&&1!==n){var e=null===i||void 0===i?void 0:i[c.company_id].Groups;Array.isArray(e)&&(v(e),x.setValue(e))}}),[i,c]),Object(u.jsx)(Y,{name:"Groups",mode:"multiple",defaultValue:O,disabled:t||!(d.length>0),placeholder:"Please select Groups/Watchlists",filterOption:_.c,showSearch:!0,children:d.map((function(e,t){return Object(u.jsx)($,{value:e.itemId,children:Object(u.jsx)(w,{group:e})},t)}))})},X=m.a.Option,H=function(e){var t,n=e.field,a=e.fieldItem,c=e.readOnly,i=Object(h.g)("Groups"),l=Object(y.a)(i,3)[2];return Object(u.jsxs)(m.a,{name:n,placeholder:"Please select ".concat(n),onChange:function(){l.
1setValue([])},defaultValue:null===a||void 0===a||null===(t=a.database_matched)||void 0===t?void 0:t.itemId,disabled:c,filterOption:_.c,showSearch:!0,children:[!a.is_required&&Object(u.jsx)(X,{value:"",children:"Please select ".concat(n)}),a.received_values.map((function(e,t){return Object(u.jsx)(X,{value:e.itemId,children:e.text},t)}))]})},Q=function(e){var t=e.children;return Object(u.jsx)("div",{className:"multiselect-select__single-value",children:Object(u.jsx)(S.a,{title:t,placement:"topLeft",children:t})})},Z=function(e){return Object(u.jsx)(E.z.DropdownIndicator,Object(l.a)(Object(l.a)({},e),{},{children:Object(u.jsx)(A.a,{})}))},ee=function(e){var t=e.name,n=(e.initialValue,Object(h.g)(t)),a=Object(y.a)(n,3),c=a[0],i=a[2],l=Object(s.useState)([]),o=Object(y.a)(l,2),r=o[0],d=o[1],b=Object(s.useState)([]),j=Object(y.a)(b,2),p=j[0],O=j[1],v=Object(L.a)({endpoint:V.e}).loadOptions,f=Object(F.debounce)((function(e,t){e.length>=P.f&&v(e,(function(e){var n=t(e);return d(e),n}))}),300);return Object(s.useEffect)((function(){if(c.value&&c.value.length!==p.length){var e=c.value.map((function(e){return{label:e.label,value:e.label}}));O(e)}}),[c.value,p.length]),Object(u.jsx)(B.AsyncWrapper,{children:Object(u.jsx)(W.b,{className:"addon--multiselect-async",cacheOptions:!0,components:{DropdownIndicator:Z,SingleValue:Q},loadOptions:f,defaultOptions:r,defaultValue:p,getOptionValue:function(e){var t;return(null===(t=e.id)||void 0===t?void 0:t.toString())||""},onChange:function(e){O(e),i.setValue(e.map((function(e){return{label:e.value,value:e.id}})))},maxLength:500,loadingMessage:function(e){return e.inputValue.length>2?"Loading...":"Begin typing"},onSelectResetsInput:!1,blurInputOnSelect:!1,closeOnSelect:!0})})},te=function(e){var t=e.name,n=e.initialValue,a=Object(h.g)(t),c=Object(y.a)(a,3),i=c[0],l=c[2],o=Object(s.useState)([]),r=Object(y.a)(o,2),d=r[0],b=r[1],j=Object(s.useState)([]),p=Object(y.a)(j,2),O=p[0],v=p[1],f=Object(L.a)({endpoint:V.b}).loadOptions,m=Object(s.useCallback)((function(){var e,t=n.from_database.map((function(e){return{value:null===e||void 0===e?void 0:e.category,label:null===e||void 0===e?void 0:e.category,isValid:null===e||void 0===e?void 0:e.is_valid}}));null!==i&&void 0!==i&&null!==(e=i.value)&&void 0!==e&&e.length&&(t=i.value.map((function(e){return{value:null===e||void 0===e?void 0:e.category,label:null===e||void 0===e?void 0:e.category,isValid:null===e||void 0===e?void 0:e.is_valid}}))),v(t)}),[n.from_database]);Object(s.useEffect)((function(){m()}),[m]);var _=Object(F.debounce)((function(e,t){e.length>=P.f&&f(e,(function(e){var n=t(e);return b(e),n}))}),300);return Object(u.jsx)(B.AsyncWrapper,{children:Object(u.jsx)(W.b,{className:"addon--multiselect-async",cacheOptions:!0,loadOptions:_,defaultOptions:d,defaultValue:O,onChange:function(e){v(e),l.setValue(e.map((function(e){return{category:e.value,is_valid:!1!==e.isValid||e.isValid}})))},maxLength:500,loadingMessage:function(e){return e.inputValue.length>2?"Loading...":"Begin typing"},onSelectResetsInput:!1,blurInputOnSelect:!1,closeOnSelect:!0})})},ne=["Investors","Equity Check","Funding","Employee Count","FTEs"],ae="This field is unique per company",ce=["City","State","Country","Deal Team Lead","Stage","Equity Check","Fund","Sector"],ie=m.a.Option,le=function(e){var t=e.value,n=e.label;return Object(u.jsx)(ie,{value:t,title:"",children:Object(u.jsx)(S.a,{className:"truncate-tooltip",title:n,placement:"topLeft",children:n})},t)},oe=function(e){var t=e.field,n=e.initialFormData,a=e.readOnly,c=e.step,i=window.location.href.includes("bulk"),o=n[t],s="equity-touch-field__".concat(t.split(" ").join("-").toLowerCase()),r=1===c&&ne.includes(t),d=Object(h.h)(),b=d.values,j=b["Deal Team Lead"],y=b.Sector,x=d.setFieldValue,g=d.setFieldTouched;if(!t||!o)return null;var C,S,w,k=o.is_required||!!ce.find((function(e){return e===t}));if("Groups"===t)return Object(u.jsx)(f.a.Item,{className:s,name:t,label:o.label,required:k,children:i?Object(u.jsx)(J,{readOnly:a,step:c}):Object(u.jsx)(I,{dealTeamLead:j,initialFormData:n})},t);if("select"===o.type&&("Country"===t||"State"===t))return Object(u.jsx)(f.a.Item,{className:s,name:t,label:o.label,required:k,children:Object(u.jsxs)(m.a,{name:t,showSearch:!0,filterOption:_.c,placeholder:"Please select ".concat(t),defaultValue:null===o||void 0===o||null===(C=o.database_matched)||void 0===C?void 0:C.itemId,disabled:a,children:[!
1o.is_required&&Object(u.jsx)(ie,{value:"",title:"",children:"Please select ".concat(t)}),o.received_values.map((function(e){var t=e.text;return le({value:t,label:t})}))]})},t);if("select"===o.type&&"Stage"===t)return Object(u.jsx)(f.a.Item,{className:s,name:t,label:o.label,required:k,children:Object(u.jsxs)(m.a,{name:t,placeholder:"None",disabled:a,filterOption:_.c,showSearch:!0,children:[!o.is_required&&Object(u.jsx)(ie,{value:"",title:"",children:"None"}),o.received_values.map((function(e){var t=e,n=t.itemId,a=t.text;return le({value:n,label:a})}))]})},t);if("select"===o.type&&"Deal Team Lead"===t)return Object(u.jsx)(f.a.Item,{className:s,name:t,label:o.label,required:k,children:i?Object(u.jsx)(H,{field:"Deal Team Lead",fieldItem:o,readOnly:a}):Object(u.jsxs)(m.a,{name:t,placeholder:"Please select ".concat(t),filterOption:_.c,showSearch:!0,children:[!o.is_required&&Object(u.jsx)(ie,{value:"",title:"",children:"Please select ".concat(t)}),o.received_values.map((function(e){var t=e,n=t.itemId,a=t.text;return le({value:n,label:a})}))]})},t);if("select"===o.type&&"Sub-Sector"===t){var T,q=y,F=o.received_values;return q&&(F=F.filter((function(e){return e.parentId===q}))),Object(u.jsx)(f.a.Item,{name:t,label:o.label,required:k,style:{position:"relative"},children:Object(u.jsx)(m.a,{name:t,placeholder:"Please select ".concat(t),disabled:a,filterOption:_.c,defaultValue:null===o||void 0===o||null===(T=o.database_matched)||void 0===T?void 0:T.itemId,showSearch:!0,children:F.map((function(e){var t=e,n=t.itemId,a=t.text;return le({value:n,label:a})}))})},t)}if("select"===o.type&&"Country"!==t&&"State"!==t)return Object(u.jsx)(f.a.Item,{name:t,label:o.label,required:k,children:Object(u.jsxs)(m.a,{name:t,placeholder:"Please select ".concat(t),disabled:a,onChange:function(e){"Sector"===t&&(x("Sub-Sector",null),g("Sub-Sector",!0)),x(t,e)},onBlur:function(){g(t,!0)},filterOption:_.c,defaultValue:null===o||void 0===o||null===(S=o.database_matched)||void 0===S?void 0:S.itemId,showSearch:!0,children:[!o.is_required&&Object(u.jsx)(ie,{value:"",title:"",children:"Please select ".concat(t)}),o.received_values.map((function(e){var t=e,n=t.itemId,a=t.text;return le({value:n,label:a})}))]})},t);if("select_suggest"===o.type&&"Product Category"!==t)return Object(u.jsx)(f.a.Item,{name:t,label:o.label,className:s,required:k,children:i?Object(u.jsx)(K,{name:t,readOnly:a}):Object(u.jsx)(ee,{name:t,initialValue:n[t]})},t);if("Description"===t&&"textarea"===o.type)return Object(u.jsx)(N,{className:s,fieldName:t,formItem:o,name:t,readOnly:a},t);if("select_suggest"===o.type&&"Product Category"===t)return Object(u.jsx)(f.a.Item,{name:t,label:o.label,className:s,required:k,children:Object(u.jsx)(te,{name:t,initialValue:o})},t);if("textarea"===o.type)return w=null===o.from_database?"":"object"===typeof o.from_database?Array.isArray(o.from_database)?o.from_database.join(", "):JSON.stringify(o.from_database):o.from_database.toString(),Object(u.jsxs)(f.a.Item,{className:s,name:t,label:o.label,required:k,children:[Object(u.jsx)(v.a.TextArea,Object(l.a)({name:t,rows:o.rows||1,disabled:a||(null===o||void 0===o?void 0:o.disabled)||r,defaultValue:r?"":w},r&&{value:""})),null!==o&&void 0!==o&&o.additional_message||r?Object(u.jsx)("div",{className:"additional-message",children:null!==o&&void 0!==o&&o.additional_message?o.additional_message:ae}):null]},t);if("checkbox"===o.type)return Object(u.jsx)(f.a.Item,{className:s,name:t,label:" ",valuePropName:"from_database",required:k,children:i?Object(u.jsx)(U,{name:t,label:o.label,disabled:a}):Object(u.jsx)(O.a,{name:t,disabled:a,children:o.label})},t);if("number"===o.type){var D="number"===typeof(null===o||void 0===o?void 0:o.from_database)?o.from_database:void 0;return"Equity Check"!==o.label&&"Equity Check"!==t||(D="number"===typeof(null===o||void 0===o?void 0:o.from_database)?o.from_database/1e6:0),Object(u.jsxs)(f.a.Item,{className:s,name:t,label:o.label,required:k,children:[Object(u.jsx)(p.a,Object(l.a)({name:t,onWheel:function(e){return e.target.blur()},type:"number",disabled:a||(null===o||void 0===o?void 0:o.disabled)||r,defaultValue:r?void 0:D},r&&{value:void 0})),null!==o&&void 0!==o&&o.additional_message||r?Object(u.jsx)("div",{className:"additional-message",children:null!==o&&void 0!==o&&o.additional_message?o.additional_message:ae}):null]},t)}return Object(u.jsx)(f.a.Item,{className:s,name:t,label:o.label,required:k,children:Object(u.jsx)(v.a,{name:t,disabled:a||o.disabled})},t)},se=function(e){var t=e.fields,n=e.initialFormData,a=e.readOnly,c=e.step;return document.querySelectorAll("div.ant-col.ant-form-item-label label").forEach((function(e){e.removeAttribute("title")})),document.querySelectorAll("span.ant-select-selection-item").forEach((function(e){e.removeAttribute("title")})),Object(u.jsx)(u.Fragment,{children:t.map((function(e,t){switch(e.length){case 2:return Object(u.jsxs)(b.a,{gutter:50,children:[Object(u.jsx)(j.a,{span:12,children:Object(u.jsx)(oe,{readOnly:a,field:e[0],initialFormData:n,step:c})}),Object(u.jsx)(j.a,{span:12,children:Object(u.jsx)(oe,{readOnly:a,field:e[1],initialFormData:n,step:c})})]},t);case 3:return Object(u.jsxs)(b.a,{gutter:50,children:[Object(u.jsx)(j.a,{span:12,children:Object(u.jsx)(oe,{readOnly:a,field:e[0],initialFormData:n,step:c})}),Object(u.jsx)(j.a,{span:12,children:Object(u.jsxs)(b.a,{gutter:16,children:[Object(u.jsx)(j.a,{span:12,children:Object(u.jsx)(oe,{readOnly:a,field:e[1],initialFormData:n,step:c})}),Object(u.jsx)(j.a,{span:12,children:Object(u.jsx)(oe,{readOnly:a,field:e[2],initialFormData:n,step:c})})]})})]},t);default:return Object(u.jsx)(b.a,{children:Object(u.jsx)(j.a,{span:24,children:Object(u.jsx)(oe,{readOnly:a,field:e[0],initialFormData:n,step:c})})},t)}}))})},re=n(34),de=n.n(re),ue=n(657),be=n(70),je=n(551),pe=n(521),Oe=n(73),ve=n(189),fe=n(1803),me=function(e){var t=e.visible,n=e.contactData,a=e.onCancel,c=window.location.href.includes("equity-touch-bulk"),i=Object(r.e)(),o=Object(r.f)(Oe.e.companyIndividualEdit.getAllOptions),s=Object(r.f)(Oe.e.companyIndividualEdit.phoneOptions),b=ue.d;if(n){var j,p=n.display_location||("string"===typeof n.location?n.location:null===(j=n.location)||void 0===j?void 0:j.label);b={first_name:n.first_name,last_name:n.last_name,title:n.title,additional_phones:Object(je.d)(n,s),tenure_start_date:n.tenure_start_date,tenure_end_date:n.tenure_end_date===be.e?null:n.tenure_end_date,linkedin:n.linkedin,primary_contact:n.primary_contact||!1,emails:Object(pe.e)(n.email),email:null,psg_function:Object(je.f)(null===n||void 0===n?void 0:n.psg_function),slack_channel:Object(je.f)(null===n||void 0===n?void 0:n.slack_channel),portfolio_executive:n.portfolio_executive,source_db:n.source_db,location:p?{label:p,value:n.place_id||""}:null}}return Object(u.jsx)(fe.a,{type:"edit",visible:t,onCancel:a,onSubmit:function(e){var t=Object(l.a)({},e),s=t.emails,r=e.psg_function,u=e.slack_channel,j=r?r.map((function(e){return"string"===typeof e?e:e.value})):[],p=u?null===u||void 0===u?void 0:u.map((function(e){return"string"===typeof e?e:e.value})):[],O=Object(l.a)(Object(l.a)({},t),{},{psg_function:j||[],slack_channel:j?p:[],email:s.filter((function(e){return""!==e.email})).map((function(e){return e.email})).join(","),person_id:null===n||void 0===n?void 0:n.person_id,company_id:null===n||void 0===n?void 0:n.company_id,tenure_start_date:t.tenure_start_date?de()(t.tenure_start_date).format(be.a):null,tenure_end_date:t.tenure_end_date&&t.tenure_end_date!==be.e?de()(t.tenure_end_date).format(be.a):t.tenure_end_date===be.e?t.tenure_end_date:null,is_edited:!0,phones:Object(je.e)(t,null===o||void 0===o?void 0:o.person_phone_type.received_values),additional_phones:void 0,soure_db:null===n||void 0===n?void 0:n.source_db});Object(F.isEqual)(b,e)||(i(d.a.saveContact(O,(function(){a()}))),c&&i(ve.a.updateBulkContactSuccess(O)))},initialValues:b})}},1825:function(e,t,n){"use strict";n(432);var a=n(208),c=(n(0),n(1));t.a=function(e){var t=e.isSelected;return Object(c.jsx)(a.a,{checked:t})}},1836:function(e,t,n){"use strict";n(178);var a,c,i=n(85),l=(n(188),n(45)),o=(n(118),n(49)),s=(n(153),n(44)),r=n(12),d=(n(102),n(35)),u=(n(0),n(11)),b=n(1),j=d.a.Text,p=Object(u.default)(s.a)(a||(a=Object(r.a)(["\n flex-flow: row nowrap;\n .contact-option__name {\n width: calc(50%);\n }\n ","\n .ant-typography {\n max-width: 100%;\n }\n .contact-option__title {\n width: calc(50% - 22px);\n text-align: right;\n margin-left: 10px;\n }\n"])),(function(e){return e.$isPrimary&&Object(u.css)(c||(c=Object(r.a)(["\n .contact-option__name {\n width: calc(50% - 57px);\n }\n "])))}));t.a=function(e){var t=e.contact,n=t.first_name,a=t.last_name,c=t.title,s=t.primary_contact,r="".concat(n," ").concat(a);return Object(b.jsxs)(p,{justify:"space-between",$isPrimary:s,children:[Object(b.jsx)(l.a,{className:"contact-option__name",children:Object(b.jsx)(o.a,{title:r,children:Object(b.jsx)(j,{ellipsis:!0,children:r})})}),s&&Object(b.jsx)(l.a,{children:Object(b.jsx)(i.a,{color:"blue",children:"Primary"})}),Object(b.jsx)(l.a,{className:"contact-option__title",children:Object(b.jsx)(o.a,{title:c,children:Object(b.jsx)(j,{ellipsis:!0,children:c})})})]})}},1837:function(e,t,n){"use strict";n(178);var a=n(85),c=(n(0),n(1));t.a=function(e){var t,n,i,l,o,s,r,d,u=e.label;
1return Object(c.jsxs)("span",{className:"d-inline-flex",style:{maxWidth:"100%",alignItems:"center"},children:[Object(c.jsx)("span",{className:"text-ellipsis",children:(null===u||void 0===u||null===(t=u.props)||void 0===t||null===(n=t.contact)||void 0===n?void 0:n.full_name)||"".concat(null===u||void 0===u||null===(i=u.props)||void 0===i||null===(l=i.contact)||void 0===l?void 0:l.first_name," ").concat(null===u||void 0===u||null===(o=u.props)||void 0===o||null===(s=o.contact)||void 0===s?void 0:s.last_name)}),(null===u||void 0===u||null===(r=u.props)||void 0===r||null===(d=r.contact)||void 0===d?void 0:d.primary_contact)&&Object(c.jsx)("span",{className:"flex-grow-1",children:Object(c.jsx)(a.a,{color:"blue",children:"Primary"})})]})}},1838:function(e,t,n){"use strict";n(458);var a,c,i,l,o=n(194),s=n(12),r=n(11),d=Object(r.createGlobalStyle)(a||(a=Object(s.a)(["\n .contact-option {\n .ant-tag {\n margin: 0 5px;\n }\n .ant-select-item-option-content {\n order: 2;\n }\n .ant-select-item-option-state {\n order: 1;\n margin-right: 12px;\n }\n }\n"]))),u=Object(r.default)(o.a)(c||(c=Object(s.a)(["\n width: 100%;\n border: 1px solid #d9d9d9;\n\n .ant-select-selector {\n .ant-select-selection-search {\n opacity: 0;\n }\n .ant-select-selection-search-input {\n padding: 0;\n }\n }\n &.ant-select-open {\n .ant-select-selector {\n .ant-select-selection-placeholder,\n .ant-select-selection-overflow-item:not(.ant-select-selection-overflow-item-suffix) {\n display: none;\n }\n .ant-select-selection-search {\n opacity: 1;\n }\n }\n }\n .ant-select-selection-overflow-item + .ant-select-selection-overflow-item:before {\n content: ', ';\n }\n .ant-select-selection-overflow-item + .ant-select-selection-overflow-item-suffix:before {\n display: none;\n }\n &.ant-select .ant-select-selector {\n display: flex;\n flex-wrap: nowrap;\n }\n .ant-select-selection-overflow {\n min-height: 38px;\n flex-wrap: nowrap;\n text-overflow: ellipsis;\n display: block;\n overflow: hidden;\n .ant-select-selection-overflow-item {\n display: inline-block;\n }\n }\n .ant-select-arrow {\n z-index: 1;\n top: 46%;\n\n .anticon svg {\n width: 12px;\n height: 12px;\n }\n }\n .ant-select-selector span {\n pointer-events: none;\n }\n .ant-select-selector span.flex-grow-1 {\n margin-top: -3px;\n }\n .ant-select-selector {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n display: inline-block;\n width: 100%;\n z-index: 1;\n padding: 0 30px 0 11px !important;\n font-size: 16px;\n color: #334d6e;\n line-height: 38px;\n\n ","\n\n .ant-tag {\n margin: 0 0 0 5px;\n }\n .ant-select-selection-search {\n position: absolute;\n bottom: 3px;\n }\n & > span {\n z-index: -1;\n &:not(:first-child):not(.ant-select-selection-placeholder):not(\n .ant-select-selection-search\n ):before {\n content: ', ';\n }\n }\n }\n\n ","\n"])),(function(e){return e.$verticalAlign&&Object(r.css)(i||(i=Object(s.a)(["\n vertical-align: bottom;\n "])))}),(function(e){return e.$isCell&&Object(r.css)(l||(l=Object(s.a)(["\n width: 100%;\n border: 0;\n background-color: inherit;\n display: flex;\n align-items: center;\n\n .ant-select-selector {\n width: 100%;\n padding: 1px 6px;\n border: 0;\n color: #1890ff;\n background-color: transparent;\n\n .ant-select-selection-placeholder {\n left: 0;\n }\n }\n\n .ant-select-selection-placeholder {\n color: #1890ff;\n }\n\n .ant-select-arrow {\n height: 100%;\n width: 30px;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 0;\n right: 0;\n top: 0;\n background: inherit;\n transition: background 0.25s ease-out;\n\n .anticon svg {\n color: #1890ff;\n width: 16px;\n height: 16px;\n }\n }\n "])))}));t.a={ContactSelectGlobal:d,SelectWrapper:u}},1842:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return q})),n.d(t,"c",(function(){return P}));n(292);var a,c=n(165),i=(n(808),n(556)),l=(n(112),n(42)),o=n(3),s=n(5),r=n(0),d=n(9),u=n(744),b=n(275),j=n(551),p=n(521),O=n(465),v=n(345),f=n(1815),m=n(1),h=function(e,t,n){var a=Object(d.e)(),h=Object(r.useState)(!1),_=Object(s.a)(h,2),y=_[0],x=_[1],g=Object(r.useState)(),C=Object(s.a)(g,2),S=C[0],w=C[1],k=function(){x(!0),w(Object(o.a)(Object(o.a)({},t),{},{emails:Object(p.e)(t.email)}))},T=Object(r.useCallback)((function(){t.person_id&&t.company_id&&a(v.a.deleteContact({contact_id:t.person_id,company_id:t.company_id}))}),[a,t]),I=Object(r.useCallback)((function(){return!!t.source_db&&b.c.some((function(e){return t.source_db.includes(e)}))}),[t]),q=Object(r.useMemo)((function(){var e=Object(j.c)(t.source_db||null);return Object(m.jsxs)(l.a,{className:"dropdown-add",children:[Object(m.jsx)(l.a.Item,{onClick:k,children:"Edit Contact"},"edit-contact-menu"),I()&&Object(m.jsx)(l.a.Item,{children:Object(m.jsx)(i.a,{placement:"top",title:e,okText:"Delete Contact",onConfirm:T,okButtonProps:{danger:!0},cancelText:"Cancel",onCancel:function(){return Object(O.c)(!1)},children:Object(m.jsx)("span",{children:"Delete CRM Contact"})})},"delete-contact-menu")]})}),[I]);return Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(c.a,{trigger:["click"],overlay:q,placement:"bottomRight",children:Object(m.jsx)(u.a,{className:"dropdown-dot__icon"})}),Object(m.jsx)(f.a,{visible:y,onCancel:function(){x(!1)},contactData:S}
1)]})},_=(n(153),n(44)),y=(n(188),n(45)),x=(n(118),n(49)),g=n(1751),C=n(1765),S=n(1754),w=n(151),k=n(756),T=n(82),I=n(1860),q=function(e,t){var n=[];return t.phone&&n.push(t.phone),t.additional_phones&&t.additional_phones.length&&t.additional_phones.forEach((function(e){n.includes(e.phone_number)||n.push(e.phone_number)})),n.length&&(n=n.join(", ")),Object(m.jsx)(I.a.IconsWrapper,{children:Object(m.jsxs)(_.a,{align:"middle",children:[n.length?Object(m.jsx)(y.a,{children:Object(m.jsx)(x.a,{title:Object(m.jsx)(k.a,{text:n}),children:Object(m.jsx)(g.a,{className:t.email?"":"no-email"})})}):"",t.linkedin&&Object(m.jsx)(y.a,{children:Object(m.jsx)("a",{href:Object(w.a)(t.linkedin),target:"_blank",rel:"noopener noreferrer",children:Object(m.jsx)(C.a,{})})}),t.email&&Object(m.jsx)(y.a,{children:Object(m.jsx)(x.a,{title:Object(m.jsx)(k.a,{text:t.email}),children:Object(m.jsx)(S.a,{})})}),t.salesloft&&Object(m.jsx)(y.a,{children:Object(m.jsx)(T.a,{iconName:"salesloft"})})]})})},F=(n(178),n(85)),D=n(26),N=n(68),E=n(12),A=n(11),V={RowWrapper:Object(A.default)(_.a)(a||(a=Object(E.a)(["\n flex-flow: row nowrap;\n\n .ant-col:first-child {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])))},P=function(e,t){return e?Object(m.jsxs)(V.RowWrapper,{justify:"space-between",children:[Object(m.jsx)(y.a,{children:Object(m.jsx)(N.a,{title:e,children:e})}),Object(m.jsxs)("div",{style:{marginLeft:"4px"},children:[t.primary_contact&&Object(m.jsx)(F.a,{color:"blue",children:"Primary"}),t.is_edited&&Object(m.jsx)(F.a,{color:"default",children:"edited"})]})]}):Object(m.jsx)(m.Fragment,{children:D.e})}},1845:function(e,t,n){"use strict";n.r(t);n(87);var a,c=n(29),i=n(12),l=n(0),o=n.n(l),s=n(95),r=n(74),d=n(11),u=n(28),b=n(181),j=n(1045),p=n(1),O=d.default.div(a||(a=Object(i.a)(["\n padding-top: 100px;\n text-align: center;
1\n"]))),v=function(e){var t=e.onRedirect,n=Object(b.a)().advancedSearchPathname,a=Object(s.h)(),i=new URLSearchParams(a.search),l=a.pathname,o=i.get("addCompany"),d=i.get("companyUrl"),v=i.get("company_tag"),f=new Set(["addCompany","companyUrl","company_tag"]);return Array.from(i.keys()).every((function(e){return f.has(e)}))&&("true"===o&&d||v)&&l===u.e.advancedSearch?Object(p.jsx)(j.c,{loading:!0}):Object(p.jsxs)(O,{children:[Object(p.jsx)("h3",{children:"Something went wrong"}),Object(p.jsx)(r.a,{to:n,onClick:t,children:Object(p.jsx)(c.a,{size:"small",children:"Go Back "})})]})};t.default=o.a.memo(v)},1871:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),c=n(9),i=n(611),l=function(){var e=Object(c.e)();return{fetchSalesloftAuth:Object(a.useCallback)((function(t,n){return e(i.a.fetchSalesloftAuthUrl(t,n))}),[e])}}},1892:function(e,t,n){"use strict";n(87);var a=n(29),c=(n(1329),n(1044)),i=n(10),l=n(16),o=n(3),s=n(5),r=(n(458),n(194)),d=n(0),u=n(9),b=n(1320),j=n(551),p=n(245),O=n(358),v=n(189),f=n(96),m=n(1836),h=n(1825),_=n(1837),y=n(1838),x=n(1),g=r.a.Option;t.a=function(e){var t,n=e.contacts,r=e.companyId,C=e.isCell,S=e.showAddContactForm,w=Object(u.e)(),k=Object(u.f)(f.a.equityTouch.getCompanyEqtData(r)),T=Object(u.f)(f.a.equityTouch.getTemporaryData),I=Object(d.useState)([]),q=Object(s.a)(I,2),F=q[0],D=q[1];Object(d.useEffect)((function(){var e,t,a,c;null!==(e=T.step1)&&void 0!==e&&e[r]&&"salesloft_contacts"in(null===(t=T.step1)||void 0===t?void 0:t[r])&&null!==(a=T.step1)&&void 0!==a&&a[r].salesloft_contacts&&D(Object(O.e)((null===(c=T.step1)||void 0===c?void 0:c[r].salesloft_contacts).map((function(e){return e.person_id})),n))}),[null===(t=T.step1)||void 0===t?void 0:t[r].salesloft_contacts,n]);var N=function(e,t){var a,c,s=n.find((function(t){return t.person_id===e}));if("select"!==t||!k||null===k||void 0===k||!k.salesloft_contacts||Object(j.g)((null===k||void 0===k?void 0:k.salesloft_contacts).length+1)){w(v.a.salesloftSelectContactsBulk({id:e,companyId:r,type:t,selectedContactData:s}));var d=null===T||void 0===T||null===(a=T.step1)||void 0===a?void 0:a[r],u=null===T||void 0===T||null===(c=T.step2)||void 0===c?void 0:c[r];if("select"===t&&w(v.a.updateTemporaryData({step1:Object(o.a)(Object(o.a)({},null===T||void 0===T?void 0:T.step1),{},Object(i.a)({},r,Object(o.a)(Object(o.a)({},d),{},{salesloft_contacts:[].concat(Object(l.a)(d.salesloft_contacts),[Object(o.a)(Object(o.a)({},s),Object(p.c)(null===s||void 0===s?void 0:s.email))])}))),step2:Object(o.a)(Object(o.a)({},null===T||void 0===T?void 0:T.step2),{},Object(i.a)({},r,Object(o.a)(Object(o.a)({},u),{},{salesloft_contacts:[].concat(Object(l.a)(u.salesloft_contacts),[Object(o.a)(Object(o.a)({},s),Object(p.c)(null===s||void 0===s?void 0:s.email))])})))})),"deselect"===t){var b=Object(l.a)(d.salesloft_contacts),O=b.findIndex((function(e){return e.person_id===(null===s||void 0===s?void 0:s.person_id)})),f=Object(l.a)(u.salesloft_contacts),m=f.findIndex((function(e){return e.person_id===(null===s||void 0===s?void 0:s.person_id)})),h=-1!==O,_=-1!==m;(h||_)&&(h&&b.splice(O,1),_&&f.splice(m,1),w(v.a.updateTemporaryData(Object(o.a)(Object(o.a)({},h?{step1:Object(o.a)(Object(o.a)({},null===T||void 0===T?void 0:T.step1),{},Object(i.a)({},r,Object(o.a)(Object(o.a)({},d),{},{salesloft_contacts:b})))}:{}),_?{step2:Object(o.a)(Object(o.a)({},null===T||void 0===T?void 0:T.step2),{},Object(i.a)({},r,Object(o.a)(Object(o.a)({},u),{},{salesloft_contacts:f})))}:{}))))}}};return Object(x.jsxs)("div",{style:{position:"relative",overflow:"visible"},children:[Object(x.jsx)(y.a.SelectWrapper,{showArrow:!0,placeholder:"Select contacts",onSelect:function(e,t){return N(Number(e),"select")},onDeselect:function(e,t){return N(Number(e),"deselect")},optionFilterProp:"children",filterOption:O.b,mode:"multiple",value:F,tagRender:function(e){return Object(x.jsx)(_.a,Object(o.a)({},e))},menuItemSelectedIcon:h.a,dropdownMatchSelectWidth:250,$isCell:C,className:"ant-select-customize-input",getPopupContainer:function(e){return e.parentNode.parentNode},dropdownRender:function(e){return Object(x.jsxs)(x.Fragment,{children:[e,S&&Object(x.jsxs)(x.Fragment,{children:[Object(x.jsx)(c.a,{style:{margin:"8px 0"}}),Object(x.jsxs)(a.a,{type:"link",onClick:S,style:{color:"rgba(0,0,0,.85)",fontWeight:600},children:[Object(x.jsx)(b.a,{style:{color:"#1890FF",margin:"0 5px 0 -3px"}})," Add new contact"]})]})]})},children:null===n||void 0===n?void 0:n.map((function(e){return Object(x.jsx)(g,{value:e.person_id,className:"contact-option",children:Object(x.jsx)(m.a,{contact:e})},e.person_id)}))}),Object(x.jsx)(y.a.ContactSelectGlobal,{})]})}},1915:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}
1));n(87);var a=n(29),c=(n(1329),n(1044)),i=n(3),l=n(5),o=(n(458),n(194)),s=n(0),r=n(9),d=n(1320),u=n(551),b=n(358),j=n(226),p=n(96),O=n(1836),v=n(1825),f=n(1837),m=n(1838),h=n(1),_=o.a.Option,y=function(e){var t=e.contacts,n=e.companyId,o=e.isCell,y=e.showAddContactForm,x=Object(r.e)(),g=Object(r.f)(p.a.salesloft.salesloftBulkCompanies).find((function(e){return e.company_id===n})),C=Object(s.useState)([]),S=Object(l.a)(C,2),w=S[0],k=S[1];Object(s.useEffect)((function(){g&&g.salesloft_contacts&&k(Object(b.e)(g.salesloft_contacts.map((function(e){return e.person_id})),t))}),[g,t]);var T=function(e,a){var c=t.find((function(t){return t.person_id===e}));"select"===a&&g&&null!==g&&void 0!==g&&g.salesloft_contacts&&!Object(u.g)(g.salesloft_contacts.length+1)||x(j.a.salesloftSelectContactsBulk({id:e,companyId:n,type:a,selectedContactData:c}))};return Object(h.jsxs)("div",{style:{position:"relative",overflow:"visible"},children:[Object(h.jsx)(m.a.SelectWrapper,{showArrow:!0,placeholder:"Select contacts",onSelect:function(e,t){return T(Number(e),"select")},onDeselect:function(e,t){return T(Number(e),"deselect")},filterOption:b.b,optionFilterProp:"children",mode:"multiple",value:w,tagRender:function(e){return Object(h.jsx)(f.a,Object(i.a)({},e))},menuItemSelectedIcon:v.a,$isCell:o,className:"ant-select-customize-input",dropdownMatchSelectWidth:250,getPopupContainer:function(e){return e.parentNode.parentNode},dropdownRender:function(e){return Object(h.jsxs)(h.Fragment,{children:[e,y&&Object(h.jsxs)(h.Fragment,{children:[Object(h.jsx)(c.a,{style:{margin:"8px 0"}}),Object(h.jsxs)(a.a,{type:"link",onClick:y,style:{color:"rgba(0,0,0,.85)",fontWeight:600},children:[Object(h.jsx)(d.a,{style:{color:"#1890FF",margin:"0 5px 0 -3px"}})," Add new contact"]})]})]})},children:t.map((function(e){return Object(h.jsx)(_,{value:e.person_id,className:"contact-option",children:Object(h.jsx)(O.a,{contact:e})},e.person_id)}))}),Object(h.jsx)(m.a.ContactSelectGlobal,{})]})}},1945:function(e,t,n){"use strict";n.d(t,"a",(function(){return oe})),n.d(t,"b",(function(){return se}));var a,c,i=n(55),l=n(0),o=n.n(l),s=n(9),r=n(96),d=(n(524),n(361)),u=(n(102),n(35)),b=n(1),j=function(e){var t=e.contactsResponse,n=e.sentContacts,a=t.filter((function(e){return e.sl_url})),c=[];a.forEach((function(e){var t=n.find((function(t){return t.person_id===e.person_id}));c.push({name:"".concat(null===t||void 0===t?void 0:t.first_name," ").concat(null===t||void 0===t?void 0:t.last_name),url:e.sl_url})}));var i=c.map((function(e,t){return Object(b.jsx)("div",{children:Object(b.jsx)(u.a.Link,{href:e.url,target:"_blank",children:e.name})},t)}));return 1===c.length?Object(b.jsx)(u.a.Link,{ellipsis:!0,href:c[0].url,target:"_blank",children:c[0].name}):Object(b.jsx)(d.a,{content:i,children:Object(b.jsx)(u.a.Text,{ellipsis:!0,style:{width:"100%"},children:c.map((function(e,t){return Object(b.jsxs)("div",{children:[Object(b.jsx)(u.a.Link,{href:e.url,target:"_blank",children:e.name}),c.length-1>t&&", "]},t)}))})})},p=function(e,t){var n=t.company_id,a=t.salesloftContacts,c=Object(s.f)(r.a.equityTouch.getCompanyEqtData(n)),i=null===c||void 0===c?void 0:c.salesloft_contacts;return i?Object(b.jsx)(j,{contactsResponse:a,sentContacts:i}):"Not in Sales Loft"},O=function(e,t){var n,a=Object(s.f)(r.a.salesloft.salesloftBulkCompanies),c=t.company_id,i=t.contacts,l=null===(n=a.find((function(e){return e.company_id===c})))||void 0===n?void 0:n.salesloft_contacts;return l?Object(b.jsx)(j,{contactsResponse:i,sentContacts:l}):"Not in Sales Loft"},v=(n(118),n(49)),f=function(e,t){return e?Object(b.jsx)(v.a,{title:t.company_name,children:Object(b.jsx)(u.a.Link,{ellipsis:!0,href:e,target:"_blank",style:{width:"100%"},children:t.company_name})}):"Not in ET"},m=function(e){var t=e.contactsResponse,n=e.sentContacts,a=t.filter((function(e){return!e.sl_sync_status}));if(!a)return null;var c=[];a.forEach((function(e){var t=n.find((function(t){return t.person_id===e.person_id}));c.push({name:"".concat(null===t||void 0===t?void 0:t.first_name," ").concat(null===t||void 0===t?void 0:t.last_name),error:e.sl_message})}));var i=c.map((function(e){return Object(b.jsx)("div",{children:"".concat(e.name,": ").concat(e.error)})})),l=c.map((function(e){return"".concat(e.name,": ").concat(e.error)})).join(", ");return Object(b.jsx)(v.a,{title:i,children:Object(b.jsx)(u.a.Text,{ellipsis:!0,style:{width:"100%"},children:l})})},h=function(e,t){var n,a=Object(s.f)(r.a.salesloft.salesloftBulkCompanies),c=t.company_id,i=t.contacts,l=a.find((function(e){return e.company_id===c})),o=null===(n=a.find((function(e){return e.company_id===c})))||void 0===n?void 0:n.salesloft_contacts;return"SalesLoft API request failed: email_address: has already been taken"===i[0].sl_message?"Email is already in use":"Canceled by user"===i[0].sl_message?"Canceled by user":"No contacts available"===i[0].sl_message&&null!==l&&void 0!==l&&l.contacts.length?"No contact(s) were selected":null!==o&&void 0!==o&&o.length?Object(b.jsx)(m,{contactsResponse:i,sentContacts:o}):i[0].sl_message},_=function(e,t){var n=t.company_id,a=t.salesloftContacts,c=Object(s.f)(r.a.equityTouch.getCompanyEqtData(n));if(e&&e.includes("already"))return e;var i=t.salesloftContacts;if("string"===typeof e&&"Add contact to ET"!==t.et_resolve)return Object(b.jsx)(v.a,{title:e,children:Object(b.jsx)(u.a.Text,{ellipsis:!0,style:{width:"100%"},children:e})});if(1===i.length&&null===i[0].person_id&&i[0].sl_resolve)return Object(b.jsx)(v.a,{title:i[0].sl_message,children:Object(b.jsx)(u.a.Text,{ellipsis:!0,style:{width:"100%"},children:i[0].sl_message})});if(1===i.length&&null===i[0].person_id)return null;var l=null===c||void 0===c?void 0:c.salesloft_contacts;return Object(b.jsx)(m,{contactsResponse:a,sentContacts:l})},y=(n(188),n(45)),x=(n(153),n(44)),g=n(12),C=n(11),S=n(505),w=n(334),k=Object(C.default)(x.a)(a||(a=Object(g.a)(["\n .ant-col .anticon svg {\n height: 23px;\n }\n"]))),T=function(e,t){var n=e;return Object(b.jsxs)(k,{justify:"space-between",children:[Object(b.jsx)(y.a,{children:n?"Success":"Fail"}),Object(b.jsx)(y.a,{children:n?Object(b.jsx)(S.a,{style:{color:"#52c41a"}}):Object(b.jsx)(w.a,{style:{color:"#f5222d"}})})]})},I=Object(C.default)(x.a)(c||(c=Object(g.a)(["\n .ant-col .anticon svg {\n height: 23px;\n }\n"]))),q=function(e,t){var n=t.contacts.every((function(e){return e.sl_sync_status}));return Object(b.jsxs)(I,{justify:"space-between",children:[Object(b.jsx)(y.a,{children:n?"Success":"Fail"}),Object(b.jsx)(y.a,{children:n?Object(b.jsx)(S.a,{style:{color:"#52c41a"}}):Object(b.jsx)(w.a,{style:{color:"#f5222d"}})})]})},F=(n(87),n(29)),D=n(521),N=n(189),E=n(1892),A=(n(357),n(207)),V=(n(755),n(485)),P=n(3),R=n(5),L=n(34),B=n.n(L),G=n(70),W=n(1842),M=(n(292),n(165)),z=(n(112),n(42)),K=n(744),U=n(24),$=n(657),Y=n(551),J=n(73),X=n(1803),H=function(e){var t=e.visible,n=e.contactData,a=e.onCancel,c=Object(s.e)(),i=Object(s.f)(J.e.companyIndividualEdit.getAllOptions),l=Object(s.f)(J.e.companyIndividualEdit.phoneOptions),o=$.d;if(n){var r,d=n.display_location||("string"===typeof n.location?n.location:null===(r=n.location)||void 0===r?void 0:r.label);o={first_name:n.first_name,last_name:n.last_name,title:n.title,additional_phones:Object(Y.d)(n,l),tenure_start_date:n.tenure_start_date,tenure_end_date:n.tenure_end_date,linkedin:n.linkedin,primary_contact:n.primary_contact||!1,emails:Object(D.e)(n.email),email:null,psg_function:Object(Y.f)(null===n||void 0===n?void 0:n.psg_function),slack_channel:Object(Y.f)(null===n||void 0===n?void 0:n.slack_channel),portfolio_executive:n.portfolio_executive,source_db:n.source_db,location:d?{label:d,value:n.place_id||""}:null}}return Object(b.jsx)(X.a,{type:"edit",visible:t,onCancel:a,onSubmit:function(e){var t=Object(P.a)({},e),l=t.emails;if(!Object(U.isEqual)(o,e)){var s=e.psg_function,r=e.slack_channel;c(N.a.updateBulkContact(Object(P.a)(Object(P.a)({},t),{},{psg_function:s||[],slack_channel:s?r:[],email:l.filter((function(e){return""!==e.email})).map((function(e){return e.email})).join(","),person_id:null===n||void 0===n?void 0:n.person_id,company_id:null===n||void 0===n?void 0:n.company_id,tenure_start_date:t.tenure_start_date?B()(t.tenure_start_date).format(G.a):null,tenure_end_date:t.tenure_end_date&&t.tenure_end_date!==G.e?B()(t.tenure_end_date).format(G.a):t.tenure_end_date===G.e?t.tenure_end_date:null,phones:Object(Y.e)(t,null===i||void 0===i?void 0:i.person_phone_type.received_values),additional_phones:void 0,source_db:null===n||void 0===n?void 0:n.source_db}),(function(){a()})))}},initialValues:o})},Q=function(e){e.value;var t=e.record,n=Object(l.useState)(!1),a=Object(R.a)(n,2),c=a[0],i=a[1],o=Object(l.useState)(),s=Object(R.a)(o,2),r=s[0],d=s[1],u=Object(b.jsx)(z.a,{children:Object(b.jsx)(z.a.Item,{onClick:function(){i(!0),d(Object(P.a)(Object(P.a)({},t),{},{emails:Object(D.e)(t.email),tenure_start_date:t.tenure_start_date?B()(t.tenure_start_date).format(G.a):t.tenure_start_date,tenure_end_date:t.tenure_end_date&&t.tenure_end_date!==G.e?B()(t.tenure_end_date).format(G.a):t.tenure_end_date===G.e?null:t.tenure_end_date}))},children:"Edit Contact"},"edit-contact-menu")});return Object(b.jsxs)(b.Fragment,{children:[Object(b.jsx)(M.a,{trigger:["click"],overlay:u,placement:"bottomRight",children:Object(b.jsx)(K.a,{className:"dropdown-dot__icon"})}),Object(b.jsx)(H,{visible:c,onCancel:function(){i(!1)},contactData:r})]})},Z=o.a.memo(Q),ee=[{dataIndex:"full_name",title:"Name",className:"full_name",width:190,render:W.c},{dataIndex:"title",title:"Title",className:"title",width:160},{dataIndex:"tenure_start_date",title:"Tenure",className:"tenure",width:170,render:i.d}
1,{dataIndex:"sources",title:"Sources",className:"sources",width:180,render:W.b},{dataIndex:"actions",title:"",className:"row_actions sticky sticky-right sources",width:45,render:function(e,t){return Object(b.jsx)(Z,{value:e,record:t})}}],te=n(1806),ne=function(e){var t,n=e.companyId,a=e.companyName,c=e.url,i=e.contactsResponse,o=e.sentContacts,s=e.onResolve,r=e.isEtBulk,d=Object(l.useState)(!1),j=Object(R.a)(d,2),p=j[0],O=j[1],v=Object(l.useState)(!1),f=Object(R.a)(v,2),m=f[0],h=f[1],_=null===i||void 0===i||null===(t=i.filter((function(e){return e.sl_resolve})))||void 0===t?void 0:t.map((function(e){return e.person_id}));if(null===_||void 0===_||!_.length)return null;var y=o.filter((function(e){return _.includes(e.person_id)})).map((function(e){return Object(P.a)(Object(P.a)({},e),{},{company_id:n,full_name:"".concat(e.first_name," ").concat(e.last_name),tenure_start_date:e.tenure_start_date?B()(e.tenure_start_date).format(G.a):e.tenure_start_date,tenure_end_date:e.tenure_end_date&&e.tenure_end_date!==G.e?B()(e.tenure_end_date).format(G.a):e.tenure_end_date})})),x=function(){O(!1)},g=function(){h(!1)};if(i.some((function(e){return"No contacts available"!==e.sl_message&&"Add contact to ET"!==e.sl_resolve})))return Object(b.jsxs)(b.Fragment,{children:[Object(b.jsx)(u.a.Link,{onClick:function(){O(!0)},style:{color:"#1890ff"},children:"Resolve"}),Object(b.jsx)(A.a,{style:{minWidth:"900px"},title:"Resolve",okText:"Resolve",visible:p,onOk:function(){s(),x(),g()},onCancel:x,children:Object(b.jsx)(V.a,{columns:ee,dataSource:y,rowKey:function(e){return e.person_id},bordered:!0,pagination:!1,tableLayout:"fixed",className:"overflow-auto legacy-table"})})]});var C={company_id:n,company_name:a,company_url:c};return Object(b.jsxs)(b.Fragment,{children:[Object(b.jsx)(u.a.Link,{onClick:function(){h(!0)},style:{color:"#1890ff"},children:"Add Contact"}),Object(b.jsx)(te.a,{contactData:C,visible:m,onCancel:g,shouldResolve:!0,isEtBulk:r,maxEmails:4})]})},ae=function(e,t){var n=Object(s.e)(),a=t.company_id,c=t.salesloftContacts,i=Object(s.f)(r.a.equityTouch.getCompanyEqtData(a)),l=Object(s.f)(r.a.selectedCompanies.getSelectedCompanies(Object(D.f)())).find((function(e){return e.company_id===a})),o=null===i||void 0===i?void 0:i.salesloft_contacts;if("No contact has been selected for SalesLoft"===c[0].sl_message)return Object(b.jsxs)(x.a,{justify:"space-between",gutter:[5,0],children:[Object(b.jsx)(y.a,{style:{width:"calc(100% - 165px)"},children:Object(b.jsx)(E.a,{contacts:l.contacts,companyId:a})}),Object(b.jsx)(y.a,{style:{textAlign:"right"},children:Object(b.jsx)(F.a,{type:"primary",disabled:!(null!==o&&void 0!==o&&o.length),onClick:function(){n(N.a.resolveSalesloft({companyId:a,all:!0}))},children:"Add To SL Cadence"})})]});return Object(b.jsx)(ne,{companyId:t.company_id,companyName:t.company_name,url:t.company_url,contactsResponse:c,sentContacts:o,onResolve:function(){n(N.a.resolveSalesloft({companyId:a}))},isEtBulk:!0})},ce=n(226),ie=n(1915),le=function(e,t){var n=Object(s.e)(),a=Object(s.f)(r.a.salesloft.salesloftBulkCompanies),c=t.company_id,i=t.contacts,l=a.find((function(e){return e.company_id===c})),o=null===l||void 0===l?void 0:l.salesloft_contacts;if(i.every((function(e){return e.sl_sync_status}))||i.every((function(e){return"Person is a member of this cadence"===e.sl_message})))return null;if("No contacts available"===i[0].sl_message&&null!==l&&void 0!==l&&l.contacts.length)return Object(b.jsxs)(x.a,{justify:"space-between",gutter:[5,0],children:[Object(b.jsx)(y.a,{style:{width:"calc(100% - 165px)"},children:Object(b.jsx)(ie.a,{contacts:l.contacts,companyId:c})}),Object(b.jsx)(y.a,{style:{textAlign:"right"},children:Object(b.jsx)(v.a,{title:o.length?"":"Select contact(s)",children:Object(b.jsx)(F.a,{type:"primary",disabled:!o.length,onClick:function(){n(ce.a.resolveSalesloft({companyId:c,all:!0}))},children:"Add To SL Cadence"})})})]});return Object(b.jsx)(ne,{companyId:t.company_id,companyName:t.company_name,url:t.company_website,contactsResponse:i,sentContacts:o,onResolve:function(){n(ce.a.resolveSalesloft({companyId:c}))}})},oe=[{dataIndex:"company_url",title:"",render:function(e,t){return Object(b.jsx)(i.s,{value:e,record:{url:t.raw_url}})},width:42,align:"center"},{dataIndex:"company_name",title:"Company Name",render:i.b,width:250}
1,{dataIndex:"et_url",title:"View in Equity Touch",render:f,width:250},{dataIndex:"sl_url",title:"View in Sales Loft",render:p,width:250},{dataIndex:"et_sync_status",title:"Sync Status",render:T,width:100},{dataIndex:"et_message",title:"Error Reason",render:_,width:250},{dataIndex:"sl_resolve",title:"Action",render:ae,className:"contact-cell",width:380}],se=[{dataIndex:"company_website",title:"",render:function(e,t){return Object(b.jsx)(i.s,{value:e,record:{url:t.company_raw_url}})},width:42,align:"center"},{dataIndex:"company_name",title:"Company Name",render:i.b,width:250},{title:"View in Sales Loft",render:O,width:250},{title:"Sync Status",render:q,width:100},{title:"Error Reason",render:h,width:250},{title:"Action",render:le,className:"contact-cell",width:380}]},1948:function(e,t,n){"use strict";var a,c=n(12),i=n(0),l=n(11),o=n(5),s=n(95),r=n(1892),d=n(1915),u=n(1806),b=n(9),j=n(1320),p=n(611),O=n(1),v=function(e){var t=e.setVisible,n=Object(b.f)(p.d.getCadences);return Object(O.jsxs)("button",{disabled:0===(null===n||void 0===n?void 0:n.length),type:"button",className:"change-contact-cell",onClick:function(){t(!0)},children:[Object(O.jsx)("span",{children:"Add Contact"})," ",Object(O.jsx)(j.a,{})]})},f=function(e){var t=e.companyData,n=Object(s.h)(),a=Object(i.useState)(!1),c=Object(o.a)(a,2),l=c[0],b=c[1],j=t.contacts,p={company_id:t.company_id,company_name:t.company_name,company_url:t.company_url};if(null!==j&&void 0!==j&&j.length){if(n.pathname.includes("salesloft-bulk"))return Object(O.jsxs)(O.Fragment,{children:[Object(O.jsx)(d.a,{contacts:j,companyId:t.company_id,isCell:!0,showAddContactForm:function(){return b(!0)}}),Object(O.jsx)(u.a,{onCancel:function(){return b(!1)},visible:l,contactData:p})]});if(n.pathname.includes("equity-touch-bulk"))return Object(O.jsxs)(O.Fragment,{children:[Object(O.jsx)(r.a,{contacts:j,companyId:t.company_id,isCell:!0,showAddContactForm:function(){return b(!0)}}),Object(O.jsx)(u.a,{onCancel:function(){return b(!1)},visible:l,contactData:p})]})}return Object(O.jsxs)(O.Fragment,{children:[Object(O.jsx)(v,{setVisible:b}),Object(O.jsx)(u.a,{onCancel:function(){return b(!1)},visible:l,contactData:p})]})},m=l.default.div(a||(a=Object(c.a)(["\n .change-contact-cell {\n width: 100%;\n color: #1890ff;\n display: flex;\n align-items: center;\n justify-content: space-between;\n .anticon svg {\n width: 16px;\n height: 16px;\n }\n }\n button:disabled,\n button[disabled] {\n color: gray;\n opacity: 0.5;\n }\n .ant-select-disabled.ant-select-multiple {\n .ant-select-selector {\n background: initial;\n opacity: 0.5;\n }\n .ant-select-arrow .anticon svg {\n color: gray;\n opacity: 0.5;\n }\n }\n"])));t.a=function(e,t){return Object(O.jsx)(m,{children:Object(O.jsx)(f,{companyData:t})})}},2057:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return St}));var a,c,i,l,o,s,r,d,u,b,j,p,O,v=n(3),f=n(5),m=n(0),h=n(9),_=n(95),y=n(611),x=n(189),g=n(307),C=n(133),S=n(390),w=n(1871),k=n(968),T=n(1076),I=n(1845),q=n(1798),F=(n(87),n(29)),D=(n(2031),n(2043)),N=n(28),E=n(96),A=n(181),V=n(15),P=n(521),R=function(){var e=Object(h.f)(E.a.equityTouch.getTemporaryData);return{validateBulk:function(){var t=null===e||void 0===e?void 0:e.step1,n=null===e||void 0===e?void 0:e.step2,a=Object.keys(n).filter((function(e){return!isNaN(parseInt(e))})).map((function(e){return n[e]["Company Type"]})).some((function(e){return e===P.a||e===P.b})),c=!t.Sector||!t.Fund;return!a||!c||(V.a.error("Sector and Fund are required when Opportunity Type is Deal Prospect or Portfolio Company!",{autoClose:5e3}),!1)}}},L=n(245),B=function(){var e=Object(m.useContext)(q.a).setErrors,t=Object(h.f)(E.a.equityTouch.getCompanyData),n=Object(h.f)(E.a.equityTouch.getTemporaryData);return{validate:function(){var a,c,i,l,o,s=null===n||void 0===n||null===(a=n.step2)||void 0===a||null===(c=a[t.company_id])||void 0===c?void 0:c.cadence,r=null===n||void 0===n||null===(i=n.step2)||void 0===i||null===(l=i[t.company_id])||void 0===l?void 0:l.salesloft_contacts,d=Object(L.b)(t.contacts,(null===r||void 0===r?void 0:r.map((function(e){return null===e||void 0===e?void 0:e.person_id})))||[]);if(!t.is_in_et&&s&&(!Array.isArray(r)||null===r||void 0===r||!r.length))return V.a.error("No contact was selected for Sales Loft. Please select at least one contact or deselect the cadence."),!1;if(!t.is_in_et&&d.length&&s)return e(d),V.a.error("The selected contact(s) for Salesloft has some missing information"),!1;var u=null===n||void 0===n||null===(o=n.step2)||void 0===o?void 0:o[t.company_id],b=u["Company Type"]===P.a||u["Company Type"]===P.b,j=!u.Sector||!u.Fund;
1if(b&&j)return V.a.error("Sector and Fund are required when Opportunity Type is Deal Prospect or Portfolio Company!",{autoClose:5e3}),!1;var p=u["Add-On"],O=u["Add-On For"]||[];return!((null===O||void 0===O?void 0:O.length)&&!p||!(null!==O&&void 0!==O&&O.length)&&p)||(V.a.error("Both Add-On and Add-On For fields are required if one of them is provided!",{autoClose:5e3}),!1)}}},G=(n(431),n(233)),W=(n(102),n(35)),M=(n(188),n(45)),z=(n(153),n(44)),K=n(12),U=n(11),$=n(182),Y=Object(U.default)(z.a)(a||(a=Object(K.a)(["\n flex-flow: row nowrap;\n position: relative;\n background: white;\n padding: 0 35px;\n margin-bottom: 160px;\n\n .ant-col {\n flex: 1 1;\n }\n\n .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content {\n .ant-steps-item-title {\n color: ",";\n }\n\n .ant-steps-item-description {\n color: #8c8c8c;\n }\n }\n"])),$.a.blue6),J=Object(U.default)(M.a)(c||(c=Object(K.a)(["\n position: absolute;\n left: 0;\n right: 0;\n margin: 0 auto;\n top: calc(100% + 25px);\n background: #fff;\n border-radius: 8px;\n box-shadow: 0px 0px 10px rgba(66, 17, 115, 0.06);\n padding: 15px;\n width: 654px;\n\n .ant-steps-item-content {\n margin-left: 15px;\n }\n"]))),X=Object(U.default)(M.a)(i||(i=Object(K.a)(["\n text-align: right;\n margin: 30px 0 20px;\n .ant-btn {\n margin: 0 0 7px 7px;\n }\n"]))),H=Object(U.default)(W.a.Title)(l||(l=Object(K.a)(["\n max-width: 38%;\n &&& {\n margin: 30px 0 20px;\n color: #334d6e;\n }\n"]))),Q=Object(U.default)(z.a)(o||(o=Object(K.a)(["\n padding: 0px 35px 50px;\n\n .eqt-bulk__table-selected {\n th {\n padding: 20px 7px;\n }\n\n td.is_in_et,\n td.score,\n td.score_v3 {\n text-align: right;\n }\n\n td.is_interesting {\n text-align: center;\n }\n }\n\n .ant-input-number {\n width: 100%;\n }\n\n .ant-tag {\n cursor: pointer;\n }\n\n .equity-touch-field__equity-check {\n .ant-input-number-handler-wrap {\n display: none;\n }\n }\n"]))),Z=Object(U.default)(G.a)(s||(s=Object(K.a)(["\n border-radius: 8px;\n box-shadow: 0px 0px 10px rgba(66, 17, 115, 0.06);\n margin-bottom: 20px;\n"]))),ee=n(1),te=D.a.Step,ne=function(){var e=Object(_.g)(),t=Object(_.h)(),n=Object(m.useContext)(q.a),a=n.step,c=n.setSubmitForm,i=n.title,l=Object(m.useState)("Review Each Company"),o=Object(f.a)(l,2),s=o[0],r=o[1],d=Object(_.i)().grid,u=Object(m.useRef)({}),b=Object(h.f)(E.a.equityTouch.getAllIds),j=Object(h.f)(E.a.equityTouch.getEditCompanyPosition),p=B().validate,O=R().validateBulk,v=Object(A.a)().advancedSearchPathname;Object(m.useEffect)((function(){t.state&&(u.current=t.state)}),[t]),Object(m.useEffect)((function(){0===a?r("Review Each Company"):1===a&&j!==b.length?r("Review Next Company"):j===b.length&&r("Finish")}),[a,j]);return Object(ee.jsxs)(Y,{children:[Object(ee.jsx)(H,{level:4,children:i.includes("undefined")?"Loading...":i}),Object(ee.jsx)(J,{children:Object(ee.jsxs)(D.a,{progressDot:!0,current:a,children:[Object(ee.jsx)(te,{title:"Step 1",description:"Enter Bulk Values",onClick:function(){1===a&&c("single-bulk")},style:{cursor:1===a?"pointer":"default"}}),Object(ee.jsx)(te,{title:"Step 2",description:"Review Each Company"}),Object(ee.jsx)(te,{title:"Step 3",description:"Review and Finis
1h"})]})}),Object(ee.jsxs)(X,{children:[Object(ee.jsx)(F.a,{onClick:function(){switch(d){case"advancedSearch":default:return e.push(v);case"myCompanies":return e.push(N.e.myCompanies);case"lists":var t=u.current,n=t.listId,a=t.listType;return e.push("/".concat(a,"/").concat(n));case"outreachDetails":return e.push(N.e.reports.sourcingOutreachSummaryCompanies)}},children:"Cancel"}),Object(ee.jsx)(F.a,{onClick:function(){0===a?O()?c("bulk"):c(null):p()?c("update-and-submit"):c(null)},children:"Skip Review & Finish"}),!j||j>1&&1===a&&Object(ee.jsx)(F.a,{onClick:function(){c("previous")},children:"Previous Company"}),Object(ee.jsx)(F.a,{type:"primary",onClick:function(){0===a?c("bulk-single"):1===a&&(p()?c("single"):c(null))},children:s})]})]})},ae=(n(549),n(232)),ce=(n(755),n(485)),ie=n(103),le=n(54),oe=n(657),se=n(18),re=n(226),de=n(331),ue=n(27),be=n(55),je=n(731),pe=function(e){var t="";return t=!0===e?Object(ee.jsx)(je.b,{iconName:"thumbs-up"}):!1===e?Object(ee.jsx)(je.a,{iconName:"thumbs-down"}):"Unknown",Object(ee.jsx)(ee.Fragment,{children:t})},Oe=n(1948),ve=function(e){var t=[{dataIndex:"company_name",title:"Company Name",render:be.b,width:220},{dataIndex:"is_in_et",title:"In ET",className:"is_in_et",render:be.a,width:60},{dataIndex:"is_interesting",title:"PSG Fit",className:"is_interesting",render:pe,width:90},{dataIndex:"score",title:"".concat("il"!==e?"OPTX Score":"IL OPTX Score"),className:"score",width:70,render:function(e){return isNaN(Number(e))?"N/A":Number(e)}},{dataIndex:"primary_contact",title:"Contacts for Sales Loft Cadences (optional)",className:"contact-cell",render:Oe.a}],n={dataIndex:"score_v3",title:"OPTX Score BETA",className:"score_v3",width:70,render:function(e){return isNaN(Number(e))?"N/A":Number(e)}};return"il"!==e&&t.splice(4,0,n),t},fe=n(1815),me=n(1806),he=n(10),_e=n(24),ye=n(34),xe=n.n(ye),ge=n(59),Ce=n(275),Se=n(139),we=function(e){var t,n=e.step,a=Object(ie.h)(),c=Object(_.i)().grid,i=Object(h.e)(),l=Object(_.g)().action,o=Object(h.f)(E.a.equityTouch.getFormData),s=Object(h.f)(E.a.equityTouch.getCompanies),r=Object(h.f)(E.a.equityTouch.getTemporaryData),d=Object(h.f)(E.a.equityTouch.getListType),u=Object(h.f)(E.a.equityTouch.getListId),b=Object(h.f)(Se.getSessionSettings),j=Object(h.f)(E.a.selectedCompanies.getSelectedCompanies(c)),p=null===(t=Object(h.f)(E.a.equityTouch.getCompanyData))||void 0===t?void 0:t.company_id,O=Object(m.useState)(null===a||void 0===a?void 0:a.values),y=Object(f.a)(O,2),g=y[0],C=y[1],S=Object(m.useState)({}),w=Object(f.a)(S,2),k=w[0],T=w[1],I=Object(m.useState)(),q=Object(f.a)(I,2),F=q[0],D=q[1];Object(m.useEffect)((function(){Object(_e.isEqual)(F,j)||D(j)}),[j,F]),Object(m.useEffect)((function(){Object(_e.isEqual)(g,null===a||void 0===a?void 0:a.values)||C(null===a||void 0===a?void 0:a.values)}),[null===a||void 0===a?void 0:a.values]);var N=Object(m.useCallback)((function(e,t,a,l,o,b){var j={},O=Object(v.a)({},l),f=Object.keys(O).reduce((function(t,n){var a=e[n];if(e[n]&&""!==a){if("select_suggest"===O[n].type)t[n]=Object(v.a)(Object(v.a)({},O[n]),{},{database_matched:a,received_values:[a],from_database:a.label});else if("Add-on"===O[n].label)t[n]=Object(v.a)(Object(v.a)({},O[n]),{},{from_database:a});else{if("select"===O[n].type){var c=O[n].received_values.find((function(e){return e.itemId===a}));return t[n]=c?Object(v.a)(Object(v.a)({},O[n]),{},{database_matched:c,from_database:c.text}):Object(v.a)(Object(v.a)({},O[n]),{},{from_database:a}),t}t[n]=Object(v.a)(Object(v.a)({},O[n]),{},{database_matched:e[n]})}return t}return t[n]=Object(v.a)({},O[n]),t}),{});if(1===n){var m,h,_,y,g=b||{};j={formData:f,firstStepData:Object(v.a)(Object(v.a)(Object(v.a)(Object(v.a)({},g),o),e),{},{cadence:null===r||void 0===r||null===(m=r.step1)||void 0===m?void 0:m.cadence}),companiesById:Object(v.a)(Object(v.a)(Object(v.a)(Object(v.a)({},g),o),e),{},{cadence:null===r||void 0===r||null===(h=r.step1)||void 0===h?void 0:h.cadence})},i(x.a.updateTemporaryData(Object(v.a)(Object(v.a)({step1:Object(v.a)(Object(v.a)(Object(v.a)(Object(v.a)({},g),o),e),{},{cadence:null===r||void 0===r||null===(_=r.step1)||void 0===_?void 0:_.cadence}),step2:Object(v.a)(Object(v.a)(Object(v.a)(Object(v.a)({},g),o),e),{},{cadence:null===r||void 0===r||null===(y=r.step1)||void 0===y?void 0:y.cadence})},u&&{listId:u}),d&&{listType:d})))}else if(2===n&&p&&e){var C,S,w,I,q,F,D,N,E,A,V,P,R,L,B,G,W=t||{};if(null!==r&&void 0!==r&&null!==(C=r.step2)&&void 0!==C&&C[p]&&"salesloft_contacts"in(null===r||void 0===r||null===(S=r.step2)||void 0===S?void 0:S[p]))if(W[p].salesloft_contacts){var M,z,K,U=null===r||void 0===r||null===(M=r.step2)||void 0===M||null===(z=M[p])||void 0===z?void 0:z.salesloft_contacts,$=null===(K=W[p])||void 0===K?void 0:K.salesloft_contacts;(null===U||void 0===U?void 0:U.length)===(null===$||void 0===$?void 0:$.length)?(B=[],null===U||void 0===U||U.forEac
1h((function(e){var t=$.filter((function(t){return t.person_id===e.person_id}))[0];e&&Object.keys(e).length<=Object.keys(t).length?B.push(t):B.push(e)}))):B=U}else{var Y,J;B=null===r||void 0===r||null===(Y=r.step2)||void 0===Y||null===(J=Y[p])||void 0===J?void 0:J.salesloft_contacts}else B=null===(G=s[p])||void 0===G?void 0:G.salesloft_contacts;var X,H,Q=[];if(null!==r&&void 0!==r&&null!==(w=r.step2)&&void 0!==w&&w[p]&&"contacts"in(null===r||void 0===r||null===(I=r.step2)||void 0===I?void 0:I[p]))if(W[p].contacts){var Z,ee,te,ne=null===r||void 0===r||null===(Z=r.step2)||void 0===Z||null===(ee=Z[p])||void 0===ee?void 0:ee.contacts,ae=null===(te=W[p])||void 0===te?void 0:te.contacts;((null===ne||void 0===ne?void 0:ne.length)===(null===ae||void 0===ae?void 0:ae.length)||(null===ne||void 0===ne?void 0:ne.length)<(null===ae||void 0===ae?void 0:ae.length))&&(Q=[],ne.forEach((function(e){var t=ae.filter((function(t){return t.person_id===e.person_id}))[0];Object.keys(e).length<=Object.keys(t).length?Q.push(t):Q.push(e)})))}else{var ce,ie;Q=(null===r||void 0===r||null===(ce=r.step2)||void 0===ce||null===(ie=ce[p])||void 0===ie?void 0:ie.contacts)||[]}else Q=null!==(X=null===(H=s[p])||void 0===H?void 0:H.contacts)&&void 0!==X?X:[];j={firstStepData:o,companiesById:Object(v.a)(Object(v.a)(Object(v.a)({},o),W),{},Object(he.a)({},p,Object(v.a)(Object(v.a)({},e),{},{cadence:null!==r&&void 0!==r&&null!==(q=r.step2)&&void 0!==q&&q[p]&&"cadence"in(null===r||void 0===r||null===(F=r.step2)||void 0===F?void 0:F[p])?null===r||void 0===r||null===(D=r.step2)||void 0===D||null===(N=D[p])||void 0===N?void 0:N.cadence:null===W||void 0===W||null===(E=W[p])||void 0===E?void 0:E.cadence,salesloft_contacts:B,contacts:Q.slice(0,Ce.a)})))},i(x.a.updateTemporaryData({step1:Object(v.a)(Object(v.a)(Object(v.a)({},W),o),{},{cadence:null===o||void 0===o?void 0:o.cadence}),step2:Object(v.a)(Object(v.a)(Object(v.a)(Object(v.a)({},o),W),{},Object(he.a)({},p,Object(v.a)(Object(v.a)({},e),{},{cadence:null!==r&&void 0!==r&&null!==(A=r.step2)&&void 0!==A&&A[p]&&"cadence"in(null===r||void 0===r||null===(V=r.step2)||void 0===V?void 0:V[p])?null===r||void 0===r||null===(P=r.step2)||void 0===P||null===(R=P[p])||void 0===R?void 0:R.cadence:null===W||void 0===W||null===(L=W[p])||void 0===L?void 0:L.cadence,salesloft_contacts:B,contacts:Q.slice(0,Ce.a)})),u&&{listId:u}),d&&{listType:d})}))}var le={et_form_auto_save:Object(v.a)(Object(v.a)(Object(v.a)({},u&&{listId:u}),d&&{listType:d}),{},{date:xe()().format(ge.a.short_date.DATE_FORMAT),step:n,grid:c,queue:p,formData:l,companiesData:a},j)};Object(_e.isEqual)(k,le)||(i(se.a.updateUserSettingsFromAutoSave(le)),T(le))}),[i,g,p,r]);return Object(m.useEffect)((function(){var e=0!==Object.keys(s||{}).length,t=0!==Object.keys(g||{}).length,n=0!==Object.keys(o||{}).length;if(t&&e&&n){var c=setTimeout((function(){var e;!function(e,t,n,a,c,i){N(e,t,n,a,c,i)}(a.values,s,j,o,Object(v.a)(Object(v.a)({},null===b||void 0===b||null===(e=b.et_form_auto_save)||void 0===e?void 0:e.firstStepData),null===r||void 0===r?void 0:r.step1),s)}),oe.a);return function(){return clearTimeout(c)}}}),[g,s,p,F,o]),Object(m.useEffect)((function(){"POP"===l&&(0!==Object.keys(s||{}).length&&p&&2===n&&(null===a||void 0===a||a.setValues(s[p])))}),[l,p,s]),Object(m.useEffect)((function(){var e;null===a||void 0===a||a.validateForm(Object(v.a)(Object(v.a)(Object(v.a)({},r.step1),g),{},{cadence:(null===(e=r.step1)||void 0===e?void 0:e.cadence)||(null===g||void 0===g?void 0:g.cadence)}))}),[g,r]),null},ke=Object(U.default)(W.a.Text)(r||(r=Object(K.a)(["\n font-size: 20px;\n white-space: normal;\n"]))),Te=Object(U.default)(ke)(d||(d=Object(K.a)(["\n color: #334d6e;\n font-weight: 600;\n"]))),Ie=Object(U.default)(ke)(u||(u=Object(K.a)(["\n font-weight: normal;\n display: block;\n color: #90a0b7;\n"]))),qe=function(e){var t=e.title,n=e.subtitle;return Object(ee.jsxs)(ee.Fragment,{children:[Object(ee.jsx)(Te,{children:t}),n&&Object(ee.jsx)(Ie,{children:n})]})},Fe=n(1892),De=n(16),Ne=(n(458),n(194)),Ee=n(70),Ae=n(551),Ve=n(358),Pe=n(1836),Re=n(1825),Le=n(1837),Be=n(1838),Ge=Ne.a.Option,We=function(e){var t,n,a=e.contacts,c=e.companyId,i=Object(m.useContext)(q.a),l=i.step,o=i.errors,s=i.setErrors,r=Object(h.e)(),d=Object(_.i)().grid,u=Object(h.f)(E.a.equityTouch.getTemporaryData),b=Object(h.f)(E.a.equityTouch.getFormData),j=Object(h.f)(E.a.selectedCompanies.getSelectedCompanies(d)
1),p=Object(h.f)(E.a.equityTouch.getCompanyEqtData(c)),O=Object(h.f)(E.a.equityTouch.getCompanyData),y=Object(m.useState)([]),g=Object(f.a)(y,2),C=g[0],S=g[1];Object(m.useEffect)((function(){var e,t=null===u||void 0===u||null===(e=u.step2)||void 0===e?void 0:e[O.company_id];p&&Array.isArray(null===p||void 0===p?void 0:p.salesloft_contacts)&&(null!==t&&void 0!==t&&t.cadence||null!==p&&void 0!==p&&p.cadence)?S(Object(Ve.e)((null===p||void 0===p?void 0:p.salesloft_contacts).map((function(e){return e.person_id})),a)):S([]),o&&s([])}),[p]);var w=Object(m.useCallback)(Object(_e.debounce)((function(e,t){var n;if(o.length&&s([]),"select"!==t||!p||null===p||void 0===p||!p.salesloft_contacts||Object(Ae.g)((null===p||void 0===p||null===(n=p.salesloft_contacts)||void 0===n?void 0:n.length)+1)){var c=a.filter((function(t){return e.includes(t.person_id||-1)}));if("select"===t&&c){var i,f=Object(v.a)(Object(v.a)({},null===u||void 0===u||null===(i=u.step2)||void 0===i?void 0:i[O.company_id]),{},{salesloft_contacts:Object(De.a)(c.map((function(e){return Object(v.a)(Object(v.a)({},e),Object(L.c)(e.email))})))});r(x.a.updateTemporaryData({step2:Object(v.a)(Object(v.a)({},null===u||void 0===u?void 0:u.step2),{},Object(he.a)({},null===O||void 0===O?void 0:O.company_id,Object(v.a)({},f)))})),r(x.a.autoSave({step:l+1,grid:d,queue:O.company_id,companiesById:Object(v.a)(Object(v.a)({},null===u||void 0===u?void 0:u.step2),{},Object(he.a)({},null===O||void 0===O?void 0:O.company_id,Object(v.a)({},f))),companiesData:j,firstStepData:u.step1,formData:b,date:xe()().format(Ee.a)}))}if("deselect"===t){var m,h=Object(v.a)(Object(v.a)({},null===u||void 0===u||null===(m=u.step2)||void 0===m?void 0:m[O.company_id]),{},{salesloft_contacts:c});r(x.a.updateTemporaryData({step2:Object(v.a)(Object(v.a)({},null===u||void 0===u?void 0:u.step2),{},Object(he.a)({},null===O||void 0===O?void 0:O.company_id,Object(v.a)({},h)))})),r(x.a.autoSave({step:l+1,grid:d,queue:O.company_id,companiesById:Object(v.a)(Object(v.a)({},null===u||void 0===u?void 0:u.step2),{},Object(he.a)({},null===O||void 0===O?void 0:O.company_id,Object(v.a)({},h))),companiesData:j,firstStepData:u.step1,formData:b,date:xe()().format(Ee.a)}))}}}),1500),[c,null===u||void 0===u||null===(t=u.step2)||void 0===t||null===(n=t[O.company_id])||void 0===n?void 0:n.cadence]),k=function(e,t){var n,c,i=a.find((function(t){return t.person_id===e})),l=null===u||void 0===u||null===(n=u.step2)||void 0===n||null===(c=n[O.company_id])||void 0===c?void 0:c.salesloft_contacts,o=[];if("select"===t&&i&&(o=Array.isArray(l)?Object(Ve.e)([].concat(Object(De.a)(C),[i.person_id]),a):[i.person_id],S(o)),"deselect"===t){var s=Object(De.a)(a.filter((function(e){return C.includes(e.person_id||-1)}))),r=Object(De.a)(s).findIndex((function(t){return t.person_id===e}));s.splice(r,1),o=Object(Ve.e)(Object(De.a)(s).map((function(e){return e.person_id})),a),S(o)}w(o,t)};return Object(ee.jsxs)(ee.Fragment,{children:[Object(ee.jsx)(Be.a.SelectWrapper,{showArrow:!0,placeholder:"Select contacts",onSelect:function(e,t){return k(Number(e),"select")},onDeselect:function(e,t){return k(Number(e),"deselect")},disabled:function(){var e;if(O.is_in_et)return!0;var t=null===u||void 0===u||null===(e=u.step2)||void 0===e?void 0:e[c];return t&&void 0===(null===t||void 0===t?void 0:t.cadence)||t&&""===(null===t||void 0===t?void 0:t.cadence)||t&&!("cadence"in t)}(),optionFilterProp:"children",filterOption:Ve.b,mode:"multiple",value:C,dropdownMatchSelectWidth:250,tagRender:function(e){return Object(ee.jsx)(Le.a,Object(v.a)({},e))},menuItemSelectedIcon:Re.a,children:a.map((function(e){return Object(ee.jsx)(Ge,{value:e.person_id,className:"contact-option",children:Object(ee.jsx)(Pe.a,{contact:e})},e.person_id)}))}),Object(ee.jsx)(Be.a.ContactSelectGlobal,{})]})},Me=(n(118),n(49)),ze=(n(816),n(378)),Ke=Object(U.default)(Ne.a)(b||(b=Object(K.a)(["\n width: 100%;\n"]))),Ue=Ne.a.Option,$e=function(e){var t,n,a=e.readOnly,c=Object(h.e)(),i=Object(m.useContext)(q.a),l=i.step,o=i.setCadence,s=i.errors,r=Object(_.i)().grid,d=Object(h.f)(y.d.getCadences),u=Object(h.f)(E.a.equityTouch.getCompanyData),b=Object(h.f)(E.a.equityTouch.getCompanies),j=Object(h.f)(E.a.equityTouch.getBulkValues),p=Object(h.f)(E.a.equityTouch.getTemporaryData),O=Object(h.f)(E.a.equityTouch.getFormData),g=Object(h.f)(E.a.selectedCompanies.getSelectedCompanies(r)),C=Object(m.useState)(void 0),S=Object(f.a)(C,2),w=S[0],k=S[1],T=Object(m.useState)(!1),I=Object(f.a)(T,2),F=I[0],D=I[1],N=!1,A=window.location.pathname.includes("step-3"),V=null===(t=u.contacts)||void 0===t?void 0:t.filter((function(e){return!0===e.primary_contact})),P=function(e){if(0===l&&void 0===w&&void 0===e||!Object(_e.isEqual)(w,e)){k(e),o(e);var t,n=Object(v.a)(Object(v.a)({},b[u.company_id]),{},{cadence:e});if(c(x.a.updateBulkCadence(n)),1===l)c(x.a.updateTemporaryData({step2:Object(v.a)(Object(v.a)({},null===p||void 0===p?void 0:p.step2),{},Object(he.a)({},null===u||void 0===u?void 0:u.company_id,Object(v.a)(Object(v.a)({},null===p||void 0===p||null===(t=p.step2)||void 0===t?void 0:t[u.company_id]),{},{cadence:e,salesloft_contacts:""===e?[]:V})))}));else 0!==l||A||(c(x.a.updateTemporaryData({step1:Object(v.a)(Object(v.a)({},p.step1),{},{cadence:e})})),c(x.a.autoSave({step:l+1,grid:r,queue:u.company_id,companiesById:b,companiesData:g,firstStepData:Object(v.a)(Object(v.a)({},p.step1),{},{cadence:e}),formData:O,date:xe()().format(Ee.a)})))}};return Object(m.useEffect)((function(){var e,t,n;if(N)N=!0,P(void 0);else if(0===l&&null!==b&&void 0!==b&&b.cadence)N=!0,P(null===b||void 0===b?void 0:b.cadence);else if(1===l&&null!==p&&void 0!==p&&null!==(e=p.step2)&&void 0!==e&&e[u.company_id]&&"cadence"in(null===p||void 0===p||null===(t=p.step2)||void 0===t?void 0:t[u.company_id])){var a,c,i,o,s;null!==p&&void 0!==p&&null!==(a=p.step2)&&void 0!==a&&null!==(c=a[u.company_id])&&void 0!==c&&null!==(i=c.salesoft_contacts)&&void 0!==i&&i.length||!F||D(!1),P(null===p||void 0===p||null===(o=p.step2)||void 0===o||null===(s=o[u.company_id])||void 0===s?void 0:s.cadence)}else if(void 0===w){if(Object.keys(u).length){var r,d;if(u.contacts.length)if(1===l&&b[u.company_id]&&"cadence"in b[u.company_id]){var O;N=!0,P(null===(O=b[u.company_id])||void 0===O?void 0:O.cadence)}else null!==b&&void 0!==b&&b.cadence&&(N=!0,P(null===b||void 0===b?void 0:b.cadence));else null!==(r=b[u.company_id])&&void 0!==r&&r.cadence&&ze.b.warning("The cadence was deselected because this company doesn't have any contacts"),N=!0,P("");if(1!==l||u.contacts.length?D(!1):D(!0),0===l)if(j.cadence)N=!0,P(j.ca
1dence);else if(null===(d=p.step1)||void 0===d||!d.cadence){var v;N=!0,P(null===(v=p.step1)||void 0===v?void 0:v.cadence)}}}else"cadence"in b||""===(null===b||void 0===b?void 0:b.cadence)||void 0===(null===b||void 0===b?void 0:b.cadence)||"newContact"in(null===p||void 0===p||null===(n=p.step2)||void 0===n?void 0:n[u.company_id])||(N=!0,P(null===b||void 0===b?void 0:b.cadence))}),[u,null===b||void 0===b?void 0:b.cadence]),Object(ee.jsxs)(ee.Fragment,{children:[Object(ee.jsx)(Me.a,{title:F?"This company does not have any contacts":"",children:Object(ee.jsxs)(Ke,{showSearch:!0,placeholder:"Select a cadence",onChange:P,optionFilterProp:"children",value:w,disabled:a||F||u.contacts&&!(null!==(n=u.contacts)&&void 0!==n&&n.length),filterOption:Ve.c,dropdownMatchSelectWidth:250,children:[Object(ee.jsx)(Ue,{value:"",children:"Select a cadence"},"blank"),d.map((function(e){return Object(ee.jsx)(Ue,{value:e.id,children:e.name},e.id)}))]})}),!!s.length&&s.map((function(e,t){return Object(ee.jsx)(W.a.Text,{type:"danger",style:{display:"block"},children:e},t)}))]})},Ye=function(e){var t=e.readOnly,n=Object(m.useContext)(q.a).step,a=Object(h.f)(E.a.equityTouch.getCompanyData),c=[];return 1===n&&a&&Object.keys(a).length&&(c=a.contacts.map((function(e){return Object(v.a)(Object(v.a)({},Object(_e.pick)(e,["first_name","last_name","person_id","title","primary_contact"])),Object(L.c)(e.email))}))),Object(ee.jsx)(Z,{title:Object(ee.jsx)(qe,{title:"Also add to Sales Loft Cadence (optional)",subtitle:"The primary contact from each company will automatically be added to this SL Cadence"}),children:Object(ee.jsxs)(z.a,{gutter:20,className:"add-to-equity-touch__salesloft",children:[Object(ee.jsxs)(M.a,{span:12,className:"sl-cadence",children:[Object(ee.jsx)(W.a.Text,{children:"SLCadence"}),Object(ee.jsx)($e,{readOnly:t})]}),Object(ee.jsx)(M.a,{span:12,children:1===n&&Object(ee.jsxs)(ee.Fragment,{children:[Object(ee.jsx)(W.a.Text,{children:"Contacts"}
1),1===n?Object(ee.jsx)(We,{contacts:c,companyId:a.company_id}):Object(ee.jsx)(Fe.a,{contacts:c,companyId:a.company_id})]})})]})})},Je="Field is required!",Xe=le.f().shape({Fund:le.h().required(Je),Sector:le.h().required(Je),Rationale:le.h().max(500,"Maximum 500 characters"),"Add-On For":le.a().nullable().when("Add-On",{is:function(e){return e},then:le.a().required(Je),otherwise:le.a().nullable()}),"Add-On":le.b().when("Add-On For",{is:function(e){return void 0===e||0===(null===e||void 0===e?void 0:e.length)},then:le.b(),otherwise:le.b().oneOf([!0],Je).required(Je)})},[["Add-On For","Add-On"]]),He=function(){var e,t,n,a,c,i=Object(h.e)(),l=Object(_.i)().grid,o=Object(m.useContext)(q.a),s=o.submitForm,r=o.setSubmitForm,d=o.cadence,u=o.setStep,b=o.setAddon,j=o.setIsAddon,p=o.setTitle,O=o.addon,y=Object(h.f)(E.a.salesloft.modalVisible),g=Object(h.f)(E.a.equityTouch.getTemporaryData),C=Object(m.useRef)(null),S=Object(h.f)(E.a.editFields.selectedCompaniesCount),w=Object(h.f)(se.d.getDefaultScore);(Object(m.useEffect)((function(){C.current&&(C.current.isValid||r(null))}),[C.current]),C&&null!==C&&void 0!==C&&C.current)&&(null===C||void 0===C||null===(t=C.current)||void 0===t||t.validateForm(null===g||void 0===g?void 0:g.step1));null===C||void 0===C||!C.current||null!==C&&void 0!==C&&null!==(e=C.current)&&void 0!==e&&e.isValid||(null===(n=C.current)||void 0===n||n.setTouched(Object.fromEntries(Object.keys(null!==(a=null===C||void 0===C||null===(c=C.current)||void 0===c?void 0:c.errors)&&void 0!==a?a:{}).map((function(e){return[e,!0]})))));Object(m.useEffect)((function(){p("Bulk Add these ".concat(S," Companies to Equity Touch"))}),[S]),Object(m.useEffect)((function(){C.current&&(C.current.validateForm(null===g||void 0===g?void 0:g.step1),"bulk"===s?U(C.current.values):"bulk-single"===s&&(i(x.a.initializeIndividualEditing(Object(v.a)(Object(v.a)({},C.current.values),void 0!==d&&{cadence:d}))),b(C.current.values["Add-On For"]),j(C.current.values["Add-On"]),u(1)))}),[s]);var k=Object(h.f)(E.a.selectedCompanies.getSelectedCompanies(l)),T=Object(h.f)(ue.d.getCompanies("advancedSearch")),I=Object(h.f)(ue.d.getCompanies("lists")),F=Object(h.f)(E.a.equityTouch.getFormData),D=Object(h.f)(E.a.equityTouch.getInitialFormValues),N=Object(m.useState)(D),A=Object(f.a)(N,2),V=A[0],P=A[1],R=Object(m.useState)(!1),L=Object(f.a)(R,2),B=L[0],G=L[1],W=function(){return"advancedSearch"===l?T:"watchlists"===l?I:[]};Object(m.useEffect)((function(){var e=null===g||void 0===g?void 0:g.step1;0!==Object.keys(e||{}).length?(P(Object(v.a)(Object(v.a)({},e),void 0!==d&&{cadence:d})),e&&(e["Add-On For"]&&b(e["Add-On For"]),e["Add-On"]&&j(e["Add-On"]))):P(Object(v.a)(Object(v.a)({},D),void 0!==d&&{cadence:d}))}),[g,D]);var z,K,U=function(e){i(x.a.addToEquityTouchBulk({formValues:e,cadence:d})),u(2)},$=function(){var e,t,n;null===C||void 0===C||null===(e=C.current)||void 0===e||e.setTouched({"Add-On For":!0}),null===C||void 0===C||null===(t=C.current)||void 0===t||t.setTouched({"Add-On":!0}),null===C||void 0===C||null===(n=C.current)||void 0===n||n.setTouched({Fund:!0})};g.step1&&g.step1["Add-On For"]&&(null===C||void 0===C||null===(z=C.current)||void 0===z||z.setFieldValue("Add-On For",g.step1["Add-On For"]),$());g.step1&&g.step1["Add-On"]&&(null===C||void 0===C||null===(K=C.current)||void 0===K||K.setFieldValue("Add-On",g.step1["Add-On"]),$());return Object(ee.jsx)(ee.Fragment,{children:Object(ee.jsxs)(Q,{gutter:20,children:[Object(ee.jsx)(M.a,{span:24,xxl:12,children:Object(ee.jsxs)(Z,{title:Object(ee.jsx)(qe,{title:"Selected Companies",subtitle:"Primary contacts will be selected by default"}),children:[Object(ee.jsx)(ce.a,{tableLayout:"fixed",columns:ve(w),rowKey:"company_id",dataSource:function(){var e=W().map((function(e,t){return k.filter((function(e){return e.company_id===W()[t].company_id}))}));if(0===W().length)return k;var t=e.flat();return t.length>0&&!B&&(G(!0),i(de.a.selectCompanyIds({gridName:l,selectedCompanies:t}))),t}(),pagination:!1,bordered:!0,className:"legacy-table eqt-bulk__table-selected overflow-auto"}),Object(ee.jsx)(me.a,{onCancel:function(){i(re.a.setModalVisible(!1))},visible:y,contactData:{}})]})}),Object(ee.jsx)(M.a,{span:24,xxl:12,children:Object(ee.jsx)(ie.e,{initialValues:V,validationSchema:Xe,onSubmit:U,validateOnBlur:!0,validateOnChange:!0,enableReinitialize:!0,innerRef:function(e){C.current=e},children:Object(ee.jsxs)(ae.a,{layout:"vertical",children:[Object(ee.jsx)(we,{step:1}),Object(ee.jsx)(Z,{title:Object(ee.jsx)(qe,{title:"Company Info",subtitle:"These values will be applied to all companies. You can customize in the next step"}),children:Object(ee.jsx)(fe.b,{fields:oe.g,initialFormData:Object(v.a)(Object(v.a)({},F),{},{"Add-On For":Object(v.a)(Object(v.a)({},F["Add-On For"]),{},{received_values:O?[Object(v.a)({},O)]:[]})}),step:1})}),Object(ee.jsx)(Z,{title:Object(ee.jsx)(qe,{title:"PSG Context and Rank",subtitle:"These values will be applied to all companies. You can override values in the next step"}),children:Object(ee.jsx)(fe.b,{fields:oe.f,initialFormData:Object(v.a)(Object(v.a)({},F),{},{"Add-On For":Object(v.a)(Object(v.a)({},F["Add-On For"]),{},{received_values:O?[Object(v.a)({},O)]:[]})}),step:1})}),Object(ee.jsx)(Ye,{})]})})})]})})},Qe=n(33),Ze=n(1258),et=n(1842),tt=(n(292),n(165)),nt=(n(808),n(556)),at=(n(112),n(42)),ct=n(744),it=n(465),lt=n(345),ot=function(e,t,n){var a=Object(h.e)(),c=Object(h.f)(E.a.equityTouch.getCompanyData),i=Object(m.useState)(!1),l=Object(f.a)(i,2),o=l[0],s=l[1],r=Object(m.useState)(),d=Object(f.a)(r,2),u=d[0],b=d[1],j=Object(m.useCallback)((function(){t.person_id&&t.company_id&&a(lt.a.deleteContact({contact_id:t.person_id,company_id:t.company_id}))}),[a,t]),p=Object(m.useCallback)((function(){return!!t.source_db&&
1Ce.c.some((function(e){return t.source_db.includes(e)}))}),[t]),O=function(){s(!0),b(Object(v.a)(Object(v.a)({},t),{},{emails:Object(P.e)(t.email)}))},_=Object(m.useMemo)((function(){var e=Object(Ae.c)(t.source_db||null);return Object(ee.jsxs)(at.a,{children:[Object(ee.jsx)(at.a.Item,{onClick:O,children:"Edit Contact"},"edit-contact-menu"),p()&&Object(ee.jsx)(at.a.Item,{children:Object(ee.jsx)(nt.a,{placement:"top",title:e,okText:"Delete Contact",onConfirm:j,okButtonProps:{danger:!0},cancelText:"Cancel",onCancel:function(){return Object(it.c)(!1)},children:Object(ee.jsx)("span",{children:"Delete CRM Contact"})})},"delete-contact-menu")]})}),[p]);return Object(ee.jsxs)(ee.Fragment,{children:[Object(ee.jsx)(tt.a,{trigger:["click"],overlay:_,placement:"bottomRight",disabled:c.is_in_et,children:Object(ee.jsx)(ct.a,{className:"dropdown-dot__icon"})}),Object(ee.jsx)(fe.a,{visible:o,onCancel:function(){s(!1)},contactData:u})]})},st=[{dataIndex:"full_name",title:"Name",className:"full_name",width:190,render:et.c},{dataIndex:"title",title:"Title",className:"title",width:160},{dataIndex:"tenure_start_date",title:"Tenure",className:"tenure",width:170,render:be.d},{dataIndex:"sources",title:"Sources",className:"sources",width:180,render:et.b},{dataIndex:"actions",title:"",className:"row_actions sticky sticky-right sources",width:45,render:ot}],rt=function(e){var t=e.readOnly,n=Object(h.e)(),a=Object(m.useContext)(q.a),c=a.step,i=a.setSelectedContacts,l=Object(_.i)().grid,o=Object(h.f)(E.a.equityTouch.getTemporaryData),s=Object(h.f)(E.a.equityTouch.getCompanies),r=Object(h.f)(E.a.equityTouch.getCompanyData),d=Object(h.f)(E.a.equityTouch.getContacts),u=Object(h.f)(E.a.selectedCompanies.getSelectedCompanies(l)),b=Object(h.f)(E.a.equityTouch.getFormData),j=Object(m.useState)([]),p=Object(f.a)(j,2),O=p[0],y=p[1],g=Object(m.useState)([]),C=Object(f.a)(g,2),S=C[0],w=C[1],k=Object(m.useCallback)(Object(_e.debounce)((function(e){var t,a;n(x.a.updateTemporaryData({step2:Object(v.a)(Object(v.a)({},null===o||void 0===o?void 0:o.step2),{},Object(he.a)({},null===r||void 0===r?void 0:r.company_id,Object(v.a)(Object(v.a)({},null===o||void 0===o||null===(t=o.step2)||void 0===t?void 0:t[r.company_id]),{},{contacts:e||[]})))})),n(x.a.autoSave({step:c+1,grid:l,queue:r.company_id,companiesById:Object(v.a)(Object(v.a)({},o.step2),{},Object(he.a)({},null===r||void 0===r?void 0:r.company_id,Object(v.a)(Object(v.a)({},null===o||void 0===o||null===(a=o.step2)||void 0===a?void 0:a[r.company_id]),{},{contacts:e||[]}))),companiesData:u,firstStepData:o.step1,formData:b,date:xe()().format(Ee.a)}))}),1e3),[n,o,r,b]),T={selectedRowKeys:S,onChange:function(e,t){Object(Ae.g)(e.length)&&(w(e),i(t),k(t))},getCheckboxProps:function(){return{disabled:t}}};return Object(m.useEffect)((function(){if(Object.keys(r).length&&Object.keys(s).length&&!t){var e=[],n=s[r.company_id];n&&n.contacts&&(e=n.contacts.slice(0,Ce.a).map((function(e){return e.person_id}))),w(e)}}),[d,r,s]),Object(m.useEffect)((function(){if(d){var e=d.map((function(e){return Object(v.a)(Object(v.a)(Object(v.a)({},e),e.tenure_start_date&&{tenure_start_date:xe()(e.tenure_start_date).format(Ee.a)}),e.tenure_end_date&&{tenure_end_date:e.tenure_end_date!==Ee.e?xe()(e.tenure_end_date).format(Ee.a):e.tenure_end_date})}));y(e)}}),[d]),Object(m.useEffect)((function(){var e,t,n;w((null===(e=o.step2)||void 0===e||null===(t=e[null===r||void 0===r?void 0:r.company_id])||void 0===t||null===(n=t.contacts)||void 0===n?void 0:n.slice(0,Ce.a).map((function(e){return e.person_id})))||[])}),[null===r||void 0===r?void 0:r.company_id,o.step2]),Object(ee.jsx)(ce.a,{columns:st,dataSource:O,rowKey:function(e){return e.person_id},rowSelection:T,bordered:!0,pagination:!1,tableLayout:"fixed",className:"overflow-auto legacy-table"})},dt=function(){var e=Object(m.useState)(!1),t=Object(f.a)(e,2),n=t[0],a=t[1],c=Object(h.f)(E.a.equityTouch.getCompanyData),i={company_id:c.company_id,company_name:c.company_name,company_url:c.company_url};return Object(ee.jsxs)(ee.Fragment,{children:[Object(ee.jsxs)(F.a,{onClick:function(){a(!0)},disabled:c.is_in_et,children:[" ","Add Contact"]}),Object(ee.jsx)(me.a,{visible:n,contactData:i,onCancel:function(){a(!1)}})]})},ut=function(){var e,t,n,a,c=Object(h.e)(),i=Object(m.useContext)(q.a),l=i.submitForm,o=i.setSubmitForm,s=i.cadence,r=i.setStep,d=i.addon,u=i.setTitle,b=Object(h.f)(E.a.equityTouch.getAllIds),j=Object(h.f)(E.a.equityTouch.getCompanyData),p=Object(h.f)(E.a.equityTouch.getTemporaryData),O=Object(h.f)(E.a.equityTouch.getCompanyEqtData(j.
1company_id)),f=Object(h.f)(E.a.equityTouch.getEditCompanyPosition),_=Object(h.f)(E.a.equityTouch.getFormData),y=Object(m.useRef)(null),g=Object(m.useMemo)((function(){var e,t,n,a=null===p||void 0===p||null===(e=p.step2)||void 0===e||null===(t=e[j.company_id])||void 0===t?void 0:t.Groups,c=null===_||void 0===_||null===(n=_.Groups)||void 0===n?void 0:n.received_values;return Object(Qe.n)(a)?a:Object(Qe.n)(c)?c:[]}),[j.company_id,null===_||void 0===_||null===(e=_.Groups)||void 0===e?void 0:e.received_values,null===p||void 0===p?void 0:p.step2]),C=Object(m.useMemo)((function(){var e,t,n,a,c=null===p||void 0===p||null===(e=p.step2)||void 0===e||null===(t=e[j.company_id])||void 0===t?void 0:t["Deal Team Lead"],i=null===_||void 0===_||null===(n=_["Deal Team Lead"])||void 0===n||null===(a=n.database_matched)||void 0===a?void 0:a.itemId;return c||i||""}),[j.company_id,_,null===p||void 0===p?void 0:p.step2]),S=Object(m.useMemo)((function(){var e,t,n,a,c,i,l,o,s,r,d,u,b,j,p,f,m,h,y;return Object(v.a)(Object(v.a)(Object(v.a)(Object(v.a)(Object(v.a)(Object(v.a)({"Company Type":(null===_||void 0===_||null===(e=_["Company Type"])||void 0===e||null===(t=e.database_matched)||void 0===t?void 0:t.itemId)||"","Equity Check":null!=(null===_||void 0===_||null===(n=_["Equity Check"])||void 0===n?void 0:n.from_database)?_["Equity Check"].from_database/1e6:"","Opportunity Type":(null===_||void 0===_||null===(a=_["Opportunity Type"])||void 0===a||null===(c=a.database_matched)||void 0===c?void 0:c.itemId)||"",Country:(null===_||void 0===_||null===(i=_.Country)||void 0===i||null===(l=i.database_matched)||void 0===l?void 0:l.itemId)||"",Source:(null===_||void 0===_||null===(o=_.Source)||void 0===o||null===(s=o.database_matched)||void 0===s?void 0:s.itemId)||"",Groups:g,"Deal Team Lead":C,State:(null===_||void 0===_||null===(r=_.State)||void 0===r||null===(d=r.database_matched)||void 0===d?void 0:d.text)||(null===_||void 0===_||null===(u=_.State)||void 0===u?void 0:u.from_database),"Sub-Sector":null!==(b=_["Sub-Sector"])&&void 0!==b&&b.database_matched?null===(j=_["Sub-Sector"])||void 0===j?void 0:j.database_matched.itemId:null},Object(_e.omit)(O,["add_all_contacts","salesloft_contacts","cadence"])),"string"===typeof(null===_||void 0===_||null===(p=_.Country)||void 0===p?void 0:p.from_database)&&Object(Qe.p)(null===O||void 0===O?void 0:O.Country)?{Country:_.Country.from_database}:{}),"string"===typeof(null===_||void 0===_||null===(f=_.State)||void 0===f?void 0:f.from_database)&&Object(Qe.p)(null===O||void 0===O?void 0:O.State)?{State:_.State.from_database}:{}),"string"===typeof(null===_||void 0===_||null===(m=_.City)||void 0===m?void 0:m.from_database)&&Object(Qe.p)(null===O||void 0===O?void 0:O.City)?{City:_.City.from_database}:{}),"number"===typeof(null===_||void 0===_||null===(h=_["Equity Check"])||void 0===h?void 0:h.from_database)&&Object(Qe.p)(null===O||void 0===O?void 0:O["Equity Check"])?{"Equity Check":_["Equity Check"].from_database/1e6}:{}),"string"===typeof(null===_||void 0===_||null===(y=_.Commentary)||void 0===y?void 0:y.from_database)&&Object(Qe.p)(null===O||void 0===O?void 0:O.Commentary)?{Commentary:_.Commentary.from_database}:{})}),[_,g,C,O]);y&&null!==y&&void 0!==y&&y.current&&(null===y||void 0===y||null===(n=y.current)||void 0===n||n.validateForm(null===p||void 0===p||null===(a=p.step2)||void 0===a?void 0:a[j.company_id]));if(null!==y&&void 0!==y&&y.current&&(null===y||void 0===y||null===(t=y.current)||void 0===t||!t.isValid)){var w,k,T={};Object.keys(null===y||void 0===y||null===(w=y.current)||void 0===w?void 0:w.errors).forEach((function(e){T[e]=!0})),null===y||void 0===y||null===(k=y.current)||void 0===k||k.setTouched(T)}Object(m.useEffect)((function(){if(y.current)if(y.current.validateForm(),"single"===l||"update-and-submit"===l)I(y.current.values);else if("single-bulk"===l||"previous"===l){var e;c(x.a.updateBulkCompany({formValues:Object(v.a)(Object(v.a)({},null===p||void 0===p||null===(e=p.step2)||void 0===e?void 0:e[j.company_id]),{},{company_id:j.company_id},void 0!==s&&{cadence:s}),shouldSubmit:!1})),"single-bulk"===l?r(0):"previous"===l&&c(x.a.fetchCompany(b[Number(f)-2],!0)),o(null)}}),[l]),Object(m.useEffect)((function(){u("Company ".concat(f," of ").concat(b.length,": ").concat(j.company_name))}),[f,b,j]),Object(m.useEffect)((function(){return j.is_in_et?ze.b.success("Company is already in Equity Touch",0):ze.b.destroy(),function(){ze.b.destroy()}}),[j]);var I=function(e){var t,n;null===(t=y.current)||void 0===t||t.validateForm(e),c(x.a.updateBulkCompany({formValues:Object(v.a)(Object(v.a)({},null===p||void 0===p||null===(n=p.step2)||void 0===n?void 0:n[j.company_id]),{},{company_id:j.company_id},void 0!==s&&{cadence:s}),shouldSubmit:"update-and-submit"===l||f===b.length})),f!==b.length&&"update-and-submit"!==l?c(x.a.fetchCompany(b[Number(f)])):r(2),o(null)};return Object(ee.jsx)(ee.Fragment,{children:Object(ee.jsx)(ie.e,{initialValues:S,onSubmit:I,validateOnChange:!0,enableReinitialize:!0,validationSchema:j.is_in_et?void 0:P.c,innerRef:function(e){y.current=e},children:Object(ee.jsxs)(ae.a,{layout:"vertical",onBlur:function(){l&&o(null)},children:[Object(ee.jsx)(we,{step:2}),Object(ee.jsxs)(Q,{gutter:20,children:[Object(ee.jsxs)(M.a,{span:24,xxl:12,children:[Object(ee.jsx)(Z,{children:0!==Object.keys(j).length&&Object(ee.jsx)(Ze.a,{company:j,newTab:!0})}),Object(ee.jsx)(Z,{title:Object(ee.jsx)(qe,{title:"Company Info"}),children:Object(ee.jsx)(fe.b,{readOnly:j.is_in_et,fields:oe.e,initialFormData:_})})]}),Object(ee.jsxs)(M.a,{span:24,xxl:12,children:[Object(ee.jsx)(Ye,{readOnly:j.is_in_et}),Object(ee.jsx)(Z,{title:Object(ee.jsx)(qe,{title:"Contact Info"}),extra:Object(ee.jsx)(dt,{}),children:Object(ee.jsx)(rt,{readOnly:j.is_in_et})}),Object(ee.jsx)(Z,{title:Object(ee.jsx)(qe,{title:"PSG Context and Rank",subtitle:"These values will be applied to all companies. You can override values in the next step"}),children:Object(ee.jsx)(fe.b,{readOnly:j.is_in_et,fields:oe.f,initialFormData:Object(v.a)(Object(v.a)({},_),{},{"Add-On For":Object(v.a)(Object(v.a)({},_["Add-On For"]),{},{received_values:d?[Object(v.a)({},d)]:[]})})})})]})]})]})})})},bt=n(1945),jt=function(){var e=Object(h.f)(E.a.equityTouch.results);return Object(ee.jsx)(ce.a,{tableLayout:"fixed",columns:bt.a,rowKey:"company_id",dataSource:e,pagination:!1,bordered:!0,className:"legacy-table",style:{maxHeight:"45vh",overflowY:"auto"}})},pt=(n(969),n(660)),Ot=Object(U.default)(pt.a)(j||(j=Object(K.a)(["\n padding: 48px 32px;\n"]))),vt=function(){var e=Object(_.g)(),t=Object(h.f)(E.a.equityTouch.successfulCount),n=Object(h.f)(E.a.equityTouch.selectedCompaniesCount),a=Object(h.f)(E.a.equityTouch.getListType),c=Object(h.f)(E.a.equityTouch.getListId),i=Object(A.a)().advancedSearchPathname,l=Object(m.useState)(a&&c?"/".concat(a,"/").concat(c):i),o=Object(f.a)(l,2),s=o[0],r=o[1],d=Object(P.f)();return Object(m.useEffect)((function(){null!==d&&void 0!==d&&d.includes("companiesOutReach")&&r(N.e.reports.sourcingOutreachSummaryCompanies)}),[d]),Object(ee.jsx)(ee.Fragment,{children:Object(ee.jsx)(Ot,{status:t?"success":"error",title:"".concat(t||0,"/").concat(n," ").concat(1===n?"Company":"Companies"," Successfully Added to Equity Touch"),subTitle:"It may take up to 5 minutes for companies to show in Equity Touch",extra:[Object(ee.jsxs)(F.a,{onClick:function(){return e.push(s)},children:["Back to ",a?"List":"Advanced Search"]})]},"et-bulk-completed-key")})},ft=(n(357),n(207)),mt=(n(971),n(662)),ht=n(63),_t=Object(U.default)(mt.a)(p||(p=Object(K.a)(["\n text-align: center;\n\n .ant-progress-outer {\n width: 50%;\n }\n\n .ant-progress-inner {\n box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.08);\n }\n"]))),yt=Object(U.default)(pt.a)(O||(O=Object(K.a)(["\n padding: 48px 32px;\n"]))),xt=function(){var e=Object(h.e)(),t=Object(h.f)(E.a.equityTouch.percentageCompleted),n=Object(m.useState)(!1),a=Object(f.a)(n,2),c=a[0],i=a[1];return Object(ee.jsxs)(ee.Fragment,{children:[Object(ee.jsx)(_t,{percent:t,showInfo:!1}),Object(ee.jsx)(yt,{status:"success",title:"In Progress",subTitle:"Depending on the number of companies, this may take awhile",icon:Object(ee.jsx)(ee.Fragment,{}),extra:[Object(ee.jsx)(F.a,{onClick:function(){i(!0)},children:"Cancel"})]},"et-bul-in-progress-key"),Object(ee.jsx)(ft.a,{title:"Confirmation",visible:c,onOk:function(){e(x.a.cancel(!0)),e(ht.a.toggle({loading:!0,customText:"Canceling..."})),i(!1)},onCancel:function(e){e&&e.currentTarget&&e.currentTarget.blur(),i(!1)},children:"Are you sure you want to cancel the operation?"})]})},gt=function(){var e=Object(h.f)(E.a.equityTouch.isCompleted);return Object(ee.jsxs)(ee.Fragment,{children:[e?Object(ee.jsx)(vt,{}):Object(ee.jsx)(xt,{}),Object(ee.jsx)(jt,{}),Object(ee.jsx)(we,{step:3})]})},Ct=function(){var e=null;switch(Object(m.useContext)(q.a).step){case 0:e=Object(ee.jsx)(He,{});break;case 1:e=Object(ee.jsx)(ut,{});break;case 2:e=Object(ee.jsx)(gt,{});break;default:return null}return Object(ee.jsx)(ee.Fragment,{children:e})},St=function(){Object(C.M)(),Object(k.a)(),Object(S.o)(),Object(T.a)(),Object(g.c)();var e=Object(_.h)(),t=Object(_.i)(),n=t.grid,a=t.step,c=Object(_.g)(),i=Object(h.e)(),l=Object(m.useState)(0),o=Object(f.a)(l,2),s=o[0],r=o[1],d=Object(m.useState)(),u=Object(f.a)(d,2),b=u[0],j=u[1],p=Object(m.useState)(""),O=Object(f.a)(p,2),F=O[0],D=O[1],N=Object(m.useState)(null),E=Object(f.a)(N,2),A=E[0],V=E[1],P=Object(m.useState)(void 0),R=Object(f.a)(P,2),L=R[0],B=R[1],G=Object(m.useState)([]),W=Object(f.a)(G,2),M=W[0],z=W[1],K=Object(m.useState)(void 0),U=Object(f.a)(K,2),$=U[0],Y=U[1],J=Object(m.useState)(!1),X=Object(f.a)(J,2),H=X[0],Q=X[1],Z=Object(m.useState)([]),te=Object(f.a)(Z,2),ae=te[0],ce=te[1],ie=Object(h.f)(y.d.getCadences),le=Object(w.a)().fetchSalesloftAuth,oe=Object(m.useCallback)((function(e,t){return i(y.a.fetchSalesloftCadences(e,t))}),[i]),se=Object(m.useCallback)((function(){var t,c,l,o;i(x.a.initializeEquityTouchBulk(Object(v.a)(Object(v.a)({grid:n},"1"===a?{isFirstStep:!0}:{}),void 0!==(null===(t=e.state)||void 0===t?void 0:t.listId)&&""!==(null===(c=e.state)||void 0===c?void 0:c.listType)&&{listId:null===(l=e.state)||void 0===l?void 0:l.listId,listType:null===(o=e.state)||void 0===o?void 0:o.listType})))}),[i,n]);return Object(m.useEffect)((function(){var e=Number(a)-1;r(e),"1"!==a&&"2"!==a&&"3"!==a&&j(!0)}),[]),Object(m.useEffect)((function(){c.replace("/equity-touch-bulk/step-".concat(Number(s+1),"/").concat(n))}),[s]),Object(m.useEffect)((function(){ie.length<=1&&oe("",(function(){le("",(function(e){window.open(e,"popUpWindow","height=500,width=500,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes")}))}
1)),se()}),[]),b?Object(ee.jsx)(I.default,{}):Object(ee.jsxs)(q.a.Provider,{value:{step:s,setStep:r,title:F,setTitle:D,submitForm:A,setSubmitForm:V,cadence:L,setCadence:B,selectedContacts:M,setSelectedContacts:z,addon:$,setAddon:Y,isAddon:H,setIsAddon:Q,errors:ae,setErrors:ce},children:[2!==s&&Object(ee.jsx)(ne,{}),Object(ee.jsx)(Ct,{})]})}}}]); 2//# sourceMappingURL=35.b5c7fa8c.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.