import{a as e,i as t,o as n}from"./authStore-BvQBJ9ky.js";function r(e,t){return e?e._fieldAccess?.[t]??null:null}function i(e,t,n){if(!e)return null;let r=e[t];return r?r._fieldAccess?.[n]??null:null}function a(e,t=!1){return e?e.visible:t}function o(e){return!!(e?.visible&&e.masked&&e.revealAllowed)}function s(e,t,i,a,o){return r(e,t)||(o?a:n)}function c(r,i,a){let o=t(e=>e.loaded),c=t(e=>e.roles.includes(`SUPER_ADMIN`)),l=t(e=>e.fieldEffective[a]);return s(r,i,a,c?e:l??n,o)}function l(e){return t(t=>t.canEditField(e))}function u(e){return t(t=>t.canViewField(e))}export{l as a,a as i,i as n,u as o,r,c as s,o as t};