const d={computed:{hasAvailabilityStatusOnlyPermission(){return this.$fischer.shop.hasAvailabilityStatusOnlyPermission()}},methods:{getPrivileges(t,l,a,i,e){return t?a?t.map(u=>({headline:u.headline,privileges:this.loopPrivileges(u.privileges,l,i,e)})):this.loopPrivileges(t,l,i,e):null},loopPrivileges(t,l,a,i,e){return t?t.map(u=>{const r=!a&&u.Mandatory;let n=r,s=e||r;return!u.Global&&i&&(n=!1,s=!0),!r&&l&&(n=l.some(h=>u.Value===h.uid)),{name:u.Title,value:u.Value,disabled:s,selected:n,subGroups:this.loopPrivileges(u.Subgroups,l,a,i,n)}}):null},hasActivePrivilege(t){return t?t.some(l=>l.selected||this.hasActivePrivilege(l.subGroups)):!1}}};export{d as _};