1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5855],{21605:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/match-matrix",function(){return i(81947)}])},76026:function(e,t,i){"use strict";var r=i(97458),n=i(51865),s=i.n(n),a=i(52983);t.Z=(0,a.memo)(function(e){let{changeTab:t,current:i,tabs:n}=e;return(0,r.jsx)("div",{className:"border-light-500 mb-8 border-b",children:(0,r.jsx)("nav",{"aria-label":"Tabs",className:"-mb-px flex justify-start space-x-4 sm:justify-center md:justify-start md:space-x-8",children:n.map(e=>(0,r.jsxs)("div",{"aria-current":e.name===i?"page":void 0,className:s()(e.name===i?"border-info-content text-info-content":"text-light-500 hover:border-info-content hover:text-info-content border-transparent","group inline-flex cursor-pointer items-center border-b-2 px-4 py-4 text-sm font-medium sm:justify-center md:px-1"),onClick:()=>t(e.name),children:[!!e.icon&&(0,r.jsx)(e.icon,{"aria-hidden":"true",className:s()(e.name===i?"text-info-content":"text-light-500 group-hover:text-info-content","h-5 w-5 md:-ml-0.5 md:mr-2")}),(0,r.jsx)("span",{className:"hidden md:block",children:e.name}),e.badge&&(0,r.jsx)("div",{"aria-hidden":"true",className:s()(e.name===i?"bg-info text-primary":"bg-secondary text-primary-content","badge badge-sm ml-2"),children:e.badge})]},e.name))})})})},77781:function(e,t,i){"use strict";i.d(t,{Z:function(){return r.Z}});var r=i(76026)},8043:function(e,t,i){"use strict";i.d(t,{Z:function(){return w}});var r=i(97458),n=i(70031),s=i.n(n),a=i(39364),o=i(37748),l=i.n(o),d=i(85861),c=i.n(d),u=i(52983),h=i(61412),m=i(23718),f=i(5936),p=i(58505),g=i(38480),v=i(53828),x=i(92918),y=i(51865),b=i.n(y),_=i(10800),j=i(97641);function k(e){let{closeModal:t,open:i}=e,n=(0,u.useRef)(null),s=(0,_.useRouter)(),a=()=>s.push("/app/pricing");return(0,r.jsx)(g.u.Root,{as:u.Fragment,show:i,children:(0,r.jsxs)(v.V,{as:"div",className:b()("relative z-10",m.Z.Roboto.className),initialFocus:n,onClose:j.B.noop,children:[(0,r.jsx)(g.u.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,r.jsx)("div",{className:"bg-primary fixed inset-0 bg-opacity-75 transition-opacity"})}),(0,r.jsx)("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:(0,r.jsx)("div",{className:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0",children:(0,r.jsx)(g.u.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,r.jsxs)(v.V.Panel,{className:"bg-secondary relative transform overflow-hidden rounded-lg text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg",children:[(0,r.jsx)("div",{className:"px-4 pb-4 pt-5 sm:p-6 sm:pb-4",children:(0,r.jsxs)("div",{className:"sm:flex sm:items-start",children:[(0,r.jsx)("div",{className:"bg-error/20 mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10",children:(0,r.jsx)(x.Z,{"aria-hidden":"true",className:"text-error-content h-6 w-6"})}),(0,r.jsxs)("div",{className:"mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left",children:[(0,r.jsx)(v.V.Title,{as:"h3",className:"text-primary-content text-base font-semibold leading-6",children:"You are subscribed to the free plan."}),(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)("p",{className:"text-primary-content/50 text-sm",children:"Please subscribe to the preimum plan to enable more features"})})]})]})}),(0,r.jsxs)("div",{className:"px-4 py-3 sm:flex sm:flex-row-reverse sm:px-6",children:[(0,r.jsx)("button",{className:"bg-info text-primary-content hover:bg-info/70 inline-flex w-full justify-center rounded-md px-3 py-2 text-sm font-semibold shadow-sm sm:ml-3 sm:w-auto",onClick:a,type:"button",children:"Subscribe"}),(0,r.jsx)("button",{className:"bg-primary/50 text-primary-content hover:bg-primary mt-3 inline-flex w-full justify-center rounded-md px-3 py-2 text-sm font-semibold shadow-sm sm:mt-0 sm:w-auto",onClick:t,ref:n,t
1ype:"button",children:"Cancel"})]})]})})})})]})})}let C=e=>{let{children:t,description:i="",image:n,isAdmin:o=!1,isCRMConnection:d=!1,isOrgActive:g=!1,noSidebar:v=!1,notification:x,organizationId:y,title:b}=e,[_,j]=(0,u.useState)(!1),C=(0,u.useCallback)(e=>{j(t=>t!==e?e:t)},[]);(0,h.B1)(g),(0,h.zj)();let w=(0,u.useMemo)(()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:b||"RevTron - Make decisions hardened by data"}),(0,r.jsx)("meta",{content:b,property:"og:title"}),(0,r.jsx)("meta",{content:i,name:"description"}),(0,r.jsx)("meta",{content:i,name:"og:description"}),(0,r.jsx)("meta",{content:"en_US",property:"og:locale"}),(0,r.jsx)("meta",{content:"website",property:"og:type"}),(0,r.jsx)("meta",{content:"Revtron",property:"og:site_name"}),n&&(0,r.jsx)("meta",{content:n,property:"og:image"}),(0,r.jsx)("meta",{content:"https://revtron.ai/",property:"og:url"})]}),[b,i,n]);return(0,r.jsxs)("div",{className:"jsx-2dc77ac720118114 "+(m.Z.Roboto.className||""),children:[(0,r.jsx)(l(),{children:w}),(0,r.jsx)(s(),{id:"2dc77ac720118114",children:"#sc-embed{display:none}"}),(0,r.jsxs)(f._.Provider,{value:{handleModalState:C,open:_},children:[(0,r.jsxs)("div",{className:"jsx-2dc77ac720118114 drawer-mobile drawer",children:[(0,r.jsx)("input",{id:"revtron-drawer",type:"checkbox",className:"jsx-2dc77ac720118114 drawer-toggle"}),(0,r.jsxs)("div",{className:"jsx-2dc77ac720118114 drawer-content flex flex-col",children:[(0,r.jsx)(p.aJ,{noSidebar:v,notification:g?x?(0,r.jsx)("span",{className:"jsx-2dc77ac720118114",children:x}):void 0:(0,r.jsxs)("span",{className:"jsx-2dc77ac720118114",children:["Connect your CRM"," ",(0,r.jsx)(c(),{className:"text-blue-500 hover:underline",href:"/admin/crm",children:"here"})," ","to create contacts and companies directly in your CRM and to access your Ideal Customer Profile dashboard."]})}),(0,r.jsx)("div",{className:"jsx-2dc77ac720118114 bg-base-300 -z-[1] h-full overflow-y-auto px-4 pt-4 lg:px-10",children:(0,r.jsx)(a.CH,{children:t})})]}),!v&&(0,r.jsxs)("div",{className:"jsx-2dc77ac720118114 drawer-side w-20 !overflow-visible",children:[(0,r.jsx)("label",{htmlFor:"revtron-drawer",className:"jsx-2dc77ac720118114 drawer-overlay"}),(0,r.jsx)(p.aK,{isAdmin:o,isCRMConnection:d,isOrgActive:g,organizationId:y})]})]}),(0,r.jsx)(k,{closeModal:()=>C(!1),open:_})]})]})};var w=C},81947:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return X},default:function(){return G}});var r,n,s,a,o=i(97458),l=i(52461),d=i(76472),c=i(54369),u=i(10800),h=i(52983),m=i(77872),f=i(45504),p=i(45519),g=i(29224),v=i(34915),x=i(8998);function y(e){let t=(0,u.useRouter)(),[i,r]=(0,h.useState)(!1),[n,s]=(0,h.useState)(null),[a,l]=(0,h.useState)(null),[y,{data:b,loading:_}]=(0,x.VFp)(),[j]=(0,x.yF2)();(0,h.useEffect)(()=>{y({fetchPolicy:n?"no-cache":"cache-and-network"})},[y,n]);let k=(0,h.useCallback)(()=>{s(Date.now())},[]),C=(0,h.useMemo)(()=>{if(b){var e;return b.listMatches.map(t=>{var i,r,n,s;return{description:t.description||"-",file_id:t.file_id,id:t.id,mappings:null!==(e=t.mappings)&&void 0!==e?e:[],name:t.name,records:"Company"===t.type?(null==t?void 0:null===(i=t.toMatchedCompanies)||void 0===i?void 0:null===(r=i.aggregate)||void 0===r?void 0:r.count)||0:(null==t?void 0:null===(n=t.toMatchedPeople)||void 0===n?void 0:null===(s=n.aggregate)||void 0===s?void 0:s.count)||0,status:t.status,type:t.type,updated_at:(0,d.Z)((0,c.Z)(t.updated_at),"LLLL d, yyyy")}})}return[]},[b]),w=(0,h.useCallback)(async(e,i)=>{e===v.Vg.EDIT?(l(i),r(!0)):e===v.Vg.VIEW?await t.push({pathname:"prospector",query:{listMatchId:i.id,page:1,perPage:10,subTab:"saved",tab:"Company"===i.type?"companies":"people"}},void 0,{shallow:!0}):j({variables:{fileId:i.file_id}}).then(()=>{m.ZP.success("Deleted a list match"),k()}).catch(e=>{console.error(e),m.ZP.error("Deleting a list match failed!")})},[j,k,t]),N=(0,h.useCallback)(()=>{r(!1),l(null)},[]);return(0,o.jsx)("div",{className:"text-primary-content/80 h-full rounded-md p-8",children:(0,o.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,o.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,o.jsxs)("div",{className:"sm:flex-auto",children:[(0,o.jsx)("h1",{className:"text-base font-semibold leading-6",children:"Match Matrix"}),(0,o.jsx)("p",{className:"text-primary-content/60 mt-2 text-sm"})]}),(0,o.jsx)("div",{className:"mt-4 sm:ml-16 sm:mt-0 sm:flex-none",children:(0,o.jsx)(f.Z,{onClick:()=>r(!0),children:"Upload Lists"})})]}),(0,o.jsx)("div",{className:"mt-8 flow-root",children:(0,o.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,o.jsx)("div",{className:"inline-block min-w-full py-2 align-middle",children:(0,o.jsx)("div",{className:"mb-32 mt-8 flow-root",children:_?(0,o.jsx)("div",{className:"mx-auto my-12 w-24",children:(0,o.jsx)(g.gR,{})}):(0,o.jsx)(v.WW,{onRowActionClick:w,tableRows:C,...e})})})})}),(0,o.jsx)(p.Z,{autoClose:!1,closeModal:N,show:i,size:"3xl",title:"Upload Lists",titleBorder:!1,children:(0,o.jsx)(T,{closeModal:N,organization_id:e.organization.id,refresh:k,selectedRow:a})})]})})}var b=i(39364),_=i(39378),j=i.n(_),k=i(49571),C=i.n(k),w=i(77781),N=i(61412),E=i(97641),R=i(66694);let S=R.q.storage;(r=s||(s={})).ListType="1. List Type",r.Mapping="2. Mapping";let O=[{name:s.ListType},{name:s.Mapping}],M={description:"",file:{fileId:"",fileName:""},id:0,mappings:[],name:"",type:""};function T(e){let{closeModal:t,organization_id:i,refresh:r,selectedRow:n}=e,[l]=(0,x.X8X)(),[d]=(0,x.crc)(),[c,u]=(0,h.useState)(!1),[f,p]=(0,h.useState)(M),[g,v]=(0,h.useState)([]),[y,_]=(0,h.useState)(O[0].name),{displayName:k,email:R}=(0,b.v$)(),{triggerMatchProcess:T}=(0,N.go)();(0,h.useEffect)(()=>
1{if(n&&n.file_id){let e=S.getPublicUrl({fileId:n.file_id});C().parse(e,{download:!0,header:!0,skipEmptyLines:!0,step:function(e){let t=Object.keys(e.data);v(t)}})}},[n]),(0,h.useEffect)(()=>{if(g.length>0&&n&&n.file_id){let e={description:n.description,file:{fileId:n.file_id,fileName:n.name},id:n.id,mappings:(n.type===a.COMPANY?Y:J).map(e=>{let t=n.mappings.filter(t=>t.revtronField===e.value);return{crm:t.length>0?{label:t[0].crmField,value:t[0].crmField}:null,revtron:e}}),name:n.name,type:n.type};p(e)}},[g,n]);let A=(0,h.useCallback)(e=>{f.type&&f.type===e.type&&f.mappings.length||(e.mappings=e.type===a.COMPANY?Y.map(e=>({crm:null,revtron:e})):J.map(e=>({crm:null,revtron:e}))),p(e),_(s.Mapping)},[f]),F=(0,h.useCallback)(()=>_(s.ListType),[]),I=(0,h.useCallback)(async()=>{u(!0);try{let n=0,s={description:f.description,file_id:f.file.fileId,mappings:f.mappings.filter(e=>!!e.crm).map(e=>({crmField:e.crm.value,revtronField:e.revtron.value})),name:f.name,organization_id:i,status:0,type:f.type};if(f.id){let{data:e}=await d({variables:{id:f.id,listMatch:s}});n=e.update_list_matches_by_pk.id}else{var e;let{data:t}=await l({variables:{listMatch:s}});n=null==t?void 0:null===(e=t.insert_list_matches_one)||void 0===e?void 0:e.id}if(!n)throw Error("No list match ID");await T(n,R,k),m.ZP.success("Your listing source has been uploaded successfully. We will let you know as soon as we find matching records!"),t(),r()}catch(e){console.error(e),m.ZP.error("Failed to upload list source!")}finally{u(!1)}},[l,t,k,R,f.description,f.file.fileId,f.id,f.mappings,f.name,f.type,i,r,T,d]),L=(0,h.useCallback)(e=>{if(f.mappings.length>0){let t=j().cloneDeep(f.mappings),i=t.findIndex(t=>j().isEqual(t.revtron,e.revtron));i>=0&&(t[i]=e,p({...f,mappings:t}))}},[f]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"mx-4",children:(0,o.jsx)(w.Z,{changeTab:E.B.noop,current:y,tabs:O})}),y===s.ListType&&(0,o.jsx)(B,{initialValues:f,onNext:A,onSetCSVFields:e=>v(e)}),y===s.Mapping&&(0,o.jsx)(K,{loading:c,mappings:f.mappings,myFields:g,onBack:F,onMappingChange:L,submit:I})]})}let A=h.forwardRef(function({title:e,titleId:t,...i},r){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},i),e?h.createElement("title",{id:t},e):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 21h19.5m-18-18v18m10.5-18v18m6-13.5V21M6.75 6.75h.75m-.75 3h.75m-.75 3h.75m3-6h.75m-.75 3h.75m-.75 3h.75M6.75 21v-3.375c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21M3 3h12m-.75 4.5H21m-3.75 3.75h.008v.008h-.008v-.008Zm0 3h.008v.008h-.008v-.008Zm0 3h.008v.008h-.008v-.008Z"}))}),F=h.forwardRef(function({title:e,titleId:t,...i},r){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},i),e?h.createElement("title",{id:t},e):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});var I=i(51865),L=i.n(I),D=i(92134),P=i(18648),z=i(85676),Z=i(70810);function q(e){let{bgColor:t="primary",borderColor:i="",label:r="",...n}=e,s=(0,Z.Z)();return(0,o.jsxs)("div",{className:"form-control",children:[(0,o.jsx)("label",{className:"label",htmlFor:s,children:(0,o.jsx)("span",{className:"label-text text-primary-content/60",children:r})}),(0,o.jsx)("textarea",{className:L()("textarea textarea-bordered textarea-info border-base-200 text-primary-content/60 h-24","bg-".concat(t),i),...n,id:s})]})}let U=P.Ry({file:P.Ry().shape({fileId:P.Z_().required("Select your CSV file!"),fileName:P.Z_().required()}),name:P.Z_().required("List name is required!"),type:P.Z_().required("List type is required!")}).required();function B(e){var t,i,r,n,s,l,d;let{initialValues:c,onNext:u,onSetCSVFields:m}=e,p=(0,h.useRef)(),[g]=(0,x.g3N)(),{isUploading:v,progress:y,upload:_}=(0,b.FL)(),j=(0,D.TA)({enableReinitialize:!0,initialValues:c,onSubmit:e=>u(e),validationSchema:U}),k=(0,h.useCallback)(async e=>{e.stopPropagation(),e.preventDefault();let t=e.target.files[0];if(t){j.values.file.fileId&&await g({variables:{id:j.values.file.fileId}});let{id:e}=await _({file:t});j.setFieldValue("file",{fileId:e,fileName:t.name}),C().parse(t,{header:!0,skipEmptyLines:!0,step:function(e){let t=Object.keys(e.data);m(t)}})}},[g,j,m,_]),w=(0,h.useMemo)(()=>({"--value":y}),[y]);return(0,o.jsxs)("form",{className:"text-primary-content/60",onSubmit:j.handleSubmit,children:[(0,o.jsxs)("div",{className:"px-4",children:[(0,o.jsxs)("div",{className:"mb-4",children:[(0,o.jsx)("p",{className:"mb-2 text-sm",children:"What kind of list are you uploading?"}),(0,o.jsxs)("div",{className:"inline-flex w-full",children:[(0,o.jsxs)("div",{className:L()("hover:border-info mr-4 inline-flex w-1/2 items-center rounded-lg border p-4",j.values.type===a.
1COMPANY?"border-info":"border-light-500"),onClick:()=>j.setFieldValue("type",j.values.type===a.COMPANY?"":a.COMPANY),role:"button",children:[(0,o.jsx)("input",{checked:j.values.type===a.COMPANY,className:"radio radio-info",name:"radio-3",onChange:e=>j.setFieldValue("type",e.target.value?a.COMPANY:""),type:"radio"}),(0,o.jsx)(A,{className:"ml-4 mr-1 h-5 w-5"}),(0,o.jsx)("span",{children:"Companies"})]}),(0,o.jsxs)("div",{className:L()("hover:border-info inline-flex w-1/2 items-center rounded-lg border p-4",j.values.type===a.CONTACT?"border-info":"border-light-500"),onClick:()=>j.setFieldValue("type",j.values.type===a.CONTACT?"":a.CONTACT),role:"button",children:[(0,o.jsx)("input",{checked:j.values.type===a.CONTACT,className:"radio radio-info",name:"radio-3",onChange:e=>j.setFieldValue("type",e.target.value?a.CONTACT:""),type:"radio"}),(0,o.jsx)(F,{className:"ml-4 mr-1 h-5 w-5"}),(0,o.jsx)("span",{children:"Contacts"})]})]}),!!(null===(t=j.errors)||void 0===t?void 0:t.type)&&(0,o.jsx)("p",{className:"text-sm text-red-600",children:null===(i=j.errors)||void 0===i?void 0:i.type})]}),(0,o.jsxs)("div",{className:"mb-4",children:[(0,o.jsx)("p",{className:"mb-2 text-sm",children:"Upload your list source(CSV):"}),(0,o.jsx)("div",{className:"border-light-500 rounded-lg border border-dashed p-12 text-center",children:v?(0,o.jsx)(o.Fragment,{children:y?(0,o.jsxs)("div",{className:"radial-progress",style:w,children:[y,"%"]}):null}):(0,o.jsxs)(o.Fragment,{children:[j.values.file.fileId?(0,o.jsxs)("div",{className:"text-sm",children:[(0,o.jsx)("span",{className:"text-primary-content/80 font-semibold",children:j.values.file.fileName}),(0,o.jsx)("div",{className:"hover:text-info text-sm",onClick:()=>null==p?void 0:p.current.click(),role:"button",children:"Change a file"})]}):(0,o.jsx)("div",{className:"hover:text-info text-sm",onClick:()=>null==p?void 0:p.current.click(),role:"button",children:"Select a file"}),(0,o.jsx)("input",{accept:".csv",className:"hidden",hidden:!0,onChange:k,ref:p,type:"file"})]})}),!!(null===(r=j.errors)||void 0===r?void 0:null===(n=r.file)||void 0===n?void 0:n.fileId)&&(0,o.jsx)("p",{className:"text-sm text-red-600",children:null===(s=j.errors)||void 0===s?void 0:null===(l=s.file)||void 0===l?void 0:l.fileId})]}),(0,o.jsx)("div",{className:"mb-4",children:(0,o.jsx)(z.Z,{bgColor:"secondary",borderColor:"border-light-500",error:null===(d=j.errors)||void 0===d?void 0:d.name,label:"List Name",name:"name",onChange:j.handleChange,placeholder:"Enter list name",required:!0,type:"text",value:j.values.name})}),(0,o.jsx)("div",{className:"mb-4",children:(0,o.jsx)(q,{bgColor:"secondary",borderColor:"border-light-500",label:"Description",name:"description",onChange:j.handleChange,placeholder:"Enter description",value:j.values.description})})]}),(0,o.jsx)("div",{className:"border-light-500 mt-8 border-t p-4",children:(0,o.jsx)("div",{className:"text-right",children:(0,o.jsx)(f.Z,{type:"submit",children:"Next"})})})]})}var W=i(4444);let V=h.forwardRef(function({title:e,titleId:t,...i},r){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},i),e?h.createElement("title",{id:t},e):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});var H=i(95750);function K(e){let{loading:t,mappings:i,myFields:r,onBack:n,onMappingChange:s,submit:a}=e,l=(0,h.useMemo)(()=>r.map(e=>({label:e,value:e})),[r]),d=(0,h.useMemo)(()=>i.every(e=>!e.crm),[i]);return(0,o.jsxs)("div",{className:"text-primary-content/60",children:[(0,o.jsxs)("div",{className:"px-4",children:[(0,o.jsx)("div",{className:"mb-2",children:"Please map your fields to the corresponding Revtron fields."}),(0,o.jsxs)("div",{className:"bg-primary grid grid-cols-3 gap-8 rounded p-2",children:[(0,o.jsx)("p",{className:"font-bold",children:"Fields"}),(0,o.jsx)("p",{className:"font-bold",children:"My File Fields"}),(0,o.jsx)("p",{className:"mx-auto font-bold",children:"Map Status"})]}),(0,o.jsx)("div",{className:"mb-64 mt-2",children:i.map((e,t)=>(0,o.jsxs)("div",{className:"grid grid-cols-3 gap-8 p-2",children:[(0,o.jsx)("div",{className:"flex items-center",children:e.revtron.label}),(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)(H.q4,{onChange:t=>s({crm:t,revtron:e.revtron}),options:l,placeholder:"Select a field",value:e.crm}),!!e.crm&&(0,o.jsx)("div",{className:"group absolute -right-8 top-[15px]",onClick:()=>s({crm:null,revtron:e.revtron}),role:"button",children:(0,o.jsx)(W.Z,{className:"text-info/60 group-hover:text-info h-5 w-5"})})]}),(0,o.jsx)("div",{className:"flex items-center justify-center",children:e.crm?(0,o.jsxs)("div",{className:"flex items-center",children:[(0,o.jsx)(V,{className:"mr-1 h-4 w-4"}),"Mapped"]}):(0,o.jsx)("div",{className:"flex items-center",children:"Unmapped"})})]},t))})]}),(0,o.jsx)("div",{className:"border-light-500 mt-8 border-t p-4",children:(0,o.jsxs)("div",{className:"text-right",children:[(0,o.jsx)(f.Z,{color:"secondary",onClick:n,children:"Back"}),"\xa0\xa0",(0,o.jsx)(f.Z,{disabled:d,loading:t,onClick:a,children:"Submit"})]})})]})}(n=a||(a={}
1)).COMPANY="Company",n.CONTACT="Contact";let Y=[{label:"Company Name",value:"name"},{label:"Company Phone",value:"phone"},{label:"Company Website",value:"domain"},{label:"Company Country",value:"country"},{label:"Company State",value:"state"},{label:"Company City",value:"city"},{label:"Company Street",value:"street"}],J=[{label:"First Name",value:"first_name"},{label:"Last Name",value:"last_name"},{label:"Email",value:"work_email"},{label:"Phone",value:"mobile_phone"},{label:"Job Title",value:"title"},{label:"Company Name",value:"company_name"},{label:"Company Website",value:"company_website"}];var Q=i(8043);let $=e=>(0,o.jsx)(Q.Z,{isAdmin:e.userType===l.t.ADMIN,isCRMConnection:!!e.crmConnection,isOrgActive:!!e.organization.status,notification:"Match Matrix features are actively under development. We'll remove this banner as soon as it's ready",organizationId:e.organization.id,title:"Match matrix | RevTron",children:(0,o.jsx)(y,{...e})});var X=!0,G=$},52461:function(e,t,i){"use strict";var r,n;i.d(t,{t:function(){return r}}),(n=r||(r={})).ADMIN="Admin",n.MEMBER="Member"},49571:function(e,t){var i,r;void 0!==(i="function"==typeof(r=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},i=!t.document&&!!t.postMessage,r=t.IS_PAPA_WORKER||!1,n={},s=0,a={parse:function(i,r){var o,l=(r=r||{}).dynamicTyping||!1;if(_(l)&&(r.dynamicTypingFunction=l,l={}),r.dynamicTyping=l,r.transform=!!_(r.transform)&&r.transform,r.worker&&a.WORKERS_SUPPORTED){var m=function(){if(!a.WORKERS_SUPPORTED)return!1;var i,r,o=(i=t.URL||t.webkitURL||null,r=e.toString(),a.BLOB_URL||(a.BLOB_URL=i.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",r,")();"],{type:"text/javascript"})))),l=new t.Worker(o);return l.onmessage=g,l.id=s++,n[l.id]=l}();return m.userStep=r.step,m.userChunk=r.chunk,m.userComplete=r.complete,m.userError=r.error,r.step=_(r.step),r.chunk=_(r.chunk),r.complete=_(r.complete),r.error=_(r.error),delete r.worker,void m.postMessage({input:i,config:r,workerId:m.id})}var f=null;return a.NODE_STREAM_INPUT,"string"==typeof i?(i=65279===(o=i).charCodeAt(0)?o.slice(1):o,f=r.download?new d(r):new u(r)):!0===i.readable&&_(i.read)&&_(i.on)?f=new h(r):(t.File&&i instanceof File||i instanceof Object)&&(f=new c(r)),f.stream(i)},unparse:function(e,t){var i=!1,r=!0,n=",",s="\r\n",o='"',l=o+o,d=!1,c=null,u=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(n=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(d=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(o=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw Error("Option columns is empty");c=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+o),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(u=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var h=RegExp(f(o),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return m(null,e,d);if("object"==typeof e[0])return m(c||Object.keys(e[0]),e,d)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||c),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),m(e.fields||[],e.data||[],d);throw Error("Unable to serialize unrecognized input");function m(e,t,i){var a="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var o=Array.isArray(e)&&0<e.length,l=!Array.isArray(t[0]);if(o&&r){for(var d=0;d<e.length;d++)0<d&&(a+=n),a+=p(e[d],d);0<t.length&&(a+=s)}for(var c=0;c<t.length;c++){var u=o?e.length:t[c].length,h=!1,m=o?0===Object.keys(t[c]).length:0===t[c].length;
1if(i&&!o&&(h="greedy"===i?""===t[c].join("").trim():1===t[c].length&&0===t[c][0].length),"greedy"===i&&o){for(var f=[],g=0;g<u;g++){var v=l?e[g]:g;f.push(t[c][v])}h=""===f.join("").trim()}if(!h){for(var x=0;x<u;x++){0<x&&!m&&(a+=n);var y=o&&l?e[x]:x;a+=p(t[c][y],x)}c<t.length-1&&(!i||0<u&&!m)&&(a+=s)}}return a}function p(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var r=!1;u&&"string"==typeof e&&u.test(e)&&(e="'"+e,r=!0);var s=e.toString().replace(h,l);return(r=r||!0===i||"function"==typeof i&&i(e,t)||Array.isArray(i)&&i[t]||function(e,t){for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1}(s,a.BAD_DELIMITERS)||-1<s.indexOf(n)||" "===s.charAt(0)||" "===s.charAt(s.length-1))?o+s+o:s}}};if(a.RECORD_SEP="\x1e",a.UNIT_SEP="\x1f",a.BYTE_ORDER_MARK="\uFEFF",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!i&&!!t.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=p,a.ParserHandle=m,a.NetworkStreamer=d,a.FileStreamer=c,a.StringStreamer=u,a.ReadableStreamStreamer=h,t.jQuery){var o=t.jQuery;o.fn.parse=function(e){var i=e.config||{},r=[];return this.each(function(e){if(!("INPUT"===o(this).prop("tagName").toUpperCase()&&"file"===o(this).attr("type").toLowerCase()&&t.FileReader)||!this.files||0===this.files.length)return!0;for(var n=0;n<this.files.length;n++)r.push({file:this.files[n],inputElem:this,instanceConfig:o.extend({},i)})}),n(),this;function n(){if(0!==r.length){var t,i,n,l=r[0];if(_(e.before)){var d=e.before(l.file,l.inputElem);if("object"==typeof d){if("abort"===d.action)return t=l.file,i=l.inputElem,n=d.reason,void(_(e.error)&&e.error({name:"AbortError"},t,i,n));if("skip"===d.action)return void s();"object"==typeof d.config&&(l.instanceConfig=o.extend(l.instanceConfig,d.config))}else if("skip"===d)return void s()}var c=l.instanceConfig.complete;l.instanceConfig.complete=function(e){_(c)&&c(e,l.file,l.inputElem),s()},a.parse(l.file,l.instanceConfig)}else _(e.complete)&&e.complete()}function s(){r.splice(0,1),n()}}}function l(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var t=y(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new m(t),(this._handle.streamer=this)._config=t}).call(this,e),this.parseChunk=function(e,i){if(this.isFirstChunk&&_(this._config.beforeFirstChunk)){var n=this._config.beforeFirstChunk(e);void 0!==n&&(e=n)}this.isFirstChunk=!1,this._halted=!1;var s=this._partialLine+e;this._partialLine="";var o=this._handle.parse(s,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var l=o.meta.cursor;this._finished||(this._partialLine=s.substring(l-this._baseIndex),this._baseIndex=l),o&&o.data&&(this._rowCount+=o.data.length);var d=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(r)t.postMessage({results:o,workerId:a.WORKER_ID,finished:d});else if(_(this._config.chunk)&&!i){if(this._config.chunk(o,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);o=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(o.data),this._completeResults.errors=this._completeResults.errors.concat(o.errors),this._completeResults.meta=o.meta),this._completed||!d||!_(this._config.complete)||o&&o.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),d||o&&o.meta.paused||this._nextChunk(),o}this._halted=!0},this._sendError=function(e){_(this._config.error)?this._config.error(e):r&&this._config.error&&t.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function d(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),l.call(this,e),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),i||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var r in e)t.setRequestHeader(r,e[r])}if(this._config.chunkSize){var n=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+n)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}i&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){var e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null===(e=t.getResponseHeader("Content-Range"))?-1:parseInt(e.substring(e.lastIndexOf("/")+1))),this.parseChunk(t.responseText)))},this._chunkError=function(e){var i=t.statusText||e;this._sendError(Error(i))}}function c(e){(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),l.call(this,e);var t,i,r="undefined"!=typeof FileReader;
1this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var n=Math.min(this._start+this._config.chunkSize,this._input.size);e=i.call(e,this._start,n)}var s=t.readAsText(e,this._config.encoding);r||this._chunkLoaded({target:{result:s}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function u(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,i=this._config.chunkSize;return i?(e=t.substring(0,i),t=t.substring(i)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function h(e){l.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=b(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=b(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=b(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=b(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function m(e){var t,i,r,n=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,s=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,o=this,l=0,d=0,c=!1,u=!1,h=[],m={data:[],errors:[],meta:{}};if(_(e.step)){var g=e.step;e.step=function(t){if(m=t,b())x();else{if(x(),0===m.data.length)return;l+=t.data.length,e.preview&&l>e.preview?i.abort():(m.data=m.data[0],g(m,o))}}}function v(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function x(){return m&&r&&(j("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(m.data=m.data.filter(function(e){return!v(e)})),b()&&function(){if(m){if(Array.isArray(m.data[0])){for(var t=0;b()&&t<m.data.length;t++)m.data[t].forEach(i);m.data.splice(0,1)}else m.data.forEach(i)}function i(t,i){_(e.transformHeader)&&(t=e.transformHeader(t,i)),h.push(t)}}(),function(){if(!m||!e.header&&!e.dynamicTyping&&!e.transform)return m;function t(t,i){var r,a=e.header?{}:[];for(r=0;r<t.length;r++){var o,l,c=r,u=t[r];e.header&&(c=r>=h.length?"__parsed_extra":h[r]),e.transform&&(u=e.transform(u,c)),o=c,l=u,e.dynamicTypingFunction&&void 0===e.dynamicTyping[o]&&(e.dynamicTyping[o]=e.dynamicTypingFunction(o)),u=!0===(e.dynamicTyping[o]||e.dynamicTyping)?"true"===l||"TRUE"===l||"false"!==l&&"FALSE"!==l&&(!function(e){if(n.test(e)){var t=parseFloat(e);if(-9007199254740992<t&&t<9007199254740992)return!0}return!1}(l)?s.test(l)?new Date(l):""===l?null:l:parseFloat(l)):l,"__parsed_extra"===c?(a[c]=a[c]||[],a[c].push(u)):a[c]=u}return e.header&&(r>h.length?j("FieldMismatch","TooManyFields","Too many fields: expected "+h.length+" fields but parsed "+r,d+i):r<h.length&&j("FieldMismatch","TooFewFields","Too few fields: expected "+h.length+" fields but parsed "+r,d+i)),a}var i=1;return!m.data.length||Array.isArray(m.data[0])?(m.data=m.data.map(t),i=m.data.length):m.data=t(m.data,
vendor: 6,982 bytes, line 1
10),e.header&&m.meta&&(m.meta.fields=h),d+=i,m}()}function b(){return e.header&&0===h.length}function j(e,t,i,r){var n={type:e,code:t,message:i};void 0!==r&&(n.row=r),m.errors.push(n)}this.parse=function(n,s,o){var l=e.quoteChar||'"';if(e.newline||(e.newline=function(e,t){e=e.substring(0,1048576);var i=RegExp(f(t)+"([^]*?)"+f(t),"gm"),r=(e=e.replace(i,"")).split("\r"),n=e.split("\n"),s=1<n.length&&n[0].length<r[0].length;if(1===r.length||s)return"\n";for(var a=0,o=0;o<r.length;o++)"\n"===r[o][0]&&a++;return a>=r.length/2?"\r\n":"\r"}(n,l)),r=!1,e.delimiter)_(e.delimiter)&&(e.delimiter=e.delimiter(n),m.meta.delimiter=e.delimiter);else{var d=function(t,i,r,n,s){var o,l,d,c;s=s||[","," ","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var u=0;u<s.length;u++){var h=s[u],m=0,f=0,g=0;d=void 0;for(var x=new p({comments:n,delimiter:h,newline:i,preview:10}).parse(t),y=0;y<x.data.length;y++)if(r&&v(x.data[y]))g++;else{var b=x.data[y].length;f+=b,void 0!==d?0<b&&(m+=Math.abs(b-d),d=b):d=b}0<x.data.length&&(f/=x.data.length-g),(void 0===l||m<=l)&&(void 0===c||c<f)&&1.99<f&&(l=m,o=h,c=f)}return{successful:!!(e.delimiter=o),bestDelimiter:o}}(n,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);d.successful?e.delimiter=d.bestDelimiter:(r=!0,e.delimiter=a.DefaultDelimiter),m.meta.delimiter=e.delimiter}var u=y(e);return e.preview&&e.header&&u.preview++,t=n,m=(i=new p(u)).parse(t,s,o),x(),c?{meta:{paused:!0}}:m||{meta:{paused:!1}}},this.paused=function(){return c},this.pause=function(){c=!0,i.abort(),t=_(e.chunk)?"":t.substring(i.getCharIndex())},this.resume=function(){o.streamer._halted?(c=!1,o.streamer.parseChunk(t,!0)):setTimeout(o.resume,3)},this.aborted=function(){return u},this.abort=function(){u=!0,i.abort(),m.meta.aborted=!0,_(e.complete)&&e.complete(m),t=""}}function f(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function p(e){var t,i=(e=e||{}).delimiter,r=e.newline,n=e.comments,s=e.step,o=e.preview,l=e.fastMode,d=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(d=e.escapeChar),("string"!=typeof i||-1<a.BAD_DELIMITERS.indexOf(i))&&(i=","),n===i)throw Error("Comment character same as delimiter");!0===n?n="#":("string"!=typeof n||-1<a.BAD_DELIMITERS.indexOf(n))&&(n=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var c=0,u=!1;this.parse=function(a,h,m){if("string"!=typeof a)throw Error("Input must be a string");var p=a.length,g=i.length,v=r.length,x=n.length,y=_(s),b=[],j=[],k=[],C=c=0;if(!a)return H();if(e.header&&!h){var w=a.split(r)[0].split(i),N=[],E={},R=!1;for(var S in w){var O=w[S];_(e.transformHeader)&&(O=e.transformHeader(O,S));var M=O,T=E[O]||0;for(0<T&&(R=!0,M=O+"_"+T),E[O]=T+1;N.includes(M);)M=M+"_"+T;N.push(M)}if(R){var A=a.split(r);A[0]=N.join(i),a=A.join(r)}}if(l||!1!==l&&-1===a.indexOf(t)){for(var F=a.split(r),I=0;I<F.length;I++){if(c+=(k=F[I]).length,I!==F.length-1)c+=r.length;else if(m)break;if(!n||k.substring(0,x)!==n){if(y){if(b=[],U(k.split(i)),K(),u)return H()}else U(k.split(i));if(o&&o<=I)return b=b.slice(0,o),H(!0)}}return H()}for(var L=a.indexOf(i,c),D=a.indexOf(r,c),P=RegExp(f(d)+f(t),"g"),z=a.indexOf(t,c);;)if(a[c]!==t){if(n&&0===k.length&&a.substring(c,c+x)===n){if(-1===D)return H();c=D+v,D=a.indexOf(r,c),L=a.indexOf(i,c)}else if(-1!==L&&(L<D||-1===D))k.push(a.substring(c,L)),c=L+g,L=a.indexOf(i,c);else{if(-1===D)break;if(k.push(a.substring(c,D)),V(D+v),y&&(K(),u))return H();if(o&&b.length>=o)return H(!0)}}else for(z=c,c++;;){if(-1===(z=a.indexOf(t,z+1)))return m||j.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:c}),W();if(z===p-1)return W(a.substring(c,z).replace(P,t));if(t!==d||a[z+1]!==d){if(t===d||0===z||a[z-1]!==d){-1!==L&&L<z+1&&(L=a.indexOf(i,z+1)),-1!==D&&D<z+1&&(D=a.indexOf(r,z+1));var Z=B(-1===D?L:Math.min(L,D));if(a.substr(z+1+Z,g)===i){k.push(a.substring(c,z).replace(P,t)),a[c=z+1+Z+g]!==t&&(z=a.indexOf(t,c)),L=a.indexOf(i,c),D=a.indexOf(r,c);break}var q=B(D);if(a.substring(z+1+q,z+1+q+v)===r){if(k.push(a.substring(c,z).replace(P,t)),V(z+1+q+v),L=a.indexOf(i,c),z=a.indexOf(t,c),y&&(K(),u))return H();if(o&&b.length>=o)return H(!0);break}j.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:c}),z++}}else z++}return W();function U(e){b.push(e),C=c}function B(e){var t=0;if(-1!==e){var i=a.substring(z+1,e);i&&""===i.trim()&&(t=i.length)}return t}function W(e){return m||(void 0===e&&(e=a.substring(c)),k.push(e),c=p,U(k),y&&K()),H()}function V(e){c=e,U(k),k=[],D=a.indexOf(r,c)}function H(e){return{data:b,errors:j,meta:{delimiter:i,linebreak:r,aborted:u,truncated:!!e,cursor:C+(h||0)}}}function K(){s(H()),b=[],j=[]}},this.abort=function(){u=!0},this.getCharIndex=function(){return c}}function g(e){var t=e.data,i=n[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var s={abort:function(){r=!0,v(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:x,resume:x};if(_(i.userStep)){for(var a=0;a<t.results.data.length&&(i.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},s),!r);a++);delete t.results}else _(i.userChunk)&&(i.userChunk(t.results,s,t.file),delete t.results)}t.finished&&!r&&v(t.workerId,t.results)}function v(e,t){var i=n[e];_(i.userComplete)&&i.userComplete(t),i.terminate(),delete n[e]}function x(){throw Error("Not implemented.")}function y(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e)t[i]=y(e[i]);return t}function b(e,t){return function(){e.apply(t,arguments)}}function _(e){return"function"==typeof e}return r&&(t.onmessage=function(e){var i=e.data;if(void 0===a.WORKER_ID&&i&&(a.WORKER_ID=i.workerId),"string"==typeof i.input)t.postMessage({workerId:a.WORKER_ID,results:a.parse(i.input,i.config),finished:!0});else if(t.File&&i.input instanceof File||i.input instanceof Object){var r=a.parse(i.input,i.config);r&&t.postMessage({workerId:a.WORKER_ID,results:r,finished:!0})}}),(d.prototype=Object.create(l.prototype)).constructor=d,(c.prototype=Object.create(l.prototype)).constructor=c,(u.prototype=Object.create(u.prototype)).constructor=u,(h.prototype=Object.create(l.prototype)).constructor=h,a})?r.apply(t,[]):r)&&(e.exports=i)},92918:function(e,t,i){"use strict";var r=i(52983);let n=r.forwardRef(function({title:e,titleId:t,...i},n){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},i),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))});t.Z=n}},function(e){e.O(0,[3060,5861,1664,3272,6923,7336,7299,9619,3086,7607,1127,8998,1412,8505,71,4915,9774,2888,179],function(){return e(e.s=21605)}),_N_E=e.O()}]);
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.