PageSourceSearch

https://app.advisoryai.com/_next/static/chunks/7169.07e8e242b27301ef.js

js advisoryai.com collected 2026-10-06 23:59:08 UTC 5,172 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="34a740c2-d10e-498c-81cf-f0575d40e15f",e._sentryDebugIdIdentifier="sentry-dbid-34a740c2-d10e-498c-81cf-f0575d40e15f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7169],{37169:function(e,t,n){n.r(t);var l=n(85893),i=n(67294),a=n(64666),s=n(6514),r=n(16216),o=n(36822),d=n(15861),c=n(93946),u=n(5306),f=n(87918),g=n(50135),p=n(87109),x=n(11057),y=n(87536),m=n(78551),h=n(98029),I=n(1954),C=n(6834),b=n(86501),j=n(17356),Z=n(82822);let D=e=>{let{open:t,token:n,onClose:D,meetingDetails:_,onSuccess:k}=e,[v,w]=(0,i.useState)(_||null),[M,U]=(0,i.useState)(""),[S,A]=(0,i.useState)(!1),{handleSubmit:z,clearErrors:P,reset:E,setValue:O,control:B}=(0,y.cI)({defaultValues:{client:""}});(0,i.useEffect)(()=>{w(_),_&&U("")},[_]),(0,i.useEffect)(()=>{t&&U("")},[t]);let{data:T,refetch:W}=(0,m.a)({queryKey:[j.Zm],queryFn:()=>(0,Z.Tu)(n,0,100,M),enabled:!!n});(0,i.useEffect)(()=>{W()},[W,M,_]);let L=()=>{E(),P(),D(),w(null),U(""),A(!1)},q=(0,h.D)({mutationFn:e=>(0,C.QS)({payload:e,accessToken:n,meetingId:null==_?void 0:_.id}),onSuccess:e=>{k(),A(!1)},onError:e=>{A(!1),b.ZP.error("An error occurred: Unable to updating the client. Please try again.")},onMutate:()=>{A(!0)}}),F=e=>{if(!v){b.ZP.error("An error occurred: Please select a client");return}let t={client_id:v.client_id};q.mutate(t)};return(0,l.jsx)(a.Z,{open:t,fullWidth:!0,maxWidth:"sm",sx:{zIndex:1100},"data-sentry-element":"Dialog","data-sentry-component":"UpdateClientInMeetingDialog","data-sentry-source-file":"UpdateClientInMeetingDialog.tsx",children:(0,l.jsxs)(s.Z,{"data-sentry-element":"DialogContent","data-sentry-source-file":"UpdateClientInMeetingDialog.tsx",children:[(0,l.jsxs)(r.Z,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",sx:{mb:8},"data-sentry-element":"Stack","data-sentry-source-file":"UpdateClientInMeetingDialog.tsx",children:[(0,l.jsxs)(o.Z,{"data-sentry-element":"Box","data-sentry-source-file":"UpdateClientInMeetingDialog.tsx",children:[(0,l.jsx)(d.Z,{sx:{fontWeight:"800",fontSize:"1.5rem"},"data-sentry-element":"Typography","data-sentry-source-file":"UpdateClientInMeetingDialog.tsx",children:"Update Client"}),(0,l.jsx)(d.Z,{fontSize:"small","data-sentry-element":"Typography","data-sentry-source-file":"UpdateClientInMeetingDialog.tsx",children:"Make changes to client information"})]}),(0,l.jsx)(c.Z,{"aria-label":"",title:"Close",onClick:L,edge:"end","data-sentry-element":"IconButton","data-sentry-source-file":"UpdateClientInMeetingDialog.tsx",children:(0,l.jsx)(I.JO,{icon:"tabler:x",fontSize:24,"data-sentry-element":"Icon","data-sentry-source-file":"UpdateClientInMeetingDialog.tsx"})})]}),(0,l.jsx)(r.Z,{direction:"row",justifyContent:"center",spacing:2,sx:{width:"100%"},"data-sentry-element":"Stack","data-sentry-source-file":"UpdateClientInMeetingDialog.tsx",children:(0,l.jsx)("form",{style:{width:"100%"},onSubmit:z(F),children:(0,l.jsx)(u.Z,{fullWidth:!0,options:(null==T?void 0:T.clients)||[],value:(null==v?void 0:v.full_name)?v:null,onChange:(e,t)=>
1{w(t),O("client",t)},getOptionLabel:e=>(null==e?void 0:e.full_name)||"",onInputChange:async(e,t)=>{U(t)},renderOption:(e,t)=>(0,l.jsxs)("li",{...e,style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,l.jsxs)(r.Z,{direction:"row",spacing:2,alignItems:"center",children:[(0,l.jsx)(f.Z,{size:"small",label:null==t?void 0:t.client_id,sx:{ml:"auto"}}),(0,l.jsx)(d.Z,{children:null==t?void 0:t.full_name})]}),(null==t?void 0:t.intelliflo_client_id)&&(0,l.jsx)(f.Z,{size:"small",label:"Linked to IO",sx:{ml:"auto",backgroundColor:"#113AD6",color:"#fff"}})]}),renderInput:e=>(0,l.jsx)(g.Z,{placeholder:"Search & assign existing client",label:(0,l.jsx)(d.Z,{sx:{ml:"2px"},children:"Client's name"}),...e,InputProps:{...e.InputProps,endAdornment:(0,l.jsxs)(p.Z,{position:"end",children:[(null==v?void 0:v.intelliflo_client_id)&&(0,l.jsx)(f.Z,{color:"primary",size:"small",label:"Linked to IO",sx:{ml:"auto",backgroundColor:"#113AD6",color:"#fff"}}),e.InputProps.endAdornment]}),startAdornment:(0,l.jsxs)(p.Z,{position:"start",children:[(null==v?void 0:v.client_id)&&(0,l.jsx)(f.Z,{size:"small",label:null==v?void 0:v.client_id_integer,sx:{ml:"auto"}}),e.InputProps.endAdornment]})}}),"data-sentry-element":"Autocomplete","data-sentry-source-file":"UpdateClientInMeetingDialog.tsx"})})}),(0,l.jsxs)(r.Z,{direction:"row",justifyContent:"flex-end",spacing:2,mt:5,"data-sentry-element":"Stack","data-sentry-source-file":"UpdateClientInMeetingDialog.tsx",children:[(0,l.jsx)(x.Z,{variant:"outlined",type:"submit",color:"primary",disabled:S,onClick:L,"data-sentry-element":"Button","data-sentry-source-file":"UpdateClientInMeetingDialog.tsx",children:"Cancel"}),(0,l.jsx)(x.Z,{variant:"contained",type:"submit",color:"primary",disabled:S,onClick:F,sx:{width:"190px"},"data-sentry-element":"Button","data-sentry-source-file":"UpdateClientInMeetingDialog.tsx",children:S?"Saving...":"Save Changes"})]})]})})};t.default=D}}]);

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.