PHP 8.2.30
Preview: emotion-utils.cjs.js Size: 2.14 KB
/home/byroehnu/easepay.easetack.com/node_modules/@emotion/utils/dist/emotion-utils.cjs.js

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var isBrowser = typeof document !== 'undefined';

function getRegisteredStyles(registered, registeredStyles, classNames) {
  var rawClassName = '';
  classNames.split(' ').forEach(function (className) {
    if (registered[className] !== undefined) {
      registeredStyles.push(registered[className] + ";");
    } else if (className) {
      rawClassName += className + " ";
    }
  });
  return rawClassName;
}
var registerStyles = function registerStyles(cache, serialized, isStringTag) {
  var className = cache.key + "-" + serialized.name;

  if ( // we only need to add the styles to the registered cache if the
  // class name could be used further down
  // the tree but if it's a string tag, we know it won't
  // so we don't have to add it to registered cache.
  // this improves memory usage since we can avoid storing the whole style string
  (isStringTag === false || // we need to always store it if we're in compat mode and
  // in node since emotion-server relies on whether a style is in
  // the registered cache to know whether a style is global or not
  // also, note that this check will be dead code eliminated in the browser
  isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
    cache.registered[className] = serialized.styles;
  }
};
var insertStyles = function insertStyles(cache, serialized, isStringTag) {
  registerStyles(cache, serialized, isStringTag);
  var className = cache.key + "-" + serialized.name;

  if (cache.inserted[serialized.name] === undefined) {
    var stylesForSSR = '';
    var current = serialized;

    do {
      var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);

      if (!isBrowser && maybeStyles !== undefined) {
        stylesForSSR += maybeStyles;
      }

      current = current.next;
    } while (current !== undefined);

    if (!isBrowser && stylesForSSR.length !== 0) {
      return stylesForSSR;
    }
  }
};

exports.getRegisteredStyles = getRegisteredStyles;
exports.insertStyles = insertStyles;
exports.registerStyles = registerStyles;

Directory Contents

Dirs: 1 × Files: 12

Name Size Perms Modified Actions
- drwxr-xr-x 2026-03-14 01:49:13
Edit Download
127 B lr--r--r-- 2026-03-14 01:49:13
Edit Download
1.86 KB lrw-r--r-- 2026-02-28 00:26:44
Edit Download
106 B lrw-r--r-- 2026-02-28 00:27:44
Edit Download
1.72 KB lrw-r--r-- 2026-02-28 00:26:54
Edit Download
290 B lrw-r--r-- 2026-02-28 00:28:04
Edit Download
287 B lrw-r--r-- 2026-02-28 00:28:06
Edit Download
2.14 KB lrw-r--r-- 2026-02-28 00:27:04
Edit Download
98 B lrw-r--r-- 2026-02-28 00:27:50
Edit Download
2.04 KB lrw-r--r-- 2026-02-28 00:27:14
Edit Download
109 B lrw-r--r-- 2026-02-28 00:28:00
Edit Download
1.90 KB lrw-r--r-- 2026-02-28 00:27:22
Edit Download
2.00 KB lrw-r--r-- 2026-02-28 00:27:32
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).