1"use strict";(self.webpackChunkbcn2020=self.webpackChunkbcn2020||[]).push([[7344,2600,8108],{82245:(e,t,r)=>{r.r(t),r.d(t,{MergeConflictsContainer:()=>v});var a=r(29439),n=r(72791),o=r(52174),s=r(11135),i=r(7585),d=r(82600),c=r(41365),l=r(24518),u=r(80184);const g=e=>{const t=(0,o.Z)(e=>(0,s.Z)({root:{},wrap:{whiteSpace:"pre-wrap"}}))(),r=[{propertyName:"fieldName",label:"Field Name"},{propertyName:"currentValue",label:"Current Value",render:e=>(0,u.jsx)("div",{className:t.wrap,children:e.currentValue})},{propertyName:"valueForDeleted",label:"Discarded Value",render:e=>(0,u.jsx)("div",{className:t.wrap,children:e.valueForDeleted})},{label:"",render:t=>(0,u.jsx)("div",{children:(0,u.jsx)(l.Z,{size:"small",variant:"contained",onClick:()=>(async(t,r,a)=>{const n="Are you sure you want to use\r\n\r\n".concat(a,"\r\n\r\ninstead of\r\n\r\n").concat(r);window.confirm(n)&&await e.useDiscardedValue(t)})(t.mergeActionId,t.currentValue,t.valueForDeleted),children:"Use discarded value"})})}];return(0,u.jsx)("div",{className:t.root,children:(0,u.jsx)(c.y,{actions:[],noDataMessage:"No conflicts found",columns:r,showMenu:!1,hideBottomAppBar:!0,hideFilter:!0,defaultSortColumn:"contactLastName",defaultSortOrder:"asc",hideToolbar:!0,data:e.mergeConflicts})})};var m=r(20890),p=r(34489),h=r(9150);const f=e=>{const t=(0,o.Z)(e=>(0,s.Z)({root:{},descriptionLabel:{display:"inline-block",marginRight:e.spacing(2)},header:{display:"flex",justifyContent:"space-between"}}))();return(0,u.jsxs)("div",{className:t.root,children:[(0,u.jsxs)(m.Z,{className:t.header,children:[(0,u.jsx)("strong",{children:e.dataMerge.description}),"Company"===e.dataMerge.type?(0,u.jsx)(h.rU,{target:"_blank",rel:"noopener noreferrer",to:"".concat(p.H.app.admin.companyDetails,"/").concat(e.dataMerge.companyId,"/overview"),children:"View Merged Company"}):(0,u.jsx)(h.rU,{target:"_blank",rel:"noopener noreferrer",to:"".concat(p.H.app.admin.companyDetails,"/").concat(e.dataMerge.companyId,"/contacts/").concat(e.dataMerge.keptEntityId),children:"View Merged Contact"})]}),(0,u.jsx)(g,{dataMergeType:e.dataMerge.type,useDiscardedValue:e.useDiscardedValue,mergeConflicts:e.dataMerge.conflicts})]})},v=e=>{const t=n.useState(),r=(0,a.Z)(t,2),c=r[0],l=r[1];n.useEffect(()=>{(async e=>{const t=await i.C.admin.mergeConflicts.getMergeConflicts(e);l(t)})(e.match.params.dataMergeId)},[e.match.params.dataMergeId]);const g=(0,o.Z)(e=>(0,s.Z)({root:{},instructions:{marginBottom:e.spacing(4)}})),p=async t=>{await i.C.admin.mergeConflicts.useDiscardedValue(t);const r=await i.C.admin.mergeConflicts.getMergeConflicts(e.match.params.dataMergeId);l(r)},h=g();return(0,u.jsx)(d.T,{title:"Merge Conflicts",isLoading:void 0===c,render:()=>(0,u.jsxs)("div",{className:h.root,children:[(0,u.jsx)(m.Z,{className:h.instructions,children:"The merge is complete. Below are the fields where the system had to choose between two values. If the incorrect value was selected, click Use Discarded Value to restore the discarded value."}),c&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(f,{useDiscardedValue:p,dataMerge:c}),c.childMerges.map(e=>(0,u.jsx)(f,{dataMerge:e,useDiscardedValue:p}))]})]})})}},41365:(e,t,r)=>{r.d(t,{y:()=>l});var a=r(1413),n=r(29439),o=r(72791),s=r(8696),i=r(64381),d=r(80184);function c(e,t,r,a){var n,o;if("Primary"===t.primaryStatus)return a?-1:1;if("Primary"===e.primaryStatus)return a?1:-1;const s=null!==(n=e[r])&&void 0!==n?n:"",i=null!==(o=t[r])&&void 0!==o?o:"";if("string"===typeof s&&"string"===typeof i){const e=s.toLocaleLowerCase(),t=i.toLocaleLowerCase();return t<e?-1:t>e?1:0}return i<s?-1:i>s?1:0}const l=e=>{var t;const r=e=>void 0!==e.setFilterTerm,l=o.useState(e.defaultSortColumn),u=(0,n.Z)(l,2),g=u[0],m=u[1],p=o.useState(null!==(t=e.defaultSortOrder)&&void 0!==t?t:"asc"),h=(0,n.Z)(p,2),f=h[0],v=h[1],y=o.useState(""),w=(0,n.Z)(y,2),x=w[0],j=w[1],C=o.useState(0),b=(0,n.Z)(C,2),Z=b[0],M=b[1],N=o.useState(25),L=(0,n.Z)(N,2),S=L[0],k=L[1],D=(0,s.Nr)(r(e)?e.filterTerm:x,1e3),P=e.onFilterChanged,V=e.columns,T=e.customFilterPredicate,F=e.data;o.useEffect(()=>{P&&P(D)},[D,P]);const I=o.useMemo(()=>{const e=Z*S,t=Z*S+S,r=function(e,t){const r=e.map((e,t)=>[e,t]);return r.sort((e,r)=>{const a=t(e[0],r[0]);return 0!==a?a:e[1]-r[1]}),r.map(e=>e[0])}(F,function(e,t){return"desc"===e?(e,r)=>c(e,r,t,!1):(e,r)=>-c(e,r,t,!0)}(f,g)),a=r.filter(e=>{const t=Object.keys(e);return Object.values(e).filter((e,r)=>{const a=t[r];return V.some(e=>e.propertyName===a)}).some(e=>(e=>"string"===typeof e&&e.toLowerCase().includes(D.toLowerCase())||!D)(e)||(e=>"number"===typeof e&&e.toString().toLowerCase().includes(D.toLowerCase())||!D)(e))&&(!T||T(e))});let n=a.slice(e,t),o=Z;return Z>0&&0===n.length&&F.length>0&&(o=0,n=a.slice(0,S)),{filteredSortedAndPaged:n,smartPage:o,totalRecords:a.length}},[D,f,g,Z,S,V,T,F]),B=I.filteredSortedAndPaged,R=I.smartPage,A=I.totalRecords;return(0,d.jsx)(i.s,(0,a.Z)((0,a.Z)({},e),{},{page:R,setPage:M,order:f,setOrder:v,pageSize:S,orderBy:g,setOrderBy:m,currentPageData:B,totalRecords:A,setPageSize:k,filterTerm:r(e)?e.filterTerm:x,setFilterTerm:r(e)?e.setFilterTerm:j}))}},82600:(e,t,r)=>{r.d(t,{T:()=>c});r(72791);var a=r(52174),n=r(54270),o=r(70801),s=r(89164),i=r(63733),d=r(80184);const c=e=>{var t;const r=void 0===e.isLoaded||e.isLoaded,c=(0,a.Z)(t=>{var a;return{pageRoot:{paddingBottom:t.spacing(4),height:"100%",overflowY:null!==(a=e.overflowY)&&void 0!==a?a:"auto",paddingTop:e.hasToolbar?"calc(".concat(t.spacing(5)," - 2px)"):"unset"},watermark:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:-1e3,opacity:r?0:.3,background:"url(/images/watermark-logo.png)",backgroundRepeat:"no-repeat",backgroundPosition:"center",pointerEvents:"none"},linearProgress:{width:100,marginTop:20},loading:{pointerEvents:"none"},content:{transition:t.transitions.create(["opacity"],{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.standard})},hiddenLoader:{opacity:0}
1,topPadding:{minHeight:t.spacing(2)}}})();return(0,d.jsxs)("div",{id:"page-root","data-page-name":null!==(t=e.nameForDebugging)&&void 0!==t?t:"",className:c.pageRoot,children:[(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(n.q,{children:(0,d.jsx)("title",{children:e.title})}),(0,d.jsx)(o.V,{title:e.title})]}),(()=>{if(!e.disableTopPadding)return(0,d.jsx)("div",{className:c.topPadding})})(),(0,d.jsx)("div",{className:c.watermark}),(0,d.jsx)("div",{className:(0,i.Z)(c.content,{[c.loading]:e.isLoading}),children:r&&(()=>{var t;return e.disableContainer?e.render():(0,d.jsx)(s.Z,{maxWidth:null!==(t=e.maxWidth)&&void 0!==t?t:"lg",children:e.render()})})()})]})}},70801:(e,t,r)=>{r.d(t,{V:()=>i});r(72791);var a=r(52174),n=r(54164),o=r(20890),s=r(80184);const i=e=>{const t=document.getElementById("mobile-title-portal"),r=(0,a.Z)(e=>({root:{margin:e.spacing(0,0,1,0)}}))();return t?(()=>{if(!t)throw Error("no add portal");return n.createPortal((0,s.jsx)("div",{children:e.title}),t)})():(0,s.jsx)(o.Z,{variant:"body1",component:"span",className:r.root,children:e.title})}},7883:(e,t,r)=>{r.d(t,{Z:()=>o});r(72791);var a=r(76189),n=r(80184);const o=(0,a.Z)((0,n.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},11883:(e,t,r)=>{r.d(t,{Z:()=>o});r(72791);var a=r(76189),n=r(80184);const o=(0,a.Z)((0,n.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")}}]); 2//# sourceMappingURL=7344.94a66b12.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.