1import{J as p,y as g,s as v,a as _,au as E,k as I,ae as h,n as i,r as y}from"./8yE1kzwR.js";function A(){const{$auth:a,$axios:u}=p(),t=g(),{getUserData:l}=v(t),n=y([]),{t:f}=_(),{baseToast:d}=E(),m=async()=>{try{const s=(await u.get(h))?.data?.haweb_roles??[];n.value=s.map(r=>r.id)}catch(e){console.error("Error fetching HAWEB role IDs:",e)}},c=i(()=>!!(t.getUserCompanies||[]).find(s=>s.roles?.find(r=>n.value.includes(r.role_id))));I(()=>{a.loggedIn&&m()});const o=i(()=>l.value?.user);return{emailIsNotVerified:i(()=>{const e=o.value?o.value.automatic_guest_account:a.user?.automatic_guest_account,s=o.value?o.value.email_verified_at:a.user?.email_verified_at;return a.loggedIn&&!c.value&&!e&&!s}),hasSSORole:c,resendEmailVerification:async()=>{try{await t.verifyEmail(),d({message:f("profile.emailResendNotification"),duration:5e3,type:"is-success"})}catch(e){console.error("Error resending email verification:",e)}}}}export{A as u};
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.