Sha256: 07883fa0a624f16876b56412c710ce5605144428a7e8ff2905cc223b2c5ed95e

Contents?: true

Size: 1.2 KB

Versions: 75

Compression:

Stored size: 1.2 KB

Contents

// @ts-nocheck
(function (undefined) {

  // Detection from https://raw.githubusercontent.com/Financial-Times/polyfill-service/1f3c09b402f65bf6e393f933a15ba63f1b86ef1f/packages/polyfill-library/polyfills/Element/prototype/matches/detect.js
  var detect = (
    'document' in this && "matches" in document.documentElement
  );

  if (detect) return

  // Polyfill from https://raw.githubusercontent.com/Financial-Times/polyfill-service/1f3c09b402f65bf6e393f933a15ba63f1b86ef1f/packages/polyfill-library/polyfills/Element/prototype/matches/polyfill.js
  Element.prototype.matches = Element.prototype.webkitMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.mozMatchesSelector || function matches(selector) {
    var element = this;
    var elements = (element.document || element.ownerDocument).querySelectorAll(selector);
    var index = 0;

    while (elements[index] && elements[index] !== element) {
      ++index;
    }

    return !!elements[index];
  };

}).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});
//# sourceMappingURL=vendor/polyfills/Element/prototype/matches.mjs.map

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
govuk_publishing_components-39.2.5 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-39.2.4 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-39.2.3 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-39.2.2 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-39.2.1 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-39.2.0 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-39.1.0 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-39.0.0 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-38.4.2 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-38.1.1 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-38.1.0 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-38.0.1 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-38.0.0 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-37.10.0 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-37.9.1 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-37.9.0 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-37.8.1 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-37.8.0 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-37.7.1 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs
govuk_publishing_components-37.7.0 node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs