(window["__googlesitekit_webpackJsonp"] = window["__googlesitekit_webpackJsonp"] || []).push([["googlesitekit-datastore-user"],{

/***/ "./js/components/ChangeArrow.js":
/*!**************************************!*\
  !*** ./js/components/ChangeArrow.js ***!
  \**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(React) {/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);\n\n/**\n * External dependencies\n */\n\n\nfunction ChangeArrow(_ref) {\n  var direction = _ref.direction,\n    invertColor = _ref.invertColor,\n    width = _ref.width,\n    height = _ref.height;\n  return /*#__PURE__*/React.createElement(\"svg\", {\n    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('googlesitekit-change-arrow', \"googlesitekit-change-arrow--\".concat(direction), {\n      'googlesitekit-change-arrow--inverted-color': invertColor\n    }),\n    width: width,\n    height: height,\n    viewBox: \"0 0 10 10\",\n    fill: \"none\",\n    xmlns: \"http://www.w3.org/2000/svg\"\n  }, /*#__PURE__*/React.createElement(\"path\", {\n    d: \"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z\",\n    fill: \"currentColor\"\n  }));\n}\nChangeArrow.propTypes = {\n  direction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n  invertColor: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,\n  width: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,\n  height: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number\n};\nChangeArrow.defaultProps = {\n  direction: 'up',\n  invertColor: false,\n  width: 9,\n  height: 9\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (ChangeArrow);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0NoYW5nZUFycm93LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9DaGFuZ2VBcnJvdy5qcz9iNjAwIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5pbXBvcnQgY2xhc3NuYW1lcyBmcm9tICdjbGFzc25hbWVzJztcblxuZnVuY3Rpb24gQ2hhbmdlQXJyb3coIHsgZGlyZWN0aW9uLCBpbnZlcnRDb2xvciwgd2lkdGgsIGhlaWdodCB9ICkge1xuXHRyZXR1cm4gKFxuXHRcdDxzdmdcblx0XHRcdGNsYXNzTmFtZT17IGNsYXNzbmFtZXMoXG5cdFx0XHRcdCdnb29nbGVzaXRla2l0LWNoYW5nZS1hcnJvdycsXG5cdFx0XHRcdGBnb29nbGVzaXRla2l0LWNoYW5nZS1hcnJvdy0tJHsgZGlyZWN0aW9uIH1gLFxuXHRcdFx0XHR7ICdnb29nbGVzaXRla2l0LWNoYW5nZ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FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUdBO0FBQ0E7QUFBQTtBQUlBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/components/ChangeArrow.js\n");

/***/ }),

/***/ "./js/components/KeyMetrics/constants.js":
/*!***********************************************!*\
  !*** ./js/components/KeyMetrics/constants.js ***!
  \***********************************************/
/*! exports provided: KEY_METRICS_SETUP_CTA_WIDGET_SLUG, KEY_METRICS_SELECTION_PANEL_OPENED_KEY, KEY_METRICS_SELECTION_FORM, KEY_METRICS_SELECTED, EFFECTIVE_SELECTION, UNSTAGED_SELECTION, MIN_SELECTED_METRICS_COUNT, MAX_SELECTED_METRICS_COUNT, KEY_METRICS_GROUP_CURRENT, KEY_METRICS_GROUP_SUGGESTED, KEY_METRICS_GROUP_VISITORS, KEY_METRICS_GROUP_DRIVING_TRAFFIC, KEY_METRICS_GROUP_GENERATING_LEADS, KEY_METRICS_GROUP_SELLING_PRODUCTS, KEY_METRICS_GROUP_CONTENT_PERFORMANCE */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KEY_METRICS_SETUP_CTA_WIDGET_SLUG\", function() { return KEY_METRICS_SETUP_CTA_WIDGET_SLUG; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KEY_METRICS_SELECTION_PANEL_OPENED_KEY\", function() { return KEY_METRICS_SELECTION_PANEL_OPENED_KEY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KEY_METRICS_SELECTION_FORM\", function() { return KEY_METRICS_SELECTION_FORM; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KEY_METRICS_SELECTED\", function() { return KEY_METRICS_SELECTED; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"EFFECTIVE_SELECTION\", function() { return EFFECTIVE_SELECTION; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"UNSTAGED_SELECTION\", function() { return UNSTAGED_SELECTION; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"MIN_SELECTED_METRICS_COUNT\", function() { return MIN_SELECTED_METRICS_COUNT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"MAX_SELECTED_METRICS_COUNT\", function() { return MAX_SELECTED_METRICS_COUNT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KEY_METRICS_GROUP_CURRENT\", function() { return KEY_METRICS_GROUP_CURRENT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KEY_METRICS_GROUP_SUGGESTED\", function() { return KEY_METRICS_GROUP_SUGGESTED; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KEY_METRICS_GROUP_VISITORS\", function() { return KEY_METRICS_GROUP_VISITORS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KEY_METRICS_GROUP_DRIVING_TRAFFIC\", function() { return KEY_METRICS_GROUP_DRIVING_TRAFFIC; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KEY_METRICS_GROUP_GENERATING_LEADS\", function() { return KEY_METRICS_GROUP_GENERATING_LEADS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KEY_METRICS_GROUP_SELLING_PRODUCTS\", function() { return KEY_METRICS_GROUP_SELLING_PRODUCTS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KEY_METRICS_GROUP_CONTENT_PERFORMANCE\", function() { return KEY_METRICS_GROUP_CONTENT_PERFORMANCE; });\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * Key Metrics components - constants.\n *\n * Site Kit by Google, Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * WordPress dependencies\n */\n\nvar KEY_METRICS_SETUP_CTA_WIDGET_SLUG = 'key-metrics-setup-cta-widget';\nvar KEY_METRICS_SELECTION_PANEL_OPENED_KEY = 'googlesitekit-key-metrics-selection-panel-opened';\nvar KEY_METRICS_SELECTION_FORM = 'key-metrics-selection-form';\nvar KEY_METRICS_SELECTED = 'key-metrics-selected';\nvar EFFECTIVE_SELECTION = 'key-metrics-effective-selection';\nvar UNSTAGED_SELECTION = 'key-metrics-unstaged-selection';\nvar MIN_SELECTED_METRICS_COUNT = 2;\nvar MAX_SELECTED_METRICS_COUNT = 8;\nvar KEY_METRICS_GROUP_CURRENT = {\n  SLUG: 'current-selection',\n  LABEL: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Current selection', 'google-site-kit')\n};\nvar KEY_METRICS_GROUP_SUGGESTED = {\n  SLUG: 'suggested',\n  LABEL: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Suggested', 'google-site-kit')\n};\nvar KEY_METRICS_GROUP_VISITORS = {\n  SLUG: 'visitors',\n  LABEL: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Visitors', 'google-site-kit')\n};\nvar KEY_METRICS_GROUP_DRIVING_TRAFFIC = {\n  SLUG: 'driving-traffic',\n  LABEL: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Driving traffic', 'google-site-kit')\n};\nvar KEY_METRICS_GROUP_GENERATING_LEADS = {\n  SLUG: 'generating-leads',\n  LABEL: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Generating leads', 'google-site-kit')\n};\nvar KEY_METRICS_GROUP_SELLING_PRODUCTS = {\n  SLUG: 'selling-products',\n  LABEL: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Selling products', 'google-site-kit')\n};\nvar KEY_METRICS_GROUP_CONTENT_PERFORMANCE = {\n  SLUG: 'content-performance',\n  LABEL: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Content performance', 'google-site-kit')\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3MvY29uc3RhbnRzLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9LZXlNZXRyaWNzL2NvbnN0YW50cy5qcz8zYjdiIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogS2V5IE1ldHJpY3MgY29tcG9uZW50cyAtIGNvbnN0YW50cy5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIzIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG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IiJ9\n//# sourceURL=webpack-internal:///./js/components/KeyMetrics/constants.js\n");

/***/ }),

/***/ "./js/components/KeyMetrics/key-metrics-widgets.js":
/*!*********************************************************!*\
  !*** ./js/components/KeyMetrics/key-metrics-widgets.js ***!
  \*********************************************************/
/*! exports provided: KEY_METRICS_WIDGETS */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KEY_METRICS_WIDGETS\", function() { return KEY_METRICS_WIDGETS; });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/js/googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/js/googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/js/modules/analytics-4/datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./shouldDisplayWidgetWithConversionEvent */ \"./js/components/KeyMetrics/shouldDisplayWidgetWithConversionEvent.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ \"./js/components/KeyMetrics/constants.js\");\n\nvar _KEY_METRICS_WIDGETS;\n/**\n * Key Metrics widgets metadata.\n *\n * Site Kit by Google, Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n/**\n * Determines whether to show a widget the requires Analytics 4 and AdSense to be linked.\n *\n * For admin dashboards, the widget will be shown if both modules are activate so that\n * the connection CTA can be shown if they have not been linked.\n *\n * For view-only dashboards, the widget will only be displayed if both modules are linked.\n *\n * @since 1.121.0\n *\n * @param {Object}   options                     Options object.\n * @param {Function} options.select              Data store select function.\n * @param {boolean}  options.isViewOnlyDashboard Whether the current dashboard is view only.\n * @return {boolean} Whether to display the widget.\n */\nfunction shouldDisplayWidgetWithAnalytics4AndAdSenseLinked(_ref) {\n  var select = _ref.select,\n    isViewOnlyDashboard = _ref.isViewOnlyDashboard;\n  if (!isViewOnlyDashboard) {\n    return true;\n  }\n  if (isViewOnlyDashboard && select(_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"MODULES_ANALYTICS_4\"]).getAdSenseLinked()) {\n    return true;\n  }\n  return false;\n}\n\n/**\n * Determines whether to display a widget that requires custom dimensions in the key\n * metrics selection panel.\n *\n * All widgets are displayed in authenticated dashboard. However, in view only dashboard,\n * widgets that require custom dimensions will only be displayed if the required custom\n * dimensions are available in the shared property.\n *\n * This function is attached to the widget object that requires the custom dimensions and\n * has the `requiredCustomDimensions` property.\n *\n * @since 1.113.0\n *\n * @param {Object}   options                     Options object.\n * @param {Function} options.select              Data store select function.\n * @param {boolean}  options.isViewOnlyDashboard Whether the current dashboard is view only.\n * @return {boolean} Whether to display the widget.\n */\nfunction shouldDisplayWidgetWithCustomDimensions(_ref2) {\n  var select = _ref2.select,\n    isViewOnlyDashboard = _ref2.isViewOnlyDashboard;\n  if (!isViewOnlyDashboard) {\n    return true;\n  }\n  return select(_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"MODULES_ANALYTICS_4\"]).hasCustomDimensions(\n  // This property is available to the widget object that requires the\n  // custom dimensions, where the function is attached.\n  this.requiredCustomDimensions);\n}\nvar KEY_METRICS_WIDGETS = (_KEY_METRICS_WIDGETS = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_ADSENSE_TOP_EARNING_CONTENT\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top earning pages', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Pages that generated the most AdSense revenue', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Pages that generated the most AdSense revenue', 'google-site-kit'),\n  displayInSelectionPanel: shouldDisplayWidgetWithAnalytics4AndAdSenseLinked,\n  displayInList: shouldDisplayWidgetWithAnalytics4AndAdSenseLinked,\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_CONTENT_PERFORMANCE\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_TOP_RECENT_TRENDING_PAGES\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top recent trending pages', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Pages with the most pageviews published in the last 3 days', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Pages with the most pageviews published in the last 3 days', 'google-site-kit'),\n  requiredCustomDimensions: ['googlesitekit_post_date'],\n  displayInSelectionPanel: shouldDisplayWidgetWithCustomDimensions,\n  displayInWidgetArea: shouldDisplayWidgetWithCustomDimensions,\n  displayInList: shouldDisplayWidgetWithCustomDimensions,\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_CONTENT_PERFORMANCE\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_POPULAR_AUTHORS\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Most popular authors by pageviews', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Authors whose posts got the most visits', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Authors whose posts got the most visits', 'google-site-kit'),\n  requiredCustomDimensions: ['googlesitekit_post_author'],\n  displayInSelectionPanel: shouldDisplayWidgetWithCustomDimensions,\n  displayInWidgetArea: shouldDisplayWidgetWithCustomDimensions,\n  displayInList: shouldDisplayWidgetWithCustomDimensions,\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_CONTENT_PERFORMANCE\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_TOP_CATEGORIES\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top categories by pageviews', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Categories that your site visitors viewed the most', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Categories that your site visitors viewed the most', 'google-site-kit'),\n  requiredCustomDimensions: ['googlesitekit_post_categories'],\n  displayInSelectionPanel: shouldDisplayWidgetWithCustomDimensions,\n  displayInWidgetArea: shouldDisplayWidgetWithCustomDimensions,\n  displayInList: shouldDisplayWidgetWithCustomDimensions,\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_CONTENT_PERFORMANCE\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_POPULAR_CONTENT\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Most popular content by pageviews', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Pages that brought in the most visitors', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Pages your visitors read the most', 'google-site-kit'),\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_CONTENT_PERFORMANCE\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_POPULAR_PRODUCTS\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Most popular products by pageviews', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Products that brought in the most visitors', 'google-site-kit'),\n  requiredCustomDimensions: ['googlesitekit_post_type'],\n  displayInSelectionPanel: function displayInSelectionPanel(_ref3) {\n    var select = _ref3.select;\n    return select(_js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"CORE_USER\"]).isKeyMetricActive(_js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_POPULAR_PRODUCTS\"]) || select(_js_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_SITE\"]).getProductPostType();\n  },\n  displayInWidgetArea: shouldDisplayWidgetWithCustomDimensions,\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_SELLING_PRODUCTS\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_PAGES_PER_VISIT\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Pages per visit', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Number of pages visitors viewed per session on average', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Number of pages visitors viewed per session on average', 'google-site-kit'),\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_VISITORS\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_VISIT_LENGTH\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Visit length', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Average duration of engaged visits', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Average duration of engaged visits', 'google-site-kit'),\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_VISITORS\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_VISITS_PER_VISITOR\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Visits per visitor', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Average number of sessions per site visitor', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Average number of sessions per site visitor', 'google-site-kit'),\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_VISITORS\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_MOST_ENGAGING_PAGES\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Most engaging pages', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Pages with the highest engagement rate', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Pages with the highest engagement rate', 'google-site-kit'),\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_CONTENT_PERFORMANCE\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_LEAST_ENGAGING_PAGES\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Least engaging pages', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Pages with the highest percentage of visitors that left without engagement with your site', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Percentage of visitors that left without engagement with your site', 'google-site-kit'),\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_CONTENT_PERFORMANCE\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_TOP_RETURNING_VISITOR_PAGES\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top pages by returning visitors', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Pages that attracted the most returning visitors', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Pages that attracted the most returning visitors', 'google-site-kit'),\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_VISITORS\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_NEW_VISITORS\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('New visitors', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('How many new visitors you got and how the overall audience changed', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Portion of visitors who visited your site for the first time in this timeframe', 'google-site-kit'),\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_VISITORS\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_RETURNING_VISITORS\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Returning visitors', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Portion of people who visited your site more than once', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Portion of your site’s visitors that returned at least once in this timeframe', 'google-site-kit'),\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_VISITORS\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top traffic source', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Channel which brought in the most visitors to your site', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Channel (e.g. social, paid, search) that brought in the most visitors to your site', 'google-site-kit'),\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_DRIVING_TRAFFIC\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_ADD_TO_CART\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top traffic source driving add to cart', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Channel which brought in the most add to cart events to your site', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Channel (e.g. social, paid, search) that brought in the most add to cart events to your site', 'google-site-kit'),\n  requiredConversionEventName: [_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"ENUM_CONVERSION_EVENTS\"].ADD_TO_CART],\n  displayInSelectionPanel: _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__[\"shouldDisplayWidgetWithConversionEvent\"],\n  displayInList: _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__[\"shouldDisplayWidgetWithConversionEvent\"],\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_SELLING_PRODUCTS\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_LEADS\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top traffic source driving leads', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Channel which brought in the most leads to your site', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Channel (e.g. social, paid, search) that brought in the most leads to your site', 'google-site-kit'),\n  requiredConversionEventName: [_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"ENUM_CONVERSION_EVENTS\"].SUBMIT_LEAD_FORM, _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"ENUM_CONVERSION_EVENTS\"].CONTACT, _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"ENUM_CONVERSION_EVENTS\"].GENERATE_LEAD],\n  displayInSelectionPanel: _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__[\"shouldDisplayWidgetWithConversionEvent\"],\n  displayInList: _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__[\"shouldDisplayWidgetWithConversionEvent\"],\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_GENERATING_LEADS\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_PURCHASES\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top traffic source driving purchases', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Channel which brought in the most purchases to your site', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Channel (e.g. social, paid, search) that brought in the most purchases to your site', 'google-site-kit'),\n  requiredConversionEventName: [_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"ENUM_CONVERSION_EVENTS\"].PURCHASE],\n  displayInSelectionPanel: _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__[\"shouldDisplayWidgetWithConversionEvent\"],\n  displayInList: _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__[\"shouldDisplayWidgetWithConversionEvent\"],\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_SELLING_PRODUCTS\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_ENGAGED_TRAFFIC_SOURCE\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Most engaged traffic source', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Visitors coming via this channel spent the most time on your site', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Channel (e.g. social, paid, search) that brought in the most visitors who had a meaningful engagement with your site', 'google-site-kit'),\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_DRIVING_TRAFFIC\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_TOP_CONVERTING_TRAFFIC_SOURCE\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top converting traffic source', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Channel which brought in the most visits that resulted in key events', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Channel (e.g. social, paid, search) that brought in visitors who generated the most key events', 'google-site-kit'),\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_DRIVING_TRAFFIC\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_TOP_CITIES\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top cities driving traffic', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Which cities you get the most visitors from', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('The cities where most of your visitors came from', 'google-site-kit'),\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_DRIVING_TRAFFIC\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_TOP_CITIES_DRIVING_LEADS\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top cities driving leads', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Cities driving the most contact form submissions', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Cities driving the most contact form submissions', 'google-site-kit'),\n  requiredConversionEventName: [_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"ENUM_CONVERSION_EVENTS\"].SUBMIT_LEAD_FORM, _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"ENUM_CONVERSION_EVENTS\"].CONTACT, _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"ENUM_CONVERSION_EVENTS\"].GENERATE_LEAD],\n  displayInSelectionPanel: _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__[\"shouldDisplayWidgetWithConversionEvent\"],\n  displayInList: _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__[\"shouldDisplayWidgetWithConversionEvent\"],\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_GENERATING_LEADS\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_TOP_CITIES_DRIVING_ADD_TO_CART\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top cities driving add to cart', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Cities where visitors most frequently add products to their carts', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Cities where visitors most frequently add products to their carts', 'google-site-kit'),\n  requiredConversionEventName: [_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"ENUM_CONVERSION_EVENTS\"].ADD_TO_CART],\n  displayInSelectionPanel: _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__[\"shouldDisplayWidgetWithConversionEvent\"],\n  displayInList: _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__[\"shouldDisplayWidgetWithConversionEvent\"],\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_SELLING_PRODUCTS\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_TOP_CITIES_DRIVING_PURCHASES\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top cities driving purchases', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Cities driving the most purchases', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Cities driving the most purchases', 'google-site-kit'),\n  requiredConversionEventName: [_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"ENUM_CONVERSION_EVENTS\"].PURCHASE],\n  displayInSelectionPanel: _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__[\"shouldDisplayWidgetWithConversionEvent\"],\n  displayInList: _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__[\"shouldDisplayWidgetWithConversionEvent\"],\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_SELLING_PRODUCTS\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_TOP_DEVICE_DRIVING_PURCHASES\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top device driving purchases', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top device driving the most purchases', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top device driving the most purchases', 'google-site-kit'),\n  requiredConversionEventName: [_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"ENUM_CONVERSION_EVENTS\"].PURCHASE],\n  displayInSelectionPanel: _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__[\"shouldDisplayWidgetWithConversionEvent\"],\n  displayInList: _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__[\"shouldDisplayWidgetWithConversionEvent\"],\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_SELLING_PRODUCTS\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_TOP_COUNTRIES\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top countries driving traffic', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Which countries you get the most visitors from', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('The countries where most of your visitors came from', 'google-site-kit'),\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_DRIVING_TRAFFIC\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_SEARCH_CONSOLE_POPULAR_KEYWORDS\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top performing keywords', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('What people searched for before they came to your site', 'google-site-kit'),\n  infoTooltip: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('The top search queries for your site by highest clickthrough rate', 'google-site-kit'),\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_DRIVING_TRAFFIC\"].SLUG\n  }\n}), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_KEY_METRICS_WIDGETS, _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"KM_ANALYTICS_TOP_PAGES_DRIVING_LEADS\"], {\n  title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Top pages driving leads', 'google-site-kit'),\n  description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Pages on which forms are most frequently submitted', 'google-site-kit'),\n  requiredConversionEventName: [_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"ENUM_CONVERSION_EVENTS\"].SUBMIT_LEAD_FORM, _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"ENUM_CONVERSION_EVENTS\"].CONTACT, _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"ENUM_CONVERSION_EVENTS\"].GENERATE_LEAD],\n  displayInSelectionPanel: _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__[\"shouldDisplayWidgetWithConversionEvent\"],\n  displayInList: _shouldDisplayWidgetWithConversionEvent__WEBPACK_IMPORTED_MODULE_5__[\"shouldDisplayWidgetWithConversionEvent\"],\n  metadata: {\n    group: _constants__WEBPACK_IMPORTED_MODULE_6__[\"KEY_METRICS_GROUP_GENERATING_LEADS\"].SLUG\n  }\n}), _KEY_METRICS_WIDGETS);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/components/KeyMetrics/key-metrics-widgets.js\n");

/***/ }),

/***/ "./js/components/KeyMetrics/shouldDisplayWidgetWithConversionEvent.js":
/*!****************************************************************************!*\
  !*** ./js/components/KeyMetrics/shouldDisplayWidgetWithConversionEvent.js ***!
  \****************************************************************************/
/*! exports provided: shouldDisplayWidgetWithConversionEvent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"shouldDisplayWidgetWithConversionEvent\", function() { return shouldDisplayWidgetWithConversionEvent; });\n/* harmony import */ var _js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/js/googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/js/modules/analytics-4/datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/**\n * Key Metrics shouldDisplayWidgetWithConversionEvent function.\n *\n * Site Kit by Google, Copyright 2024 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Internal dependencies\n */\n\n\n\n/**\n * Determines whether to display a widget that requires conversion reporting events\n * in the key metrics selection panel.\n *\n * This function is attached to the widget object that requires the conversion reporting events and\n * has the `requiredConversionEventName` property.\n *\n * @since 1.136.0\n * @since 1.137.0 Moved function to its own file.\n *\n * @param {Object}   options        Options object.\n * @param {Function} options.select Data store select function.\n * @param {string}   options.slug   Key metric widget slug.\n * @return {boolean} Whether to display the widget.\n */\nfunction shouldDisplayWidgetWithConversionEvent(_ref) {\n  var select = _ref.select,\n    slug = _ref.slug;\n  return select(_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_1__[\"MODULES_ANALYTICS_4\"]).hasConversionReportingEvents(\n  // This property is available to the widget object that requires the\n  // conversion reporting events, where the function is attached.\n  this.requiredConversionEventName) || select(_js_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_0__[\"CORE_USER\"]).isKeyMetricActive(slug);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3Mvc2hvdWxkRGlzcGxheVdpZGdldFdpdGhDb252ZXJzaW9uRXZlbnQuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3Mvc2hvdWxkRGlzcGxheVdpZGdldFdpdGhDb252ZXJzaW9uRXZlbnQuanM/ZDg0MCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEtleSBNZXRyaWNzIHNob3VsZERpc3BsYXlXaWRnZXR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zaW9uUmVwb3J0aW5nRXZlbnRzKFxuXHRcdFx0Ly8gVGhpcyBwcm9wZXJ0eSBpcyBhdmFpbGFibGUgdG8gdGhlIHdpZGdldCBvYmplY3QgdGhhdCByZXF1aXJlcyB0aGVcblx0XHRcdC8vIGNvbnZlcnNpb24gcmVwb3J0aW5nIGV2ZW50cywgd2hlcmUgdGhlIGZ1bmN0aW9uIGlzIGF0dGFjaGVkLlxuXHRcdFx0dGhpcy5yZXF1aXJlZENvbnZlcnNpb25FdmVudE5hbWVcblx0XHQpIHx8IHNlbGVjdCggQ09SRV9VU0VSICkuaXNLZXlNZXRyaWNBY3RpdmUoIHNsdWcgKVxuXHQpO1xufVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/components/KeyMetrics/shouldDisplayWidgetWithConversionEvent.js\n");

/***/ }),

/***/ "./js/feature-tours/index.js":
/*!***********************************!*\
  !*** ./js/feature-tours/index.js ***!
  \***********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Feature Tours.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// Ordered tours.\n/* harmony default export */ __webpack_exports__[\"default\"] = ([]);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9mZWF0dXJlLXRvdXJzL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvZmVhdHVyZS10b3Vycy9pbmRleC5qcz82NDkyIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRmVhdHVyZSBUb3Vycy5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8vIE9yZGVyZWQgdG91cnMuXG5leHBvcnQgZGVmYXVsdCBbXTtcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/feature-tours/index.js\n");

/***/ }),

/***/ "./js/features/index.js":
/*!******************************!*\
  !*** ./js/features/index.js ***!
  \******************************/
/*! exports provided: enabledFeatures, isFeatureEnabled */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"enabledFeatures\", function() { return enabledFeatures; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isFeatureEnabled\", function() { return isFeatureEnabled; });\nvar _global, _global$_googlesiteki;\n/**\n * Feature flags.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nvar enabledFeatures = new Set(((_global = global) === null || _global === void 0 ? void 0 : (_global$_googlesiteki = _global._googlesitekitBaseData) === null || _global$_googlesiteki === void 0 ? void 0 : _global$_googlesiteki.enabledFeatures) || []);\n\n/**\n * Returns true if a feature is enabled; false otherwise.\n *\n * @since 1.25.0\n * @since 1.33.0 Changed _enabledFeatures argument to be a `Set` instead of `Array`.\n *\n * @param {string} feature            The name of the feature to check.\n * @param {Set}    [_enabledFeatures] Optional. The set of enabled features. Uses `enabledFeatures` set by the server in a global JS variable, by default.\n * @return {boolean} `true` if a feature is enabled; `false` otherwise.\n */\nfunction isFeatureEnabled(feature) {\n  var _enabledFeatures = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : enabledFeatures;\n  if (!(_enabledFeatures instanceof Set)) {\n    return false;\n  }\n  return _enabledFeatures.has(feature);\n}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ \"../node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9mZWF0dXJlcy9pbmRleC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2ZlYXR1cmVzL2luZGV4LmpzPzgyM2MiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBGZWF0dXJlIGZsYWdzLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhl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YXR1cmUgdG8gY2hlY2suXG4gKiBAcGFyYW0ge1NldH0gICAgW19lbmFibGVkRmVhdHVyZXNdIE9wdGlvbmFsLiBUaGUgc2V0IG9mIGVuYWJsZWQgZmVhdHVyZXMuIFVzZXMgYGVuYWJsZWRGZWF0dXJlc2Agc2V0IGJ5IHRoZSBzZXJ2ZXIgaW4gYSBnbG9iYWwgSlMgdmFyaWFibGUsIGJ5IGRlZmF1bHQuXG4gKiBAcmV0dXJuIHtib29sZWFufSBgdHJ1ZWAgaWYgYSBmZWF0dXJlIGlzIGVuYWJsZWQ7IGBmYWxzZWAgb3RoZXJ3aXNlLlxuICovXG5leHBvcnQgZnVuY3Rpb24gaXNGZWF0dXJlRW5hYmxlZChcblx0ZmVhdHVyZSxcblx0X2VuYWJsZWRGZWF0dXJlcyA9IGVuYWJsZWRGZWF0dXJlc1xuKSB7XG5cdGlmICggISAoIF9lbmFibGVkRmVhdHVyZXMgaW5zdGFuY2VvZiBTZXQgKSApIHtcblx0XHRyZXR1cm4gZmFsc2U7XG5cdH1cblx0cmV0dXJuIF9lbmFibGVkRmVhdHVyZXMuaGFzKCBmZWF0dXJlICk7XG59XG4iXSwibWFwcGluZ3MiOiI7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/features/index.js\n");

/***/ }),

/***/ "./js/googlesitekit-datastore-user.js":
/*!********************************************!*\
  !*** ./js/googlesitekit-datastore-user.js ***!
  \********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _googlesitekit_datastore_user__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./googlesitekit/datastore/user */ \"./js/googlesitekit/datastore/user/index.js\");\n/**\n * Entrypoint for the `core/user` data store.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Internal dependencies\n */\n\n\nObject(_googlesitekit_datastore_user__WEBPACK_IMPORTED_MODULE_1__[\"registerStore\"])(googlesitekit_data__WEBPACK_IMPORTED_MODULE_0___default.a);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0LWRhdGFzdG9yZS11c2VyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvZ29vZ2xlc2l0ZWtpdC1kYXRhc3RvcmUtdXNlci5qcz82ZTFjIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRW50cnlwb2ludCBmb3IgdGhlIGBjb3JlL3VzZXJgIGRhdGEgc3RvcmUuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2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QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/googlesitekit-datastore-user.js\n");

/***/ }),

/***/ "./js/googlesitekit/api/cache.js":
/*!***************************************!*\
  !*** ./js/googlesitekit/api/cache.js ***!
  \***************************************/
/*! exports provided: STORAGE_KEY_PREFIX_ROOT, STORAGE_KEY_PREFIX, setSelectedStorageBackend, setStorageOrder, resetDefaultStorageOrder, isStorageAvailable, getStorage, getItem, setItem, deleteItem, getKeys, clearCache */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"STORAGE_KEY_PREFIX_ROOT\", function() { return STORAGE_KEY_PREFIX_ROOT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"STORAGE_KEY_PREFIX\", function() { return STORAGE_KEY_PREFIX; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setSelectedStorageBackend\", function() { return setSelectedStorageBackend; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setStorageOrder\", function() { return setStorageOrder; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resetDefaultStorageOrder\", function() { return resetDefaultStorageOrder; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isStorageAvailable\", function() { return isStorageAvailable; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getStorage\", function() { return getStorage; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getItem\", function() { return getItem; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setItem\", function() { return setItem; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"deleteItem\", function() { return deleteItem; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getKeys\", function() { return getKeys; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"clearCache\", function() { return clearCache; });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _js_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/js/util */ \"./js/util/index.js\");\n\n\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n/**\n * Caching functions and cache management for API requests.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Internal dependencies\n */\n\n\n/**\n * Prefix used for all Site Kit keys.\n *\n * Anything not using this prefix should not be touched by this library.\n *\n * @since 1.96.0\n * @private\n */\nvar STORAGE_KEY_PREFIX_ROOT = 'googlesitekit_';\n\n/**\n * Prefix used for all Site Kit keys for the current Site Kit version.\n *\n * Anything not using this key should not be touched by this library.\n *\n * @since 1.5.0\n * @since 1.92.0 Updated to include a user, session, and blog-specific hash.\n * @since 1.96.0 Updated to make use of the new STORAGE_KEY_PREFIX_ROOT constant.\n * @private\n */\nvar STORAGE_KEY_PREFIX = \"\".concat(STORAGE_KEY_PREFIX_ROOT).concat(\"1.161.0\", \"_\").concat(global._googlesitekitBaseData.storagePrefix, \"_\");\nvar defaultOrder = ['sessionStorage', 'localStorage'];\nvar storageBackend;\nvar storageOrder = [].concat(defaultOrder);\n\n/**\n * Overrides the storage backend.\n *\n * Largely used for tests. Should not be used directly.\n *\n * @since 1.5.0\n * @private\n *\n * @param {*} backend Backend to set for the cache.\n */\nfunction setSelectedStorageBackend(backend) {\n  storageBackend = backend;\n}\n\n/**\n * Overrides the priority of storage mechanisms.\n *\n * Largely used for tests. Implicitly resets the selected storage backend,\n * causing `_getStorage` to re-run its checks for the best available\n * storage backend.\n *\n * @since 1.5.0\n * @private\n *\n * @param {Array} order Ordered array of storage backends to use.\n */\nfunction setStorageOrder(order) {\n  storageOrder = _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(order);\n  setSelectedStorageBackend(undefined);\n}\n\n/**\n * Resets the storage mechanism order.\n *\n * Largely used for tests. Implicitly resets the selected storage backend,\n * causing `_getStorage` to re-run its checks for the best available\n * storage backend.\n *\n * @since 1.5.0\n * @private\n */\nfunction resetDefaultStorageOrder() {\n  storageOrder = [].concat(defaultOrder);\n  setSelectedStorageBackend(undefined);\n}\n\n/**\n * Detects whether browser storage is both supported and available.\n *\n * @since 1.5.0\n * @private\n *\n * @param {string} type Browser storage to test. Should be one of `localStorage` or `sessionStorage`.\n * @return {boolean} True if the given storage is available, false otherwise.\n */\n// eslint-disable-next-line require-await\nfunction isStorageAvailable(_x) {\n  return _isStorageAvailable.apply(this, arguments);\n}\n\n/**\n * Gets the storage object to use.\n *\n * @since 1.5.0\n * @private\n *\n * @return {Storage|null} A storage mechanism (`localStorage` or `sessionStorage`) if available; otherwise returns `null`.\n */\nfunction _isStorageAvailable() {\n  _isStorageAvailable = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(type) {\n    var storage, x;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            storage = global[type];\n            if (storage) {\n              _context.next = 3;\n              break;\n            }\n            return _context.abrupt(\"return\", false);\n          case 3:\n            _context.prev = 3;\n            x = '__storage_test__';\n            storage.setItem(x, x);\n            storage.removeItem(x);\n            return _context.abrupt(\"return\", true);\n          case 10:\n            _context.prev = 10;\n            _context.t0 = _context[\"catch\"](3);\n            return _context.abrupt(\"return\", _context.t0 instanceof DOMException && (\n            // everything except Firefox\n            22 === _context.t0.code ||\n            // Firefox\n            1014 === _context.t0.code ||\n            // test name field too, because code might not be present\n            // everything except Firefox\n            'QuotaExceededError' === _context.t0.name ||\n            // Firefox\n            'NS_ERROR_DOM_QUOTA_REACHED' === _context.t0.name) &&\n            // acknowledge QuotaExceededError only if there's something already stored\n            0 !== storage.length);\n          case 13:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, _callee, null, [[3, 10]]);\n  }));\n  return _isStorageAvailable.apply(this, arguments);\n}\nfunction getStorage() {\n  return _getStorage.apply(this, arguments);\n}\n\n/**\n * Gets cached data.\n *\n * Get cached data from the persistent storage cache.\n *\n * @since 1.5.0\n *\n * @param {string} key Name of cache key.\n * @return {Promise} A promise returned, containing an object with the cached value (if found) and whether or not there was a cache hit.\n */\nfunction _getStorage() {\n  _getStorage = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() {\n    var _iterator, _step, backend;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) {\n      while (1) {\n        switch (_context2.prev = _context2.next) {\n          case 0:\n            if (!(storageBackend !== undefined)) {\n              _context2.next = 2;\n              break;\n            }\n            return _context2.abrupt(\"return\", storageBackend);\n          case 2:\n            // Only run the logic to determine the storage object once.\n            _iterator = _createForOfIteratorHelper(storageOrder);\n            _context2.prev = 3;\n            _iterator.s();\n          case 5:\n            if ((_step = _iterator.n()).done) {\n              _context2.next = 15;\n              break;\n            }\n            backend = _step.value;\n            if (!storageBackend) {\n              _context2.next = 9;\n              break;\n            }\n            return _context2.abrupt(\"continue\", 13);\n          case 9:\n            _context2.next = 11;\n            return isStorageAvailable(backend);\n          case 11:\n            if (!_context2.sent) {\n              _context2.next = 13;\n              break;\n            }\n            storageBackend = global[backend];\n          case 13:\n            _context2.next = 5;\n            break;\n          case 15:\n            _context2.next = 20;\n            break;\n          case 17:\n            _context2.prev = 17;\n            _context2.t0 = _context2[\"catch\"](3);\n            _iterator.e(_context2.t0);\n          case 20:\n            _context2.prev = 20;\n            _iterator.f();\n            return _context2.finish(20);\n          case 23:\n            if (storageBackend === undefined) {\n              storageBackend = null;\n            }\n            return _context2.abrupt(\"return\", storageBackend);\n          case 25:\n          case \"end\":\n            return _context2.stop();\n        }\n      }\n    }, _callee2, null, [[3, 17, 20, 23]]);\n  }));\n  return _getStorage.apply(this, arguments);\n}\nfunction getItem(_x2) {\n  return _getItem.apply(this, arguments);\n}\n\n/**\n * Sets cached data using a key.\n *\n * Save data to the relevant local storage mechanism, if available.\n * By default, data is saved with a one hour (60 minute) TTL.\n *\n * @since 1.5.0\n *\n * @param {string}  key              Name of cache key.\n * @param {*}       value            Value to store in the cache.\n * @param {Object}  args             Optional object containing ttl, timestamp and isError keys.\n * @param {number}  [args.ttl]       Optional. Validity of the cached item in seconds.\n * @param {number}  [args.timestamp] Optional. Timestamp when the cached item was created.\n * @param {boolean} [args.isError]   Optional. Whether the cached item is an error.\n * @return {Promise} A promise: resolves to `true` if the value was saved; `false` if not (usually because no storage method was available).\n */\nfunction _getItem() {\n  _getItem = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3(key) {\n    var storage, cachedData, parsedData, timestamp, ttl, value, isError;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) {\n      while (1) {\n        switch (_context3.prev = _context3.next) {\n          case 0:\n            _context3.next = 2;\n            return getStorage();\n          case 2:\n            storage = _context3.sent;\n            if (!storage) {\n              _context3.next = 10;\n              break;\n            }\n            cachedData = storage.getItem(\"\".concat(STORAGE_KEY_PREFIX).concat(key));\n            if (!cachedData) {\n              _context3.next = 10;\n              break;\n            }\n            parsedData = JSON.parse(cachedData);\n            timestamp = parsedData.timestamp, ttl = parsedData.ttl, value = parsedData.value, isError = parsedData.isError; // Ensure a timestamp is found, otherwise this isn't a valid cache hit.\n            // (We don't check for a truthy `value`, because it could be legitimately\n            // false-y if `0`, `null`, etc.)\n            if (!(timestamp && (!ttl ||\n            // Ensure the cached data isn't too old.\n            // The cache dates shouldn't rely on reference\n            // dates for cache expiration. This is a case\n            // where we actually want to rely on\n            // the _actual_ date/time the data was set.\n            Math.round(Date.now() / 1000) - timestamp < ttl) // eslint-disable-line sitekit/no-direct-date\n            )) {\n              _context3.next = 10;\n              break;\n            }\n            return _context3.abrupt(\"return\", {\n              cacheHit: true,\n              value: value,\n              isError: isError\n            });\n          case 10:\n            return _context3.abrupt(\"return\", {\n              cacheHit: false,\n              value: undefined\n            });\n          case 11:\n          case \"end\":\n            return _context3.stop();\n        }\n      }\n    }, _callee3);\n  }));\n  return _getItem.apply(this, arguments);\n}\nfunction setItem(_x3, _x4) {\n  return _setItem.apply(this, arguments);\n}\n\n/**\n * Removes cached data by key.\n *\n * Remove one piece of cached data from the persistent storage cache, by key.\n *\n * @since 1.5.0\n *\n * @param {string} key Name of cache key.\n * @return {Promise} A promise: resolves to `true` if the value was deleted; `false` if not (usually because no storage method was available).\n */\nfunction _setItem() {\n  _setItem = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee4(key, value) {\n    var _ref,\n      _ref$ttl,\n      ttl,\n      _ref$timestamp,\n      timestamp,\n      _ref$isError,\n      isError,\n      storage,\n      _args4 = arguments;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee4$(_context4) {\n      while (1) {\n        switch (_context4.prev = _context4.next) {\n          case 0:\n            _ref = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : {}, _ref$ttl = _ref.ttl, ttl = _ref$ttl === void 0 ? _js_util__WEBPACK_IMPORTED_MODULE_3__[\"HOUR_IN_SECONDS\"] : _ref$ttl, _ref$timestamp = _ref.timestamp, timestamp = _ref$timestamp === void 0 ? Math.round(Date.now() / 1000) : _ref$timestamp, _ref$isError = _ref.isError, isError = _ref$isError === void 0 ? false : _ref$isError;\n            _context4.next = 3;\n            return getStorage();\n          case 3:\n            storage = _context4.sent;\n            if (!storage) {\n              _context4.next = 14;\n              break;\n            }\n            _context4.prev = 5;\n            storage.setItem(\"\".concat(STORAGE_KEY_PREFIX).concat(key), JSON.stringify({\n              timestamp: timestamp,\n              ttl: ttl,\n              value: value,\n              isError: isError\n            }));\n            return _context4.abrupt(\"return\", true);\n          case 10:\n            _context4.prev = 10;\n            _context4.t0 = _context4[\"catch\"](5);\n            global.console.warn('Encountered an unexpected storage error:', _context4.t0);\n            return _context4.abrupt(\"return\", false);\n          case 14:\n            return _context4.abrupt(\"return\", false);\n          case 15:\n          case \"end\":\n            return _context4.stop();\n        }\n      }\n    }, _callee4, null, [[5, 10]]);\n  }));\n  return _setItem.apply(this, arguments);\n}\nfunction deleteItem(_x5) {\n  return _deleteItem.apply(this, arguments);\n}\n\n/**\n * Gets all cache keys created by Site Kit.\n *\n * @since 1.5.0\n *\n * @return {Promise} A promise: resolves to an array of all keys.\n */\nfunction _deleteItem() {\n  _deleteItem = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee5(key) {\n    var storage, fullKey;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee5$(_context5) {\n      while (1) {\n        switch (_context5.prev = _context5.next) {\n          case 0:\n            _context5.next = 2;\n            return getStorage();\n          case 2:\n            storage = _context5.sent;\n            if (!storage) {\n              _context5.next = 14;\n              break;\n            }\n            _context5.prev = 4;\n            fullKey = key.startsWith(STORAGE_KEY_PREFIX_ROOT) ? key : \"\".concat(STORAGE_KEY_PREFIX).concat(key);\n            storage.removeItem(fullKey);\n            return _context5.abrupt(\"return\", true);\n          case 10:\n            _context5.prev = 10;\n            _context5.t0 = _context5[\"catch\"](4);\n            global.console.warn('Encountered an unexpected storage error:', _context5.t0);\n            return _context5.abrupt(\"return\", false);\n          case 14:\n            return _context5.abrupt(\"return\", false);\n          case 15:\n          case \"end\":\n            return _context5.stop();\n        }\n      }\n    }, _callee5, null, [[4, 10]]);\n  }));\n  return _deleteItem.apply(this, arguments);\n}\nfunction getKeys() {\n  return _getKeys.apply(this, arguments);\n}\n\n/**\n * Removes the entire cache created by Site Kit.\n *\n * @since 1.5.0\n *\n * @return {Promise} A promise: resolves to `true` if the cache was cleared; `false` if there was an error.\n */\nfunction _getKeys() {\n  _getKeys = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee6() {\n    var storage, keys, i, itemKey;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee6$(_context6) {\n      while (1) {\n        switch (_context6.prev = _context6.next) {\n          case 0:\n            _context6.next = 2;\n            return getStorage();\n          case 2:\n            storage = _context6.sent;\n            if (!storage) {\n              _context6.next = 14;\n              break;\n            }\n            _context6.prev = 4;\n            keys = [];\n            for (i = 0; i < storage.length; i++) {\n              itemKey = storage.key(i);\n              if (itemKey.indexOf(STORAGE_KEY_PREFIX_ROOT) === 0) {\n                keys.push(itemKey);\n              }\n            }\n            return _context6.abrupt(\"return\", keys);\n          case 10:\n            _context6.prev = 10;\n            _context6.t0 = _context6[\"catch\"](4);\n            global.console.warn('Encountered an unexpected storage error:', _context6.t0);\n            return _context6.abrupt(\"return\", []);\n          case 14:\n            return _context6.abrupt(\"return\", []);\n          case 15:\n          case \"end\":\n            return _context6.stop();\n        }\n      }\n    }, _callee6, null, [[4, 10]]);\n  }));\n  return _getKeys.apply(this, arguments);\n}\nfunction clearCache() {\n  return _clearCache.apply(this, arguments);\n}\nfunction _clearCache() {\n  _clearCache = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee7() {\n    var storage, keys, _iterator2, _step2, key;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee7$(_context7) {\n      while (1) {\n        switch (_context7.prev = _context7.next) {\n          case 0:\n            _context7.next = 2;\n            return getStorage();\n          case 2:\n            storage = _context7.sent;\n            if (!storage) {\n              _context7.next = 25;\n              break;\n            }\n            _context7.next = 6;\n            return getKeys();\n          case 6:\n            keys = _context7.sent;\n            _iterator2 = _createForOfIteratorHelper(keys);\n            _context7.prev = 8;\n            _iterator2.s();\n          case 10:\n            if ((_step2 = _iterator2.n()).done) {\n              _context7.next = 16;\n              break;\n            }\n            key = _step2.value;\n            _context7.next = 14;\n            return deleteItem(key);\n          case 14:\n            _context7.next = 10;\n            break;\n          case 16:\n            _context7.next = 21;\n            break;\n          case 18:\n            _context7.prev = 18;\n            _context7.t0 = _context7[\"catch\"](8);\n            _iterator2.e(_context7.t0);\n          case 21:\n            _context7.prev = 21;\n            _iterator2.f();\n            return _context7.finish(21);\n          case 24:\n            return _context7.abrupt(\"return\", true);\n          case 25:\n            return _context7.abrupt(\"return\", false);\n          case 26:\n          case \"end\":\n            return _context7.stop();\n        }\n      }\n    }, _callee7, null, [[8, 18, 21, 24]]);\n  }));\n  return _clearCache.apply(this, arguments);\n}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/global.js */ \"../node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/api/cache.js\n");

/***/ }),

/***/ "./js/googlesitekit/data/create-error-store.js":
/*!*****************************************************!*\
  !*** ./js/googlesitekit/data/create-error-store.js ***!
  \*****************************************************/
/*! exports provided: generateErrorKey, actions, createErrorStore */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"generateErrorKey\", function() { return generateErrorKey; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createErrorStore\", function() { return createErrorStore; });\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"../node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/data */ \"../node_modules/@wordpress/data/build-module/index.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! md5 */ \"../node_modules/md5/md5.js\");\n/* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _js_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/js/util */ \"./js/util/index.js\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__);\n\n/**\n * API function to create fetch store.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * External dependencies\n */\n\n\nvar RECEIVE_ERROR = 'RECEIVE_ERROR';\nvar CLEAR_ERROR = 'CLEAR_ERROR';\nvar CLEAR_ERRORS = 'CLEAR_ERRORS';\n\n/**\n * Internal dependencies\n */\n\n\nfunction generateErrorKey(baseName, args) {\n  if (args && Array.isArray(args)) {\n    var stringifiedArgs = args.map(function (item) {\n      return 'object' === _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(item) ? Object(_js_util__WEBPACK_IMPORTED_MODULE_4__[\"stringifyObject\"])(item) : item;\n    });\n    return \"\".concat(baseName, \"::\").concat(md5__WEBPACK_IMPORTED_MODULE_3___default()(JSON.stringify(stringifiedArgs)));\n  }\n  return baseName;\n}\nvar actions = {\n  receiveError: function receiveError(error, baseName) {\n    var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(error, 'error is required.');\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(baseName, 'baseName is required.');\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(args && Array.isArray(args), 'args must be an array.');\n    return {\n      type: RECEIVE_ERROR,\n      payload: {\n        error: error,\n        baseName: baseName,\n        args: args\n      }\n    };\n  },\n  clearError: function clearError(baseName) {\n    var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(baseName, 'baseName is required.');\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(args && Array.isArray(args), 'args must be an array.');\n    return {\n      type: CLEAR_ERROR,\n      payload: {\n        baseName: baseName,\n        args: args\n      }\n    };\n  },\n  clearErrors: function clearErrors(baseName) {\n    return {\n      type: CLEAR_ERRORS,\n      payload: {\n        baseName: baseName\n      }\n    };\n  }\n};\nfunction createErrorStore(storeName) {\n  invariant__WEBPACK_IMPORTED_MODULE_2___default()(storeName, 'storeName must be defined.');\n  var initialState = {\n    errors: {},\n    errorArgs: {}\n  };\n  var reducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createReducer\"])(function (state, _ref) {\n    var type = _ref.type,\n      payload = _ref.payload;\n    switch (type) {\n      case RECEIVE_ERROR:\n        {\n          var baseName = payload.baseName,\n            args = payload.args,\n            error = payload.error;\n          var key = generateErrorKey(baseName, args);\n          state.errors = state.errors || {};\n          state.errorArgs = state.errorArgs || {};\n          state.errors[key] = error;\n          state.errorArgs[key] = args;\n          break;\n        }\n      case CLEAR_ERROR:\n        {\n          var _baseName = payload.baseName,\n            _args = payload.args;\n          var _key = generateErrorKey(_baseName, _args);\n          state.errors = state.errors || {};\n          state.errorArgs = state.errorArgs || {};\n          delete state.errors[_key];\n          delete state.errorArgs[_key];\n          break;\n        }\n      case CLEAR_ERRORS:\n        {\n          var _baseName2 = payload.baseName;\n          if (_baseName2) {\n            state.errors = state.errors || {};\n            state.errorArgs = state.errorArgs || {};\n            for (var _key2 in state.errors) {\n              if (_key2 === _baseName2 || _key2.startsWith(\"\".concat(_baseName2, \"::\"))) {\n                delete state.errors[_key2];\n                delete state.errorArgs[_key2];\n              }\n            }\n          } else {\n            state.errors = {};\n            state.errorArgs = {};\n          }\n          break;\n        }\n    }\n  });\n  var controls = {};\n  var resolvers = {};\n  var selectors = {\n    /**\n     * Retrieves the error object from state.\n     *\n     * Error object has the format:\n     *\n     * ```\n     * {\n     *   code: <String>,\n     *   message: <String>,\n     *   data: <Object>\n     * }\n     * ```\n     *\n     * @since 1.15.0\n     *\n     * @param {Object}      state        Data store's state.\n     * @param {string}      selectorName Selector name.\n     * @param {Array.<any>} [args]       Arguments passed to selector (default `[]`).\n     * @return {(Object|undefined)} Error object if exists, otherwise undefined.\n     */\n    getErrorForSelector: function getErrorForSelector(state, selectorName) {\n      var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n      invariant__WEBPACK_IMPORTED_MODULE_2___default()(selectorName, 'selectorName is required.');\n      return selectors.getError(state, selectorName, args);\n    },\n    /**\n     * Retrieves the error object from state.\n     *\n     *```\n     * {\n     *   code: <String>,\n     *   message: <String>,\n     *   data: <Object>\n     * }\n     * ```\n     *\n     * @since 1.15.0\n     *\n     * @param {Object}      state      Data store's state.\n     * @param {string}      actionName Action name.\n     * @param {Array.<any>} [args]     Arguments passed to action (default `[]`).\n     * @return {(Object|undefined)} Error object if exists, otherwise undefined.\n     */\n    getErrorForAction: function getErrorForAction(state, actionName) {\n      var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n      invariant__WEBPACK_IMPORTED_MODULE_2___default()(actionName, 'actionName is required.');\n      return selectors.getError(state, actionName, args);\n    },\n    /**\n     * Retrieves the error object from state.\n     *\n     *```\n     * {\n     *   code: <String>,\n     *   message: <String>,\n     *   data: <Object>\n     * }\n     * ```\n     *\n     * @since 1.15.0\n     * @private\n     *\n     * @param {Object}      state      Data store's state.\n     * @param {string}      [baseName] Selector or action name.\n     * @param {Array.<any>} [args]     Arguments array.\n     * @return {(Object|undefined)} Error object if exists, otherwise undefined.\n     */\n    getError: function getError(state, baseName, args) {\n      var errors = state.errors;\n      invariant__WEBPACK_IMPORTED_MODULE_2___default()(baseName, 'baseName is required.');\n      return errors[generateErrorKey(baseName, args)];\n    },\n    /**\n     * Gets a list of all unique errors.\n     *\n     * @since 1.19.0\n     *\n     * @param {Object} state Data store's state.\n     * @return {Object[]} Unique set of errors.\n     */\n    getErrors: function getErrors(state) {\n      var errorsSet = new Set(Object.values(state.errors));\n      return Array.from(errorsSet);\n    },\n    /**\n     * Gets the meta-data for a given error object, or null if the error is not found.\n     *\n     * Returns meta-data in the format:\n     *\n     * ```\n     *\t{\n     *\t\tbaseName: <string>,\n     *\t\targs: <Array>\n     *\t}\n     * ```\n     *\n     * @since 1.84.0\n     *\n     * @param {Object} state Data store's state.\n     * @param {Object} error Error object.\n     * @return {Object|null} Meta-data for the given error object, or null if the error is not found.\n     */\n    getMetaDataForError: function getMetaDataForError(state, error) {\n      var key = Object.keys(state.errors).find(function (errorKey) {\n        return state.errors[errorKey] === error;\n      });\n      if (key) {\n        var baseName = key.substring(0, key.indexOf('::'));\n        return {\n          baseName: baseName,\n          args: state.errorArgs[key]\n        };\n      }\n      return null;\n    },\n    /**\n     * Gets the selector data for a given error object, or null if no selector data is available.\n     *\n     * Returns selector data in the format:\n     *\n     * ```\n     *\t{\n     *\t\tstoreName: <string>,\n     *\t\tname: <string>,\n     *\t\targs: <Array>\n     *\t}\n     * ```\n     *\n     * @since 1.87.0\n     *\n     * @param {Object} state Data store's state.\n     * @param {Object} error Error object.\n     * @return {Object|null} Selector data for the given error object, or null if no selector data is available.\n     */\n    getSelectorDataForError: Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__[\"createRegistrySelector\"])(function (select) {\n      return function (state, error) {\n        var metaData = select(storeName).getMetaDataForError(error);\n        if (metaData) {\n          var name = metaData.baseName,\n            args = metaData.args;\n          var isSelector = !!select(storeName)[name];\n          if (isSelector) {\n            return {\n              storeName: storeName,\n              name: name,\n              args: args\n            };\n          }\n        }\n        return null;\n      };\n    }),\n    /**\n     * Determines whether the datastore has errors or not.\n     *\n     * @since 1.15.0\n     *\n     * @param {Object} state Data store's state.\n     * @return {boolean} TRUE if the datastore has errors, otherwise FALSE.\n     */\n    hasErrors: function hasErrors(state) {\n      return selectors.getErrors(state).length > 0;\n    }\n  };\n  return {\n    initialState: initialState,\n    actions: actions,\n    controls: controls,\n    reducer: reducer,\n    resolvers: resolvers,\n    selectors: selectors\n  };\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/data/create-error-store.js\n");

/***/ }),

/***/ "./js/googlesitekit/data/create-fetch-store.js":
/*!*****************************************************!*\
  !*** ./js/googlesitekit/data/create-fetch-store.js ***!
  \*****************************************************/
/*! exports provided: createFetchStore */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createFetchStore\", function() { return createFetchStore; });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ \"../node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _create_error_store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./create-error-store */ \"./js/googlesitekit/data/create-error-store.js\");\n/* harmony import */ var _transform_case__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./transform-case */ \"./js/googlesitekit/data/transform-case.js\");\n/* harmony import */ var _js_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/js/util */ \"./js/util/index.js\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_7__);\n\n\n/**\n * API function to create fetch store.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\nfunction defaultReducerCallback(state) {\n  return state;\n}\nfunction defaultArgsToParams() {\n  return {};\n}\nfunction defaultValidateParams() {}\n\n// Get access to error store action creators.\n// If the parent store doesn't include the error store,\n// yielded error actions will be a no-op.\nvar clearError = _create_error_store__WEBPACK_IMPORTED_MODULE_4__[\"actions\"].clearError,\n  receiveError = _create_error_store__WEBPACK_IMPORTED_MODULE_4__[\"actions\"].receiveError;\n/**\n * Creates a store object implementing the necessary infrastructure for a\n * single fetch action.\n *\n * This function returns a partial store object with the following:\n * * action creators to fetch and to receive the data\n * * control to issue the API request\n * * reducer to set API request flag and receive the response\n * * selector to check whether the API request is in progress via a flag\n *\n * The names of the pieces are based on the baseName provided.\n * For example, if baseName is 'saveSettings':\n * * The fetch action creator is called 'fetchSaveSettings'.\n * * The receive action creator is called 'receiveSaveSettings'.\n * * The fetching selector is called 'isFetchingSaveSettings'.\n *\n * All parts of the returned store objects should be considered internal. A\n * public action or selector should be implemented to actually call the\n * fetch action included in the returned store object.\n *\n * For example, if the fetch store is intended for an API-based\n * action 'storeMySetting':\n * * The basename passed should be 'storeMySetting'.\n * * The action 'storeMySetting' should call 'fetchStoreMySetting'.\n *\n * Or, if the fetch store is intended for an API-based selector\n * 'getSomeData':\n * * The baseName passed should be 'getSomeData'.\n * * The resolver for 'getSomeData' should call 'fetchGetSomeData'.\n *\n * @since 1.10.0\n * @private\n *\n * @param {Object}   args                   Arguments for creating the fetch store.\n * @param {string}   args.baseName          The base name to use for all the created infrastructure.\n * @param {Function} args.controlCallback   Callback function to issue the API request. Will be used inside the\n *                                          control. The function receives a params object based on argsToParams,\n *                                          i.e. the respective values passed to the action.\n * @param {Function} [args.reducerCallback] Optional. Callback function to modify state based on the API response.\n *                                          Will be used inside the reducer. The function receives the store's state\n *                                          object as first parameter, the API response as second parameter, and the\n *                                          params object for the request (see above) as third parameter. If not\n *                                          provided, the default will return the unmodified state.\n * @param {Function} [args.argsToParams]    Optional. Function that reduces the given list of arguments\n *                                          into a object of key/value parameters, with the argument names used as keys.\n *                                          If not provided, the default function will return an empty object,\n *                                          essentially indicating that no arguments are supported/required.\n * @param {Function} [args.validateParams]  Optional. Function that validates the given parameters object created by `argsToParams`.\n *                                          Any invalid parameters should cause a respective error to be thrown.\n * @return {Object} Partial store object with properties 'actions', 'controls', 'reducer', 'resolvers', and 'selectors'.\n */\nfunction createFetchStore(_ref) {\n  var _actions;\n  var _marked = /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(fetchGenerator);\n  var baseName = _ref.baseName,\n    controlCallback = _ref.controlCallback,\n    _ref$reducerCallback = _ref.reducerCallback,\n    reducerCallback = _ref$reducerCallback === void 0 ? defaultReducerCallback : _ref$reducerCallback,\n    _ref$argsToParams = _ref.argsToParams,\n    argsToParams = _ref$argsToParams === void 0 ? defaultArgsToParams : _ref$argsToParams,\n    _ref$validateParams = _ref.validateParams,\n    validateParams = _ref$validateParams === void 0 ? defaultValidateParams : _ref$validateParams;\n  invariant__WEBPACK_IMPORTED_MODULE_2___default()(baseName, 'baseName is required.');\n  invariant__WEBPACK_IMPORTED_MODULE_2___default()('function' === typeof controlCallback, 'controlCallback is required and must be a function.');\n  invariant__WEBPACK_IMPORTED_MODULE_2___default()('function' === typeof reducerCallback, 'reducerCallback must be a function.');\n  invariant__WEBPACK_IMPORTED_MODULE_2___default()('function' === typeof argsToParams, 'argsToParams must be a function.');\n  invariant__WEBPACK_IMPORTED_MODULE_2___default()('function' === typeof validateParams, 'validateParams must be a function.');\n\n  // If validating the result of argsToParams without any arguments does not result in an error, we\n  // know params is okay to be empty.\n  var requiresParams;\n  try {\n    validateParams(argsToParams());\n    requiresParams = false;\n  } catch (error) {\n    requiresParams = true;\n  }\n  var pascalCaseBaseName = Object(_transform_case__WEBPACK_IMPORTED_MODULE_5__[\"camelCaseToPascalCase\"])(baseName);\n  var constantBaseName = Object(_transform_case__WEBPACK_IMPORTED_MODULE_5__[\"camelCaseToConstantCase\"])(baseName);\n  var FETCH = \"FETCH_\".concat(constantBaseName);\n  var START_FETCH = \"START_\".concat(FETCH);\n  var FINISH_FETCH = \"FINISH_\".concat(FETCH);\n  var CATCH_FETCH = \"CATCH_\".concat(FETCH);\n  var RECEIVE = \"RECEIVE_\".concat(constantBaseName);\n  var fetchCreator = \"fetch\".concat(pascalCaseBaseName);\n  var receiveCreator = \"receive\".concat(pascalCaseBaseName);\n  var isFetching = \"isFetching\".concat(pascalCaseBaseName);\n  var initialState = _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, isFetching, {});\n  function fetchGenerator(params, args) {\n    var response, error;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function fetchGenerator$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            _context.next = 2;\n            return {\n              payload: {\n                params: params\n              },\n              type: START_FETCH\n            };\n          case 2:\n            _context.next = 4;\n            return clearError(baseName, args);\n          case 4:\n            _context.prev = 4;\n            _context.next = 7;\n            return {\n              payload: {\n                params: params\n              },\n              type: FETCH\n            };\n          case 7:\n            response = _context.sent;\n            _context.next = 10;\n            return actions[receiveCreator](response, params);\n          case 10:\n            _context.next = 12;\n            return {\n              payload: {\n                params: params\n              },\n              type: FINISH_FETCH\n            };\n          case 12:\n            _context.next = 21;\n            break;\n          case 14:\n            _context.prev = 14;\n            _context.t0 = _context[\"catch\"](4);\n            error = _context.t0;\n            _context.next = 19;\n            return receiveError(error, baseName, args);\n          case 19:\n            _context.next = 21;\n            return {\n              payload: {\n                params: params\n              },\n              type: CATCH_FETCH\n            };\n          case 21:\n            return _context.abrupt(\"return\", {\n              response: response,\n              error: error\n            });\n          case 22:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, _marked, null, [[4, 14]]);\n  }\n  var actions = (_actions = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_actions, fetchCreator, function () {\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    var params = argsToParams.apply(void 0, args);\n    // In order for params validation to throw an error as expected,\n    // this function cannot be a generator.\n    validateParams(params);\n\n    // The normal fetch action generator is invoked as the return here\n    // to preserve asynchronous behavior without registering another action creator.\n    return fetchGenerator(params, args);\n  }), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_actions, receiveCreator, function (response, params) {\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(response !== undefined, 'response is required.');\n    if (requiresParams) {\n      invariant__WEBPACK_IMPORTED_MODULE_2___default()(Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"isPlainObject\"])(params), 'params is required.');\n      validateParams(params);\n    } else {\n      params = {};\n    }\n    return {\n      payload: {\n        response: response,\n        params: params\n      },\n      type: RECEIVE\n    };\n  }), _actions);\n  var controls = _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, FETCH, function (_ref2) {\n    var payload = _ref2.payload;\n    return controlCallback(payload.params);\n  });\n  var reducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_7__[\"createReducer\"])(function (state, _ref3) {\n    var type = _ref3.type,\n      payload = _ref3.payload;\n    switch (type) {\n      case START_FETCH:\n        {\n          var params = payload.params;\n          state[isFetching] = state[isFetching] || {};\n          state[isFetching][Object(_js_util__WEBPACK_IMPORTED_MODULE_6__[\"stringifyObject\"])(params)] = true;\n          return state;\n        }\n      case RECEIVE:\n        {\n          var response = payload.response,\n            _params = payload.params;\n          return reducerCallback(state, response, _params);\n        }\n      case FINISH_FETCH:\n        {\n          var _params2 = payload.params;\n          state[isFetching] = state[isFetching] || {};\n          state[isFetching][Object(_js_util__WEBPACK_IMPORTED_MODULE_6__[\"stringifyObject\"])(_params2)] = false;\n          return state;\n        }\n      case CATCH_FETCH:\n        {\n          var _params3 = payload.params;\n          state[isFetching] = state[isFetching] || {};\n          state[isFetching][Object(_js_util__WEBPACK_IMPORTED_MODULE_6__[\"stringifyObject\"])(_params3)] = false;\n          return state;\n        }\n      default:\n        return state;\n    }\n  });\n  var selectors = _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, isFetching, function (state) {\n    if (state[isFetching] === undefined) {\n      return false;\n    }\n    var params;\n    try {\n      for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        args[_key2 - 1] = arguments[_key2];\n      }\n      params = argsToParams.apply(void 0, args);\n      validateParams(params);\n    } catch (err) {\n      // If parameters are invalid, fail silently here. It likely is\n      // because some dependency selector is still resolving.\n      return false;\n    }\n    return !!state[isFetching][Object(_js_util__WEBPACK_IMPORTED_MODULE_6__[\"stringifyObject\"])(params)];\n  });\n  return {\n    initialState: initialState,\n    actions: actions,\n    controls: controls,\n    reducer: reducer,\n    resolvers: {},\n    selectors: selectors\n  };\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/data/create-fetch-store.js\n");

/***/ }),

/***/ "./js/googlesitekit/data/create-notifications-store.js":
/*!*************************************************************!*\
  !*** ./js/googlesitekit/data/create-notifications-store.js ***!
  \*************************************************************/
/*! exports provided: createNotificationsStore */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createNotificationsStore\", function() { return createNotificationsStore; });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! googlesitekit-api */ \"googlesitekit-api\");\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_api__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _create_fetch_store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n/**\n * Provides API functions to create a datastore for notifications.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n/**\n * Creates a store object that includes actions and selectors for managing notifications.\n *\n * The three required parameters hook up the store to the respective REST API endpoint.\n *\n * @since 1.6.0\n * @private\n *\n * @param {string}  type              The data to access. One of 'core' or 'modules'.\n * @param {string}  identifier        The data identifier, eg. a module slug like search-console.\n * @param {string}  datapoint         The endpoint to request data from, e.g. 'notifications'.\n * @param {Object}  options           Optional. Options to consider for the store.\n * @param {boolean} options.server    Enable server notifications. `true` by default.\n * @param {number}  options.storeName Store name to use. Default is '{type}/{identifier}'.\n * @return {Object} The notifications store object, with additional `STORE_NAME` and\n *                  `initialState` properties.\n */\nfunction createNotificationsStore(type, identifier, datapoint) {\n  var _ref = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},\n    _ref$server = _ref.server,\n    server = _ref$server === void 0 ? true : _ref$server,\n    _ref$storeName = _ref.storeName,\n    storeName = _ref$storeName === void 0 ? undefined : _ref$storeName;\n  invariant__WEBPACK_IMPORTED_MODULE_2___default()(type, 'type is required.');\n  invariant__WEBPACK_IMPORTED_MODULE_2___default()(identifier, 'identifier is required.');\n  invariant__WEBPACK_IMPORTED_MODULE_2___default()(datapoint, 'datapoint is required.');\n  var STORE_NAME = storeName || \"\".concat(type, \"/\").concat(identifier);\n  var initialState = {\n    serverNotifications: server ? undefined : {}\n  };\n  var fetchGetNotificationsStore = Object(_create_fetch_store__WEBPACK_IMPORTED_MODULE_5__[\"createFetchStore\"])({\n    baseName: 'getNotifications',\n    controlCallback: function controlCallback() {\n      return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_3__[\"get\"])(type, identifier, datapoint);\n    },\n    reducerCallback: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"createReducer\"])(function (state, notifications) {\n      state.serverNotifications = notifications.reduce(function (acc, notification) {\n        return _objectSpread(_objectSpread({}, acc), {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, notification.id, notification));\n      }, {});\n    })\n  });\n  var actions = {};\n  var controls = {};\n\n  // eslint-disable-next-line no-shadow\n  function reducer() {\n    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;\n    var _ref2 = arguments.length > 1 ? arguments[1] : undefined,\n      type = _ref2.type;\n    switch (type) {\n      default:\n        {\n          return state;\n        }\n    }\n  }\n  var resolvers = {\n    getNotifications: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function getNotifications() {\n      var registry, notifications;\n      return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function getNotifications$(_context) {\n        while (1) {\n          switch (_context.prev = _context.next) {\n            case 0:\n              _context.next = 2;\n              return googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"commonActions\"].getRegistry();\n            case 2:\n              registry = _context.sent;\n              notifications = registry.select(STORE_NAME).getNotifications();\n              if (notifications) {\n                _context.next = 7;\n                break;\n              }\n              _context.next = 7;\n              return fetchGetNotificationsStore.actions.fetchGetNotifications();\n            case 7:\n            case \"end\":\n              return _context.stop();\n          }\n        }\n      }, getNotifications);\n    })\n  };\n\n  // If server notifications are disabled, we should remove the getNotifications\n  // resolver. If we set it as `undefined` we'll encounter issues with an `undefined`\n  // resolver, because @wordpress/data will still try to register the resolver because\n  // it sees a key. And this is nicer than a no-op resolver.\n  if (!server) {\n    delete resolvers.getNotifications;\n  }\n  var selectors = {\n    /**\n     * Gets the current notifications.\n     *\n     * Returns `undefined` if notifications are not available/loaded.\n     *\n     * @since 1.6.0\n     *\n     * @param {Object} state Data store's state.\n     * @return {(Array|undefined)} Current list of notifications.\n     */\n    getNotifications: function getNotifications(state) {\n      var serverNotifications = state.serverNotifications; // If there are no client notifications and the server notifications\n      // haven't loaded yet, return `undefined` (the value of\n      // `serverNotifications` here) to signify to anything using this\n      // selector that notifications have not loaded yet.\n      if ('undefined' === typeof serverNotifications) {\n        return serverNotifications;\n      }\n\n      // If there are any notifications from either the client or server,\n      // we should return them, even if the server notifications haven't\n      // finished loading yet.\n      return Object.values(_objectSpread({}, serverNotifications || {}));\n    }\n  };\n  var store = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"combineStores\"])(fetchGetNotificationsStore, {\n    initialState: initialState,\n    actions: actions,\n    controls: controls,\n    reducer: reducer,\n    resolvers: resolvers,\n    selectors: selectors\n  });\n  return _objectSpread(_objectSpread({}, store), {}, {\n    STORE_NAME: STORE_NAME\n  });\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/data/create-notifications-store.js\n");

/***/ }),

/***/ "./js/googlesitekit/data/transform-case.js":
/*!*************************************************!*\
  !*** ./js/googlesitekit/data/transform-case.js ***!
  \*************************************************/
/*! exports provided: camelCaseToPascalCase, camelCaseToConstantCase, hyphenCaseToPascalCase */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"camelCaseToPascalCase\", function() { return camelCaseToPascalCase; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"camelCaseToConstantCase\", function() { return camelCaseToConstantCase; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hyphenCaseToPascalCase\", function() { return hyphenCaseToPascalCase; });\n/**\n * Data store utilities for transforming names to a certain case.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Transforms a camelCase name into its PascalCase name.\n *\n * @since 1.10.0\n * @private\n *\n * @param {string} name \"camelCase\" name to transform.\n * @return {string} PascalCase name.\n */\nfunction camelCaseToPascalCase(name) {\n  return name.charAt(0).toUpperCase() + name.slice(1);\n}\n\n/**\n * Transforms a camelCase name into its CONSTANT_CASE name.\n *\n * @since 1.10.0\n * @private\n *\n * @param {string} name \"camelCase\" name to transform.\n * @return {string} CONSTANT_CASE name.\n */\nfunction camelCaseToConstantCase(name) {\n  return name.replace(/([a-z0-9]{1})([A-Z]{1})/g, '$1_$2').toUpperCase();\n}\n\n/**\n * Transforms a hyphen-case name into its PascalCase name.\n *\n * @since 1.30.0\n * @private\n *\n * @param {string} name \"hyphen-case\" name to transform.\n * @return {string} PascalCase name.\n */\nfunction hyphenCaseToPascalCase(name) {\n  return name.split('-').map(function (part) {\n    return part.charAt(0).toUpperCase() + part.slice(1);\n  }).join('');\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L2RhdGEvdHJhbnNmb3JtLWNhc2UuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9nb29nbGVzaXRla2l0L2RhdGEvdHJhbnNmb3JtLWNhc2UuanM/ZTZkZSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIERhdGEgc3RvcmUgdXRpbGl0aWVzIGZvciB0cmFuc2Zvcm1pbmcgbmFtZXMgdG8gYSBjZXJ0YWluIGNhc2UuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGl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E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFBQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/googlesitekit/data/transform-case.js\n");

/***/ }),

/***/ "./js/googlesitekit/data/utils.js":
/*!****************************************!*\
  !*** ./js/googlesitekit/data/utils.js ***!
  \****************************************/
/*! exports provided: collect, collectActions, collectControls, collectReducers, collectResolvers, collectSelectors, collectState, collectName, combineStores, commonActions, commonControls, commonStore, createStrictSelect, createValidationSelector, createValidatedAction */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"collect\", function() { return collect; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"collectActions\", function() { return collectActions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"collectControls\", function() { return collectControls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"collectReducers\", function() { return collectReducers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"collectResolvers\", function() { return collectResolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"collectSelectors\", function() { return collectSelectors; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"collectState\", function() { return collectState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"collectName\", function() { return collectName; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"combineStores\", function() { return combineStores; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"commonActions\", function() { return commonActions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"commonControls\", function() { return commonControls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"commonStore\", function() { return commonStore; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createStrictSelect\", function() { return createStrictSelect; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createValidationSelector\", function() { return createValidationSelector; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createValidatedAction\", function() { return createValidatedAction; });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! memize */ \"../node_modules/memize/index.js\");\n/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(memize__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash */ \"../node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/data */ \"../node_modules/@wordpress/data/build-module/index.js\");\n\n\n\nvar _commonControls;\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n/**\n * Data store utilities.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n\n\n/**\n * WordPress dependencies\n */\n\nvar GET_REGISTRY = 'GET_REGISTRY';\nvar AWAIT = 'AWAIT';\n\n/**\n * Collects and combines multiple objects of similar shape.\n *\n * Used to combine objects like actions, selectors, etc. for a data\n * store while ensuring no keys/action names/selector names are duplicated.\n *\n * Effectively this is an object spread, but throws an error if keys are\n * duplicated.\n *\n * @since 1.5.0\n * @private\n *\n * @param {...Object} items A list of arguments, each one should be an object to combine into one.\n * @return {Object} The combined object.\n */\nfunction collect() {\n  for (var _len = arguments.length, items = new Array(_len), _key = 0; _key < _len; _key++) {\n    items[_key] = arguments[_key];\n  }\n  var collectedObject = items.reduce(function (acc, item) {\n    return _objectSpread(_objectSpread({}, acc), item);\n  }, {});\n  var functionNames = items.reduce(function (acc, itemSet) {\n    return [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(acc), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(Object.keys(itemSet)));\n  }, []);\n  var duplicates = findDuplicates(functionNames);\n  invariant__WEBPACK_IMPORTED_MODULE_3___default()(duplicates.length === 0, \"collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: \".concat(duplicates.join(', '), \". Check your data stores for duplicates.\"));\n  return collectedObject;\n}\n\n/**\n * Collects all actions.\n *\n * @since 1.5.0\n *\n * @param {...Object} args A list of objects, each containing their own actions.\n * @return {Object} The combined object.\n */\nvar collectActions = collect;\n\n/**\n * Collects all controls.\n *\n * @since 1.5.0\n *\n * @param {...Object} args A list of objects, each containing their own controls.\n * @return {Object} The combined object.\n */\nvar collectControls = collect;\n\n/**\n * Collects all reducers and (optionally) provides initial state.\n *\n * If the first argument passed is not a function, it will be used as the\n * combined reducer's `initialState`.\n *\n * @since 1.5.0\n *\n * @param {...(Object|Function)} args A list of reducers, each containing their own controls. If the first argument is not a function, it will be used as the combined reducer's `initialState`.\n * @return {Function} A Redux-style reducer.\n */\nfunction collectReducers() {\n  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n    args[_key2] = arguments[_key2];\n  }\n  var reducers = [].concat(args);\n  var initialState;\n  if (typeof reducers[0] !== 'function') {\n    initialState = reducers.shift();\n  }\n  return function () {\n    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;\n    var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    return reducers.reduce(function (newState, reducer) {\n      return reducer(newState, action);\n    }, state);\n  };\n}\n\n/**\n * Collects all resolvers.\n *\n * @since 1.5.0\n *\n * @param {...Object} args A list of objects, each containing their own resolvers.\n * @return {Object} The combined object.\n */\nvar collectResolvers = collect;\n\n/**\n * Collects all selectors.\n *\n * @since 1.5.0\n *\n * @param {...Object} args A list of objects, each containing their own selectors.\n * @return {Object} The combined object.\n */\nvar collectSelectors = collect;\n\n/**\n * Collects all state values.\n *\n * @since 1.5.0\n *\n * @param {...Object} args A list of objects, each containing their own state values.\n * @return {Object} The combined object.\n */\nvar collectState = collect;\n\n/**\n * Collects all store names.\n *\n * This function's main purpose is to ensure generated store names for a single store match.\n *\n * @since 1.6.0\n *\n * @param {...string} args A list of store names, all of which must be equal.\n * @return {string} The single store name.\n */\nfunction collectName() {\n  for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n    args[_key3] = arguments[_key3];\n  }\n  var names = [].concat(args);\n  var duplicates = findDuplicates(names);\n  invariant__WEBPACK_IMPORTED_MODULE_3___default()(duplicates.length === names.length - 1, 'collectName() must not receive different names.');\n  return names.shift();\n}\n\n/**\n * Passes through state unmodified; eg. an empty reducer.\n *\n * @since 1.8.0\n * @private\n *\n * @param {Object} state A store's state.\n * @return {Object} The same state data as passed in `state`.\n */\nfunction passthroughReducer(state) {\n  return state;\n}\n\n/**\n * Combines multiple stores.\n *\n * @since 1.8.0\n *\n * @param {...Object} stores A list of objects, each a store containing one or more of the following keys: initialState, actions, controls, reducer, resolvers, selectors.\n * @return {Object} The combined store.\n */\nfunction combineStores() {\n  for (var _len4 = arguments.length, stores = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n    stores[_key4] = arguments[_key4];\n  }\n  var combinedInitialState = collectState.apply(void 0, _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(stores.map(function (store) {\n    return store.initialState || {};\n  })));\n  return {\n    initialState: combinedInitialState,\n    controls: collectControls.apply(void 0, _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(stores.map(function (store) {\n      return store.controls || {};\n    }))),\n    actions: collectActions.apply(void 0, _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(stores.map(function (store) {\n      return store.actions || {};\n    }))),\n    reducer: collectReducers.apply(void 0, [combinedInitialState].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(stores.map(function (store) {\n      return store.reducer || passthroughReducer;\n    })))),\n    resolvers: collectResolvers.apply(void 0, _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(stores.map(function (store) {\n      return store.resolvers || {};\n    }))),\n    selectors: collectSelectors.apply(void 0, _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(stores.map(function (store) {\n      return store.selectors || {};\n    })))\n  };\n}\n\n/**\n * An object of common actions most stores will use.\n *\n * @since 1.7.0\n *\n * @return {Object} Key/value list of common actions most stores will want.\n */\nvar commonActions = {\n  /**\n   * Dispatches an action and calls a control to get the current data registry.\n   *\n   * Useful for controls and resolvers that wish to dispatch actions/use selectors\n   * on the current data registry.\n   *\n   * @since 1.7.0\n   *\n   * @return {Object} FSA-compatible action.\n   */\n  getRegistry: function getRegistry() {\n    return {\n      payload: {},\n      type: GET_REGISTRY\n    };\n  },\n  /**\n   * Dispatches an action and calls a control to return the promise resolution.\n   *\n   * Useful for controls and resolvers that wish to call an asynchronous function or other promise.\n   *\n   * @since 1.22.0\n   *\n   * @param {Promise} value A promise to resolve.\n   * @return {Object} Object with resolved promise.\n   */\n  await: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _await(value) {\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _await$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            return _context.abrupt(\"return\", {\n              payload: {\n                value: value\n              },\n              type: AWAIT\n            });\n          case 1:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, _await);\n  })\n};\n\n/**\n * An object of common controls most stores will use.\n *\n * @since 1.7.0\n *\n * @return {Object} Key/value list of common controls most stores will want.\n */\nvar commonControls = (_commonControls = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_commonControls, GET_REGISTRY, Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistryControl\"])(function (registry) {\n  return function () {\n    return registry;\n  };\n})), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_commonControls, AWAIT, function (_ref) {\n  var payload = _ref.payload;\n  return payload.value;\n}), _commonControls);\n\n/**\n * Finds all duplicate items in an array and return them.\n *\n * @since 1.5.0\n * @private\n *\n * @param {Array} array Any array.\n * @return {Array} All values in the input array that were duplicated.\n */\nfunction findDuplicates(array) {\n  var duplicates = [];\n  var counts = {};\n  for (var i = 0; i < array.length; i++) {\n    var item = array[i];\n    counts[item] = counts[item] >= 1 ? counts[item] + 1 : 1;\n    if (counts[item] > 1) {\n      duplicates.push(item);\n    }\n  }\n  return duplicates;\n}\n\n/**\n * A store containing the common actions, controls and reducer that all stores will use.\n *\n * @since 1.8.0\n *\n * @return {Object} Object with common actions, controls and reducer.\n */\nvar commonStore = {\n  actions: commonActions,\n  controls: commonControls,\n  reducer: passthroughReducer\n};\n\n/**\n * Creates a strict version of registry.select for ensuring that a selector is resolved at the time of calling.\n *\n * Not intended to be used directly. This is useful in the context of validation functions\n * to save checking for undefined on every result.\n *\n * Given the registry.select function instance, a new function is returned\n * with the same API as `select()` but will throw an error if the result\n * of the selector function is `undefined`.\n *\n * Ideally this would use something like `hasFinishedResolution` instead,\n * but there is no way to traverse the selectors used internally to identify\n * dependent selectors that have resolvers as many selectors are composed of\n * higher-level selectors internally which is where a resolver is normally implemented.\n *\n * @since 1.18.0\n * @private\n *\n * @param {Function} select The registry.select function.\n * @return {Function} The strict version of registry.select.\n */\nfunction createStrictSelect(select) {\n  return function (storeName) {\n    return getStrictSelectors(select(storeName));\n  };\n}\n\n// Based on {@link https://github.com/WordPress/gutenberg/blob/b1c8026087dfb026eff0a023a5f7febe28c876de/packages/data/src/registry.js#L91}\nvar getStrictSelectors = memize__WEBPACK_IMPORTED_MODULE_4___default()(function (selectors) {\n  return Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"mapValues\"])(selectors, function (selector, selectorName) {\n    return function () {\n      var returnValue = selector.apply(void 0, arguments);\n      invariant__WEBPACK_IMPORTED_MODULE_3___default()(returnValue !== undefined, \"\".concat(selectorName, \"(...) is not resolved\"));\n      return returnValue;\n    };\n  });\n});\n\n/**\n * Creates two registry selectors that call the incoming function to validate the current state.\n *\n * @since 1.19.0\n *\n * @param {Function} validate         Validation function callback.\n * @param {Object}   [options]        Options to modify the behavior of the generated selectors.\n * @param {boolean}  [options.negate] Whether to negate the boolean result or not. Default: false.\n * @return {Object} Safe and dangerous selectors.\n */\nfunction createValidationSelector(validate) {\n  var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n    _ref2$negate = _ref2.negate,\n    negate = _ref2$negate === void 0 ? false : _ref2$negate;\n  var safeSelector = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function (state) {\n      var pass = negate ? false : true;\n      var fail = negate ? true : false;\n      try {\n        for (var _len5 = arguments.length, args = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {\n          args[_key5 - 1] = arguments[_key5];\n        }\n        validate.apply(void 0, [select, state].concat(args));\n        return pass;\n      } catch (_unused) {\n        return fail;\n      }\n    };\n  });\n  var dangerousSelector = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function (state) {\n      for (var _len6 = arguments.length, args = new Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) {\n        args[_key6 - 1] = arguments[_key6];\n      }\n      validate.apply(void 0, [select, state].concat(args));\n    };\n  });\n  return {\n    safeSelector: safeSelector,\n    dangerousSelector: dangerousSelector\n  };\n}\n\n/**\n * Creates a validated action creator.\n *\n * @since 1.32.0\n *\n * @param {Function} validate      A function for validating action arguments.\n * @param {Function} actionCreator A function for returning or yielding redux-style actions.\n * @return {Function} An enhanced action creator.\n */\nfunction createValidatedAction(validate, actionCreator) {\n  invariant__WEBPACK_IMPORTED_MODULE_3___default()(typeof validate === 'function', 'a validator function is required.');\n  invariant__WEBPACK_IMPORTED_MODULE_3___default()(typeof actionCreator === 'function', 'an action creator function is required.');\n  invariant__WEBPACK_IMPORTED_MODULE_3___default()(validate[Symbol.toStringTag] !== 'Generator' && validate[Symbol.toStringTag] !== 'GeneratorFunction', 'an action’s validator function must not be a generator.');\n  return function () {\n    validate.apply(void 0, arguments);\n    return actionCreator.apply(void 0, arguments);\n  };\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/data/utils.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/site/constants.js":
/*!******************************************************!*\
  !*** ./js/googlesitekit/datastore/site/constants.js ***!
  \******************************************************/
/*! exports provided: CORE_SITE, AMP_MODE_PRIMARY, AMP_MODE_SECONDARY */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CORE_SITE\", function() { return CORE_SITE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AMP_MODE_PRIMARY\", function() { return AMP_MODE_PRIMARY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AMP_MODE_SECONDARY\", function() { return AMP_MODE_SECONDARY; });\n/**\n * `core/site` data store: constants.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nvar CORE_SITE = 'core/site';\nvar AMP_MODE_PRIMARY = 'primary';\nvar AMP_MODE_SECONDARY = 'secondary';//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L2RhdGFzdG9yZS9zaXRlL2NvbnN0YW50cy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2dvb2dsZXNpdGVraXQvZGF0YXN0b3JlL3NpdGUvY29uc3RhbnRzLmpzP2QxMjEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBgY29yZS9zaXRlYCBkYXRhIHN0b3JlOiBjb25zdGFudHMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0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js/googlesitekit/datastore/user/adblocker.js":
/*!******************************************************!*\
  !*** ./js/googlesitekit/datastore/user/adblocker.js ***!
  \******************************************************/
/*! exports provided: initialState, actions, controls, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var just_detect_adblock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! just-detect-adblock */ \"../node_modules/just-detect-adblock/dist/bundle.umd.js\");\n/* harmony import */ var just_detect_adblock__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(just_detect_adblock__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n\n\n\n/**\n * `core/user` data store: adblocker.\n *\n * Site Kit by Google, Copyright 2024 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n// Actions\nvar CHECK_ADBLOCKER = 'CHECK_ADBLOCKER';\nvar RECEIVE_IS_ADBLOCKER_ACTIVE = 'RECEIVE_IS_ADBLOCKER_ACTIVE';\nvar initialState = {\n  isAdBlockerActive: undefined\n};\nvar actions = {\n  checkAdBlocker: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function checkAdBlocker() {\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function checkAdBlocker$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            _context.next = 2;\n            return {\n              payload: {},\n              type: CHECK_ADBLOCKER\n            };\n          case 2:\n            return _context.abrupt(\"return\", _context.sent);\n          case 3:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, checkAdBlocker);\n  }),\n  receiveIsAdBlockerActive: function receiveIsAdBlockerActive(isAdBlockerActive) {\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()('boolean' === typeof isAdBlockerActive, 'isAdBlockerActive must be boolean.');\n    return {\n      payload: {\n        isAdBlockerActive: isAdBlockerActive\n      },\n      type: RECEIVE_IS_ADBLOCKER_ACTIVE\n    };\n  }\n};\nvar controls = _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, CHECK_ADBLOCKER, _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee() {\n  var params;\n  return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context2) {\n    while (1) {\n      switch (_context2.prev = _context2.next) {\n        case 0:\n          _context2.next = 2;\n          return Object(just_detect_adblock__WEBPACK_IMPORTED_MODULE_4__[\"detectAnyAdblocker\"])();\n        case 2:\n          if (!_context2.sent) {\n            _context2.next = 4;\n            break;\n          }\n          return _context2.abrupt(\"return\", true);\n        case 4:\n          _context2.prev = 4;\n          params = [\n          // The name of the parameter here doesn't really matter\n          // since adblockers look at the URL as a whole.\n          // Note: this value must not be URL-encoded.\n          'google-site-kit=/adsense/pagead2.googlesyndication.com/pagead/js/adsbygoogle.js', // Add a timestamp for cache-busting.\n          //\n          // This value is used for cache-busting, so we don't want\n          // to rely on the reference date. We should always use\n          // the current time.\n          \"timestamp=\".concat(Date.now()) // eslint-disable-line sitekit/no-direct-date\n          ];\n          _context2.next = 8;\n          return fetch(\"/favicon.ico?\".concat(params.join('&')), {\n            credentials: 'omit',\n            // Don't follow any redirects; we only care about this request being blocked or not.\n            redirect: 'manual'\n          });\n        case 8:\n          _context2.next = 13;\n          break;\n        case 10:\n          _context2.prev = 10;\n          _context2.t0 = _context2[\"catch\"](4);\n          return _context2.abrupt(\"return\", true);\n        case 13:\n          return _context2.abrupt(\"return\", false);\n        case 14:\n        case \"end\":\n          return _context2.stop();\n      }\n    }\n  }, _callee, null, [[4, 10]]);\n})));\nvar reducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createReducer\"])(function (state, _ref2) {\n  var payload = _ref2.payload,\n    type = _ref2.type;\n  switch (type) {\n    case RECEIVE_IS_ADBLOCKER_ACTIVE:\n      state.isAdBlockerActive = payload.isAdBlockerActive;\n      break;\n    default:\n      break;\n  }\n});\nvar resolvers = {\n  isAdBlockerActive: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function isAdBlockerActive() {\n    var registry, isAdBlockerActive, detected;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function isAdBlockerActive$(_context3) {\n      while (1) {\n        switch (_context3.prev = _context3.next) {\n          case 0:\n            _context3.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"commonActions\"].getRegistry();\n          case 2:\n            registry = _context3.sent;\n            isAdBlockerActive = registry.select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).isAdBlockerActive(); // If the ad blocker status is already set, don't make any requests\n            // to check the ad blocker status.\n            if (!(undefined !== isAdBlockerActive)) {\n              _context3.next = 6;\n              break;\n            }\n            return _context3.abrupt(\"return\");\n          case 6:\n            _context3.next = 8;\n            return actions.checkAdBlocker();\n          case 8:\n            detected = _context3.sent;\n            _context3.next = 11;\n            return actions.receiveIsAdBlockerActive(detected);\n          case 11:\n          case \"end\":\n            return _context3.stop();\n        }\n      }\n    }, isAdBlockerActive);\n  })\n};\nvar selectors = {\n  /**\n   * Returns whether an ad blocker is active on the client.\n   *\n   * @since 1.9.0\n   * @since 1.125.0 Selector moved from the `MODULES_ADSENSE` store to the `CORE_USER` store.\n   *\n   * @param {Object} state Data store's state.\n   * @return {boolean|undefined} True or false depending on whether an ad blocker is active; `undefined` if not loaded.\n   */\n  isAdBlockerActive: function isAdBlockerActive(state) {\n    var isAdBlockerActive = state.isAdBlockerActive;\n    return isAdBlockerActive;\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  initialState: initialState,\n  actions: actions,\n  controls: controls,\n  reducer: reducer,\n  resolvers: resolvers,\n  selectors: selectors\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/adblocker.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/audience-settings.js":
/*!**************************************************************!*\
  !*** ./js/googlesitekit/datastore/user/audience-settings.js ***!
  \**************************************************************/
/*! exports provided: initialState, actions, controls, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"../node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! googlesitekit-api */ \"googlesitekit-api\");\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/js/modules/analytics-4/datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/js/googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n/* harmony import */ var _js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/js/googlesitekit/data/utils */ \"./js/googlesitekit/data/utils.js\");\n/* harmony import */ var _js_googlesitekit_data_create_error_store__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/js/googlesitekit/data/create-error-store */ \"./js/googlesitekit/data/create-error-store.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n/**\n * `core/user` data store: audience settings.\n *\n * Site Kit by Google, Copyright 2024 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* eslint-disable sitekit/jsdoc-no-unnamed-boolean-params */\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\nvar receiveError = _js_googlesitekit_data_create_error_store__WEBPACK_IMPORTED_MODULE_10__[\"actions\"].receiveError,\n  clearError = _js_googlesitekit_data_create_error_store__WEBPACK_IMPORTED_MODULE_10__[\"actions\"].clearError;\nfunction validateUserAudienceSettings(settings) {\n  invariant__WEBPACK_IMPORTED_MODULE_3___default()(Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"isPlainObject\"])(settings), 'Audience settings should be an object.');\n  invariant__WEBPACK_IMPORTED_MODULE_3___default()(Array.isArray(settings.configuredAudiences), 'Configured audiences should be an array.');\n  invariant__WEBPACK_IMPORTED_MODULE_3___default()(typeof settings.isAudienceSegmentationWidgetHidden === 'boolean', 'Audience segmentation widget visibility should be a boolean.');\n}\nvar fetchStoreReducerCallback = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createReducer\"])(function (state, audienceSettings) {\n  if (!state.audienceSettings) {\n    state.audienceSettings = {};\n  }\n  state.audienceSettings.settings = audienceSettings;\n  state.audienceSettings.savedSettings = audienceSettings;\n});\nvar fetchGetUserAudienceSettingsStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_8__[\"createFetchStore\"])({\n  baseName: 'getUserAudienceSettings',\n  controlCallback: function controlCallback() {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__[\"get\"])('core', 'user', 'audience-settings', {}, {\n      useCache: false\n    });\n  },\n  reducerCallback: fetchStoreReducerCallback\n});\nvar fetchSaveUserAudienceSettingsStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_8__[\"createFetchStore\"])({\n  baseName: 'saveUserAudienceSettings',\n  controlCallback: function controlCallback(settings) {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__[\"set\"])('core', 'user', 'audience-settings', {\n      settings: settings\n    });\n  },\n  reducerCallback: fetchStoreReducerCallback,\n  argsToParams: function argsToParams(settings) {\n    return settings;\n  },\n  validateParams: validateUserAudienceSettings\n});\n\n// Actions\nvar RESET_AUDIENCE_SETTINGS = 'RESET_AUDIENCE_SETTINGS';\nvar SET_CONFIGURED_AUDIENCES = 'SET_CONFIGURED_AUDIENCES';\nvar SET_AUDIENCE_SEGMENTATION_WIDGET_HIDDEN = 'SET_AUDIENCE_SEGMENTATION_WIDGET_HIDDEN';\nvar baseInitialState = {\n  audienceSettings: undefined\n};\nvar baseActions = {\n  /**\n   * Saves the audience settings.\n   *\n   * @since 1.124.0\n   *\n   * @param {Object} settings Optional. By default, this saves whatever there is in the store. Use this object to save additional settings.\n   * @return {Object} Object with `response` and `error`.\n   */\n  saveUserAudienceSettings: Object(_js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_9__[\"createValidatedAction\"])(function () {\n    var settings = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()(Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"isPlainObject\"])(settings), 'audience settings should be an object to save.');\n  }, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {\n    var settings,\n      registry,\n      audienceSettings,\n      finalSettings,\n      availableAudiences,\n      sortedConfiguredAudiences,\n      _yield$fetchSaveUserA,\n      response,\n      error,\n      _args = arguments;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            settings = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};\n            _context.next = 3;\n            return clearError('saveUserAudienceSettings', []);\n          case 3:\n            _context.next = 5;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"commonActions\"].getRegistry();\n          case 5:\n            registry = _context.sent;\n            _context.next = 8;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"commonActions\"].await(registry.resolveSelect(_constants__WEBPACK_IMPORTED_MODULE_11__[\"CORE_USER\"]).getUserAudienceSettings());\n          case 8:\n            audienceSettings = _context.sent;\n            finalSettings = _objectSpread(_objectSpread({}, audienceSettings), settings);\n            _context.next = 12;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"commonActions\"].await(registry.resolveSelect(_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_7__[\"MODULES_ANALYTICS_4\"]).getOrSyncAvailableAudiences());\n          case 12:\n            availableAudiences = _context.sent;\n            sortedConfiguredAudiences = _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(finalSettings.configuredAudiences).sort(function (audienceNameA, audienceNameB) {\n              var audienceIndexA = availableAudiences.findIndex(function (audience) {\n                return audience.name === audienceNameA;\n              });\n              var audienceIndexB = availableAudiences.findIndex(function (audience) {\n                return audience.name === audienceNameB;\n              });\n              if (audienceIndexA === -1 || audienceIndexB === -1) {\n                return 0;\n              }\n              return audienceIndexA - audienceIndexB;\n            });\n            finalSettings.configuredAudiences = sortedConfiguredAudiences;\n            _context.next = 17;\n            return fetchSaveUserAudienceSettingsStore.actions.fetchSaveUserAudienceSettings(finalSettings);\n          case 17:\n            _yield$fetchSaveUserA = _context.sent;\n            response = _yield$fetchSaveUserA.response;\n            error = _yield$fetchSaveUserA.error;\n            if (!error) {\n              _context.next = 23;\n              break;\n            }\n            _context.next = 23;\n            return receiveError(error, 'saveUserAudienceSettings', []);\n          case 23:\n            return _context.abrupt(\"return\", {\n              response: response,\n              error: error\n            });\n          case 24:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, _callee);\n  })),\n  /**\n   * Resets the audience settings.\n   *\n   * @since 1.139.0\n   *\n   * @return {Object} Redux-style action.\n   */\n  resetUserAudienceSettings: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function resetUserAudienceSettings() {\n    var _yield$commonActions$, dispatch;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function resetUserAudienceSettings$(_context2) {\n      while (1) {\n        switch (_context2.prev = _context2.next) {\n          case 0:\n            _context2.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"commonActions\"].getRegistry();\n          case 2:\n            _yield$commonActions$ = _context2.sent;\n            dispatch = _yield$commonActions$.dispatch;\n            _context2.next = 6;\n            return {\n              payload: {},\n              type: RESET_AUDIENCE_SETTINGS\n            };\n          case 6:\n            _context2.next = 8;\n            return _js_googlesitekit_data_create_error_store__WEBPACK_IMPORTED_MODULE_10__[\"actions\"].clearErrors('getUserAudienceSettings');\n          case 8:\n            return _context2.abrupt(\"return\", dispatch(_constants__WEBPACK_IMPORTED_MODULE_11__[\"CORE_USER\"]).invalidateResolutionForStoreSelector('getUserAudienceSettings'));\n          case 9:\n          case \"end\":\n            return _context2.stop();\n        }\n      }\n    }, resetUserAudienceSettings);\n  }),\n  /**\n   * Sets the configured audiences.\n   *\n   * @since 1.124.0\n   *\n   * @param {Array} audienceResourceNames Configured audience resource names.\n   * @return {Object} Redux-style action.\n   */\n  setConfiguredAudiences: function setConfiguredAudiences(audienceResourceNames) {\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()(Array.isArray(audienceResourceNames), 'Configured audiences should be an array.');\n    return {\n      type: SET_CONFIGURED_AUDIENCES,\n      payload: {\n        audienceResourceNames: audienceResourceNames\n      }\n    };\n  },\n  /**\n   * Sets the audience segmentation widget visibility.\n   *\n   * @since 1.124.0\n   *\n   * @param {boolean} isWidgetHidden Whether or not the audience segmentation widget is hidden.\n   * @return {Object} Redux-style action.\n   */\n  setAudienceSegmentationWidgetHidden: function setAudienceSegmentationWidgetHidden(isWidgetHidden) {\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()(typeof isWidgetHidden === 'boolean', 'Audience segmentation widget visibility should be a boolean.');\n    return {\n      type: SET_AUDIENCE_SEGMENTATION_WIDGET_HIDDEN,\n      payload: {\n        isWidgetHidden: isWidgetHidden\n      }\n    };\n  }\n};\nvar baseControls = {};\nvar baseReducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createReducer\"])(function (state, _ref) {\n  var type = _ref.type,\n    payload = _ref.payload;\n  switch (type) {\n    case RESET_AUDIENCE_SETTINGS:\n      {\n        state.audienceSettings = baseInitialState.audienceSettings;\n        break;\n      }\n    case SET_CONFIGURED_AUDIENCES:\n      {\n        var audienceResourceNames = payload.audienceResourceNames;\n        if (!state.audienceSettings) {\n          state.audienceSettings = {};\n        }\n        state.audienceSettings.settings = _objectSpread(_objectSpread({}, state.audienceSettings.settings), {}, {\n          configuredAudiences: audienceResourceNames\n        });\n        break;\n      }\n    case SET_AUDIENCE_SEGMENTATION_WIDGET_HIDDEN:\n      {\n        var isWidgetHidden = payload.isWidgetHidden;\n        if (!state.audienceSettings) {\n          state.audienceSettings = {};\n        }\n        state.audienceSettings.settings = _objectSpread(_objectSpread({}, state.audienceSettings.settings), {}, {\n          isAudienceSegmentationWidgetHidden: isWidgetHidden\n        });\n        break;\n      }\n    default:\n      {\n        break;\n      }\n  }\n});\nvar baseResolvers = {\n  getUserAudienceSettings: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function getUserAudienceSettings() {\n    var registry, audienceSettings;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function getUserAudienceSettings$(_context3) {\n      while (1) {\n        switch (_context3.prev = _context3.next) {\n          case 0:\n            _context3.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"commonActions\"].getRegistry();\n          case 2:\n            registry = _context3.sent;\n            audienceSettings = registry.select(_constants__WEBPACK_IMPORTED_MODULE_11__[\"CORE_USER\"]).getUserAudienceSettings();\n            if (!(audienceSettings === undefined)) {\n              _context3.next = 7;\n              break;\n            }\n            _context3.next = 7;\n            return fetchGetUserAudienceSettingsStore.actions.fetchGetUserAudienceSettings();\n          case 7:\n          case \"end\":\n            return _context3.stop();\n        }\n      }\n    }, getUserAudienceSettings);\n  })\n};\nvar baseSelectors = {\n  /**\n   * Gets the audience settings.\n   *\n   * @since 1.124.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Object|undefined)} Audience settings; `undefined` if not loaded.\n   */\n  getUserAudienceSettings: function getUserAudienceSettings(state) {\n    var _state$audienceSettin;\n    return (_state$audienceSettin = state.audienceSettings) === null || _state$audienceSettin === void 0 ? void 0 : _state$audienceSettin.settings;\n  },\n  /**\n   * Gets the configured audiences from the audience settings.\n   *\n   * @since 1.124.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Array|undefined)} An array with configured audiences; `undefined` if not loaded.\n   */\n  getConfiguredAudiences: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var audienceSettings = select(_constants__WEBPACK_IMPORTED_MODULE_11__[\"CORE_USER\"]).getUserAudienceSettings();\n      return audienceSettings === null || audienceSettings === void 0 ? void 0 : audienceSettings.configuredAudiences;\n    };\n  }),\n  /**\n   * Gets the audience segmentation widget visibility from the audience settings.\n   *\n   * @since 1.124.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(boolean|undefined)} Whether or not the audience segmentation widget is hidden; `undefined` if not loaded.\n   */\n  isAudienceSegmentationWidgetHidden: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var audienceSettings = select(_constants__WEBPACK_IMPORTED_MODULE_11__[\"CORE_USER\"]).getUserAudienceSettings();\n      return audienceSettings === null || audienceSettings === void 0 ? void 0 : audienceSettings.isAudienceSegmentationWidgetHidden;\n    };\n  }),\n  /**\n   * Gets the `didSetAudiences` flag from the audience settings.\n   *\n   * @since 1.136.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(boolean|undefined)} Whether or not the audience selection has ever been populated for the current user; `undefined` if not loaded.\n   */\n  didSetAudiences: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var audienceSettings = select(_constants__WEBPACK_IMPORTED_MODULE_11__[\"CORE_USER\"]).getUserAudienceSettings();\n      return audienceSettings === null || audienceSettings === void 0 ? void 0 : audienceSettings.didSetAudiences;\n    };\n  }),\n  /**\n   * Checks if the configured audiences have changed from the saved settings.\n   *\n   * @since 1.124.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {boolean} True if configured audiences have changed, otherwise false.\n   */\n  haveConfiguredAudiencesChanged: function haveConfiguredAudiencesChanged(state) {\n    var _ref2 = state.audienceSettings || {},\n      settings = _ref2.settings,\n      savedSettings = _ref2.savedSettings;\n    return !Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"isEqual\"])(settings === null || settings === void 0 ? void 0 : settings.configuredAudiences, savedSettings === null || savedSettings === void 0 ? void 0 : savedSettings.configuredAudiences);\n  },\n  /**\n   * Determines whether the audience settings are being saved.\n   *\n   * @since 1.129.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {boolean} TRUE if the audience settings are being saved, otherwise FALSE.\n   */\n  isSavingUserAudienceSettings: function isSavingUserAudienceSettings(state) {\n    // Since `isFetchingSaveUserAudienceSettings` holds information based on specific\n    // values but we only need generic information here, we need to check\n    // whether ANY such request is in progress.\n    return Object.values(state.isFetchingSaveUserAudienceSettings).some(Boolean);\n  }\n};\nvar store = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"combineStores\"])(fetchGetUserAudienceSettingsStore, fetchSaveUserAudienceSettingsStore, {\n  initialState: baseInitialState,\n  actions: baseActions,\n  controls: baseControls,\n  reducer: baseReducer,\n  resolvers: baseResolvers,\n  selectors: baseSelectors\n});\nvar initialState = store.initialState;\nvar actions = store.actions;\nvar controls = store.controls;\nvar reducer = store.reducer;\nvar resolvers = store.resolvers;\nvar selectors = store.selectors;\n/* harmony default export */ __webpack_exports__[\"default\"] = (store);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/audience-settings.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/authentication.js":
/*!***********************************************************!*\
  !*** ./js/googlesitekit/datastore/user/authentication.js ***!
  \***********************************************************/
/*! exports provided: baseReducer, initialState, actions, controls, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"baseReducer\", function() { return baseReducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! googlesitekit-api */ \"googlesitekit-api\");\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_api__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/js/googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n\n/**\n * `core/user` data store: Authentication info.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Internal dependencies\n */\n\n\n\n\nfunction createGetAuthenticationSelector(property) {\n  return Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var data = select(_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_USER\"]).getAuthentication() || {};\n      return data[property];\n    };\n  });\n}\nvar fetchGetAuthenticationStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_4__[\"createFetchStore\"])({\n  baseName: 'getAuthentication',\n  controlCallback: function controlCallback() {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_1__[\"get\"])('core', 'user', 'authentication', undefined, {\n      useCache: false\n    });\n  },\n  reducerCallback: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"createReducer\"])(function (state, authentication) {\n    state.authentication = authentication;\n  })\n});\n\n// Actions\nvar SET_AUTH_ERROR = 'SET_AUTH_ERROR';\nvar CLEAR_AUTH_ERROR = 'CLEAR_AUTH_ERROR';\nvar baseInitialState = {\n  authentication: undefined,\n  authError: null\n};\nvar baseActions = {\n  /**\n   * Sets the authentication error.\n   *\n   * @since 1.18.0\n   *\n   * @param {Object} error Authentication error object.\n   * @return {Object} Redux-style action.\n   */\n  setAuthError: function setAuthError(error) {\n    return {\n      payload: {\n        error: error\n      },\n      type: SET_AUTH_ERROR\n    };\n  },\n  /**\n   * Clears the authentication error, if one was previously set.\n   *\n   * @since 1.18.0\n   *\n   * @return {Object} Redux-style action.\n   */\n  clearAuthError: function clearAuthError() {\n    return {\n      payload: {},\n      type: CLEAR_AUTH_ERROR\n    };\n  }\n};\nvar baseReducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"createReducer\"])(function (state, _ref) {\n  var type = _ref.type,\n    payload = _ref.payload;\n  switch (type) {\n    case SET_AUTH_ERROR:\n      state.authError = payload.error;\n      break;\n    case CLEAR_AUTH_ERROR:\n      state.authError = null;\n      break;\n    default:\n      break;\n  }\n});\nvar baseResolvers = {\n  getAuthentication: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function getAuthentication() {\n    var _yield$commonActions$, select;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function getAuthentication$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            _context.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"commonActions\"].getRegistry();\n          case 2:\n            _yield$commonActions$ = _context.sent;\n            select = _yield$commonActions$.select;\n            if (select(_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_USER\"]).getAuthentication()) {\n              _context.next = 7;\n              break;\n            }\n            _context.next = 7;\n            return fetchGetAuthenticationStore.actions.fetchGetAuthentication();\n          case 7:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, getAuthentication);\n  })\n};\nvar baseSelectors = {\n  /**\n   * Gets the authentication info for this user.\n   *\n   * Returns `undefined` if the authentication info is not available/loaded.\n   *\n   * Returns an object with the shape when successful:\n   * ```\n   * {\n   *   authenticated: <Boolean>,\n   *   grantedScopes: <Array>,\n   *   requiredScopes: <Array>\n   * }\n   * ```\n   *\n   * @since 1.9.0\n   * @private\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Object|undefined)} User authentication info.\n   */\n  getAuthentication: function getAuthentication(state) {\n    var authentication = state.authentication;\n    return authentication;\n  },\n  /**\n   * Checks to see if the current user has granted a particular scope.\n   *\n   * Returns `undefined` if the scope info is not available/loaded.\n   *\n   * @since 1.11.0\n   * @private\n   *\n   * @param {Object} state Data store's state.\n   * @param {string} scope The scope constant to check for.\n   * @return {(boolean|undefined)} `true` if scope is present; `false` if not.\n   */\n  hasScope: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"createRegistrySelector\"])(function (select) {\n    return function (state, scope) {\n      var grantedScopes = select(_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_USER\"]).getGrantedScopes(state);\n      if (grantedScopes === undefined) {\n        return undefined;\n      }\n      return grantedScopes.includes(scope);\n    };\n  }),\n  /**\n   * Gets the Site Kit authentication status for this user.\n   *\n   * Returns `true` if the user is authenticated, `false` if\n   * not. Returns `undefined` if the authentication info is not available/loaded.\n   *\n   * @since 1.9.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(boolean|undefined)} User authentication status.\n   */\n  isAuthenticated: createGetAuthenticationSelector('authenticated'),\n  /**\n   * Gets the granted scopes for the user.\n   *\n   * Returns an array of granted scopes or undefined\n   * if authentication info is not available/loaded.\n   *\n   * @since 1.9.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Array|undefined)} Array of granted scopes.\n   */\n  getGrantedScopes: createGetAuthenticationSelector('grantedScopes'),\n  /**\n   * Gets the required scopes for the user.\n   *\n   * Returns an array of required scopes or undefined\n   * if authentication info is not available/loaded.\n   *\n   * @since 1.9.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Array|undefined)} Array of required scopes.\n   */\n  getRequiredScopes: createGetAuthenticationSelector('requiredScopes'),\n  /**\n   * Gets the unsatisfied scopes for the user.\n   *\n   * Returns an array of unsatisfied scopes (required but not granted)\n   * or undefined if authentication info is not available/loaded.\n   *\n   * @since 1.9.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Array|undefined)} Array of scopes.\n   */\n  getUnsatisfiedScopes: createGetAuthenticationSelector('unsatisfiedScopes'),\n  /**\n   * Checks reauthentication status for this user.\n   *\n   * Returns true if any required scopes are not satisfied or undefined\n   * if reauthentication info is not available/loaded.\n   *\n   * @since 1.10.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(boolean|undefined)} User reauthentication status.\n   */\n  needsReauthentication: createGetAuthenticationSelector('needsReauthentication'),\n  /**\n   * Gets the current disconnected reason.\n   *\n   * @since 1.17.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(string|undefined)} The current disconnected reason.\n   */\n  getDisconnectedReason: createGetAuthenticationSelector('disconnectedReason'),\n  /**\n   * Gets the connected proxy URL.\n   *\n   * @since 1.48.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(string|undefined)} The current connected proxy URL.\n   */\n  getConnectedProxyURL: createGetAuthenticationSelector('connectedProxyURL'),\n  /**\n   * Gets the previous connected proxy URL.\n   *\n   * @since 1.48.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(string|undefined)} The previous connected proxy URL.\n   */\n  getPreviousConnectedProxyURL: createGetAuthenticationSelector('previousConnectedProxyURL'),\n  /**\n   * Gets the authentication error.\n   *\n   * @since 1.18.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Object|null)} Authentication error object if available, otherwise null.\n   */\n  getAuthError: function getAuthError(state) {\n    var authError = state.authError;\n    return authError;\n  }\n};\nvar store = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"combineStores\"])(fetchGetAuthenticationStore, {\n  initialState: baseInitialState,\n  actions: baseActions,\n  reducer: baseReducer,\n  resolvers: baseResolvers,\n  selectors: baseSelectors\n});\nvar initialState = store.initialState;\nvar actions = store.actions;\nvar controls = store.controls;\nvar reducer = store.reducer;\nvar resolvers = store.resolvers;\nvar selectors = store.selectors;\n/* harmony default export */ __webpack_exports__[\"default\"] = (store);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/authentication.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/constants.js":
/*!******************************************************!*\
  !*** ./js/googlesitekit/datastore/user/constants.js ***!
  \******************************************************/
/*! exports provided: CORE_USER, DISCONNECTED_REASON_CONNECTED_URL_MISMATCH, GLOBAL_SURVEYS_TIMEOUT_SLUG, FORM_TEMPORARY_PERSIST_PERMISSION_ERROR, ERROR_CODE_ADBLOCKER_ACTIVE, PERMISSION_AUTHENTICATE, PERMISSION_SETUP, PERMISSION_VIEW_POSTS_INSIGHTS, PERMISSION_VIEW_DASHBOARD, PERMISSION_VIEW_SHARED_DASHBOARD, PERMISSION_VIEW_MODULE_DETAILS, PERMISSION_MANAGE_OPTIONS, PERMISSION_READ_SHARED_MODULE_DATA, PERMISSION_MANAGE_MODULE_SHARING_OPTIONS, PERMISSION_DELEGATE_MODULE_SHARING_MANAGEMENT, PERMISSION_UPDATE_PLUGINS, KM_ANALYTICS_ADSENSE_TOP_EARNING_CONTENT, KM_ANALYTICS_ENGAGED_TRAFFIC_SOURCE, KM_ANALYTICS_LEAST_ENGAGING_PAGES, KM_ANALYTICS_NEW_VISITORS, KM_ANALYTICS_POPULAR_AUTHORS, KM_ANALYTICS_POPULAR_CONTENT, KM_ANALYTICS_POPULAR_PRODUCTS, KM_ANALYTICS_RETURNING_VISITORS, KM_ANALYTICS_TOP_CITIES, KM_ANALYTICS_TOP_CITIES_DRIVING_LEADS, KM_ANALYTICS_TOP_CITIES_DRIVING_ADD_TO_CART, KM_ANALYTICS_TOP_CITIES_DRIVING_PURCHASES, KM_ANALYTICS_TOP_DEVICE_DRIVING_PURCHASES, KM_ANALYTICS_TOP_CONVERTING_TRAFFIC_SOURCE, KM_ANALYTICS_TOP_COUNTRIES, KM_ANALYTICS_TOP_PAGES_DRIVING_LEADS, KM_ANALYTICS_TOP_RECENT_TRENDING_PAGES, KM_ANALYTICS_TOP_TRAFFIC_SOURCE, KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_ADD_TO_CART, KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_LEADS, KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_PURCHASES, KM_ANALYTICS_PAGES_PER_VISIT, KM_ANALYTICS_VISIT_LENGTH, KM_ANALYTICS_TOP_RETURNING_VISITOR_PAGES, KM_SEARCH_CONSOLE_POPULAR_KEYWORDS, KM_ANALYTICS_VISITS_PER_VISITOR, KM_ANALYTICS_MOST_ENGAGING_PAGES, KM_ANALYTICS_TOP_CATEGORIES, keyMetricsGA4Widgets, allKeyMetricsTileWidgets */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CORE_USER\", function() { return CORE_USER; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DISCONNECTED_REASON_CONNECTED_URL_MISMATCH\", function() { return DISCONNECTED_REASON_CONNECTED_URL_MISMATCH; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"GLOBAL_SURVEYS_TIMEOUT_SLUG\", function() { return GLOBAL_SURVEYS_TIMEOUT_SLUG; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FORM_TEMPORARY_PERSIST_PERMISSION_ERROR\", function() { return FORM_TEMPORARY_PERSIST_PERMISSION_ERROR; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ERROR_CODE_ADBLOCKER_ACTIVE\", function() { return ERROR_CODE_ADBLOCKER_ACTIVE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PERMISSION_AUTHENTICATE\", function() { return PERMISSION_AUTHENTICATE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PERMISSION_SETUP\", function() { return PERMISSION_SETUP; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PERMISSION_VIEW_POSTS_INSIGHTS\", function() { return PERMISSION_VIEW_POSTS_INSIGHTS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PERMISSION_VIEW_DASHBOARD\", function() { return PERMISSION_VIEW_DASHBOARD; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PERMISSION_VIEW_SHARED_DASHBOARD\", function() { return PERMISSION_VIEW_SHARED_DASHBOARD; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PERMISSION_VIEW_MODULE_DETAILS\", function() { return PERMISSION_VIEW_MODULE_DETAILS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PERMISSION_MANAGE_OPTIONS\", function() { return PERMISSION_MANAGE_OPTIONS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PERMISSION_READ_SHARED_MODULE_DATA\", function() { return PERMISSION_READ_SHARED_MODULE_DATA; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PERMISSION_MANAGE_MODULE_SHARING_OPTIONS\", function() { return PERMISSION_MANAGE_MODULE_SHARING_OPTIONS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PERMISSION_DELEGATE_MODULE_SHARING_MANAGEMENT\", function() { return PERMISSION_DELEGATE_MODULE_SHARING_MANAGEMENT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PERMISSION_UPDATE_PLUGINS\", function() { return PERMISSION_UPDATE_PLUGINS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_ADSENSE_TOP_EARNING_CONTENT\", function() { return KM_ANALYTICS_ADSENSE_TOP_EARNING_CONTENT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_ENGAGED_TRAFFIC_SOURCE\", function() { return KM_ANALYTICS_ENGAGED_TRAFFIC_SOURCE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_LEAST_ENGAGING_PAGES\", function() { return KM_ANALYTICS_LEAST_ENGAGING_PAGES; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_NEW_VISITORS\", function() { return KM_ANALYTICS_NEW_VISITORS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_POPULAR_AUTHORS\", function() { return KM_ANALYTICS_POPULAR_AUTHORS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_POPULAR_CONTENT\", function() { return KM_ANALYTICS_POPULAR_CONTENT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_POPULAR_PRODUCTS\", function() { return KM_ANALYTICS_POPULAR_PRODUCTS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_RETURNING_VISITORS\", function() { return KM_ANALYTICS_RETURNING_VISITORS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_TOP_CITIES\", function() { return KM_ANALYTICS_TOP_CITIES; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_TOP_CITIES_DRIVING_LEADS\", function() { return KM_ANALYTICS_TOP_CITIES_DRIVING_LEADS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_TOP_CITIES_DRIVING_ADD_TO_CART\", function() { return KM_ANALYTICS_TOP_CITIES_DRIVING_ADD_TO_CART; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_TOP_CITIES_DRIVING_PURCHASES\", function() { return KM_ANALYTICS_TOP_CITIES_DRIVING_PURCHASES; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_TOP_DEVICE_DRIVING_PURCHASES\", function() { return KM_ANALYTICS_TOP_DEVICE_DRIVING_PURCHASES; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_TOP_CONVERTING_TRAFFIC_SOURCE\", function() { return KM_ANALYTICS_TOP_CONVERTING_TRAFFIC_SOURCE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_TOP_COUNTRIES\", function() { return KM_ANALYTICS_TOP_COUNTRIES; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_TOP_PAGES_DRIVING_LEADS\", function() { return KM_ANALYTICS_TOP_PAGES_DRIVING_LEADS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_TOP_RECENT_TRENDING_PAGES\", function() { return KM_ANALYTICS_TOP_RECENT_TRENDING_PAGES; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_TOP_TRAFFIC_SOURCE\", function() { return KM_ANALYTICS_TOP_TRAFFIC_SOURCE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_ADD_TO_CART\", function() { return KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_ADD_TO_CART; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_LEADS\", function() { return KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_LEADS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_PURCHASES\", function() { return KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_PURCHASES; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_PAGES_PER_VISIT\", function() { return KM_ANALYTICS_PAGES_PER_VISIT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_VISIT_LENGTH\", function() { return KM_ANALYTICS_VISIT_LENGTH; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_TOP_RETURNING_VISITOR_PAGES\", function() { return KM_ANALYTICS_TOP_RETURNING_VISITOR_PAGES; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_SEARCH_CONSOLE_POPULAR_KEYWORDS\", function() { return KM_SEARCH_CONSOLE_POPULAR_KEYWORDS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_VISITS_PER_VISITOR\", function() { return KM_ANALYTICS_VISITS_PER_VISITOR; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_MOST_ENGAGING_PAGES\", function() { return KM_ANALYTICS_MOST_ENGAGING_PAGES; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KM_ANALYTICS_TOP_CATEGORIES\", function() { return KM_ANALYTICS_TOP_CATEGORIES; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"keyMetricsGA4Widgets\", function() { return keyMetricsGA4Widgets; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"allKeyMetricsTileWidgets\", function() { return allKeyMetricsTileWidgets; });\n/**\n * `core/user` data store: constants.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nvar CORE_USER = 'core/user';\nvar DISCONNECTED_REASON_CONNECTED_URL_MISMATCH = 'connected_url_mismatch';\nvar GLOBAL_SURVEYS_TIMEOUT_SLUG = '__global';\nvar FORM_TEMPORARY_PERSIST_PERMISSION_ERROR = 'temporary_persist_permission_error';\nvar ERROR_CODE_ADBLOCKER_ACTIVE = 'adblocker_active';\n\n// Permissions list.\nvar PERMISSION_AUTHENTICATE = 'googlesitekit_authenticate';\nvar PERMISSION_SETUP = 'googlesitekit_setup';\nvar PERMISSION_VIEW_POSTS_INSIGHTS = 'googlesitekit_view_posts_insights';\nvar PERMISSION_VIEW_DASHBOARD = 'googlesitekit_view_dashboard';\nvar PERMISSION_VIEW_SHARED_DASHBOARD = 'googlesitekit_view_shared_dashboard';\nvar PERMISSION_VIEW_MODULE_DETAILS = 'googlesitekit_view_module_details';\nvar PERMISSION_MANAGE_OPTIONS = 'googlesitekit_manage_options';\nvar PERMISSION_READ_SHARED_MODULE_DATA = 'googlesitekit_read_shared_module_data';\nvar PERMISSION_MANAGE_MODULE_SHARING_OPTIONS = 'googlesitekit_manage_module_sharing_options';\nvar PERMISSION_DELEGATE_MODULE_SHARING_MANAGEMENT = 'googlesitekit_delegate_module_sharing_management';\nvar PERMISSION_UPDATE_PLUGINS = 'googlesitekit_update_plugins';\n\n// Key Metrics Widgets\nvar KM_ANALYTICS_ADSENSE_TOP_EARNING_CONTENT = 'kmAnalyticsAdSenseTopEarningContent';\nvar KM_ANALYTICS_ENGAGED_TRAFFIC_SOURCE = 'kmAnalyticsEngagedTrafficSource';\nvar KM_ANALYTICS_LEAST_ENGAGING_PAGES = 'kmAnalyticsLeastEngagingPages';\nvar KM_ANALYTICS_NEW_VISITORS = 'kmAnalyticsNewVisitors';\nvar KM_ANALYTICS_POPULAR_AUTHORS = 'kmAnalyticsPopularAuthors';\nvar KM_ANALYTICS_POPULAR_CONTENT = 'kmAnalyticsPopularContent';\nvar KM_ANALYTICS_POPULAR_PRODUCTS = 'kmAnalyticsPopularProducts';\nvar KM_ANALYTICS_RETURNING_VISITORS = 'kmAnalyticsReturningVisitors';\nvar KM_ANALYTICS_TOP_CITIES = 'kmAnalyticsTopCities';\nvar KM_ANALYTICS_TOP_CITIES_DRIVING_LEADS = 'kmAnalyticsTopCitiesDrivingLeads';\nvar KM_ANALYTICS_TOP_CITIES_DRIVING_ADD_TO_CART = 'kmAnalyticsTopCitiesDrivingAddToCart';\nvar KM_ANALYTICS_TOP_CITIES_DRIVING_PURCHASES = 'kmAnalyticsTopCitiesDrivingPurchases';\nvar KM_ANALYTICS_TOP_DEVICE_DRIVING_PURCHASES = 'kmAnalyticsTopDeviceDrivingPurchases';\nvar KM_ANALYTICS_TOP_CONVERTING_TRAFFIC_SOURCE = 'kmAnalyticsTopConvertingTrafficSource';\nvar KM_ANALYTICS_TOP_COUNTRIES = 'kmAnalyticsTopCountries';\nvar KM_ANALYTICS_TOP_PAGES_DRIVING_LEADS = 'kmAnalyticsTopPagesDrivingLeads';\nvar KM_ANALYTICS_TOP_RECENT_TRENDING_PAGES = 'kmAnalyticsTopRecentTrendingPages';\nvar KM_ANALYTICS_TOP_TRAFFIC_SOURCE = 'kmAnalyticsTopTrafficSource';\nvar KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_ADD_TO_CART = 'kmAnalyticsTopTrafficSourceDrivingAddToCart';\nvar KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_LEADS = 'kmAnalyticsTopTrafficSourceDrivingLeads';\nvar KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_PURCHASES = 'kmAnalyticsTopTrafficSourceDrivingPurchases';\nvar KM_ANALYTICS_PAGES_PER_VISIT = 'kmAnalyticsPagesPerVisit';\nvar KM_ANALYTICS_VISIT_LENGTH = 'kmAnalyticsVisitLength';\nvar KM_ANALYTICS_TOP_RETURNING_VISITOR_PAGES = 'kmAnalyticsTopReturningVisitorPages';\nvar KM_SEARCH_CONSOLE_POPULAR_KEYWORDS = 'kmSearchConsolePopularKeywords';\nvar KM_ANALYTICS_VISITS_PER_VISITOR = 'kmAnalyticsVisitsPerVisitor';\nvar KM_ANALYTICS_MOST_ENGAGING_PAGES = 'kmAnalyticsMostEngagingPages';\nvar KM_ANALYTICS_TOP_CATEGORIES = 'kmAnalyticsTopCategories';\nvar keyMetricsGA4Widgets = [KM_ANALYTICS_ADSENSE_TOP_EARNING_CONTENT, KM_ANALYTICS_ENGAGED_TRAFFIC_SOURCE, KM_ANALYTICS_LEAST_ENGAGING_PAGES, KM_ANALYTICS_NEW_VISITORS, KM_ANALYTICS_POPULAR_AUTHORS, KM_ANALYTICS_POPULAR_CONTENT, KM_ANALYTICS_POPULAR_PRODUCTS, KM_ANALYTICS_RETURNING_VISITORS, KM_ANALYTICS_TOP_CATEGORIES, KM_ANALYTICS_TOP_CITIES, KM_ANALYTICS_TOP_CITIES_DRIVING_LEADS, KM_ANALYTICS_TOP_CITIES_DRIVING_ADD_TO_CART, KM_ANALYTICS_TOP_CITIES_DRIVING_PURCHASES, KM_ANALYTICS_TOP_DEVICE_DRIVING_PURCHASES, KM_ANALYTICS_TOP_CONVERTING_TRAFFIC_SOURCE, KM_ANALYTICS_TOP_COUNTRIES, KM_ANALYTICS_TOP_RECENT_TRENDING_PAGES, KM_ANALYTICS_TOP_TRAFFIC_SOURCE, KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_ADD_TO_CART, KM_ANALYTICS_PAGES_PER_VISIT, KM_ANALYTICS_VISIT_LENGTH, KM_ANALYTICS_TOP_RETURNING_VISITOR_PAGES, KM_ANALYTICS_VISITS_PER_VISITOR, KM_ANALYTICS_MOST_ENGAGING_PAGES, KM_ANALYTICS_TOP_CATEGORIES];\nvar allKeyMetricsTileWidgets = [].concat(keyMetricsGA4Widgets, [KM_SEARCH_CONSOLE_POPULAR_KEYWORDS]);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/constants.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/conversion-reporting-settings.js":
/*!**************************************************************************!*\
  !*** ./js/googlesitekit/datastore/user/conversion-reporting-settings.js ***!
  \**************************************************************************/
/*! exports provided: initialState, actions, controls, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ \"../node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! googlesitekit-api */ \"googlesitekit-api\");\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_api__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/js/googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n/* harmony import */ var _js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/js/googlesitekit/data/utils */ \"./js/googlesitekit/data/utils.js\");\n\n/**\n * Site Kit by Google, Copyright 2024 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\nvar baseInitialState = {\n  conversionReportingSettings: undefined\n};\nvar fetchStoreReducerCallback = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"createReducer\"])(function (state, conversionReportingSettings) {\n  state.conversionReportingSettings = conversionReportingSettings;\n});\nvar fetchGetConversionReportingSettingsStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_6__[\"createFetchStore\"])({\n  baseName: 'getConversionReportingSettings',\n  controlCallback: function controlCallback() {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_3__[\"get\"])('core', 'user', 'conversion-reporting-settings', undefined, {\n      // Never cache conversion reporting settings requests, we want them to be\n      // up-to-date with what's in settings, and they don't\n      // make requests to Google APIs so it's not a slow request.\n      useCache: false\n    });\n  },\n  reducerCallback: fetchStoreReducerCallback\n});\nvar fetchSaveConversionReportingSettingsStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_6__[\"createFetchStore\"])({\n  baseName: 'saveConversionReportingSettings',\n  controlCallback: function controlCallback(settings) {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_3__[\"set\"])('core', 'user', 'conversion-reporting-settings', {\n      settings: settings\n    });\n  },\n  reducerCallback: fetchStoreReducerCallback,\n  argsToParams: function argsToParams(settings) {\n    return settings;\n  },\n  validateParams: function validateParams(settings) {\n    invariant__WEBPACK_IMPORTED_MODULE_1___default()(Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"isPlainObject\"])(settings), 'Conversion reporting settings should be an object.');\n    if (settings.newEventsCalloutDismissedAt) {\n      invariant__WEBPACK_IMPORTED_MODULE_1___default()(Number.isInteger(settings.newEventsCalloutDismissedAt), 'newEventsCalloutDismissedAt should be a timestamp.');\n    }\n    if (settings.lostEventsCalloutDismissedAt) {\n      invariant__WEBPACK_IMPORTED_MODULE_1___default()(Number.isInteger(settings.lostEventsCalloutDismissedAt), 'lostEventsCalloutDismissedAt should be an integer.');\n    }\n  }\n});\nvar baseActions = {\n  /**\n   * Saves the conversion reporting settings.\n   *\n   * @since 1.144.0\n   *\n   * @param {Object} settings Optional. By default, this saves whatever there is in the store. Use this object to save additional settings.\n   * @return {Object} Object with `response` and `error`.\n   */\n  saveConversionReportingSettings: Object(_js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_7__[\"createValidatedAction\"])(function () {\n    var settings = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    invariant__WEBPACK_IMPORTED_MODULE_1___default()(Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"isPlainObject\"])(settings), 'Conversion reporting settings should be an object to save.');\n  }, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {\n    var settings,\n      _args = arguments;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            settings = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};\n            _context.next = 3;\n            return fetchSaveConversionReportingSettingsStore.actions.fetchSaveConversionReportingSettings(settings);\n          case 3:\n            return _context.abrupt(\"return\", _context.sent);\n          case 4:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, _callee);\n  }))\n};\nvar baseResolvers = {\n  getConversionReportingSettings: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function getConversionReportingSettings() {\n    var registry, conversionReportingSettings;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function getConversionReportingSettings$(_context2) {\n      while (1) {\n        switch (_context2.prev = _context2.next) {\n          case 0:\n            _context2.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"commonActions\"].getRegistry();\n          case 2:\n            registry = _context2.sent;\n            conversionReportingSettings = registry.select(_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_USER\"]).getConversionReportingSettings();\n            if (!(conversionReportingSettings === undefined)) {\n              _context2.next = 7;\n              break;\n            }\n            _context2.next = 7;\n            return fetchGetConversionReportingSettingsStore.actions.fetchGetConversionReportingSettings();\n          case 7:\n          case \"end\":\n            return _context2.stop();\n        }\n      }\n    }, getConversionReportingSettings);\n  })\n};\nvar baseSelectors = {\n  /**\n   * Gets the conversion reporting settings.\n   *\n   * @since 1.144.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Object|undefined)} Conversion reporting settings; `undefined` if not loaded.\n   */\n  getConversionReportingSettings: function getConversionReportingSettings(state) {\n    return state.conversionReportingSettings;\n  },\n  /**\n   * Determines whether the conversion reporting settings are being saved or not.\n   *\n   * @since 1.144.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {boolean} TRUE if the key metrics settings are being saved, otherwise FALSE.\n   */\n  isSavingConversionReportingSettings: function isSavingConversionReportingSettings(state) {\n    // Since isFetchingSaveConversionReportingSettings holds information based on specific values but we only need\n    // generic information here, we need to check whether ANY such request is in progress.\n    return Object.values(state.isFetchingSaveConversionReportingSettings).some(Boolean);\n  },\n  /**\n   * Determines whether the new events callout should be shown or not.\n   *\n   * @since 1.144.0\n   *\n   * @return {boolean} TRUE if the there were new events detected after the callout was dismissed, otherwise FALSE.\n   */\n  haveNewConversionEventsAfterDismiss: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"createRegistrySelector\"])(function (select) {\n    return function (state, newEventsLastSyncedAt) {\n      var _select = select(_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_USER\"]),\n        getConversionReportingSettings = _select.getConversionReportingSettings;\n      var conversionReportingSettings = getConversionReportingSettings();\n      if (!conversionReportingSettings) {\n        return false;\n      }\n      if (newEventsLastSyncedAt > conversionReportingSettings.newEventsCalloutDismissedAt) {\n        return true;\n      }\n      return false;\n    };\n  }),\n  /**\n   * Determines whether the lost events callout should be shown or not.\n   *\n   * @since 1.144.0\n   *\n   * @return {boolean} TRUE if the there were lost events detected after the callout was dismissed, otherwise FALSE.\n   */\n  haveLostConversionEventsAfterDismiss: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"createRegistrySelector\"])(function (select) {\n    return function (state, lostEventsLastSyncedAt) {\n      var _select2 = select(_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_USER\"]),\n        getConversionReportingSettings = _select2.getConversionReportingSettings;\n      var conversionReportingSettings = getConversionReportingSettings();\n      if (!conversionReportingSettings) {\n        return false;\n      }\n      if (lostEventsLastSyncedAt > conversionReportingSettings.lostEventsCalloutDismissedAt) {\n        return true;\n      }\n      return false;\n    };\n  })\n};\nvar store = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"combineStores\"])(fetchGetConversionReportingSettingsStore, fetchSaveConversionReportingSettingsStore, {\n  initialState: baseInitialState,\n  actions: baseActions,\n  resolvers: baseResolvers,\n  selectors: baseSelectors\n});\nvar initialState = store.initialState;\nvar actions = store.actions;\nvar controls = store.controls;\nvar reducer = store.reducer;\nvar resolvers = store.resolvers;\nvar selectors = store.selectors;\n/* harmony default export */ __webpack_exports__[\"default\"] = (store);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/conversion-reporting-settings.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/date-range.js":
/*!*******************************************************!*\
  !*** ./js/googlesitekit/datastore/user/date-range.js ***!
  \*******************************************************/
/*! exports provided: initialState, actions, controls, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _js_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/js/util */ \"./js/util/index.js\");\n/**\n * `core/user` data store: date-range.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\nvar initialState = {\n  dateRange: 'last-28-days',\n  // This is where we actually _set_ the reference date (which should\n  // have a default value of the current date).\n  //\n  // Using `new Date()` here is appropriate.\n  referenceDate: Object(_js_util__WEBPACK_IMPORTED_MODULE_2__[\"getDateString\"])(new Date()) // eslint-disable-line sitekit/no-direct-date\n};\n\n/**\n * Date Range Object.\n *\n * @since 1.18.0\n *\n * @typedef {Object} DateRangeReturnObj\n * @property {string} startDate          Beginning of the original date range.\n * @property {string} endDate            End of the original date range.\n * @property {string} [compareStartDate] Beginning of the comparative date range.\n * @property {string} [compareEndDate]   End of the comparative date range.\n */\n\n// Actions\nvar SET_DATE_RANGE = 'SET_DATE_RANGE';\nvar SET_REFERENCE_DATE = 'SET_REFERENCE_DATE';\nvar actions = {\n  /**\n   * Sets a new date range.\n   *\n   * @since 1.12.0\n   *\n   * @param {string} slug Date range slug.\n   * @return {Object} Redux-style action.\n   */\n  setDateRange: function setDateRange(slug) {\n    invariant__WEBPACK_IMPORTED_MODULE_0___default()(slug, 'Date range slug is required.');\n    invariant__WEBPACK_IMPORTED_MODULE_0___default()(Object(_js_util__WEBPACK_IMPORTED_MODULE_2__[\"isValidDateRange\"])(slug), _js_util__WEBPACK_IMPORTED_MODULE_2__[\"INVALID_DATE_RANGE_ERROR\"]);\n    return {\n      type: SET_DATE_RANGE,\n      payload: {\n        slug: slug\n      }\n    };\n  },\n  /**\n   * Sets the current reference date.\n   *\n   * This should only be used for testing, to enforce another reference date\n   * than today.\n   *\n   * @since 1.22.0\n   * @private\n   *\n   * @param {string} dateString Reference date string as YYYY-MM-DD.\n   * @return {Object} Redux-style action.\n   */\n  setReferenceDate: function setReferenceDate(dateString) {\n    invariant__WEBPACK_IMPORTED_MODULE_0___default()(dateString, 'Date string is required.');\n    invariant__WEBPACK_IMPORTED_MODULE_0___default()(Object(_js_util__WEBPACK_IMPORTED_MODULE_2__[\"isValidDateString\"])(dateString), _js_util__WEBPACK_IMPORTED_MODULE_2__[\"INVALID_DATE_STRING_ERROR\"]);\n    return {\n      type: SET_REFERENCE_DATE,\n      payload: {\n        dateString: dateString\n      }\n    };\n  }\n};\nvar controls = {};\nvar reducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"createReducer\"])(function (state, _ref) {\n  var type = _ref.type,\n    payload = _ref.payload;\n  switch (type) {\n    case SET_DATE_RANGE:\n      state.dateRange = payload.slug;\n      break;\n    case SET_REFERENCE_DATE:\n      state.referenceDate = payload.dateString;\n      break;\n    default:\n      break;\n  }\n});\nvar resolvers = {};\nvar selectors = {\n  /**\n   * Returns the current date range.\n   *\n   * @since 1.12.0\n   *\n   * @param {Object} state The current data store's state.\n   * @return {string} The current date range slug.\n   */\n  getDateRange: function getDateRange(state) {\n    var dateRange = state.dateRange;\n    return dateRange;\n  },\n  /**\n   * Returns the current date range as a list of date strings.\n   *\n   * @since 1.18.0\n   *\n   * @param {Object}  state                   The current data store's state.\n   * @param {Object}  [options]               Options parameter. Default is: {}.\n   * @param {boolean} [options.compare]       Set to true if date ranges to compare should be included. Default is: false.\n   * @param {number}  [options.offsetDays]    Number of days to offset. Default is: 0.\n   * @param {string}  [options.referenceDate] Used for testing to set a static date. Default is the datastore's reference date.\n   * @return {DateRangeReturnObj}             Object containing dates for date ranges.\n   */\n  getDateRangeDates: function getDateRangeDates(state) {\n    var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n      _ref2$compare = _ref2.compare,\n      compare = _ref2$compare === void 0 ? false : _ref2$compare,\n      offsetDays = _ref2.offsetDays,\n      _ref2$referenceDate = _ref2.referenceDate,\n      referenceDate = _ref2$referenceDate === void 0 ? state.referenceDate : _ref2$referenceDate;\n    if (offsetDays === undefined) {\n      global.console.warn('getDateRangeDates was called without offsetDays');\n      offsetDays = 0;\n    }\n    var dateRange = selectors.getDateRange(state);\n    var endDate = Object(_js_util__WEBPACK_IMPORTED_MODULE_2__[\"getPreviousDate\"])(referenceDate, offsetDays);\n    var matches = dateRange.match('-(.*)-');\n    var numberOfDays = Number(matches ? matches[1] : 28);\n    var startDate = Object(_js_util__WEBPACK_IMPORTED_MODULE_2__[\"getPreviousDate\"])(endDate, numberOfDays - 1);\n    var dates = {\n      startDate: startDate,\n      endDate: endDate\n    };\n    if (compare) {\n      var compareEndDate = Object(_js_util__WEBPACK_IMPORTED_MODULE_2__[\"getPreviousDate\"])(startDate, 1);\n      var compareStartDate = Object(_js_util__WEBPACK_IMPORTED_MODULE_2__[\"getPreviousDate\"])(compareEndDate, numberOfDays - 1);\n      dates.compareStartDate = compareStartDate;\n      dates.compareEndDate = compareEndDate;\n    }\n    return dates;\n  },\n  /**\n   * Returns the number of days in the current date range.\n   *\n   * @since 1.26.0\n   *\n   * @param {Object} state The current data store's state.\n   * @return {number}      Integer. The number of days in the current date range.\n   */\n  getDateRangeNumberOfDays: function getDateRangeNumberOfDays(state) {\n    var dateRange = selectors.getDateRange(state);\n    var matches = dateRange.match(/-(\\d+)-/);\n    return parseInt(matches ? matches[1] : 28, 10);\n  },\n  /**\n   * Returns the current reference date, typically today.\n   *\n   * @since 1.22.0\n   *\n   * @param {Object} state The current data store's state.\n   * @return {string} The current reference date as YYYY-MM-DD.\n   */\n  getReferenceDate: function getReferenceDate(state) {\n    return state.referenceDate;\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  initialState: initialState,\n  actions: actions,\n  controls: controls,\n  reducer: reducer,\n  resolvers: resolvers,\n  selectors: selectors\n});\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../node_modules/webpack/buildin/global.js */ \"../node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/date-range.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/disconnect.js":
/*!*******************************************************!*\
  !*** ./js/googlesitekit/datastore/user/disconnect.js ***!
  \*******************************************************/
/*! exports provided: initialState, actions, controls, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! googlesitekit-api */ \"googlesitekit-api\");\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_api__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/js/googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n\n/**\n * `core/user` data store: disconnect\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Internal dependencies\n */\n\n\n\n\nvar fetchDisconnectStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_4__[\"createFetchStore\"])({\n  baseName: 'disconnect',\n  controlCallback: function controlCallback() {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_1__[\"set\"])('core', 'user', 'disconnect');\n  },\n  reducerCallback: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"createReducer\"])(function (state, disconnected) {\n    state.disconnected = disconnected;\n  })\n});\nvar baseInitialState = {\n  disconnected: undefined\n};\nvar baseActions = {\n  disconnect: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function disconnect() {\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function disconnect$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            _context.next = 2;\n            return fetchDisconnectStore.actions.fetchDisconnect();\n          case 2:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, disconnect);\n  })\n};\nvar baseSelectors = {\n  /**\n   * Returns whether a disconnect is occurring.\n   *\n   * @since 1.9.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {boolean} Is a disconnect occurring or not.\n   */\n  isDoingDisconnect: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      return select(_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_USER\"]).isFetchingDisconnect();\n    };\n  })\n};\nvar store = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"combineStores\"])(fetchDisconnectStore, {\n  initialState: baseInitialState,\n  actions: baseActions,\n  selectors: baseSelectors\n});\nvar initialState = store.initialState;\nvar actions = store.actions;\nvar controls = store.controls;\nvar reducer = store.reducer;\nvar resolvers = store.resolvers;\nvar selectors = store.selectors;\n/* harmony default export */ __webpack_exports__[\"default\"] = (store);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L2RhdGFzdG9yZS91c2VyL2Rpc2Nvbm5lY3QuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9nb29nbGVzaXRla2l0L2RhdGFzdG9yZS91c2VyL2Rpc2Nvbm5lY3QuanM/MjhhZiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIGBjb3JlL3VzZXJgIGRhdGEgc3RvcmU6IGRpc2Nvbm5lY3RcbiAqXG4gKiBTaXRlIEtpdCBieSBHb29n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0E7QUFFQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFFQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/disconnect.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/dismissed-items.js":
/*!************************************************************!*\
  !*** ./js/googlesitekit/datastore/user/dismissed-items.js ***!
  \************************************************************/
/*! exports provided: actions, controls, initialState, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! googlesitekit-api */ \"googlesitekit-api\");\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_api__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/js/googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n/* harmony import */ var _js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/js/googlesitekit/data/utils */ \"./js/googlesitekit/data/utils.js\");\n\n\n/**\n * `core/user` data store: dismissed items\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\nvar getRegistry = googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"commonActions\"].getRegistry;\nvar reducerCallback = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"createReducer\"])(function (state, dismissedItems) {\n  state.dismissedItems = Array.isArray(dismissedItems) ? dismissedItems : [];\n});\nvar fetchGetDismissedItemsStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_6__[\"createFetchStore\"])({\n  baseName: 'getDismissedItems',\n  controlCallback: function controlCallback() {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_3__[\"get\"])('core', 'user', 'dismissed-items', {}, {\n      useCache: false\n    });\n  },\n  reducerCallback: reducerCallback\n});\nvar fetchRemoveDismissedItemsStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_6__[\"createFetchStore\"])({\n  baseName: 'removeDismissedItems',\n  controlCallback: function controlCallback(_ref) {\n    var slugs = _ref.slugs;\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_3__[\"set\"])('core', 'user', 'dismissed-items', {\n      slugs: slugs\n    }, {\n      method: 'DELETE'\n    });\n  },\n  reducerCallback: reducerCallback,\n  argsToParams: function argsToParams(slugs) {\n    return {\n      slugs: slugs\n    };\n  },\n  validateParams: function validateParams(_ref2) {\n    var slugs = _ref2.slugs;\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(Array.isArray(slugs), 'slugs must be an array.');\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(slugs.every(function (slug) {\n      return typeof slug === 'string';\n    }), 'All slugs must be strings.');\n  }\n});\nvar fetchDismissItemStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_6__[\"createFetchStore\"])({\n  baseName: 'dismissItem',\n  controlCallback: function controlCallback(_ref3) {\n    var slug = _ref3.slug,\n      expiresInSeconds = _ref3.expiresInSeconds;\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_3__[\"set\"])('core', 'user', 'dismiss-item', {\n      slug: slug,\n      expiration: expiresInSeconds\n    });\n  },\n  reducerCallback: reducerCallback,\n  argsToParams: function argsToParams(slug) {\n    var expiresInSeconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n    return {\n      slug: slug,\n      expiresInSeconds: expiresInSeconds\n    };\n  },\n  validateParams: function validateParams() {\n    var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n      slug = _ref4.slug,\n      expiresInSeconds = _ref4.expiresInSeconds;\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(slug, 'slug is required.');\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(Number.isInteger(expiresInSeconds), 'expiresInSeconds must be an integer.');\n  }\n});\nvar baseInitialState = {\n  dismissedItems: undefined,\n  isDismissingItems: {}\n};\nvar baseActions = {\n  /**\n   * Dismisses the given item by slug.\n   *\n   * @since 1.37.0\n   *\n   * @param {string} slug                       Item slug to dismiss.\n   * @param {Object} options                    Dismiss item options.\n   * @param {number} [options.expiresInSeconds] Optional. An integer number of seconds for expiry. 0 denotes permanent dismissal.\n   * @return {Object} Generator instance.\n   */\n  dismissItem: Object(_js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_7__[\"createValidatedAction\"])(function (slug) {\n    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    var _options$expiresInSec = options.expiresInSeconds,\n      expiresInSeconds = _options$expiresInSec === void 0 ? 0 : _options$expiresInSec;\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(slug, 'A slug is required to dismiss an item.');\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(typeof slug === 'string', 'A slug must be a string.');\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(Number.isInteger(expiresInSeconds), 'expiresInSeconds must be an integer.');\n  }, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(slug) {\n    var options,\n      _options$expiresInSec2,\n      expiresInSeconds,\n      registry,\n      _yield$fetchDismissIt,\n      response,\n      error,\n      _args = arguments;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};\n            _options$expiresInSec2 = options.expiresInSeconds, expiresInSeconds = _options$expiresInSec2 === void 0 ? 0 : _options$expiresInSec2;\n            _context.next = 4;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"commonActions\"].getRegistry();\n          case 4:\n            registry = _context.sent;\n            registry.dispatch(_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_USER\"]).setIsItemDimissing(slug, true);\n            _context.next = 8;\n            return fetchDismissItemStore.actions.fetchDismissItem(slug, expiresInSeconds);\n          case 8:\n            _yield$fetchDismissIt = _context.sent;\n            response = _yield$fetchDismissIt.response;\n            error = _yield$fetchDismissIt.error;\n            registry.dispatch(_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_USER\"]).setIsItemDimissing(slug, false);\n            return _context.abrupt(\"return\", {\n              response: response,\n              error: error\n            });\n          case 13:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, _callee);\n  })),\n  /**\n   * Removes dismissed items by their slugs.\n   *\n   * @since 1.133.0\n   *\n   * @param {...string} slugs Dismissed item slugs to remove.\n   * @return {Object} Redux-style action.\n   */\n  removeDismissedItems: Object(_js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_7__[\"createValidatedAction\"])(function () {\n    for (var _len = arguments.length, slugs = new Array(_len), _key = 0; _key < _len; _key++) {\n      slugs[_key] = arguments[_key];\n    }\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(slugs.length > 0, 'At least one slug must be provided.');\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(slugs.every(function (slug) {\n      return typeof slug === 'string';\n    }), 'All slugs must be strings.');\n  }, function () {\n    for (var _len2 = arguments.length, slugs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n      slugs[_key2] = arguments[_key2];\n    }\n    return fetchRemoveDismissedItemsStore.actions.fetchRemoveDismissedItems(slugs);\n  }),\n  setIsItemDimissing: function setIsItemDimissing(slug, isDismissing) {\n    return {\n      payload: {\n        slug: slug,\n        isDismissing: isDismissing\n      },\n      type: 'SET_IS_ITEM_DISMISSING'\n    };\n  }\n};\nvar baseReducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"createReducer\"])(function (state, _ref5) {\n  var type = _ref5.type,\n    payload = _ref5.payload;\n  switch (type) {\n    case 'SET_IS_ITEM_DISMISSING':\n      {\n        var slug = payload.slug,\n          isDismissing = payload.isDismissing;\n        state.isDismissingItems = _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, slug, isDismissing);\n        break;\n      }\n    default:\n      break;\n  }\n});\nvar baseResolvers = {\n  getDismissedItems: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function getDismissedItems() {\n    var _yield$getRegistry, select, dismissedItems;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function getDismissedItems$(_context2) {\n      while (1) {\n        switch (_context2.prev = _context2.next) {\n          case 0:\n            _context2.next = 2;\n            return getRegistry();\n          case 2:\n            _yield$getRegistry = _context2.sent;\n            select = _yield$getRegistry.select;\n            dismissedItems = select(_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_USER\"]).getDismissedItems();\n            if (!(dismissedItems === undefined)) {\n              _context2.next = 8;\n              break;\n            }\n            _context2.next = 8;\n            return fetchGetDismissedItemsStore.actions.fetchGetDismissedItems();\n          case 8:\n          case \"end\":\n            return _context2.stop();\n        }\n      }\n    }, getDismissedItems);\n  })\n};\nvar baseSelectors = {\n  /**\n   * Gets the list of dismissed items.\n   *\n   * @since 1.37.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(string[]|undefined)} Array of dismissed item slugs, `undefined` if not resolved yet.\n   */\n  getDismissedItems: function getDismissedItems(state) {\n    return state.dismissedItems;\n  },\n  /**\n   * Determines whether the item is dismissed or not.\n   *\n   * @since 1.37.0\n   *\n   * @param {Object} state Data store's state.\n   * @param {string} slug  Item slug.\n   * @return {(boolean|undefined)} TRUE if dismissed, otherwise FALSE, `undefined` if not resolved yet.\n   */\n  isItemDismissed: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"createRegistrySelector\"])(function (select) {\n    return function (state, slug) {\n      var _select$getDismissedI;\n      return (_select$getDismissedI = select(_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_USER\"]).getDismissedItems()) === null || _select$getDismissedI === void 0 ? void 0 : _select$getDismissedI.includes(slug);\n    };\n  }),\n  /**\n   * Checks whether or not the item is being dismissed for the given slug.\n   *\n   * @since 1.48.0\n   *\n   * @param {Object} state Data store's state.\n   * @param {string} slug  Item slug.\n   * @return {(boolean|undefined)} True if the item is being dismissed, otherwise false.\n   */\n  isDismissingItem: function isDismissingItem(state, slug) {\n    return !!state.isDismissingItems[slug];\n  }\n};\nvar _combineStores = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"combineStores\"])({\n    initialState: baseInitialState,\n    actions: baseActions,\n    resolvers: baseResolvers,\n    reducer: baseReducer,\n    selectors: baseSelectors\n  }, fetchDismissItemStore, fetchGetDismissedItemsStore, fetchRemoveDismissedItemsStore),\n  actions = _combineStores.actions,\n  controls = _combineStores.controls,\n  initialState = _combineStores.initialState,\n  reducer = _combineStores.reducer,\n  resolvers = _combineStores.resolvers,\n  selectors = _combineStores.selectors;\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  actions: actions,\n  controls: controls,\n  initialState: initialState,\n  reducer: reducer,\n  resolvers: resolvers,\n  selectors: selectors\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/dismissed-items.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/expirable-items.js":
/*!************************************************************!*\
  !*** ./js/googlesitekit/datastore/user/expirable-items.js ***!
  \************************************************************/
/*! exports provided: actions, controls, initialState, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! googlesitekit-api */ \"googlesitekit-api\");\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_api__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/js/googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n/* harmony import */ var _js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/js/googlesitekit/data/utils */ \"./js/googlesitekit/data/utils.js\");\n\n/**\n * `core/user` data store: expirable items\n *\n * Site Kit by Google, Copyright 2024 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\nvar getRegistry = googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"commonActions\"].getRegistry;\nvar reducerCallback = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"createReducer\"])(function (state, expirableItems) {\n  state.expirableItems = expirableItems;\n});\nvar fetchGetExpirableItemsStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_5__[\"createFetchStore\"])({\n  baseName: 'getExpirableItems',\n  controlCallback: function controlCallback() {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_2__[\"get\"])('core', 'user', 'expirable-items', {}, {\n      useCache: false\n    });\n  },\n  reducerCallback: reducerCallback\n});\nvar fetchSetExpirableItemTimersStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_5__[\"createFetchStore\"])({\n  baseName: 'setExpirableItemTimers',\n  controlCallback: function controlCallback(items) {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_2__[\"set\"])('core', 'user', 'set-expirable-item-timers', items);\n  },\n  reducerCallback: reducerCallback,\n  argsToParams: function argsToParams() {\n    var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n    return items.map(function (item) {\n      var slug = item.slug,\n        expiresInSeconds = item.expiresInSeconds;\n      return {\n        slug: slug,\n        expiration: expiresInSeconds\n      };\n    });\n  },\n  validateParams: function validateParams(items) {\n    invariant__WEBPACK_IMPORTED_MODULE_1___default()(Array.isArray(items), 'items are required.');\n    items.forEach(function (item) {\n      var slug = item.slug,\n        _item$expiresInSecond = item.expiresInSeconds,\n        expiresInSeconds = _item$expiresInSecond === void 0 ? 0 : _item$expiresInSecond;\n      invariant__WEBPACK_IMPORTED_MODULE_1___default()(slug, 'slug is required.');\n      invariant__WEBPACK_IMPORTED_MODULE_1___default()(Number.isInteger(expiresInSeconds), 'expiresInSeconds must be an integer.');\n    });\n  }\n});\nvar baseInitialState = {\n  expirableItems: undefined\n};\nvar baseActions = {\n  setExpirableItemTimers: Object(_js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_6__[\"createValidatedAction\"])(function () {\n    var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n    items.forEach(function (item) {\n      var slug = item.slug,\n        expiresInSeconds = item.expiresInSeconds;\n      invariant__WEBPACK_IMPORTED_MODULE_1___default()(slug, 'An item slug is required.');\n      invariant__WEBPACK_IMPORTED_MODULE_1___default()(Number.isInteger(expiresInSeconds), 'expiresInSeconds must be an integer.');\n    });\n  }, function (items) {\n    return fetchSetExpirableItemTimersStore.actions.fetchSetExpirableItemTimers(items);\n  })\n};\nvar baseResolvers = {\n  getExpirableItems: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function getExpirableItems() {\n    var _yield$getRegistry, select, expirableItems;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function getExpirableItems$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            _context.next = 2;\n            return getRegistry();\n          case 2:\n            _yield$getRegistry = _context.sent;\n            select = _yield$getRegistry.select;\n            expirableItems = select(_constants__WEBPACK_IMPORTED_MODULE_4__[\"CORE_USER\"]).getExpirableItems();\n            if (!(expirableItems === undefined)) {\n              _context.next = 8;\n              break;\n            }\n            _context.next = 8;\n            return fetchGetExpirableItemsStore.actions.fetchGetExpirableItems();\n          case 8:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, getExpirableItems);\n  })\n};\nvar baseSelectors = {\n  /**\n   * Returns the expirable items.\n   *\n   * @since 1.128.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {Array|undefined} Items if exists, `undefined` if not resolved yet.\n   */\n  getExpirableItems: function getExpirableItems(state) {\n    return state.expirableItems;\n  },\n  /**\n   * Determines whether the item exists in expirable items.\n   *\n   * @since 1.128.0\n   *\n   * @param {Object} state Data store's state.\n   * @param {string} slug  Item slug.\n   * @return {(boolean|undefined)} TRUE if exists, otherwise FALSE, `undefined` if not resolved yet.\n   */\n  hasExpirableItem: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"createRegistrySelector\"])(function (select) {\n    return function (state, slug) {\n      var expirableItems = select(_constants__WEBPACK_IMPORTED_MODULE_4__[\"CORE_USER\"]).getExpirableItems();\n      if (expirableItems === undefined) {\n        return undefined;\n      }\n      return expirableItems.hasOwnProperty(slug);\n    };\n  }),\n  /**\n   * Determines whether the item is active and not expired.\n   *\n   * @since 1.128.0\n   *\n   * @param {Object} state Data store's state.\n   * @param {string} slug  Item slug.\n   * @return {(boolean|undefined)} TRUE if exists, otherwise FALSE, `undefined` if not resolved yet.\n   */\n  isExpirableItemActive: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"createRegistrySelector\"])(function (select) {\n    return function (state, slug) {\n      var expirableItems = select(_constants__WEBPACK_IMPORTED_MODULE_4__[\"CORE_USER\"]).getExpirableItems();\n      if (expirableItems === undefined) {\n        return undefined;\n      }\n      var expiresInSeconds = expirableItems[slug];\n      if (expiresInSeconds === undefined) {\n        return false;\n      }\n\n      // We shouldn't use the getReferenceDate selector here because it returns\n      // date only whilst we need the current time as well to properly determine\n      // whether the expiration time passed or not.\n      return expiresInSeconds > Math.floor(Date.now() / 1000); // eslint-disable-line sitekit/no-direct-date\n    };\n  })\n};\nvar _combineStores = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"combineStores\"])({\n    initialState: baseInitialState,\n    actions: baseActions,\n    resolvers: baseResolvers,\n    selectors: baseSelectors\n  }, fetchGetExpirableItemsStore, fetchSetExpirableItemTimersStore),\n  actions = _combineStores.actions,\n  controls = _combineStores.controls,\n  initialState = _combineStores.initialState,\n  reducer = _combineStores.reducer,\n  resolvers = _combineStores.resolvers,\n  selectors = _combineStores.selectors;\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  actions: actions,\n  controls: controls,\n  initialState: initialState,\n  reducer: reducer,\n  resolvers: resolvers,\n  selectors: selectors\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/expirable-items.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/feature-tours.js":
/*!**********************************************************!*\
  !*** ./js/googlesitekit/datastore/user/feature-tours.js ***!
  \**********************************************************/
/*! exports provided: FEATURE_TOUR_COOLDOWN_SECONDS, FEATURE_TOUR_LAST_DISMISSED_AT, actions, controls, initialState, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FEATURE_TOUR_COOLDOWN_SECONDS\", function() { return FEATURE_TOUR_COOLDOWN_SECONDS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FEATURE_TOUR_LAST_DISMISSED_AT\", function() { return FEATURE_TOUR_LAST_DISMISSED_AT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var compare_versions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! compare-versions */ \"../node_modules/compare-versions/index.js\");\n/* harmony import */ var compare_versions__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(compare_versions__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash */ \"../node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! googlesitekit-api */ \"googlesitekit-api\");\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_api__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/js/googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n/* harmony import */ var _js_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/js/googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_feature_tours__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/js/feature-tours */ \"./js/feature-tours/index.js\");\n/* harmony import */ var _js_googlesitekit_api_cache__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/js/googlesitekit/api/cache */ \"./js/googlesitekit/api/cache.js\");\n/* harmony import */ var _js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/js/googlesitekit/data/utils */ \"./js/googlesitekit/data/utils.js\");\n\n\n\nvar _baseControls;\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n/**\n * `core/user` data store: feature tours\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\nvar getRegistry = googlesitekit_data__WEBPACK_IMPORTED_MODULE_7__[\"commonActions\"].getRegistry; // Feature tour cooldown period is 2 hours\nvar FEATURE_TOUR_COOLDOWN_SECONDS = 60 * 60 * 2;\nvar FEATURE_TOUR_LAST_DISMISSED_AT = 'feature_tour_last_dismissed_at';\n\n// Actions.\nvar DISMISS_TOUR = 'DISMISS_TOUR';\nvar RECEIVE_CURRENT_TOUR = 'RECEIVE_CURRENT_TOUR';\nvar RECEIVE_READY_TOURS = 'RECEIVE_READY_TOURS';\nvar RECEIVE_TOURS = 'RECEIVE_TOURS';\nvar CHECK_TOUR_REQUIREMENTS = 'CHECK_TOUR_REQUIREMENTS';\nvar CHECK_ON_DEMAND_TOUR_REQUIREMENTS = 'CHECK_ON_DEMAND_TOUR_REQUIREMENTS';\nvar RECEIVE_LAST_DISMISSED_AT = 'RECEIVE_LAST_DISMISSED_AT';\n\n// Controls.\nvar fetchGetDismissedToursStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_8__[\"createFetchStore\"])({\n  baseName: 'getDismissedTours',\n  controlCallback: function controlCallback() {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_6__[\"get\"])('core', 'user', 'dismissed-tours', {}, {\n      useCache: false\n    });\n  },\n  reducerCallback: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_7__[\"createReducer\"])(function (state, dismissedTourSlugs) {\n    state.dismissedTourSlugs = dismissedTourSlugs;\n  })\n});\nvar fetchDismissTourStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_8__[\"createFetchStore\"])({\n  baseName: 'dismissTour',\n  controlCallback: function controlCallback(_ref) {\n    var slug = _ref.slug;\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_6__[\"set\"])('core', 'user', 'dismiss-tour', {\n      slug: slug\n    });\n  },\n  reducerCallback: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_7__[\"createReducer\"])(function (state, dismissedTourSlugs) {\n    state.dismissedTourSlugs = dismissedTourSlugs;\n  }),\n  argsToParams: function argsToParams(slug) {\n    return {\n      slug: slug\n    };\n  },\n  validateParams: function validateParams() {\n    var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n      slug = _ref2.slug;\n    invariant__WEBPACK_IMPORTED_MODULE_4___default()(slug, 'slug is required.');\n  }\n});\nvar baseInitialState = {\n  lastDismissedAt: undefined,\n  dismissedTourSlugs: undefined,\n  tours: _js_feature_tours__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n  currentTour: undefined,\n  shownTour: undefined\n};\nvar baseActions = {\n  /**\n   * Dismisses the given tour by slug.\n   *\n   * @since 1.27.0\n   *\n   * @param {string} slug Tour slug to dismiss.\n   * @return {Object} Generator instance.\n   */\n  dismissTour: Object(_js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_13__[\"createValidatedAction\"])(function (slug) {\n    invariant__WEBPACK_IMPORTED_MODULE_4___default()(slug, 'A tour slug is required to dismiss a tour.');\n  }, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee(slug) {\n    var _yield$getRegistry, select, response;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            _context.next = 2;\n            return getRegistry();\n          case 2:\n            _yield$getRegistry = _context.sent;\n            select = _yield$getRegistry.select;\n            if (!select(_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_USER\"]).isFetchingDismissTour(slug)) {\n              _context.next = 7;\n              break;\n            }\n            response = select(_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_USER\"]).getDismissedFeatureTourSlugs();\n            return _context.abrupt(\"return\", {\n              response: response,\n              error: undefined\n            });\n          case 7:\n            _context.next = 9;\n            return {\n              type: DISMISS_TOUR,\n              payload: {\n                slug: slug\n              }\n            };\n          case 9:\n            _context.next = 11;\n            return actions.setLastDismissedAt(Date.now());\n          case 11:\n            _context.next = 13;\n            return fetchDismissTourStore.actions.fetchDismissTour(slug);\n          case 13:\n            return _context.abrupt(\"return\", _context.sent);\n          case 14:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, _callee);\n  })),\n  receiveCurrentTour: function receiveCurrentTour(tour) {\n    invariant__WEBPACK_IMPORTED_MODULE_4___default()(Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"isPlainObject\"])(tour) || Object(lodash__WEBPACK_IMPORTED_MODULE_5__[\"isNull\"])(tour), 'tour must be a plain object or null.');\n    return {\n      payload: {\n        tour: tour\n      },\n      type: RECEIVE_CURRENT_TOUR\n    };\n  },\n  receiveFeatureToursForView: function receiveFeatureToursForView(viewTours) {\n    var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n      viewContext = _ref3.viewContext;\n    invariant__WEBPACK_IMPORTED_MODULE_4___default()(Array.isArray(viewTours), 'viewTours must be an array.');\n    invariant__WEBPACK_IMPORTED_MODULE_4___default()(viewContext, 'viewContext is required.');\n    return {\n      payload: {\n        viewTours: viewTours,\n        viewContext: viewContext\n      },\n      type: RECEIVE_READY_TOURS\n    };\n  },\n  receiveAllFeatureTours: function receiveAllFeatureTours(tours) {\n    invariant__WEBPACK_IMPORTED_MODULE_4___default()(Array.isArray(tours), 'tours must be an array.');\n    return {\n      payload: {\n        tours: tours\n      },\n      type: RECEIVE_TOURS\n    };\n  },\n  receiveLastDismissedAt: function receiveLastDismissedAt(timestamp) {\n    invariant__WEBPACK_IMPORTED_MODULE_4___default()(timestamp !== undefined, 'A timestamp is required.');\n    return {\n      type: RECEIVE_LAST_DISMISSED_AT,\n      payload: {\n        timestamp: timestamp\n      }\n    };\n  },\n  setLastDismissedAt: Object(_js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_13__[\"createValidatedAction\"])(function (timestamp) {\n    invariant__WEBPACK_IMPORTED_MODULE_4___default()(timestamp, 'A timestamp is required.');\n  }, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2(timestamp) {\n    var registry;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) {\n      while (1) {\n        switch (_context2.prev = _context2.next) {\n          case 0:\n            _context2.next = 2;\n            return getRegistry();\n          case 2:\n            registry = _context2.sent;\n            registry.dispatch(_js_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_9__[\"CORE_SITE\"]).setCacheItem(FEATURE_TOUR_LAST_DISMISSED_AT, timestamp, {\n              ttl: FEATURE_TOUR_COOLDOWN_SECONDS\n            });\n            _context2.next = 6;\n            return {\n              type: RECEIVE_LAST_DISMISSED_AT,\n              payload: {\n                timestamp: timestamp\n              }\n            };\n          case 6:\n          case \"end\":\n            return _context2.stop();\n        }\n      }\n    }, _callee2);\n  })),\n  triggerTour: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function triggerTour(tour) {\n    var _yield$getRegistry2, select;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function triggerTour$(_context3) {\n      while (1) {\n        switch (_context3.prev = _context3.next) {\n          case 0:\n            _context3.next = 2;\n            return getRegistry();\n          case 2:\n            _yield$getRegistry2 = _context3.sent;\n            select = _yield$getRegistry2.select;\n            if (select(_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_USER\"]).getCurrentTour()) {\n              _context3.next = 7;\n              break;\n            }\n            _context3.next = 7;\n            return baseActions.receiveCurrentTour(tour);\n          case 7:\n          case \"end\":\n            return _context3.stop();\n        }\n      }\n    }, triggerTour);\n  }),\n  triggerOnDemandTour: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function triggerOnDemandTour(tour) {\n    var tourQualifies;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function triggerOnDemandTour$(_context4) {\n      while (1) {\n        switch (_context4.prev = _context4.next) {\n          case 0:\n            _context4.next = 2;\n            return {\n              payload: {\n                tour: tour\n              },\n              type: CHECK_ON_DEMAND_TOUR_REQUIREMENTS\n            };\n          case 2:\n            tourQualifies = _context4.sent;\n            if (!tourQualifies) {\n              _context4.next = 6;\n              break;\n            }\n            _context4.next = 6;\n            return baseActions.triggerTour(tour);\n          case 6:\n          case \"end\":\n            return _context4.stop();\n        }\n      }\n    }, triggerOnDemandTour);\n  }),\n  triggerTourForView: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function triggerTourForView(viewContext) {\n    var _yield$getRegistry3, select, resolveSelect, tours, _iterator, _step, tour, tourQualifies;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function triggerTourForView$(_context5) {\n      while (1) {\n        switch (_context5.prev = _context5.next) {\n          case 0:\n            _context5.next = 2;\n            return getRegistry();\n          case 2:\n            _yield$getRegistry3 = _context5.sent;\n            select = _yield$getRegistry3.select;\n            resolveSelect = _yield$getRegistry3.resolveSelect;\n            _context5.next = 7;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_7__[\"commonActions\"].await(resolveSelect(_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_USER\"]).getLastDismissedAt());\n          case 7:\n            if (!select(_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_USER\"]).areFeatureToursOnCooldown()) {\n              _context5.next = 9;\n              break;\n            }\n            return _context5.abrupt(\"return\", {});\n          case 9:\n            tours = select(_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_USER\"]).getAllFeatureTours();\n            _iterator = _createForOfIteratorHelper(tours);\n            _context5.prev = 11;\n            _iterator.s();\n          case 13:\n            if ((_step = _iterator.n()).done) {\n              _context5.next = 24;\n              break;\n            }\n            tour = _step.value;\n            _context5.next = 17;\n            return {\n              payload: {\n                tour: tour,\n                viewContext: viewContext\n              },\n              type: CHECK_TOUR_REQUIREMENTS\n            };\n          case 17:\n            tourQualifies = _context5.sent;\n            if (!tourQualifies) {\n              _context5.next = 22;\n              break;\n            }\n            _context5.next = 21;\n            return baseActions.triggerTour(tour);\n          case 21:\n            return _context5.abrupt(\"return\", tour);\n          case 22:\n            _context5.next = 13;\n            break;\n          case 24:\n            _context5.next = 29;\n            break;\n          case 26:\n            _context5.prev = 26;\n            _context5.t0 = _context5[\"catch\"](11);\n            _iterator.e(_context5.t0);\n          case 29:\n            _context5.prev = 29;\n            _iterator.f();\n            return _context5.finish(29);\n          case 32:\n            _context5.next = 34;\n            return baseActions.triggerTour(null);\n          case 34:\n            return _context5.abrupt(\"return\", null);\n          case 35:\n          case \"end\":\n            return _context5.stop();\n        }\n      }\n    }, triggerTourForView, null, [[11, 26, 29, 32]]);\n  })\n};\nvar baseControls = (_baseControls = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_baseControls, CHECK_TOUR_REQUIREMENTS, Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_7__[\"createRegistryControl\"])(function (registry) {\n  return /*#__PURE__*/function () {\n    var _ref5 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3(_ref4) {\n      var payload, tour, viewContext, initialVersion;\n      return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context6) {\n        while (1) {\n          switch (_context6.prev = _context6.next) {\n            case 0:\n              payload = _ref4.payload;\n              tour = payload.tour, viewContext = payload.viewContext; // Check the view context.\n              if (tour.contexts.includes(viewContext)) {\n                _context6.next = 4;\n                break;\n              }\n              return _context6.abrupt(\"return\", false);\n            case 4:\n              _context6.next = 6;\n              return registry.resolveSelect(_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_USER\"]).getInitialSiteKitVersion();\n            case 6:\n              initialVersion = _context6.sent;\n              if (initialVersion) {\n                _context6.next = 11;\n                break;\n              }\n              return _context6.abrupt(\"return\", false);\n            case 11:\n              if (!compare_versions__WEBPACK_IMPORTED_MODULE_3___default.a.compare(initialVersion, tour.version, '>=')) {\n                _context6.next = 13;\n                break;\n              }\n              return _context6.abrupt(\"return\", false);\n            case 13:\n              _context6.next = 15;\n              return registry.resolveSelect(_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_USER\"]).getDismissedFeatureTourSlugs();\n            case 15:\n              if (!registry.select(_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_USER\"]).isTourDismissed(tour.slug)) {\n                _context6.next = 17;\n                break;\n              }\n              return _context6.abrupt(\"return\", false);\n            case 17:\n              if (!tour.checkRequirements) {\n                _context6.next = 21;\n                break;\n              }\n              _context6.next = 20;\n              return tour.checkRequirements(registry);\n            case 20:\n              return _context6.abrupt(\"return\", !!_context6.sent);\n            case 21:\n              return _context6.abrupt(\"return\", true);\n            case 22:\n            case \"end\":\n              return _context6.stop();\n          }\n        }\n      }, _callee3);\n    }));\n    return function (_x) {\n      return _ref5.apply(this, arguments);\n    };\n  }();\n})), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_baseControls, CHECK_ON_DEMAND_TOUR_REQUIREMENTS, Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_7__[\"createRegistryControl\"])(function (registry) {\n  return /*#__PURE__*/function () {\n    var _ref7 = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4(_ref6) {\n      var payload, tour;\n      return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context7) {\n        while (1) {\n          switch (_context7.prev = _context7.next) {\n            case 0:\n              payload = _ref6.payload;\n              tour = payload.tour; // Check if the tour has already been dismissed.\n              // Here we need to first await the underlying selector with the asynchronous resolver.\n              _context7.next = 4;\n              return registry.resolveSelect(_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_USER\"]).getDismissedFeatureTourSlugs();\n            case 4:\n              if (!registry.select(_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_USER\"]).isTourDismissed(tour.slug)) {\n                _context7.next = 6;\n                break;\n              }\n              return _context7.abrupt(\"return\", false);\n            case 6:\n              if (!tour.checkRequirements) {\n                _context7.next = 10;\n                break;\n              }\n              _context7.next = 9;\n              return tour.checkRequirements(registry);\n            case 9:\n              return _context7.abrupt(\"return\", !!_context7.sent);\n            case 10:\n              return _context7.abrupt(\"return\", true);\n            case 11:\n            case \"end\":\n              return _context7.stop();\n          }\n        }\n      }, _callee4);\n    }));\n    return function (_x2) {\n      return _ref7.apply(this, arguments);\n    };\n  }();\n})), _baseControls);\nvar baseReducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_7__[\"createReducer\"])(function (state, _ref8) {\n  var _state$currentTour;\n  var type = _ref8.type,\n    payload = _ref8.payload;\n  switch (type) {\n    case DISMISS_TOUR:\n      var slug = payload.slug;\n      var _state$dismissedTourS = state.dismissedTourSlugs,\n        dismissedTourSlugs = _state$dismissedTourS === void 0 ? [] : _state$dismissedTourS;\n      if (dismissedTourSlugs.includes(slug)) {\n        break;\n      }\n      state.currentTour = ((_state$currentTour = state.currentTour) === null || _state$currentTour === void 0 ? void 0 : _state$currentTour.slug) === slug ? null : state.currentTour;\n      state.dismissedTourSlugs = dismissedTourSlugs.concat(slug);\n      break;\n    case RECEIVE_CURRENT_TOUR:\n      state.currentTour = payload.tour;\n      state.shownTour = payload.tour;\n      break;\n    case RECEIVE_READY_TOURS:\n      var viewContext = payload.viewContext,\n        viewTours = payload.viewTours;\n      state.viewTours = _objectSpread(_objectSpread({}, state.viewTours), {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, viewContext, viewTours));\n      break;\n    case RECEIVE_TOURS:\n      state.tours = payload.tours;\n      break;\n    case RECEIVE_LAST_DISMISSED_AT:\n      state.lastDismissedAt = payload.timestamp;\n      break;\n    default:\n      break;\n  }\n});\nvar baseResolvers = {\n  getDismissedFeatureTourSlugs: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function getDismissedFeatureTourSlugs() {\n    var _yield$getRegistry4, select, tours;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function getDismissedFeatureTourSlugs$(_context8) {\n      while (1) {\n        switch (_context8.prev = _context8.next) {\n          case 0:\n            _context8.next = 2;\n            return getRegistry();\n          case 2:\n            _yield$getRegistry4 = _context8.sent;\n            select = _yield$getRegistry4.select;\n            tours = select(_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_USER\"]).getDismissedFeatureTourSlugs();\n            if (!(tours === undefined)) {\n              _context8.next = 8;\n              break;\n            }\n            _context8.next = 8;\n            return fetchGetDismissedToursStore.actions.fetchGetDismissedTours();\n          case 8:\n          case \"end\":\n            return _context8.stop();\n        }\n      }\n    }, getDismissedFeatureTourSlugs);\n  }),\n  getLastDismissedAt: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function getLastDismissedAt() {\n    var _yield$commonActions$, lastDismissedAt;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function getLastDismissedAt$(_context9) {\n      while (1) {\n        switch (_context9.prev = _context9.next) {\n          case 0:\n            _context9.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_7__[\"commonActions\"].await(Object(_js_googlesitekit_api_cache__WEBPACK_IMPORTED_MODULE_12__[\"getItem\"])(FEATURE_TOUR_LAST_DISMISSED_AT));\n          case 2:\n            _yield$commonActions$ = _context9.sent;\n            lastDismissedAt = _yield$commonActions$.value;\n            _context9.next = 6;\n            return actions.receiveLastDismissedAt(lastDismissedAt || null);\n          case 6:\n          case \"end\":\n            return _context9.stop();\n        }\n      }\n    }, getLastDismissedAt);\n  })\n};\nvar baseSelectors = {\n  /**\n   * Gets the currently active tour object.\n   *\n   * @since 1.79.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Object|null)} Active tour object.\n   */\n  getCurrentTour: function getCurrentTour(state) {\n    return state.currentTour;\n  },\n  /**\n   * Gets the feature tour that has been already shown in the current page view.\n   *\n   * @since 1.99.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Object|undefined)} Shown tour object.\n   */\n  getShownTour: function getShownTour(state) {\n    return state.shownTour;\n  },\n  /**\n   * Gets the list of dismissed tour slugs.\n   *\n   * @since 1.27.0\n   * @since 1.29.0 Renamed from getDismissedTours.\n   * @private\n   *\n   * @param {Object} state Data store's state.\n   * @return {(string[]|undefined)} Array of dismissed tour slugs,\n   *                                `undefined` if not resolved yet.\n   */\n  getDismissedFeatureTourSlugs: function getDismissedFeatureTourSlugs(state) {\n    return state.dismissedTourSlugs;\n  },\n  /**\n   * Gets a list of all tour objects.\n   *\n   * @since 1.29.0\n   * @private\n   *\n   * @param {Object} state Data store's state.\n   * @return {Object[]} Array of tour objects.\n   */\n  getAllFeatureTours: function getAllFeatureTours(state) {\n    return state.tours;\n  },\n  /**\n   * Checks whether or not the given tour is dismissed.\n   *\n   * @since 1.27.0\n   *\n   * @param {Object} state Data store's state.\n   * @param {string} slug  Tour slug to check.\n   * @return {(boolean|undefined)} `undefined` if dismissed tours are not loaded yet,\n   *                               `true` if dismissed,\n   *                               `false` if not dismissed.\n   */\n  isTourDismissed: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_7__[\"createRegistrySelector\"])(function (select) {\n    return function (state, slug) {\n      var dismissedTourSlugs = select(_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_USER\"]).getDismissedFeatureTourSlugs();\n      if (undefined === dismissedTourSlugs) {\n        return undefined;\n      }\n      return dismissedTourSlugs.includes(slug);\n    };\n  }),\n  /**\n   * Gets the timestamp for the last dismissed feature tour.\n   *\n   * @since 1.29.0\n   * @private\n   *\n   * @param {Object} state Data store's state.\n   * @return {(number|null|undefined)} Timestamp of the last dismissal\n   *                                   `null` if no timestamp exists\n   *                                    or `undefined` if value is unresolved.\n   */\n  getLastDismissedAt: function getLastDismissedAt(state) {\n    return state.lastDismissedAt;\n  },\n  /**\n   * Determines whether feature tours are on cooldown (i.e. the last\n   * dismissal was within the cooldown time span).\n   *\n   * @since 1.29.0\n   * @private\n   *\n   * @param {Object} state Data store's state.\n   * @return {undefined|boolean} Whether feature tours are on cooldown or undefined.\n   */\n  areFeatureToursOnCooldown: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_7__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var lastDismissedAt = select(_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_USER\"]).getLastDismissedAt();\n      if (undefined === lastDismissedAt) {\n        return undefined;\n      }\n      // If null, there is no value in the cache, or it has expired.\n      if (null === lastDismissedAt) {\n        return false;\n      }\n      var coolDownPeriodMilliseconds = FEATURE_TOUR_COOLDOWN_SECONDS * 1000;\n      var coolDownExpiresAt = lastDismissedAt + coolDownPeriodMilliseconds;\n\n      // When using feature tour cooldowns, we should compare the actual\n      // time with the cooldown time. Comparing the reference date with\n      // the cooldown time expiration would not be accurate (and somewhat\n      // confusing during testing).\n      return Date.now() < coolDownExpiresAt; // eslint-disable-line sitekit/no-direct-date\n    };\n  })\n};\nvar _combineStores = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_7__[\"combineStores\"])({\n    initialState: baseInitialState,\n    actions: baseActions,\n    controls: baseControls,\n    reducer: baseReducer,\n    resolvers: baseResolvers,\n    selectors: baseSelectors\n  }, fetchDismissTourStore, fetchGetDismissedToursStore),\n  actions = _combineStores.actions,\n  controls = _combineStores.controls,\n  initialState = _combineStores.initialState,\n  reducer = _combineStores.reducer,\n  resolvers = _combineStores.resolvers,\n  selectors = _combineStores.selectors;\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  actions: actions,\n  controls: controls,\n  initialState: initialState,\n  reducer: reducer,\n  resolvers: resolvers,\n  selectors: selectors\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/feature-tours.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/index.js":
/*!**************************************************!*\
  !*** ./js/googlesitekit/datastore/user/index.js ***!
  \**************************************************/
/*! exports provided: initialState, actions, controls, reducer, resolvers, selectors, registerStore, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"registerStore\", function() { return registerStore; });\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _js_googlesitekit_data_create_error_store__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/js/googlesitekit/data/create-error-store */ \"./js/googlesitekit/data/create-error-store.js\");\n/* harmony import */ var _adblocker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./adblocker */ \"./js/googlesitekit/datastore/user/adblocker.js\");\n/* harmony import */ var _audience_settings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./audience-settings */ \"./js/googlesitekit/datastore/user/audience-settings.js\");\n/* harmony import */ var _authentication__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./authentication */ \"./js/googlesitekit/datastore/user/authentication.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _date_range__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./date-range */ \"./js/googlesitekit/datastore/user/date-range.js\");\n/* harmony import */ var _disconnect__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./disconnect */ \"./js/googlesitekit/datastore/user/disconnect.js\");\n/* harmony import */ var _dismissed_items__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./dismissed-items */ \"./js/googlesitekit/datastore/user/dismissed-items.js\");\n/* harmony import */ var _expirable_items__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./expirable-items */ \"./js/googlesitekit/datastore/user/expirable-items.js\");\n/* harmony import */ var _feature_tours__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./feature-tours */ \"./js/googlesitekit/datastore/user/feature-tours.js\");\n/* harmony import */ var _key_metrics__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./key-metrics */ \"./js/googlesitekit/datastore/user/key-metrics.js\");\n/* harmony import */ var _notifications__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./notifications */ \"./js/googlesitekit/datastore/user/notifications.js\");\n/* harmony import */ var _nonces__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./nonces */ \"./js/googlesitekit/datastore/user/nonces.js\");\n/* harmony import */ var _permissions__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./permissions */ \"./js/googlesitekit/datastore/user/permissions.js\");\n/* harmony import */ var _prompts__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./prompts */ \"./js/googlesitekit/datastore/user/prompts.js\");\n/* harmony import */ var _surveys__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./surveys */ \"./js/googlesitekit/datastore/user/surveys.js\");\n/* harmony import */ var _tracking__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./tracking */ \"./js/googlesitekit/datastore/user/tracking.js\");\n/* harmony import */ var _user_info__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./user-info */ \"./js/googlesitekit/datastore/user/user-info.js\");\n/* harmony import */ var _user_input_settings__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./user-input-settings */ \"./js/googlesitekit/datastore/user/user-input-settings.js\");\n/* harmony import */ var _conversion_reporting_settings__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./conversion-reporting-settings */ \"./js/googlesitekit/datastore/user/conversion-reporting-settings.js\");\n/* harmony import */ var _proactive_user_engagement_settings__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./proactive-user-engagement-settings */ \"./js/googlesitekit/datastore/user/proactive-user-engagement-settings.js\");\n/**\n * `core/user` data store\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar store = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_0__[\"combineStores\"])(googlesitekit_data__WEBPACK_IMPORTED_MODULE_0__[\"commonStore\"], Object(_js_googlesitekit_data_create_error_store__WEBPACK_IMPORTED_MODULE_1__[\"createErrorStore\"])(_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_USER\"]), _adblocker__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _audience_settings__WEBPACK_IMPORTED_MODULE_3__[\"default\"], _authentication__WEBPACK_IMPORTED_MODULE_4__[\"default\"], _date_range__WEBPACK_IMPORTED_MODULE_6__[\"default\"], _disconnect__WEBPACK_IMPORTED_MODULE_7__[\"default\"], _dismissed_items__WEBPACK_IMPORTED_MODULE_8__[\"default\"], _expirable_items__WEBPACK_IMPORTED_MODULE_9__[\"default\"], _feature_tours__WEBPACK_IMPORTED_MODULE_10__[\"default\"], _key_metrics__WEBPACK_IMPORTED_MODULE_11__[\"default\"], _notifications__WEBPACK_IMPORTED_MODULE_12__[\"default\"], _permissions__WEBPACK_IMPORTED_MODULE_14__[\"default\"], _prompts__WEBPACK_IMPORTED_MODULE_15__[\"default\"], _nonces__WEBPACK_IMPORTED_MODULE_13__[\"default\"], _surveys__WEBPACK_IMPORTED_MODULE_16__[\"default\"], _tracking__WEBPACK_IMPORTED_MODULE_17__[\"default\"], _user_info__WEBPACK_IMPORTED_MODULE_18__[\"default\"], _user_input_settings__WEBPACK_IMPORTED_MODULE_19__[\"default\"], _conversion_reporting_settings__WEBPACK_IMPORTED_MODULE_20__[\"default\"], _proactive_user_engagement_settings__WEBPACK_IMPORTED_MODULE_21__[\"default\"]);\nvar initialState = store.initialState,\n  actions = store.actions,\n  controls = store.controls,\n  reducer = store.reducer,\n  resolvers = store.resolvers,\n  selectors = store.selectors;\n\nfunction registerStore(registry) {\n  var _global$_googlesiteki;\n  registry.registerStore(_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_USER\"], store);\n\n  // If a reference date was set by the server, set it in the store.\n  if ((_global$_googlesiteki = global._googlesitekitBaseData) === null || _global$_googlesiteki === void 0 ? void 0 : _global$_googlesiteki.referenceDate) {\n    registry.dispatch(_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_USER\"]).setReferenceDate(global._googlesitekitBaseData.referenceDate);\n  }\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (store);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../node_modules/webpack/buildin/global.js */ \"../node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/index.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/key-metrics.js":
/*!********************************************************!*\
  !*** ./js/googlesitekit/datastore/user/key-metrics.js ***!
  \********************************************************/
/*! exports provided: initialState, actions, controls, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"../node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! googlesitekit-api */ \"googlesitekit-api\");\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/js/googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _js_googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/js/googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _js_googlesitekit_widgets_datastore_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/js/googlesitekit/widgets/datastore/constants */ \"./js/googlesitekit/widgets/datastore/constants.js\");\n/* harmony import */ var _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/js/modules/analytics-4/datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/js/googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n/* harmony import */ var _js_googlesitekit_data_create_error_store__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/js/googlesitekit/data/create-error-store */ \"./js/googlesitekit/data/create-error-store.js\");\n/* harmony import */ var _js_components_KeyMetrics_key_metrics_widgets__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/js/components/KeyMetrics/key-metrics-widgets */ \"./js/components/KeyMetrics/key-metrics-widgets.js\");\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n/**\n * Site Kit by Google, Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\n\n\nvar receiveError = _js_googlesitekit_data_create_error_store__WEBPACK_IMPORTED_MODULE_13__[\"actions\"].receiveError,\n  clearError = _js_googlesitekit_data_create_error_store__WEBPACK_IMPORTED_MODULE_13__[\"actions\"].clearError;\nvar SET_KEY_METRICS_SETTING = 'SET_KEY_METRICS_SETTING';\nvar baseInitialState = {\n  keyMetricsSettings: undefined\n};\nvar fetchStoreReducerCallback = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createReducer\"])(function (state, keyMetricsSettings) {\n  state.keyMetricsSettings = keyMetricsSettings;\n});\nvar fetchGetKeyMetricsSettingsStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_12__[\"createFetchStore\"])({\n  baseName: 'getKeyMetricsSettings',\n  controlCallback: function controlCallback() {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__[\"get\"])('core', 'user', 'key-metrics', undefined, {\n      // Never cache key metrics requests, we want them to be\n      // up-to-date with what's in settings, and they don't\n      // make requests to Google APIs so it's not a slow request.\n      useCache: false\n    });\n  },\n  reducerCallback: fetchStoreReducerCallback\n});\nvar fetchSaveKeyMetricsSettingsStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_12__[\"createFetchStore\"])({\n  baseName: 'saveKeyMetricsSettings',\n  controlCallback: function controlCallback(settings) {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__[\"set\"])('core', 'user', 'key-metrics', {\n      settings: settings\n    });\n  },\n  reducerCallback: fetchStoreReducerCallback,\n  argsToParams: function argsToParams(settings) {\n    return settings;\n  },\n  validateParams: function validateParams(settings) {\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()(Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"isPlainObject\"])(settings), 'Settings should be an object.');\n  }\n});\nvar baseActions = {\n  /**\n   * Sets key metrics setting.\n   *\n   * @since 1.103.0\n   *\n   * @param {string}         settingID Setting key.\n   * @param {Array.<string>} value     Setting value.\n   * @return {Object} Redux-style action.\n   */\n  setKeyMetricsSetting: function setKeyMetricsSetting(settingID, value) {\n    return {\n      type: SET_KEY_METRICS_SETTING,\n      payload: {\n        settingID: settingID,\n        value: value\n      }\n    };\n  },\n  /**\n   * Saves key metrics settings.\n   *\n   * @since 1.103.0\n   * @since 1.107.0 Accepts an optional `settings` parameter that allows saving additional settings.\n   *\n   * @param {Object} settings Optional. By default, this saves whatever there is in the store. Use this object to save additional settings.\n   * @return {Object} Object with `response` and `error`.\n   */\n  saveKeyMetricsSettings: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function saveKeyMetricsSettings() {\n    var settings,\n      registry,\n      keyMetricsSettings,\n      _yield$fetchSaveKeyMe,\n      response,\n      error,\n      _args = arguments;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function saveKeyMetricsSettings$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            settings = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};\n            invariant__WEBPACK_IMPORTED_MODULE_3___default()(Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"isPlainObject\"])(settings), 'key metric settings should be an object to save.');\n            _context.next = 4;\n            return clearError('saveKeyMetricsSettings', []);\n          case 4:\n            _context.next = 6;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"commonActions\"].getRegistry();\n          case 6:\n            registry = _context.sent;\n            keyMetricsSettings = registry.select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getKeyMetricsSettings();\n            _context.next = 10;\n            return fetchSaveKeyMetricsSettingsStore.actions.fetchSaveKeyMetricsSettings(_objectSpread(_objectSpread({}, keyMetricsSettings), settings));\n          case 10:\n            _yield$fetchSaveKeyMe = _context.sent;\n            response = _yield$fetchSaveKeyMe.response;\n            error = _yield$fetchSaveKeyMe.error;\n            if (!error) {\n              _context.next = 18;\n              break;\n            }\n            _context.next = 16;\n            return receiveError(error, 'saveKeyMetricsSettings', []);\n          case 16:\n            _context.next = 19;\n            break;\n          case 18:\n            if (Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"isEmpty\"])(settings) || settings.widgetSlugs) {\n              // Update the `keyMetricsSetupCompletedBy` value to mark setup completed.\n              // This will be handled automatically on the back end.\n              registry.dispatch(_js_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_8__[\"CORE_SITE\"]).setKeyMetricsSetupCompletedBy(registry.select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getID());\n            }\n          case 19:\n            return _context.abrupt(\"return\", {\n              response: response,\n              error: error\n            });\n          case 20:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, saveKeyMetricsSettings);\n  })\n};\nvar baseControls = {};\nvar baseReducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createReducer\"])(function (state, action) {\n  var type = action.type,\n    payload = action.payload;\n  switch (type) {\n    case SET_KEY_METRICS_SETTING:\n      {\n        if (!state.keyMetricsSettings) {\n          state.keyMetricsSettings = {};\n        }\n        state.keyMetricsSettings[payload.settingID] = payload.value;\n        break;\n      }\n    default:\n      {\n        break;\n      }\n  }\n});\nvar baseResolvers = {\n  getKeyMetricsSettings: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function getKeyMetricsSettings() {\n    var registry, keyMetricsSettings;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function getKeyMetricsSettings$(_context2) {\n      while (1) {\n        switch (_context2.prev = _context2.next) {\n          case 0:\n            _context2.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"commonActions\"].getRegistry();\n          case 2:\n            registry = _context2.sent;\n            keyMetricsSettings = registry.select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getKeyMetricsSettings();\n            if (!keyMetricsSettings) {\n              _context2.next = 6;\n              break;\n            }\n            return _context2.abrupt(\"return\");\n          case 6:\n            _context2.next = 8;\n            return fetchGetKeyMetricsSettingsStore.actions.fetchGetKeyMetricsSettings();\n          case 8:\n          case \"end\":\n            return _context2.stop();\n        }\n      }\n    }, getKeyMetricsSettings);\n  })\n};\nvar baseSelectors = {\n  /**\n   * Gets currently selected key metrics based on either the user picked metrics or the answer based metrics.\n   *\n   * @since 1.103.0\n   *\n   * @return {Array<string>|undefined} An array of key metric slugs, or undefined while loading.\n   */\n  getKeyMetrics: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var _select = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]),\n        getAnswerBasedMetrics = _select.getAnswerBasedMetrics,\n        getUserPickedMetrics = _select.getUserPickedMetrics;\n      var userPickedMetrics = getUserPickedMetrics();\n      if (userPickedMetrics === undefined) {\n        return undefined;\n      }\n      if (userPickedMetrics.length) {\n        return userPickedMetrics;\n      }\n      var answerBasedMetrics = getAnswerBasedMetrics();\n      if (answerBasedMetrics === undefined) {\n        return undefined;\n      }\n      if (answerBasedMetrics.length) {\n        return answerBasedMetrics;\n      }\n      var isKeyMetricsSetupCompleted = select(_js_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_8__[\"CORE_SITE\"]).isKeyMetricsSetupCompleted();\n      if (isKeyMetricsSetupCompleted) {\n        return [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_NEW_VISITORS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_ENGAGED_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_SEARCH_CONSOLE_POPULAR_KEYWORDS\"]];\n      }\n      return [];\n    };\n  }),\n  /**\n   * Gets the Key Metric widget slugs.\n   *\n   * @since 1.141.0\n   *\n   * @return {Array<string>|undefined} An array of Key Metric widget slugs.\n   */\n  getRegularKeyMetricsWidgetIDs: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var postTypes = select(_js_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_8__[\"CORE_SITE\"]).getPostTypes() || [];\n      var hasProductPostType = postTypes.some(function (_ref) {\n        var slug = _ref.slug;\n        return slug === 'product';\n      });\n      return {\n        publish_blog: [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_RETURNING_VISITORS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_NEW_VISITORS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_ENGAGED_TRAFFIC_SOURCE\"]],\n        publish_news: [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_PAGES_PER_VISIT\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_VISIT_LENGTH\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_VISITS_PER_VISITOR\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_MOST_ENGAGING_PAGES\"]],\n        monetize_content: [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_POPULAR_CONTENT\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_ENGAGED_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_NEW_VISITORS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE\"]],\n        sell_products_or_service: [hasProductPostType ? _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_POPULAR_PRODUCTS\"] : _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_POPULAR_CONTENT\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_ENGAGED_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_SEARCH_CONSOLE_POPULAR_KEYWORDS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE\"]],\n        sell_products: [hasProductPostType ? _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_POPULAR_PRODUCTS\"] : _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_POPULAR_CONTENT\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_ADSENSE_TOP_EARNING_CONTENT\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_SEARCH_CONSOLE_POPULAR_KEYWORDS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_CONVERTING_TRAFFIC_SOURCE\"]],\n        provide_services: [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_ENGAGED_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_SEARCH_CONSOLE_POPULAR_KEYWORDS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_POPULAR_CONTENT\"]],\n        share_portfolio: [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_NEW_VISITORS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_ENGAGED_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_SEARCH_CONSOLE_POPULAR_KEYWORDS\"]]\n      };\n    };\n  }),\n  /**\n   * Gets the Conversion Key Reporting Metric widget slugs.\n   *\n   * @since 1.141.0\n   *\n   * @return {Array<string>|undefined} An array of Key Metric widget slugs.\n   */\n  getConversionTailoredKeyMetricsWidgetIDs: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function (state, includeConversionTailoredMetrics) {\n      var _select$getPostTypes;\n      var postTypes = (_select$getPostTypes = select(_js_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_8__[\"CORE_SITE\"]).getPostTypes()) !== null && _select$getPostTypes !== void 0 ? _select$getPostTypes : [];\n      var hasProductPostType = postTypes.some(function (_ref2) {\n        var slug = _ref2.slug;\n        return slug === 'product';\n      });\n      var userInputSettings = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getUserInputSettings();\n      function showConversionTailoredMetrics(events) {\n        return events.some(function (event) {\n          var _userInputSettings$in, _userInputSettings$in2;\n          return (userInputSettings === null || userInputSettings === void 0 ? void 0 : (_userInputSettings$in = userInputSettings.includeConversionEvents) === null || _userInputSettings$in === void 0 ? void 0 : (_userInputSettings$in2 = _userInputSettings$in.values) === null || _userInputSettings$in2 === void 0 ? void 0 : _userInputSettings$in2.includes(event)) || Array.isArray(includeConversionTailoredMetrics) && (includeConversionTailoredMetrics === null || includeConversionTailoredMetrics === void 0 ? void 0 : includeConversionTailoredMetrics.includes(event));\n        });\n      }\n      return {\n        publish_blog: [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_CATEGORIES\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_CONVERTING_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_RETURNING_VISITOR_PAGES\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_SEARCH_CONSOLE_POPULAR_KEYWORDS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_RECENT_TRENDING_PAGES\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE\"]].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(showConversionTailoredMetrics([_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__[\"ENUM_CONVERSION_EVENTS\"].CONTACT, _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__[\"ENUM_CONVERSION_EVENTS\"].GENERATE_LEAD, _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__[\"ENUM_CONVERSION_EVENTS\"].SUBMIT_LEAD_FORM]) ? [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_PAGES_DRIVING_LEADS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_LEADS\"]] : [])),\n        publish_news: [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_ENGAGED_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_POPULAR_AUTHORS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_CITIES\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_SEARCH_CONSOLE_POPULAR_KEYWORDS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_RECENT_TRENDING_PAGES\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE\"]].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(showConversionTailoredMetrics([_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__[\"ENUM_CONVERSION_EVENTS\"].CONTACT, _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__[\"ENUM_CONVERSION_EVENTS\"].GENERATE_LEAD, _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__[\"ENUM_CONVERSION_EVENTS\"].SUBMIT_LEAD_FORM]) ? [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_PAGES_DRIVING_LEADS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_LEADS\"]] : [])),\n        monetize_content: [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_MOST_ENGAGING_PAGES\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_POPULAR_CONTENT\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_NEW_VISITORS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_ADSENSE_TOP_EARNING_CONTENT\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_VISIT_LENGTH\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_VISITS_PER_VISITOR\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_ENGAGED_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_SEARCH_CONSOLE_POPULAR_KEYWORDS\"]],\n        sell_products_or_service: [hasProductPostType ? _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_POPULAR_PRODUCTS\"] : _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_POPULAR_CONTENT\"]].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(showConversionTailoredMetrics([_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__[\"ENUM_CONVERSION_EVENTS\"].PURCHASE]) ? [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_CITIES_DRIVING_PURCHASES\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_DEVICE_DRIVING_PURCHASES\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_PURCHASES\"]] : []), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(showConversionTailoredMetrics([_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__[\"ENUM_CONVERSION_EVENTS\"].ADD_TO_CART]) ? [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_ADD_TO_CART\"]] : []), [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_ADSENSE_TOP_EARNING_CONTENT\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_CONVERTING_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_SEARCH_CONSOLE_POPULAR_KEYWORDS\"]]),\n        sell_products: [hasProductPostType ? _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_POPULAR_PRODUCTS\"] : _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_POPULAR_CONTENT\"]].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(showConversionTailoredMetrics([_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__[\"ENUM_CONVERSION_EVENTS\"].PURCHASE]) ? [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_CITIES_DRIVING_PURCHASES\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_DEVICE_DRIVING_PURCHASES\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_PURCHASES\"]] : []), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(showConversionTailoredMetrics([_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__[\"ENUM_CONVERSION_EVENTS\"].ADD_TO_CART]) ? [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_ADD_TO_CART\"]] : []), [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_ADSENSE_TOP_EARNING_CONTENT\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_CONVERTING_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_SEARCH_CONSOLE_POPULAR_KEYWORDS\"]]),\n        provide_services: [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(showConversionTailoredMetrics([_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__[\"ENUM_CONVERSION_EVENTS\"].CONTACT, _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__[\"ENUM_CONVERSION_EVENTS\"].GENERATE_LEAD, _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__[\"ENUM_CONVERSION_EVENTS\"].SUBMIT_LEAD_FORM]) ? [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_CITIES_DRIVING_LEADS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_PAGES_DRIVING_LEADS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_LEADS\"]] : []), [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_ENGAGED_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_SEARCH_CONSOLE_POPULAR_KEYWORDS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_POPULAR_CONTENT\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_RETURNING_VISITOR_PAGES\"]]),\n        share_portfolio: [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_CONVERTING_TRAFFIC_SOURCE\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_RETURNING_VISITOR_PAGES\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_POPULAR_AUTHORS\"]].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(showConversionTailoredMetrics([_js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__[\"ENUM_CONVERSION_EVENTS\"].CONTACT, _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__[\"ENUM_CONVERSION_EVENTS\"].GENERATE_LEAD, _js_modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__[\"ENUM_CONVERSION_EVENTS\"].SUBMIT_LEAD_FORM]) ? [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_CITIES_DRIVING_LEADS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_PAGES_DRIVING_LEADS\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_LEADS\"]] : []), [_constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_ANALYTICS_POPULAR_CONTENT\"], _constants__WEBPACK_IMPORTED_MODULE_7__[\"KM_SEARCH_CONSOLE_POPULAR_KEYWORDS\"]])\n      };\n    };\n  }),\n  /**\n   * Gets the Key Metric widget slugs based on the user input settings.\n   *\n   * @since 1.103.0\n   *\n   * @return {Array<string>|undefined} An array of Key Metric widget slugs, or undefined if the user input settings are not loaded.\n   */\n  getAnswerBasedMetrics: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function (state, purposeOverride, includeConversionTailoredMetrics) {\n      var _userInputSettings$pu, _userInputSettings$pu2;\n      var userInputSettings = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getUserInputSettings();\n      if (userInputSettings === undefined) {\n        return undefined;\n      }\n      var purpose = purposeOverride !== null && purposeOverride !== void 0 ? purposeOverride : userInputSettings === null || userInputSettings === void 0 ? void 0 : (_userInputSettings$pu = userInputSettings.purpose) === null || _userInputSettings$pu === void 0 ? void 0 : (_userInputSettings$pu2 = _userInputSettings$pu.values) === null || _userInputSettings$pu2 === void 0 ? void 0 : _userInputSettings$pu2[0];\n      var widgetIDs = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getConversionTailoredKeyMetricsWidgetIDs(includeConversionTailoredMetrics);\n      return widgetIDs[purpose] || [];\n    };\n  }),\n  /**\n   * Gets the Key Metric widget slugs selected by the user.\n   *\n   * @since 1.103.0\n   *\n   * @return {Array<string>|undefined} An array of Key Metric widget slugs, or undefined if the key metrics settings are not loaded.\n   */\n  getUserPickedMetrics: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var keyMetricsSettings = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getKeyMetricsSettings();\n      if (keyMetricsSettings === undefined) {\n        return undefined;\n      }\n      if (!Array.isArray(keyMetricsSettings.widgetSlugs)) {\n        return [];\n      }\n\n      // Even though a user may have picked their own metrics, there is a chance that they no longer\n      // are \"available\" if they require certain custom dimensions, detected events, feature flags, etc. which no\n      // longer exist. So we should filter these out by using the displayInWidgetArea() callback.\n      var isViewOnly = !select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).isAuthenticated();\n      var filteredWidgetSlugs = keyMetricsSettings.widgetSlugs.filter(function (slug) {\n        var widget = _js_components_KeyMetrics_key_metrics_widgets__WEBPACK_IMPORTED_MODULE_14__[\"KEY_METRICS_WIDGETS\"][slug];\n        if (!widget) {\n          return false;\n        }\n        if (widget.displayInWidgetArea && typeof widget.displayInWidgetArea === 'function') {\n          return widget.displayInWidgetArea({\n            select: select,\n            isViewOnlyDashboard: isViewOnly,\n            slug: slug\n          });\n        }\n        return true;\n      });\n\n      // If only one widget tile remains after filtering, return an empty array.\n      // This triggers the `getKeyMetrics` selector to use the default set of widgets\n      // instead of hiding the entire widget area (which happens if only one tile is active).\n      if (filteredWidgetSlugs.length === 1) {\n        return [];\n      }\n      return filteredWidgetSlugs;\n    };\n  }),\n  /**\n   * Gets whether an individual key metric identified by its slug is\n   * active or not.\n   *\n   * @since 1.106.0\n   *\n   * @return {boolean|undefined} True if the key metric widget tile is active, false if it is not, or undefined if the key metrics settings are not loaded.\n   */\n  isKeyMetricActive: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function (state, widgetSlug) {\n      var keyMetrics = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getKeyMetrics();\n      if (keyMetrics === undefined) {\n        return undefined;\n      }\n      return keyMetrics.includes(widgetSlug);\n    };\n  }),\n  /**\n   * Gets whether the key metrics widget is hidden.\n   *\n   * @since 1.103.0\n   *\n   * @return {boolean|undefined} True if the key metrics widget is hidden, false if it is not, or undefined if the key metrics settings are not loaded.\n   */\n  isKeyMetricsWidgetHidden: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var keyMetricsSettings = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getKeyMetricsSettings();\n      if (keyMetricsSettings === undefined) {\n        return undefined;\n      }\n      return keyMetricsSettings.isWidgetHidden;\n    };\n  }),\n  /**\n   * Gets key metrics settings.\n   *\n   * @since 1.103.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Object|undefined)} Key metrics settings. Returns `undefined` if not loaded.\n   */\n  getKeyMetricsSettings: function getKeyMetricsSettings(state) {\n    var keyMetricsSettings = state.keyMetricsSettings;\n    if (!keyMetricsSettings) {\n      return undefined;\n    }\n    return keyMetricsSettings;\n  },\n  /**\n   * Determines whether the key metrics settings are being saved or not.\n   *\n   * @since 1.107.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {boolean} TRUE if the key metrics settings are being saved, otherwise FALSE.\n   */\n  isSavingKeyMetricsSettings: function isSavingKeyMetricsSettings(state) {\n    // Since isFetchingSaveKeyMetricsSettings holds information based on specific values but we only need\n    // generic information here, we need to check whether ANY such request is in progress.\n    return Object.values(state.isFetchingSaveKeyMetricsSettings).some(Boolean);\n  },\n  /**\n   * Gets whether an individual key metric identified by its slug is\n   * available, i.e. the modules that it depends on are connected and\n   * a view-only user has access to it.\n   *\n   * @since 1.107.0\n   *\n   * @param {Object} state      Data store's state.\n   * @param {string} widgetSlug The key metric widget slug.\n   * @return {boolean|undefined} True if the key metric is available, false if it is not, or undefined if the authentication state has not loaded.\n   */\n  isKeyMetricAvailable: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function (_state, widgetSlug) {\n      invariant__WEBPACK_IMPORTED_MODULE_3___default()(widgetSlug, 'Key metric widget slug required.');\n      var isAuthenticated = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).isAuthenticated();\n      if (isAuthenticated === undefined) {\n        return undefined;\n      }\n      var widget = select(_js_googlesitekit_widgets_datastore_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_WIDGETS\"]).getWidget(widgetSlug);\n      if (!widget) {\n        return false;\n      }\n      var _select2 = select(_js_googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_9__[\"CORE_MODULES\"]),\n        getModule = _select2.getModule;\n      var _select3 = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]),\n        canViewSharedModule = _select3.canViewSharedModule;\n      return widget.modules.every(function (slug) {\n        var module = getModule(slug);\n        if (!module) {\n          return false;\n        }\n        if (!isAuthenticated && (module === null || module === void 0 ? void 0 : module.shareable) && !canViewSharedModule(slug)) {\n          return false;\n        }\n        return true;\n      });\n    };\n  })\n};\nvar store = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"combineStores\"])(fetchGetKeyMetricsSettingsStore, fetchSaveKeyMetricsSettingsStore, {\n  initialState: baseInitialState,\n  actions: baseActions,\n  controls: baseControls,\n  reducer: baseReducer,\n  resolvers: baseResolvers,\n  selectors: baseSelectors\n});\nvar initialState = store.initialState;\nvar actions = store.actions;\nvar controls = store.controls;\nvar reducer = store.reducer;\nvar resolvers = store.resolvers;\nvar selectors = store.selectors;\n/* harmony default export */ __webpack_exports__[\"default\"] = (store);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/key-metrics.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/nonces.js":
/*!***************************************************!*\
  !*** ./js/googlesitekit/datastore/user/nonces.js ***!
  \***************************************************/
/*! exports provided: initialState, actions, controls, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! googlesitekit-api */ \"googlesitekit-api\");\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_api__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/js/googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n\n/**\n * `core/user` data store: nonces.\n *\n * Site Kit by Google, Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n// Actions\nvar RECEIVE_NONCES = 'RECEIVE_NONCES';\nvar fetchGetNoncesStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_4__[\"createFetchStore\"])({\n  baseName: 'getNonces',\n  controlCallback: function controlCallback() {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_1__[\"get\"])('core', 'user', 'nonces', undefined, {\n      useCache: false\n    });\n  },\n  reducerCallback: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"createReducer\"])(function (state, nonces) {\n    state.nonces = nonces;\n  })\n});\nvar baseInitialState = {\n  nonces: undefined\n};\nvar baseActions = {\n  /**\n   * Sets nonces.\n   *\n   * @since 1.93.0\n   *\n   * @param {Object} nonces Dictionary of keys and their nonces.\n   * @return {Object} Redux-style action.\n   */\n  receiveNonces: function receiveNonces(nonces) {\n    return {\n      type: RECEIVE_NONCES,\n      payload: {\n        nonces: nonces\n      }\n    };\n  }\n};\nvar baseControls = {};\nvar baseReducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"createReducer\"])(function (state, _ref) {\n  var type = _ref.type,\n    payload = _ref.payload;\n  switch (type) {\n    case RECEIVE_NONCES:\n      state.nonces = payload.nonces;\n      break;\n    default:\n      break;\n  }\n});\nvar baseResolvers = {\n  getNonces: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function getNonces() {\n    var registry;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function getNonces$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            _context.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"commonActions\"].getRegistry();\n          case 2:\n            registry = _context.sent;\n            if (!registry.select(_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_USER\"]).getNonces()) {\n              _context.next = 5;\n              break;\n            }\n            return _context.abrupt(\"return\");\n          case 5:\n            _context.next = 7;\n            return fetchGetNoncesStore.actions.fetchGetNonces();\n          case 7:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, getNonces);\n  })\n};\nvar baseSelectors = {\n  /**\n   * Gets all nonces from the store.\n   *\n   * @since 1.93.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Object|undefined)} Nonces object. Returns undefined if it is not loaded yet.\n   */\n  getNonces: function getNonces(state) {\n    var nonces = state.nonces;\n    return nonces;\n  },\n  /**\n   * Gets a single nonce from the store.\n   *\n   * @since 1.93.0\n   *\n   * @param {Object} state Data store's state.\n   * @param {string} nonce Action name of the nonce to get.\n   * @return {(string|undefined)} Nonce string. Returns undefined if this nonce is not loaded yet.\n   */\n  getNonce: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"createRegistrySelector\"])(function (select) {\n    return function (state, nonce) {\n      var nonces = select(_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_USER\"]).getNonces();\n      if (!nonces) {\n        return undefined;\n      }\n      return nonces[nonce];\n    };\n  })\n};\nvar store = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"combineStores\"])(fetchGetNoncesStore, {\n  initialState: baseInitialState,\n  actions: baseActions,\n  controls: baseControls,\n  reducer: baseReducer,\n  resolvers: baseResolvers,\n  selectors: baseSelectors\n});\nvar initialState = store.initialState;\nvar actions = store.actions;\nvar controls = store.controls;\nvar reducer = store.reducer;\nvar resolvers = store.resolvers;\nvar selectors = store.selectors;\n/* harmony default export */ __webpack_exports__[\"default\"] = (store);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/nonces.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/notifications.js":
/*!**********************************************************!*\
  !*** ./js/googlesitekit/datastore/user/notifications.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _js_googlesitekit_data_create_notifications_store__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/js/googlesitekit/data/create-notifications-store */ \"./js/googlesitekit/data/create-notifications-store.js\");\n/**\n * `core/user` data store: notifications.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Internal dependencies\n */\n\nvar notifications = Object(_js_googlesitekit_data_create_notifications_store__WEBPACK_IMPORTED_MODULE_0__[\"createNotificationsStore\"])('core', 'user', 'notifications', {\n  server: false\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (notifications);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L2RhdGFzdG9yZS91c2VyL25vdGlmaWNhdGlvbnMuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9nb29nbGVzaXRla2l0L2RhdGFzdG9yZS91c2VyL25vdGlmaWNhdGlvbnMuanM/MzIwZSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIGBjb3JlL3VzZXJgIGRhdGEgc3RvcmU6IG5vdGlmaWNhdGlvbnMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvb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BO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUlBO0FBQUE7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/notifications.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/permissions.js":
/*!********************************************************!*\
  !*** ./js/googlesitekit/datastore/user/permissions.js ***!
  \********************************************************/
/*! exports provided: initialState, actions, controls, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! googlesitekit-api */ \"googlesitekit-api\");\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_api__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/js/googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _js_googlesitekit_datastore_util_permissions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/js/googlesitekit/datastore/util/permissions */ \"./js/googlesitekit/datastore/util/permissions.js\");\n/* harmony import */ var _js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/js/googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n/**\n * `core/user` data store: permission scopes.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n// Actions\nvar CLEAR_PERMISSION_SCOPE_ERROR = 'CLEAR_PERMISSION_SCOPE_ERROR';\nvar SET_PERMISSION_SCOPE_ERROR = 'SET_PERMISSION_SCOPE_ERROR';\nvar RECEIVE_CAPABILITIES = 'RECEIVE_CAPABILITIES';\nvar fetchGetCapabilitiesStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_9__[\"createFetchStore\"])({\n  baseName: 'getCapabilities',\n  controlCallback: function controlCallback() {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_4__[\"get\"])('core', 'user', 'permissions', undefined, {\n      useCache: false\n    });\n  },\n  reducerCallback: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createReducer\"])(function (state, capabilities) {\n    state.capabilities = capabilities;\n  })\n});\nvar baseInitialState = {\n  permissionError: null,\n  capabilities: undefined\n};\nvar baseActions = {\n  /**\n   * Clears the permission scope error, if one was previously set.\n   *\n   * @since 1.9.0\n   * @private\n   *\n   * @return {Object} Redux-style action.\n   */\n  clearPermissionScopeError: function clearPermissionScopeError() {\n    return {\n      payload: {},\n      type: CLEAR_PERMISSION_SCOPE_ERROR\n    };\n  },\n  /**\n   * Sets a permission error encountered by an API request.\n   *\n   * @since 1.9.0\n   * @private\n   *\n   * @param {Object} permissionError Permissions error object.\n   * @return {Object} Redux-style action.\n   */\n  setPermissionScopeError: function setPermissionScopeError(permissionError) {\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()(permissionError, 'permissionError is required.');\n    return {\n      payload: {\n        permissionError: permissionError\n      },\n      type: SET_PERMISSION_SCOPE_ERROR\n    };\n  },\n  /**\n   * Sets user capabilities.\n   *\n   * @since 1.13.0\n   * @private\n   *\n   * @param {Object} capabilities User capabilities.\n   * @return {Object} Redux-style action.\n   */\n  receiveCapabilities: function receiveCapabilities(capabilities) {\n    return {\n      type: RECEIVE_CAPABILITIES,\n      payload: {\n        capabilities: capabilities\n      }\n    };\n  },\n  /**\n   * Refreshes user capabilities.\n   *\n   * @since 1.82.0\n   *\n   * @return {Object} Redux-style action.\n   */\n  refreshCapabilities: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function refreshCapabilities() {\n    var _yield$commonActions$, dispatch, _yield$fetchGetCapabi, response, error;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function refreshCapabilities$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            _context.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"commonActions\"].getRegistry();\n          case 2:\n            _yield$commonActions$ = _context.sent;\n            dispatch = _yield$commonActions$.dispatch;\n            _context.next = 6;\n            return fetchGetCapabilitiesStore.actions.fetchGetCapabilities();\n          case 6:\n            _yield$fetchGetCapabi = _context.sent;\n            response = _yield$fetchGetCapabi.response;\n            error = _yield$fetchGetCapabi.error;\n            if (error) {\n              dispatch(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).setPermissionScopeError(error);\n            }\n            return _context.abrupt(\"return\", {\n              response: response,\n              error: error\n            });\n          case 11:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, refreshCapabilities);\n  })\n};\nvar baseControls = {};\nvar baseReducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createReducer\"])(function (state, _ref) {\n  var type = _ref.type,\n    payload = _ref.payload;\n  switch (type) {\n    case CLEAR_PERMISSION_SCOPE_ERROR:\n      state.permissionError = null;\n      break;\n    case SET_PERMISSION_SCOPE_ERROR:\n      state.permissionError = payload.permissionError;\n      break;\n    case RECEIVE_CAPABILITIES:\n      state.capabilities = payload.capabilities;\n      break;\n    default:\n      break;\n  }\n});\nvar baseResolvers = {\n  getCapabilities: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function getCapabilities() {\n    var _global$_googlesiteki, _global$_googlesiteki2, _global$_googlesiteki3;\n    var registry, preloadedPermissions;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function getCapabilities$(_context2) {\n      while (1) {\n        switch (_context2.prev = _context2.next) {\n          case 0:\n            _context2.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"commonActions\"].getRegistry();\n          case 2:\n            registry = _context2.sent;\n            if (!registry.select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getCapabilities()) {\n              _context2.next = 5;\n              break;\n            }\n            return _context2.abrupt(\"return\");\n          case 5:\n            // Temporary hack to preserve previous behavior when resolved from global.\n            // This is necessary for now to avoid a delay if the preloaded data\n            // has already expired.\n            // We'll still fetch it in case something has changed,\n            // but receive the preloaded right away.\n            preloadedPermissions = (_global$_googlesiteki = global._googlesitekitAPIFetchData) === null || _global$_googlesiteki === void 0 ? void 0 : (_global$_googlesiteki2 = _global$_googlesiteki.preloadedData) === null || _global$_googlesiteki2 === void 0 ? void 0 : (_global$_googlesiteki3 = _global$_googlesiteki2['/google-site-kit/v1/core/user/data/permissions']) === null || _global$_googlesiteki3 === void 0 ? void 0 : _global$_googlesiteki3.body;\n            if (!preloadedPermissions) {\n              _context2.next = 9;\n              break;\n            }\n            _context2.next = 9;\n            return fetchGetCapabilitiesStore.actions.receiveGetCapabilities(_objectSpread({}, preloadedPermissions));\n          case 9:\n            _context2.next = 11;\n            return fetchGetCapabilitiesStore.actions.fetchGetCapabilities();\n          case 11:\n          case \"end\":\n            return _context2.stop();\n        }\n      }\n    }, getCapabilities);\n  })\n};\nvar baseSelectors = {\n  /**\n   * Gets the most recent permission error encountered by this user.\n   *\n   * @since 1.9.0\n   * @private\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Object|null)} Permission scope errors. Returns `null` if no error exists.\n   */\n  getPermissionScopeError: function getPermissionScopeError(state) {\n    var permissionError = state.permissionError;\n    return permissionError;\n  },\n  /**\n   * Gets capabilities of the current user.\n   *\n   * @since 1.13.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Object|undefined)} Capabilities object. Returns undefined if it is not loaded yet.\n   */\n  getCapabilities: function getCapabilities(state) {\n    var capabilities = state.capabilities;\n    return capabilities;\n  },\n  /**\n   * Gets viewable module slugs of the current user.\n   *\n   * @since 1.72.0\n   *\n   * @return {(Array|undefined)} An array of viewable module slugs. `undefined` if `modules` are not loaded yet.\n   */\n  getViewableModules: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var modules = select(_js_googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_MODULES\"]).getModules();\n      if (modules === undefined) {\n        return undefined;\n      }\n\n      // Return an array of module slugs for modules that are\n      // shareable and the user has the \"read shared module data\"\n      // capability for.\n      return Object.values(modules).reduce(function (slugs, module) {\n        var hasCapability = select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).hasCapability(_constants__WEBPACK_IMPORTED_MODULE_6__[\"PERMISSION_READ_SHARED_MODULE_DATA\"], module.slug);\n        if (module.shareable && hasCapability) {\n          return [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(slugs), [module.slug]);\n        }\n        return slugs;\n      }, []);\n    };\n  }),\n  /**\n   * Checks if the current user has the specified capability or not.\n   *\n   * @since 1.13.0\n   *\n   * @param {Object} state      Data store's state.\n   * @param {string} capability Capability name to check.\n   * @param {Array}  args       List of rest of the arguments. Specifically one or many module slugs.\n   * @return {(boolean|undefined)} TRUE if the current user has this capability, otherwise FALSE. If capabilities ain't loaded yet, returns undefined.\n   */\n  hasCapability: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createRegistrySelector\"])(function (select) {\n    return function (state, capability) {\n      var capabilities = select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getCapabilities();\n      for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n        args[_key - 2] = arguments[_key];\n      }\n      if (args.length > 0) {\n        capability = _js_googlesitekit_datastore_util_permissions__WEBPACK_IMPORTED_MODULE_8__[\"getMetaCapabilityPropertyName\"].apply(void 0, [capability].concat(args));\n      }\n      if (capabilities) {\n        return !!capabilities[capability];\n      }\n      return undefined;\n    };\n  }),\n  /**\n   * Checks if the specified module is shareable and viewable by the current user.\n   *\n   * @since 1.77.0\n   *\n   * @param {Object} state      Data store's state.\n   * @param {string} moduleSlug Module slug to check.\n   * @return {(boolean|undefined)} `true` if the module is shareable and viewable by the current user. `false` if the module does not exist, is not shareable or not viewable by the current user. `undefined` if state is not loaded yet.\n   */\n  canViewSharedModule: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createRegistrySelector\"])(function (select) {\n    return function (state, moduleSlug) {\n      var module = select(_js_googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_MODULES\"]).getModule(moduleSlug);\n      if (module === undefined) {\n        return undefined;\n      }\n      if (module === null || !module.shareable) {\n        return false;\n      }\n      return select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).hasCapability(_constants__WEBPACK_IMPORTED_MODULE_6__[\"PERMISSION_READ_SHARED_MODULE_DATA\"], module.slug);\n    };\n  }),\n  /**\n   * Checks if the current user has access to the specified shareable module.\n   *\n   * @since 1.120.0\n   *\n   * @param {Object} state      Data store's state.\n   * @param {string} moduleSlug Module slug to check.\n   * @return {(boolean|undefined)} `true` if the user is authenticated or if the module is shareable and viewable by the current user. `false` if the module is not shareable or not viewable by the current user. `undefined` if the modules are not loaded yet.\n   */\n  hasAccessToShareableModule: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createRegistrySelector\"])(function (select) {\n    return function (state, moduleSlug) {\n      var isModuleAvailable = select(_js_googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_MODULES\"]).isModuleAvailable(moduleSlug);\n      if (isModuleAvailable === undefined) {\n        return undefined;\n      }\n      if (isModuleAvailable === false) {\n        return false;\n      }\n      if (select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).isAuthenticated()) {\n        return true;\n      }\n      return select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).canViewSharedModule(moduleSlug);\n    };\n  })\n};\nvar store = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"combineStores\"])(fetchGetCapabilitiesStore, {\n  initialState: baseInitialState,\n  actions: baseActions,\n  controls: baseControls,\n  reducer: baseReducer,\n  resolvers: baseResolvers,\n  selectors: baseSelectors\n});\nvar initialState = store.initialState;\nvar actions = store.actions;\nvar controls = store.controls;\nvar reducer = store.reducer;\nvar resolvers = store.resolvers;\nvar selectors = store.selectors;\n/* harmony default export */ __webpack_exports__[\"default\"] = (store);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../node_modules/webpack/buildin/global.js */ \"../node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/permissions.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/proactive-user-engagement-settings.js":
/*!*******************************************************************************!*\
  !*** ./js/googlesitekit/datastore/user/proactive-user-engagement-settings.js ***!
  \*******************************************************************************/
/*! exports provided: baseReducer, initialState, actions, controls, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"baseReducer\", function() { return baseReducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ \"../node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! googlesitekit-api */ \"googlesitekit-api\");\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_api__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/js/googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n/* harmony import */ var _js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/js/googlesitekit/data/utils */ \"./js/googlesitekit/data/utils.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n/**\n * Site Kit by Google, Copyright 2025 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\nvar baseInitialState = {\n  proactiveUserEngagement: {\n    settings: undefined,\n    savedSettings: undefined,\n    isSavingSettings: false\n  }\n};\nvar fetchStoreReducerCallback = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createReducer\"])(function (state, proactiveUserEngagementSettings) {\n  state.proactiveUserEngagement.settings = proactiveUserEngagementSettings;\n  state.proactiveUserEngagement.savedSettings = proactiveUserEngagementSettings;\n});\nvar fetchGetProactiveUserEngagementSettingsStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_7__[\"createFetchStore\"])({\n  baseName: 'getProactiveUserEngagementSettings',\n  controlCallback: function controlCallback() {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_4__[\"get\"])('core', 'user', 'proactive-user-engagement-settings', undefined, {\n      useCache: false\n    });\n  },\n  reducerCallback: fetchStoreReducerCallback\n});\nvar fetchSaveProactiveUserEngagementSettingsStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_7__[\"createFetchStore\"])({\n  baseName: 'saveProactiveUserEngagementSettings',\n  controlCallback: function controlCallback(settings) {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_4__[\"set\"])('core', 'user', 'proactive-user-engagement-settings', {\n      settings: settings\n    });\n  },\n  reducerCallback: fetchStoreReducerCallback,\n  argsToParams: function argsToParams(settings) {\n    return settings;\n  },\n  validateParams: function validateParams(settings) {\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"isPlainObject\"])(settings), 'Proactive User Engagement settings should be an object.');\n    if (settings.subscribed !== undefined) {\n      invariant__WEBPACK_IMPORTED_MODULE_2___default()(typeof settings.subscribed === 'boolean', 'subscribed should be a boolean.');\n    }\n    if (settings.frequency !== undefined) {\n      invariant__WEBPACK_IMPORTED_MODULE_2___default()(typeof settings.frequency === 'string', 'frequency should be a string.');\n      invariant__WEBPACK_IMPORTED_MODULE_2___default()(['weekly', 'monthly', 'quarterly'].includes(settings.frequency), 'frequency should be one of: weekly, monthly, quarterly.');\n    }\n  }\n});\n\n// Actions\nvar SET_PROACTIVE_USER_ENGAGEMENT_SETTINGS = 'SET_PROACTIVE_USER_ENGAGEMENT_SETTINGS';\nvar SET_PROACTIVE_USER_ENGAGEMENT_SETTINGS_SAVING_FLAG = 'SET_PROACTIVE_USER_ENGAGEMENT_SETTINGS_SAVING_FLAG';\nvar RESET_PROACTIVE_USER_ENGAGEMENT_SETTINGS = 'RESET_PROACTIVE_USER_ENGAGEMENT_SETTINGS';\nvar baseActions = {\n  /**\n   * Sets proactive user engagement settings.\n   *\n   * @since n.e.x.t\n   *\n   * @param {Object} settings Settings object.\n   * @return {Object} Redux-style action.\n   */\n  setProactiveUserEngagementSettings: function setProactiveUserEngagementSettings(settings) {\n    return {\n      type: SET_PROACTIVE_USER_ENGAGEMENT_SETTINGS,\n      payload: {\n        settings: settings\n      }\n    };\n  },\n  /**\n   * Saves the proactive user engagement settings.\n   *\n   * @since n.e.x.t\n   *\n   * @param {Object} settings Optional. By default, this saves whatever there is in the store. Use this object to save additional settings.\n   * @return {Object} Object with `response` and `error`.\n   */\n  saveProactiveUserEngagementSettings: Object(_js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_8__[\"createValidatedAction\"])(function () {\n    var settings = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"isPlainObject\"])(settings), 'Proactive User Engagement settings should be an object to save.');\n  }, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee() {\n    var settings,\n      registry,\n      currentSettings,\n      settingsToSave,\n      _yield$fetchSaveProac,\n      response,\n      error,\n      _args = arguments;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function _callee$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            settings = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};\n            _context.next = 3;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"commonActions\"].getRegistry();\n          case 3:\n            registry = _context.sent;\n            // Get current settings from state if no settings provided\n            currentSettings = registry.select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getProactiveUserEngagementSettings();\n            settingsToSave = Object.keys(settings).length > 0 ? settings : currentSettings;\n            _context.next = 8;\n            return {\n              type: SET_PROACTIVE_USER_ENGAGEMENT_SETTINGS_SAVING_FLAG,\n              payload: {\n                isSaving: true\n              }\n            };\n          case 8:\n            _context.next = 10;\n            return fetchSaveProactiveUserEngagementSettingsStore.actions.fetchSaveProactiveUserEngagementSettings(settingsToSave);\n          case 10:\n            _yield$fetchSaveProac = _context.sent;\n            response = _yield$fetchSaveProac.response;\n            error = _yield$fetchSaveProac.error;\n            _context.next = 15;\n            return {\n              type: SET_PROACTIVE_USER_ENGAGEMENT_SETTINGS_SAVING_FLAG,\n              payload: {\n                isSaving: false\n              }\n            };\n          case 15:\n            return _context.abrupt(\"return\", {\n              response: response,\n              error: error\n            });\n          case 16:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, _callee);\n  })),\n  /**\n   * Resets modified proactive user engagement settings to currently saved values.\n   *\n   * @since n.e.x.t\n   *\n   * @return {Object} Redux-style action.\n   */\n  resetProactiveUserEngagementSettings: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function resetProactiveUserEngagementSettings() {\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function resetProactiveUserEngagementSettings$(_context2) {\n      while (1) {\n        switch (_context2.prev = _context2.next) {\n          case 0:\n            return _context2.abrupt(\"return\", {\n              type: RESET_PROACTIVE_USER_ENGAGEMENT_SETTINGS,\n              payload: {}\n            });\n          case 1:\n          case \"end\":\n            return _context2.stop();\n        }\n      }\n    }, resetProactiveUserEngagementSettings);\n  })\n};\nvar baseReducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createReducer\"])(function (state, action) {\n  var type = action.type,\n    payload = action.payload;\n  switch (type) {\n    case SET_PROACTIVE_USER_ENGAGEMENT_SETTINGS:\n      {\n        state.proactiveUserEngagement.settings = _objectSpread(_objectSpread({}, state.proactiveUserEngagement.settings), payload.settings);\n        break;\n      }\n    case SET_PROACTIVE_USER_ENGAGEMENT_SETTINGS_SAVING_FLAG:\n      {\n        state.proactiveUserEngagement.isSavingSettings = payload.isSaving;\n        break;\n      }\n    case RESET_PROACTIVE_USER_ENGAGEMENT_SETTINGS:\n      {\n        state.proactiveUserEngagement.settings = state.proactiveUserEngagement.savedSettings;\n        break;\n      }\n    default:\n      break;\n  }\n});\nvar baseResolvers = {\n  getProactiveUserEngagementSettings: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function getProactiveUserEngagementSettings() {\n    var registry, proactiveUserEngagementSettings;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function getProactiveUserEngagementSettings$(_context3) {\n      while (1) {\n        switch (_context3.prev = _context3.next) {\n          case 0:\n            _context3.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"commonActions\"].getRegistry();\n          case 2:\n            registry = _context3.sent;\n            proactiveUserEngagementSettings = registry.select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getProactiveUserEngagementSettings();\n            if (!(proactiveUserEngagementSettings === undefined)) {\n              _context3.next = 7;\n              break;\n            }\n            _context3.next = 7;\n            return fetchGetProactiveUserEngagementSettingsStore.actions.fetchGetProactiveUserEngagementSettings();\n          case 7:\n          case \"end\":\n            return _context3.stop();\n        }\n      }\n    }, getProactiveUserEngagementSettings);\n  })\n};\nvar baseSelectors = {\n  /**\n   * Gets the proactive user engagement settings.\n   *\n   * @since n.e.x.t\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Object|undefined)} Proactive User Engagement settings; `undefined` if not loaded.\n   */\n  getProactiveUserEngagementSettings: function getProactiveUserEngagementSettings(state) {\n    return state.proactiveUserEngagement.settings;\n  },\n  /**\n   * Determines whether the user is subscribed to proactive user engagement.\n   *\n   * @since n.e.x.t\n   *\n   * @param {Object} state Data store's state.\n   * @return {boolean} TRUE if the user is subscribed, otherwise FALSE.\n   */\n  isProactiveUserEngagementSubscribed: function isProactiveUserEngagementSubscribed(state) {\n    var settings = state.proactiveUserEngagement.settings;\n    return !!(settings === null || settings === void 0 ? void 0 : settings.subscribed);\n  },\n  /**\n   * Determines whether the proactive user engagement settings have changed from what is saved.\n   *\n   * @since n.e.x.t\n   *\n   * @param {Object} state Data store's state.\n   * @return {boolean} TRUE if the settings have changed, otherwise FALSE.\n   */\n  haveProactiveUserEngagementSettingsChanged: function haveProactiveUserEngagementSettingsChanged(state) {\n    var _state$proactiveUserE = state.proactiveUserEngagement,\n      settings = _state$proactiveUserE.settings,\n      savedSettings = _state$proactiveUserE.savedSettings;\n    return !Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"isEqual\"])(settings, savedSettings);\n  },\n  /**\n   * Determines whether the proactive user engagement settings are being saved or not.\n   *\n   * @since n.e.x.t\n   *\n   * @param {Object} state Data store's state.\n   * @return {boolean} TRUE if the settings are being saved, otherwise FALSE.\n   */\n  isSavingProactiveUserEngagementSettings: function isSavingProactiveUserEngagementSettings(state) {\n    return !!state.proactiveUserEngagement.isSavingSettings;\n  }\n};\nvar store = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"combineStores\"])(fetchGetProactiveUserEngagementSettingsStore, fetchSaveProactiveUserEngagementSettingsStore, {\n  initialState: baseInitialState,\n  actions: baseActions,\n  reducer: baseReducer,\n  resolvers: baseResolvers,\n  selectors: baseSelectors\n});\nvar initialState = store.initialState;\nvar actions = store.actions;\nvar controls = store.controls;\nvar reducer = store.reducer;\nvar resolvers = store.resolvers;\nvar selectors = store.selectors;\n/* harmony default export */ __webpack_exports__[\"default\"] = (store);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/proactive-user-engagement-settings.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/prompts.js":
/*!****************************************************!*\
  !*** ./js/googlesitekit/datastore/user/prompts.js ***!
  \****************************************************/
/*! exports provided: actions, controls, initialState, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"../node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"../node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! googlesitekit-api */ \"googlesitekit-api\");\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/js/googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n/* harmony import */ var _js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/js/googlesitekit/data/utils */ \"./js/googlesitekit/data/utils.js\");\n\n\n\n\n/**\n * `core/user` data store: dismissed prompts\n *\n * Site Kit by Google, Copyright 2024 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\nvar getRegistry = googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"commonActions\"].getRegistry;\nvar reducerCallback = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createReducer\"])(function (state, dismissedPrompts) {\n  state.dismissedPrompts = _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default()(dismissedPrompts) === 'object' ? dismissedPrompts : {};\n});\nvar fetchGetDismissedPromptsStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_8__[\"createFetchStore\"])({\n  baseName: 'getDismissedPrompts',\n  controlCallback: function controlCallback() {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__[\"get\"])('core', 'user', 'dismissed-prompts', {}, {\n      useCache: false\n    });\n  },\n  reducerCallback: reducerCallback\n});\nvar fetchDismissPromptStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_8__[\"createFetchStore\"])({\n  baseName: 'dismissPrompt',\n  controlCallback: function controlCallback(_ref) {\n    var slug = _ref.slug,\n      expiresInSeconds = _ref.expiresInSeconds;\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__[\"set\"])('core', 'user', 'dismiss-prompt', {\n      slug: slug,\n      expiration: expiresInSeconds\n    });\n  },\n  reducerCallback: reducerCallback,\n  argsToParams: function argsToParams(slug) {\n    var expiresInSeconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n    return {\n      slug: slug,\n      expiresInSeconds: expiresInSeconds\n    };\n  },\n  validateParams: function validateParams() {\n    var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n      slug = _ref2.slug,\n      expiresInSeconds = _ref2.expiresInSeconds;\n    invariant__WEBPACK_IMPORTED_MODULE_4___default()(slug, 'slug is required.');\n    invariant__WEBPACK_IMPORTED_MODULE_4___default()(Number.isInteger(expiresInSeconds), 'expiresInSeconds must be an integer.');\n  }\n});\nvar baseInitialState = {\n  dismissedPrompts: undefined,\n  isDismissingPrompts: {}\n};\nvar baseActions = {\n  /**\n   * Dismisses the given prompt by slug.\n   *\n   * @since 1.121.0\n   *\n   * @param {string} slug                       Prompt slug to dismiss.\n   * @param {Object} options                    Dismiss prompt options.\n   * @param {number} [options.expiresInSeconds] Optional. An integer number of seconds for expiry. 0 denotes permanent dismissal.\n   * @return {Object} Generator instance.\n   */\n  dismissPrompt: Object(_js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_9__[\"createValidatedAction\"])(function (slug) {\n    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    var _options$expiresInSec = options.expiresInSeconds,\n      expiresInSeconds = _options$expiresInSec === void 0 ? 0 : _options$expiresInSec;\n    invariant__WEBPACK_IMPORTED_MODULE_4___default()(slug, 'A tour slug is required to dismiss a tour.');\n    invariant__WEBPACK_IMPORTED_MODULE_4___default()(Number.isInteger(expiresInSeconds), 'expiresInSeconds must be an integer.');\n  }, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee(slug) {\n    var options,\n      _options$expiresInSec2,\n      expiresInSeconds,\n      registry,\n      _yield$fetchDismissPr,\n      response,\n      error,\n      _args = arguments;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};\n            _options$expiresInSec2 = options.expiresInSeconds, expiresInSeconds = _options$expiresInSec2 === void 0 ? 0 : _options$expiresInSec2;\n            _context.next = 4;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"commonActions\"].getRegistry();\n          case 4:\n            registry = _context.sent;\n            registry.dispatch(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).setIsPromptDismissing(slug, true);\n            _context.next = 8;\n            return fetchDismissPromptStore.actions.fetchDismissPrompt(slug, expiresInSeconds);\n          case 8:\n            _yield$fetchDismissPr = _context.sent;\n            response = _yield$fetchDismissPr.response;\n            error = _yield$fetchDismissPr.error;\n            registry.dispatch(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).setIsPromptDismissing(slug, false);\n            return _context.abrupt(\"return\", {\n              response: response,\n              error: error\n            });\n          case 13:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, _callee);\n  })),\n  setIsPromptDismissing: function setIsPromptDismissing(slug, isDismissing) {\n    return {\n      payload: {\n        slug: slug,\n        isDismissing: isDismissing\n      },\n      type: 'SET_IS_PROMPT_DISMISSING'\n    };\n  }\n};\nvar baseResolvers = {\n  getDismissedPrompts: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function getDismissedPrompts() {\n    var _yield$getRegistry, select, dismissedPrompts;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function getDismissedPrompts$(_context2) {\n      while (1) {\n        switch (_context2.prev = _context2.next) {\n          case 0:\n            _context2.next = 2;\n            return getRegistry();\n          case 2:\n            _yield$getRegistry = _context2.sent;\n            select = _yield$getRegistry.select;\n            dismissedPrompts = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getDismissedPrompts();\n            if (!(dismissedPrompts === undefined)) {\n              _context2.next = 8;\n              break;\n            }\n            _context2.next = 8;\n            return fetchGetDismissedPromptsStore.actions.fetchGetDismissedPrompts();\n          case 8:\n          case \"end\":\n            return _context2.stop();\n        }\n      }\n    }, getDismissedPrompts);\n  })\n};\nvar baseReducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createReducer\"])(function (state, _ref3) {\n  var type = _ref3.type,\n    payload = _ref3.payload;\n  switch (type) {\n    case 'SET_IS_PROMPT_DISMISSING':\n      var slug = payload.slug,\n        isDismissing = payload.isDismissing;\n      state.isDismissingPrompts = _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, slug, isDismissing);\n      break;\n    default:\n      break;\n  }\n});\nvar baseSelectors = {\n  /**\n   * Gets the list of dismissed prompts.\n   *\n   * @since 1.121.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(string[]|undefined)} Array of dismissed prompt keys, `undefined` if there are none.\n   */\n  getDismissedPrompts: function getDismissedPrompts(state) {\n    if (state.dismissedPrompts === undefined) {\n      return undefined;\n    }\n\n    // We shouldn't use the getReferenceDate selector here because it returns date only\n    // while we need the current time as well to properly determine whether the prompt is\n    // expired or not.\n    var currentTimeInSeconds = Math.floor(Date.now() / 1000); // eslint-disable-line sitekit/no-direct-date\n    return Object.entries(state.dismissedPrompts).reduce(function (acc, _ref4) {\n      var _ref5 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_ref4, 2),\n        slug = _ref5[0],\n        expires = _ref5[1].expires;\n      if (expires === 0 || expires > currentTimeInSeconds) {\n        acc.push(slug);\n      }\n      return acc;\n    }, []);\n  },\n  /**\n   * Gets the count of a dismissed prompt.\n   *\n   * @since 1.121.0\n   *\n   * @param {Object} state Data store's state.\n   * @param {string} slug  Prompt slug.\n   * @return {(number|undefined)} Count of the prompt, `undefined` if there are none.\n   */\n  getPromptDismissCount: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function () {\n    return function (state, slug) {\n      var _state$dismissedPromp;\n      if (!state.dismissedPrompts) {\n        return undefined;\n      }\n      return ((_state$dismissedPromp = state.dismissedPrompts[slug]) === null || _state$dismissedPromp === void 0 ? void 0 : _state$dismissedPromp.count) || 0;\n    };\n  }),\n  /**\n   * Determines whether the prompt is dismissed or not.\n   *\n   * @since 1.121.0\n   *\n   * @param {Object} state Data store's state.\n   * @param {string} slug  Prompt slug.\n   * @return {(boolean|undefined)} TRUE if dismissed, otherwise FALSE, `undefined` if not resolved yet.\n   */\n  isPromptDismissed: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function (state, slug) {\n      var _select$getDismissedP;\n      return (_select$getDismissedP = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getDismissedPrompts()) === null || _select$getDismissedP === void 0 ? void 0 : _select$getDismissedP.includes(slug);\n    };\n  }),\n  /**\n   * Checks whether or not the prompt is being dismissed for the given slug.\n   *\n   * @since 1.121.0\n   *\n   * @param {Object} state Data store's state.\n   * @param {string} slug  Prompt slug.\n   * @return {boolean} True if the prompt is being dismissed, otherwise false.\n   */\n  isDismissingPrompt: function isDismissingPrompt(state, slug) {\n    return !!state.isDismissingPrompts[slug];\n  }\n};\nvar _combineStores = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"combineStores\"])({\n    initialState: baseInitialState,\n    actions: baseActions,\n    resolvers: baseResolvers,\n    selectors: baseSelectors,\n    reducer: baseReducer\n  }, fetchDismissPromptStore, fetchGetDismissedPromptsStore),\n  actions = _combineStores.actions,\n  controls = _combineStores.controls,\n  initialState = _combineStores.initialState,\n  reducer = _combineStores.reducer,\n  resolvers = _combineStores.resolvers,\n  selectors = _combineStores.selectors;\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  actions: actions,\n  controls: controls,\n  initialState: initialState,\n  reducer: reducer,\n  resolvers: resolvers,\n  selectors: selectors\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/prompts.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/surveys.js":
/*!****************************************************!*\
  !*** ./js/googlesitekit/datastore/user/surveys.js ***!
  \****************************************************/
/*! exports provided: initialState, actions, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"../node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! googlesitekit-api */ \"googlesitekit-api\");\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/js/googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n/* harmony import */ var _js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/js/googlesitekit/data/utils */ \"./js/googlesitekit/data/utils.js\");\n/* harmony import */ var _js_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/js/googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n/**\n * `core/user` data store: Surveys.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\nvar fetchTriggerSurveyStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_8__[\"createFetchStore\"])({\n  baseName: 'triggerSurvey',\n  controlCallback: function controlCallback(_ref) {\n    var triggerID = _ref.triggerID,\n      ttl = _ref.ttl;\n    var args = ttl ? {\n      ttl: ttl\n    } : {};\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__[\"set\"])('core', 'user', 'survey-trigger', _objectSpread({\n      triggerID: triggerID\n    }, args));\n  },\n  argsToParams: function argsToParams(triggerID, ttl) {\n    return {\n      triggerID: triggerID,\n      ttl: ttl\n    };\n  },\n  validateParams: function validateParams() {\n    var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n      triggerID = _ref2.triggerID,\n      _ref2$ttl = _ref2.ttl,\n      ttl = _ref2$ttl === void 0 ? 0 : _ref2$ttl;\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()('string' === typeof triggerID && triggerID.length, 'triggerID is required and must be a string');\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()('number' === typeof ttl, 'ttl must be a number');\n  }\n});\nvar fetchSendSurveyEventStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_8__[\"createFetchStore\"])({\n  baseName: 'sendSurveyEvent',\n  controlCallback: function controlCallback(_ref3) {\n    var event = _ref3.event,\n      session = _ref3.session;\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__[\"set\"])('core', 'user', 'survey-event', {\n      event: event,\n      session: session\n    });\n  },\n  argsToParams: function argsToParams(event, session) {\n    return {\n      event: event,\n      session: session\n    };\n  }\n});\nvar fetchGetSurveyTimeoutsStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_8__[\"createFetchStore\"])({\n  baseName: 'getSurveyTimeouts',\n  controlCallback: function controlCallback() {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__[\"get\"])('core', 'user', 'survey-timeouts', {}, {\n      useCache: false\n    });\n  },\n  reducerCallback: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createReducer\"])(function (state, surveyTimeouts) {\n    state.surveyTimeouts = Array.isArray(surveyTimeouts) ? surveyTimeouts : [];\n  })\n});\nvar fetchGetSurveyStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_8__[\"createFetchStore\"])({\n  baseName: 'getSurvey',\n  controlCallback: function controlCallback() {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_5__[\"get\"])('core', 'user', 'survey', {});\n  },\n  reducerCallback: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createReducer\"])(function (state, _ref4) {\n    var survey = _ref4.survey;\n    var _ref5 = survey ? survey : {},\n      _ref5$survey_payload = _ref5.survey_payload,\n      currentSurvey = _ref5$survey_payload === void 0 ? null : _ref5$survey_payload,\n      _ref5$session = _ref5.session,\n      currentSurveySession = _ref5$session === void 0 ? null : _ref5$session;\n    state.currentSurvey = currentSurvey;\n    state.currentSurveySession = currentSurveySession;\n  })\n});\nvar baseInitialState = {\n  currentSurvey: undefined,\n  currentSurveySession: undefined,\n  lockedSurveyTriggers: {}\n};\nvar LOCK_SURVEY_TRIGGER = 'LOCK_SURVEY_TRIGGER';\nvar UNLOCK_SURVEY_TRIGGER = 'UNLOCK_SURVEY_TRIGGER';\nfunction lockSurveyTrigger(triggerID) {\n  return {\n    type: LOCK_SURVEY_TRIGGER,\n    payload: {\n      triggerID: triggerID\n    }\n  };\n}\nfunction unlockSurveyTrigger(triggerID) {\n  return {\n    type: UNLOCK_SURVEY_TRIGGER,\n    payload: {\n      triggerID: triggerID\n    }\n  };\n}\nvar baseActions = {\n  /**\n   * Triggers a survey.\n   *\n   * @since 1.34.0\n   *\n   * @param {string} triggerID     Trigger ID for the survey.\n   * @param {Object} options       Survey options.\n   * @param {number} [options.ttl] Optional. TTL for survey.\n   * @return {Object} Object with `response` and `error`.\n   */\n  triggerSurvey: Object(_js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_9__[\"createValidatedAction\"])(function (triggerID) {\n    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    var _options$ttl = options.ttl,\n      ttl = _options$ttl === void 0 ? 0 : _options$ttl;\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()('string' === typeof triggerID && triggerID.length, 'triggerID is required and must be a string');\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()(Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"isPlainObject\"])(options), 'options must be an object');\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()('number' === typeof ttl, 'options.ttl must be a number');\n  }, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(triggerID) {\n    var options,\n      _options$ttl2,\n      ttl,\n      _yield$commonActions$,\n      select,\n      resolveSelect,\n      _select,\n      isAuthenticated,\n      isSurveyTimedOut,\n      isSurveyTriggerLocked,\n      getSurveyTimeouts,\n      _select2,\n      isUsingProxy,\n      _yield$fetchTriggerSu,\n      response,\n      error,\n      timeouts,\n      _args = arguments;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};\n            _options$ttl2 = options.ttl, ttl = _options$ttl2 === void 0 ? 0 : _options$ttl2;\n            _context.next = 4;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"commonActions\"].getRegistry();\n          case 4:\n            _yield$commonActions$ = _context.sent;\n            select = _yield$commonActions$.select;\n            resolveSelect = _yield$commonActions$.resolveSelect;\n            _select = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]), isAuthenticated = _select.isAuthenticated, isSurveyTimedOut = _select.isSurveyTimedOut, isSurveyTriggerLocked = _select.isSurveyTriggerLocked, getSurveyTimeouts = _select.getSurveyTimeouts; // eslint-disable-next-line @wordpress/no-unused-vars-before-return\n            _select2 = select(_js_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_SITE\"]), isUsingProxy = _select2.isUsingProxy; // The lock prevents multiple concurrent triggers for the same ID.\n            if (!isSurveyTriggerLocked(triggerID)) {\n              _context.next = 11;\n              break;\n            }\n            return _context.abrupt(\"return\", {});\n          case 11:\n            _context.next = 13;\n            return lockSurveyTrigger(triggerID);\n          case 13:\n            _context.prev = 13;\n            _context.next = 16;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"commonActions\"].await(Promise.all([resolveSelect(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getAuthentication(), resolveSelect(_js_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_10__[\"CORE_SITE\"]).getSiteInfo()]));\n          case 16:\n            if (!(!isAuthenticated() || !isUsingProxy())) {\n              _context.next = 18;\n              break;\n            }\n            return _context.abrupt(\"return\", {});\n          case 18:\n            _context.next = 20;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"commonActions\"].await(resolveSelect(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getSurveyTimeouts());\n          case 20:\n            if (!isSurveyTimedOut(triggerID)) {\n              _context.next = 22;\n              break;\n            }\n            return _context.abrupt(\"return\", {\n              response: {},\n              error: false\n            });\n          case 22:\n            _context.next = 24;\n            return fetchTriggerSurveyStore.actions.fetchTriggerSurvey(triggerID, ttl);\n          case 24:\n            _yield$fetchTriggerSu = _context.sent;\n            response = _yield$fetchTriggerSu.response;\n            error = _yield$fetchTriggerSu.error;\n            if (!error) {\n              _context.next = 29;\n              break;\n            }\n            return _context.abrupt(\"return\", {\n              response: response,\n              error: error\n            });\n          case 29:\n            if (!(ttl > 0)) {\n              _context.next = 33;\n              break;\n            }\n            // Survey timeouts should be available here; fallback to empty array in case of error.\n            timeouts = getSurveyTimeouts() || []; // Add the trigger to the list of timeouts directly (next time it will come from server side).\n            _context.next = 33;\n            return fetchGetSurveyTimeoutsStore.actions.receiveGetSurveyTimeouts([].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(timeouts), [triggerID]));\n          case 33:\n            return _context.abrupt(\"return\", {\n              response: {},\n              error: false\n            });\n          case 34:\n            _context.prev = 34;\n            _context.next = 37;\n            return unlockSurveyTrigger(triggerID);\n          case 37:\n            return _context.finish(34);\n          case 38:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, _callee, null, [[13,, 34, 38]]);\n  })),\n  /**\n   * Sends a survey event.\n   *\n   * @since 1.34.0\n   *\n   * @param {string} eventID   Event ID for the survey.\n   * @param {Object} eventData Event data.\n   * @return {Object} Object with `response` and `error`.\n   */\n  sendSurveyEvent: Object(_js_googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_9__[\"createValidatedAction\"])(function (eventID) {\n    var eventData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()('string' === typeof eventID && eventID.length, 'eventID is required and must be a string');\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()(Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"isPlainObject\"])(eventData), 'eventData must be an object');\n  }, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2(eventID) {\n    var eventData,\n      event,\n      _yield$commonActions$2,\n      select,\n      session,\n      _yield$fetchSendSurve,\n      response,\n      error,\n      _args2 = arguments;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) {\n      while (1) {\n        switch (_context2.prev = _context2.next) {\n          case 0:\n            eventData = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};\n            event = _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, eventID, eventData);\n            _context2.next = 4;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"commonActions\"].getRegistry();\n          case 4:\n            _yield$commonActions$2 = _context2.sent;\n            select = _yield$commonActions$2.select;\n            session = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getCurrentSurveySession();\n            if (!session) {\n              _context2.next = 14;\n              break;\n            }\n            _context2.next = 10;\n            return fetchSendSurveyEventStore.actions.fetchSendSurveyEvent(event, session);\n          case 10:\n            _yield$fetchSendSurve = _context2.sent;\n            response = _yield$fetchSendSurve.response;\n            error = _yield$fetchSendSurve.error;\n            return _context2.abrupt(\"return\", {\n              response: response,\n              error: error\n            });\n          case 14:\n            return _context2.abrupt(\"return\", {\n              response: null,\n              error: 'no session found'\n            });\n          case 15:\n          case \"end\":\n            return _context2.stop();\n        }\n      }\n    }, _callee2);\n  }))\n};\nvar baseResolvers = {\n  getCurrentSurvey: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function getCurrentSurvey() {\n    var _yield$commonActions$3, select, currentSurvey;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function getCurrentSurvey$(_context3) {\n      while (1) {\n        switch (_context3.prev = _context3.next) {\n          case 0:\n            _context3.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"commonActions\"].getRegistry();\n          case 2:\n            _yield$commonActions$3 = _context3.sent;\n            select = _yield$commonActions$3.select;\n            currentSurvey = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getCurrentSurvey();\n            if (!(currentSurvey === undefined)) {\n              _context3.next = 8;\n              break;\n            }\n            _context3.next = 8;\n            return fetchGetSurveyStore.actions.fetchGetSurvey();\n          case 8:\n          case \"end\":\n            return _context3.stop();\n        }\n      }\n    }, getCurrentSurvey);\n  }),\n  getSurveyTimeouts: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function getSurveyTimeouts() {\n    var _yield$commonActions$4, select, surveyTimeouts;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function getSurveyTimeouts$(_context4) {\n      while (1) {\n        switch (_context4.prev = _context4.next) {\n          case 0:\n            _context4.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"commonActions\"].getRegistry();\n          case 2:\n            _yield$commonActions$4 = _context4.sent;\n            select = _yield$commonActions$4.select;\n            surveyTimeouts = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getSurveyTimeouts();\n            if (!(surveyTimeouts === undefined)) {\n              _context4.next = 8;\n              break;\n            }\n            _context4.next = 8;\n            return fetchGetSurveyTimeoutsStore.actions.fetchGetSurveyTimeouts();\n          case 8:\n          case \"end\":\n            return _context4.stop();\n        }\n      }\n    }, getSurveyTimeouts);\n  })\n};\nvar baseSelectors = {\n  /**\n   * Gets the current survey.\n   *\n   * @since 1.34.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {Object} Current survey object.\n   */\n  getCurrentSurvey: function getCurrentSurvey(state) {\n    return state.currentSurvey;\n  },\n  /**\n   * Gets the current survey session.\n   *\n   * @since 1.34.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {Object} Current survey session object.\n   */\n  getCurrentSurveySession: function getCurrentSurveySession(state) {\n    return state.currentSurveySession;\n  },\n  /**\n   * Gets the completion triggers for the current survey, if one exists.\n   *\n   * @since 1.35.0\n   *\n   * @return {Array|null} Current survey's completion triggers if available; `null` if no questions/survey are found.\n   */\n  getCurrentSurveyCompletions: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var currentSurvey = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getCurrentSurvey();\n      return (currentSurvey === null || currentSurvey === void 0 ? void 0 : currentSurvey.completion) || null;\n    };\n  }),\n  /**\n   * Gets the questions from the current survey, if one exists.\n   *\n   * @since 1.35.0\n   *\n   * @return {Array|null} Current survey's questions if available; `null` if no questions/survey are found.\n   */\n  getCurrentSurveyQuestions: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var currentSurvey = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getCurrentSurvey();\n      return (currentSurvey === null || currentSurvey === void 0 ? void 0 : currentSurvey.question) || null;\n    };\n  }),\n  /**\n   * Gets the list of survey timeouts.\n   *\n   * @since 1.73.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(string[]|undefined)} Array of surveys slugs, `undefined` if not resolved yet.\n   */\n  getSurveyTimeouts: function getSurveyTimeouts(state) {\n    return state.surveyTimeouts;\n  },\n  /**\n   * Determines whether the survey is timed out or not.\n   *\n   * @since 1.73.0\n   *\n   * @param {Object} state Data store's state.\n   * @param {string} slug  Item slug.\n   * @return {(boolean|undefined)} TRUE if timed out, otherwise FALSE, `undefined` if not resolved yet.\n   */\n  isSurveyTimedOut: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function (state, slug) {\n      var timeouts = select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).getSurveyTimeouts();\n      return timeouts === undefined ? undefined : timeouts.includes(slug);\n    };\n  }),\n  /**\n   * Checks if the given survey trigger is currently locked.\n   *\n   * @since 1.147.0\n   *\n   * @param {Object} state     Data store's state.\n   * @param {string} triggerID Survey trigger ID.\n   * @return {boolean} TRUE if locked, otherwise FALSE.\n   */\n  isSurveyTriggerLocked: function isSurveyTriggerLocked(state, triggerID) {\n    return !!state.lockedSurveyTriggers[triggerID];\n  },\n  /**\n   * Determines whether surveys are on cooldown or not.\n   *\n   * @since 1.98.0\n   *\n   * @return {(boolean|undefined)} TRUE if surveys are on cooldown, otherwise FALSE, `undefined` if not resolved yet.\n   */\n  areSurveysOnCooldown: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      return select(_constants__WEBPACK_IMPORTED_MODULE_7__[\"CORE_USER\"]).isSurveyTimedOut(_constants__WEBPACK_IMPORTED_MODULE_7__[\"GLOBAL_SURVEYS_TIMEOUT_SLUG\"]);\n    };\n  })\n};\nvar reducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"createReducer\"])(function (state, action) {\n  switch (action.type) {\n    case LOCK_SURVEY_TRIGGER:\n      {\n        var triggerID = action.payload.triggerID;\n        state.lockedSurveyTriggers[triggerID] = true;\n        break;\n      }\n    case UNLOCK_SURVEY_TRIGGER:\n      {\n        var _triggerID = action.payload.triggerID;\n        state.lockedSurveyTriggers[_triggerID] = false;\n      }\n  }\n});\nvar store = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_6__[\"combineStores\"])(fetchTriggerSurveyStore, fetchSendSurveyEventStore, fetchGetSurveyTimeoutsStore, fetchGetSurveyStore, {\n  initialState: baseInitialState,\n  actions: baseActions,\n  reducer: reducer,\n  resolvers: baseResolvers,\n  selectors: baseSelectors\n});\nvar initialState = store.initialState;\nvar actions = store.actions;\nvar resolvers = store.resolvers;\nvar selectors = store.selectors;\n/* harmony default export */ __webpack_exports__[\"default\"] = (store);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/surveys.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/tracking.js":
/*!*****************************************************!*\
  !*** ./js/googlesitekit/datastore/user/tracking.js ***!
  \*****************************************************/
/*! exports provided: baseReducer, initialState, actions, controls, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"baseReducer\", function() { return baseReducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! googlesitekit-api */ \"googlesitekit-api\");\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_api__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/js/googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n/* harmony import */ var _js_googlesitekit_data_create_error_store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/js/googlesitekit/data/create-error-store */ \"./js/googlesitekit/data/create-error-store.js\");\n\n/**\n * `core/user` data store: Tracking info.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* eslint-disable sitekit/jsdoc-no-unnamed-boolean-params */\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\nvar receiveError = _js_googlesitekit_data_create_error_store__WEBPACK_IMPORTED_MODULE_5__[\"actions\"].receiveError,\n  clearError = _js_googlesitekit_data_create_error_store__WEBPACK_IMPORTED_MODULE_5__[\"actions\"].clearError;\nvar fetchStoreReducerCallback = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"createReducer\"])(function (state, tracking) {\n  state.tracking = tracking;\n});\nvar fetchGetTrackingStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_4__[\"createFetchStore\"])({\n  baseName: 'getTracking',\n  controlCallback: function controlCallback() {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_1__[\"get\"])('core', 'user', 'tracking');\n  },\n  reducerCallback: fetchStoreReducerCallback\n});\nvar fetchSaveTrackingStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_4__[\"createFetchStore\"])({\n  baseName: 'setTracking',\n  controlCallback: function controlCallback(enabled) {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_1__[\"set\"])('core', 'user', 'tracking', {\n      enabled: !!enabled\n    });\n  },\n  reducerCallback: fetchStoreReducerCallback,\n  argsToParams: function argsToParams(enabled) {\n    return enabled;\n  }\n});\nvar baseInitialState = {\n  tracking: undefined,\n  isSavingTrackingEnabled: false\n};\n\n// Actions\nvar SET_TRACKING_ENABLED_SAVING_ACTION = 'SET_TRACKING_ENABLED_SAVING_ACTION';\nvar baseActions = {\n  /**\n   * Sets user tracking settings.\n   *\n   * @since 1.28.0\n   *\n   * @param {boolean} enabled Tracking status.\n   * @return {Object} Object with `response` and `error`.\n   */\n  setTrackingEnabled: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function setTrackingEnabled(enabled) {\n    var _yield$fetchSaveTrack, response, error;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function setTrackingEnabled$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            _context.next = 2;\n            return clearError('setTrackingEnabled', [enabled]);\n          case 2:\n            _context.next = 4;\n            return {\n              type: SET_TRACKING_ENABLED_SAVING_ACTION,\n              payload: {\n                isSaving: true\n              }\n            };\n          case 4:\n            _context.next = 6;\n            return fetchSaveTrackingStore.actions.fetchSetTracking(enabled);\n          case 6:\n            _yield$fetchSaveTrack = _context.sent;\n            response = _yield$fetchSaveTrack.response;\n            error = _yield$fetchSaveTrack.error;\n            if (!error) {\n              _context.next = 12;\n              break;\n            }\n            _context.next = 12;\n            return receiveError(error, 'setTrackingEnabled', [enabled]);\n          case 12:\n            _context.next = 14;\n            return {\n              type: SET_TRACKING_ENABLED_SAVING_ACTION,\n              payload: {\n                isSaving: false\n              }\n            };\n          case 14:\n            return _context.abrupt(\"return\", {\n              response: response,\n              error: error\n            });\n          case 15:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, setTrackingEnabled);\n  })\n};\nvar baseReducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"createReducer\"])(function (state, _ref) {\n  var type = _ref.type,\n    payload = _ref.payload;\n  switch (type) {\n    case SET_TRACKING_ENABLED_SAVING_ACTION:\n      state.isSavingTrackingEnabled = payload.isSaving;\n      break;\n    default:\n      break;\n  }\n});\nvar baseResolvers = {\n  isTrackingEnabled: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function isTrackingEnabled() {\n    var _yield$commonActions$, select;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function isTrackingEnabled$(_context2) {\n      while (1) {\n        switch (_context2.prev = _context2.next) {\n          case 0:\n            _context2.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"commonActions\"].getRegistry();\n          case 2:\n            _yield$commonActions$ = _context2.sent;\n            select = _yield$commonActions$.select;\n            if (!(select(_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_USER\"]).isTrackingEnabled() === undefined)) {\n              _context2.next = 7;\n              break;\n            }\n            _context2.next = 7;\n            return fetchGetTrackingStore.actions.fetchGetTracking();\n          case 7:\n          case \"end\":\n            return _context2.stop();\n        }\n      }\n    }, isTrackingEnabled);\n  })\n};\nvar baseSelectors = {\n  /**\n   * Determines whether the user tracking settings are being saved or not.\n   *\n   * @since 1.28.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {boolean} TRUE if the user tracking settings are being saved, otherwise FALSE.\n   */\n  isSavingTrackingEnabled: function isSavingTrackingEnabled(state) {\n    return !!(state === null || state === void 0 ? void 0 : state.isSavingTrackingEnabled);\n  },\n  /**\n   * Determines whether the user tracking is enabled or not.\n   *\n   * @since 1.28.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(boolean|undefined)} TRUE if user tracking enabled, otherwise FALSE.\n   */\n  isTrackingEnabled: function isTrackingEnabled(state) {\n    var tracking = state.tracking;\n    return tracking === null || tracking === void 0 ? void 0 : tracking.enabled;\n  }\n};\nvar store = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"combineStores\"])(fetchGetTrackingStore, fetchSaveTrackingStore, {\n  initialState: baseInitialState,\n  actions: baseActions,\n  reducer: baseReducer,\n  resolvers: baseResolvers,\n  selectors: baseSelectors\n});\nvar initialState = store.initialState;\nvar actions = store.actions;\nvar controls = store.controls;\nvar reducer = store.reducer;\nvar resolvers = store.resolvers;\nvar selectors = store.selectors;\n/* harmony default export */ __webpack_exports__[\"default\"] = (store);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/tracking.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/user-info.js":
/*!******************************************************!*\
  !*** ./js/googlesitekit/datastore/user/user-info.js ***!
  \******************************************************/
/*! exports provided: actions, controls, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/taggedTemplateLiteral */ \"../node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js\");\n/* harmony import */ var _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/url */ \"../node_modules/@wordpress/url/build-module/index.js\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_util_escape_uri__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/js/util/escape-uri */ \"./js/util/escape-uri.js\");\n\n\n\nfunction _templateObject() {\n  var data = _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_0___default()([\"https://accounts.google.com/accountchooser?continue=\", \"&Email=\", \"\"]);\n  _templateObject = function _templateObject() {\n    return data;\n  };\n  return data;\n}\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n/**\n * `core/user` data store: user info\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* eslint-disable sitekit/jsdoc-no-unnamed-boolean-params */\n\n/**\n * External dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\nvar RECEIVE_CONNECT_URL = 'RECEIVE_CONNECT_URL';\nvar RECEIVE_USER_INFO = 'RECEIVE_USER_INFO';\nvar RECEIVE_USER_IS_VERIFIED = 'RECEIVE_USER_IS_VERIFIED';\nvar RECEIVE_IS_USER_INPUT_COMPLETED = 'RECEIVE_IS_USER_INPUT_COMPLETED';\nvar RECEIVE_USER_INITIAL_SITE_KIT_VERSION = 'RECEIVE_USER_INITIAL_SITE_KIT_VERSION';\nvar initialState = {\n  connectURL: undefined,\n  initialVersion: undefined,\n  user: undefined,\n  verified: undefined,\n  isUserInputCompleted: undefined\n};\nvar actions = {\n  /**\n   * Stores the OAuth connection URL in the datastore.\n   *\n   * @since 1.9.0\n   * @private\n   *\n   * @param {string} connectURL Full URL to the Site Kit googlesitekit_connect handler.\n   * @return {Object} Redux-style action.\n   */\n  receiveConnectURL: function receiveConnectURL(connectURL) {\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()(connectURL, 'connectURL is required.');\n    return {\n      payload: {\n        connectURL: connectURL\n      },\n      type: RECEIVE_CONNECT_URL\n    };\n  },\n  /**\n   * Stores user info in the datastore.\n   *\n   * Because this is frequently-accessed data, this is usually sourced\n   * from a global variable (`_googlesitekitUserData`), set by PHP\n   * in the `before_print` callback for `googlesitekit-datastore-user`.\n   *\n   * @since 1.9.0\n   * @private\n   *\n   * @param {Object} userInfo User info, usually supplied via a global variable from PHP.\n   * @return {Object} Redux-style action.\n   */\n  receiveUserInfo: function receiveUserInfo(userInfo) {\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()(userInfo, 'userInfo is required.');\n    return {\n      payload: {\n        user: userInfo\n      },\n      type: RECEIVE_USER_INFO\n    };\n  },\n  receiveInitialSiteKitVersion: function receiveInitialSiteKitVersion(initialVersion) {\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()(initialVersion, 'initialVersion is required.');\n    return {\n      payload: {\n        initialVersion: initialVersion\n      },\n      type: RECEIVE_USER_INITIAL_SITE_KIT_VERSION\n    };\n  },\n  /**\n   * Stores user verification status in the datastore.\n   *\n   * Because this is frequently-accessed data, this is usually sourced\n   * from a global variable (`_googlesitekitUserData`), set by PHP\n   * in the `before_print` callback for `googlesitekit-datastore-user`.\n   *\n   * @since 1.9.0\n   * @private\n   *\n   * @param {boolean} userIsVerified User verification status, usually supplied via a global variable from PHP.\n   * @return {Object} Redux-style action.\n   */\n  receiveUserIsVerified: function receiveUserIsVerified(userIsVerified) {\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()(userIsVerified !== undefined, 'userIsVerified is required.');\n    return {\n      payload: {\n        verified: userIsVerified\n      },\n      type: RECEIVE_USER_IS_VERIFIED\n    };\n  },\n  /**\n   * Stores the user input state in the datastore.\n   *\n   * @since 1.94.0\n   * @private\n   *\n   * @param {Object} isUserInputCompleted User input state.\n   * @return {Object} Redux-style action.\n   */\n  receiveIsUserInputCompleted: function receiveIsUserInputCompleted(isUserInputCompleted) {\n    invariant__WEBPACK_IMPORTED_MODULE_3___default()(isUserInputCompleted !== undefined, 'The isUserInputCompleted param is required.');\n    return {\n      payload: {\n        isUserInputCompleted: isUserInputCompleted\n      },\n      type: RECEIVE_IS_USER_INPUT_COMPLETED\n    };\n  }\n};\nvar controls = {};\nvar reducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createReducer\"])(function (state, _ref) {\n  var type = _ref.type,\n    payload = _ref.payload;\n  switch (type) {\n    case RECEIVE_CONNECT_URL:\n      state.connectURL = payload.connectURL;\n      break;\n    case RECEIVE_USER_INFO:\n      state.user = payload.user;\n      break;\n    case RECEIVE_USER_INITIAL_SITE_KIT_VERSION:\n      state.initialVersion = payload.initialVersion;\n      break;\n    case RECEIVE_USER_IS_VERIFIED:\n      state.verified = payload.verified;\n      break;\n    case RECEIVE_IS_USER_INPUT_COMPLETED:\n      state.isUserInputCompleted = payload.isUserInputCompleted;\n      break;\n    default:\n      break;\n  }\n});\nvar resolvers = {\n  getConnectURL: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function getConnectURL() {\n    var _yield$commonActions$, select, connectURL;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function getConnectURL$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            _context.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"commonActions\"].getRegistry();\n          case 2:\n            _yield$commonActions$ = _context.sent;\n            select = _yield$commonActions$.select;\n            if (!select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getConnectURL()) {\n              _context.next = 6;\n              break;\n            }\n            return _context.abrupt(\"return\");\n          case 6:\n            if (global._googlesitekitUserData) {\n              _context.next = 9;\n              break;\n            }\n            global.console.error('Could not load core/user info.');\n            return _context.abrupt(\"return\");\n          case 9:\n            connectURL = global._googlesitekitUserData.connectURL;\n            _context.next = 12;\n            return actions.receiveConnectURL(connectURL);\n          case 12:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, getConnectURL);\n  }),\n  getUser: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function getUser() {\n    var _yield$commonActions$2, select, user;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function getUser$(_context2) {\n      while (1) {\n        switch (_context2.prev = _context2.next) {\n          case 0:\n            _context2.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"commonActions\"].getRegistry();\n          case 2:\n            _yield$commonActions$2 = _context2.sent;\n            select = _yield$commonActions$2.select;\n            if (!(select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getUser() !== undefined)) {\n              _context2.next = 6;\n              break;\n            }\n            return _context2.abrupt(\"return\");\n          case 6:\n            if (global._googlesitekitUserData) {\n              _context2.next = 9;\n              break;\n            }\n            global.console.error('Could not load core/user info.');\n            return _context2.abrupt(\"return\");\n          case 9:\n            user = global._googlesitekitUserData.user;\n            _context2.next = 12;\n            return actions.receiveUserInfo(user);\n          case 12:\n          case \"end\":\n            return _context2.stop();\n        }\n      }\n    }, getUser);\n  }),\n  getInitialSiteKitVersion: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function getInitialSiteKitVersion() {\n    var _yield$commonActions$3, select, initialVersion;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function getInitialSiteKitVersion$(_context3) {\n      while (1) {\n        switch (_context3.prev = _context3.next) {\n          case 0:\n            _context3.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"commonActions\"].getRegistry();\n          case 2:\n            _yield$commonActions$3 = _context3.sent;\n            select = _yield$commonActions$3.select;\n            if (!(select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getInitialSiteKitVersion() !== undefined)) {\n              _context3.next = 6;\n              break;\n            }\n            return _context3.abrupt(\"return\");\n          case 6:\n            if (global._googlesitekitUserData) {\n              _context3.next = 9;\n              break;\n            }\n            global.console.error('Could not load core/user info.');\n            return _context3.abrupt(\"return\");\n          case 9:\n            initialVersion = global._googlesitekitUserData.initialVersion;\n            if (!initialVersion) {\n              _context3.next = 13;\n              break;\n            }\n            _context3.next = 13;\n            return actions.receiveInitialSiteKitVersion(initialVersion);\n          case 13:\n          case \"end\":\n            return _context3.stop();\n        }\n      }\n    }, getInitialSiteKitVersion);\n  }),\n  isVerified: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function isVerified() {\n    var _yield$commonActions$4, select, verified;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function isVerified$(_context4) {\n      while (1) {\n        switch (_context4.prev = _context4.next) {\n          case 0:\n            _context4.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"commonActions\"].getRegistry();\n          case 2:\n            _yield$commonActions$4 = _context4.sent;\n            select = _yield$commonActions$4.select;\n            if (!(select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).isVerified() !== undefined)) {\n              _context4.next = 6;\n              break;\n            }\n            return _context4.abrupt(\"return\");\n          case 6:\n            if (global._googlesitekitUserData) {\n              _context4.next = 9;\n              break;\n            }\n            global.console.error('Could not load core/user info.');\n            return _context4.abrupt(\"return\");\n          case 9:\n            verified = global._googlesitekitUserData.verified;\n            _context4.next = 12;\n            return actions.receiveUserIsVerified(verified);\n          case 12:\n          case \"end\":\n            return _context4.stop();\n        }\n      }\n    }, isVerified);\n  }),\n  isUserInputCompleted: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function isUserInputCompleted() {\n    var _yield$commonActions$5, select, isUserInputCompleted;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function isUserInputCompleted$(_context5) {\n      while (1) {\n        switch (_context5.prev = _context5.next) {\n          case 0:\n            _context5.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"commonActions\"].getRegistry();\n          case 2:\n            _yield$commonActions$5 = _context5.sent;\n            select = _yield$commonActions$5.select;\n            if (!(undefined !== select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).isUserInputCompleted())) {\n              _context5.next = 6;\n              break;\n            }\n            return _context5.abrupt(\"return\");\n          case 6:\n            if (global._googlesitekitUserData) {\n              _context5.next = 9;\n              break;\n            }\n            global.console.error('Could not load core/user info.');\n            return _context5.abrupt(\"return\");\n          case 9:\n            isUserInputCompleted = global._googlesitekitUserData.isUserInputCompleted;\n            _context5.next = 12;\n            return actions.receiveIsUserInputCompleted(isUserInputCompleted);\n          case 12:\n          case \"end\":\n            return _context5.stop();\n        }\n      }\n    }, isUserInputCompleted);\n  })\n};\nvar selectors = {\n  /**\n   * Gets the user info for the logged in user.\n   *\n   * Returns `undefined` if the user info is not available/loaded.\n   *\n   * Returns an object with the shape when successful:\n   * ```\n   * {\n   *   user: <Object>,\n   *   verified: <Boolean>,\n   * }\n   * ```\n   *\n   * @since 1.9.0\n   * @private\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Object|undefined)} User info.\n   */\n  getUser: function getUser(state) {\n    var user = state.user;\n    return user;\n  },\n  /**\n   * Gets a URL for (re)connecting via OAuth, with optional additional scopes.\n   *\n   * @since 1.9.0\n   * @since 1.34.1 Updated resulting URL when additional scopes are provided.\n   *\n   * @param {Object}   state                   Data store's state.\n   * @param {Object}   [args]                  Optional arguments for the resulting URL.\n   * @param {string[]} [args.additionalScopes] Additional scopes to request.\n   * @param {string}   [args.redirectURL]      URL to redirect to after successful authentication.\n   * @param {string}   [args.errorRedirectURL] URL to redirect to if an error is returned during authentication.\n   * @return {(string|undefined)} Full URL to connect, or `undefined` if not loaded yet.\n   */\n  getConnectURL: function getConnectURL(state) {\n    var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n      _ref2$additionalScope = _ref2.additionalScopes,\n      additionalScopes = _ref2$additionalScope === void 0 ? [] : _ref2$additionalScope,\n      _ref2$redirectURL = _ref2.redirectURL,\n      redirectURL = _ref2$redirectURL === void 0 ? undefined : _ref2$redirectURL,\n      _ref2$errorRedirectUR = _ref2.errorRedirectURL,\n      errorRedirectURL = _ref2$errorRedirectUR === void 0 ? undefined : _ref2$errorRedirectUR;\n    var connectURL = state.connectURL;\n    var queryArgs = {\n      redirect: redirectURL,\n      errorRedirect: errorRedirectURL\n    };\n    if (connectURL === undefined) {\n      return undefined;\n    }\n\n    // If additional scopes are provided, pass them in the dedicated query param.\n    if (additionalScopes === null || additionalScopes === void 0 ? void 0 : additionalScopes.length) {\n      // Some hosts with aggressive security filters block URLs with query parameters\n      // that begin with a URL. This will block these requests because most scopes\n      // are valid URLs. As a workaround, we rewrite the scheme temporarily\n      // and then restore it on the server before requesting scopes.\n      var rewrittenScopes = additionalScopes.map(function (scope) {\n        return scope.replace(/^http(s)?:/, 'gttp$1:');\n      });\n      return Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_4__[\"addQueryArgs\"])(connectURL, _objectSpread(_objectSpread({}, queryArgs), {}, {\n        additional_scopes: rewrittenScopes\n      }));\n    }\n    return Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_4__[\"addQueryArgs\"])(connectURL, queryArgs);\n  },\n  /**\n   * Gets the ID for this user.\n   *\n   * Returns ID of the user or `undefined` if the user info is not available/loaded.\n   *\n   * @since 1.9.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(number|undefined)} The user ID.\n   */\n  getID: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var user = select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getUser();\n      return user !== undefined ? user.id : user;\n    };\n  }),\n  /**\n   * Gets the Name for this user.\n   *\n   * Returns Name of the user or `undefined` if the user info is not available/loaded.\n   *\n   * @since 1.9.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(string|undefined)} The user ID.\n   */\n  getName: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var user = select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getUser();\n      return user !== undefined ? user.name : user;\n    };\n  }),\n  /**\n   * Gets the Email for this user.\n   *\n   * Returns email of the user or `undefined` if the user info is not available/loaded.\n   *\n   * @since 1.9.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(string|undefined)} The user ID.\n   */\n  getEmail: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var user = select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getUser();\n      return user !== undefined ? user.email : user;\n    };\n  }),\n  /**\n   * Gets the url to the picture for this user.\n   *\n   * Returns url of the user picture or `undefined` if the user info is not available/loaded.\n   *\n   * @since 1.9.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(string|undefined)} The user ID.\n   */\n  getPicture: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var user = select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getUser();\n      return user !== undefined ? user.picture : user;\n    };\n  }),\n  /**\n   * Gets the full name name for this user.\n   *\n   * Returns full name of the user or `undefined` if the user info is not available/loaded.\n   *\n   * @since 1.86.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(string|null|undefined)} The user's full name; will be set to `null` if not available in the user's profile data and `undefined` while loading.\n   */\n  getFullName: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createRegistrySelector\"])(function (select) {\n    return function () {\n      var user = select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getUser();\n      if (user === undefined) {\n        return undefined;\n      }\n      return user.full_name;\n    };\n  }),\n  /**\n   * Gets an account chooser url with the current user's email.\n   *\n   * @since 1.80.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(string|undefined)} The concatenated url if an email is present; otherwise undefined.\n   */\n  getAccountChooserURL: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createRegistrySelector\"])(function (select) {\n    return function (state, destinationURL) {\n      invariant__WEBPACK_IMPORTED_MODULE_3___default()(destinationURL, 'destinationURL is required');\n      var userEmail = select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getEmail();\n      if (userEmail === undefined) {\n        return undefined;\n      }\n\n      // The `Email` parameter is case sensitive;\n      // the capital E is required for the account chooser URL.\n      return Object(_js_util_escape_uri__WEBPACK_IMPORTED_MODULE_7__[\"escapeURI\"])(_templateObject(), destinationURL, userEmail);\n    };\n  }),\n  /**\n   * Gets the initial version that the user used Site Kit with.\n   *\n   * @since 1.27.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(string|undefined)} `string` Site Kit version number,\n   *                              `undefined` if not resolve yet.\n   */\n  getInitialSiteKitVersion: function getInitialSiteKitVersion(state) {\n    return state.initialVersion;\n  },\n  /**\n   * Gets the verified status for this user.\n   *\n   * Returns the true if the user is verified, false if not verified, or `undefined` if the user info is not available/loaded.\n   *\n   * @since 1.9.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(boolean|undefined)} The user ID.\n   */\n  isVerified: function isVerified(state) {\n    var verified = state.verified;\n    return verified;\n  },\n  /**\n   * Gets the user input state.\n   *\n   * @since 1.94.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {string} The user input state.\n   */\n  isUserInputCompleted: function isUserInputCompleted(state) {\n    var isUserInputCompleted = state.isUserInputCompleted;\n    return isUserInputCompleted;\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  initialState: initialState,\n  actions: actions,\n  controls: controls,\n  reducer: reducer,\n  resolvers: resolvers,\n  selectors: selectors\n});\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../node_modules/webpack/buildin/global.js */ \"../node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/user-info.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/user/user-input-settings.js":
/*!****************************************************************!*\
  !*** ./js/googlesitekit/datastore/user/user-input-settings.js ***!
  \****************************************************************/
/*! exports provided: baseReducer, initialState, actions, controls, reducer, resolvers, selectors, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"baseReducer\", function() { return baseReducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initialState\", function() { return initialState; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"controls\", function() { return controls; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reducer\", function() { return reducer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvers\", function() { return resolvers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"selectors\", function() { return selectors; });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ \"../node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! googlesitekit-api */ \"googlesitekit-api\");\n/* harmony import */ var googlesitekit_api__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_api__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/js/googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n/* harmony import */ var _js_googlesitekit_data_create_error_store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/js/googlesitekit/data/create-error-store */ \"./js/googlesitekit/data/create-error-store.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n/**\n * `core/user` settings store: user input settings.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\nvar receiveError = _js_googlesitekit_data_create_error_store__WEBPACK_IMPORTED_MODULE_8__[\"actions\"].receiveError,\n  clearError = _js_googlesitekit_data_create_error_store__WEBPACK_IMPORTED_MODULE_8__[\"actions\"].clearError;\nvar fetchStoreReducerCallback = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createReducer\"])(function (state, inputSettings) {\n  state.inputSettings = inputSettings;\n  state.savedInputSettings = inputSettings;\n});\nvar fetchGetUserInputSettingsStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_7__[\"createFetchStore\"])({\n  baseName: 'getUserInputSettings',\n  controlCallback: function controlCallback() {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_4__[\"get\"])('core', 'user', 'user-input-settings', undefined, {\n      useCache: false\n    });\n  },\n  reducerCallback: fetchStoreReducerCallback\n});\nvar fetchSaveUserInputSettingsStore = Object(_js_googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_7__[\"createFetchStore\"])({\n  baseName: 'saveUserInputSettings',\n  controlCallback: function controlCallback(settings) {\n    return Object(googlesitekit_api__WEBPACK_IMPORTED_MODULE_4__[\"set\"])('core', 'user', 'user-input-settings', {\n      settings: settings\n    });\n  },\n  reducerCallback: fetchStoreReducerCallback,\n  argsToParams: function argsToParams(settings) {\n    return settings;\n  },\n  validateParams: function validateParams(settings) {\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"isPlainObject\"])(settings), 'valid settings are required.');\n  }\n});\n\n// Actions\nvar SET_USER_INPUT_SETTING = 'SET_USER_INPUT_SETTING';\nvar SET_USER_INPUT_SETTINGS_SAVING_FLAG = 'SET_USER_INPUT_SETTINGS_SAVING_FLAG';\nvar RESET_USER_INPUT_SETTINGS = 'RESET_USER_INPUT_SETTINGS';\nvar baseInitialState = {\n  inputSettings: undefined,\n  isSavingInputSettings: false,\n  savedInputSettings: undefined\n};\nvar baseActions = {\n  /**\n   * Sets user input setting.\n   *\n   * @since 1.19.0 Function introduced.\n   *\n   * @param {string}         settingID Setting key.\n   * @param {Array.<string>} values    User input settings.\n   * @return {Object} Redux-style action.\n   */\n  setUserInputSetting: function setUserInputSetting(settingID, values) {\n    return {\n      type: SET_USER_INPUT_SETTING,\n      payload: {\n        settingID: settingID,\n        values: values.map(function (value) {\n          return value.trim();\n        })\n      }\n    };\n  },\n  /**\n   * Saves user input settings.\n   *\n   * @since 1.19.0\n   *\n   * @return {Object} Object with `response` and `error`.\n   */\n  saveUserInputSettings: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function saveUserInputSettings() {\n    var registry, trim, notEmpty, settings, values, _yield$fetchSaveUserI, response, error;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function saveUserInputSettings$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            notEmpty = function _notEmpty(value) {\n              return value.length > 0;\n            };\n            trim = function _trim(value) {\n              return value.trim();\n            };\n            _context.next = 4;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"commonActions\"].getRegistry();\n          case 4:\n            registry = _context.sent;\n            _context.next = 7;\n            return clearError('saveUserInputSettings', []);\n          case 7:\n            settings = registry.select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getUserInputSettings();\n            values = Object.keys(settings).reduce(function (accum, key) {\n              var _settings$key;\n              return _objectSpread(_objectSpread({}, accum), {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, key, (((_settings$key = settings[key]) === null || _settings$key === void 0 ? void 0 : _settings$key.values) || []).map(trim).filter(notEmpty)));\n            }, {});\n            _context.next = 11;\n            return {\n              type: SET_USER_INPUT_SETTINGS_SAVING_FLAG,\n              payload: {\n                isSaving: true\n              }\n            };\n          case 11:\n            _context.next = 13;\n            return fetchSaveUserInputSettingsStore.actions.fetchSaveUserInputSettings(values);\n          case 13:\n            _yield$fetchSaveUserI = _context.sent;\n            response = _yield$fetchSaveUserI.response;\n            error = _yield$fetchSaveUserI.error;\n            if (!error) {\n              _context.next = 19;\n              break;\n            }\n            _context.next = 19;\n            return receiveError(error, 'saveUserInputSettings', []);\n          case 19:\n            if (error) {\n              _context.next = 22;\n              break;\n            }\n            _context.next = 22;\n            return baseActions.maybeTriggerUserInputSurvey();\n          case 22:\n            _context.next = 24;\n            return {\n              type: SET_USER_INPUT_SETTINGS_SAVING_FLAG,\n              payload: {\n                isSaving: false\n              }\n            };\n          case 24:\n            return _context.abrupt(\"return\", {\n              response: response,\n              error: error\n            });\n          case 25:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, saveUserInputSettings);\n  }),\n  /**\n   * Resets modified user input settings to currently saved values.\n   *\n   * @since 1.93.0\n   *\n   * @return {Object} Redux-style action.\n   */\n  resetUserInputSettings: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function resetUserInputSettings() {\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function resetUserInputSettings$(_context2) {\n      while (1) {\n        switch (_context2.prev = _context2.next) {\n          case 0:\n            return _context2.abrupt(\"return\", {\n              type: RESET_USER_INPUT_SETTINGS,\n              payload: {}\n            });\n          case 1:\n          case \"end\":\n            return _context2.stop();\n        }\n      }\n    }, resetUserInputSettings);\n  }),\n  /**\n   * Triggers user input survey if any of the answers is \"Other\".\n   *\n   * @since 1.104.0\n   *\n   * @return {Object} Object with `response` and `error`.\n   */\n  maybeTriggerUserInputSurvey: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function maybeTriggerUserInputSurvey() {\n    var _yield$commonActions$, resolveSelect, dispatch, settings, settingsAnsweredOther, triggerID, _yield$commonActions$2, response, error;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function maybeTriggerUserInputSurvey$(_context3) {\n      while (1) {\n        switch (_context3.prev = _context3.next) {\n          case 0:\n            _context3.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"commonActions\"].getRegistry();\n          case 2:\n            _yield$commonActions$ = _context3.sent;\n            resolveSelect = _yield$commonActions$.resolveSelect;\n            dispatch = _yield$commonActions$.dispatch;\n            _context3.next = 7;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"commonActions\"].await(resolveSelect(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getUserInputSettings());\n          case 7:\n            settings = _context3.sent;\n            settingsAnsweredOther = Object.keys(settings).filter(function (key) {\n              return settings[key].values.includes('other');\n            });\n            if (!(!settingsAnsweredOther.length > 0)) {\n              _context3.next = 11;\n              break;\n            }\n            return _context3.abrupt(\"return\", {});\n          case 11:\n            triggerID = \"userInput_answered_other__\".concat(settingsAnsweredOther.join('_'));\n            _context3.next = 14;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"commonActions\"].await(dispatch(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).triggerSurvey(triggerID));\n          case 14:\n            _yield$commonActions$2 = _context3.sent;\n            response = _yield$commonActions$2.response;\n            error = _yield$commonActions$2.error;\n            return _context3.abrupt(\"return\", {\n              response: response,\n              error: error\n            });\n          case 18:\n          case \"end\":\n            return _context3.stop();\n        }\n      }\n    }, maybeTriggerUserInputSurvey);\n  })\n};\nvar baseReducer = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createReducer\"])(function (state, action) {\n  var type = action.type,\n    payload = action.payload;\n  switch (type) {\n    case SET_USER_INPUT_SETTING:\n      {\n        state.inputSettings = state.inputSettings || {};\n        if (!state.inputSettings[payload.settingID]) {\n          state.inputSettings[payload.settingID] = {};\n        }\n        state.inputSettings[payload.settingID].values = payload.values;\n        break;\n      }\n    case SET_USER_INPUT_SETTINGS_SAVING_FLAG:\n      {\n        state.isSavingInputSettings = payload.isSaving;\n        break;\n      }\n    case RESET_USER_INPUT_SETTINGS:\n      {\n        state.inputSettings = state.savedInputSettings;\n        break;\n      }\n    default:\n      break;\n  }\n});\nvar baseResolvers = {\n  getUserInputSettings: /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function getUserInputSettings() {\n    var _yield$commonActions$3, select;\n    return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function getUserInputSettings$(_context4) {\n      while (1) {\n        switch (_context4.prev = _context4.next) {\n          case 0:\n            _context4.next = 2;\n            return googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"commonActions\"].getRegistry();\n          case 2:\n            _yield$commonActions$3 = _context4.sent;\n            select = _yield$commonActions$3.select;\n            if (select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getUserInputSettings()) {\n              _context4.next = 7;\n              break;\n            }\n            _context4.next = 7;\n            return fetchGetUserInputSettingsStore.actions.fetchGetUserInputSettings();\n          case 7:\n          case \"end\":\n            return _context4.stop();\n        }\n      }\n    }, getUserInputSettings);\n  })\n};\nvar baseSelectors = {\n  /**\n   * Determines whether the user input settings are being saved or not.\n   *\n   * @since 1.25.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {boolean} TRUE if the user input settings are being saved, otherwise FALSE.\n   */\n  isSavingUserInputSettings: function isSavingUserInputSettings(state) {\n    return !!(state === null || state === void 0 ? void 0 : state.isSavingInputSettings);\n  },\n  /**\n   * Gets input settings info for this user.\n   *\n   * @since 1.19.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Object|undefined)} User input settings.\n   */\n  getUserInputSettings: function getUserInputSettings(state) {\n    var inputSettings = state.inputSettings;\n    return inputSettings;\n  },\n  /**\n   * Gets saved input settings info for this user.\n   *\n   * @since 1.141.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Object|undefined)} Saved user input settings.\n   */\n  getSavedUserInputSettings: function getSavedUserInputSettings(state) {\n    var savedInputSettings = state.savedInputSettings;\n    return savedInputSettings;\n  },\n  /**\n   * Gets a particular input setting.\n   *\n   * @since 1.19.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Array.<string>|undefined)} User input setting values.\n   */\n  getUserInputSetting: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createRegistrySelector\"])(function (select) {\n    return function (state, settingID) {\n      var _settings$settingID;\n      var settings = select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getUserInputSettings() || {};\n      var values = (_settings$settingID = settings[settingID]) === null || _settings$settingID === void 0 ? void 0 : _settings$settingID.values;\n      return Array.isArray(values) ? values : [];\n    };\n  }),\n  /**\n   * Gets a scope of the input setting.\n   *\n   * @since 1.20.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(string|undefined)} User input setting scope.\n   */\n  getUserInputSettingScope: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createRegistrySelector\"])(function (select) {\n    return function (state, settingID) {\n      var _settings$settingID2;\n      var settings = select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getUserInputSettings() || {};\n      return (_settings$settingID2 = settings[settingID]) === null || _settings$settingID2 === void 0 ? void 0 : _settings$settingID2.scope;\n    };\n  }),\n  /**\n   * Gets an author of the input setting.\n   *\n   * @since 1.20.0\n   *\n   * @param {Object} state Data store's state.\n   * @return {(Object|undefined)} User input setting author.\n   */\n  getUserInputSettingAuthor: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"createRegistrySelector\"])(function (select) {\n    return function (state, settingID) {\n      var _settings$settingID3;\n      var settings = select(_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_USER\"]).getUserInputSettings() || {};\n      return (_settings$settingID3 = settings[settingID]) === null || _settings$settingID3 === void 0 ? void 0 : _settings$settingID3.author;\n    };\n  }),\n  /**\n   * Indicates whether the current user input settings have changed from what is saved.\n   *\n   * @since 1.93.0\n   *\n   * @param {Object}     state Data store's state.\n   * @param {Array|null} keys  Settings keys to check; if not provided, all settings are checked.\n   * @return {boolean} True if the settings have changed, false otherwise.\n   */\n  haveUserInputSettingsChanged: function haveUserInputSettingsChanged(state) {\n    var keys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n    var inputSettings = state.inputSettings,\n      savedInputSettings = state.savedInputSettings;\n    if (keys) {\n      return !Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"isEqual\"])(Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"pick\"])(inputSettings, keys), Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"pick\"])(savedInputSettings, keys));\n    }\n    return !Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"isEqual\"])(inputSettings, savedInputSettings);\n  },\n  /**\n   * Indicates whether the provided user input setting has changed from what is saved.\n   *\n   * @since 1.93.0\n   *\n   * @param {Object} state   Data store's state.\n   * @param {string} setting The setting we want to check for saved changes.\n   * @return {boolean} True if the settings have changed, false otherwise.\n   */\n  hasUserInputSettingChanged: function hasUserInputSettingChanged(state, setting) {\n    invariant__WEBPACK_IMPORTED_MODULE_2___default()(setting, 'setting is required.');\n    return baseSelectors.haveUserInputSettingsChanged(state, [setting]);\n  }\n};\nvar store = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"combineStores\"])(fetchGetUserInputSettingsStore, fetchSaveUserInputSettingsStore, {\n  initialState: baseInitialState,\n  actions: baseActions,\n  reducer: baseReducer,\n  resolvers: baseResolvers,\n  selectors: baseSelectors\n});\nvar initialState = store.initialState;\nvar actions = store.actions;\nvar controls = store.controls;\nvar reducer = store.reducer;\nvar resolvers = store.resolvers;\nvar selectors = store.selectors;\n/* harmony default export */ __webpack_exports__[\"default\"] = (store);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/user/user-input-settings.js\n");

/***/ }),

/***/ "./js/googlesitekit/datastore/util/permissions.js":
/*!********************************************************!*\
  !*** ./js/googlesitekit/datastore/util/permissions.js ***!
  \********************************************************/
/*! exports provided: getMetaCapabilityPropertyName */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getMetaCapabilityPropertyName\", function() { return getMetaCapabilityPropertyName; });\n/**\n * `core/user` data store: permission utils.\n *\n * Site Kit by Google, Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Returns the property name for a meta capability, given the capability name and arguments.\n *\n * @since 1.74.0\n *\n * @param {string} capability Meta capability name.\n * @param {...any} args       Meta capability arguments.\n * @return {string} Meta capability property name.\n */\nfunction getMetaCapabilityPropertyName(capability) {\n  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n    args[_key - 1] = arguments[_key];\n  }\n  return \"\".concat(capability, \"::\").concat(JSON.stringify(args));\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L2RhdGFzdG9yZS91dGlsL3Blcm1pc3Npb25zLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvZ29vZ2xlc2l0ZWtpdC9kYXRhc3RvcmUvdXRpb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5hbWUgYW5kIGFyZ3VtZW50cy5cbiAqXG4gKiBAc2luY2UgMS43NC4wXG4gKlxuICogQHBhcmFtIHtzdHJpbmd9IGNhcGFiaWxpdHkgTWV0YSBjYXBhYmlsaXR5IG5hbWUuXG4gKiBAcGFyYW0gey4uLmFueX0gYXJncyAgICAgICBNZXRhIGNhcGFiaWxpdHkgYXJndW1lbnRzLlxuICogQHJldHVybiB7c3RyaW5nfSBNZXRhIGNhcGFiaWxpdHkgcHJvcGVydHkgbmFtZS5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGdldE1ldGFDYXBhYmlsaXR5UHJvcGVydHlOYW1lKCBjYXBhYmlsaXR5LCAuLi5hcmdzICkge1xuXHRyZXR1cm4gYCR7IGNhcGFiaWxpdHkgfTo6JHsgSlNPTi5zdHJpbmdpZnkoIGFyZ3MgKSB9YDtcbn1cbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/util/permissions.js\n");

/***/ }),

/***/ "./js/googlesitekit/modules/datastore/constants.js":
/*!*********************************************************!*\
  !*** ./js/googlesitekit/modules/datastore/constants.js ***!
  \*********************************************************/
/*! exports provided: CORE_MODULES, ERROR_CODE_INSUFFICIENT_MODULE_DEPENDENCIES */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CORE_MODULES\", function() { return CORE_MODULES; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ERROR_CODE_INSUFFICIENT_MODULE_DEPENDENCIES\", function() { return ERROR_CODE_INSUFFICIENT_MODULE_DEPENDENCIES; });\n/**\n * `core/modules` data store: constants.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nvar CORE_MODULES = 'core/modules';\nvar ERROR_CODE_INSUFFICIENT_MODULE_DEPENDENCIES = 'insufficient_module_dependencies';//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L21vZHVsZXMvZGF0YXN0b3JlL2NvbnN0YW50cy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2dvb2dsZXNpdGVraXQvbW9kdWxlcy9kYXRhc3RvcmUvY29uc3RhbnRzLmpzPzA3YjUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBgY29yZS9tb2R1bGVzYCBkYXRhIHN0b3JlOiBjb25zdGFudHMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5c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constants.js":
/*!*********************************************************!*\
  !*** ./js/googlesitekit/widgets/datastore/constants.js ***!
  \*********************************************************/
/*! exports provided: WIDGET_AREA_STYLES, WIDGET_WIDTHS, CORE_WIDGETS */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"WIDGET_AREA_STYLES\", function() { return WIDGET_AREA_STYLES; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"WIDGET_WIDTHS\", function() { return WIDGET_WIDTHS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CORE_WIDGETS\", function() { return CORE_WIDGETS; });\n/**\n * `core/widgets` data store: constants.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nvar WIDGET_AREA_STYLES = {\n  BOXES: 'boxes',\n  COMPOSITE: 'composite'\n};\nvar WIDGET_WIDTHS = {\n  QUARTER: 'quarter',\n  HALF: 'half',\n  FULL: 'full'\n};\nvar CORE_WIDGETS = 'core/widgets';//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L3dpZGdldHMvZGF0YXN0b3JlL2NvbnN0YW50cy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2dvb2dsZXNpdGVraXQvd2lkZ2V0cy9kYXRhc3RvcmUvY29uc3RhbnRzLmpzP2QyZmIiXSwic291cmNlc0NvbnRlbnQiOl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xdWFydGVyJywgSEFMRjogJ2hhbGYnLCBGVUxMOiAnZnVsbCcgfTtcblxuZXhwb3J0IGNvbnN0IENPUkVfV0lER0VUUyA9ICdjb3JlL3dpZGdldHMnO1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/googlesitekit/widgets/datastore/constants.js\n");

/***/ }),

/***/ "./js/modules/analytics-4/datastore/constants.js":
/*!*******************************************************!*\
  !*** ./js/modules/analytics-4/datastore/constants.js ***!
  \*******************************************************/
/*! exports provided: MODULES_ANALYTICS_4, ACCOUNT_CREATE, PROPERTY_CREATE, WEBDATASTREAM_CREATE, FORM_SETUP, MAX_WEBDATASTREAMS_PER_BATCH, DATE_RANGE_OFFSET, GTM_SCOPE, ENHANCED_MEASUREMENT_FORM, ENHANCED_MEASUREMENT_ENABLED, ENHANCED_MEASUREMENT_SHOULD_DISMISS_ACTIVATION_BANNER, FORM_ACCOUNT_CREATE, FORM_CUSTOM_DIMENSIONS_CREATE, PROVISIONING_SCOPE, EDIT_SCOPE, UI_DIMENSION_NAME, UI_DIMENSION_COLOR, UI_DIMENSION_VALUE, UI_ACTIVE_ROW_INDEX, UI_ALL_TRAFFIC_LOADED, CUSTOM_DIMENSION_DEFINITIONS, ENUM_CONVERSION_EVENTS, CONVERSION_REPORTING_LEAD_EVENTS, AUDIENCE_FILTER_CLAUSE_TYPE_ENUM, AUDIENCE_FILTER_SCOPE_ENUM, SITE_KIT_AUDIENCE_DEFINITIONS, AUDIENCE_SEGMENTATION_SETUP_FORM, AUDIENCE_TILE_CUSTOM_DIMENSION_CREATE, AUDIENCE_TYPE_SORT_ORDER, AUDIENCE_ITEM_NEW_BADGE_SLUG_PREFIX, RESOURCE_TYPE_AUDIENCE, RESOURCE_TYPE_CUSTOM_DIMENSION, RESOURCE_TYPE_PROPERTY, RESOURCE_TYPES */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"MODULES_ANALYTICS_4\", function() { return MODULES_ANALYTICS_4; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ACCOUNT_CREATE\", function() { return ACCOUNT_CREATE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PROPERTY_CREATE\", function() { return PROPERTY_CREATE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"WEBDATASTREAM_CREATE\", function() { return WEBDATASTREAM_CREATE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FORM_SETUP\", function() { return FORM_SETUP; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"MAX_WEBDATASTREAMS_PER_BATCH\", function() { return MAX_WEBDATASTREAMS_PER_BATCH; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DATE_RANGE_OFFSET\", function() { return DATE_RANGE_OFFSET; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"GTM_SCOPE\", function() { return GTM_SCOPE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ENHANCED_MEASUREMENT_FORM\", function() { return ENHANCED_MEASUREMENT_FORM; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ENHANCED_MEASUREMENT_ENABLED\", function() { return ENHANCED_MEASUREMENT_ENABLED; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ENHANCED_MEASUREMENT_SHOULD_DISMISS_ACTIVATION_BANNER\", function() { return ENHANCED_MEASUREMENT_SHOULD_DISMISS_ACTIVATION_BANNER; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FORM_ACCOUNT_CREATE\", function() { return FORM_ACCOUNT_CREATE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FORM_CUSTOM_DIMENSIONS_CREATE\", function() { return FORM_CUSTOM_DIMENSIONS_CREATE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PROVISIONING_SCOPE\", function() { return PROVISIONING_SCOPE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"EDIT_SCOPE\", function() { return EDIT_SCOPE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"UI_DIMENSION_NAME\", function() { return UI_DIMENSION_NAME; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"UI_DIMENSION_COLOR\", function() { return UI_DIMENSION_COLOR; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"UI_DIMENSION_VALUE\", function() { return UI_DIMENSION_VALUE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"UI_ACTIVE_ROW_INDEX\", function() { return UI_ACTIVE_ROW_INDEX; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"UI_ALL_TRAFFIC_LOADED\", function() { return UI_ALL_TRAFFIC_LOADED; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CUSTOM_DIMENSION_DEFINITIONS\", function() { return CUSTOM_DIMENSION_DEFINITIONS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ENUM_CONVERSION_EVENTS\", function() { return ENUM_CONVERSION_EVENTS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CONVERSION_REPORTING_LEAD_EVENTS\", function() { return CONVERSION_REPORTING_LEAD_EVENTS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AUDIENCE_FILTER_CLAUSE_TYPE_ENUM\", function() { return AUDIENCE_FILTER_CLAUSE_TYPE_ENUM; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AUDIENCE_FILTER_SCOPE_ENUM\", function() { return AUDIENCE_FILTER_SCOPE_ENUM; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SITE_KIT_AUDIENCE_DEFINITIONS\", function() { return SITE_KIT_AUDIENCE_DEFINITIONS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AUDIENCE_SEGMENTATION_SETUP_FORM\", function() { return AUDIENCE_SEGMENTATION_SETUP_FORM; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AUDIENCE_TILE_CUSTOM_DIMENSION_CREATE\", function() { return AUDIENCE_TILE_CUSTOM_DIMENSION_CREATE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AUDIENCE_TYPE_SORT_ORDER\", function() { return AUDIENCE_TYPE_SORT_ORDER; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AUDIENCE_ITEM_NEW_BADGE_SLUG_PREFIX\", function() { return AUDIENCE_ITEM_NEW_BADGE_SLUG_PREFIX; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RESOURCE_TYPE_AUDIENCE\", function() { return RESOURCE_TYPE_AUDIENCE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RESOURCE_TYPE_CUSTOM_DIMENSION\", function() { return RESOURCE_TYPE_CUSTOM_DIMENSION; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RESOURCE_TYPE_PROPERTY\", function() { return RESOURCE_TYPE_PROPERTY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RESOURCE_TYPES\", function() { return RESOURCE_TYPES; });\n/**\n * `modules/analytics-4` data store constants.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nvar MODULES_ANALYTICS_4 = 'modules/analytics-4';\n\n// A special Account ID value used for the \"Set up a new account\" option.\nvar ACCOUNT_CREATE = 'account_create';\n\n// A special Property ID value used for the \"Set up a new property\" option.\nvar PROPERTY_CREATE = 'property_create';\nvar WEBDATASTREAM_CREATE = 'webdatastream_create';\nvar FORM_SETUP = 'analyticsSetup';\nvar MAX_WEBDATASTREAMS_PER_BATCH = 10;\n\n// Date range offset days for Analytics 4 report requests.\nvar DATE_RANGE_OFFSET = 1;\nvar GTM_SCOPE = 'https://www.googleapis.com/auth/tagmanager.readonly';\nvar ENHANCED_MEASUREMENT_FORM = 'enhanced-measurement-form';\nvar ENHANCED_MEASUREMENT_ENABLED = 'enhanced-measurement-enabled';\nvar ENHANCED_MEASUREMENT_SHOULD_DISMISS_ACTIVATION_BANNER = 'enhanced-measurement-should-dismiss-activation-banner';\n\n// Form ID for the account creation form.\nvar FORM_ACCOUNT_CREATE = 'analyticsAccountCreate';\nvar FORM_CUSTOM_DIMENSIONS_CREATE = 'analyticsCustomDimensionsCreate';\n\n// OAuth scope required for provisioning a Google Analytics account.\nvar PROVISIONING_SCOPE = 'https://www.googleapis.com/auth/analytics.provision';\nvar EDIT_SCOPE = 'https://www.googleapis.com/auth/analytics.edit';\n\n// Dashboard widget constants.\nvar UI_DIMENSION_NAME = 'dashboardAllTrafficWidgetDimensionName';\nvar UI_DIMENSION_COLOR = 'dashboardAllTrafficWidgetDimensionColor';\nvar UI_DIMENSION_VALUE = 'dashboardAllTrafficWidgetDimensionValue';\nvar UI_ACTIVE_ROW_INDEX = 'dashboardAllTrafficWidgetActiveRowIndex';\nvar UI_ALL_TRAFFIC_LOADED = 'dashboardAllTrafficWidgetLoaded';\n\n// Note: names and descriptions are not translated as these are not surfaced in Site Kit\n// and are also subject to hard limits on the length which would be unpredictable if translated.\n// See https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1beta/properties.customDimensions#CustomDimension\nvar CUSTOM_DIMENSION_DEFINITIONS = {\n  googlesitekit_post_date: {\n    parameterName: 'googlesitekit_post_date',\n    displayName: 'WordPress Post Date',\n    description: 'Created by Site Kit: Date when a post was published',\n    scope: 'EVENT'\n  },\n  googlesitekit_post_author: {\n    parameterName: 'googlesitekit_post_author',\n    displayName: 'WordPress Post Author',\n    description: 'Created by Site Kit: WordPress name of the post author',\n    scope: 'EVENT'\n  },\n  googlesitekit_post_categories: {\n    parameterName: 'googlesitekit_post_categories',\n    displayName: 'WordPress Post Categories',\n    description: 'Created by Site Kit: Names of categories assigned to a post',\n    scope: 'EVENT'\n  },\n  googlesitekit_post_type: {\n    parameterName: 'googlesitekit_post_type',\n    displayName: 'WordPress Post Type',\n    description: 'Created by Site Kit: Content type of a post',\n    scope: 'EVENT'\n  }\n};\nvar ENUM_CONVERSION_EVENTS = {\n  ADD_TO_CART: 'add_to_cart',\n  PURCHASE: 'purchase',\n  SUBMIT_LEAD_FORM: 'submit_lead_form',\n  GENERATE_LEAD: 'generate_lead',\n  CONTACT: 'contact'\n};\nvar CONVERSION_REPORTING_LEAD_EVENTS = [ENUM_CONVERSION_EVENTS.CONTACT, ENUM_CONVERSION_EVENTS.GENERATE_LEAD, ENUM_CONVERSION_EVENTS.SUBMIT_LEAD_FORM];\n\n// Audience enums.\nvar AUDIENCE_FILTER_CLAUSE_TYPE_ENUM = {\n  AUDIENCE_CLAUSE_TYPE_UNSPECIFIED: 'AUDIENCE_CLAUSE_TYPE_UNSPECIFIED',\n  INCLUDE: 'INCLUDE',\n  EXCLUDE: 'EXCLUDE'\n};\nvar AUDIENCE_FILTER_SCOPE_ENUM = {\n  AUDIENCE_FILTER_SCOPE_UNSPECIFIED: 'AUDIENCE_FILTER_SCOPE_UNSPECIFIED',\n  AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT: 'AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT',\n  AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION: 'AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION',\n  AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS: 'AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS'\n};\nvar SITE_KIT_AUDIENCE_DEFINITIONS = {\n  'new-visitors': {\n    description: 'People who visited the site for the first time',\n    displayName: 'New visitors',\n    membershipDurationDays: -1,\n    // The longest duration, 540 days.\n    filterClauses: [{\n      clauseType: 'INCLUDE',\n      simpleFilter: {\n        scope: 'AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS',\n        filterExpression: {\n          andGroup: {\n            filterExpressions: [{\n              orGroup: {\n                filterExpressions: [{\n                  dimensionOrMetricFilter: {\n                    fieldName: 'newVsReturning',\n                    stringFilter: {\n                      matchType: 'EXACT',\n                      value: 'new'\n                    }\n                  }\n                }]\n              }\n            }, {\n              orGroup: {\n                filterExpressions: [{\n                  notExpression: {\n                    dimensionOrMetricFilter: {\n                      fieldName: 'groupId',\n                      stringFilter: {\n                        matchType: 'EXACT',\n                        value: 'created_by_googlesitekit:new_visitors'\n                      }\n                    }\n                  }\n                }]\n              }\n            }]\n          }\n        }\n      }\n    }]\n  },\n  'returning-visitors': {\n    description: 'People who have visited your site at least once before',\n    displayName: 'Returning visitors',\n    membershipDurationDays: -1,\n    // The longest duration, 540 days.\n    filterClauses: [{\n      clauseType: 'INCLUDE',\n      simpleFilter: {\n        scope: 'AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS',\n        filterExpression: {\n          andGroup: {\n            filterExpressions: [{\n              orGroup: {\n                filterExpressions: [{\n                  dimensionOrMetricFilter: {\n                    fieldName: 'newVsReturning',\n                    stringFilter: {\n                      matchType: 'EXACT',\n                      value: 'returning'\n                    }\n                  }\n                }]\n              }\n            }, {\n              orGroup: {\n                filterExpressions: [{\n                  notExpression: {\n                    dimensionOrMetricFilter: {\n                      fieldName: 'groupId',\n                      stringFilter: {\n                        matchType: 'EXACT',\n                        value: 'created_by_googlesitekit:returning_visitors'\n                      }\n                    }\n                  }\n                }]\n              }\n            }]\n          }\n        }\n      }\n    }]\n  }\n};\nvar AUDIENCE_SEGMENTATION_SETUP_FORM = 'audiencePermissionsSetup';\nvar AUDIENCE_TILE_CUSTOM_DIMENSION_CREATE = 'audienceTileCustomDimensionCreate';\nvar AUDIENCE_TYPE_SORT_ORDER = {\n  USER_AUDIENCE: 0,\n  SITE_KIT_AUDIENCE: 1,\n  DEFAULT_AUDIENCE: 2\n};\nvar AUDIENCE_ITEM_NEW_BADGE_SLUG_PREFIX = 'audience-selection-panel-expirable-new-badge-';\nvar RESOURCE_TYPE_AUDIENCE = 'audience';\nvar RESOURCE_TYPE_CUSTOM_DIMENSION = 'customDimension';\nvar RESOURCE_TYPE_PROPERTY = 'property';\nvar RESOURCE_TYPES = [RESOURCE_TYPE_AUDIENCE, RESOURCE_TYPE_CUSTOM_DIMENSION, RESOURCE_TYPE_PROPERTY];//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/modules/analytics-4/datastore/constants.js\n");

/***/ }),

/***/ "./js/util/chart.js":
/*!**************************!*\
  !*** ./js/util/chart.js ***!
  \**************************/
/*! exports provided: getChartDifferenceArrow, isSingleSlice, calculateDifferenceBetweenChartValues */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(React) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getChartDifferenceArrow\", function() { return getChartDifferenceArrow; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isSingleSlice\", function() { return isSingleSlice; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"calculateDifferenceBetweenChartValues\", function() { return calculateDifferenceBetweenChartValues; });\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var _js_components_ChangeArrow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/js/components/ChangeArrow */ \"./js/components/ChangeArrow.js\");\n\n/**\n * Utility functions for charts.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n/**\n * Gets the up/down SVG arrow for Google Chart tooltips.\n *\n * @since 1.30.0\n *\n * @param {number}  difference            The difference which can be positive or negative.\n * @param {string}  [options]             Options to be passed to the ChangeArrow component.\n * @param {boolean} [options.invertColor] Whether we need to reverse the +/- colors of the arrow.\n * @return {string} SVG for the +/- difference.\n */\nfunction getChartDifferenceArrow(difference) {\n  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  if (Number.isNaN(Number(difference))) {\n    return '';\n  }\n  var _options$invertColor = options.invertColor,\n    invertColor = _options$invertColor === void 0 ? false : _options$invertColor;\n  return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"renderToString\"])(/*#__PURE__*/React.createElement(_js_components_ChangeArrow__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n    direction: difference > 0 ? 'up' : 'down',\n    invertColor: invertColor\n  }));\n}\n\n/**\n * Checks if there is a single row of data or one row is contributing 100% of the total for a given dimension.\n *\n * @since 1.31.0\n *\n * @param {Array.<Object>} report An array of report data objects.\n * @return {(boolean|undefined)} Returns undefined if report is undefined, true/false for the above conditions.\n */\nfunction isSingleSlice(report) {\n  var _report$, _report$$data, _report$$data$rows, _report$2, _report$2$data, _report$2$data$rows, _report$2$data$rows$, _report$2$data$rows$$, _report$2$data$rows$$2, _report$2$data$rows$$3, _report$3, _report$3$data, _report$3$data$totals, _report$3$data$totals2, _report$3$data$totals3;\n  if (report === undefined) {\n    return undefined;\n  }\n  if ((report === null || report === void 0 ? void 0 : (_report$ = report[0]) === null || _report$ === void 0 ? void 0 : (_report$$data = _report$.data) === null || _report$$data === void 0 ? void 0 : (_report$$data$rows = _report$$data.rows) === null || _report$$data$rows === void 0 ? void 0 : _report$$data$rows.length) === 1 || (report === null || report === void 0 ? void 0 : (_report$2 = report[0]) === null || _report$2 === void 0 ? void 0 : (_report$2$data = _report$2.data) === null || _report$2$data === void 0 ? void 0 : (_report$2$data$rows = _report$2$data.rows) === null || _report$2$data$rows === void 0 ? void 0 : (_report$2$data$rows$ = _report$2$data$rows[0]) === null || _report$2$data$rows$ === void 0 ? void 0 : (_report$2$data$rows$$ = _report$2$data$rows$.metrics) === null || _report$2$data$rows$$ === void 0 ? void 0 : (_report$2$data$rows$$2 = _report$2$data$rows$$[0]) === null || _report$2$data$rows$$2 === void 0 ? void 0 : (_report$2$data$rows$$3 = _report$2$data$rows$$2.values) === null || _report$2$data$rows$$3 === void 0 ? void 0 : _report$2$data$rows$$3[0]) === (report === null || report === void 0 ? void 0 : (_report$3 = report[0]) === null || _report$3 === void 0 ? void 0 : (_report$3$data = _report$3.data) === null || _report$3$data === void 0 ? void 0 : (_report$3$data$totals = _report$3$data.totals) === null || _report$3$data$totals === void 0 ? void 0 : (_report$3$data$totals2 = _report$3$data$totals[0]) === null || _report$3$data$totals2 === void 0 ? void 0 : (_report$3$data$totals3 = _report$3$data$totals2.values) === null || _report$3$data$totals3 === void 0 ? void 0 : _report$3$data$totals3[0])) {\n    return true;\n  }\n  return false;\n}\n\n/**\n * Calculates difference between two chart values.\n *\n * @since 1.48.0\n *\n * @param {number} currentValue  Current chart value.\n * @param {number} previousValue Previous chart value.\n * @return {number} The difference.\n */\nfunction calculateDifferenceBetweenChartValues(currentValue, previousValue) {\n  if (currentValue > 0 && previousValue > 0) {\n    return currentValue / previousValue - 1;\n  }\n  if (currentValue > 0) {\n    return 1;\n  }\n  if (previousValue > 0) {\n    return -1;\n  }\n  return 0;\n}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/util/chart.js\n");

/***/ }),

/***/ "./js/util/convert-time.js":
/*!*********************************!*\
  !*** ./js/util/convert-time.js ***!
  \*********************************/
/*! exports provided: convertSecondsToArray, convertDateStringToUNIXTimestamp */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"convertSecondsToArray\", function() { return convertSecondsToArray; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"convertDateStringToUNIXTimestamp\", function() { return convertDateStringToUNIXTimestamp; });\n/**\n * Time related utility functions.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Converts seconds into an array with the following values [HH, MM, SS, MS] as described below.\n * HH: hours.\n * MM: minutes.\n * SS: seconds.\n * MS: milliseconds.\n *\n * For example, passing 196.385 returns [ 0, 3, 16, 385 ].\n *\n * @since 1.27.0\n *\n * @param {number} seconds The number of seconds.\n * @return {Array} Array containing the hours, minutes, seconds and milliseconds.\n */\nfunction convertSecondsToArray(seconds) {\n  seconds = parseFloat(seconds);\n  if (isNaN(seconds) || 0 === seconds) {\n    return [0, 0, 0, 0];\n  }\n  return [Math.floor(seconds / 60 / 60), Math.floor(seconds / 60 % 60), Math.floor(seconds % 60), Math.floor(seconds * 1000) - Math.floor(seconds) * 1000];\n}\n\n/**\n * Converts Date time string into UNIX timestamp in milliseconds.\n *\n * For example, passing \"2014-10-02T15:01:23Z\" returns 1412262083000.\n *\n * @since 1.116.0\n *\n * @param {string} dateStringValue The date time string.\n * @return {number} UNIX timestamp in milliseconds.\n */\nfunction convertDateStringToUNIXTimestamp(dateStringValue) {\n  var unixTimestamp = dateStringValue && !Number.isInteger(dateStringValue) ?\n  // Valid use of `new Date()` with an argument, because this should only\n  // be passed full time strings, not `YYYY-MM-DD` style dates.\n  //\n  // See: https://github.com/google/site-kit-wp/pull/9459#discussion_r1790660073\n  // eslint-disable-next-line sitekit/no-direct-date\n  new Date(dateStringValue).getTime() : dateStringValue;\n  if (isNaN(unixTimestamp) || !unixTimestamp) {\n    return 0;\n  }\n  return unixTimestamp;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL2NvbnZlcnQtdGltZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvY29udmVydC10aW1lLmpzPzJlOTMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBUaW1lIHJlbGF0ZWQgdXRpbGl0eSBmdW5jdGlvbnMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQ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0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUVBO0FBTUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7QUFDQTtBQUVBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/util/convert-time.js\n");

/***/ }),

/***/ "./js/util/dates.js":
/*!**************************!*\
  !*** ./js/util/dates.js ***!
  \**************************/
/*! exports provided: INVALID_DATE_INSTANCE_ERROR, INVALID_DATE_STRING_ERROR, INVALID_DATE_RANGE_ERROR, MINUTE_IN_SECONDS, HOUR_IN_SECONDS, DAY_IN_SECONDS, WEEK_IN_SECONDS, MONTH_IN_SECONDS, getAvailableDateRanges, getCurrentDateRangeDayCount, isValidDateString, getDateString, stringToDate, getPreviousDate, isValidDateRange, dateSub */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"INVALID_DATE_INSTANCE_ERROR\", function() { return INVALID_DATE_INSTANCE_ERROR; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"INVALID_DATE_STRING_ERROR\", function() { return INVALID_DATE_STRING_ERROR; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"INVALID_DATE_RANGE_ERROR\", function() { return INVALID_DATE_RANGE_ERROR; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"MINUTE_IN_SECONDS\", function() { return MINUTE_IN_SECONDS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"HOUR_IN_SECONDS\", function() { return HOUR_IN_SECONDS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DAY_IN_SECONDS\", function() { return DAY_IN_SECONDS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"WEEK_IN_SECONDS\", function() { return WEEK_IN_SECONDS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"MONTH_IN_SECONDS\", function() { return MONTH_IN_SECONDS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getAvailableDateRanges\", function() { return getAvailableDateRanges; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getCurrentDateRangeDayCount\", function() { return getCurrentDateRangeDayCount; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidDateString\", function() { return isValidDateString; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getDateString\", function() { return getDateString; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"stringToDate\", function() { return stringToDate; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getPreviousDate\", function() { return getPreviousDate; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidDateRange\", function() { return isValidDateRange; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"dateSub\", function() { return dateSub; });\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"../node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ \"../node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);\n\n/**\n * Site Kit by Google, Copyright 2024 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * WordPress dependencies\n */\n\nvar INVALID_DATE_INSTANCE_ERROR = 'Date param must construct to a valid date instance or be a valid date instance itself.';\nvar INVALID_DATE_STRING_ERROR = 'Invalid dateString parameter, it must be a string.';\nvar INVALID_DATE_RANGE_ERROR = 'Invalid date range, it must be a string with the format \"last-x-days\".';\nvar MINUTE_IN_SECONDS = 60;\nvar HOUR_IN_SECONDS = 60 * MINUTE_IN_SECONDS;\nvar DAY_IN_SECONDS = 24 * HOUR_IN_SECONDS;\nvar WEEK_IN_SECONDS = 7 * DAY_IN_SECONDS;\nvar MONTH_IN_SECONDS = 30 * DAY_IN_SECONDS;\n\n/**\n * Gets the hash of available date ranges.\n *\n * @since 1.12.0\n *\n * @return {Object} The object hash where every key is a date range slug, and the value is an object with the date range slug and its translation.\n */\nfunction getAvailableDateRanges() {\n  function label(days) {\n    return Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"sprintf\"])(/* translators: %s: number of days */\n    Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"_n\"])('Last %s day', 'Last %s days', days, 'google-site-kit'), days);\n  }\n  return {\n    'last-7-days': {\n      slug: 'last-7-days',\n      label: label(7),\n      days: 7\n    },\n    'last-14-days': {\n      slug: 'last-14-days',\n      label: label(14),\n      days: 14\n    },\n    'last-28-days': {\n      slug: 'last-28-days',\n      label: label(28),\n      days: 28\n    },\n    'last-90-days': {\n      slug: 'last-90-days',\n      label: label(90),\n      days: 90\n    }\n  };\n}\n\n/**\n * Gets the current dateRange day count.\n *\n * @since 1.19.0\n * @since 1.26.0 `dateRange` is now a required argument.\n *\n * @param {string} dateRange The date range slug.\n * @return {number} The number of days in the range.\n */\nfunction getCurrentDateRangeDayCount(dateRange) {\n  var daysMatch = dateRange.match(/last-(\\d+)-days/);\n  if (daysMatch && daysMatch[1]) {\n    return parseInt(daysMatch[1], 10);\n  }\n  throw new Error('Unrecognized date range slug.');\n}\n\n/**\n * Asserts whether a given date string is valid or invalid.\n *\n * @since 1.18.0\n *\n * @param {string} dateString Date string to be asserted against. Defaults to an empty string.\n * @return {boolean}          True if the given date string is valid.\n */\nfunction isValidDateString() {\n  var dateString = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n  if (!Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"isString\"])(dateString)) {\n    return false;\n  }\n  var dateArray = dateString.split('-');\n  if (dateArray.length !== 3) {\n    return false;\n  }\n\n  // Valid use of `new Date()`, constructing a new date from the string.\n  // eslint-disable-next-line sitekit/no-direct-date\n  var date = new Date(dateString);\n  return Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"isDate\"])(date) && !isNaN(date);\n}\n\n/**\n * Parses the given Date instance and returns a date string (YYYY-MM-DD).\n *\n * @since 1.18.0\n * @since 1.85.0 Updated the function signature to only accept a Date argument.\n *\n * @param {Date} date Date to parse into a string.\n * @return {string}                 The parsed date string (YYYY-MM-DD).\n */\nfunction getDateString(date) {\n  invariant__WEBPACK_IMPORTED_MODULE_1___default()(Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"isDate\"])(date) && !isNaN(date), INVALID_DATE_INSTANCE_ERROR);\n  var month = \"\".concat(date.getMonth() + 1);\n  var day = \"\".concat(date.getDate());\n  var year = date.getFullYear();\n  return [year, month.length < 2 ? \"0\".concat(month) : month, day.length < 2 ? \"0\".concat(day) : day].join('-');\n}\n\n/**\n * Converts a valid date string to a Date instance.\n *\n * @since 1.38.0\n *\n * @param {string} dateString The date string to parse.\n * @return {Date} Date instance.\n */\nfunction stringToDate(dateString) {\n  invariant__WEBPACK_IMPORTED_MODULE_1___default()(isValidDateString(dateString), INVALID_DATE_STRING_ERROR);\n\n  /**\n   * Split date into explicit parts rather than pass directly into date constructor\n   * to avoid timezone issues caused by parsing as UTC. Ensures date is accurate for\n   * the user's local time, otherwise has a chance to return a different day than was\n   * passed in depending on timezone.\n   */\n  var _dateString$split = dateString.split('-'),\n    _dateString$split2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_dateString$split, 3),\n    year = _dateString$split2[0],\n    month = _dateString$split2[1],\n    day = _dateString$split2[2];\n  return new Date(year, month - 1, day);\n}\n\n/**\n * Parses the given date and returns the previous date (daysBefore).\n *\n * @since 1.18.0\n *\n * @param {string} relativeDate Date string (YYYY-MM-DD) to subtract days from.\n * @param {number} daysBefore   Number of days to subtract from relativeDate.\n * @return {string}             The date string (YYYY-MM-DD) for the previous date.\n */\nfunction getPreviousDate(relativeDate, daysBefore) {\n  return getDateString(dateSub(relativeDate, daysBefore * DAY_IN_SECONDS));\n}\n\n/**\n * Asserts whether a given dateRange string is valid or invalid.\n *\n * @since 1.18.0\n *\n * @param {string} dateRange Date string to be asserted against. Defaults to an empty string.\n * @return {boolean}          True if the given dateRange string is valid.\n */\nfunction isValidDateRange(dateRange) {\n  var parts = dateRange.split('-');\n  return parts.length === 3 && parts[0] === 'last' && !Number.isNaN(parts[1]) && !Number.isNaN(parseFloat(parts[1])) && parts[2] === 'days';\n}\n\n/**\n * Subtracts duration from the prodived date and returns it.\n *\n * @since 1.132.0\n *\n * @param {Date|string} relativeDate Date string (YYYY-MM-DD) or date object to subtract duration from.\n * @param {number}      duration     The duration in seconds to subtract from relativeDate.\n * @return {Date} Resulting date.\n */\nfunction dateSub(relativeDate, duration) {\n  invariant__WEBPACK_IMPORTED_MODULE_1___default()(isValidDateString(relativeDate) || Object(lodash__WEBPACK_IMPORTED_MODULE_2__[\"isDate\"])(relativeDate) && !isNaN(relativeDate), INVALID_DATE_STRING_ERROR);\n  var timestamp = isValidDateString(relativeDate) ? Date.parse(relativeDate) : relativeDate.getTime();\n\n  // Valid use of `new Date()` using calculations.\n  // eslint-disable-next-line sitekit/no-direct-date\n  return new Date(timestamp - duration * 1000);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/util/dates.js\n");

/***/ }),

/***/ "./js/util/escape-uri.js":
/*!*******************************!*\
  !*** ./js/util/escape-uri.js ***!
  \*******************************/
/*! exports provided: escapeURI */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"escapeURI\", function() { return escapeURI; });\n/**\n * Escape URI components utility.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Escapes URI components in a template string as a tag function.\n *\n * @example\n * // escape redirect url\n * const redirectTo = 'http://localhost/admin/';\n * const loginUrl = escapeURI`http://localhost/login?redirect=${ redirectTo }`;\n *\n * @since 1.11.0\n *\n * @param {string[]} strings The array of static strings in the template.\n * @param {...*}     values  The array of expressions used in the template.\n * @return {string} Escaped URI string.\n */\nfunction escapeURI(strings) {\n  for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n    values[_key - 1] = arguments[_key];\n  }\n  return strings.reduce(function (acc, string, idx) {\n    return acc + string + encodeURIComponent(values[idx] || '');\n  }, '');\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL2VzY2FwZS11cmkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy91dGlsL2VzY2FwZS11cmkuanM/NjdhYSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEVzY2FwZSBVUkkgY29tcG9uZW50cyB1dGlsaXR5LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuM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2FwZWQgVVJJIHN0cmluZy5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGVzY2FwZVVSSSggc3RyaW5ncywgLi4udmFsdWVzICkge1xuXHRyZXR1cm4gc3RyaW5ncy5yZWR1Y2UoICggYWNjLCBzdHJpbmcsIGlkeCApID0+IHtcblx0XHRyZXR1cm4gYWNjICsgc3RyaW5nICsgZW5jb2RlVVJJQ29tcG9uZW50KCB2YWx1ZXNbIGlkeCBdIHx8ICcnICk7XG5cdH0sICcnICk7XG59XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/util/escape-uri.js\n");

/***/ }),

/***/ "./js/util/i18n.js":
/*!*************************!*\
  !*** ./js/util/i18n.js ***!
  \*************************/
/*! exports provided: createDurationFormat, prepareForReadableLargeNumber, readableLargeNumber, expandNumFmtOptions, numFmt, numberFormat, listFormat, getLocale */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createDurationFormat\", function() { return createDurationFormat; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"prepareForReadableLargeNumber\", function() { return prepareForReadableLargeNumber; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"readableLargeNumber\", function() { return readableLargeNumber; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"expandNumFmtOptions\", function() { return expandNumFmtOptions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"numFmt\", function() { return numFmt; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"numberFormat\", function() { return numberFormat; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"listFormat\", function() { return listFormat; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getLocale\", function() { return getLocale; });\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"../node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"../node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"../node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"../node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! memize */ \"../node_modules/memize/index.js\");\n/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(memize__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__);\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n/**\n * Internationalization Utilities.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Converts seconds to a display ready string indicating\n * the number of hours, minutes and seconds that have elapsed.\n *\n * For example, passing 65 returns '1m 5s'.\n *\n * @since 1.0.0\n * @since 1.28.0 Refactored and renamed to improve localization.\n * @private\n *\n * @param {number}                     durationInSeconds The number of seconds.\n * @param {(Intl.NumberFormatOptions)} [options]         Optional formatting options.\n * @return {string} Human readable string indicating time elapsed.\n */\nfunction durationFormat(durationInSeconds) {\n  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  var _createDurationFormat = createDurationFormat(durationInSeconds, options),\n    formatUnit = _createDurationFormat.formatUnit,\n    formatDecimal = _createDurationFormat.formatDecimal;\n  try {\n    // Some browsers, e.g. Safari, throw a RangeError when options.style is\n    // not one of decimal, percent, or currency.\n    return formatUnit();\n  } catch (_unused) {\n    // Fallback to XXh YYm ZZs using localized decimals with hardcoded units.\n    return formatDecimal();\n  }\n}\n\n/**\n * Converts seconds to a display ready string indicating\n * the number of hours, minutes and seconds that have elapsed\n * in ISO format - HH:mm:ss.\n *\n * If the duration is less than an hour, the HH part of the string\n * is truncated.\n * For example, passing 65 returns '01:05'.\n * Passing 5400 returns '01:30:00'.\n *\n * @since 1.111.0\n * @private\n *\n * @param {number} durationInSeconds The number of seconds.\n * @return {string} Human readable string indicating time elapsed.\n */\nfunction durationISOFormat(durationInSeconds) {\n  var _parseDuration = parseDuration(durationInSeconds),\n    hours = _parseDuration.hours,\n    minutes = _parseDuration.minutes,\n    seconds = _parseDuration.seconds;\n  seconds = ('0' + seconds).slice(-2);\n  minutes = ('0' + minutes).slice(-2);\n  hours = ('0' + hours).slice(-2);\n  return hours === '00' ? \"\".concat(minutes, \":\").concat(seconds) : \"\".concat(hours, \":\").concat(minutes, \":\").concat(seconds);\n}\n\n/**\n * Parses the duration in seconds into hours, minutes and seconds.\n *\n * @since 1.111.0\n * @private\n *\n * @param {number} durationInSeconds The number of seconds.\n * @return {Object} Number of hours, minutes and seconds equivalent\n * to the given duration in seconds.\n */\nfunction parseDuration(durationInSeconds) {\n  durationInSeconds = parseInt(durationInSeconds, 10);\n  if (Number.isNaN(durationInSeconds)) {\n    durationInSeconds = 0;\n  }\n  var hours = Math.floor(durationInSeconds / 60 / 60);\n  var minutes = Math.floor(durationInSeconds / 60 % 60);\n  var seconds = Math.floor(durationInSeconds % 60);\n  return {\n    hours: hours,\n    minutes: minutes,\n    seconds: seconds\n  };\n}\n\n/**\n * Creates duration formatting utilities.\n *\n * Not intended to be used directly.\n * Use `numFmt( number, { style: 'duration' } )` instead.\n *\n * @since 1.29.0\n * @private\n *\n * @param {number} durationInSeconds Duration to format.\n * @param {Object} [options]         Formatting options.\n * @return {Object} Formatting functions.\n */\nfunction createDurationFormat(durationInSeconds) {\n  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  var _parseDuration2 = parseDuration(durationInSeconds),\n    hours = _parseDuration2.hours,\n    minutes = _parseDuration2.minutes,\n    seconds = _parseDuration2.seconds;\n  return {\n    hours: hours,\n    minutes: minutes,\n    seconds: seconds,\n    formatUnit: function formatUnit() {\n      var _options$unitDisplay = options.unitDisplay,\n        unitDisplay = _options$unitDisplay === void 0 ? 'short' : _options$unitDisplay,\n        restOptions = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(options, [\"unitDisplay\"]);\n      var commonOptions = _objectSpread(_objectSpread({\n        unitDisplay: unitDisplay\n      }, restOptions), {}, {\n        style: 'unit'\n      });\n      if (durationInSeconds === 0) {\n        return numberFormat(seconds, _objectSpread(_objectSpread({}, commonOptions), {}, {\n          unit: 'second'\n        }));\n      }\n      return Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"sprintf\"])(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */\n      Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"_x\"])('%3$s %2$s %1$s', 'duration of time: hh mm ss', 'google-site-kit'), seconds ? numberFormat(seconds, _objectSpread(_objectSpread({}, commonOptions), {}, {\n        unit: 'second'\n      })) : '', minutes ? numberFormat(minutes, _objectSpread(_objectSpread({}, commonOptions), {}, {\n        unit: 'minute'\n      })) : '', hours ? numberFormat(hours, _objectSpread(_objectSpread({}, commonOptions), {}, {\n        unit: 'hour'\n      })) : '').trim();\n    },\n    /**\n     * Formats the duration using integers and translatable strings.\n     * This is only used as a fallback when the above `formatUnit` fails.\n     *\n     * @since 1.29.0\n     *\n     * @return {string} Formatted duration.\n     */\n    formatDecimal: function formatDecimal() {\n      var formattedSeconds = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"sprintf\"])(\n      // translators: %s: number of seconds with \"s\" as the abbreviated unit.\n      Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('%ds', 'google-site-kit'), seconds);\n      if (durationInSeconds === 0) {\n        return formattedSeconds;\n      }\n      var formattedMinutes = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"sprintf\"])(\n      // translators: %s: number of minutes with \"m\" as the abbreviated unit.\n      Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('%dm', 'google-site-kit'), minutes);\n      var formattedHours = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"sprintf\"])(\n      // translators: %s: number of hours with \"h\" as the abbreviated unit.\n      Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('%dh', 'google-site-kit'), hours);\n      return Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"sprintf\"])(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */\n      Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"_x\"])('%3$s %2$s %1$s', 'duration of time: hh mm ss', 'google-site-kit'), seconds ? formattedSeconds : '', minutes ? formattedMinutes : '', hours ? formattedHours : '').trim();\n    }\n  };\n}\n\n/**\n * Prepares a number to be used in readableLargeNumber.\n *\n * @since 1.7.0\n *\n * @param {number} number The large number to prepare.\n * @return {number} The prepared number.\n */\nfunction prepareForReadableLargeNumber(number) {\n  if (1000000 <= number) {\n    return Math.round(number / 100000) / 10;\n  }\n  if (10000 <= number) {\n    return Math.round(number / 1000);\n  }\n  if (1000 <= number) {\n    return Math.round(number / 100) / 10;\n  }\n  return number;\n}\n\n/**\n * Formats a large number for shortened display.\n *\n * @since 1.0.0\n *\n * @param {number} number The large number to format.\n * @return {string} The formatted number.\n */\nfunction readableLargeNumber(number) {\n  var withSingleDecimal = {\n    minimumFractionDigits: 1,\n    maximumFractionDigits: 1\n  };\n\n  // Numbers over 1,000,000 round normally and display a single decimal unless the decimal is 0.\n  if (1000000 <= number) {\n    return Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"sprintf\"])(\n    // translators: %s: an abbreviated number in millions.\n    Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('%sM', 'google-site-kit'), numberFormat(prepareForReadableLargeNumber(number), number % 10 === 0 ? {} : withSingleDecimal));\n  }\n\n  // Numbers between 10,000 and 1,000,000 round normally and have no decimals\n  if (10000 <= number) {\n    return Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"sprintf\"])(\n    // translators: %s: an abbreviated number in thousands.\n    Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('%sK', 'google-site-kit'), numberFormat(prepareForReadableLargeNumber(number)));\n  }\n\n  // Numbers between 1,000 and 10,000 round normally and display a single decimal unless the decimal is 0.\n  if (1000 <= number) {\n    return Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"sprintf\"])(\n    // translators: %s: an abbreviated number in thousands.\n    Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])('%sK', 'google-site-kit'), numberFormat(prepareForReadableLargeNumber(number), number % 10 === 0 ? {} : withSingleDecimal));\n  }\n  return numberFormat(number, {\n    signDisplay: 'never',\n    maximumFractionDigits: 1\n  });\n}\n\n/**\n * Parses formatting options and returns an object with options for selected formatting.\n *\n * @since 1.103.0\n *\n * @param {(Intl.NumberFormatOptions|string)} options Formatting options or unit shorthand. Possible shorthand values are '%', 's', or a currency code.\n * @return {Object} Formatting options.\n */\nfunction expandNumFmtOptions(options) {\n  var formatOptions = {};\n\n  // Expand shorthand values for units.\n  if ('%' === options) {\n    formatOptions = {\n      style: 'percent',\n      maximumFractionDigits: 2\n    };\n  } else if ('s' === options) {\n    formatOptions = {\n      style: 'duration',\n      unitDisplay: 'narrow'\n    };\n  } else if (!!options && typeof options === 'string') {\n    formatOptions = {\n      style: 'currency',\n      currency: options\n    };\n  } else if (Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"isPlainObject\"])(options)) {\n    formatOptions = _objectSpread({}, options);\n  }\n  return formatOptions;\n}\n\n/**\n * Formats a number with unit using the JS Internationalization Number Format API.\n *\n * In addition to the supported 'style' values of the lower-level `numberFormat` function, this function\n * supports two additional 'style' values 'metric' and 'duration' (expects a number in seconds).\n *\n * Another differentiation in behavior is that by default the function will use 'metric' formatting instead\n * of 'decimal' formatting.\n *\n * @since 1.24.0\n *\n * @param {number|string}                     number    The number to format.\n * @param {(Intl.NumberFormatOptions|string)} [options] Formatting options or unit shorthand.\n *                                                      Possible shorthand values are '%', 's',\n *                                                      or a currency code.\n * @return {string} The formatted number.\n */\nfunction numFmt(number) {\n  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  // Cast parsable values to numeric types.\n  number = Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"isFinite\"])(number) ? number : Number(number);\n  if (!Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"isFinite\"])(number)) {\n    // eslint-disable-next-line no-console\n    console.warn('Invalid number', number, _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(number));\n    number = 0;\n  }\n  var formatOptions = expandNumFmtOptions(options);\n  var _formatOptions$style = formatOptions.style,\n    style = _formatOptions$style === void 0 ? 'metric' : _formatOptions$style; // Note: `metric` is our custom, default style.\n  if ('metric' === style) {\n    return readableLargeNumber(number);\n  }\n  if ('duration' === style) {\n    return durationFormat(number, formatOptions);\n  }\n  if ('durationISO' === style) {\n    return durationISOFormat(number);\n  }\n  return numberFormat(number, formatOptions);\n}\n\n// Warn once for a given message.\nvar warnOnce = memize__WEBPACK_IMPORTED_MODULE_5___default()(console.warn); // eslint-disable-line no-console\n\n/**\n * Formats a number using the JS Internationalization Number Format API.\n *\n * @since 1.8.0\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat/NumberFormat|`options` parameter} For all available formatting options.\n *\n * @param {number}                   number           The number to format.\n * @param {Intl.NumberFormatOptions} [options]        Formatting options.\n * @param {string}                   [options.locale] Locale to use for formatting. Defaults to current locale used by Site Kit.\n * @return {string} The formatted number.\n */\nfunction numberFormat(number) {\n  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  var _options$locale = options.locale,\n    locale = _options$locale === void 0 ? getLocale() : _options$locale,\n    formatOptions = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(options, [\"locale\"]);\n  try {\n    /**\n     * Per https://github.com/google/site-kit-wp/issues/3255 there have been issues with some versions of Safari\n     * on some operating systems throwing issues with some parameters in the formatOptions.\n     *\n     * If an error is thrown, we remove some troublesome params from the formatOptions object and fallback to no formatting.\n     *\n     * This allows us to degrade somewhat gracefully without breaking the dashboard for users of unaffected browsers.\n     */\n    return new Intl.NumberFormat(locale, formatOptions).format(number);\n  } catch (error) {\n    warnOnce(\"Site Kit numberFormat error: Intl.NumberFormat( \".concat(JSON.stringify(locale), \", \").concat(JSON.stringify(formatOptions), \" ).format( \").concat(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(number), \" )\"), error.message);\n  }\n\n  // Remove these key/values from formatOptions.\n  var unstableFormatOptionValues = {\n    currencyDisplay: 'narrow',\n    currencySign: 'accounting',\n    style: 'unit'\n  };\n\n  // Remove these keys from formatOptions irrespective of value.\n  var unstableFormatOptions = ['signDisplay', 'compactDisplay'];\n  var reducedFormatOptions = {};\n  for (var _i = 0, _Object$entries = Object.entries(formatOptions); _i < _Object$entries.length; _i++) {\n    var _Object$entries$_i = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_Object$entries[_i], 2),\n      key = _Object$entries$_i[0],\n      value = _Object$entries$_i[1];\n    if (unstableFormatOptionValues[key] && value === unstableFormatOptionValues[key]) {\n      continue;\n    }\n    if (unstableFormatOptions.includes(key)) {\n      continue;\n    }\n    reducedFormatOptions[key] = value;\n  }\n  try {\n    return new Intl.NumberFormat(locale, reducedFormatOptions).format(number);\n  } catch (_unused2) {\n    return new Intl.NumberFormat(locale).format(number);\n  }\n}\n\n/**\n * Flattens an array of strings into a string using the JS Internationalization List Format API.\n *\n * @since 1.23.0\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat|`options` parameter} For all available options.\n *\n * @param {Array}  list             The list to flatten.\n * @param {Object} [options]        Formatting options.\n * @param {string} [options.locale] Locale to use for formatting. Defaults to current locale used by Site Kit.\n * @param {string} [options.style]  Length of the formatted message. Defaults to long.\n * @param {string} [options.type]   Type of list. Defaults to 'conjunction' (A, B, and C).\n *                                  Also available 'disjunction' (A, B, or C)\n *                                  Also available 'unit' (5 pounds, 12 ounces)\n * @return {string} The flattened list.\n */\nfunction listFormat(list) {\n  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  var _options$locale2 = options.locale,\n    locale = _options$locale2 === void 0 ? getLocale() : _options$locale2,\n    _options$style = options.style,\n    style = _options$style === void 0 ? 'long' : _options$style,\n    _options$type = options.type,\n    type = _options$type === void 0 ? 'conjunction' : _options$type; // Not all browsers support Intl.Listformat per\n  // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#Browser_compatibility\n  // We've seen that the built versions don't polyfill for the unsupported browsers (iOS/safari) so we provide a fallback.\n  if (Intl.ListFormat) {\n    var formatter = new Intl.ListFormat(locale, {\n      style: style,\n      type: type\n    });\n    return formatter.format(list);\n  }\n\n  /* translators: used between list items, there is a space after the comma. */\n  var listSeparator = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__[\"__\"])(', ', 'google-site-kit');\n  return list.join(listSeparator);\n}\n\n/**\n * Gets the current locale for use with browser APIs.\n *\n * @since 1.8.0\n *\n * @param {Object} _global The global window object.\n * @return {string} Current Site Kit locale if set, otherwise the current language set by the browser.\n *                  E.g. `en-US` or `de-DE`\n */\nfunction getLocale() {\n  var _global = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global;\n  var siteKitLocale = Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"get\"])(_global, ['_googlesitekitLegacyData', 'locale']);\n  if (siteKitLocale) {\n    var matches = siteKitLocale.match(/^(\\w{2})?(_)?(\\w{2})/);\n    if (matches && matches[0]) {\n      return matches[0].replace(/_/g, '-');\n    }\n  }\n  return _global.navigator.language;\n}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ \"../node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/util/i18n.js\n");

/***/ }),

/***/ "./js/util/index.js":
/*!**************************!*\
  !*** ./js/util/index.js ***!
  \**************************/
/*! exports provided: trackEvent, trackEventOnce, sanitizeHTML, untrailingslashit, stringifyObject, storageAvailable, getStorage, createDurationFormat, prepareForReadableLargeNumber, readableLargeNumber, expandNumFmtOptions, numFmt, numberFormat, listFormat, getLocale, markdownToHTML, convertSecondsToArray, convertDateStringToUNIXTimestamp, INVALID_DATE_INSTANCE_ERROR, INVALID_DATE_STRING_ERROR, INVALID_DATE_RANGE_ERROR, MINUTE_IN_SECONDS, HOUR_IN_SECONDS, DAY_IN_SECONDS, WEEK_IN_SECONDS, MONTH_IN_SECONDS, getAvailableDateRanges, getCurrentDateRangeDayCount, isValidDateString, getDateString, stringToDate, getPreviousDate, isValidDateRange, dateSub, getChartDifferenceArrow, isSingleSlice, calculateDifferenceBetweenChartValues, getURLPath, getFullURL, normalizeURL, isHashOnly, shortenURL, isValidNumericID, isNumeric, safelySort, partitionReport, calculateChange, validateJSON, decodeHTMLEntity */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"calculateChange\", function() { return calculateChange; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"validateJSON\", function() { return validateJSON; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"decodeHTMLEntity\", function() { return decodeHTMLEntity; });\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ \"../node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _tracking__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tracking */ \"./js/util/tracking/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"trackEvent\", function() { return _tracking__WEBPACK_IMPORTED_MODULE_1__[\"trackEvent\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"trackEventOnce\", function() { return _tracking__WEBPACK_IMPORTED_MODULE_1__[\"trackEventOnce\"]; });\n\n/* harmony import */ var _sanitize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sanitize */ \"./js/util/sanitize.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"sanitizeHTML\", function() { return _sanitize__WEBPACK_IMPORTED_MODULE_2__[\"sanitizeHTML\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"untrailingslashit\", function() { return _sanitize__WEBPACK_IMPORTED_MODULE_2__[\"untrailingslashit\"]; });\n\n/* harmony import */ var _stringify__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./stringify */ \"./js/util/stringify.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"stringifyObject\", function() { return _stringify__WEBPACK_IMPORTED_MODULE_3__[\"stringifyObject\"]; });\n\n/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./storage */ \"./js/util/storage.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"storageAvailable\", function() { return _storage__WEBPACK_IMPORTED_MODULE_4__[\"storageAvailable\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getStorage\", function() { return _storage__WEBPACK_IMPORTED_MODULE_4__[\"getStorage\"]; });\n\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./i18n */ \"./js/util/i18n.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createDurationFormat\", function() { return _i18n__WEBPACK_IMPORTED_MODULE_5__[\"createDurationFormat\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"prepareForReadableLargeNumber\", function() { return _i18n__WEBPACK_IMPORTED_MODULE_5__[\"prepareForReadableLargeNumber\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"readableLargeNumber\", function() { return _i18n__WEBPACK_IMPORTED_MODULE_5__[\"readableLargeNumber\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"expandNumFmtOptions\", function() { return _i18n__WEBPACK_IMPORTED_MODULE_5__[\"expandNumFmtOptions\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"numFmt\", function() { return _i18n__WEBPACK_IMPORTED_MODULE_5__[\"numFmt\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"numberFormat\", function() { return _i18n__WEBPACK_IMPORTED_MODULE_5__[\"numberFormat\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"listFormat\", function() { return _i18n__WEBPACK_IMPORTED_MODULE_5__[\"listFormat\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getLocale\", function() { return _i18n__WEBPACK_IMPORTED_MODULE_5__[\"getLocale\"]; });\n\n/* harmony import */ var _markdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./markdown */ \"./js/util/markdown.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"markdownToHTML\", function() { return _markdown__WEBPACK_IMPORTED_MODULE_6__[\"markdownToHTML\"]; });\n\n/* harmony import */ var _convert_time__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./convert-time */ \"./js/util/convert-time.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"convertSecondsToArray\", function() { return _convert_time__WEBPACK_IMPORTED_MODULE_7__[\"convertSecondsToArray\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"convertDateStringToUNIXTimestamp\", function() { return _convert_time__WEBPACK_IMPORTED_MODULE_7__[\"convertDateStringToUNIXTimestamp\"]; });\n\n/* harmony import */ var _dates__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./dates */ \"./js/util/dates.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"INVALID_DATE_INSTANCE_ERROR\", function() { return _dates__WEBPACK_IMPORTED_MODULE_8__[\"INVALID_DATE_INSTANCE_ERROR\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"INVALID_DATE_STRING_ERROR\", function() { return _dates__WEBPACK_IMPORTED_MODULE_8__[\"INVALID_DATE_STRING_ERROR\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"INVALID_DATE_RANGE_ERROR\", function() { return _dates__WEBPACK_IMPORTED_MODULE_8__[\"INVALID_DATE_RANGE_ERROR\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MINUTE_IN_SECONDS\", function() { return _dates__WEBPACK_IMPORTED_MODULE_8__[\"MINUTE_IN_SECONDS\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"HOUR_IN_SECONDS\", function() { return _dates__WEBPACK_IMPORTED_MODULE_8__[\"HOUR_IN_SECONDS\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DAY_IN_SECONDS\", function() { return _dates__WEBPACK_IMPORTED_MODULE_8__[\"DAY_IN_SECONDS\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"WEEK_IN_SECONDS\", function() { return _dates__WEBPACK_IMPORTED_MODULE_8__[\"WEEK_IN_SECONDS\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MONTH_IN_SECONDS\", function() { return _dates__WEBPACK_IMPORTED_MODULE_8__[\"MONTH_IN_SECONDS\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getAvailableDateRanges\", function() { return _dates__WEBPACK_IMPORTED_MODULE_8__[\"getAvailableDateRanges\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getCurrentDateRangeDayCount\", function() { return _dates__WEBPACK_IMPORTED_MODULE_8__[\"getCurrentDateRangeDayCount\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isValidDateString\", function() { return _dates__WEBPACK_IMPORTED_MODULE_8__[\"isValidDateString\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getDateString\", function() { return _dates__WEBPACK_IMPORTED_MODULE_8__[\"getDateString\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"stringToDate\", function() { return _dates__WEBPACK_IMPORTED_MODULE_8__[\"stringToDate\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getPreviousDate\", function() { return _dates__WEBPACK_IMPORTED_MODULE_8__[\"getPreviousDate\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isValidDateRange\", function() { return _dates__WEBPACK_IMPORTED_MODULE_8__[\"isValidDateRange\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"dateSub\", function() { return _dates__WEBPACK_IMPORTED_MODULE_8__[\"dateSub\"]; });\n\n/* harmony import */ var _chart__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./chart */ \"./js/util/chart.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getChartDifferenceArrow\", function() { return _chart__WEBPACK_IMPORTED_MODULE_9__[\"getChartDifferenceArrow\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isSingleSlice\", function() { return _chart__WEBPACK_IMPORTED_MODULE_9__[\"isSingleSlice\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"calculateDifferenceBetweenChartValues\", function() { return _chart__WEBPACK_IMPORTED_MODULE_9__[\"calculateDifferenceBetweenChartValues\"]; });\n\n/* harmony import */ var _urls__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./urls */ \"./js/util/urls.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getURLPath\", function() { return _urls__WEBPACK_IMPORTED_MODULE_10__[\"getURLPath\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getFullURL\", function() { return _urls__WEBPACK_IMPORTED_MODULE_10__[\"getFullURL\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"normalizeURL\", function() { return _urls__WEBPACK_IMPORTED_MODULE_10__[\"normalizeURL\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isHashOnly\", function() { return _urls__WEBPACK_IMPORTED_MODULE_10__[\"isHashOnly\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"shortenURL\", function() { return _urls__WEBPACK_IMPORTED_MODULE_10__[\"shortenURL\"]; });\n\n/* harmony import */ var _is_valid_numeric_id__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./is-valid-numeric-id */ \"./js/util/is-valid-numeric-id.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isValidNumericID\", function() { return _is_valid_numeric_id__WEBPACK_IMPORTED_MODULE_11__[\"isValidNumericID\"]; });\n\n/* harmony import */ var _isnumeric__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./isnumeric */ \"./js/util/isnumeric.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isNumeric\", function() { return _isnumeric__WEBPACK_IMPORTED_MODULE_12__[\"isNumeric\"]; });\n\n/* harmony import */ var _safely_sort__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./safely-sort */ \"./js/util/safely-sort.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"safelySort\", function() { return _safely_sort__WEBPACK_IMPORTED_MODULE_13__[\"safelySort\"]; });\n\n/* harmony import */ var _partition_report__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./partition-report */ \"./js/util/partition-report.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"partitionReport\", function() { return _partition_report__WEBPACK_IMPORTED_MODULE_14__[\"partitionReport\"]; });\n\n/**\n * Utility functions.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * Calculates the change between two values.\n *\n * @since 1.24.0\n *\n * @param {number} previous The previous value.\n * @param {number} current  The current value.\n * @return {(number|null)} The percent change. Null if the input or output is invalid.\n */\nfunction calculateChange(previous, current) {\n  function isZero(value) {\n    return value === '0' || value === 0;\n  }\n\n  // Prevent null result when both values are legitimately zero.\n  if (isZero(previous) && isZero(current)) {\n    return 0;\n  }\n\n  // Prevent divide by zero errors.\n  if (isZero(previous) || Number.isNaN(previous)) {\n    return null;\n  }\n\n  // Avoid NaN at all costs.\n  var change = (current - previous) / previous;\n  if (Number.isNaN(change) || !Number.isFinite(change)) {\n    return null;\n  }\n  return change;\n}\n\n/**\n * Verifies whether JSON is valid.\n *\n * @since 1.0.0\n *\n * @param {string} stringToValidate The string to validate.\n * @return {boolean} Indicates JSON is valid.\n */\nfunction validateJSON(stringToValidate) {\n  try {\n    return JSON.parse(stringToValidate) && !!stringToValidate;\n  } catch (e) {\n    return false;\n  }\n}\n\n/**\n * Converts HTML text into an HTML entity.\n *\n * _.unescape doesn't seem to decode some entities for admin bar titles.\n * adding combination in this helper as a workaround.\n *\n * @since 1.0.0\n *\n * @param {string} str The string to decode.\n * @return {string} Decoded HTML entity.\n */\nfunction decodeHTMLEntity(str) {\n  if (!str) {\n    return '';\n  }\n  var decoded = str.replace(/&#(\\d+);/g, function (match, dec) {\n    return String.fromCharCode(dec);\n  }).replace(/(\\\\)/g, '');\n  return Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"unescape\"])(decoded);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/util/index.js\n");

/***/ }),

/***/ "./js/util/is-valid-numeric-id.js":
/*!****************************************!*\
  !*** ./js/util/is-valid-numeric-id.js ***!
  \****************************************/
/*! exports provided: isValidNumericID */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidNumericID\", function() { return isValidNumericID; });\n/**\n * Utility function related to checking if a given value is numeric.\n *\n * Site Kit by Google, Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Checks the given value to see if it is a positive integer.\n *\n * @since 1.11.0 Function introduced.\n * @since 1.90.0 Moved outside Tag Manager to a generic utility function.\n *\n * @param {*} input Value to check.\n * @return {boolean} Validity.\n */\nfunction isValidNumericID(input) {\n  var id = parseFloat(input) || 0;\n  if (!Number.isInteger(id)) {\n    return false;\n  }\n  return id > 0;\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ZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKipcbiAqIENoZWNrcyB0aGUgZ2l2ZW4gdmFsdWUgdG8gc2VlIGlmIGl0IGlzIGEgcG9zaXRpdmUgaW50ZWdlci5cbiAqXG4gKiBAc2luY2UgMS4xMS4wIEZ1bmN0aW9uIGludHJvZHVjZWQuXG4gKiBAc2luY2UgMS45MC4wIE1vdmVkIG91dHNpZGUgVGFnIE1hbmFnZXIgdG8gYSBnZW5lcmljIHV0aWxpdHkgZnVuY3Rpb24uXG4gKlxuICogQHBhcmFtIHsqfSBpbnB1dCBWYWx1ZSB0byBjaGVjay5cbiAqIEByZXR1cm4ge2Jvb2xlYW59IFZhbGlkaXR5LlxuICovXG5leHBvcnQgZnVuY3Rpb24gaXNWYWxpZE51bWVyaWNJRCggaW5wdXQgKSB7XG5cdGNvbnN0IGlkID0gcGFyc2VGbG9hdCggaW5wdXQgKSB8fCAwO1xuXG5cdGlmICggISBOdW1iZXIuaXNJbnRlZ2VyKCBpZCApICkge1xuXHRcdHJldHVybiBmYWxzZTtcblx0fVxuXG5cdHJldHVybiBpZCA+IDA7XG59XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/util/is-valid-numeric-id.js\n");

/***/ }),

/***/ "./js/util/isnumeric.js":
/*!******************************!*\
  !*** ./js/util/isnumeric.js ***!
  \******************************/
/*! exports provided: isNumeric */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isNumeric\", function() { return isNumeric; });\n/**\n * Utility function related to checking if a given value is numeric.\n *\n * Site Kit by Google, Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Checks if a given value is numeric.\n *\n * @since 1.80.0\n *\n * @param {*} value The value to check.\n * @return {boolean} TRUE if a value is numeric FALSE otherwise.\n */\nfunction isNumeric(value) {\n  if (typeof value === 'number') {\n    return true;\n  }\n  var string = (value || '').toString();\n  if (!string) {\n    return false;\n  }\n  return !isNaN(string);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL2lzbnVtZXJpYy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvaXNudW1lcmljLmpzPzliNDkiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBVdGlsaXR5IGZ1bmN0aW9uIHJlbGF0ZWQgdG8gY2hlY2tpbmcgaWYgYSBnaXZlbiB2YWx1ZSBpcyBudW1lcmljLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjIgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjA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ZXR1cm4gdHJ1ZTtcblx0fVxuXG5cdGNvbnN0IHN0cmluZyA9ICggdmFsdWUgfHwgJycgKS50b1N0cmluZygpO1xuXG5cdGlmICggISBzdHJpbmcgKSB7XG5cdFx0cmV0dXJuIGZhbHNlO1xuXHR9XG5cblx0cmV0dXJuICEgaXNOYU4oIHN0cmluZyApO1xufVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/util/isnumeric.js\n");

/***/ }),

/***/ "./js/util/markdown.js":
/*!*****************************!*\
  !*** ./js/util/markdown.js ***!
  \*****************************/
/*! exports provided: markdownToHTML */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"markdownToHTML\", function() { return markdownToHTML; });\n/**\n * Markdown utility.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Replaces markdown links with its HTML equivalents.\n *\n * @since 1.22.0\n *\n * @param {string} text Markdown text.\n * @return {string} Text with HTML links.\n */\nfunction markdownLinks(text) {\n  return text.replace(new RegExp('\\\\[([^\\\\]]+)\\\\]\\\\((https?://[^/]+\\\\.\\\\w+/?.*?)\\\\)', 'gi'), '<a href=\"$2\" target=\"_blank\" rel=\"noopener noreferrer\">$1</a>');\n}\n\n/**\n * Adds paragraphs to the text.\n *\n * @since 1.22.0\n *\n * @param {string} text Markdown text.\n * @return {string} Text with HTML links.\n */\nfunction markdownParagraphs(text) {\n  return \"<p>\".concat(text.replace(/\\n{2,}/g, '</p><p>'), \"</p>\");\n}\n\n/**\n * Replaces line breaks in the text.\n *\n * @since 1.22.0\n *\n * @param {string} text Markdown text.\n * @return {string} Text with HTML links.\n */\nfunction markdownBreaks(text) {\n  return text.replace(/\\n/gi, '<br>');\n}\n\n/**\n * Converts markdown to HTML.\n *\n * @since 1.22.0\n *\n * @param {string} text Markdown text.\n * @return {string} HTML version of the markdown text.\n */\nfunction markdownToHTML(text) {\n  var rules = [markdownLinks, markdownParagraphs, markdownBreaks];\n  var html = text;\n  for (var _i = 0, _rules = rules; _i < _rules.length; _i++) {\n    var rule = _rules[_i];\n    html = rule(html);\n  }\n  return html;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL21hcmtkb3duLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvdXRpbC9tYXJrZG93bi5qcz9kYjAyIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogTWFya2Rvd24gdXRpbGl0eS5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMg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93bkxpbmtzLCBtYXJrZG93blBhcmFncmFwaHMsIG1hcmtkb3duQnJlYWtzIF07XG5cblx0bGV0IGh0bWwgPSB0ZXh0O1xuXHRmb3IgKCBjb25zdCBydWxlIG9mIHJ1bGVzICkge1xuXHRcdGh0bWwgPSBydWxlKCBodG1sICk7XG5cdH1cblxuXHRyZXR1cm4gaHRtbDtcbn1cbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/util/markdown.js\n");

/***/ }),

/***/ "./js/util/partition-report.js":
/*!*************************************!*\
  !*** ./js/util/partition-report.js ***!
  \*************************************/
/*! exports provided: partitionReport */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"partitionReport\", function() { return partitionReport; });\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * Report partitioning utility.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n/**\n * Splits report data into segments for current and comparison ranges.\n *\n * @since 1.33.0\n * @since 1.34.0 Updated to support incomplete `report` arrays.\n *\n * @param {Array}  report               Report rows.\n * @param {Object} args                 Additional arguments.\n * @param {number} args.dateRangeLength Date range length of report segments.\n * @return {Object} Object with keys for `compareRange` and `currentRange`.\n */\nfunction partitionReport(report, _ref) {\n  var dateRangeLength = _ref.dateRangeLength;\n  invariant__WEBPACK_IMPORTED_MODULE_0___default()(Array.isArray(report), 'report must be an array to partition.');\n  invariant__WEBPACK_IMPORTED_MODULE_0___default()(Number.isInteger(dateRangeLength) && dateRangeLength > 0, 'dateRangeLength must be a positive integer.');\n\n  // Use a negative date range length for reverse slicing.\n  var _dateRangeLength = -1 * dateRangeLength;\n  return {\n    // The current range should always be sliced from the end.\n    currentRange: report.slice(_dateRangeLength),\n    // The compare range continues from where the current left off (slicing towards the start),\n    // and may be shorter (where older data is not available yet) which is fine.\n    compareRange: report.slice(_dateRangeLength * 2, _dateRangeLength)\n  };\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3BhcnRpdGlvbi1yZXBvcnQuanMuanMiLCJzb3VyY2VzIjpbInd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/ }),

/***/ "./js/util/purify.js":
/*!***************************!*\
  !*** ./js/util/purify.js ***!
  \***************************/
/*! exports provided: purify */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"purify\", function() { return purify; });\n/* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dompurify */ \"../node_modules/dompurify/dist/purify.js\");\n/* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dompurify__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * External dependencies\n */\n\nvar purify = dompurify__WEBPACK_IMPORTED_MODULE_0___default()(global);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ \"../node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3B1cmlmeS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvcHVyaWZ5LmpzPzgxMWIiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBFeHRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IGNyZWF0ZURPTVB1cmlmeSBmcm9tICdkb21wdXJpZnknO1xuXG5leHBvcnQgY29uc3QgcHVyaWZ5ID0gY3JlYXRlRE9NUHVyaWZ5KCBnbG9iYWwgKTtcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/util/purify.js\n");

/***/ }),

/***/ "./js/util/safely-sort.js":
/*!********************************!*\
  !*** ./js/util/safely-sort.js ***!
  \********************************/
/*! exports provided: safelySort */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"safelySort\", function() { return safelySort; });\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"../node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n\n/**\n * `safelySort` utility function.\n *\n * Site Kit by Google, Copyright 2024 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Sorts an array without causing the mutation if the given parameter is an array.\n * If the parameter is not an array, it returns the parameter as is.\n *\n * @since 1.110.0\n * @since 1.128.0 Moved to the common utility directory from the key metrics directory.\n *\n * @param {Array|*} arr Param to be sorted.\n * @return {Array|*} \tSafely sorted array without mutation.\n */\nfunction safelySort(arr) {\n  return Array.isArray(arr) ? _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(arr).sort() : arr;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3NhZmVseS1zb3J0LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanM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iBhcnJheS5cbiAqIElmIHRoZSBwYXJhbWV0ZXIgaXMgbm90IGFuIGFycmF5LCBpdCByZXR1cm5zIHRoZSBwYXJhbWV0ZXIgYXMgaXMuXG4gKlxuICogQHNpbmNlIDEuMTEwLjBcbiAqIEBzaW5jZSAxLjEyOC4wIE1vdmVkIHRvIHRoZSBjb21tb24gdXRpbGl0eSBkaXJlY3RvcnkgZnJvbSB0aGUga2V5IG1ldHJpY3MgZGlyZWN0b3J5LlxuICpcbiAqIEBwYXJhbSB7QXJyYXl8Kn0gYXJyIFBhcmFtIHRvIGJlIHNvcnRlZC5cbiAqIEByZXR1cm4ge0FycmF5fCp9IFx0U2FmZWx5IHNvcnRlZCBhcnJheSB3aXRob3V0IG11dGF0aW9uLlxuICovXG5leHBvcnQgZnVuY3Rpb24gc2FmZWx5U29ydCggYXJyICkge1xuXHRyZXR1cm4gQXJyYXkuaXNBcnJheSggYXJyICkgPyBbIC4uLmFyciBdLnNvcnQoKSA6IGFycjtcbn1cbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/util/safely-sort.js\n");

/***/ }),

/***/ "./js/util/sanitize.js":
/*!*****************************!*\
  !*** ./js/util/sanitize.js ***!
  \*****************************/
/*! exports provided: sanitizeHTML, untrailingslashit */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"sanitizeHTML\", function() { return sanitizeHTML; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"untrailingslashit\", function() { return untrailingslashit; });\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"../node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _purify__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./purify */ \"./js/util/purify.js\");\n\n/**\n * Internal dependencies\n */\n\nfunction sanitizeHTML(unsafeHTML) {\n  var domPurifyConfig = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  return {\n    __html: _purify__WEBPACK_IMPORTED_MODULE_1__[\"purify\"].sanitize(unsafeHTML, domPurifyConfig)\n  };\n}\n\n/**\n * Takes a string or an URL object, removes the trailing slash if any and returns it.\n *\n * @since 1.20.0\n * @private\n *\n * @param {Object|string} url A string with or without trailing slash or an URL object.\n * @return {string|undefined} The URL string after removing the trailing slash.\n */\nfunction untrailingslashit(url) {\n  var _originalURL$replace;\n  var originalURL = _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(url) === 'object' ? url.toString() : url;\n  return originalURL === null || originalURL === void 0 ? void 0 : (_originalURL$replace = originalURL.replace) === null || _originalURL$replace === void 0 ? void 0 : _originalURL$replace.call(originalURL, /\\/+$/, '');\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3Nhbml0aXplLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvdXRpbC9zYW5pdGl6ZS5qcz8yZmFkIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogSW50ZXJuYWwgZGVwZ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0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/util/sanitize.js\n");

/***/ }),

/***/ "./js/util/storage.js":
/*!****************************!*\
  !*** ./js/util/storage.js ***!
  \****************************/
/*! exports provided: storageAvailable, getStorage */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"storageAvailable\", function() { return storageAvailable; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getStorage\", function() { return getStorage; });\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"../node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"../node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n\n\n/**\n * Storage abstraction.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Detects whether browser storage is both supported and available.\n *\n * @since 1.0.0\n *\n * @param {string} type Browser storage to test. ex localStorage or sessionStorage.\n * @return {boolean} True if the given storage is available, false otherwise.\n */\nfunction storageAvailable(type) {\n  var storage = global[type];\n  if (!storage) {\n    return false;\n  }\n  try {\n    var x = '__storage_test__';\n    storage.setItem(x, x);\n    storage.removeItem(x);\n    return true;\n  } catch (e) {\n    return e instanceof DOMException && (\n    // everything except Firefox\n    22 === e.code ||\n    // Firefox\n    1014 === e.code ||\n    // test name field too, because code might not be present\n    // everything except Firefox\n    'QuotaExceededError' === e.name ||\n    // Firefox\n    'NS_ERROR_DOM_QUOTA_REACHED' === e.name) &&\n    // acknowledge QuotaExceededError only if there's something already stored\n    0 !== storage.length;\n  }\n}\n\n// Custom no-op implementation of window.Storage.\nvar NullStorage = /*#__PURE__*/function () {\n  function NullStorage() {\n    _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, NullStorage);\n  }\n  _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(NullStorage, [{\n    key: \"key\",\n    value: function key() {\n      return null;\n    }\n  }, {\n    key: \"getItem\",\n    value: function getItem() {\n      return null;\n    }\n  }, {\n    key: \"setItem\",\n    value: function setItem() {\n      // Empty method body.\n    }\n  }, {\n    key: \"removeItem\",\n    value: function removeItem() {\n      // Empty method body.\n    }\n  }, {\n    key: \"clear\",\n    value: function clear() {\n      // Empty method body.\n    }\n  }, {\n    key: \"length\",\n    get: function get() {\n      return 0;\n    }\n  }]);\n  return NullStorage;\n}();\nvar storageObj;\n\n/**\n * Gets the storage object to use.\n *\n * @since 1.0.0\n *\n * @return {Storage} Either window.sessionStorage, window.localStorage', or a\n *                   no-op implementation if neither is available.\n */\nfunction getStorage() {\n  // Only run the logic to determine the storage object once.\n  if (!storageObj) {\n    if (storageAvailable('sessionStorage')) {\n      storageObj = global.sessionStorage;\n    } else if (storageAvailable('localStorage')) {\n      storageObj = global.localStorage;\n    } else {\n      storageObj = new NullStorage();\n    }\n  }\n  return storageObj;\n}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ \"../node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/util/storage.js\n");

/***/ }),

/***/ "./js/util/stringify.js":
/*!******************************!*\
  !*** ./js/util/stringify.js ***!
  \******************************/
/*! exports provided: stringifyObject */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"stringifyObject\", function() { return stringifyObject; });\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"../node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! md5 */ \"../node_modules/md5/md5.js\");\n/* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_1__);\n\n/**\n * Stringify function.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n/**\n * Transforms an object into a hash string.\n *\n * This function can be used to e.g. generate cache keys, based on the given\n * object. Object properties are sorted, so even if they are provided in\n * different order, the hash will match. The function furthermore supports\n * nested objects.\n *\n * @since 1.7.0\n *\n * @param {Object} obj The object to stringify.\n * @return {string} Hash for the object.\n */\nfunction stringifyObject(obj) {\n  return md5__WEBPACK_IMPORTED_MODULE_1___default()(JSON.stringify(sortObjectProperties(obj)));\n}\nfunction sortObjectProperties(obj) {\n  var orderedData = {};\n  Object.keys(obj).sort().forEach(function (key) {\n    var val = obj[key];\n    if (val && 'object' === _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(val) && !Array.isArray(val)) {\n      val = sortObjectProperties(val);\n    }\n    orderedData[key] = val;\n  });\n  return orderedData;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3N0cmluZ2lmeS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvc3RyaW5naWZ5LmpzP2I3NGUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBTdHJpbmdpZnkgZnVuY3Rpb24uXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY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0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/util/stringify.js\n");

/***/ }),

/***/ "./js/util/tracking/constants.js":
/*!***************************************!*\
  !*** ./js/util/tracking/constants.js ***!
  \***************************************/
/*! exports provided: DATA_LAYER, SCRIPT_IDENTIFIER */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DATA_LAYER\", function() { return DATA_LAYER; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SCRIPT_IDENTIFIER\", function() { return SCRIPT_IDENTIFIER; });\n/**\n * Constants related to event tracking.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Data layer global used for internal/private Site Kit data.\n *\n * @since 1.8.0\n * @private\n */\nvar DATA_LAYER = '_googlesitekitDataLayer';\n\n/**\n * The `gtag` `<script>` identifier.\n *\n * @since 1.8.0\n * @private\n */\nvar SCRIPT_IDENTIFIER = 'data-googlesitekit-gtag';//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3RyYWNraW5nL2NvbnN0YW50cy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvdHJhY2tpbmcvY29uc3RhbnRzLmpzPzJkNjgiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDb25zdGFudHMgcmVsYXRlZCB0byBldmVudCB0cm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vKipcbiAqIFRoZSBgZ3RhZ2AgYDxzY3JpcHQ+YCBpZGVudGlmaWVyLlxuICpcbiAqIEBzaW5jZSAxLjguMFxuICogQHByaXZhdGVcbiAqL1xuZXhwb3J0IGNvbnN0IFNDUklQVF9JREVOVElGSUVSID0gJ2RhdGEtZ29vZ2xlc2l0ZWtpdC1ndGFnJztcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/util/tracking/constants.js\n");

/***/ }),

/***/ "./js/util/tracking/createDataLayerPush.js":
/*!*************************************************!*\
  !*** ./js/util/tracking/createDataLayerPush.js ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return createDataLayerPush; });\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ \"./js/util/tracking/constants.js\");\n/**\n * Internal dependencies\n */\n\n\n/**\n * Returns a function which, when invoked will initialize the dataLayer and push data onto it.\n *\n * @since 1.3.0\n *\n * @param {Object} target Object to enhance with dataLayer data.\n * @return {Function} Function that pushes data onto the dataLayer.\n */\nfunction createDataLayerPush(target) {\n  /**\n   * Pushes data onto the data layer.\n   *\n   * Must push an instance of Arguments to the target.\n   * Using an ES6 spread operator (i.e. `...args`) will cause tracking events to\n   * _silently_ fail.\n   *\n   * @since 1.0.0\n   * @see {@link https://github.com/google/site-kit-wp/issues/1181}\n   */\n  return function dataLayerPush() {\n    target[_constants__WEBPACK_IMPORTED_MODULE_0__[\"DATA_LAYER\"]] = target[_constants__WEBPACK_IMPORTED_MODULE_0__[\"DATA_LAYER\"]] || [];\n    target[_constants__WEBPACK_IMPORTED_MODULE_0__[\"DATA_LAYER\"]].push(arguments);\n  };\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3RyYWNraW5nL2NyZWF0ZURhdGFMYXllclB1c2guanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy91dGlsL3RyYWNraW5nL2NyZWF0ZURhdGFMYXllclB1c2guanM/ZTAyZSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEludGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgeyBEQVRBX0xBWUVSIH0gZnJvbSAnLi9jb25zdGFudHMnO1xuXG4vKipcbiAqIFJldHVybnMgYSBmdW5jdGlvbiB3aGljaCwgd2hlbiBpbnZva2VkIHdpbGwgaW5pdGlhbGl6ZSB0aGUgZGF0YUxheWVyIGFuZCBwdXNoIGRhdGEgb250byBpdC5cbiAqXG4gKiBAc2luY2UgMS4zLjBcbiAqXG4gKiBAcGFyYW0ge09iamVjdH0gdGFyZ2V0IE9iamVjdCB0byBlbmhhbmNlIHdpdGggZGF0YUxheWVyIGRhdGEuXG4gKiBAcmV0dXJuIHtGdW5jdGlvbn0gRnVuY3Rpb24gdGhhdCBwdXNoZXMgZGF0YSBvbnRvIHRoZSBkYXRhTGF5ZXIuXG4gKi9cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIGNyZWF0ZURhdGFMYXllclB1c2goIHRhcmdldCApIHtcblx0LyoqXG5cdCAqIFB1c2hlcyBkYXRhIG9udG8gdGhlIGRhdGEgbGF5ZXIuXG5cdCAqXG5cdCAqIE11c3QgcHVzaCBhbiBpbnN0YW5jZSBvZiBBcmd1bWVudHMgdG8gdGhlIHRhcmdldC5cblx0ICogVXNpbmcgYW4gRVM2IHNwcmVhZCBvcGVyYXRvciAoaS5lLiBgLi4uYXJnc2ApIHdpbGwgY2F1c2UgdHJhY2tpbmcgZXZlbnRzIHRvXG5cdCAqIF9zaWxlbnRseV8gZmFpbC5cblx0ICpcblx0ICogQHNpbmNlIDEuMC4wXG5cdCAqIEBzZWUge0BsaW5rIGh0dHBzOi8vZ2l0aHViLmNvbS9nb29nbGUvc2l0ZS1raXQtd3AvaXNzdWVzLzExODF9XG5cdCAqL1xuXHRyZXR1cm4gZnVuY3Rpb24gZGF0YUxheWVyUHVzaCgpIHtcblx0XHR0YXJnZXRbIERBVEFfTEFZRVIgXSA9IHRhcmdldFsgREFUQV9MQVlFUiBdIHx8IFtdO1xuXHRcdHRhcmdldFsgREFUQV9MQVlFUiBdLnB1c2goIGFyZ3VtZW50cyApO1xuXHR9O1xufVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/util/tracking/createDataLayerPush.js\n");

/***/ }),

/***/ "./js/util/tracking/createInitializeSnippet.js":
/*!*****************************************************!*\
  !*** ./js/util/tracking/createInitializeSnippet.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return createInitializeSnippet; });\n/* harmony import */ var _createDataLayerPush__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createDataLayerPush */ \"./js/util/tracking/createDataLayerPush.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ \"./js/util/tracking/constants.js\");\n/* harmony import */ var _js_features_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/js/features/index */ \"./js/features/index.js\");\n/**\n * Internal dependencies\n */\n\n\n\n\n/**\n * Returns a function which, when invoked injects the gtag script if necessary.\n *\n * @since 1.44.0\n *\n * @param {Object} config          Tracking configuration.\n * @param {Object} dataLayerTarget Data layer parent object.\n * @return {Function} Function that injects gtag script if it isn't yet present.\n */\nfunction createInitializeSnippet(config, dataLayerTarget) {\n  var dataLayerPush = Object(_createDataLayerPush__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(dataLayerTarget);\n  var hasInsertedTag;\n  var activeModules = config.activeModules,\n    referenceSiteURL = config.referenceSiteURL,\n    userIDHash = config.userIDHash,\n    _config$userRoles = config.userRoles,\n    userRoles = _config$userRoles === void 0 ? [] : _config$userRoles,\n    isAuthenticated = config.isAuthenticated,\n    pluginVersion = config.pluginVersion;\n  /**\n   * Injects the necessary script tag if not present.\n   *\n   * @since 1.118.0\n   *\n   * @return {boolean|Object} Tag src as scriptTagSrc property.\n   */\n  return function initializeSnippet() {\n    var _global = global,\n      document = _global.document;\n    if (undefined === hasInsertedTag) {\n      hasInsertedTag = !!document.querySelector(\"script[\".concat(_constants__WEBPACK_IMPORTED_MODULE_1__[\"SCRIPT_IDENTIFIER\"], \"]\"));\n    }\n    if (hasInsertedTag) {\n      return false;\n    }\n    hasInsertedTag = true;\n\n    // Sometimes the user roles returned by Site Kit/WordPress is not an\n    // array, as expected, so we guard against it here.\n    //\n    // See: https://github.com/google/site-kit-wp/issues/8266\n    var userRolesAsString = (userRoles === null || userRoles === void 0 ? void 0 : userRoles.length) ? userRoles.join(',') : '';\n\n    // We should use the real time, and not the reference date, when\n    // measuring when we initialized tracking.\n    dataLayerPush('js', new Date()); // eslint-disable-line sitekit/no-direct-date\n    dataLayerPush('config', config.trackingID, {\n      groups: 'site_kit',\n      send_page_view: config.isSiteKitScreen,\n      domain: referenceSiteURL,\n      plugin_version: pluginVersion || '',\n      enabled_features: Array.from(_js_features_index__WEBPACK_IMPORTED_MODULE_2__[\"enabledFeatures\"]).join(','),\n      active_modules: activeModules.join(','),\n      authenticated: isAuthenticated ? '1' : '0',\n      user_properties: {\n        user_roles: userRolesAsString,\n        user_identifier: userIDHash\n      }\n    });\n\n    // If not present, inject it and initialize dataLayer.\n    var scriptTag = document.createElement('script');\n    scriptTag.setAttribute(_constants__WEBPACK_IMPORTED_MODULE_1__[\"SCRIPT_IDENTIFIER\"], '');\n    scriptTag.async = true;\n    scriptTag.src = \"https://www.googletagmanager.com/gtag/js?id=\".concat(config.trackingID, \"&l=\").concat(_constants__WEBPACK_IMPORTED_MODULE_1__[\"DATA_LAYER\"]);\n    document.head.appendChild(scriptTag);\n    return {\n      scriptTagSrc: \"https://www.googletagmanager.com/gtag/js?id=\".concat(config.trackingID, \"&l=\").concat(_constants__WEBPACK_IMPORTED_MODULE_1__[\"DATA_LAYER\"])\n    };\n  };\n}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/global.js */ \"../node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/util/tracking/createInitializeSnippet.js\n");

/***/ }),

/***/ "./js/util/tracking/createTrackEvent.js":
/*!**********************************************!*\
  !*** ./js/util/tracking/createTrackEvent.js ***!
  \**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return createTrackEvent; });\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _createDataLayerPush__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createDataLayerPush */ \"./js/util/tracking/createDataLayerPush.js\");\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n/**\n * Internal dependencies\n */\n\n\n/**\n * Returns a function which, when invoked tracks a single event.\n *\n * @since 1.3.0\n *\n * @param {Object}   config            Tracking configuration.\n * @param {Object}   dataLayerTarget   Data layer parent object.\n * @param {Function} initializeSnippet Function to initialize tracking.\n * @param {Object}   _global           The global window object.\n * @return {Function} Function that tracks an event.\n */\nfunction createTrackEvent(config, dataLayerTarget, initializeSnippet, _global) {\n  var dataLayerPush = Object(_createDataLayerPush__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(dataLayerTarget);\n\n  /**\n   * Send an Analytics tracking event.\n   *\n   * @since 1.3.0\n   *\n   * @param {string} category The category of the event.\n   * @param {string} action   The action name of the event.\n   * @param {string} [label]  Optional. The label of the event.\n   * @param {number} [value]  Optional. A non-negative integer that will appear as the event value.\n   * @return {Promise} Promise that always resolves.\n   */\n  // eslint-disable-next-line require-await\n  return /*#__PURE__*/function () {\n    var _trackEvent = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(category, action, label, value) {\n      var trackingEnabled, eventData;\n      return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {\n        while (1) {\n          switch (_context.prev = _context.next) {\n            case 0:\n              trackingEnabled = config.trackingEnabled;\n              if (trackingEnabled) {\n                _context.next = 3;\n                break;\n              }\n              return _context.abrupt(\"return\", null);\n            case 3:\n              initializeSnippet();\n              eventData = {\n                send_to: 'site_kit',\n                event_category: category,\n                event_label: label,\n                value: value\n              };\n              return _context.abrupt(\"return\", new Promise(function (resolve) {\n                var _global$_gaUserPrefs, _global$_gaUserPrefs$;\n                // This timeout ensures a tracking event does not block the user\n                // event if it is not sent (in time).\n                // If the event beacon fails, it shouldn't reject the promise since event\n                // tracking should not result in user-facing errors. It will just\n                // trigger a console warning.\n                function failCallback() {\n                  _global.console.warn(\"Tracking event \\\"\".concat(action, \"\\\" (category \\\"\").concat(category, \"\\\") took too long to fire.\"));\n                  resolve();\n                }\n                var failTimeout = setTimeout(failCallback, 1000);\n                // eslint-disable-next-line camelcase\n                function event_callback() {\n                  clearTimeout(failTimeout);\n                  resolve();\n                }\n                dataLayerPush('event', action, _objectSpread(_objectSpread({}, eventData), {}, {\n                  event_callback: event_callback\n                }));\n\n                // If the client-side opt-out is present, the event_callback will never be called\n                // so we call it here to prevent the warning and added delay.\n                if ((_global$_gaUserPrefs = _global._gaUserPrefs) === null || _global$_gaUserPrefs === void 0 ? void 0 : (_global$_gaUserPrefs$ = _global$_gaUserPrefs.ioo) === null || _global$_gaUserPrefs$ === void 0 ? void 0 : _global$_gaUserPrefs$.call(_global$_gaUserPrefs)) {\n                  event_callback();\n                }\n              }));\n            case 6:\n            case \"end\":\n              return _context.stop();\n          }\n        }\n      }, _callee);\n    }));\n    function trackEvent(_x, _x2, _x3, _x4) {\n      return _trackEvent.apply(this, arguments);\n    }\n    return trackEvent;\n  }();\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/util/tracking/createTrackEvent.js\n");

/***/ }),

/***/ "./js/util/tracking/createTracking.js":
/*!********************************************!*\
  !*** ./js/util/tracking/createTracking.js ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return createTracking; });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"../node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _createInitializeSnippet__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createInitializeSnippet */ \"./js/util/tracking/createInitializeSnippet.js\");\n/* harmony import */ var _createTrackEvent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createTrackEvent */ \"./js/util/tracking/createTrackEvent.js\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n/**\n * Site Kit by Google, Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * External dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\nvar DEFAULT_CONFIG = {\n  activeModules: [],\n  isAuthenticated: false,\n  referenceSiteURL: '',\n  trackingEnabled: false,\n  trackingID: '',\n  userIDHash: '',\n  userRoles: []\n};\n\n/**\n * Initializes tracking.\n *\n * @since 1.3.0\n *\n * @param {Object} newConfig       New configuration.\n * @param {Object} dataLayerTarget Data layer parent object.\n * @param {Object} _global         The global window object.\n * @return {Object} Tracking config.\n */\nfunction createTracking(newConfig) {\n  var dataLayerTarget = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : global;\n  var _global = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : global;\n  var config = _objectSpread(_objectSpread({}, DEFAULT_CONFIG), newConfig);\n  // Remove any trailing slash from the reference URL.\n  if (config.referenceSiteURL) {\n    config.referenceSiteURL = config.referenceSiteURL.toString().replace(/\\/+$/, '');\n  }\n  var initializeSnippet = Object(_createInitializeSnippet__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(config, dataLayerTarget);\n  var trackEvent = Object(_createTrackEvent__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(config, dataLayerTarget, initializeSnippet, _global);\n  var onceTrackedEventsMap = {};\n  function trackEventOnce() {\n    for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {\n      params[_key] = arguments[_key];\n    }\n    var key = JSON.stringify(params);\n    if (!onceTrackedEventsMap[key]) {\n      onceTrackedEventsMap[key] = Object(lodash__WEBPACK_IMPORTED_MODULE_1__[\"once\"])(trackEvent);\n    }\n    onceTrackedEventsMap[key].apply(onceTrackedEventsMap, params);\n  }\n  return {\n    enableTracking: function enableTracking() {\n      config.trackingEnabled = true;\n    },\n    disableTracking: function disableTracking() {\n      config.trackingEnabled = false;\n    },\n    initializeSnippet: initializeSnippet,\n    isTrackingEnabled: function isTrackingEnabled() {\n      return !!config.trackingEnabled;\n    },\n    trackEvent: trackEvent,\n    trackEventOnce: trackEventOnce\n  };\n}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/global.js */ \"../node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/util/tracking/createTracking.js\n");

/***/ }),

/***/ "./js/util/tracking/index.js":
/*!***********************************!*\
  !*** ./js/util/tracking/index.js ***!
  \***********************************/
/*! exports provided: enableTracking, disableTracking, isTrackingEnabled, toggleTracking, trackEvent, trackEventOnce */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"enableTracking\", function() { return enableTracking; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"disableTracking\", function() { return disableTracking; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isTrackingEnabled\", function() { return isTrackingEnabled; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"toggleTracking\", function() { return toggleTracking; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"trackEvent\", function() { return trackEvent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"trackEventOnce\", function() { return trackEventOnce; });\n/* harmony import */ var _createTracking__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createTracking */ \"./js/util/tracking/createTracking.js\");\n/**\n * Event tracking utilities.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* eslint-disable sitekit/jsdoc-no-unnamed-boolean-params */\n\n/**\n * Internal dependencies\n */\n\nvar _ref = global._googlesitekitTrackingData || {},\n  _ref$activeModules = _ref.activeModules,\n  activeModules = _ref$activeModules === void 0 ? [] : _ref$activeModules,\n  isSiteKitScreen = _ref.isSiteKitScreen,\n  trackingEnabled = _ref.trackingEnabled,\n  trackingID = _ref.trackingID,\n  referenceSiteURL = _ref.referenceSiteURL,\n  userIDHash = _ref.userIDHash,\n  isAuthenticated = _ref.isAuthenticated,\n  userRoles = _ref.userRoles;\nvar _global = global,\n  pluginVersion = \"1.161.0\";\nvar initialConfig = {\n  activeModules: activeModules,\n  trackingEnabled: trackingEnabled,\n  trackingID: trackingID,\n  referenceSiteURL: referenceSiteURL,\n  userIDHash: userIDHash,\n  isSiteKitScreen: isSiteKitScreen,\n  userRoles: userRoles,\n  isAuthenticated: isAuthenticated,\n  pluginVersion: pluginVersion\n};\nvar _createTracking = Object(_createTracking__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(initialConfig),\n  enableTracking = _createTracking.enableTracking,\n  disableTracking = _createTracking.disableTracking,\n  isTrackingEnabled = _createTracking.isTrackingEnabled,\n  initializeSnippet = _createTracking.initializeSnippet,\n  trackEvent = _createTracking.trackEvent,\n  trackEventOnce = _createTracking.trackEventOnce;\n/**\n * Changes the active state of tracking.\n *\n * @since 1.3.0\n *\n * @param {boolean} activeStatus The new state to set.\n */\nfunction toggleTracking(activeStatus) {\n  if (!!activeStatus) {\n    enableTracking();\n  } else {\n    disableTracking();\n  }\n}\n\n// Bootstrap on import if tracking is allowed.\nif (isSiteKitScreen && trackingEnabled) {\n  initializeSnippet();\n}\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../node_modules/webpack/buildin/global.js */ \"../node_modules/webpack/buildin/global.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3RyYWNraW5nL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvdXRpbC90cmFja2luZy9pbmRleC5qcz82YTc3Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXZlbnQgdHJhY2tpbmcgdXRpbGl0aWVzLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZ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0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUdBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/util/tracking/index.js\n");

/***/ }),

/***/ "./js/util/urls.js":
/*!*************************!*\
  !*** ./js/util/urls.js ***!
  \*************************/
/*! exports provided: getURLPath, getFullURL, normalizeURL, isHashOnly, shortenURL */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getURLPath\", function() { return getURLPath; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getFullURL\", function() { return getFullURL; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"normalizeURL\", function() { return normalizeURL; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isHashOnly\", function() { return isHashOnly; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"shortenURL\", function() { return shortenURL; });\n/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/url */ \"../node_modules/@wordpress/url/build-module/index.js\");\n/**\n * URL pathname getter utility function.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Returns the path from a URL, omitting its protocol, hostname, query params, and hash.\n *\n * @since 1.24.0\n *\n * @param {string} url The URL to get the path from.\n * @return {string} The URL path.\n */\nfunction getURLPath(url) {\n  try {\n    return new URL(url).pathname;\n  } catch (_unused) {}\n  return null;\n}\n\n/**\n * Returns the absolute URL from a path including the siteURL.\n *\n * @since 1.32.0\n *\n * @param {string} siteURL The siteURL fo the WordPress install.\n * @param {string} path    The path.\n * @return {string} The URL path.\n */\nfunction getFullURL(siteURL, path) {\n  try {\n    return new URL(path, siteURL).href;\n  } catch (_unused2) {}\n  return (typeof siteURL === 'string' ? siteURL : '') + (typeof path === 'string' ? path : '');\n}\n\n/**\n * Normalizes URL by removing protocol, www subdomain and trailing slash.\n *\n * @since 1.33.0\n *\n * @param {string} incomingURL The original URL.\n * @return {string} Normalized URL.\n */\nfunction normalizeURL(incomingURL) {\n  if (typeof incomingURL !== 'string') {\n    return incomingURL;\n  }\n  return incomingURL\n  // Remove protocol and optional \"www.\" prefix from the URL.\n  .replace(/^https?:\\/\\/(www\\.)?/i, '')\n  // Remove trailing slash.\n  .replace(/\\/$/, '');\n}\n\n/**\n * Checks if a string is not a full URL and simply a hash / anchor link.\n *\n * @since 1.49.0\n *\n * @param {string} url The URL or Hash string to test.\n * @return {boolean} Returns true if the string is only a hash and not a full URL.\n */\nfunction isHashOnly(url) {\n  return /^#\\w[A-Za-z0-9-_]*$/.test(url);\n}\n\n/**\n * Shortens a URL to fit a given length.\n *\n * @since 1.49.0\n *\n * @param {string} url      The original URL to shorten.\n * @param {number} maxChars The maximum length of the URL.\n * @return {string} The shortened URL.\n */\nfunction shortenURL(url, maxChars) {\n  if (!Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_0__[\"isURL\"])(url)) {\n    return url;\n  }\n  if (url.length <= maxChars) {\n    return url;\n  }\n  var urlObject = new URL(url);\n  var shortenedURL = url.replace(urlObject.origin, '');\n  if (shortenedURL.length < maxChars) {\n    return shortenedURL;\n  }\n  var extraChars = shortenedURL.length - Math.floor(maxChars) + 1; // 1 is the length of \"…\".\n  return '…' + shortenedURL.substr(extraChars);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./js/util/urls.js\n");

/***/ }),

/***/ "@wordpress/i18n":
/*!*****************************************!*\
  !*** external ["googlesitekit","i18n"] ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

eval("module.exports = googlesitekit[\"i18n\"];//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQHdvcmRwcmVzcy9pMThuLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vL2V4dGVybmFsIFtcImdvb2dsZXNpdGVraXRcIixcImkxOG5cIl0/YTFhZCJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IGdvb2dsZXNpdGVraXRbXCJpMThuXCJdOyJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///@wordpress/i18n\n");

/***/ }),

/***/ "googlesitekit-api":
/*!****************************************!*\
  !*** external ["googlesitekit","api"] ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

eval("module.exports = googlesitekit[\"api\"];//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ29vZ2xlc2l0ZWtpdC1hcGkuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vZXh0ZXJuYWwgW1wiZ29vZ2xlc2l0ZWtpdFwiLFwiYXBpXCJdPzMyYmUiXSwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBnb29nbGVzaXRla2l0W1wiYXBpXCJdOyJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///googlesitekit-api\n");

/***/ }),

/***/ "googlesitekit-data":
/*!*****************************************!*\
  !*** external ["googlesitekit","data"] ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

eval("module.exports = googlesitekit[\"data\"];//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ29vZ2xlc2l0ZWtpdC1kYXRhLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vL2V4dGVybmFsIFtcImdvb2dsZXNpdGVraXRcIixcImRhdGFcIl0/NzIwYyJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IGdvb2dsZXNpdGVraXRbXCJkYXRhXCJdOyJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///googlesitekit-data\n");

/***/ })

},[["./js/googlesitekit-datastore-user.js","runtime","googlesitekit-vendor"]]]);