PageSourceSearch

https://app.advisoryai.com/_next/static/chunks/9232.4912db5468c07ac4.js

js advisoryai.com collected 2026-10-06 23:59:22 UTC 30,255 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="0ac8b935-1c59-4214-b7d5-21418437636f",e._sentryDebugIdIdentifier="sentry-dbid-0ac8b935-1c59-4214-b7d5-21418437636f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9232,5418,818],{85418:function(e,l,t){t.d(l,{Z:function(){return h}});var n=t(87462),a=t(63366),i=t(67294),o=t(86010),r=t(49731),s=t(86523),d=t(39707),u=t(79718),c=t(85893);let m=["className","component"],v=function(e={}){let{themeId:l,defaultTheme:t,defaultClassName:v="MuiBox-root",generateClassName:h}=e,f=(0,r.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(s.Z),x=i.forwardRef(function(e,i){let r=(0,u.Z)(t),s=(0,d.Z)(e),{className:x,component:p="div"}=s,g=(0,a.Z)(s,m);return(0,c.jsx)(f,(0,n.Z)({as:p,ref:i,className:(0,o.Z)(x,h?h(v):v),theme:l&&r[l]||r},g))});return x}();var h=v},96490:function(e,l,t){var n=t(85893);t(67294);var a=t(11057),i=t(15861),o=t(64666),r=t(37645),s=t(93946),d=t(6514),u=t(31425),c=t(9473),m=t(239),v=t(11163),h=t(5680),f=t(62177),x=t(50594);let p=e=>{let{open:l,onClose:t}=e,p=(0,c.v9)(m.z),g=(0,v.useRouter)(),b=()=>{g.push("/integrations")},y=async()=>{t()};return(0,n.jsxs)(o.Z,{open:l,onClose:y,fullWidth:!0,maxWidth:"xs","data-sentry-element":"Dialog","data-sentry-component":"ReconnectIntellifloDialog","data-sentry-source-file":"ReconnectIntellifloDialog.tsx",children:[(0,n.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},"data-sentry-element":"DialogTitle","data-sentry-source-file":"ReconnectIntellifloDialog.tsx",children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(f.Z,{style:{color:"orange",marginRight:"8px"},"data-sentry-element":"WarningIcon","data-sentry-source-file":"ReconnectIntellifloDialog.tsx"}),(0,n.jsx)(i.Z,{fontWeight:600,fontSize:"1.125rem","data-sentry-element":"Typography","data-sentry-source-file":"ReconnectIntellifloDialog.tsx",children:"Intelliflo Reconnection Needed !"})]}),(0,n.jsx)(s.Z,{edge:"end",color:"inherit",onClick:y,"aria-label":"close","data-sentry-element":"IconButton","data-sentry-source-file":"ReconnectIntellifloDialog.tsx",children:(0,n.jsx)(x.Z,{"data-sentry-element":"CloseIcon","data-sentry-source-file":"ReconnectIntellifloDialog.tsx"})})]}),(0,n.jsx)(d.Z,{"data-sentry-element":"DialogContent","data-sentry-source-file":"ReconnectIntellifloDialog.tsx",children:p&&p.role===h.rH.ADMIN?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.Z,{variant:"body1",children:"Your Intelliflo session has expired due to some issue. Please reconnect to continue using the service."})}):p&&p.role!==h.rH.ADMIN?(0,n.jsx)(i.Z,{variant:"body1",children:"Your Intelliflo session has expired due to some issue. Please contact your admin to reconnect Intelliflo."}):null}),(0,n.jsx)(u.Z,{"data-sentry-element":"DialogActions","data-sentry-source-file":"ReconnectIntellifloDialog.tsx",children:p&&p.role===h.rH.ADMIN?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.Z,{onClick:b,color:"primary",variant:"outlined",children:"Integrate Again"})}):null})]})};l.Z=p},80120:function(e,l,t){var n=t(85893),a=t(67294),i=t(64666),o=t(37645),r=t(6514),s=t(11057),d=t(93946),u=t(50594),c=t(72242),m=t(85418),v=t(82822),h=t(78551),f=t(98029),x=t(9473),p=t(239),g=t(86501),b=t(47291),y=t(17356),j=t(80126),N=t(98456);let C=e=>{var l;let{open:t,onClose:C,setIntellifloClientData:S,hasintellifloIntegration:Z,userData:I,setDialogOpen:T,searchData:W,setSearchData:D}=e,[P,w]=(0,a.useState)(W),[_,O]=(0,a.useState)(!1),[R,L]=(0,a.useState)({page:0,pageSize:5}),[B,z]=(0,a.useState)([]),A=(0,x.I0)(),E=e=>{A((0,b.rU)(null==e?void 0:e.id)),S(e),C(),w(null),D(null),z([]),T(!0)},F=(e,l)=>{L(e)},k=(0,x.v9)(e=>e.user.authData.data.access_token),M=(0,x.v9)(p.z),Q=(0,h.a)({queryKey:[y.P],queryFn:e=>{let{signal:l}=e;return(0,j.Zh)({signal:l,accessToken:k})},enabled:t}),q=(0,f.D)({mutationFn:e=>(0,v.br)(e),onSuccess:e=>{w(null==e?void 0:e.data),O(!1)},onError:e=>{g.ZP.error("Oops, something went wrong, try again"),O(!1)},onMutate:()=>O(!0)}),U=(0,f.D)({mutationFn:e=>(0,v.ru)(e),onSuccess:e=>{w(null==e?void 0:e.data),O(!1)},onError:e=>{g.ZP.error("Oops, something went wrong, try again"),O(!1)},onMutate:()=>O(!0)}),$=()=>{let e={token:k,firstName:null==I?void 0:I.firstName,lastName:null==I?void 0:I.lastName,user:null==M?void 0:M.id,page:null==R?void 0:R.page,pageSize:null==R?void 0:R.pageSize};if(null==Q?void 0:Q.data){var l;let t=null==Q?void 0:null===(l=Q.data)||void 0===l?void 0:l.find(e=>(null==e?void 0:e.platform)==="intelliflo"&&(null==e?void 0:e.active));t?q.mutate(e):U.mutate(e)}};(0,a.useEffect)(()=>{t&&!W?$():w(W)},[Q.isSuccess,t]),(0,a.useEffect)(()=>{P&&$()},[null==R?void 0:R.pageSize,null==R?void 0:R.page,k,M]);let H=()=>{C(),w(null),D(null),z([]),T(!0)};return(0,a.useEffect)(()=>{P&&z((null==P?void 0:P.clients)||[])},[P]),(0,n.jsxs)(i.Z,{open:t,onClose:H,maxWidth:"sm",fullWidth:!0,sx:{minHeight:"20vh"},"data-sentry-element":"Dialog","data-sentry-component":"SearchFromIntellifloDialog","data-sentry-source-file":"SearchFromIntellifloDialog.tsx",children:[(0,n.jsxs)(o.Z,{variant:"h5",sx:{dis
1play:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:"bold"},"data-sentry-element":"DialogTitle","data-sentry-source-file":"SearchFromIntellifloDialog.tsx",children:[(0,n.jsx)("span",{children:Z?"Intelliflo Clients":"PlannerCRM Clients"}),(0,n.jsx)(d.Z,{edge:"end",color:"inherit",onClick:H,"aria-label":"close","data-sentry-element":"IconButton","data-sentry-source-file":"SearchFromIntellifloDialog.tsx",children:(0,n.jsx)(u.Z,{"data-sentry-element":"CloseIcon","data-sentry-source-file":"SearchFromIntellifloDialog.tsx"})})]}),(0,n.jsx)(r.Z,{sx:{minHeight:"20vh"},"data-sentry-element":"DialogContent","data-sentry-source-file":"SearchFromIntellifloDialog.tsx",children:_?(0,n.jsx)(m.Z,{display:"flex",alignItems:"center",justifyContent:"center",height:"20vh",children:(0,n.jsx)(N.Z,{})}):(0,n.jsx)(n.Fragment,{children:P&&!_&&(0,n.jsx)(c._,{autoHeight:!0,rows:B,columns:[{field:"id",headerName:"ID",flex:.3},{field:"first_name",headerName:"First name",flex:.3},{field:"last_name",headerName:"Last name",flex:.3},{field:"email",headerName:"Email",flex:.5},{field:"actions",headerName:"Actions",renderCell:e=>(0,n.jsx)(m.Z,{display:"flex",justifyContent:"flex-end",children:(0,n.jsx)(s.Z,{variant:"contained",color:"primary",onClick:()=>E(e.row),children:"Add"})})}],pagination:!0,paginationMode:"server",rowCount:null==P?void 0:null===(l=P.meta)||void 0===l?void 0:l.total_count,paginationModel:R,onPaginationModelChange:F,disableRowSelectionOnClick:!0,sortModel:[{field:"id",sort:"asc"}],loading:_,pageSizeOptions:[10,25,50]})})})]})};l.Z=C},19232:function(e,l,t){t.r(l);var n=t(85893),a=t(67294),i=t(2734),o=t(34386),r=t(98456),s=t(86886),d=t(50135),u=t(18972),c=t(50480),m=t(69368),v=t(15861),h=t(36822),f=t(46901),x=t(11057),p=t(74721),g=t(5680),b=t(80120),y=t(87536),j=t(47533),N=t(83913),C=t(82822),S=t(30202),Z=t(78551),I=t(98029),T=t(9473),W=t(86501),D=t(72010),P=t(381),w=t(7787),_=t(17356),O=t(37441),R=t(96490),L=t(28782);let B=e=>{let{id:l,onSuccess:t,onError:B,defaultData:z,data:A,isLoading:E,setIntellifloClientData:F,intellifloClientData:k,onClose:M,updateDialogOpenForIntelliflo:Q,hasintellifloIntegration:q,handleNextTab:U,errorMessage:$,metadata:H,extractionMetadata:Y}=e,K=(0,T.v9)(e=>e.intelliflo.intelliflo),G=(0,i.Z)(),V=G.palette.mode,{control:X,handleSubmit:J,formState:{errors:ee},reset:el,watch:et,setValue:en}=(0,y.cI)({resolver:(0,j.X)((0,N.CY)(K)),defaultValues:{firstName:"",middleName:"",previousName:"",lastName:"",email:"",title:"",maritalStatus:"",salutation:"",dob:"",upToDateWill:"",gender:"",since:"",nationality:[],placeOfBirth:"",validWill:"",nationalInsuranceNo:"",externalReference:"",updateOnPlatform:!!K}}),ea=(0,T.I0)(),[ei,eo]=(0,a.useState)(!1),[er,es]=(0,a.useState)(!1),ed=(0,T.v9)(e=>e.user.authData.data.access_token),eu=(0,T.v9)(e=>e.intellifloClientDetails.intellifloPersonalDeatils),[ec,em]=(0,a.useState)(!1),[ev,eh]=(0,a.useState)(!1),[ef,ex]=(0,a.useState)(null),[ep,eg]=(0,a.useState)(null),[eb,ey]=(0,a.useState)(!1),[ej,eN]=(0,a.useState)(!1),[eC,eS]=(0,a.useState)(null),[eZ,eI]=(0,a.useState)(null),[,eT]=(0,a.useState)(!1),[eW,eD]=(0,a.useState)(null),[eP,ew]=(0,a.useState)(!1),[e_,eO]=(0,a.useState)(!1),eR=(0,S.NL)(),eL=(0,a.useMemo)(()=>({title:null==H?void 0:H.title,firstName:null==H?void 0:H.first_name,middleName:null==H?void 0:H.middle_name,lastName:null==H?void 0:H.last_name,previousName:null==H?void 0:H.maidenName,email:null==H?void 0:H.email,salutation:null==H?void 0:H.salutation,dob:null==H?void 0:H.dateOfBirth,maritalStatus:null==H?void 0:H.maritalStatus,since:null==H?void 0:H.maritalStatusSince,gender:null==H?void 0:H.gender,nationality:null==H?void 0:H.nationality,nationalInsuranceNo:null==H?void 0:H.niNumber,placeOfBirth:null==H?void 0:H.placeOfBirth,validWill:null==H?void 0:H.hasWill,upToDateWill:null==H?void 0:H.isWillUptoDate,externalReference:null==H?void 0:H.externalReference}),[H]),eB=e=>{let l=eL[e];return(0,L.tE)(l)},ez=(0,a.useMemo)(()=>({title:"title",firstName:"first_name",middleName:"middle_name",lastName:"last_name",previousName:"maidenName",email:"email",salutation:"salutation",dob:"dateOfBirth",maritalStatus:"maritalStatus",since:"maritalStatusSince",gender:"gender",nationality:"nationality",nationalInsuranceNo:"niNumber",placeOfBirth:"placeOfBirth",validWill:"hasWill",upToDateWill:"isWillUptoDate",externalReference:"externalReference"}),[]),eA=e=>{var l;let t=ez[e],n=null==Y?void 0:null===(l=Y.personal_details)||void 0===l?void 0:l[t];return n&&n.reason?{hasExtraction:!0,reason:n.reason,wasExtracted:n.is_extracted}:{hasExtraction:!1,reason:null,wasExtracted:!1}},eE=e=>{let l=eA(e);return l.hasExtraction?(0,n.jsx)(o.Z,{title:l.reason,arrow:!0,"data-sentry-element":"Tooltip","data-sentry-component":"renderExtractionTooltip","data-sentry-source-file":"PushToIOPD.tsx",children:(0,n.jsx)(p.Z,{fontSize:"small",color:"action",sx:{cursor:"help",ml:1},"data-sentry-element":"InfoIcon","data-sentry-source-file":"PushToIOPD.tsx"})}):null},eF=e=>e?"string"==typeof e?e:"object"==typeof e?e.name||e.code||e.description||e.value||"":String(e):"";(0,a.useEffect)(()=>{var e,t,n,a,i,o,r,s,d,u,c,m,v,h,f,x,p,g,b,y,j,N,C,S,Z,I,T,W,D,P,w,_,O,R,L,B,E,F,k,M,Q,q,U,$;A&&K?(en("firstName",(null==eu?void 0:eu.firstName)?eu.firstName:(null==A?void 0:null===(e=A.data)||void 0===e?void 0:e.first_name)||""),en("lastName",(null==eu?void 0:eu.lastName)?eu.lastName:(null==A?void 0:null===(t=A.data)||void 0===t?void 0:t.last_name)||""),en("middleName",(null==eu?void 0:eu.middleName)?eu.middleName:(null==A?void 0:null===(n=A.data)||void 0===n?void 0:n.middle_name)||""),en("previousName",(null==eu?void 0:eu.previousName)?eu.previousName:(null==A?void 0:null===(a=A.data)||void 0===a?void 0:a.maidenName)||""),en("email",(null==eu?void 0:eu.email)?eu.email:(null==A?void 0:null===(i=A.data)||void 0===i?void 0:i.email)||""),en("title",(null==eu?void 0:eu.title)?null===(o=eu.title)||void 0===o?void 0:o.toLowerCase():null===(r=eF(null==A?void 0:null===(s=A.data)||void 0===s?void 0:s.title))||void 0===r?void 0:r.toLowerCase()),en("maritalStatus",(null==eu?void 0:eu.maritalStatus)?null===(d=eu.maritalStatus)||void 0===d?void 0:d.toLowerCase():null===(u=eF(null==A?void 0:null===(c=A.data)||void 0===c?void 0:c.maritalStatus))||void 0===u?void 0:u.toLowerCase()),en("dob",(null==eu?void 0:eu.dob)?null==eu?void 0:null===(m=eu.dob)||void 0===m?void 0:m.toLowerCase():null===(v=eF(null==A?void 0:null===(h=A.data)||void 0===h?void 0:h.dateOfBirth))||void 0===v?void 0:v.toLowerCase()),en("since",(null==eu?void 0:eu.since)?null==eu?void 0:null===(f=eu.since)||void 0===f?void 0:f.toLowerCase():null===(x=eF(null==A?void 0:null===(p=A.data)||void 0===p?void 0:p.maritalStatusSince))||void 0===x?void 0:x.toLowerCase()),en("salutation",(null==eu?void 0:eu.salutation)?null==eu?void 0:eu.salutation:(null==A?void 0:null===(g=A.data)||void 0===g?void 0:g.salutation)||""),en("gender",(null==eu?void 0:eu.gender)?null===(b=eu.gender)||void 0===b?void 0:b.toLowerCase():null===(y=eF(null==A?void 0:null===(j=A.data)||void 0===j?void 0:j.gender))||void 0===y?void 0:y.toLowerCase()),en("upToDateWill",eu.upToDateWill?null===(N=null==eu?void 0:null===(C=eu.upToDateWill)||void 0===C?void 0:C.toString())||void 0===N?void 0:N.toLowerCase():null===(S=null==A?void 0:null===(Z=A.data)||void 0===Z?void 0:null===(I=Z.isWillUptoDate)||void 0===I?void 0:I.toString())||void 0===S?void 0:S.toLowerCase()),en("validWill",eu.validWill?null===(T=null==eu?void 0:null===(W=eu.validWill)||void 0===W?void 0:W.toString())||void 0===T?void 0:T.toLowerCase():null===(D=null==A?void 0:null===(P=A.data)||void 0===P?void 0:null===(w=P.hasWill)||void 0===w?void 0:w.toString())||void 0===D?void 0:D.toLowerCase()),en("nationalInsuranceNo",(null==eu?void 0:eu.nationalInsuranceNo)?null==eu?void 0:eu.nationalInsuranceNo:(null==A?void 0:null===(_=A.data)||void 0===_?void 0:_.niNumber)||""),en("nationality",(null==eu?void 0:eu.nationality)?eu.nationality:(null==A?void 0:null===(O=A.data)||void 0===O?void 0:O.nationality)||""),en("placeOfBirth",(null==eu?void 0:eu.placeOfBirth)?null==eu?void 0:eu.placeOfBirth:(null==A?void 0:null===(R=A.data)||void 0===R?void 0:R.placeOfBirth)||""),en("externalReference",(null==eu?void 0:eu.externalReference)?null==eu?void 0:eu.externalReference:(null==A?void 0:null===(L=A.data)||void 0===L?void 0:L.externalReference)||"")):z&&l&&(en("firstName",z.first_name||""),en("lastName",z.last_name||""),en("middleName",z.middle_name||""),en("previousName",z.maidenName||""),en("email",(null==z?void 0:z.email)||""),en("title",null==z?void 0:null===(B=z.title)||void 0===B?void 0:B.toLowerCase()),en("maritalStatus",null==z?void 0:null===(E=z.marital_status)||void 0===E?void 0:E.toLowerCase()),en("dob",null==z?void 0:null===(F=z.dob)||void 0===F?void 0:F.toLowerCase()),en("since",null==z?void 0:null===(k=z.maritalStatusSince)||void 0===k?void 0:k.toLowerCase()),en("gender",null==z?void 0:null===(M=z.gender)||void 0===M?void 0:M.toLowerCase()),en("salutation",(null==z?void 0:z.salutation)||""),en("upToDateWill",null===(Q=null==z?void 0:null===(q=z.isWillUptoDate)||void 0===q?void 0:q.toString())||void 0===Q?void 0:Q.toLowerCase()),en("validWill",null===(U=null==z?void 0:null===($=z.hasWill)||void 0===$?void 0:$.toString())||void 0===U?void 0:U.toLowerCase()),en("placeOfBirth",(null==z?void 0:z.placeOfBirth)||""),en("nationality",null==z?void 0:z.nationality),en("nationalInsuranceNo",null==z?void 0:z.niNumber),en("externalReference",(null==z?void 0:z.external_reference)||""))},[K,z,A,en,k]),(0,Z.a)({queryKey:[_.E6],queryFn:e=>{let{signal:l}=e;return(0,O.ox)({signal:l})}}),(0,a.useEffect)(()=>{ei&&F(null)},[ei,F]),(0,a.useEffect)(()=>{let e=et("dob");if(e){let l=ek(e);eI(l)}},[et("dob")]);let ek=e=>{let l=new Date,t=new Date(e),n=l.getFullYear()-t.getFullYear(),a=l.getMonth()-t.getMonth();return(a<0||0===a&&l.getDate()<t.getDate())&&n--,n},eM=(e,l)=>{ea((0,P.jv)({[e]:l}))},eQ=()=>{eO(!1),M()},eq=(0,I.D)({mutationFn:e=>(0,C.yA)(e,ed),onSuccess:()=>{W.ZP.success("Success! The client's information has been created"),es(!1),em(!0),ex("Success! The client's information has been created"),setTimeout(()=>{em(!1),ex(null)},2e3),eS(null),eN(!1),K||M(),K&&U("next")},onError:e=>{eh(!0),eg("There was a problem creating the client's information. Please try again later."),setTimeout(()=>{eh(!1),eg(null)},2e3),W.ZP.error("There was a problem creating the client's information. Please try again later."),es(!1),eS(null),(0,L.yU)(e,eO,es,eR)},onMutate:()=>es(!0)}),eU=et(),e$=e=>{let l={full_name:[null==eU?void 0:eU.firstName,null==eU?void 0:eU.middleName,null==eU?void 0:eU.lastName].filter(
1Boolean).join(" "),previous_name:eU.previousName,email:eU.email,marital_status:eU.maritalStatus,title:eU.title,salutation:eU.salutation,dob:eU.dob,age:eZ,gender:eU.gender,nationality:eU.nationality,since:eU.since,placeOfBirth:eU.placeOfBirth,upToDateWill:eU.upToDateWill,validWill:eU.validWill,nationalInsuranceNo:eU.nationalInsuranceNo,externalReference:eU.externalReference,...q&&{updateOnPlatform:null==eU?void 0:eU.updateOnPlatform},...K&&{intelliflo_client_id:K}};eq.mutate(l)},eH=(0,I.D)({mutationFn:e=>(0,C.C9)(e,ed),onSuccess:()=>{t("Success! The client's information has been updated"),em(!0),ex("Success! The client's information has been updated"),setTimeout(()=>{em(!1),ex(null)},2e3),es(!1),eN(!1),eS(null),K||M(),K&&U("next")},onError:e=>{es(!1),eh(!0),eg("There was a problem updating the client's information. Please try again later."),eN(!1),eS(null),setTimeout(()=>{eh(!1),eg(null)},2e3),B("There was a problem updating the client's information. Please try again later."),(0,L.yU)(e,eO,es,eR)},onMutate:()=>es(!0)}),eY=async e=>{if(e){var t,n;let a={first_name:null==e?void 0:e.firstName,last_name:null==e?void 0:e.lastName,full_name:[null==e?void 0:e.firstName,null==e?void 0:e.middleName,null==e?void 0:e.lastName].filter(Boolean).join(" "),email:e.email,marital_status:e.maritalStatus,previous_name:e.previousName,id:l,title:e.title,salutation:e.salutation,dob:e.dob,age:eZ,since:e.since,gender:e.gender,nationality:e.nationality,nationalInsuranceNo:e.nationalInsuranceNo,placeOfBirth:e.placeOfBirth,upToDateWill:e.upToDateWill,validWill:e.validWill,externalReference:e.externalReference,create_on_platform:null==e?void 0:e.updateOnPlatform,...K&&{intelliflo_client_id:K},client_id:null!==(n=null==e?void 0:e.client_id)&&void 0!==n?n:null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.client_id};eH.mutate(a)}},eK=e=>{Q?(ey(!0),eS(e)):z&&l?eY(e):e$(e)};(0,a.useEffect)(()=>{!0==ej&&(z&&l?eY(eC):e$(eC))},[ej]);let eG=et("validWill");(0,a.useEffect)(()=>{"false"===eG&&en("upToDateWill","")},[eG,en]);let eV=e=>{13===e.keyCode&&J(eK)};return(0,n.jsxs)(n.Fragment,{children:[E?(0,n.jsx)(D.Z,{justifyContent:"center",alignItems:"center",sx:{height:"200px"},children:(0,n.jsx)(r.Z,{size:32,color:"primary"})}):(0,n.jsxs)("form",{onSubmit:J(eK),onKeyDown:eV,children:[(0,n.jsxs)(s.ZP,{container:!0,spacing:4,marginBottom:"3rem",children:[(0,n.jsx)(b.Z,{open:ei,userData:eU,onClose:()=>{eo(!1)},setIntellifloClientData:F,hasintellifloIntegration:q,setDialogOpen:eT,searchData:eW,setSearchData:eD}),(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:3,children:(0,n.jsx)(y.Qr,{name:"title",control:X,render:e=>{let{field:l}=e,t=eB("title"),a=eE("title");return(0,n.jsx)(d.Z,{id:"title",select:!0,label:"Title",...l,variant:"outlined",fullWidth:!0,color:t.color,focused:t.focused,onChange:e=>{l.onChange(e),eM("title",e.target.value)},helperText:t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}):"",InputProps:{endAdornment:a},children:null===g.NU||void 0===g.NU?void 0:g.NU.map(e=>(0,n.jsx)(u.Z,{value:e.toLowerCase(),children:e},e.toLowerCase()))})}})}),(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:7}),(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:6,children:(0,n.jsx)(y.Qr,{name:"firstName",control:X,render:e=>{let{field:l}=e,t=eB("firstName"),a=eE("firstName");return(0,n.jsx)(d.Z,{id:"firstName",label:"First Name",variant:"outlined",fullWidth:!0,...l,error:!!ee.firstName,color:t.color,focused:t.focused,helperText:ee.firstName?"First name is required":t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}
1):"",onChange:e=>{l.onChange(e),eM("firstName",e.target.value)},InputProps:{endAdornment:a}})}})}),A&&K&&(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:6,children:(0,n.jsx)(y.Qr,{name:"middleName",control:X,render:e=>{let{field:l}=e,t=eB("middleName"),a=eE("middleName");return(0,n.jsx)(d.Z,{id:"middleName",label:"Middle Name",variant:"outlined",fullWidth:!0,...l,error:!!ee.middleName,color:t.color,focused:t.focused,helperText:ee.middleName?"Middle name is required":t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}):"",onChange:e=>{l.onChange(e),eM("middleName",e.target.value)},InputProps:{endAdornment:a}})}})}),(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:A&&K?3:6,children:(0,n.jsx)(y.Qr,{name:"lastName",control:X,render:e=>{let{field:l}=e,t=eB("lastName"),a=eE("lastName");return(0,n.jsx)(d.Z,{id:"lastName",label:"Last Name",variant:"outlined",fullWidth:!0,...l,error:!!ee.lastName,color:t.color,focused:t.focused,helperText:ee.lastName?"Last name is required":t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}
1):"",onChange:e=>{l.onChange(e),eM("lastName",e.target.value)},InputProps:{endAdornment:a}})}})}),A&&K&&(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:6,children:(0,n.jsx)(y.Qr,{name:"previousName",control:X,render:e=>{let{field:l}=e,t=eB("previousName"),a=eE("previousName");return(0,n.jsx)(d.Z,{id:"previousName",label:"Maiden / Previous Name",variant:"outlined",fullWidth:!0,...l,error:!!ee.previousName,color:t.color,focused:t.focused,helperText:ee.previousName?"Previous name is required":t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}):"",onChange:e=>{l.onChange(e),eM("previousName",e.target.value)},InputProps:{endAdornment:a}})}})}),(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:6,children:(0,n.jsx)(y.Qr,{name:"email",control:X,render:e=>{let{field:l}=e,t=eB("email"),a=eE("email");return(0,n.jsx)(d.Z,{id:"email",label:"Email",type:"email",variant:"outlined",fullWidth:!0,...l,error:!!ee.email,color:t.color,focused:t.focused,helperText:ee.email?String(ee.email.message):t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}
1):"",onChange:e=>{l.onChange(e),eM("email",e.target.value)},InputProps:{endAdornment:a}})}})}),(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:A&&K?3:6,children:(0,n.jsx)(y.Qr,{name:"salutation",control:X,render:e=>{let{field:l}=e,t=eB("salutation"),a=eE("salutation");return(0,n.jsx)(d.Z,{id:"salutation",label:"Salutation",variant:"outlined",fullWidth:!0,...l,error:!!ee.salutation,color:t.color,focused:t.focused,helperText:ee.salutation?"Salutation is required":t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}):"",onChange:e=>{l.onChange(e),eM("salutation",e.target.value)},InputProps:{endAdornment:a}})}})}),A&&K&&(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:3,children:(0,n.jsx)(y.Qr,{name:"gender",control:X,render:e=>{let{field:l}=e,t=eB("gender"),a=eE("gender");return(0,n.jsx)(d.Z,{id:"gender",select:!0,label:"Gender",...l,variant:"outlined",fullWidth:!0,color:t.color,focused:t.focused,onChange:e=>{l.onChange(e),eM("gender",e.target.value)},helperText:t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}):"",InputProps:{endAdornment:a},children:null===g.qt||void 0===g.qt?void 0:g.qt.map(e=>(0,n.jsx)(u.Z,{value:e.toLowerCase(),children:e},e.toLowerCase()))})}})}),(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:A&&K?4:6,children:(0,n.jsx)(y.Qr,{name:"dob",control:X,render:e=>{let{field:l}=e,t=eB("dob"),a=eE("dob");return(0,n.jsx)(d.Z,{id:"dob",label:"Date Of Birth",type:"date",variant:"outlined",fullWidth:!0,InputLabelProps:{shrink:!0},...l,error:!!ee.dob,color:t.color,focused:t.focused,helperText:ee.dob?"Date of birth is required":t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}
1):"",onChange:e=>{l.onChange(e),eM("dob",e.target.value)},InputProps:{endAdornment:a}})}})}),!A&&!K&&q&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:6}),(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:6,children:(0,n.jsx)(y.Qr,{name:"updateOnPlatform",control:X,render:e=>{let{field:l}=e;return(0,n.jsx)(c.Z,{control:(0,n.jsx)(m.Z,{...l,checked:l.value,disabled:$,onChange:e=>{l.onChange(e.target.checked),eM("updateOnPlatform",e.target.checked)}}),label:(0,n.jsx)(v.Z,{sx:{fontWeight:"bold"},children:"Would you like to create a client in Intelliflo ?"})})}})})]}),A&&K&&(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:2,children:(0,n.jsx)(d.Z,{id:"age",label:"Age",value:eZ||"",fullWidth:!0,InputProps:{readOnly:!0},disabled:!0})}),A&&K&&(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:A&&K?4:6,children:(0,n.jsx)(y.Qr,{name:"maritalStatus",control:X,render:e=>{let{field:l}=e,t=eB("maritalStatus"),a=eE("maritalStatus");return(0,n.jsx)(d.Z,{id:"maritalStatus",select:!0,label:"Marital Status",...l,variant:"outlined",fullWidth:!0,color:t.color,focused:t.focused,onChange:e=>{l.onChange(e),eM("maritalStatus",e.target.value)},helperText:t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}):"",InputProps:{endAdornment:a},children:null===g.$b||void 0===g.$b?void 0:g.$b.map(e=>(0,n.jsx)(u.Z,{value:e.toLowerCase(),children:e},e.toLowerCase()))})}})}),A&&K&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:2,children:(0,n.jsx)(y.Qr,{name:"since",control:X,render:e=>{let{field:l}=e,t=eB("since"),a=eE("since");return(0,n.jsx)(d.Z,{id:"since",label:"Since",type:"date",variant:"outlined",fullWidth:!0,InputLabelProps:{shrink:!0},...l,error:!!ee.since,color:t.color,focused:t.focused,helperText:ee.since?"Since is required":t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}
1):"",onChange:e=>{l.onChange(e),eM("since",e.target.value)},InputProps:{endAdornment:a}})}})}),(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:3,children:(0,n.jsx)(y.Qr,{name:"placeOfBirth",control:X,render:e=>{let{field:l}=e,t=eB("placeOfBirth"),a=eE("placeOfBirth");return(0,n.jsx)(d.Z,{id:"placeOfBirth",label:"Place of Birth",variant:"outlined",fullWidth:!0,...l,error:!!ee.placeOfBirth,color:t.color,focused:t.focused,helperText:ee.placeOfBirth?"Place of Birth is required":t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}):"",onChange:e=>{l.onChange(e),eM("placeOfBirth",e.target.value)},InputProps:{endAdornment:a}})}})}),(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:3,children:(0,n.jsx)(y.Qr,{name:"nationality",control:X,render:e=>{let{field:l}=e,t=eB("nationality"),a=eE("nationality");return(0,n.jsx)(d.Z,{id:"nationality",label:"Nationality",...l,variant:"outlined",fullWidth:!0,error:!!ee.nationality,color:t.color,focused:t.focused,onChange:e=>{l.onChange(e),eM("nationality",e.target.value)},helperText:ee.nationality?"Nationality is required":t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}):"",InputProps:{endAdornment:a}})}})}),(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:3,children:(0,n.jsx)(y.Qr,{name:"nationalInsuranceNo",control:X,render:e=>{let{field:l}=e,t=eB("nationalInsuranceNo"),a=eE("nationalInsuranceNo");return(0,n.jsx)(d.Z,{id:"nationalInsuranceNo",label:"National Insurance No",variant:"outlined",fullWidth:!0,...l,error:!!ee.nationalInsuranceNo,color:t.color,focused:t.focused,helperText:ee.nationalInsuranceNo?"National Insurance Number must be in the format: AB123456C":t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}
1):"",onChange:e=>{l.onChange(e),eM("nationalInsuranceNo",e.target.value)},InputProps:{endAdornment:a}})}})}),(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:3,children:(0,n.jsx)(y.Qr,{name:"validWill",control:X,render:e=>{let{field:l}=e,t=eB("validWill"),a=eE("validWill");return(0,n.jsx)(d.Z,{id:"validWill",select:!0,label:"Do you have a valid Will ?",...l,variant:"outlined",fullWidth:!0,color:t.color,focused:t.focused,onChange:e=>{l.onChange(e),eM("validWill",e.target.value)},helperText:t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}):"",InputProps:{endAdornment:a},children:null===g.$1||void 0===g.$1?void 0:g.$1.map(e=>(0,n.jsx)(u.Z,{value:e.toLowerCase(),children:e},e.toLowerCase()))})}})}),"true"==eG&&(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:3,children:(0,n.jsx)(y.Qr,{name:"upToDateWill",control:X,render:e=>{let{field:l}=e,t=eB("upToDateWill"),a=eE("upToDateWill");return(0,n.jsx)(d.Z,{id:"upToDateWill",select:!0,label:"Up To Date Will ?",...l,variant:"outlined",fullWidth:!0,color:t.color,focused:t.focused,onChange:e=>{l.onChange(e),eM("upToDateWill",e.target.value)},helperText:t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}):"",InputProps:{endAdornment:a},children:null===g.$1||void 0===g.$1?void 0:g.$1.map(e=>(0,n.jsx)(u.Z,{value:e.toLowerCase(),children:e},e.toLowerCase()))})}})}),(0,n.jsx)(s.ZP,{item:!0,xs:12,sm:3,children:(0,n.jsx)(y.Qr,{name:"externalReference",control:X,render:e=>{let{field:l}=e,t=eB("externalReference"),a=eE("externalReference");return(0,n.jsx)(d.Z,{id:"externalReference",label:"External Reference",variant:"outlined",fullWidth:!0,...l,error:!!ee.externalReference,color:t.color,focused:t.focused,helperText:ee.externalReference?"External Reference error":t.helperText?(0,n.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"bold",color:"#b4b4b4"},children:t.helperText}
1):"",onChange:e=>{l.onChange(e),eM("externalReference",e.target.value)},InputProps:{endAdornment:a}})}})})]})]}),(0,n.jsxs)(D.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{position:"absolute",bottom:0,left:0,right:0,backgroundColor:"dark"===V?"#2E3249":"#fff","& .MuiDataGrid-cell":{fontSize:"0.875rem"},padding:"1rem 1rem 2rem",zIndex:99},children:[(0,n.jsxs)(h.Z,{children:[ec&&(0,n.jsx)(f.Z,{severity:"success",sx:{mb:4},children:ef}),ev&&(0,n.jsx)(f.Z,{severity:"error",sx:{mb:4},children:ep})]}),(0,n.jsx)(h.Z,{children:(0,n.jsx)(x.Z,{type:"submit",variant:"contained",disabled:er||eP||$,children:er||eP?z&&l?"Updating ...":"Saving ...":z&&l?"Update Client Details".concat(K?" and Next":""):"Add Client Details".concat(K?" and Next":"")})})]})]}),(0,n.jsx)(w.ZP,{open:eb,setOpen:ey,setConfirm:eN,tabName:"Personal","data-sentry-element":"ConfirmIntellifloDetailsDialogBox","data-sentry-source-file":"PushToIOPD.tsx"}),(0,n.jsx)(R.Z,{open:e_,onClose:eQ,"data-sentry-element":"ReconnectIntellifloDialog","data-sentry-source-file":"PushToIOPD.tsx"})]})};l.default=B}}]);

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.