var/www/html/servotec-doerpen/wp-includes/js/dist | uid:33
viewport.js [X]
var wp;
(wp ||= {}).viewport = (() => {
  var __create = Object.create;
  var __defProp = Object.defineProperty;
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  var __getOwnPropNames = Object.getOwnPropertyNames;
  var __getProtoOf = Object.getPrototypeOf;
  var __hasOwnProp = Object.prototype.hasOwnProperty;
  var __commonJS = (cb, mod) => function __require() {
    return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
  };
  var __export = (target, all) => {
    for (var name in all)
      __defProp(target, name, { get: all[name], enumerable: true });
  };
  var __copyProps = (to, from, except, desc) => {
    if (from && typeof from === "object" || typeof from === "function") {
      for (let key of __getOwnPropNames(from))
        if (!__hasOwnProp.call(to, key) && key !== except)
          __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
    }
    return to;
  };
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
    // If the importer is in node compatibility mode or this is not an ESM
    // file that has been converted to a CommonJS file using a Babel-
    // compatible transform (i.e. "__esModule" has not been set), then set
    // "default" to the CommonJS "module.exports" for node compatibility.
    isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
    mod
  ));
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

  // package-external:@wordpress/compose
  var require_compose = __commonJS({
    "package-external:@wordpress/compose"(exports, module) {
      module.exports = window.wp.compose;
    }
  });

  // package-external:@wordpress/data
  var require_data = __commonJS({
    "package-external:@wordpress/data"(exports, module) {
      module.exports = window.wp.data;
    }
  });

  // vendor-external:react/jsx-runtime
  var require_jsx_runtime = __commonJS({
    "vendor-external:react/jsx-runtime"(exports, module) {
      module.exports = window.ReactJSXRuntime;
    }
  });

  // packages/viewport/build-module/index.mjs
  var index_exports = {};
  __export(index_exports, {
    ifViewportMatches: () => if_viewport_matches_default,
    store: () => store,
    withViewportMatch: () => with_viewport_match_default
  });

  // packages/viewport/build-module/listener.mjs
  var import_compose = __toESM(require_compose(), 1);
  var import_data2 = __toESM(require_data(), 1);

  // packages/viewport/build-module/store/index.mjs
  var import_data = __toESM(require_data(), 1);

  // packages/viewport/build-module/store/reducer.mjs
  function reducer(state = {}, action) {
    switch (action.type) {
      case "SET_IS_MATCHING":
        return action.values;
    }
    return state;
  }
  var reducer_default = reducer;

  // packages/viewport/build-module/store/actions.mjs
  var actions_exports = {};
  __export(actions_exports, {
    setIsMatching: () => setIsMatching
  });
  function setIsMatching(values) {
    return {
      type: "SET_IS_MATCHING",
      values
    };
  }

  // packages/viewport/build-module/store/selectors.mjs
  var selectors_exports = {};
  __export(selectors_exports, {
    isViewportMatch: () => isViewportMatch
  });
  function isViewportMatch(state, query) {
    if (query.indexOf(" ") === -1) {
      query = ">= " + query;
    }
    return !!state[query];
  }

  // packages/viewport/build-module/store/index.mjs
  var STORE_NAME = "core/viewport";
  var store = (0, import_data.createReduxStore)(STORE_NAME, {
    reducer: reducer_default,
    actions: actions_exports,
    selectors: selectors_exports
  });
  (0, import_data.register)(store);

  // packages/viewport/build-module/listener.mjs
  var addDimensionsEventListener = (breakpoints, operators) => {
    const setIsMatching2 = (0, import_compose.debounce)(
      () => {
        const values = Object.fromEntries(
          queries.map(([key, query]) => [key, query.matches])
        );
        (0, import_data2.dispatch)(store).setIsMatching(values);
      },
      0,
      { leading: true }
    );
    const operatorEntries = Object.entries(operators);
    const queries = Object.entries(breakpoints).flatMap(
      ([name, width]) => {
        return operatorEntries.map(([operator, condition]) => {
          const list = window.matchMedia(
            `(${condition}: ${width}px)`
          );
          list.addEventListener("change", setIsMatching2);
          return [`${operator} ${name}`, list];
        });
      }
    );
    window.addEventListener("orientationchange", setIsMatching2);
    setIsMatching2();
    setIsMatching2.flush();
  };
  var listener_default = addDimensionsEventListener;

  // packages/viewport/build-module/if-viewport-matches.mjs
  var import_compose3 = __toESM(require_compose(), 1);

  // packages/viewport/build-module/with-viewport-match.mjs
  var import_compose2 = __toESM(require_compose(), 1);
  var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
  var withViewportMatch = (queries) => {
    const queryEntries = Object.entries(queries);
    const useViewPortQueriesResult = () => Object.fromEntries(
      queryEntries.map(([key, query]) => {
        let [operator, breakpointName] = query.split(" ");
        if (breakpointName === void 0) {
          breakpointName = operator;
          operator = ">=";
        }
        return [key, (0, import_compose2.useViewportMatch)(breakpointName, operator)];
      })
    );
    return (0, import_compose2.createHigherOrderComponent)((WrappedComponent) => {
      return (0, import_compose2.pure)((props) => {
        const queriesResult = useViewPortQueriesResult();
        return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WrappedComponent, { ...props, ...queriesResult });
      });
    }, "withViewportMatch");
  };
  var with_viewport_match_default = withViewportMatch;

  // packages/viewport/build-module/if-viewport-matches.mjs
  var ifViewportMatches = (query) => (0, import_compose3.createHigherOrderComponent)(
    (0, import_compose3.compose)([
      with_viewport_match_default({
        isViewportMatch: query
      }),
      (0, import_compose3.ifCondition)((props) => props.isViewportMatch)
    ]),
    "ifViewportMatches"
  );
  var if_viewport_matches_default = ifViewportMatches;

  // packages/viewport/build-module/index.mjs
  var BREAKPOINTS = {
    huge: 1440,
    wide: 1280,
    large: 960,
    medium: 782,
    small: 600,
    mobile: 480
  };
  var OPERATORS = {
    "<": "max-width",
    ">=": "min-width"
  };
  listener_default(BREAKPOINTS, OPERATORS);
  return __toCommonJS(index_exports);
})();
development/-O R D
script-modules/-O R D
vendor/-O R D
a11y.min.js2.4KV E R D
autop.js9.7KV E R D
autop.min.js5.5KV E R D
base-styles.js48V E R D
block-serialization-default-parser.js6.5KV E R D
block-serialization-default-parser.min.js2.4KV E R D
block-serialization-spec-parser.js50.5KV E R D
block-serialization-spec-parser.min.js10.4KV E R D
blocks.js381.1KV E R D
commands.min.js63.1KV E R D
core-commands.js28.7KV E R D
core-commands.min.js11.9KV E R D
core-data.js612KV E R D
core-data.min.js210.5KV E R D
customize-widgets.min.js36.6KV E R D
date.js176.3KV E R D
deprecated.js3KV E R D
dom-ready.js1.5KV E R D
dom-ready.min.js818V E R D
dom.min.js12.7KV E R D
escape-html.js2.3KV E R D
format-library.min.js28.9KV E R D
hooks.js12KV E R D
i18n.js15.3KV E R D
i18n.min.js5.6KV E R D
is-shallow-equal.min.js1.1KV E R D
keyboard-shortcuts.js9.7KV E R D
keyboard-shortcuts.min.js3.4KV E R D
list-reusable-blocks.js13.1KV E R D
list-reusable-blocks.min.js5.2KV E R D
media-utils.min.js237.6KV E R D
notices.min.js4.4KV E R D
nux.js10.3KV E R D
nux.min.js4KV E R D
plugins.min.js4.8KV E R D
primitives.js5.1KV E R D
private-apis.js4.1KV E R D
private-apis.min.js2.7KV E R D
react-i18n.js3.9KV E R D
react-i18n.min.js1.5KV E R D
redux-routine.js24.7KV E R D
redux-routine.min.js9.6KV E R D
reusable-blocks.min.js7.2KV E R D
router.min.js14.1KV E R D
style-engine.js17.6KV E R D
theme.min.js56.1KV E R D
token-list.js6.1KV E R D
token-list.min.js1.6KV E R D
undo-manager.js5.3KV E R D
undo-manager.min.js1.7KV E R D
upload-media.js55.7KV E R D
upload-media.min.js23.1KV E R D
viewport.js6.6KV E R D
viewport.min.js2.2KV E R D
warning.js1.5KV E R D
widgets.min.js20.8KV E R D
wordcount.min.js2.4KV E R D