PageSourceSearch

https://app.attorneyshare.com/assets/js/FragmentPersonalInfo-60c55f4b.js

js attorneyshare.com collected 2026-10-04 05:37:49 UTC 4,655 bytes, 2 lines download raw bytes

1import{d as V,ai as X,a as h,ah as H,j as e,w as K,G as s,ad as Q,B as W,X as l,f6 as w,cz as Y,T as R,o as Z,aD as ee,U as g}from"./index-484702fe.js";import{T as se,S as te,a as ae}from"./SubTitle-c3d8fe76.js";import{u as ie,F as oe}from"./useProfilePersonalInfo-df64a766.js";import{D as ne}from"./DiscardChangesModal-f24d1ff3.js";import{R as re}from"./ResponseModal-77c2b335.js";import{J as le}from"./index-11626d9e.js";import{J as T}from"./JSchoolSearch-8d76d0e4.js";import{A as de}from"./Autocomplete-9612b883.js";import"./Person-8c3342ba.js";import"./useDiscardChangesModal-15b60382.js";import"./AlertTitle-9f84897b.js";import"./debounce-6f520d74.js";const Pe=({title:d,subtitle:p})=>{const{disableSubmit:m,languages:f,control:i,getValues:j,resetKey:b,rest:L,profilePhoto:I,profilePhotoRef:E,response:c,modalOpen:U,validateMaxCharacter:S,onSubmit:F,handleSubmit:M,onChangeProfilePhoto:N,onRemoveProfilePhoto:O,setOpenModal:B,setResponse:k,getConfirmationModalProps:A,loading:u,isSubmitting:J}=ie(),x=V(),{roleId:D,isOrganizationAccount:G}=X("User"),$=[g.RestrictedUser,g.AdminUser,g.CaseManagerUser],q=G&&$.includes(D||""),n=h.useContext(H);return h.useEffect(()=>{n==null||n.setPreventNavigation(!m)},[m,n]),e.jsxs(e.Fragment,{children:[e.jsx(K,{sx:{padding:{xs:x.spacing(1.25),md:x.spacing(4)}},children:e.jsxs("form",{onSubmit:M(F),children:[e.jsxs(s,{container:!0,spacing:2,children:[e.jsxs(s,{item:!0,md:4,xs:12,sx:{[x.breakpoints.up("md")]:{overflow:"hidden"}},children:[e.jsx(se,{children:d}),p&&e.jsx(te,{variant:"body2",mt:.75,children:p})]}),u&&e.jsx(Q,{message:d&&`Loading ${d.toLocaleLowerCase()}...`,sx:{mb:5}}),!u&&e.jsx(s,{item:!0,mt:0,md:8,xs:12,children:e.jsxs(W,{mt:3,sx:{width:"100%"},children:[e.jsx(oe,{profilePhoto:I,profilePhotoRef:E,onChangeProfilePhoto:N,onRemoveProfilePhoto:O,showTitle:!1}),e.jsxs(s,{container:!0,columnSpacing:{xs:1,md:2},rowSpacing:1,sx:{mt:1.5},children:[e.jsx(s,{item:!0,xs:12,md:6,children:e.jsx(l,{name:"first_name",control:i,label:"First Name",type:"text",rules:{validate:a=>S(20,a,"First Name")}})}),e.jsx(s,{item:!0,justifyItems:"flex-end",xs:12,md:6,sx:{mt:{xs:2.5,md:0}},children:e.jsx(l,{name:"last_name",control:i,label:"Last Name",type:"text",rules:{validate:a=>S(20,a,"Last Name")}})}),e.jsx(s,{item:!0,justifyItems:"flex-end",xs:12,mt:2.5,children:e.jsx(l,{name:"position",control:i,label:"Position",type:"text",forceIsNotRequired:!0,rules:{validate:a=>String(a??"").length>40?"Position must not exceed 40 characters":!0}})}),e.jsx(s,{item:!0,xs:12,mt:2.5,children:e.jsx(T,{control:i,name:"law_school.school_id",label:"Law School",value:j("law_school.school_id")||null},`law-school-${b}`)}),e.jsx(s,{item:!0,xs:12,children:e.jsx(T,{isUndergradSchool:!0,control:i,name:"undergraduate_school.school_id",label:"Undergraduate School",value:j("undergraduate_school.school_id")||null},`undergrad-school-${b}`)}),e.jsx(s,{item:!0,justifyItems:"flex-end",xs:12,mt:1,children:e.jsx(l,{multiline:!0,rows:4,name:"bio",control:i,label:"Bio",type:"text",rules:{validate:a=>String(a??"").length>w?`Bio must not exceed ${w} characters`:!0}})})]}),!q&&e.jsxs(Y,{alignItems:"flex-start",direction:"column",justifyContent:"center",mt:4,spacing:2,sx:{height:"100%"},children:[e.jsxs(s,{container:!0,direction:"column",gap:1.25,children:[e.jsx(s,{item:!0,children:e.jsx(R,{variant:"subtitle2",children:"Language Skills"})}),e.jsx(s,{container:!0,direction:"row",alignItems:"center",alignSelf:"stretch",gap:1.25,children:e.jsx(s,{item:!0,xs:12,children:e.jsx(R,{variant:"body2",color:"textSecondary",children:"Could you offer your services in cases that require being skilled in a language other than English?"})})})]}),e.jsx(Z,{name:"languages",control:i,render:({field:{onChange:a,value:y},fieldState:{error:r}})=>{var P,C,v;return e.jsx(de,{multiple:!0,disableClearable:!0,disablePortal:!0,sx:{width:"100%"},getOptionLabel:t=>t.name,id:"languages",options:((P=f.data)==null?void 0:P.catalog_language)||[],isOptionEqualToValue:(t,o)=>t.id===o.id,value:y?((v=(C=f.data)==null?void 0:C.catalog_language)==null?void 0:v.filter(t=>y.map(o=>o.id).includes(t.id)))||[]:[],renderTags:(t,o)=>t.map((_,z)=>h.createElement(le,{variant:"outlined",label:_.name,...o({index:z}),key:_.id})),renderInput:t=>e.jsx(ee,{...t,error:!!r,helperText:r==null?void 0:r.message,label:"Languages"}),onChange:(t,o)=>a(o)})}})]})]})})]}),!u&&e.jsx(ae,{disabled:m,isSubmitting:J,onCancel:()=>B("confirmDiscardChanges")}
1)]})}),U&&e.jsx(ne,{ConfirmationModalProps:A(),...L}),c.open&&e.jsx(re,{open:c.open,type:c.type,onClose:()=>k({open:!1,type:null})})]})};export{Pe as default};
2//# sourceMappingURL=FragmentPersonalInfo-60c55f4b.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.