PageSourceSearch

https://app.voxhealth.ai/assets/StaffForm-BG80_wFW.js

js voxhealth.ai collected 2026-10-05 13:16:22 UTC 19,656 bytes, 1 lines download raw bytes

1import{Ct as u,G as Q,H as he,Jt as f,T as S,U as n,V as be,Wt as x,_ as V,b as v,ht as y,i as _e,j as xe,jt as ye,l as X,m as E,o as $e,p as ke,rt as _,st as we,tt as Pe,u as I,v as a,w as N,x as d}from"./vue.runtime.esm-bundler-DYdOdNtL.js";import{t as Se}from"./client-DPrABKUY.js";import{E as Ie,Fn as Ne,Ft as De,M as Ue,N as Ve,P as Ce,Pn as Ee,j as Fe,x as Le,yt as ze}from"./main-DnpaWVIM.js";import{E as Me,N as Te,y as Ae}from"./format-CDnuUStP.js";import{d as Re}from"./storage-SuEF193F.js";import{a as ee,n as qe}from"./avatarService-U8bidnoC.js";import{t as Ge}from"./useToast-m1WG9pkD.js";import{t as je}from"./SpinnerIcon-Q5y9Ctfs.js";import{n as Be}from"./states-DbI3n_51.js";import{t as Oe}from"./PhoneInput-CCOWG6nz.js";import{a as We,t as Je}from"./google-DTcEozt4.js";import{t as He}from"./Breadcrumb-CkXxLvxs.js";import{a as q,c as Ze,i as ae,n as Ye,r as te,t as Ke}from"./dist-uVLdyuva.js";import{n as Qe,r as Xe,t as se}from"./SegmentedToggle-B4vnTdw8.js";import{t as ea}from"./roles-MasFdhH1.js";var g=Ke.withMessage,aa=/^\d{10}$/,ta=/^\d{2}-\d{7}$/,sa=(o,r)=>r.role==="provider"?aa.test(o):!0,ra=(o,r)=>r.role==="provider"?!!o:!0,la=o=>!o||o===""?!0:o.startsWith("+")?o.length>=12:o.replace(/\D/g,"").length===10,J={first_name:{$autoDirty:!0,required:g("First Name is required",q),minLength:g("First Name must be at least 2 characters",ae(2)),maxLength:g("First Name must be at most 50 characters",te(50))},last_name:{$autoDirty:!0,required:g("Last Name is required",q),minLength:g("Last Name must be at least 2 characters",ae(2)),maxLength:g("Last Name must be at most 50 characters",te(50))},role:{$autoDirty:!0,required:g("Role is required",q)},tax_id:{$autoDirty:!0,format:g("Please enter a valid Tax ID (xx-xxxxxxx)",o=>o?ta.test(o):!0)},npi:{$autoDirty:!0,required:g("NPI is required for providers",ra),isValidNPI:g("NPI must be exactly 10 digits",sa)},phone:{$autoDirty:!0,validPhone:g("Please enter a valid phone number",la)},address_1:{$autoDirty:!0},city:{$autoDirty:!0},state:{$autoDirty:!0},zip:{$autoDirty:!0},email:{$autoDirty:!0,required:g("Email is required",q),email:g("Please enter a valid email address",Ye)}};function b(o){return o?o.toLowerCase().split(" ").map(r=>["ii","iii","iv","md","do","phd","rn","np","pa","dds","dmd"].includes(r.toLowerCase())?r.toUpperCase():r.includes("-")?r.split("-").map(p=>p.charAt(0).toUpperCase()+p.slice(1)).join("-"):r.charAt(0).toUpperCase()+r.slice(1)).join(" "):""}function re(o){if(!o)return"";const r=o.replace(/\D/g,"");return r.length===10?`(${r.slice(0,3)}) ${r.slice(3,6)}-${r.slice(6)}`:o}function oa(o){if(!o)return"";const r=o.replace(/\D/g,"");return r.length===9?`${r.slice(0,5)}-${r.slice(5)}`:r.slice(0,5)}async function ia(o={}){try{const r=await Se({functionName:"npi-lookup",method:"POST",body:{searchParams:o}});if(r&&"error"in r&&r.error){const p=typeof r.error=="string"?r.error:r.error.message;throw console.error("Supabase function error:",p),new Error(`NPI lookup failed: ${p}`)}return r}catch(r){throw console.error("Error searching NPI:",r),r}}function na(o){if(!o)return null;const r=o.addresses&&o.addresses[0]||{},p=o.basic||{},c=o.taxonomies||[],D=c.find(C=>!!C.primary)||c[0]||{},G=b(p.first_name||""),j=b(p.last_name||""),$=b(p.middle_name||""),w=b(p.organization_name||"");let h=b(r.address_1||""),U=b(r.address_2||"");if(h){const C=/\b(ste|suite|unit|apt|apartment|floor|fl|bldg|building|room|rm)\s*\.?\s*([a-z0-9#-]+)/i,t=h.match(C);if(t){const A=t[0].trim();h=h.replace(C,"").trim(),h=h.replace(/,\s*$/,"").trim(),U?U=`${U}, ${b(A)}`:U=b(A)}}const B=b(r.city||""),F=(r.state||"").toUpperCase(),M=oa(r.postal_code||""),O=re(r.telephone_number||""),W=re(r.fax_number||""),T=(p.credential||"").toUpperCase();return{npi:o.number,firstName:G,lastName:j,middleName:$,prefix:b(p.name_prefix||""),suffix:p.name_suffix||"",credential:T,organizationName:w,gender:b(p.gender||""),isOrganization:o.enumeration_type==="NPI-2",phone:O,fax:W,address:{line1:h,line2:U,city:B,state:F,postalCode:M,countryCode:r.country_code||"US"},specialty:{code:D.code||"",description:b(D.desc||""),license:D.license||""}}}xe(),ye(),we(),_e();var da={class:"container px-4 py-4"},ua={class:"page-header"},ma={class:"flex flex-col gap-4 min-w-0"},pa={class:"grid gap-4 md:grid-cols-2"},fa={key:0,class:"form-error"},va={key:0,class:"form-error"},ca={class:"flex flex-col gap-4 min-w-0"},ga={class:"grid gap-4 md:grid-cols-2 xl:grid-cols-4"},ha=["value"],ba={key:0,class:"form-error"},_a={key:0},xa={for:"npi",class:"form-label"},ya={key:0,class:"text-red-500 ml-0.5"},$a=["value"],ka={key:0,class:"form-error"},wa=["value"],Pa={key:0,class:"form-error"},Sa=["disabled"],Ia={class:"form-help"},Na={class:"grid gap-4 md:grid-cols-3 min-w-0"},Da={class:"md:col-span-2"},Ua={for:"email",class:"form-label"},Va={key:0,class:"text-red-500 ml-0.5"},Ca=["disabled"],Ea={key:0,class:"form-error"},Fa={class:"flex flex-col gap-4 min-w-0"},La={class:"grid gap-4 md:grid-cols-3"},za={class:"md:col-span-2"},Ma={key:0,class:"form-error"},Ta={class:"grid gap-4 md:grid-cols-3"},Aa={key:0,class:"form-error"},Ra=["value"],qa={key:0,class:"form-error"},Ga={key:0,class:"form-error"},ja={class:"form-help"},Ba={class:"flex flex-col gap-4 min-w-0"},Oa={key:0},Wa={class:"form-help max-w-xl"},Ja={key:1,class:"inline-flex items-center gap-2 cursor-pointer"},Ha={class:"sticky bottom-0 z-10 flex items-center justify-between gap-4 px-6 py-3 rounded-lg border border-gray-200 bg-white/95 backdrop-blur shadow-sm dark:border-gray-700 dark:bg-gray-800/95"},Za={key:0,class:"text-xs text-red-600 dark:text-red-400"},Ya={key:1,class:"inline-flex items-center gap-2 text-xs text-gray-600 dark:text-gray-300"},Ka={key:2},Qa={class:"flex gap-2"},Xa=["disabled"],L="grid gap-4 lg:gap-8 lg:grid-cols-[220px_minmax(0,1fr)] p-5 lg:px-6 bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700",z="text-sm font-semibold text-gray-900 dark:text-white",ct={__name:"StaffForm",setup(o){const r=Ne(),p=Ee(),{showError:c,showSuccess:D}=Ge(),G=V(()=>ea),j=V(()=>Be.states),$=y(!1),w=y(null),h=y(!1),U=[{label:"Active",value:!1,dotClass:"bg-green-600"},{label:"Disabled",value:!0,dotClass:"bg-red-600"}],B=[{label:"Accepting appointments",value:!0,dotClass:"bg-green-600"},{label:"Not scheduling",value:!1,dotClass:"bg-red-600"}],F=y(null),M=y(null),O=s=>{M.value=s},W=()=>{M.value=null},T=y(""),C=(s,e)=>e?.size?ee(s,{width:150,height:150}):T.value||ee(s,{width:150,height:150}),t=y({first_name:"",last_name:"",role:"",title:"",npi:"",tax_id:"",phone:"",address_1:"",address_2:"",city:"",state:"",zip:"",email:"",sendInvitation:!0,disabled:!1,scheduling_enabled:!0,photo:null});Pe(async()=>{T.value=await qe(t.value,{size:"xx-large"})});const A=y({}),{isFormDirty:le,resetDirtyState:oe,setInitialData:H,showUnsavedChangesDialog:ie}=Xe({formData:t,initialData:A,excludeFields:["photo"],message:"You have unsaved changes. Do you want to discard them and leave this page?"}),k=V(()=>!!p.params.id),Z=y(null),R=V(()=>k.value&&!!Z.value),Y=y(null),K=V(()=>!!Y.value),ne=V(()=>
1{if(R.value){const s={...J.email};return delete s.required,{...J,email:s}}return J}),m=Ze(ne,t),de=V(()=>{const s=[{text:"Home",to:{name:"Dashboard"}},{text:"Staff",to:{name:"Staff"}}];return k.value&&t.value.first_name&&t.value.last_name?[...s,{text:`${t.value.first_name} ${t.value.last_name}`,to:{name:"ViewStaff",params:{id:p.params.id}}},{text:"Edit Staff",active:!0}]:[...s,{text:k.value?"Edit Staff":"New Staff",active:!0}]}),ue=async()=>{await ie()&&(k.value?r.push({name:"ViewStaff",params:{id:p.params.id}}):r.push({name:"Staff"}))},me=async()=>{try{if(!await m.value.$validate()){w.value="Please fix the form errors";return}const s=F.value?.getSelectedFile();$.value=!0,w.value=null;const e={...t.value};e.phone&&(e.phone=Ae(e.phone));const l=e.sendInvitation;delete e.sendInvitation,e.tax_id&&(e.tax_id=Te(e.tax_id));let i;if(p.params.id?i=await Ve(e,p.params.id):i=await Le(e),s)try{const{path:P}=await Re(s,i.id);await Ce(i.id,P),i.photo=P,F.value?.clearPreview()}catch(P){console.error("Photo upload error:",P),c("Failed to upload profile photo: "+P.message)}if(oe(),D(`Staff member ${k.value?"updated":"added"} successfully`),!k.value&&l&&await Ue(i.email))try{await Fe(i.id),D("Invitation sent successfully")}catch(P){console.error("Error sending invitation:",P),c("Failed to send invitation - "+(P.message||""))}r.push({name:"Staff"})}catch(s){console.error("Error saving staff:",s),c(`Failed to save staff: ${s.message||"Unknown error"}`)}finally{$.value=!1}},pe=s=>{let e=s.target.value.replace(/\D/g,"");e=e.slice(0,10),t.value.npi=e},fe=s=>{let e=s.target.value.replace(/\D/g,"");e=e.slice(0,9),e.length<=2?t.value.tax_id=e:t.value.tax_id=`${e.slice(0,2)}-${e.slice(2)}`},ve=async()=>{if(!(t.value.first_name?.trim()&&t.value.last_name?.trim())){c("Please enter provider first and last name");return}const s={firstName:t.value.first_name.trim(),lastName:t.value.last_name.trim()};if(t.value.npi||t.value.phone||t.value.address_1||t.value.address_2||t.value.city||t.value.state||t.value.zip){if(!window.confirm("The lookup will overwrite existing NPI, phone, and address information. Do you want to continue?"))return;t.value.npi="",t.value.phone="",t.value.address_1="",t.value.address_2="",t.value.city="",t.value.state="",t.value.zip=""}try{h.value=!0;const e=await ia(s);if(!e||e.result_count===0){c("No provider found with this name");return}if(e.result_count>1){c(`Multiple providers found (${e.result_count}). Please be more specific or try a different search.`);return}const l=e.results[0],i=na(l);if(!i){c("Unable to process provider data");return}i.npi&&(t.value.npi=i.npi),i.firstName&&(t.value.first_name=i.firstName),i.lastName&&(t.value.last_name=i.lastName),i.phone&&(t.value.phone=i.phone),i.address&&(i.address.line1&&(t.value.address_1=i.address.line1),i.address.line2&&(t.value.address_2=i.address.line2),i.address.city&&(t.value.city=i.address.city),i.address.state&&(t.value.state=i.address.state),i.address.postalCode&&(t.value.zip=i.address.postalCode)),D("Provider information loaded successfully")}catch(e){console.error("Error looking up provider:",e),c(`Failed to lookup provider: ${e.message||"Unknown error"}`)}finally{h.value=!1}},ce=async()=>{if(!p.params.id){H(t.value);return}try{$.value=!0,w.value=null;const s=await Ie(p.params.id);if($.value=!1,!s){w.value="Staff member not found";return}Z.value=s.user_id||null,Y.value=s.external_id||null,t.value={id:s.id,first_name:s.first_name||"",last_name:s.last_name||"",role:s.role||"",title:s.title||"",npi:s.npi||"",tax_id:Me(s.tax_id)||"",phone:s.phone||"",email:s.email||"",address_1:s.address_1||"",address_2:s.address_2||"",city:s.city||"",state:s.state||"",zip:s.zip||"",photo:s.photo||null,disabled:s.disabled||!1,scheduling_enabled:s.scheduling_enabled!==!1},H(t.value)}catch(s){console.error("Error loading staff member:",s),c(`Failed to load staff: ${s.message||"Unknown error"}`)}finally{$.value=!1}},ge=()=>{We("address_1",t)};return be(()=>{ce(),ge()}),he(()=>{Je()}),(s,e)=>(n(),d("div",da,[a("div",ua,[S(He,{items:de.value},null,8,["items"])]),a("form",{autocomplete:"off",class:"flex flex-col gap-4",onSubmit:ke(me,["prevent"])},[a("section",{class:x(L)},[a("div",null,[a("h2",{class:x(z)},"Identity"),e[15]||(e[15]=a("p",{class:"form-help"},"Name and profile photo.",-1))]),a("div",ma,[S(Qe,{ref_key:"photoUploadRef",ref:F,modelValue:t.value.photo,"onUpdate:modelValue":e[0]||(e[0]=l=>t.value.photo=l),entity:t.value,"entity-type":"staff","get-photo-url-fn":C,loading:$.value,disabled:!k.value,label:"",compact:"","help-text":"JPG, PNG, GIF or WebP. Max 5MB.","disabled-text":"Photos can be added after creating the staff member.",onFileSelected:O,onPhotoRemoved:W,onError:u(c)},null,8,["modelValue","entity","loading","disabled","onError"]),a("div",pa,[a("div",null,[e[16]||(e[16]=a("label",{for:"first_name",class:"form-label"},[N("First name"),a("span",{class:"text-red-500 ml-0.5"},"*")],-1)),_(a("input",{id:"first_name","onUpdate:modelValue":e[1]||(e[1]=l=>t.value.first_name=l),type:"text",autocomplete:"off","data-1p-ignore":"",class:"form-input",placeholder:"John"},null,512),[[I,t.value.first_name]]),u(m).first_name.$error?(n(),d("p",fa,f(u(m).first_name.$errors[0].$message),1)):v("",!0)]),a("div",null,[e[17]||(e[17]=a("label",{for:"last_name",class:"form-label"},[N("Last name"),a("span",{class:"text-red-500 ml-0.5"},"*")],-1)),_(a("input",{id:"last_name","onUpdate:modelValue":e[2]||(e[2]=l=>t.value.last_name=l),type:"text",autocomplete:"off","data-1p-ignore":"",class:"form-input",placeholder:"Doe"},null,512),[[I,t.value.last_name]]),u(m).last_name.$error?(n(),d("p",va,f(u(m).last_name.$errors[0].$message),1)):v("",!0)])])])]),a("section",{class:x(L)},[a("div",null,[a("h2",{class:x(z)},"Role & credentials"),e[18]||(e[18]=a("p",{class:"form-help"}
1,"Look up a provider's NPI, phone and address by name.",-1))]),a("div",ca,[a("div",ga,[a("div",null,[e[20]||(e[20]=a("label",{for:"role",class:"form-label"},[N("Role"),a("span",{class:"text-red-500 ml-0.5"},"*")],-1)),_(a("select",{id:"role","onUpdate:modelValue":e[3]||(e[3]=l=>t.value.role=l),class:"form-select"},[e[19]||(e[19]=a("option",{value:""},"Select role",-1)),(n(!0),d(E,null,Q(G.value,l=>(n(),d("option",{key:l.label,value:l.value},f(l.label),9,ha))),128))],512),[[X,t.value.role]]),u(m).role.$error?(n(),d("p",ba,f(u(m).role.$errors[0].$message),1)):v("",!0)]),t.value.role==="provider"?(n(),d("div",_a,[e[21]||(e[21]=a("label",{for:"title",class:"form-label"},"Title",-1)),_(a("input",{id:"title","onUpdate:modelValue":e[4]||(e[4]=l=>t.value.title=l),type:"text",class:"form-input",placeholder:"e.g. MD, PA-C, NP",maxlength:"50"},null,512),[[I,t.value.title]])])):v("",!0),a("div",null,[a("label",xa,[e[22]||(e[22]=N("NPI",-1)),t.value.role==="provider"?(n(),d("span",ya,"*")):v("",!0)]),a("input",{id:"npi",value:t.value.npi,type:"text",autocomplete:"off","data-1p-ignore":"",class:"form-input tabular-nums",placeholder:"1234567890",maxlength:"10",onInput:pe},null,40,$a),u(m).npi.$error?(n(),d("p",ka,f(u(m).npi.$errors[0].$message),1)):v("",!0)]),a("div",null,[e[23]||(e[23]=a("label",{for:"tax_id",class:"form-label"},"Tax ID",-1)),a("input",{id:"tax_id",value:t.value.tax_id,type:"text",autocomplete:"off","data-1p-ignore":"",class:"form-input tabular-nums",placeholder:"xx-xxxxxxx",onInput:fe},null,40,wa),t.value.tax_id&&u(m).tax_id&&u(m).tax_id.$error?(n(),d("p",Pa," Please enter a valid Tax ID (xx-xxxxxxx) ")):v("",!0)])]),a("div",null,[a("button",{type:"button",class:"btn btn-secondary",disabled:!t.value.first_name?.trim()||!t.value.last_name?.trim()||h.value,onClick:ve},[h.value?(n(),d(E,{key:0},[S(je,{class:"animate-spin h-3.5 w-3.5 text-current"}),e[24]||(e[24]=a("span",null,"Looking up...",-1))],64)):(n(),d(E,{key:1},[S(u(ze),{class:"h-3.5 w-3.5"}),e[25]||(e[25]=a("span",null,"Look up provider info",-1))],64))],8,Sa)])])]),a("section",{class:x(L)},[a("div",null,[a("h2",{class:x(z)},"Contact"),a("p",Ia,f(R.value?"Email is this person's login and can't be changed here.":"Email is used to sign in."),1)]),a("div",Na,[S(Oe,{modelValue:t.value.phone,"onUpdate:modelValue":e[5]||(e[5]=l=>t.value.phone=l),label:"Phone",error:u(m).phone.$error?u(m).phone.$errors[0].$message:""},null,8,["modelValue","error"]),a("div",Da,[a("label",Ua,[e[26]||(e[26]=N("Email",-1)),R.value?v("",!0):(n(),d("span",Va,"*"))]),_(a("input",{id:"email","onUpdate:modelValue":e[6]||(e[6]=l=>t.value.email=l),type:"email",autocomplete:"email",class:"form-input",disabled:R.value},null,8,Ca),[[I,t.value.email]]),u(m).email.$error?(n(),d("p",Ea,f(u(m).email.$errors[0].$message),1)):v("",!0)])])]),a("section",{class:x(L)},[a("div",null,[a("h2",{class:x(z)},"Address"),e[27]||(e[27]=a("p",{class:"form-help"},"Practice or mailing address.",-1))]),a("div",Fa,[a("div",La,[a("div",za,[e[28]||(e[28]=a("label",{for:"address_1",class:"form-label"},"Street address",-1)),_(a("input",{id:"address_1","onUpdate:modelValue":e[7]||(e[7]=l=>t.value.address_1=l),type:"text",autocomplete:"off","data-1p-ignore":"",class:"form-input",placeholder:"123 Main St"},null,512),[[I,t.value.address_1]]),u(m).address_1.$error?(n(),d("p",Ma,f(u(m).address_1.$errors[0].$message),1)):v("",!0)]),a("div",null,[e[29]||(e[29]=a("label",{for:"address_2",class:"form-label"},"Apt, suite, unit",-1)),_(a("input",{id:"address_2","onUpdate:modelValue":e[8]||(e[8]=l=>t.value.address_2=l),type:"text",autocomplete:"off","data-1p-ignore":"",class:"form-input",placeholder:"Optional"},null,512),[[I,t.value.address_2]])])]),a("div",Ta,[a("div",null,[e[30]||(e[30]=a("label",{for:"city",class:"form-label"},"City",-1)),_(a("input",{id:"city","onUpdate:modelValue":e[9]||(e[9]=l=>t.value.city=l),type:"text",autocomplete:"off","data-1p-ignore":"",class:"form-input"}
1,null,512),[[I,t.value.city]]),u(m).city.$error?(n(),d("p",Aa,f(u(m).city.$errors[0].$message),1)):v("",!0)]),a("div",null,[e[32]||(e[32]=a("label",{for:"state",class:"form-label"},"State",-1)),_(a("select",{id:"state","onUpdate:modelValue":e[10]||(e[10]=l=>t.value.state=l),autocomplete:"off","data-1p-ignore":"",class:"form-select"},[e[31]||(e[31]=a("option",{value:""},"Select state",-1)),(n(!0),d(E,null,Q(j.value,l=>(n(),d("option",{key:l.abbreviation,value:l.abbreviation},f(l.name),9,Ra))),128))],512),[[X,t.value.state]]),u(m).state.$error?(n(),d("p",qa,f(u(m).state.$errors[0].$message),1)):v("",!0)]),a("div",null,[e[33]||(e[33]=a("label",{for:"zip",class:"form-label"},"ZIP code",-1)),_(a("input",{id:"zip","onUpdate:modelValue":e[11]||(e[11]=l=>t.value.zip=l),type:"text",autocomplete:"off","data-1p-ignore":"",class:"form-input tabular-nums"},null,512),[[I,t.value.zip]]),u(m).zip.$error?(n(),d("p",Ga,f(u(m).zip.$errors[0].$message),1)):v("",!0)])])])]),a("section",{class:x(L)},[a("div",null,[a("h2",{class:x(z)},"Access"),a("p",ja," Account status"+f(t.value.role==="provider"?" and scheduling":"")+". ",1)]),a("div",Ba,[a("div",null,[e[34]||(e[34]=a("span",{class:"form-label"},"Status",-1)),S(se,{modelValue:t.value.disabled,"onUpdate:modelValue":e[12]||(e[12]=l=>t.value.disabled=l),"aria-label":"Staff status",options:U},null,8,["modelValue"])]),t.value.role==="provider"?(n(),d("div",Oa,[e[35]||(e[35]=a("span",{class:"form-label"},"Scheduling",-1)),S(se,{modelValue:t.value.scheduling_enabled,"onUpdate:modelValue":e[13]||(e[13]=l=>t.value.scheduling_enabled=l),"aria-label":"Scheduling",options:B,disabled:!K.value},null,8,["modelValue","disabled"]),a("p",Wa,[K.value?(n(),d(E,{key:0},[N(" When off, the phone agent won't offer or book this provider. Their account stays active. ")],64)):(n(),d(E,{key:1},[N(" This provider isn't linked to the practice management system, so the phone agent never offers them and this switch has no effect. Providers become linked when they appear in a PMS sync. ")],64))])])):v("",!0),k.value?v("",!0):(n(),d("label",Ja,[_(a("input",{"onUpdate:modelValue":e[14]||(e[14]=l=>t.value.sendInvitation=l),type:"checkbox",class:"form-checkbox h-4 w-4 text-primary-600"},null,512),[[$e,t.value.sendInvitation]]),e[36]||(e[36]=a("span",{class:"text-xs text-gray-700 dark:text-gray-200"},"Send an invitation to this staff member",-1))]))])]),a("div",Ha,[w.value?(n(),d("span",Za,f(w.value),1)):u(le)?(n(),d("span",Ya,[...e[37]||(e[37]=[a("span",{class:"w-1.5 h-1.5 rounded-full bg-amber-500"},null,-1),N(" Unsaved changes ",-1)])])):(n(),d("span",Ka)),a("div",Qa,[a("button",{type:"button",class:"btn btn-secondary",onClick:ue},"Cancel"),a("button",{type:"submit",class:"btn btn-primary",disabled:$.value},[S(u(De),{class:"h-3.5 w-3.5"}),a("span",null,f(k.value?"Save changes":"Create staff"),1)],8,Xa)])])],32)]))}};export{ct as default};

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.