Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/@casl/ability/dist/es6m/ drwxr-xr-x | |
| Viewing file: Select action/file-type: function t(t,...n){const[r,e,o]=n,c={},u=t.rulesFor(r,e);for(let t=0;t<u.length;t++){const n=u[t],r=n.inverted?"$and":"$or";if(!n.conditions){if(n.inverted)break;return delete c[r],c}c[r]=c[r]||[],c[r].push(o(n))}return c.$or?c:null}function n(t,...[n,r]){return t.rulesFor(n,r).filter(t=>!t.inverted&&t.conditions).reduce((t,n)=>{const r=n.conditions;return Object.keys(r).reduce((t,n)=>{const e=r[n];return e&&e.constructor===Object||function(t,n,r){let e=t,o=n;if(-1!==n.indexOf(".")){const r=n.split(".");o=r.pop(),e=r.reduce((t,n)=>(t[n]=t[n]||{},t[n]),t)}e[o]=r}(t,n,e),t},t)},{})}const r=t=>t.fields;function e(t){delete this[t]}function o(t){this[t]=!0}function c(t,n,c,u={}){const f=u.fieldsFrom||r,i=t.possibleRulesFor(n,c).filter(t=>t.matchesConditions(c)).reverse().reduce((t,n)=>{const r=f(n);if(r){const c=n.inverted?e:o;r.forEach(c,t)}return t},{});return Object.keys(i)}const u=t=>Array.isArray(t)?t.join(","):t;function f(t,n){return t.map(t=>{const r=[u(t.action||t.actions),"function"==typeof n?(e=t.subject,Array.isArray(e)?e:[e]).map(n).join(","):u(t.subject),t.conditions||0,t.inverted?1:0,t.fields?u(t.fields):0,t.reason||""];for(var e;!r[r.length-1];)r.pop();return r})}function i(t,n){return t.map(([t,r,e,o,c,u])=>{const f=r.split(","),i={inverted:!!o,action:t.split(","),subject:"function"==typeof n?f.map(n):f};return e&&(i.conditions=e),c&&(i.fields=c.split(",")),u&&(i.reason=u),i})}export{f as packRules,c as permittedFieldsOf,n as rulesToFields,t as rulesToQuery,i as unpackRules};
//# sourceMappingURL=extra.js.map
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0057 ]-- |