2552 lines
2.2 MiB
JavaScript
2552 lines
2.2 MiB
JavaScript
|
|
(window["__googlesitekit_webpackJsonp"] = window["__googlesitekit_webpackJsonp"] || []).push([["googlesitekit-modules-search-console"],{
|
|||
|
|
|
|||
|
|
/***/ "./js/components/ActivateAnalyticsCTA.js":
|
|||
|
|
/*!***********************************************!*\
|
|||
|
|
!*** ./js/components/ActivateAnalyticsCTA.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return ActivateAnalyticsCTA; });\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 _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__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/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__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 _googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../modules/analytics-4/datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _js_googlesitekit_datastore_location_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../js/googlesitekit/datastore/location/constants */ \"./js/googlesitekit/datastore/location/constants.js\");\n/* harmony import */ var _hooks_useActivateModuleCallback__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../hooks/useActivateModuleCallback */ \"./js/hooks/useActivateModuleCallback.js\");\n/* harmony import */ var _hooks_useCompleteModuleActivationCallback__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../hooks/useCompleteModuleActivationCallback */ \"./js/hooks/useCompleteModuleActivationCallback.js\");\n/* harmony import */ var _hooks_useDebounce__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../hooks/useDebounce */ \"./js/hooks/useDebounce.js\");\n\n\n/**\n * ActivateAnalyticsCTA component.\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 * External dependencies\n */\n
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/AdminMenuTooltip/AdminMenuTooltip.js":
|
|||
|
|
/*!************************************************************!*\
|
|||
|
|
!*** ./js/components/AdminMenuTooltip/AdminMenuTooltip.js ***!
|
|||
|
|
\************************************************************/
|
|||
|
|
/*! exports provided: AdminMenuTooltip */
|
|||
|
|
/***/ (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__, \"AdminMenuTooltip\", function() { return AdminMenuTooltip; });\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 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 _JoyrideTooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../JoyrideTooltip */ \"./js/components/JoyrideTooltip.js\");\n/* harmony import */ var _googlesitekit_datastore_ui_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../googlesitekit/datastore/ui/constants */ \"./js/googlesitekit/datastore/ui/constants.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../hooks/useViewContext */ \"./js/hooks/useViewContext.js\");\n\n/**\n * AdminMenuTooltip component.\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 * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\nfunction AdminMenuTooltip() {\n var viewContext = Object(_hooks_useViewContext__WEBPACK_IMPORTED_MODULE_5__[\"default\"])();\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useDispatch\"])(_googlesitekit_datastore_ui_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_UI\"]),\n setValue = _useDispatch.setValue;\n var _useSelect = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_ui_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_UI\"]).getValue('admin-menu-tooltip') || {\n isTooltipVisible: false\n };\n }),\n _useSelect$isTooltipV = _useSelect.isTooltipVisible,\n isTooltipVisible = _useSelect$isTooltipV === void 0 ? false : _useSelect$isTooltipV,\n _useSelect$rehideAdmi = _useSelect.rehideAdminMenu,\n rehideAdminMenu = _useSelect$rehideAdmi === void 0 ? false : _useSelect$rehideAdmi,\n _useSelect$rehideAdmi2 = _useSelect.rehideAdminSubMenu,\n rehideAdminSubMenu = _useSelect$rehideAdmi2 === void 0 ? false : _useSelect$rehideAdmi2,\n tooltipSlug = _useSelect.tooltipSlug,\n title = _useSelect.title,\n content = _useSelect.content,\n dismissLabel = _useSelect.dismissLabel;\n var handleViewTooltip = function handleViewTooltip() {\n Object(_util__WEBPACK_IMPORTED_MODULE_4__[\"trackEvent\"])(\"\".concat(viewContext, \"_\").concat(tooltipSlug), 'tooltip_view');\n };\n var handleDismissTooltip = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function () {\n // If the WordPress admin menu was closed, re-close it.\n if (rehideAdminMenu) {\n var isAdminMenuOpen = document.querySelector('#adminmenu').offsetHeight > 0;\n if (isAdminMenuOpen) {\n var _document$getElementB;\n (_document$getElementB = document.getElementById('wp-admin-bar-menu-toggle')) === null || _document$getElementB === void
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/AdminMenuTooltip/index.js":
|
|||
|
|
/*!*************************************************!*\
|
|||
|
|
!*** ./js/components/AdminMenuTooltip/index.js ***!
|
|||
|
|
\*************************************************/
|
|||
|
|
/*! exports provided: useShowTooltip, AdminMenuTooltip */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _useShowTooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useShowTooltip */ \"./js/components/AdminMenuTooltip/useShowTooltip.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"useShowTooltip\", function() { return _useShowTooltip__WEBPACK_IMPORTED_MODULE_0__[\"useShowTooltip\"]; });\n\n/* harmony import */ var _AdminMenuTooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AdminMenuTooltip */ \"./js/components/AdminMenuTooltip/AdminMenuTooltip.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"AdminMenuTooltip\", function() { return _AdminMenuTooltip__WEBPACK_IMPORTED_MODULE_1__[\"AdminMenuTooltip\"]; });\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0FkbWluTWVudVRvb2x0aXAvaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9jb21wb25lbnRzL0FkbWluTWVudVRvb2x0aXAvaW5kZXguanM/MzhhYyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3VzZVNob3dUb29sdGlwJztcbmV4cG9ydCAqIGZyb20gJy4vQWRtaW5NZW51VG9vbHRpcCc7XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/components/AdminMenuTooltip/index.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/AdminMenuTooltip/useShowTooltip.js":
|
|||
|
|
/*!**********************************************************!*\
|
|||
|
|
!*** ./js/components/AdminMenuTooltip/useShowTooltip.js ***!
|
|||
|
|
\**********************************************************/
|
|||
|
|
/*! exports provided: useShowTooltip */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useShowTooltip\", function() { return useShowTooltip; });\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 _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\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 _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_ui_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../googlesitekit/datastore/ui/constants */ \"./js/googlesitekit/datastore/ui/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_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\n\n\nfunction useShowTooltip(tooltipSettings) {\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useDispatch\"])(_googlesitekit_datastore_ui_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_UI\"]),\n setValue = _useDispatch.setValue;\n var hasMinimumWordPress62 = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_SITE\"]).hasMinimumWordPressVersion('6.2');\n });\n var hasMinimumWordPress64 = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_SITE\"]).hasMinim
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/Badge.js":
|
|||
|
|
/*!********************************!*\
|
|||
|
|
!*** ./js/components/Badge.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 _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"../node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n/**\n * Badge component.\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\nvar Badge = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"forwardRef\"])(function (_ref, ref) {\n var label = _ref.label,\n className = _ref.className,\n _ref$hasLeftSpacing = _ref.hasLeftSpacing,\n hasLeftSpacing = _ref$hasLeftSpacing === void 0 ? false : _ref$hasLeftSpacing,\n rest = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref, [\"label\", \"className\", \"hasLeftSpacing\"]);\n return /*#__PURE__*/React.createElement(\"span\", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n ref: ref\n }, rest, {\n className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('googlesitekit-badge', className, {\n 'googlesitekit-badge--has-left-spacing': hasLeftSpacing\n })\n }), label);\n});\nBadge.displayName = 'Badge';\nBadge.propTypes = {\n label: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string.isRequired,\n hasLeftSpacing: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Badge);\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0JhZGdlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9CYWRnZS5qcz8zN2ZlIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQmFkZ2UgY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICp
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0NoYW5nZUFycm93LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9DaGFuZ2VBcnJvdy5qcz9iNjAwIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5pbXBvcnQgY2xhc3NuYW1lcyBmcm9tICdjbGFzc25hbWVzJztcblxuZnVuY3Rpb24gQ2hhbmdlQXJyb3coIHsgZGlyZWN0aW9uLCBpbnZlcnRDb2xvciwgd2lkdGgsIGhlaWdodCB9ICkge1xuXHRyZXR1cm4gKFxuXHRcdDxzdmdcblx0XHRcdGNsYXNzTmFtZT17IGNsYXNzbmFtZXMoXG5cdFx0XHRcdCdnb29nbGVzaXRla2l0LWNoYW5nZS1hcnJvdycsXG5cdFx0XHRcdGBnb29nbGVzaXRla2l0LWNoYW5nZS1hcnJvdy0tJHsgZGlyZWN0aW9uIH1gLFxuXHRcdFx0XHR7ICdnb29nbGVzaXRla2l0LWNoYW5nZS1hcnJvdy0taW52ZXJ0ZWQtY29sb3InOiBpbnZlcnRDb2xvciB9XG5cdFx0XHQpIH1cblx0XHRcdHdpZHRoPXsgd2lkdGggfVxuXHRcdFx0aGVpZ2h0PXsgaGVpZ2h0IH1cblx0XHRcdHZpZXdCb3g9XCIwIDAgMTAgMTBcIlxuXHRcdFx0ZmlsbD1cIm5vbmVcIlxuXHRcdFx0eG1sbnM9XCJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Z1wiXG5cdFx0PlxuXHRcdFx0PHBhdGhcblx0XHRcdFx0ZD1cIk01LjYyNSAxMEw1LjYyNSAyLjM3NUw5LjEyNSA1Ljg3NUwxMCA1TDUgLTEuNzY1NTVlLTA3TC0yLjcwNTVlLTA3IDVMMC44NzUgNS44NzVMNC4zNzUgMi4zNzVMNC4zNzUgMTBMNS42MjUgMTBaXCJcblx0XHRcdFx0ZmlsbD1cImN1cnJlbnRDb2xvclwiXG5cdFx0XHQvPlxuXHRcdDwvc3ZnPlxuXHQpO1xufVxuXG5DaGFuZ2VBcnJvdy5wcm9wVHlwZXMgPSB7XG5cdGRpcmVjdGlvbjogUHJvcFR5cGVzLnN0cmluZyxcblx0aW52ZXJ0Q29sb3I6IFByb3BUeXBlcy5ib29sLFxuXHR3aWR0aDogUHJvcFR5cGVzLm51bWJlcixcblx0aGVpZ2h0OiBQcm9wVHlwZXMubnVtYmVyLFxufTtcblxuQ2hhbmdlQXJyb3cuZGVmYXVsdFByb3BzID0ge1xuXHRkaXJlY3Rpb246ICd1cCcsXG5cdGludmVydENvbG9yOiBmYWxzZSxcblx0d2lkdGg6IDksXG5cdGhlaWdodDogOSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IENoYW5nZUFycm93O1xuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQUE7
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/ChangeBadge.js":
|
|||
|
|
/*!**************************************!*\
|
|||
|
|
!*** ./js/components/ChangeBadge.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return ChangeBadge; });\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 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/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ \"./js/util/index.js\");\n\n/**\n * ChangeBadge component.\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\nfunction ChangeBadge(props) {\n var previousValue = props.previousValue,\n currentValue = props.currentValue,\n isAbsolute = props.isAbsolute;\n var change = isAbsolute ? currentValue - previousValue : Object(_util__WEBPACK_IMPORTED_MODULE_3__[\"calculateChange\"])(previousValue, currentValue);\n var isNegative = change < 0;\n var isZero = change === 0;\n\n // Do not display the change badge if the change value can't be calculated.\n if (change === null) {\n return null;\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('googlesitekit-change-badge', {\n 'googlesitekit-change-badge--negative': isNegative,\n 'googlesitekit-change-badge--zero': isZero\n })\n }, Object(_util__WEBPACK_IMPORTED_MODULE_3__[\"numFmt\"])(change, {\n style: 'percent',\n signDisplay: 'exceptZero',\n maximumFractionDigits: 1\n }));\n}\nChangeBadge.propTypes = {\n isAbsolute: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,\n previousValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,\n currentValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0NoYW5nZUJhZGdlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9DaGFuZ2VCYWRnZS5qcz9lNzU4Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ2hhbmdlQmFkZ2UgY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjMgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIG
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/DataBlock/Change.js":
|
|||
|
|
/*!*******************************************!*\
|
|||
|
|
!*** ./js/components/DataBlock/Change.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/* 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/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n/* harmony import */ var _ChangeArrow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ChangeArrow */ \"./js/components/ChangeArrow.js\");\n\n/**\n * Change component.\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 * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\nfunction Change(_ref) {\n var change = _ref.change,\n changeDataUnit = _ref.changeDataUnit,\n period = _ref.period,\n invertChangeColor = _ref.invertChangeColor;\n var changeFormatted = change;\n\n // If changeDataUnit is given, try using it as currency first, otherwise add it as suffix.\n if (changeDataUnit) {\n if (changeDataUnit === '%') {\n // Format percentage change with only 1 digit instead of the usual 2.\n changeFormatted = Object(_util__WEBPACK_IMPORTED_MODULE_4__[\"numFmt\"])(change, {\n style: 'percent',\n signDisplay: 'never',\n maximumFractionDigits: 1\n });\n } else {\n changeFormatted = Object(_util__WEBPACK_IMPORTED_MODULE_4__[\"numFmt\"])(change, changeDataUnit);\n }\n }\n\n // If period is given (requires %s placeholder), add it.\n if (period) {\n changeFormatted = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"sprintf\"])(period, changeFormatted);\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('googlesitekit-data-block__change', {\n 'googlesitekit-data-block__change--no-change': !change\n })\n }, !!change && /*#__PURE__*/React.createElement(\"span\", {\n className: \"googlesitekit-data-block__arrow\"\n }, /*#__PURE__*/React.createElement(_ChangeArrow__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n direction: 0 < parseFloat(change) ? 'up' : 'down',\n invertColor: invertChangeColor\n })), /*#__PURE__*/React.createElement(\"span\", {\n className: \"googlesitekit-data-block__value\"\n }, changeFormatted));\n}\nChange.propTypes = {\n change: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number]),\n changeD
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/DataBlock/Sparkline.js":
|
|||
|
|
/*!**********************************************!*\
|
|||
|
|
!*** ./js/components/DataBlock/Sparkline.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\n/**\n * Sparkline component.\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 * WordPress dependencies\n */\n\nfunction Sparkline(_ref) {\n var sparkline = _ref.sparkline,\n invertChangeColor = _ref.invertChangeColor;\n // The `sparkline` prop is passed as a component, but if `invertChangeColor`\n // is set, we should pass that to `<Sparkline>`. In that case, we clone\n // the element and add the prop.\n var sparklineComponent = sparkline;\n if (sparklineComponent && invertChangeColor) {\n sparklineComponent = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"cloneElement\"])(sparkline, {\n invertChangeColor: invertChangeColor\n });\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-data-block__sparkline\"\n }, sparklineComponent);\n}\nSparkline.propTypes = {\n sparkline: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.element,\n invertChangeColor: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Sparkline);\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0RhdGFCbG9jay9TcGFya2xpbmUuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9jb21wb25lbnRzL0RhdGFCbG9jay9TcGFya2xpbmUuanM/NjdiOCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFNwYXJrbGluZSBjb21wb25lbnQuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMyBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKipcbiAqIEV4dGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgUHJvcFR5cGVzIGZyb20gJ3Byb3AtdHlwZXMnO1xuXG4vKipcbiAqIFdvcmRQcmVzcyBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHsgY2xvbmVFbGVtZW50IH0gZnJvbSAnQHdvcmRwcmVzcy9lbGVtZW50JztcblxuZnVuY3Rpb24gU3BhcmtsaW5lKCB7IHNwYXJrbGluZSwgaW52ZXJ0Q2hhbmdlQ29sb3IgfSApIHtcblx0Ly8gVGhlIGBzcGFya2xpbmVgIHByb3AgaXMgcGFzc2VkIGFzIGEgY29tcG9uZW50LCBidXQgaWYgYGludmVydENoYW5nZUNvbG9yYFxuXHQvLyBpcyBzZXQsIHdlIHNob3VsZCBwYXNzIHRoYXQgdG8gYDxTcGFya2xpbmU+YC4gSW4gd
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/DataBlock/index.js":
|
|||
|
|
/*!******************************************!*\
|
|||
|
|
!*** ./js/components/DataBlock/index.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/* harmony import */ var _GatheringDataNotice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../GatheringDataNotice */ \"./js/components/GatheringDataNotice.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n/* harmony import */ var _Sparkline__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Sparkline */ \"./js/components/DataBlock/Sparkline.js\");\n/* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Badge */ \"./js/components/Badge.js\");\n/* harmony import */ var _Change__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Change */ \"./js/components/DataBlock/Change.js\");\n/* harmony import */ var _SourceLink__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../SourceLink */ \"./js/components/SourceLink.js\");\n\n/**\n * DataBlock component.\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/* eslint complexity: [ \"error\", 16 ] */\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\nfunction DataBlock(_ref) {\n var _ref$stat = _ref.stat,\n stat = _ref$stat === void 0 ? null : _ref$stat,\n _ref$className = _ref.className,\n className = _ref$className === void 0 ? '' : _ref$className,\n _ref$title = _ref.title,\n title = _ref$title === void 0 ? '' : _ref$title,\n _ref$datapoint = _ref.datapoint,\n datapoint = _ref$datapoint === void 0 ? null : _ref$datapoint,\n _ref$datapointUnit = _ref.datapointUnit,\n datapointUnit = _ref$datapointUnit === void 0 ? '' : _ref$datapointUnit,\n _ref$change = _ref.change,\n change = _ref$change === void 0 ? null : _ref$change,\n _ref$changeDataUnit = _ref.changeDataUnit,\n changeDataUnit = _ref$changeDataUnit === void 0 ? '' : _ref$changeDataUnit,\n _ref$context = _ref.context,\n context = _ref$context === void 0 ? 'default' : _ref$context,\n _ref$period = _ref.period,\n period = _ref$period === void 0 ? '' : _ref$period,\n _ref$selected = _ref.selected,\n selected = _ref$selected === void 0 ? false : _ref$selected,\n source = _ref.source,\n sparkline = _ref.sparkline,\n _ref$handleStatSelect = _ref.handleStatSelection,\n handleStatSelection = _ref$handleStatSelect === void 0 ? null : _ref$handleStatSelect,\n _ref$invertChangeColo = _ref.invertChangeColor,\n invertChangeColor = _ref$invertChangeColo === void 0 ? false : _ref$invertChangeColo,\n _ref$gatheringData = _ref.gatheringData,\n gatheringData = _ref$gatheringData === void 0 ? false
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/DataBlockGroup.js":
|
|||
|
|
/*!*****************************************!*\
|
|||
|
|
!*** ./js/components/DataBlockGroup.js ***!
|
|||
|
|
\*****************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global, React) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return DataBlockGroup; });\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 react_use__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-use */ \"../node_modules/react-use/esm/index.js\");\n/* harmony import */ var _hooks_useDebounce__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../hooks/useDebounce */ \"./js/hooks/useDebounce.js\");\n\n/**\n * DataBlockGroup component.\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 * WordPress dependencies\n */\n\n\nfunction DataBlockGroup(_ref) {\n var className = _ref.className,\n children = _ref.children;\n var ref = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])();\n var adjustFontSize = function adjustFontSize() {\n var _ref$current, _blocks$, _global, _global$getComputedSt;\n var blocks = ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.querySelectorAll('.googlesitekit-data-block');\n if (!blocks) {\n return;\n }\n var firstDataPoint = (_blocks$ = blocks[0]) === null || _blocks$ === void 0 ? void 0 : _blocks$.querySelector('.googlesitekit-data-block__datapoint');\n if (!firstDataPoint) {\n return;\n }\n\n // Reset font sizes, so on screen rotation/resize the font size\n // can be re-calculated.\n setFontSizes(blocks, '');\n\n // Set the default value to the current font size of the blocks.\n var originalSize = parseInt((_global = global) === null || _global === void 0 ? void 0 : (_global$getComputedSt = _global.getComputedStyle(firstDataPoint)) === null || _global$getComputedSt === void 0 ? void 0 : _global$getComputedSt.fontSize, 10);\n var adjustedSize = originalSize;\n\n // Loop through the blocks to determine the smallest size needed to fit\n // if any of the blocks are outside their container.\n blocks.forEach(function (block) {\n var _global2, _global2$getComputedS, _dataPoint$parentElem;\n var dataPoint = block.querySelector('.googlesitekit-data-block__datapoint');\n if (!dataPoint) {\n return;\n }\n var fontSize = parseInt((_global2 = global) === null || _global2 === void 0 ? void 0 : (_global2$getComputedS = _global2.getComputedStyle(dataPoint)) === null || _global2$getComputedS === void 0 ? void 0 : _global2$getComputedS.fontSize, 10);\n var parentWidth = dataPoint === null || dataPoint === void 0 ? void 0 : (_dataPoint$parentElem = dataPoint.parentElement) === null || _dataPoint$parentElem === void 0 ? void 0 : _dataPoint$parentElem.offsetWidth;\n\n // If the block value overflows the parent container, we want to keep\n // decrementing the font size by 1 until it fits the container,\n // so we can find the optimal font size. And it should't go below minimal value\n // which is 14px.\n if (dataPoint.scrollWidth > parentWidth && fontSize > 14) {\n while (dataPoint.scrollWidth > parentWidth && fontSize > 14) {\n fontSize -= 1;\n dataPoint.style.fontSize = \"\".concat(fontSize, \"px\");\n }\n adjustedSize = f
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/DisplaySetting.js":
|
|||
|
|
/*!*****************************************!*\
|
|||
|
|
!*** ./js/components/DisplaySetting.js ***!
|
|||
|
|
\*****************************************/
|
|||
|
|
/*! exports provided: BLANK_SPACE, default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BLANK_SPACE\", function() { return BLANK_SPACE; });\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);\n/**\n * DisplaySetting component.\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\nvar BLANK_SPACE = \"\\xA0\";\nfunction DisplaySetting(_ref) {\n var value = _ref.value;\n return value || BLANK_SPACE;\n}\nDisplaySetting.propTypes = {\n value: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number])\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (DisplaySetting);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0Rpc3BsYXlTZXR0aW5nLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9EaXNwbGF5U2V0dGluZy5qcz83MDQ0Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRGlzcGxheVNldHRpbmcgY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcblxuZXhwb3J0IGNvbnN0IEJMQU5LX1NQQUNFID0gJ1xcdTAwQTAnO1xuXG5mdW5jdGlvbiBEaXNwbGF5U2V0dGluZyggeyB2YWx1ZSB9ICkge1xuXHRyZXR1cm4gdmFsdWUgfHwgQkxBTktfU1BBQ0U7XG59XG5cbkRpc3BsYXlTZXR0aW5nLnByb3BUeXBlcyA9IHtcblx0dmFsdWU6IFByb3BUeXBlcy5vbmVPZlR5cGUoIFtcblx0XHRQcm9wVHlwZXMuc3RyaW5nLFxuXHRcdFByb3BUeXBlcy5ib29sLFxuXHRcdFByb3BUeXBlcy5udW1iZXIsXG5cdF0gKSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IERpc3BsYXlTZXR0aW5nO1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFFQTtBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFLQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/components/DisplaySetting.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/ErrorNotice.js":
|
|||
|
|
/*!**************************************!*\
|
|||
|
|
!*** ./js/components/ErrorNotice.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return ErrorNotice; });\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 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 _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__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 googlesitekit_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _util_errors__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/errors */ \"./js/util/errors.js\");\n/* harmony import */ var _ErrorText__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ErrorText */ \"./js/components/ErrorText.js\");\n\n/**\n * ErrorNotice component.\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 * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\nfunction ErrorNotice(_ref) {\n var _error$data;\n var error = _ref.error,\n _ref$hasButton = _ref.hasButton,\n hasButton = _ref$hasButton === void 0 ? false : _ref$hasButton,\n storeName = _ref.storeName,\n _ref$message = _ref.message,\n message = _ref$message === void 0 ? error.message : _ref$message,\n _ref$noPrefix = _ref.noPrefix,\n noPrefix = _ref$noPrefix === void 0 ? false : _ref$noPrefix,\n skipRetryMessage = _ref.skipRetryMessage,\n Icon = _ref.Icon;\n var dispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useDispatch\"])();\n var selectorData = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n if (!storeName) {\n return null;\n }\n return select(storeName).getSelectorDataForError(error);\n });\n var handleRetry = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function () {\n dispatch(selectorData.storeName).invalidateResolution(selectorData.name, selectorData.args);\n }, [dispatch, selectorData]);\n\n // Do not display if there is no error, or if the error is for missing scopes.\n if (!error || Object(_util_errors__WEBPACK_IMPORTED_MODULE_5__[\"isPermissionScopeError\"])(error)) {\n return null;\n }\n var shouldDisplayRetry = hasButton && Object(_util_errors__WEBPACK_IMPORTED
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/ErrorText.js":
|
|||
|
|
/*!************************************!*\
|
|||
|
|
!*** ./js/components/ErrorText.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 _wordpress_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/url */ \"../node_modules/@wordpress/url/build-module/index.js\");\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/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ \"./js/util/index.js\");\n\n/**\n * Error Text component.\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 * Internal dependencies\n */\n\nfunction ErrorText(_ref) {\n var message = _ref.message,\n reconnectURL = _ref.reconnectURL,\n _ref$noPrefix = _ref.noPrefix,\n noPrefix = _ref$noPrefix === void 0 ? false : _ref$noPrefix;\n if (!message) {\n return null;\n }\n var error = message;\n if (!noPrefix) {\n error = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"sprintf\"])(/* translators: %s: Error message */\n Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"__\"])('Error: %s', 'google-site-kit'), message);\n }\n if (reconnectURL && Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_2__[\"isURL\"])(reconnectURL)) {\n error = error + ' ' + Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"sprintf\"])(/* translators: %s: Reconnect URL */\n Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"__\"])('To fix this, <a href=\"%s\">redo the plugin setup</a>.', 'google-site-kit'), reconnectURL);\n }\n var sanitizeArgs = {\n ALLOWED_TAGS: ['a'],\n ALLOWED_ATTR: ['href']\n };\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-error-text\"\n }, /*#__PURE__*/React.createElement(\"p\", {\n dangerouslySetInnerHTML: Object(_util__WEBPACK_IMPORTED_MODULE_4__[\"sanitizeHTML\"])(error, sanitizeArgs)\n }));\n}\nErrorText.propTypes = {\n message: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,\n reconnectURL: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n noPrefix: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool\n};\nErrorText.defaultProps = {\n reconnectURL: '',\n noPrefix: false\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (ErrorText);\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0Vycm9yVGV4dC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2NvbXBvbmVudHMvRXJyb3JUZXh0LmpzPzFiZjIiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBFcnJvciBUZXh0IGNvbXBvbmVudC5cbiA
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/GatheringDataNotice.js":
|
|||
|
|
/*!**********************************************!*\
|
|||
|
|
!*** ./js/components/GatheringDataNotice.js ***!
|
|||
|
|
\**********************************************/
|
|||
|
|
/*! exports provided: NOTICE_STYLE, default */
|
|||
|
|
/***/ (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__, \"NOTICE_STYLE\", function() { return NOTICE_STYLE; });\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_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);\n\n\n/**\n * GatheringDataNotice component.\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 * External dependencies\n */\n\n\n\n/**\n * WordPress dependencies\n */\n\nvar NOTICE_STYLE = {\n DEFAULT: 'default',\n OVERLAY: 'overlay',\n SMALL: 'small',\n SMALL_OVERLAY: 'small-overlay',\n LARGE: 'large'\n};\nfunction GatheringDataNotice(_ref) {\n var style = _ref.style;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('googlesitekit-gathering-data-notice', _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, \"googlesitekit-gathering-data-notice--has-style-\".concat(style), !!style))\n }, /*#__PURE__*/React.createElement(\"span\", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__[\"__\"])('Gathering data…', 'google-site-kit')));\n}\nGatheringDataNotice.propTypes = {\n style: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(Object.values(NOTICE_STYLE))\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (GatheringDataNotice);\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0dhdGhlcmluZ0RhdGFOb3RpY2UuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9jb21wb25lbnRzL0dhdGhlcmluZ0RhdGFOb3RpY2UuanM/MzZlZiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdhdGhlcmluZ0RhdGFOb3RpY2UgY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjIgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/GenericErrorHandlerActions.js":
|
|||
|
|
/*!*****************************************************!*\
|
|||
|
|
!*** ./js/components/GenericErrorHandlerActions.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return GenericErrorHandlerActions; });\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 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 _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Link */ \"./js/components/Link.js\");\n/* harmony import */ var _ReportErrorButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ReportErrorButton */ \"./js/components/ReportErrorButton/index.js\");\n\n/**\n * GenericErrorHandlerActions component.\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 * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\nfunction GenericErrorHandlerActions(_ref) {\n var message = _ref.message,\n componentStack = _ref.componentStack;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-generic-error-handler-actions\"\n }, /*#__PURE__*/React.createElement(_ReportErrorButton__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n message: message,\n componentStack: componentStack\n }), /*#__PURE__*/React.createElement(_Link__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n href: \"https://wordpress.org/support/plugin/google-site-kit/\",\n external: true\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('Report this problem', 'google-site-kit')));\n}\nGenericErrorHandlerActions.propTypes = {\n message: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n componentStack: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0dlbmVyaWNFcnJvckhhbmRsZXJBY3Rpb25zLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9HZW5lcmljRXJyb3JIYW5kbGVyQWN0aW9ucy5qcz81ZDY3Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJpY0Vycm9ySGFuZGxlckFjdGlvbnMgY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjMgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGV
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/GoogleChart/DateMarker.js":
|
|||
|
|
/*!*************************************************!*\
|
|||
|
|
!*** ./js/components/GoogleChart/DateMarker.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return DateMarker; });\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 _wordpress_icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/icons */ \"../node_modules/@wordpress/icons/build-module/index.js\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../hooks/useViewContext */ \"./js/hooks/useViewContext.js\");\n/* harmony import */ var _hooks_useDebounce__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../hooks/useDebounce */ \"./js/hooks/useDebounce.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n\n/**\n * GoogleChart DateMarker component.\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/**\n * Internal dependencies\n */\n\n\n\n\nfunction DateMarker(_ref) {\n var id = _ref.id,\n text = _ref.text;\n var viewContext = Object(_hooks_useViewContext__WEBPACK_IMPORTED_MODULE_3__[\"default\"])();\n var eventCategory = \"\".concat(viewContext, \"_ga4-data-collection-line\");\n Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function () {\n Object(_util__WEBPACK_IMPORTED_MODULE_5__[\"trackEvent\"])(eventCategory, 'chart_line_view');\n }, [eventCategory]);\n var trackTooltipOpen = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function () {\n Object(_util__WEBPACK_IMPORTED_MODULE_5__[\"trackEvent\"])(eventCategory, 'chart_tooltip_view');\n }, [eventCategory]);\n var handleTooltipOpen = Object(_hooks_useDebounce__WEBPACK_IMPORTED_MODULE_4__[\"useDebounce\"])(trackTooltipOpen, 5000, {\n leading: true,\n trailing: false\n });\n return /*#__PURE__*/React.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, /*#__PURE__*/React.createElement(\"div\", {\n id: \"googlesitekit-chart__date-marker-line--\".concat(id),\n className: \"googlesitekit-chart__date-marker-line\"\n }), text && /*#__PURE__*/React.createElement(\"div\", {\n id: \"googlesitekit-chart__date-marker-tooltip--\".concat(id),\n className: \"googlesitekit-chart__date-marker-tooltip\"\n }, /*#__PURE__*/React.createElement(googlesitekit_components__WEBPACK_IMPORTED_MODULE_2__[\"Tooltip\"], {\n title: text,\n onOpen: handleTooltipOpen\n }, /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(_wordpress_icons__WEBPACK_IMPORTED_MODULE_1__[\"Icon\"], {\n fill: \"currentColor\",\n icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_1__[\"info\"],\n size: 18\n })))));\n}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\")))//# sourceURL=[module]\n/
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/GoogleChart/index.js":
|
|||
|
|
/*!********************************************!*\
|
|||
|
|
!*** ./js/components/GoogleChart/index.js ***!
|
|||
|
|
\********************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(React, global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return GoogleChart; });\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_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_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"../node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"../node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var _util_initialize_google_global__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/initialize-google-global */ \"./js/util/initialize-google-global.js\");\n/* harmony import */ var _util_initialize_google_global__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_util_initialize_google_global__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var react_google_charts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-google-charts */ \"../node_modules/react-google-charts/dist/index.esm.js\");\n/* harmony import */ var react_use__WE
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/GoogleChart/utils.js":
|
|||
|
|
/*!********************************************!*\
|
|||
|
|
!*** ./js/components/GoogleChart/utils.js ***!
|
|||
|
|
\********************************************/
|
|||
|
|
/*! exports provided: getFilteredChartData, getLoadingDimensions, getCombinedChartEvents, getChartOptions, getCurrencyPattern */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getFilteredChartData\", function() { return getFilteredChartData; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getLoadingDimensions\", function() { return getLoadingDimensions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getCombinedChartEvents\", function() { return getCombinedChartEvents; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getChartOptions\", function() { return getChartOptions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getCurrencyPattern\", function() { return getCurrencyPattern; });\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 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 _hooks_useBreakpoint__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../hooks/useBreakpoint */ \"./js/hooks/useBreakpoint.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n\n/**\n * Google Chart utilities.\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\n\n/**\n * Returns the Google chart data, filtered by selected stats if present.\n *\n * @since 1.93.0\n *\n * @param {Array|undefined} data Chart data.\n * @param {Array|undefined} selectedStats The columns that should be displayed for the data set.\n * @return {Object} The chart data, filtered by selected stats if present.\n */\nvar getFilteredChartData = function getFilteredChartData(data, selectedStats) {\n if (!(selectedStats === null || selectedStats === void 0 ? void 0 : selectedStats.length)) {\n return data;\n }\n\n // Ensure we don't filter out columns that aren't data, but are things like\n // tooltips or other content.\n var nonDataColumns = [];\n if (data === null || data === void 0 ? void 0 : data.length) {\n nonDataColumns = data[0].reduce(function (acc, row, rowIndex) {\n return (row === null || row === void 0 ? void 0 : row.role) ? [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(acc), [rowIndex]) : acc;\n }, []);\n }\n return data.map(function (row) {\n return row.filter(function (_columnValue, columnIndex) {\n return columnIndex === 0 || selectedStats.includes(columnIndex - 1) || nonDataColumns.includes(columnIndex - 1);\n });\n });\n};\n\n/**\n * Returns the optimal height and width for a preview element.\n *\n * @since 1.93.0\n *\n * @param {string|undefined} loadingHeight Preview height.\n * @param {string|undefined} height Chart height.\n * @param {string|undefined} loadingWidth Preview width.\n * @param {string|
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/GoogleChartErrorHandler/index.js":
|
|||
|
|
/*!********************************************************!*\
|
|||
|
|
!*** ./js/components/GoogleChartErrorHandler/index.js ***!
|
|||
|
|
\********************************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global, React) {/* 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/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"../node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"../node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"../node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! clipboard-copy */ \"../node_modules/clipboard-copy/index.js\");\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(clipboard_copy__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _notifications_CTA__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../notifications/CTA */ \"./js/components/notifications/CTA.js\");\n/* harmony import */ var _GenericErrorHandlerActions__WEBPACK_IMPORTED_MODULE_11__ = __web
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/IconWrapper.js":
|
|||
|
|
/*!**************************************!*\
|
|||
|
|
!*** ./js/components/IconWrapper.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return IconWrapper; });\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 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\n/**\n * IconWrapper component.\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\nfunction IconWrapper(_ref) {\n var children = _ref.children,\n marginLeft = _ref.marginLeft,\n marginRight = _ref.marginRight;\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"googlesitekit-icon-wrapper\",\n style: {\n marginLeft: marginLeft,\n marginRight: marginRight\n }\n }, children);\n}\nIconWrapper.propTypes = {\n children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,\n marginLeft: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,\n marginRight: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0ljb25XcmFwcGVyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9JY29uV3JhcHBlci5qcz82NzBlIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogSWNvbldyYXBwZXIgY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjMgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuLyoqXG4gKiBFeHRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gSWNvbldyYXBwZXIoIHsgY2hpbGRyZW4sIG1hcmdpbkxlZnQsIG1hcmdpblJpZ2h0IH0gKSB7XG5cdHJldHVybiAoXG5cdFx0PHNwYW5cblx0XHRcdGNsYXNzTmFtZT1cImdvb2dsZXNpdGVraXQtaWNvbi13cmFwcGVyXCJcblx0XHRcdHN0eWxlPXsge1xuXHRcdFx0XHRtYXJnaW5MZWZ0LFxuXHRcdFx0XHRtYXJnaW5SaWdodCxcblx0XHRcdH0gfVxuXHRcdD5cblx0XHRcdHsgY2hpbGRyZW4gfVxuXHRcdDwvc3Bhbj5cblx0KTtcbn1cblxuSWNvbldyYXBwZXIucHJvcFR5cGVzID0ge1xuXHRjaGlsZHJlbjogUHJvcFR5cGVzLm5vZGUuaXNSZXF1aXJlZCxcblx0bWFyZ2luTGVmdDogUHJvcFR5cGVzLm51bWJlcixcblx0bWFyZ2luUmlnaHQ6IFByb3BUeXBlcy5udW1iZXIsXG59O1xuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FB
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/InfoTooltip.js":
|
|||
|
|
/*!**************************************!*\
|
|||
|
|
!*** ./js/components/InfoTooltip.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return InfoTooltip; });\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 classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _svg_icons_info_green_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../svg/icons/info-green.svg */ \"./svg/icons/info-green.svg\");\n\n/**\n * InfoTooltip component.\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\nfunction InfoTooltip(_ref) {\n var onOpen = _ref.onOpen,\n title = _ref.title,\n tooltipClassName = _ref.tooltipClassName;\n if (!title) {\n return null;\n }\n return /*#__PURE__*/React.createElement(googlesitekit_components__WEBPACK_IMPORTED_MODULE_3__[\"Tooltip\"], {\n className: \"googlesitekit-info-tooltip\",\n tooltipClassName: classnames__WEBPACK_IMPORTED_MODULE_1___default()('googlesitekit-info-tooltip__content', tooltipClassName),\n title: title,\n placement: \"top\",\n enterTouchDelay: 0,\n leaveTouchDelay: 5000,\n interactive: true,\n onOpen: onOpen\n }, /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(_svg_icons_info_green_svg__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n width: \"16\",\n height: \"16\"\n })));\n}\nInfoTooltip.propTypes = {\n onOpen: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,\n title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element]),\n tooltipClassName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0luZm9Ub29sdGlwLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9JbmZvVG9vbHRpcC5qcz9kMjFhIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogSW5mb1Rvb2x0aXAgY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjMgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gK
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/JoyrideTooltip.js":
|
|||
|
|
/*!*****************************************!*\
|
|||
|
|
!*** ./js/components/JoyrideTooltip.js ***!
|
|||
|
|
\*****************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global, React) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return JoyrideTooltip; });\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_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"../node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react_joyride__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-joyride */ \"../node_modules/react-joyride/dist/index.mjs\");\n/* harmony import */ var react_use__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-use */ \"../node_modules/react-use/esm/index.js\");\n/* harmony import */ var _TourTooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TourTooltip */ \"./js/components/TourTooltip.js\");\n/* harmony import */ var _Portal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Portal */ \"./js/components/Portal.js\");\n/* harmony import */ var _TourTooltips__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TourTooltips */ \"./js/components/TourTooltips.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_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 * JoyRideTooltip component.\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 * External dependencies\n */\n\n\n\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\nfunction JoyrideTooltip(props)
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/ChangeMetricsLink.js":
|
|||
|
|
/*!*******************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/ChangeMetricsLink.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return ChangeMetricsLink; });\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 _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 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 _googlesitekit_datastore_ui_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../googlesitekit/datastore/ui/constants */ \"./js/googlesitekit/datastore/ui/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constants */ \"./js/components/KeyMetrics/constants.js\");\n/* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Link */ \"./js/components/Link.js\");\n/* harmony import */ var _svg_icons_pencil_alt_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../svg/icons/pencil-alt.svg */ \"./svg/icons/pencil-alt.svg\");\n/* harmony import */ var _SetupCompletedSurveyTrigger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./SetupCompletedSurveyTrigger */ \"./js/components/KeyMetrics/SetupCompletedSurveyTrigger.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../hooks/useViewContext */ \"./js/hooks/useViewContext.js\");\n/* harmony import */ var _hooks_useChangeMetricsFeatureTourEffect__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./hooks/useChangeMetricsFeatureTourEffect */ \"./js/components/KeyMetrics/hooks/useChangeMetricsFeatureTourEffect.js\");\n\n/**\n * Key Metrics ChangeMetricsLink component.\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/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\n\n\nfunction ChangeMetricsLink() {\n var keyMetrics = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_4__[\"CORE_USER\"]).getKeyMetrics();\n });\n var viewContext = Object(_hooks_useViewContext__WEBPACK_IMPORTED_MODULE_10__[\"default\"])();\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"useDispatch\"])(_googlesitekit_datastore_ui_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_UI\"]),\n setValue = _useDispatch.setValue;\n var openMetricsSelectionPanel = Object(_wordpress_e
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/ChipTabGroup/Chip.js":
|
|||
|
|
/*!*******************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/ChipTabGroup/Chip.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Chip; });\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_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../constants */ \"./js/components/KeyMetrics/constants.js\");\n/* harmony import */ var _svg_icons_check_2_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../svg/icons/check-2.svg */ \"./svg/icons/check-2.svg\");\n/* harmony import */ var _svg_icons_star_fill_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../svg/icons/star-fill.svg */ \"./svg/icons/star-fill.svg\");\n/* harmony import */ var _components_Null__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../components/Null */ \"./js/components/Null.js\");\n\nvar _icons;\n\n/**\n * Chip component.\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 icons = (_icons = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_icons, _constants__WEBPACK_IMPORTED_MODULE_5__[\"KEY_METRICS_GROUP_CURRENT\"].SLUG, _svg_icons_check_2_svg__WEBPACK_IMPORTED_MODULE_6__[\"default\"]), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_icons, _constants__WEBPACK_IMPORTED_MODULE_5__[\"KEY_METRICS_GROUP_SUGGESTED\"].SLUG, _svg_icons_star_fill_svg__WEBPACK_IMPORTED_MODULE_7__[\"default\"]), _icons);\nfunction Chip(_ref) {\n var slug = _ref.slug,\n label = _ref.label,\n isActive = _ref.isActive,\n _onClick = _ref.onClick,\n _ref$hasNewBadge = _ref.hasNewBadge,\n hasNewBadge = _ref$hasNewBadge === void 0 ? false : _ref$hasNewBadge,\n _ref$selectedCount = _ref.selectedCount,\n selectedCount = _ref$selectedCount === void 0 ? 0 : _ref$selectedCount;\n var Icon = icons[slu
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/ChipTabGroup/index.js":
|
|||
|
|
/*!********************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/ChipTabGroup/index.js ***!
|
|||
|
|
\********************************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global, React) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return ChipTabGroup; });\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__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_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"../node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var react_use__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-use */ \"../node_modules/react-use/esm/index.js\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/compose */ \"../node_modules/@wordpress/compose/build-module/index.js\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../constants */ \"./js/components/KeyMetrics/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../googlesitekit/datastore/forms/constants */ \"./js/googlesitekit/datastore/forms/constants.js\");\n/* harmony import */ var _modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../modules/analytics-4/datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_ui_constants__WEBPACK_IMP
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/GetHelpLink.js":
|
|||
|
|
/*!*************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/GetHelpLink.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return GetHelpLink; });\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 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 _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Link */ \"./js/components/Link.js\");\n\n/**\n * GetHelpLink component.\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 * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\nfunction GetHelpLink(_ref) {\n var linkURL = _ref.linkURL;\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createInterpolateElement\"])(/* translators: %s: get help text. */\n Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('Trouble getting access? <HelpLink />', 'google-site-kit'), {\n HelpLink: /*#__PURE__*/React.createElement(_Link__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n href: linkURL,\n external: true,\n hideExternalIndicator: true\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('Get help', 'google-site-kit'))\n });\n}\nGetHelpLink.propTypes = {\n linkURL: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3MvR2V0SGVscExpbmsuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3MvR2V0SGVscExpbmsuanM/OTVmOCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdldEhlbHBMaW5rIGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIzIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5cbi8qKlxuI
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/InsufficientPermissionsError.js":
|
|||
|
|
/*!******************************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/InsufficientPermissionsError.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return InsufficientPermissionsError; });\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 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 _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__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 _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Link */ \"./js/components/Link.js\");\n/* harmony import */ var _MetricTileError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./MetricTileError */ \"./js/components/KeyMetrics/MetricTileError.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../hooks/useViewContext */ \"./js/hooks/useViewContext.js\");\n\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 * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\nfunction InsufficientPermissionsError(props) {\n var moduleSlug = props.moduleSlug,\n onRetry = props.onRetry,\n infoTooltip = props.infoTooltip,\n headerText = props.headerText;\n var viewContext = Object(_hooks_useViewContext__WEBPACK_IMPORTED_MODULE_8__[\"default\"])();\n var helpLink = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_4__[\"CORE_SITE\"]).getErrorTroubleshootingLinkURL({\n code: \"\".concat(moduleSlug, \"_insufficient_permissions\")\n });\n });\n Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function () {\n Object(_util__WEBPACK_IMPORTED_MODULE_7__[\"trackEventOnce\"])(\"\".concat(viewContext, \"_kmw\"), 'insufficient_permissions_error');\n }, [viewContext]);\n var retry = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function () {\n Object(_util__WEBPACK_IMPORTED_MODULE_7__[\"trackEvent\"])(\"\".concat(viewContext, \"_kmw\"), 'insufficient_permissions_error_retry');\n onRetry === null || onRetry === void 0 ? void 0 : onRetry
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/KeyMetricsCTAContent.js":
|
|||
|
|
/*!**********************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/KeyMetricsCTAContent.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return KeyMetricsCTAContent; });\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 _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\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/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react_use__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-use */ \"../node_modules/react-use/esm/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 _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _hooks_useBreakpoint__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../hooks/useBreakpoint */ \"./js/hooks/useBreakpoint.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../hooks/useViewContext */ \"./js/hooks/useViewContext.js\");\n/* harmony import */ var _material_components__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../material-components */ \"./js/material-components/index.js\");\n/* harmony import */ var _KeyMetricsSetupDesktopSVG__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./KeyMetricsSetupDesktopSVG */ \"./js/components/KeyMetrics/KeyMetricsSetupDesktopSVG.js\");\n/* harmony import */ var _KeyMetricsSetupSmallDesktopSVG__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./KeyMetricsSetupSmallDesktopSVG */ \"./js/components/KeyMetrics/KeyMetricsSetupSmallDesktopSVG.js\");\n/* harmony import */ var _KeyMetricsSetupTabletSVG__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./KeyMetricsSetupTabletSVG */ \"./js/components/KeyMetrics/KeyMetricsSetupTabletSVG.js\");\n/* harmony import */ var _KeyMetricsSetupMobileSVG__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./KeyMetricsSetupMobileSVG */ \"./js/components/KeyMetrics/KeyMetricsSetupMobileSVG.js\");\n/* harmony import */ var _hooks_useWindowSize__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../hooks/useWindowSize */ \"./js/hooks/useWindowSize.js\");\n\n\n/**\n * KeyMetricsCTAContent component.\n *\n * Site Kit by Google, Copyright 2023 Google LLC\n *\n * Licensed under the Apac
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/KeyMetricsCTAFooter.js":
|
|||
|
|
/*!*********************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/KeyMetricsCTAFooter.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return KeyMetricsCTAFooter; });\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 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 _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _material_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../material-components */ \"./js/material-components/index.js\");\n/* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Link */ \"./js/components/Link.js\");\n\n/**\n * KeyMetricsCTAFooter component.\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 * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\nfunction KeyMetricsCTAFooter(_ref) {\n var _ref$onActionClick = _ref.onActionClick,\n onActionClick = _ref$onActionClick === void 0 ? function () {} : _ref$onActionClick,\n showDismiss = _ref.showDismiss;\n return /*#__PURE__*/React.createElement(_material_components__WEBPACK_IMPORTED_MODULE_3__[\"Row\"], {\n className: \"googlesitekit-widget-key-metrics-footer\"\n }, /*#__PURE__*/React.createElement(_material_components__WEBPACK_IMPORTED_MODULE_3__[\"Cell\"], {\n size: 12,\n className: \"googlesitekit-widget-key-metrics-footer__cta-wrapper\"\n }, !showDismiss && /*#__PURE__*/React.createElement(\"span\", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('Interested in specific metrics?', 'google-site-kit')), /*#__PURE__*/React.createElement(_Link__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n onClick: onActionClick\n }, showDismiss ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('Maybe later', 'google-site-kit') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('Select your own metrics', 'google-site-kit'))));\n}\nKeyMetricsCTAFooter.propTypes = {\n onActionClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3MvS2V5TWV0cmljc0NUQUZvb3Rlci5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2NvbXBvbmVudHMvS2V5TWV0cmljcy9LZXlNZXRyaWNzQ1RBRm9vdGVyLmpzP2FkY2UiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBLZXlNZXRyaWNzQ1RBRm9vdGVyIGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIzIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZ
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/KeyMetricsSetupCTARenderedEffect.js":
|
|||
|
|
/*!**********************************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/KeyMetricsSetupCTARenderedEffect.js ***!
|
|||
|
|
\**********************************************************************/
|
|||
|
|
/*! exports provided: UI_KEY_KEY_METRICS_SETUP_CTA_RENDERED, default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"UI_KEY_KEY_METRICS_SETUP_CTA_RENDERED\", function() { return UI_KEY_KEY_METRICS_SETUP_CTA_RENDERED; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return KeyMetricsSetupCTARenderedEffect; });\n/* harmony import */ var react_use__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-use */ \"../node_modules/react-use/esm/index.js\");\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 _googlesitekit_datastore_ui_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../googlesitekit/datastore/ui/constants */ \"./js/googlesitekit/datastore/ui/constants.js\");\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 UI_KEY_KEY_METRICS_SETUP_CTA_RENDERED = 'KEY_METRICS_SETUP_CTA_RENDERED';\nfunction KeyMetricsSetupCTARenderedEffect() {\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useDispatch\"])(_googlesitekit_datastore_ui_constants__WEBPACK_IMPORTED_MODULE_2__[\"CORE_UI\"]),\n setValue = _useDispatch.setValue;\n Object(react_use__WEBPACK_IMPORTED_MODULE_0__[\"useEffectOnce\"])(function () {\n setValue(UI_KEY_KEY_METRICS_SETUP_CTA_RENDERED, true);\n });\n return null;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3MvS2V5TWV0cmljc1NldHVwQ1RBUmVuZGVyZWRFZmZlY3QuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3MvS2V5TWV0cmljc1NldHVwQ1RBUmVuZGVyZWRFZmZlY3QuanM/ZjM1YSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjMgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuLyoqXG4gKiBFeHRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHsgdXNlRWZmZWN0T25jZSB9IGZyb20gJ3JlYWN0LXVzZSc7XG5cbi8qKlxuICogSW50ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IHVzZURpc3BhdGNoIH0gZnJvbSAnZ29vZ2xlc2l0ZWtpdC1kYXRhJztcbmltcG9ydCB7IENPUkVfVUkgfSBmcm9tICcuLi8uLi9nb29nbGVzaXRla2l0L2RhdGFzdG9yZS91aS9jb25zdGFudHMnO1xuXG5leHBvcnQgY29uc3QgVUlfS0VZX0tFWV9NRVRSSUNTX1NFVFVQX0NUQV9SRU5ERVJFRCA9XG5cdCdLRVlfTUVUUklDU19TRVRVUF9DVEFfUkVOREVSRUQnO1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBLZXlNZXRyaWNzU2V0dXBDVEFSZW5kZXJlZEVmZmVjdCgpIHtcblx0Y29uc3QgeyBzZXRWYWx1ZSB9ID0gdXNlRGlzcGF0Y2goIENPUkVfVUkgKTtcblxuXHR1c2VFZm
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/KeyMetricsSetupCTAWidget.js":
|
|||
|
|
/*!**************************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/KeyMetricsSetupCTAWidget.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 _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 _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__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 googlesitekit_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _KeyMetricsCTAContent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./KeyMetricsCTAContent */ \"./js/components/KeyMetrics/KeyMetricsCTAContent.js\");\n/* harmony import */ var _KeyMetricsCTAFooter__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./KeyMetricsCTAFooter */ \"./js/components/KeyMetrics/KeyMetricsCTAFooter.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./constants */ \"./js/components/KeyMetrics/constants.js\");\n/* harmony import */ var _util_when_active__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../util/when-active */ \"./js/util/when-active.js\");\n/* harmony import */ var _AdminMenuTooltip__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../AdminMenuTooltip */ \"./js/components/AdminMenuTooltip/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../hooks/useViewContext */ \"./js/hooks/useViewContext.js\");\n/* harmony import */ var _hooks_useDisplayCTAWidget__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./hooks/useDisplayCTAWidget *
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/KeyMetricsSetupDesktopSVG.js":
|
|||
|
|
/*!***************************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/KeyMetricsSetupDesktopSVG.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return KeyMetricsSetupDesktopSVG; });\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 _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 _components_PreviewBlock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../components/PreviewBlock */ \"./js/components/PreviewBlock.js\");\n/* harmony import */ var _components_MediaErrorHandler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/MediaErrorHandler */ \"./js/components/MediaErrorHandler/index.js\");\n\n/**\n * KeyMetricsSetupDesktopSVG component.\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 * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\nvar LazyDesktopGraphicSVG = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"lazy\"])(function () {\n return __webpack_require__.e(/*! import() */ 5).then(__webpack_require__.bind(null, /*! ../../../svg/graphics/key-metrics-setup-cta-desktop.svg */ \"./svg/graphics/key-metrics-setup-cta-desktop.svg\"));\n});\nfunction KeyMetricsSetupDesktopSVG() {\n return /*#__PURE__*/React.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"Suspense\"], {\n fallback: /*#__PURE__*/React.createElement(_components_PreviewBlock__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n width: \"100%\",\n height: \"235px\"\n })\n }, /*#__PURE__*/React.createElement(_components_MediaErrorHandler__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n errorMessage: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Failed to load graphic', 'google-site-kit')\n }, /*#__PURE__*/React.createElement(LazyDesktopGraphicSVG, null)));\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3MvS2V5TWV0cmljc1NldHVwRGVza3RvcFNWRy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2NvbXBvbmVudHMvS2V5TWV0cmljcy9LZXlNZXRyaWNzU2V0dXBEZXNrdG9wU1ZHLmpzPzQwMTEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBLZXlNZXRyaWNzU2V0dXBEZXNrdG9wU1ZHIGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDI0IEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGh
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/KeyMetricsSetupMobileSVG.js":
|
|||
|
|
/*!**************************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/KeyMetricsSetupMobileSVG.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return KeyMetricsSetupMobileSVG; });\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 _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 _components_PreviewBlock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../components/PreviewBlock */ \"./js/components/PreviewBlock.js\");\n/* harmony import */ var _components_MediaErrorHandler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/MediaErrorHandler */ \"./js/components/MediaErrorHandler/index.js\");\n\n/**\n * KeyMetricsSetupMobileSVG component.\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 * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\nvar LazyMobileGraphicSVG = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"lazy\"])(function () {\n return __webpack_require__.e(/*! import() */ 6).then(__webpack_require__.bind(null, /*! ../../../svg/graphics/key-metrics-setup-cta-mobile.svg */ \"./svg/graphics/key-metrics-setup-cta-mobile.svg\"));\n});\nfunction KeyMetricsSetupMobileSVG() {\n return /*#__PURE__*/React.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"Suspense\"], {\n fallback: /*#__PURE__*/React.createElement(_components_PreviewBlock__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n width: \"100%\",\n height: \"235px\"\n })\n }, /*#__PURE__*/React.createElement(_components_MediaErrorHandler__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n errorMessage: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Failed to load graphic', 'google-site-kit')\n }, /*#__PURE__*/React.createElement(LazyMobileGraphicSVG, null)));\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3MvS2V5TWV0cmljc1NldHVwTW9iaWxlU1ZHLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9LZXlNZXRyaWNzL0tleU1ldHJpY3NTZXR1cE1vYmlsZVNWRy5qcz80ODFlIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogS2V5TWV0cmljc1NldHVwTW9iaWxlU1ZHIGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDI0IEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZm
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/KeyMetricsSetupSmallDesktopSVG.js":
|
|||
|
|
/*!********************************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/KeyMetricsSetupSmallDesktopSVG.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return KeyMetricsSetupSmallDesktopSVG; });\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 _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 _components_PreviewBlock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../components/PreviewBlock */ \"./js/components/PreviewBlock.js\");\n/* harmony import */ var _components_MediaErrorHandler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/MediaErrorHandler */ \"./js/components/MediaErrorHandler/index.js\");\n\n/**\n * KeyMetricsSetupSmallDesktopSVG component.\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 * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\nvar LazyDesktopGraphicSVG = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"lazy\"])(function () {\n return __webpack_require__.e(/*! import() */ 7).then(__webpack_require__.bind(null, /*! ../../../svg/graphics/key-metrics-setup-cta-small-desktop.svg */ \"./svg/graphics/key-metrics-setup-cta-small-desktop.svg\"));\n});\nfunction KeyMetricsSetupSmallDesktopSVG() {\n return /*#__PURE__*/React.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"Suspense\"], {\n fallback: /*#__PURE__*/React.createElement(_components_PreviewBlock__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n width: \"100%\",\n height: \"235px\"\n })\n }, /*#__PURE__*/React.createElement(_components_MediaErrorHandler__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n errorMessage: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Failed to load graphic', 'google-site-kit')\n }, /*#__PURE__*/React.createElement(LazyDesktopGraphicSVG, null)));\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3MvS2V5TWV0cmljc1NldHVwU21hbGxEZXNrdG9wU1ZHLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9LZXlNZXRyaWNzL0tleU1ldHJpY3NTZXR1cFNtYWxsRGVza3RvcFNWRy5qcz83NjNkIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogS2V5TWV0cmljc1NldHVwU21hbGxEZXNrdG9wU1ZHIGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDI0IEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3Ig
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/KeyMetricsSetupTabletSVG.js":
|
|||
|
|
/*!**************************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/KeyMetricsSetupTabletSVG.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return KeyMetricsSetupTabletSVG; });\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 _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 _components_PreviewBlock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../components/PreviewBlock */ \"./js/components/PreviewBlock.js\");\n/* harmony import */ var _components_MediaErrorHandler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/MediaErrorHandler */ \"./js/components/MediaErrorHandler/index.js\");\n\n/**\n * KeyMetricsSetupTabletSVG component.\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 * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\nvar LazyTabletGraphicSVG = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"lazy\"])(function () {\n return __webpack_require__.e(/*! import() */ 8).then(__webpack_require__.bind(null, /*! ../../../svg/graphics/key-metrics-setup-cta-tablet.svg */ \"./svg/graphics/key-metrics-setup-cta-tablet.svg\"));\n});\nfunction KeyMetricsSetupTabletSVG() {\n return /*#__PURE__*/React.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"Suspense\"], {\n fallback: /*#__PURE__*/React.createElement(_components_PreviewBlock__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n width: \"100%\",\n height: \"235px\"\n })\n }, /*#__PURE__*/React.createElement(_components_MediaErrorHandler__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n errorMessage: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Failed to load graphic', 'google-site-kit')\n }, /*#__PURE__*/React.createElement(LazyTabletGraphicSVG, null)));\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3MvS2V5TWV0cmljc1NldHVwVGFibGV0U1ZHLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9LZXlNZXRyaWNzL0tleU1ldHJpY3NTZXR1cFRhYmxldFNWRy5qcz9mNWNmIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogS2V5TWV0cmljc1NldHVwVGFibGV0U1ZHIGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDI0IEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZm
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/MetricTileError.js":
|
|||
|
|
/*!*****************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/MetricTileError.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return MetricTileError; });\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 _notifications_CTA__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../notifications/CTA */ \"./js/components/notifications/CTA.js\");\n/* harmony import */ var _InfoTooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../InfoTooltip */ \"./js/components/InfoTooltip.js\");\n\n/**\n * MetricTileError component.\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 * Internal dependencies\n */\n\n\nfunction MetricTileError(props) {\n var children = props.children,\n headerText = props.headerText,\n infoTooltip = props.infoTooltip,\n title = props.title;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-km-widget-tile--error\"\n }, /*#__PURE__*/React.createElement(_notifications_CTA__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n title: title,\n headerText: headerText,\n headerContent: infoTooltip && /*#__PURE__*/React.createElement(_InfoTooltip__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n title: infoTooltip\n }),\n description: \"\",\n error: true\n }, children));\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3MvTWV0cmljVGlsZUVycm9yLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9LZXlNZXRyaWNzL01ldHJpY1RpbGVFcnJvci5qcz8zNTliIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogTWV0cmljVGlsZUVycm9yIGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIzIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qKlxuICogSW50ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCBDVEEgZnJvbSAnLi4vbm90aWZpY2F0aW9ucy9DVEEnO1xuaW1wb3J0IEluZm9Ub29sdGlwIGZyb20gJy4uL0luZm9Ub29sdGlwJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gTWV0cmljVGlsZUVycm9yKCBwcm9wcyApIHtcblx0Y29uc3QgeyBjaGlsZHJlbiwgaGVhZGVyVGV4dCwgaW5mb1Rvb2x0aXAsIHRpdGxlIH0gPSBwcm9wcztcblxuXHRyZXR1cm4gKFxuXHRcdDxkaXYgY2xhc3NOYW1lPVwiZ29vZ2xlc2l0ZWtpdC1rbS13aWRnZXQtdGlsZS0tZXJyb3JcIj5cblx0XHRcdDxDVEFcblx0XHRcdFx0dGl0bGU9eyB0aXRsZSB9XG5cdFx0XHRcdGhlYWRlclRleHQ9eyBoZWFkZXJUZXh0IH1cblx0XHRcdFx0aGVhZGVyQ29udGVudD17XG5cdFx0XHRcdFx0aW5mb1Rvb2x0aXAgJiYgPEluZm9Ub29sdGlwIHRpdGxlPXsgaW5mb1Rvb2x0aXAgfSAvPlxuXHRcdFx0XHR9XG5cd
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/MetricTileHeader.js":
|
|||
|
|
/*!******************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/MetricTileHeader.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return MetricTileHeader; });\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 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 _InfoTooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../InfoTooltip */ \"./js/components/InfoTooltip.js\");\n/* harmony import */ var _VisuallyHidden__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../VisuallyHidden */ \"./js/components/VisuallyHidden.js\");\n\n/**\n * MetricTileHeader component.\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\nfunction MetricTileHeader(_ref) {\n var title = _ref.title,\n infoTooltip = _ref.infoTooltip,\n loading = _ref.loading;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-km-widget-tile__title-container\"\n }, /*#__PURE__*/React.createElement(\"h3\", {\n className: \"googlesitekit-km-widget-tile__title\"\n }, title), loading ? /*#__PURE__*/React.createElement(_VisuallyHidden__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null, /*#__PURE__*/React.createElement(_InfoTooltip__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n title: infoTooltip\n })) : /*#__PURE__*/React.createElement(_InfoTooltip__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n title: infoTooltip\n }));\n}\nMetricTileHeader.propTypes = {\n title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n infoTooltip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.element]),\n loading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3MvTWV0cmljVGlsZUhlYWRlci5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2NvbXBvbmVudHMvS2V5TWV0cmljcy9NZXRyaWNUaWxlSGVhZGVyLmpzP2ZmODciXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBNZXRyaWNUaWxlSGVhZGVyIGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIzIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5z
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/MetricTileLoader.js":
|
|||
|
|
/*!******************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/MetricTileLoader.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return MetricTileLoader; });\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 _PreviewBlock__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../PreviewBlock */ \"./js/components/PreviewBlock.js\");\n\n/**\n * Loader for `MetricTile` components.\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 * Internal dependencies\n */\n\nfunction MetricTileLoader() {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-km-widget-tile__loading\"\n }, /*#__PURE__*/React.createElement(_PreviewBlock__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n className: \"googlesitekit-km-widget-tile__loading-header\",\n width: \"100%\",\n height: \"14px\"\n }), /*#__PURE__*/React.createElement(_PreviewBlock__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n className: \"googlesitekit-km-widget-tile__loading-body\",\n width: \"100%\",\n height: \"53px\"\n }));\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3MvTWV0cmljVGlsZUxvYWRlci5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2NvbXBvbmVudHMvS2V5TWV0cmljcy9NZXRyaWNUaWxlTG9hZGVyLmpzPzU4ZTUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBMb2FkZXIgZm9yIGBNZXRyaWNUaWxlYCBjb21wb25lbnRzLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjMgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuLyoqXG4gKiBJbnRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IFByZXZpZXdCbG9jayBmcm9tICcuLi9QcmV2aWV3QmxvY2snO1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBNZXRyaWNUaWxlTG9hZGVyKCkge1xuXHRyZXR1cm4gKFxuXHRcdDxkaXYgY2xhc3NOYW1lPVwiZ29vZ2xlc2l0ZWtpdC1rbS13aWRnZXQtdGlsZV9fbG9hZGluZ1wiPlxuXHRcdFx0PFByZXZpZXdCbG9ja1xuXHRcdFx0XHRjbGFzc05hbWU9XCJnb29nbGVzaXRla2l0LWttLXdpZGdldC10aWxlX19sb2FkaW5nLWhlYWRlclwiXG5cdFx0XHRcdHdpZHRoPVwiMTAwJVwiXG5cdFx0XHRcdGhlaWdodD1cIjE0cHhcIlxuXHRcdFx0Lz5cblx0XHRcdDxQcmV2aWV3QmxvY2tcblx0XHRcdFx0Y2xhc3NOYW1lPVwiZ29vZ2xlc2l0ZWtpdC1rbS13aWRnZXQtdGlsZV9fbG9hZGluZy1ib2R5XCJcblx0XHRcdFx0d2lkdGg9XCIxMDAlXCJcblx0XHRcdFx0aGVpZ2h0PVwiNTNweFwiXG5cdFx0XHQvPlxuXHRcdDwvZGl2PlxuXHQpO1xufVxuIl0sIm1hcHBpbmdzIjoiOzs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7Q
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/MetricTileNumeric.js":
|
|||
|
|
/*!*******************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/MetricTileNumeric.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return MetricTileNumeric; });\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"../node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n/* harmony import */ var _ChangeBadge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ChangeBadge */ \"./js/components/ChangeBadge.js\");\n/* harmony import */ var _MetricTileWrapper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./MetricTileWrapper */ \"./js/components/KeyMetrics/MetricTileWrapper.js\");\n\n\n\n/**\n * MetricTileNumeric component.\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\n\nfunction MetricTileNumeric(_ref) {\n var metricValue = _ref.metricValue,\n metricValueFormat = _ref.metricValueFormat,\n subText = _ref.subText,\n previousValue = _ref.previousValue,\n currentValue = _ref.currentValue,\n props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref, [\"metricValue\", \"metricValueFormat\", \"subText\", \"previousValue\", \"currentValue\"]);\n var formatOptions = Object(_util__WEBPACK_IMPORTED_MODULE_4__[\"expandNumFmtOptions\"])(metricValueFormat);\n return /*#__PURE__*/React.createElement(_MetricTileWrapper__WEBPACK_IMPORTED_MODULE_6__[\"default\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n className: \"googlesitekit-km-widget-tile--numeric\"\n }, props), /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-km-widget-tile__metric-container\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-km-widget-tile__metric\"\n }, Object(_util__WEBPACK_IMPORTED_MODULE_4__[\"numFmt\"])(metricValue, formatOptions)), /*#__PURE__*/React.createElement(\"p\", {\n className: \"googlesitekit-km-widget-tile__subtext\"\n }, subText)), /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-km-wid
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/MetricTileTable.js":
|
|||
|
|
/*!*****************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/MetricTileTable.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return MetricTileTable; });\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"../node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__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 classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _MetricTileWrapper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./MetricTileWrapper */ \"./js/components/KeyMetrics/MetricTileWrapper.js\");\n\n\n\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/**\n * Internal dependencies\n */\n\nfunction MetricTileTable(_ref) {\n var _ref$rows = _ref.rows,\n rows = _ref$rows === void 0 ? [] : _ref$rows,\n _ref$columns = _ref.columns,\n columns = _ref$columns === void 0 ? [] : _ref$columns,\n limit = _ref.limit,\n ZeroState = _ref.ZeroState,\n props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref, [\"rows\", \"columns\", \"limit\", \"ZeroState\"]);\n var tileBody = null;\n if ((rows === null || rows === void 0 ? void 0 : rows.length) > 0) {\n tileBody = rows.slice(0, limit || rows.length).map(function (row, rowIndex) {\n return /*#__PURE__*/React.createElement(\"div\", {\n key: rowIndex,\n className: \"googlesitekit-table__body-row\"\n }, columns.map(function (_ref2, colIndex) {\n var Component = _ref2.Component,\n field = _ref2.field,\n className = _ref2.className;\n var fieldValue = field !== undefined ? Object(lodash__WEBPACK_IMPORTED_MODULE_4__[\"get\"])(row, field) : undefined;\
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/MetricTileTablePlainText.js":
|
|||
|
|
/*!**************************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/MetricTileTablePlainText.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return MetricTileTablePlainText; });\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 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\n/**\n * MetricTileTablePlainText component.\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\nfunction MetricTileTablePlainText(_ref) {\n var content = _ref.content;\n return /*#__PURE__*/React.createElement(\"p\", {\n className: \"googlesitekit-km-widget-tile__table-plain-text\"\n }, content);\n}\nMetricTileTablePlainText.propTypes = {\n content: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3MvTWV0cmljVGlsZVRhYmxlUGxhaW5UZXh0LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9LZXlNZXRyaWNzL01ldHJpY1RpbGVUYWJsZVBsYWluVGV4dC5qcz83ODIxIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogTWV0cmljVGlsZVRhYmxlUGxhaW5UZXh0IGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIzIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIE1ldHJpY1RpbGVUYWJsZVBsYWluVGV4dCggeyBjb250ZW50IH0gKSB7XG5cdHJldHVybiAoXG5cdFx0PHAgY2xhc3NOYW1lPVwiZ29vZ2xlc2l0ZWtpdC1rbS13aWRnZXQtdGlsZV9fdGFibGUtcGxhaW4tdGV4dFwiPlxuXHRcdFx0eyBjb250ZW50IH1cblx0XHQ8L3A+XG5cdCk7XG59XG5cbk1ldHJpY1RpbGVUYWJsZVBsYWluVGV4dC5wcm9wVHlwZXMgPSB7XG5cdGNvbnRlbnQ6IFByb3BUeXBlcy5zdHJpbmcuaXNSZXF1aXJlZCxcbn07XG4iXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUlBO0FBRUE7QUFDQTtBQUNBO0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/components/KeyMetrics/MetricTileTablePlainText.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/MetricTileText.js":
|
|||
|
|
/*!****************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/MetricTileText.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return MetricTileText; });\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"../node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _ChangeBadge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ChangeBadge */ \"./js/components/ChangeBadge.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n/* harmony import */ var _MetricTileWrapper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./MetricTileWrapper */ \"./js/components/KeyMetrics/MetricTileWrapper.js\");\n\n\n\n/**\n * MetricTileText component.\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\n\nfunction MetricTileText(_ref) {\n var metricValue = _ref.metricValue,\n metricValueFormat = _ref.metricValueFormat,\n subText = _ref.subText,\n previousValue = _ref.previousValue,\n currentValue = _ref.currentValue,\n props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref, [\"metricValue\", \"metricValueFormat\", \"subText\", \"previousValue\", \"currentValue\"]);\n var formatOptions = Object(_util__WEBPACK_IMPORTED_MODULE_5__[\"expandNumFmtOptions\"])(metricValueFormat);\n return /*#__PURE__*/React.createElement(_MetricTileWrapper__WEBPACK_IMPORTED_MODULE_6__[\"default\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n className: \"googlesitekit-km-widget-tile--text\"\n }, props), /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-km-widget-tile__metric-container\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-km-widget-tile__metric\"\n }, metricValue), /*#__PURE__*/React.createElement(\"p\", {\n className: \"googlesitekit-km-widget-tile__subtext\"\n }, subText)), /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-km-widget-tile__metric-change-container\"\n }, /*#__PURE__*/React.createElement(_ChangeB
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/MetricTileWrapper.js":
|
|||
|
|
/*!*******************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/MetricTileWrapper.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return MetricTileWrapper; });\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 classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__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 prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _key_metrics_widgets__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./key-metrics-widgets */ \"./js/components/KeyMetrics/key-metrics-widgets.js\");\n/* harmony import */ var _GetHelpLink__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./GetHelpLink */ \"./js/components/KeyMetrics/GetHelpLink.js\");\n/* harmony import */ var _MetricTileLoader__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./MetricTileLoader */ \"./js/components/KeyMetrics/MetricTileLoader.js\");\n/* harmony import */ var _MetricTileError__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./MetricTileError */ \"./js/components/KeyMetrics/MetricTileError.js\");\n/* harmony import */ var _MetricTileHeader__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./MetricTileHeader */ \"./js/components/KeyMetrics/MetricTileHeader.js\");\n/* harmony import */ var _ReportErrorActions__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../ReportErrorActions */ \"./js/components/ReportErrorActions.js\");\n/* harmony import */ var _util_errors__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../util/errors */ \"./js/util/errors.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../hooks/useViewContext */ \"./js/hooks/useViewContext.js\");\n\n/**\n * MetricTileWrapper component.\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/**\n * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\n\nfunction MetricTileWrapper(props) {\n var _KEY_METRICS_WIDGETS$, _KEY_METRICS_WIDGETS$2, _KEY_METRICS_WIDGETS$3;\n var className = props.className,\n children = props.children,\n error = props.error,\n
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/MetricsSelectionPanel/MetricItem.js":
|
|||
|
|
/*!**********************************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/MetricsSelectionPanel/MetricItem.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return MetricItem; });\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_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 _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__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 _googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../googlesitekit/datastore/forms/constants */ \"./js/googlesitekit/datastore/forms/constants.js\");\n/* harmony import */ var _googlesitekit_widgets_datastore_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../googlesitekit/widgets/datastore/constants */ \"./js/googlesitekit/widgets/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../constants */ \"./js/components/KeyMetrics/constants.js\");\n/* harmony import */ var _SelectionPanel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../SelectionPanel */ \"./js/components/SelectionPanel/index.js\");\n\n\n\n/**\n * Key Metrics Selection Panel MetricItem\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 * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\nfunction MetricItem(_ref) {\n var slug = _ref.slug,\n
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/SetupCompletedSurveyTrigger.js":
|
|||
|
|
/*!*****************************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/SetupCompletedSurveyTrigger.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SetupCompletedSurveyTrigger; });\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 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 _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n/* harmony import */ var _surveys_SurveyViewTrigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../surveys/SurveyViewTrigger */ \"./js/components/surveys/SurveyViewTrigger.js\");\n\n/**\n * Key Metrics SetupCompletedSurveyTrigger component.\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\nfunction SetupCompletedSurveyTrigger() {\n var isKeyMetricsSetupCompleted = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_2__[\"CORE_SITE\"]).isKeyMetricsSetupCompleted();\n });\n var isKeyMetricsSetupCompletedBy = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_2__[\"CORE_SITE\"]).getKeyMetricsSetupCompletedBy();\n });\n var currentUserID = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_USER\"]).getID();\n });\n if (!isKeyMetricsSetupCompleted) {\n return null;\n }\n return /*#__PURE__*/React.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, /*#__PURE__*/React.createElement(_surveys_SurveyViewTrigger__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n triggerID: \"view_kmw\",\n ttl: _util__WEBPACK_IMPORTED_MODULE_4__[\"WEEK_IN_SECONDS\"]\n }), isKeyMetricsSetupCompletedBy === currentUserID && /*#__PURE__*/React.createElement(_surveys_SurveyViewTrigger__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n triggerID: \"view_kmw_setup_completed\",\n ttl: _util__WEBPACK_IMPORTED_MODULE_4__[\"WEEK_IN_SECONDS\"]\n }));\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3MvU2V0dXBDb21wbGV0ZWRTdXJ2ZXlUcmlnZ2
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/hooks/useChangeMetricsFeatureTourEffect.js":
|
|||
|
|
/*!*****************************************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/hooks/useChangeMetricsFeatureTourEffect.js ***!
|
|||
|
|
\*****************************************************************************/
|
|||
|
|
/*! exports provided: useChangeMetricsFeatureTourEffect */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useChangeMetricsFeatureTourEffect\", function() { return useChangeMetricsFeatureTourEffect; });\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 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 _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _feature_tours_shared_key_metrics__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../feature-tours/shared-key-metrics */ \"./js/feature-tours/shared-key-metrics.js\");\n/**\n * Change metrics feature tour hook.\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\n\n\n\n/**\n * Triggers on demand tour for shared key metrics if all conditions are met.\n *\n * @since 1.113.0\n *\n * @param {boolean} renderChangeMetricLink If metric link meets the conditions to render.\n */\nvar useChangeMetricsFeatureTourEffect = function useChangeMetricsFeatureTourEffect(renderChangeMetricLink) {\n var keyMetricsSetupCompletedBy = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_2__[\"CORE_SITE\"]).getKeyMetricsSetupCompletedBy();\n });\n var currentUserID = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_USER\"]).getID();\n });\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useDispatch\"])(_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_USER\"]),\n triggerOnDemandTour = _useDispatch.triggerOnDemandTour;\n var isUserEligibleForTour = Number.isInteger(keyMetricsSetupCompletedBy) && Number.isInteger(currentUserID) && keyMetricsSetupCompletedBy > 0 && currentUserID !== keyMetricsSetupCompletedBy;\n Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function () {\n if (renderChangeMetricLink && isUserEligibleForTour) {\n triggerOnDemandTour(_feature_tours_shared_key_metrics__WEBPACK_IMPORTED_MODULE_4__[\"default\"]);\n }\n }, [renderChangeMetricLink, isUserEligibleForTour, triggerOnDemandTour]);\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0tleU1ldHJpY3MvaG9va3MvdXNlQ2hhbmdlTWV0cmljc0ZlYXR1cmVUb3VyRWZmZWN0LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9LZXlNZXRyaWNzL2hvb2tzL3VzZUNoYW5nZU1ldHJpY3NGZWF0dXJlVG91ckVmZmVjdC5qcz9hMWY5Il0sInNv
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/hooks/useDisplayCTAWidget.js":
|
|||
|
|
/*!***************************************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/hooks/useDisplayCTAWidget.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 useDisplayCTAWidget; });\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_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ \"./js/components/KeyMetrics/constants.js\");\n/* harmony import */ var _modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../modules/analytics-4/datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _modules_search_console_datastore_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../modules/search-console/datastore/constants */ \"./js/modules/search-console/datastore/constants.js\");\n/**\n * Determines whether the CTA widget should be displayed.\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\n\n\n/**\n * Determines whether the CTA widget should be displayed.\n *\n * @since 1.140.0\n *\n * @return {boolean} Whether the CTA widget should be displayed.\n */\nfunction useDisplayCTAWidget() {\n return Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_0__[\"useSelect\"])(function (select) {\n var isDismissed = select(_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"CORE_USER\"]).isItemDismissed(_constants__WEBPACK_IMPORTED_MODULE_3__[\"KEY_METRICS_SETUP_CTA_WIDGET_SLUG\"]);\n var isDismissingItem = select(_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"CORE_USER\"]).isDismissingItem(_constants__WEBPACK_IMPORTED_MODULE_3__[\"KEY_METRICS_SETUP_CTA_WIDGET_SLUG\"]);\n\n // We call isGatheringData() within this hook for completeness as we do not want to rely\n // on it being called in other components. This selector makes report requests which, if they return\n // data, then the `data-available` transients are set. These transients are prefetched as a global on\n // the next page load.\n\n var searchConsoleDataAvailableOnLoad = isModuleDataAvailableOnLoad(select, 'search-console', _modules_search_console_datastore_constants__WEBPACK_IMPORTED_MODULE_5__[\"MODULES_SEARCH_CONSOLE\"]);\n var analyticsDataAvailableOnLoad = isModuleDataAvailableOnLoad(select, 'analytics-4', _modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"MODULES_ANALYTICS_4\"]);\n return isDismissed === false && isDismissingItem === false && searchConsoleDataAvailableOnLoad && analyticsDataAvailableOnLoad;\n }, []);\n}\nfunction isModuleDataAvailableOnLoad(select, slug, storeName) {\n if (select(_googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_1__[\"CORE_MODULES\
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/KeyMetrics/index.js":
|
|||
|
|
/*!*******************************************!*\
|
|||
|
|
!*** ./js/components/KeyMetrics/index.js ***!
|
|||
|
|
\*******************************************/
|
|||
|
|
/*! exports provided: ChangeMetricsLink, InsufficientPermissionsError, KeyMetricsSetupCTAWidget, MetricTileNumeric, MetricTileTable, MetricTileTablePlainText, MetricTileText, MetricTileWrapper, ChipTabGroup */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _ChangeMetricsLink__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ChangeMetricsLink */ \"./js/components/KeyMetrics/ChangeMetricsLink.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ChangeMetricsLink\", function() { return _ChangeMetricsLink__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _InsufficientPermissionsError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InsufficientPermissionsError */ \"./js/components/KeyMetrics/InsufficientPermissionsError.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"InsufficientPermissionsError\", function() { return _InsufficientPermissionsError__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _KeyMetricsSetupCTAWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./KeyMetricsSetupCTAWidget */ \"./js/components/KeyMetrics/KeyMetricsSetupCTAWidget.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"KeyMetricsSetupCTAWidget\", function() { return _KeyMetricsSetupCTAWidget__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _MetricTileNumeric__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MetricTileNumeric */ \"./js/components/KeyMetrics/MetricTileNumeric.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MetricTileNumeric\", function() { return _MetricTileNumeric__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _MetricTileTable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./MetricTileTable */ \"./js/components/KeyMetrics/MetricTileTable.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MetricTileTable\", function() { return _MetricTileTable__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n/* harmony import */ var _MetricTileTablePlainText__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./MetricTileTablePlainText */ \"./js/components/KeyMetrics/MetricTileTablePlainText.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MetricTileTablePlainText\", function() { return _MetricTileTablePlainText__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; });\n\n/* harmony import */ var _MetricTileText__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./MetricTileText */ \"./js/components/KeyMetrics/MetricTileText.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MetricTileText\", function() { return _MetricTileText__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; });\n\n/* harmony import */ var _MetricTileWrapper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./MetricTileWrapper */ \"./js/components/KeyMetrics/MetricTileWrapper.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MetricTileWrapper\", function() { return _MetricTileWrapper__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; });\n\n/* harmony import */ var _ChipTabGroup__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ChipTabGroup */ \"./js/components/KeyMetrics/ChipTabGroup/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ChipTabGroup\", function() { return _ChipTabGroup__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; });\n\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\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:ap
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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 _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../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 {Function} select Data store select function.\n * @param {boolean} isViewOnlyDashboard Whether the current dashboard is view only.\n * @return {boolean} Whether to display the widget.\n */\nfunction shouldDisplayWidgetWithAnalytics4AndAdSenseLinked(select, isViewOnlyDashboard) {\n if (!isViewOnlyDashboard) {\n return true;\n }\n if (isViewOnlyDashboard && select(_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
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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 _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../modules/analytics-4/datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\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 {Function} select Data store select function.\n * @param {boolean} isViewOnlyDashboard Whether the current dashboard is view only.\n * @param {string} slug Key metric widget slug.\n * @return {boolean} Whether to display the widget.\n */\nfunction shouldDisplayWidgetWithConversionEvent(select, isViewOnlyDashboard, slug) {\n return select(_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(_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/ZDg0MCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDT1JFX1VTRVIgfSBmcm9tICcuLi8uLi9nb29nbGVzaXRla2l0L2RhdGFzdG9yZS91c2VyL2NvbnN0YW50cyc7XG5pbXBvcnQgeyBNT0RVTEVTX0FOQUxZVElDU180IH0gZnJvbSAnLi4vLi4vbW9kdWxlcy9hbmFseXRpY3MtNC9kYXRhc3RvcmUvY29uc3RhbnRzJztcblxuLyoqXG4gKiBEZXRlcm1pbmVzIHdoZXRoZXIgdG8gZGlzcGxheSBhIHdpZGdldCB0aGF0IHJlcXVpcmVzIGNvbnZlcnNpb24gcmVwb3J0aW5nIGV2ZW50c1xuICogaW4gdGhlIGtleSBtZXRyaWNzIHNlbGVjdGlvbiBwYW5lbC5cbiAqXG4gKiBUaGlzIGZ1bmN0aW9uIGlzIGF0dGFjaGVkIHRvIHRoZSB3aWRnZXQgb2JqZWN0IHRoYXQgcmVxdWlyZXMgdGhlIGNvbnZlcnNpb24gcmVwb3J0aW5nIGV2ZW50cyBhbmRcbiAqIGhhcyB0aGUgYHJlcXVpcmVkQ29udmVyc2lvbkV2ZW50TmFtZWAgcHJvcGVydHkuXG4gKlxuICogQHNpbmNlIDEuMTM2LjBcbiAqIEBzaW5jZSAxLjEzNy4wIE1vdmVkIGZ1bmN0aW9uIHRvIGl0cyBvd24gZmlsZS5cbiAqXG4gKiBAcGFyYW0ge0Z1bmN0aW9ufSBzZWxlY3QgICAgICAgICAgICAgIERhdGEgc3RvcmUgc2VsZWN0IGZ1bmN0aW9uLlxuICogQHBhcmFtIHtib29sZWFufSAgaXNWaWV3T25seURhc2hib2FyZCBXaGV0aGVyIHRoZSBjdXJyZW50IGRhc2hib2FyZCBpcyB2aWV3IG9ubHkuXG4gKiBAcGFyYW0ge3N0cmluZ30gICBzbHVnICAgICAgICAgICAgICAgIEtleSBtZXRyaWMgd2lkZ2V0IHNsdWcuXG4gKiBAcmV0dXJuIHtib29sZWFufSBXaGV0aGVyIHRvIGRpc3BsYXkgdGhlIHdpZGdldC5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIHNob3VsZERpc3BsYXlXaWRnZXRXaXRoQ29udmVyc2lvbkV2ZW50KFxuXHRzZWxlY3QsXG5cdGlzVmlld09ubHlEYXNoYm9hcmQsXG5cdHNsdWdcbikge1xuXHRyZXR1cm4gKFxuXHRcdHNlbGVjdCggTU9EVUxFU19BTkFMWVRJQ1NfNCApLmhhc0NvbnZlcnNpb25SZXBvcnRpbmdFdmVudHMoXG5cdFx0XHQvLyBUaGlzIHByb3BlcnR5IGlzIGF2YWlsYWJsZSB0byB0aGUgd2lkZ2V0IG9iamVjdCB0aGF0IHJlcXVpcmVzIHRoZVxuXHRcdFx0Ly8gY29udmVyc2lvbiByZXBvcnRpbmcgZXZlbnRzLCB3aGVyZSB0aGUgZnVuY3Rpb24gaXMgYXR0YWNoZWQuXG5cdFx0XHR0aGlzLnJlcXVpcmVkQ29udmVyc2lvbkV2ZW50TmFtZVxuXHRcdCkgfHwgc2VsZWN0KCBDT1JFX1VTRVIgKS5pc0tleU1ldHJpY0FjdGl2ZSggc2x1ZyApXG5cdCk7XG59XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFLQTtBQUVBO0FBQ0E7QUFDQTtBQUdBIiwic
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/Link.js":
|
|||
|
|
/*!*******************************!*\
|
|||
|
|
!*** ./js/components/Link.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 _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"../node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-router-dom */ \"../node_modules/react-router-dom/esm/react-router-dom.js\");\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/* harmony import */ var _svg_icons_arrow_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../svg/icons/arrow.svg */ \"./svg/icons/arrow.svg\");\n/* harmony import */ var _svg_icons_arrow_inverse_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../svg/icons/arrow-inverse.svg */ \"./svg/icons/arrow-inverse.svg\");\n/* harmony import */ var _svg_icons_back_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../svg/icons/back.svg */ \"./svg/icons/back.svg\");\n/* harmony import */ var _svg_icons_external_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../svg/icons/external.svg */ \"./svg/icons/external.svg\");\n/* harmony import */ var _IconWrapper__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./IconWrapper */ \"./js/components/IconWrapper.js\");\n\n\n\n/**\n * Link component.\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\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\nvar BUTTON = 'BUTTON';\nvar BUTTON_DISABLED = 'BUTTON_DISABLED';\nvar EXTERNAL_LINK = 'EXTERNAL_LINK';\nvar LINK = 'LINK';\nvar ROUTER_LINK = 'ROUTER_LINK';\nvar Link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"forwardRef\"])(fun
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/MediaErrorHandler/index.js":
|
|||
|
|
/*!**************************************************!*\
|
|||
|
|
!*** ./js/components/MediaErrorHandler/index.js ***!
|
|||
|
|
\**************************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global, React) {/* 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/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"../node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"../node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _ErrorText__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../ErrorText */ \"./js/components/ErrorText.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/NewBadge.js":
|
|||
|
|
/*!***********************************!*\
|
|||
|
|
!*** ./js/components/NewBadge.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/* 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/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Badge */ \"./js/components/Badge.js\");\n/* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Link */ \"./js/components/Link.js\");\n\n/**\n * NewBadge component.\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 * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\nfunction NewBadge(_ref) {\n var tooltipTitle = _ref.tooltipTitle,\n learnMoreLink = _ref.learnMoreLink,\n forceOpen = _ref.forceOpen,\n hasLeftSpacing = _ref.hasLeftSpacing,\n hasNoSpacing = _ref.hasNoSpacing,\n _ref$onLearnMoreClick = _ref.onLearnMoreClick,\n onLearnMoreClick = _ref$onLearnMoreClick === void 0 ? function () {} : _ref$onLearnMoreClick;\n var badgeComponent = /*#__PURE__*/React.createElement(_Badge__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('googlesitekit-new-badge', {\n 'googlesitekit-new-badge--has-no-spacing': hasNoSpacing\n }),\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"__\"])('New', 'google-site-kit'),\n hasLeftSpacing: hasLeftSpacing\n });\n if (!tooltipTitle) {\n return badgeComponent;\n }\n return /*#__PURE__*/React.createElement(googlesitekit_components__WEBPACK_IMPORTED_MODULE_4__[\"Tooltip\"], {\n tooltipClassName: \"googlesitekit-new-badge__tooltip\",\n title: /*#__PURE__*/React.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, tooltipTitle, /*#__PURE__*/React.createElement(\"br\", null), /*#__PURE__*/React.createElement(_Link__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n href: learnMoreLink,\n onClick: onLearnMoreClick,\n external: true,\n hideExternalIndicator: true\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"__\"])('Learn more', 'google-site-kit'))),\n
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/Null.js":
|
|||
|
|
/*!*******************************!*\
|
|||
|
|
!*** ./js/components/Null.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 Null; });\n/**\n * Null component.\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\nfunction Null() {\n return null;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL051bGwuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9jb21wb25lbnRzL051bGwuanM/YmIyMSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIE51bGwgY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gTnVsbCgpIHtcblx0cmV0dXJuIG51bGw7XG59XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/components/Null.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/Portal.js":
|
|||
|
|
/*!*********************************!*\
|
|||
|
|
!*** ./js/components/Portal.js ***!
|
|||
|
|
\*********************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\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 react_use__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-use */ \"../node_modules/react-use/esm/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n\n/**\n * Portal component.\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\nfunction Portal(_ref) {\n var children = _ref.children,\n slug = _ref.slug;\n // Using state as we need `el` to not change when the component re-renders\n var _useState = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"useState\"])(document.createElement('div')),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 1),\n el = _useState2[0];\n Object(react_use__WEBPACK_IMPORTED_MODULE_1__[\"useEffectOnce\"])(function () {\n if (slug) {\n el.classList.add(\"googlesitekit-portal-\".concat(slug));\n }\n var root = document.querySelector('.googlesitekit-plugin') || document.body;\n root.appendChild(el);\n return function () {\n return root.removeChild(el);\n };\n });\n return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"createPortal\"])(children, el);\n}\nPortal.propTypes = {\n slug: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,\n children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node\n};\nPortal.defaultProps = {\n slug: '',\n children: null\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Portal);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1BvcnRhbC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2NvbXBvbmVudHMvUG9ydGFsLmpzPzZhNzMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBQb3J0YWwgY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/PreviewBlock.js":
|
|||
|
|
/*!***************************************!*\
|
|||
|
|
!*** ./js/components/PreviewBlock.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 _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_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _hooks_useBreakpoint__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hooks/useBreakpoint */ \"./js/hooks/useBreakpoint.js\");\n\n\n/**\n * PreviewBlock component.\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\nfunction PreviewBlock(_ref) {\n var _width, _height;\n var className = _ref.className,\n width = _ref.width,\n height = _ref.height,\n shape = _ref.shape,\n padding = _ref.padding,\n smallWidth = _ref.smallWidth,\n smallHeight = _ref.smallHeight,\n tabletWidth = _ref.tabletWidth,\n tabletHeight = _ref.tabletHeight,\n desktopWidth = _ref.desktopWidth,\n desktopHeight = _ref.desktopHeight;\n var breakpoint = Object(_hooks_useBreakpoint__WEBPACK_IMPORTED_MODULE_4__[\"useBreakpoint\"])();\n var blockDimensions = {\n width: (_width = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_width, _hooks_useBreakpoint__WEBPACK_IMPORTED_MODULE_4__[\"BREAKPOINT_SMALL\"], smallWidth), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_width, _hooks_useBreakpoint__WEBPACK_IMPORTED_MODULE_4__[\"BREAKPOINT_TABLET\"], tabletWidth), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_width, _hooks_useBreakpoint__WEBPACK_IMPORTED_MODULE_4__[\"BREAKPOINT_DESKTOP\"], desktopWidth), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_width, _hooks_useBreakpoint__WEBPACK_IMPORTED_MODULE_4__[\"BREAKPOINT_XLARGE\"], desktopWidth), _width),\n height: (_height = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_height, _hooks_useBreakpoint__WEBPACK_IMPORTED_MODULE_4__[\"BREAKPOINT_SMALL\"], smallHeight), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_height, _hooks_useBreakpoint__WEBPACK_IMPORTED_MODULE_4__[\"BREAKPOINT_TABLET\"], tabletHeight), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_height, _hooks_useBreakpoint__WEBPACK_IMPORTED_MODULE_4__[\"BREAKPOINT_DESKTOP\"], desktopHeight), _babel_runtime_helpers_definePropert
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/PreviewGraph.js":
|
|||
|
|
/*!***************************************!*\
|
|||
|
|
!*** ./js/components/PreviewGraph.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return PreviewGraph; });\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 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 _svg_icons_arrow_up_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../svg/icons/arrow-up.svg */ \"./svg/icons/arrow-up.svg\");\n\n/**\n * PreviewGraph component.\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 * External dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\nfunction PreviewGraph(_ref) {\n var title = _ref.title,\n GraphSVG = _ref.GraphSVG,\n showIcons = _ref.showIcons;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-analytics-cta__preview-graph\"\n }, /*#__PURE__*/React.createElement(\"h3\", {\n className: \"googlesitekit-analytics-cta__preview-graph--title\"\n }, title), /*#__PURE__*/React.createElement(\"div\", null, /*#__PURE__*/React.createElement(GraphSVG, null)), showIcons && /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-analytics-cta__preview-graph--icons\"\n }, /*#__PURE__*/React.createElement(_svg_icons_arrow_up_svg__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n className: \"googlesitekit-analytics-cta__preview-graph--up-arrow\"\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"googlesitekit-analytics-cta__preview-graph--bar\"\n })));\n}\nPreviewGraph.propTypes = {\n title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,\n GraphSVG: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.elementType.isRequired,\n showIcons: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool\n};\nPreviewGraph.defaultProps = {\n showIcons: true\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1ByZXZpZXdHcmFwaC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2NvbXBvbmVudHMvUHJldmlld0dyYXBoLmpzPzlmNGUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBQcmV2aWV3R3JhcGggY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjIgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlc
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/PreviewTable.js":
|
|||
|
|
/*!***************************************!*\
|
|||
|
|
!*** ./js/components/PreviewTable.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/* harmony import */ var _PreviewBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PreviewBlock */ \"./js/components/PreviewBlock.js\");\n\n/**\n * PreviewTable component.\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\nfunction PreviewTable(_ref) {\n var rows = _ref.rows,\n rowHeight = _ref.rowHeight,\n padding = _ref.padding;\n var rowData = [];\n for (var x = 0; rows > x; x++) {\n rowData.push(/*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-preview-table__row\",\n key: 'table-row-' + x\n }, /*#__PURE__*/React.createElement(_PreviewBlock__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n width: \"100%\",\n height: rowHeight + 'px'\n })));\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('googlesitekit-preview-table', {\n 'googlesitekit-preview-table--padding': padding\n })\n }, rowData);\n}\nPreviewTable.propTypes = {\n rows: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,\n rowHeight: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,\n padding: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool\n};\nPreviewTable.defaultProps = {\n rows: 11,\n rowHeight: 35,\n padding: false\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (PreviewTable);\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1ByZXZpZXdUYWJsZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2NvbXBvbmVudHMvUHJldmlld1RhYmxlLmpzPzg4OTciXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBQcmV2aWV3VGFibGUgY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMa
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/RecoverableModules.js":
|
|||
|
|
/*!*********************************************!*\
|
|||
|
|
!*** ./js/components/RecoverableModules.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return RecoverableModules; });\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 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 _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__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 _googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _notifications_CTA__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./notifications/CTA */ \"./js/components/notifications/CTA.js\");\n\n/**\n * RecoverableModules component.\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 * External dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\nfunction RecoverableModules(_ref) {\n var moduleSlugs = _ref.moduleSlugs;\n var moduleNames = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n var modules = select(_googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"CORE_MODULES\"]).getModules();\n if (modules === undefined) {\n return undefined;\n }\n return moduleSlugs.map(function (moduleSlug) {\n return modules[moduleSlug].name;\n });\n });\n if (moduleNames === undefined) {\n return null;\n }\n var description = moduleNames.length === 1 ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"sprintf\"])(/* translators: %s: Module name */\n Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.', 'google-site-kit'), moduleNames[0]) : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"sprintf\"])(/* translators: %s: List of module names */\n Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('The data for the following modules was previously shared by an admin who no longer has access: %s. Please contact another admin to restore it.', 'google-site-kit'), moduleNames.join(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"_x\"])(', ', 'Recoverable modules', 'google-site-kit')));\n return /*#__PURE__*/React.createElement(_notifications_CTA__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('Dat
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/ReportErrorActions.js":
|
|||
|
|
/*!*********************************************!*\
|
|||
|
|
!*** ./js/components/ReportErrorActions.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return ReportErrorActions; });\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_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__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/* 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 googlesitekit_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _util_errors__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../util/errors */ \"./js/util/errors.js\");\n/* harmony import */ var _hooks_useViewOnly__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../hooks/useViewOnly */ \"./js/hooks/useViewOnly.js\");\n/* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Link */ \"./js/components/Link.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 * ReportErrorActions component.\n *\n * Site Kit by Google, Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * y
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/ReportErrorButton/index.js":
|
|||
|
|
/*!**************************************************!*\
|
|||
|
|
!*** ./js/components/ReportErrorButton/index.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 _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 _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! clipboard-copy */ \"../node_modules/clipboard-copy/index.js\");\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(clipboard_copy__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/icons */ \"../node_modules/@wordpress/icons/build-module/index.js\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_6__);\n\n\n/**\n * ReportErrorButton component.\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 * WordPress dependencies\n */\n\n\n\n\n/**\n * Internal dependencies\n */\n\nfunction ReportErrorButton(_ref) {\n var message = _ref.message,\n componentStack = _ref.componentStack;\n var _useState = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(false),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2),\n copied = _useState2[0],\n setCopied = _useState2[1];\n var onErrorClick = function onErrorClick() {\n // Copy message with wrapping backticks for code block formatting on wp.org.\n clipboard_copy__WEBPACK_IMPORTED_MODULE_2___default()(\"`\".concat(message, \"\\n\").concat(componentStack, \"`\"));\n setCopied(true);\n };\n return /*#__PURE__*/React.createElement(googlesitekit_components__WEBPACK_IMPORTED_MODULE_6__[\"Button\"], {\n \"aria-label\": copied ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__[\"__\"])('Error message copied to clipboard. Click to copy the error message again.', 'google-site-kit') : undefined,\n onClick: onErrorClick,\n trailingIcon: /*#__PURE__*/React.createElement(_wordpress_icons__WEBPACK_IMPORTED_MODULE_5__[\"Icon\"], {\n className: \"mdc-button_
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/ReportTable.js":
|
|||
|
|
/*!**************************************!*\
|
|||
|
|
!*** ./js/components/ReportTable.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return ReportTable; });\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 _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\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/* 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 prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__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_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _GatheringDataNotice__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./GatheringDataNotice */ \"./js/components/GatheringDataNotice.js\");\n\n\n/**\n * Report Table component.\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/**\n * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies.\n */\n\n\nfunction ReportTable(props) {\n var rows = props.rows,\n columns = props.columns,\n className = props.className,\n limit = props.limit,\n ZeroState = props.zeroState,\n _props$gatheringData = props.gatheringData,\n gatheringData = _props$gatheringData === void 0 ? false : _props$gatheringData,\n _props$tabbedLayout = props.tabbedLayout,\n tabbedLayout = _props$tabbedLayout === void 0 ? false : _props$tabbedLayout;\n invariant__WEBPACK_IMPORTED_MODULE_3___default()(Array.isArray(rows), 'rows must be an array.');\n invariant__WEBPACK_IMPORTED_MODULE_3___default()(Array.isArray(columns), 'columns must be an array.');\n columns.forEach(function (_ref) {\n var Component = _ref.Component,\n _ref$field = _ref.field,\n f
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/Root/ViewContextContext.js":
|
|||
|
|
/*!**************************************************!*\
|
|||
|
|
!*** ./js/components/Root/ViewContextContext.js ***!
|
|||
|
|
\**************************************************/
|
|||
|
|
/*! exports provided: Consumer, Provider, default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Consumer\", function() { return Consumer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Provider\", function() { return Provider; });\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/**\n * View Context context for React components.\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\nvar ViewContextContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createContext\"])('');\nvar Consumer = ViewContextContext.Consumer,\n Provider = ViewContextContext.Provider;\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (ViewContextContext);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1Jvb3QvVmlld0NvbnRleHRDb250ZXh0LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9Sb290L1ZpZXdDb250ZXh0Q29udGV4dC5qcz9iYjZmIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogVmlldyBDb250ZXh0IGNvbnRleHQgZm9yIFJlYWN0IGNvbXBvbmVudHMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKipcbiAqIFdvcmRQcmVzcyBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHsgY3JlYXRlQ29udGV4dCB9IGZyb20gJ0B3b3JkcHJlc3MvZWxlbWVudCc7XG5cbmNvbnN0IFZpZXdDb250ZXh0Q29udGV4dCA9IGNyZWF0ZUNvbnRleHQoICcnICk7XG5cbmV4cG9ydCBjb25zdCB7IENvbnN1bWVyLCBQcm92aWRlciB9ID0gVmlld0NvbnRleHRDb250ZXh0O1xuXG5leHBvcnQgZGVmYXVsdCBWaWV3Q29udGV4dENvbnRleHQ7XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUFBO0FBRUE7QUFBQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/components/Root/ViewContextContext.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/SelectionBox.js":
|
|||
|
|
/*!***************************************!*\
|
|||
|
|
!*** ./js/components/SelectionBox.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SelectionBox; });\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 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/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_3__);\n\n/**\n * SelectionBox component.\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\nfunction SelectionBox(_ref) {\n var badge = _ref.badge,\n checked = _ref.checked,\n children = _ref.children,\n disabled = _ref.disabled,\n id = _ref.id,\n onChange = _ref.onChange,\n title = _ref.title,\n value = _ref.value;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('googlesitekit-selection-box', {\n 'googlesitekit-selection-box--disabled': disabled\n })\n }, /*#__PURE__*/React.createElement(googlesitekit_components__WEBPACK_IMPORTED_MODULE_3__[\"Checkbox\"], {\n checked: checked,\n description: children,\n disabled: disabled,\n id: id,\n name: id,\n onChange: onChange,\n value: value,\n badge: badge\n }, title));\n}\nSelectionBox.propTypes = {\n badge: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,\n checked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,\n children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,\n disabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,\n id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,\n title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1NlbGVjdGlvbkJveC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2NvbXBvbmVudHMvU2VsZWN0aW9uQm94LmpzPzcwZWUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBTZWxlY3Rpb25Cb3ggY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjMgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdC
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/SelectionPanel/SelectionPanel.js":
|
|||
|
|
/*!********************************************************!*\
|
|||
|
|
!*** ./js/components/SelectionPanel/SelectionPanel.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SelectionPanel; });\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 classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _SideSheet__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../SideSheet */ \"./js/components/SideSheet.js\");\n\n/**\n * Selection Panel component.\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\nfunction SelectionPanel(_ref) {\n var children = _ref.children,\n isOpen = _ref.isOpen,\n isLoading = _ref.isLoading,\n onOpen = _ref.onOpen,\n closePanel = _ref.closePanel,\n className = _ref.className;\n var classNameSelector = className === null || className === void 0 ? void 0 : className.split(/\\s+/).map(function (name) {\n return \".\".concat(name);\n }).join('');\n var initialFocus = classNameSelector ? \"\".concat(classNameSelector, \" .googlesitekit-selection-panel-item .googlesitekit-selection-box input\") : '.googlesitekit-selection-panel-item .googlesitekit-selection-box input';\n return /*#__PURE__*/React.createElement(_SideSheet__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('googlesitekit-selection-panel', className),\n isOpen: isOpen,\n isLoading: isLoading,\n onOpen: onOpen,\n closeSheet: closePanel,\n focusTrapOptions: {\n initialFocus: initialFocus\n }\n }, children);\n}\nSelectionPanel.propTypes = {\n children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,\n isOpen: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,\n isLoading: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,\n onOpen: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,\n closePanel: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,\n className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1NlbGVjdGlvblBhbmVsL1NlbGVjdGlvblBhbmVsLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9TZWxlY3Rpb25QYW5lbC9TZWxlY3Rpb25QYW5lbC5qcz82NjQzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogU2VsZWN0aW9uIFBhbmVsIGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDI0IEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZ
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/SelectionPanel/SelectionPanelFooter.js":
|
|||
|
|
/*!**************************************************************!*\
|
|||
|
|
!*** ./js/components/SelectionPanel/SelectionPanelFooter.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SelectionPanelFooter; });\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_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"../node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\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 prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__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/* 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 googlesitekit_components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _ErrorNotice__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../ErrorNotice */ \"./js/components/ErrorNotice.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n/* harmony import */ var _modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../modules/analytics-4/datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _PreviewBlock__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../PreviewBlock */ \"./js/components/PreviewBlock.js\");\n/* harmony import */ var _ErrorText__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../ErrorText */ \"./js/components/ErrorText.js\");\n\n\n\n\n/**\n * Selection Panel Footer component.\n *\n * Site Kit by Google, Copyright 2
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/SelectionPanel/SelectionPanelHeader.js":
|
|||
|
|
/*!**************************************************************!*\
|
|||
|
|
!*** ./js/components/SelectionPanel/SelectionPanelHeader.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SelectionPanelHeader; });\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 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 _Link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Link */ \"./js/components/Link.js\");\n/* harmony import */ var _svg_icons_close_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../svg/icons/close.svg */ \"./svg/icons/close.svg\");\n\n/**\n * Selection Panel Header component.\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\nfunction SelectionPanelHeader(_ref) {\n var children = _ref.children,\n title = _ref.title,\n onCloseClick = _ref.onCloseClick;\n return /*#__PURE__*/React.createElement(\"header\", {\n className: \"googlesitekit-selection-panel-header\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-selection-panel-header__row\"\n }, /*#__PURE__*/React.createElement(\"h3\", null, title), /*#__PURE__*/React.createElement(_Link__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n className: \"googlesitekit-selection-panel-header__close\",\n onClick: onCloseClick,\n linkButton: true\n }, /*#__PURE__*/React.createElement(_svg_icons_close_svg__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n width: \"15\",\n height: \"15\"\n }))), children);\n}\nSelectionPanelHeader.propTypes = {\n children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,\n title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n onCloseClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1NlbGVjdGlvblBhbmVsL1NlbGVjdGlvblBhbmVsSGVhZGVyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9TZWxlY3Rpb25QYW5lbC9TZWxlY3Rpb25QYW5lbEhlYWRlci5qcz81NDUyIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogU2VsZWN0aW9uIFBhbmVsIEhlYWRlciBjb21wb25lbnQuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyNCBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5n
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/SelectionPanel/SelectionPanelItem.js":
|
|||
|
|
/*!************************************************************!*\
|
|||
|
|
!*** ./js/components/SelectionPanel/SelectionPanelItem.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SelectionPanelItem; });\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 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 _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _SelectionBox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../SelectionBox */ \"./js/components/SelectionBox.js\");\n/* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Badge */ \"./js/components/Badge.js\");\n\n/**\n * Selection Panel Item component.\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 * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\nfunction SelectionPanelItem(_ref) {\n var children = _ref.children,\n id = _ref.id,\n slug = _ref.slug,\n title = _ref.title,\n description = _ref.description,\n isItemSelected = _ref.isItemSelected,\n isItemDisabled = _ref.isItemDisabled,\n onCheckboxChange = _ref.onCheckboxChange,\n subtitle = _ref.subtitle,\n suffix = _ref.suffix,\n badge = _ref.badge,\n isNewlyDetected = _ref.isNewlyDetected;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-selection-panel-item\"\n }, /*#__PURE__*/React.createElement(_SelectionBox__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n badge: badge,\n checked: isItemSelected,\n disabled: isItemDisabled,\n id: id,\n onChange: onCheckboxChange,\n title: title,\n value: slug\n }, subtitle && /*#__PURE__*/React.createElement(\"span\", {\n className: \"googlesitekit-selection-panel-item__subtitle\"\n }, subtitle), description, children), isNewlyDetected && /*#__PURE__*/React.createElement(_Badge__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('New', 'google-site-kit')\n }), suffix && /*#__PURE__*/React.createElement(\"span\", {\n className: \"googlesitekit-selection-panel-item__suffix\"\n }, suffix));\n}\nSelectionPanelItem.propTypes = {\n children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,\n id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n slug: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n description: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n isItemSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,\n isItemDisabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,\n onCheckboxChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,\n subtitle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/SelectionPanel/SelectionPanelItems.js":
|
|||
|
|
/*!*************************************************************!*\
|
|||
|
|
!*** ./js/components/SelectionPanel/SelectionPanelItems.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SelectionPanelItems; });\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__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/**\n * Selection Panel Items component.\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 * WordPress dependencies\n */\n\n\nfunction SelectionPanelItems(_ref) {\n var _ref$currentSelection = _ref.currentSelectionTitle,\n currentSelectionTitle = _ref$currentSelection === void 0 ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"__\"])('Current selection', 'google-site-kit') : _ref$currentSelection,\n _ref$availableItemsTi = _ref.availableItemsTitle,\n availableItemsTitle = _ref$availableItemsTi === void 0 ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"__\"])('Additional items', 'google-site-kit') : _ref$availableItemsTi,\n _ref$savedItemSlugs = _ref.savedItemSlugs,\n savedItemSlugs = _ref$savedItemSlugs === void 0 ? [] : _ref$savedItemSlugs,\n _ref$availableSavedIt = _ref.availableSavedItems,\n availableSavedItems = _ref$availableSavedIt === void 0 ? {} : _ref$availableSavedIt,\n _ref$availableUnsaved = _ref.availableUnsavedItems,\n availableUnsavedItems = _ref$availableUnsaved === void 0 ? {} : _ref$availableUnsaved,\n ItemComponent = _ref.ItemComponent,\n notice = _ref.notice;\n var renderItems = function renderItems(items) {\n return Object.keys(items).map(function (slug) {\n return /*#__PURE__*/React.createElement(ItemComponent, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n key: slug,\n slug: slug,\n savedItemSlugs: savedItemSlugs\n }, items[slug]));\n });\n };\n var availableUnsavedItemsCount = Object.keys(availableUnsavedItems).length;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-selection-panel-items\"\n },\n // Split list into two sections with sub-headings for current selection and\n // additional items if there are already saved items.\n savedItemSlugs.length !== 0 && /*#__PURE__*/React.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"Fragment\"], null, /*#__PURE__*/React.createElement(\"p\", {\n className: \"googlesitekit-se
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/SelectionPanel/index.js":
|
|||
|
|
/*!***********************************************!*\
|
|||
|
|
!*** ./js/components/SelectionPanel/index.js ***!
|
|||
|
|
\***********************************************/
|
|||
|
|
/*! exports provided: SelectionPanelHeader, SelectionPanelItem, SelectionPanelItems, SelectionPanelFooter, default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _SelectionPanel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SelectionPanel */ \"./js/components/SelectionPanel/SelectionPanel.js\");\n/* harmony import */ var _SelectionPanelHeader__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SelectionPanelHeader */ \"./js/components/SelectionPanel/SelectionPanelHeader.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"SelectionPanelHeader\", function() { return _SelectionPanelHeader__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _SelectionPanelItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SelectionPanelItem */ \"./js/components/SelectionPanel/SelectionPanelItem.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"SelectionPanelItem\", function() { return _SelectionPanelItem__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _SelectionPanelItems__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SelectionPanelItems */ \"./js/components/SelectionPanel/SelectionPanelItems.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"SelectionPanelItems\", function() { return _SelectionPanelItems__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _SelectionPanelFooter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SelectionPanelFooter */ \"./js/components/SelectionPanel/SelectionPanelFooter.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"SelectionPanelFooter\", function() { return _SelectionPanelFooter__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n/**\n * Selection Panel components.\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\n/* harmony default export */ __webpack_exports__[\"default\"] = (_SelectionPanel__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1NlbGVjdGlvblBhbmVsL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9TZWxlY3Rpb25QYW5lbC9pbmRleC5qcz9hZDkyIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogU2VsZWN0aW9uIFBhbmVsIGNvbXBvbmVudHMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyNCBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKipcbiAqIEludGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgU2VsZWN0aW9uUGFuZWwgZnJvbSAnLi9TZWxlY3Rpb25QYW5lbCc7XG5cbmV4cG9ydCB7IGRlZmF1bHQgYXMgU2VsZWN0aW9uUGFuZWxIZWFkZXIgfSBmcm9tICcuL1NlbGVjdGlvblBhbmVsSGVhZGVyJztcbmV4cG9ydCB7IGRlZmF1bHQgYXMgU2VsZWN0aW9uUGFuZWxJdGVtIH0gZnJvbSAnLi9TZWxlY3Rpb25QYW5lbEl0ZW0nO1xuZXhwb3J0IHsgZGVmYXVs
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/SettingsNotice/SettingsNotice.js":
|
|||
|
|
/*!********************************************************!*\
|
|||
|
|
!*** ./js/components/SettingsNotice/SettingsNotice.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 classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__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/* 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 _SettingsNoticeSingleRow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SettingsNoticeSingleRow */ \"./js/components/SettingsNotice/SettingsNoticeSingleRow.js\");\n/* harmony import */ var _SettingsNoticeMultiRow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SettingsNoticeMultiRow */ \"./js/components/SettingsNotice/SettingsNoticeMultiRow.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ \"./js/components/SettingsNotice/utils.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_10__);\n\n/**\n * Settings notice component.\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 * Internal dependencies\n */\n\n\n\n\n\n\n\nvar SettingsNotice = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_10__[\"forwardRef\"])(function (props, ref) {\n var className = props.className,\n children = props.children,\n type = props.type,\n _props$dismiss = props.dismiss,\n dismiss = _props$dismiss === void 0 ? '' : _props$dismiss,\n dismissCallback = props.dismissCallback,\n _props$dismissLabel = props.dismissLabe
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/SettingsNotice/SettingsNoticeMultiRow.js":
|
|||
|
|
/*!****************************************************************!*\
|
|||
|
|
!*** ./js/components/SettingsNotice/SettingsNoticeMultiRow.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SettingsNoticeMultiRow; });\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 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\n/**\n * Settings notice SettingsNoticeMultiRow component.\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 * WordPress dependencies\n */\n\nfunction SettingsNoticeMultiRow(_ref) {\n var notice = _ref.notice,\n LearnMore = _ref.LearnMore,\n CTA = _ref.CTA,\n children = _ref.children;\n return /*#__PURE__*/React.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-settings-notice__text\"\n }, notice), /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-settings-notice__inner-row\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-settings-notice__children-container\"\n }, children), LearnMore && /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-settings-notice__learn-more\"\n }, /*#__PURE__*/React.createElement(LearnMore, null)), CTA && /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-settings-notice__cta\"\n }, /*#__PURE__*/React.createElement(CTA, null))));\n}\nSettingsNoticeMultiRow.propTypes = {\n children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,\n notice: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,\n LearnMore: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.elementType,\n CTA: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.elementType\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1NldHRpbmdzTm90aWNlL1NldHRpbmdzTm90aWNlTXVsdGlSb3cuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9jb21wb25lbnRzL1NldHRpbmdzTm90aWNlL1NldHRpbmdzTm90aWNlTXVsdGlSb3cuanM/NGZhMSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFNldHRpbmdzIG5vdGljZSBTZXR0aW5nc05vdGljZU11bHRpUm93IGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/SettingsNotice/SettingsNoticeSingleRow.js":
|
|||
|
|
/*!*****************************************************************!*\
|
|||
|
|
!*** ./js/components/SettingsNotice/SettingsNoticeSingleRow.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SettingsNoticeSingleRow; });\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 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\n/**\n * Settings notice SettingsNoticeSingleRow component.\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 * WordPress dependencies\n */\n\nfunction SettingsNoticeSingleRow(_ref) {\n var notice = _ref.notice,\n LearnMore = _ref.LearnMore,\n CTA = _ref.CTA;\n return /*#__PURE__*/React.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-settings-notice__text\"\n }, notice), LearnMore && /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-settings-notice__learn-more\"\n }, /*#__PURE__*/React.createElement(LearnMore, null)), CTA && /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-settings-notice__cta\"\n }, /*#__PURE__*/React.createElement(CTA, null)));\n}\nSettingsNoticeSingleRow.propTypes = {\n notice: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,\n LearnMore: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.elementType,\n CTA: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.elementType\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1NldHRpbmdzTm90aWNlL1NldHRpbmdzTm90aWNlU2luZ2xlUm93LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9TZXR0aW5nc05vdGljZS9TZXR0aW5nc05vdGljZVNpbmdsZVJvdy5qcz8yMjQ0Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogU2V0dGluZ3Mgbm90aWNlIFNldHRpbmdzTm90aWNlU2luZ2xlUm93IGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5cbi8qKlxuICogV29yZFByZXNzIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgeyBGcmFnbWVudCB9IGZyb20gJ0B3b3JkcHJlc3MvZWxlbWVudCc7XG5cbmV4cG9
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/SettingsNotice/index.js":
|
|||
|
|
/*!***********************************************!*\
|
|||
|
|
!*** ./js/components/SettingsNotice/index.js ***!
|
|||
|
|
\***********************************************/
|
|||
|
|
/*! exports provided: default, TYPE_WARNING, TYPE_INFO, TYPE_SUGGESTION */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _SettingsNotice__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SettingsNotice */ \"./js/components/SettingsNotice/SettingsNotice.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _SettingsNotice__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ \"./js/components/SettingsNotice/utils.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TYPE_WARNING\", function() { return _utils__WEBPACK_IMPORTED_MODULE_1__[\"TYPE_WARNING\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TYPE_INFO\", function() { return _utils__WEBPACK_IMPORTED_MODULE_1__[\"TYPE_INFO\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TYPE_SUGGESTION\", function() { return _utils__WEBPACK_IMPORTED_MODULE_1__[\"TYPE_SUGGESTION\"]; });\n\n/**\n * Settings notice component.\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//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1NldHRpbmdzTm90aWNlL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9TZXR0aW5nc05vdGljZS9pbmRleC5qcz9jZDg5Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogU2V0dGluZ3Mgbm90aWNlIGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qKlxuICogSW50ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmV4cG9ydCB7IGRlZmF1bHQgfSBmcm9tICcuL1NldHRpbmdzTm90aWNlJztcbmV4cG9ydCB7IFRZUEVfV0FSTklORywgVFlQRV9JTkZPLCBUWVBFX1NVR0dFU1RJT04gfSBmcm9tICcuL3V0aWxzJztcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/components/SettingsNotice/index.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/SettingsNotice/utils.js":
|
|||
|
|
/*!***********************************************!*\
|
|||
|
|
!*** ./js/components/SettingsNotice/utils.js ***!
|
|||
|
|
\***********************************************/
|
|||
|
|
/*! exports provided: TYPE_WARNING, TYPE_INFO, TYPE_SUGGESTION, getIconFromType */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TYPE_WARNING\", function() { return TYPE_WARNING; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TYPE_INFO\", function() { return TYPE_INFO; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TYPE_SUGGESTION\", function() { return TYPE_SUGGESTION; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getIconFromType\", function() { return getIconFromType; });\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 _svg_icons_info_icon_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../svg/icons/info-icon.svg */ \"./svg/icons/info-icon.svg\");\n/* harmony import */ var _svg_icons_suggestion_icon_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../svg/icons/suggestion-icon.svg */ \"./svg/icons/suggestion-icon.svg\");\n/* harmony import */ var _svg_icons_warning_icon_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../svg/icons/warning-icon.svg */ \"./svg/icons/warning-icon.svg\");\n/* harmony import */ var _Null__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Null */ \"./js/components/Null.js\");\n\nvar _typeIconMap;\n/**\n * Settings notice utils.\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 TYPE_WARNING = 'warning';\nvar TYPE_INFO = 'info';\nvar TYPE_SUGGESTION = 'suggestion';\nvar typeIconMap = (_typeIconMap = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_typeIconMap, TYPE_INFO, _svg_icons_info_icon_svg__WEBPACK_IMPORTED_MODULE_1__[\"default\"]), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_typeIconMap, TYPE_WARNING, _svg_icons_warning_icon_svg__WEBPACK_IMPORTED_MODULE_3__[\"default\"]), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_typeIconMap, TYPE_SUGGESTION, _svg_icons_suggestion_icon_svg__WEBPACK_IMPORTED_MODULE_2__[\"default\"]), _typeIconMap);\nvar getIconFromType = function getIconFromType(type) {\n return typeIconMap[type] || _Null__WEBPACK_IMPORTED_MODULE_4__[\"default\"];\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1NldHRpbmdzTm90aWNlL3V0aWxzLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9TZXR0aW5nc05vdGljZS91dGlscy5qcz8wMzI1Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogU2V0dGluZ3Mgbm90aWNlIHV0aWxzLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZG
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/SideSheet.js":
|
|||
|
|
/*!************************************!*\
|
|||
|
|
!*** ./js/components/SideSheet.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SideSheet; });\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_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\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/* harmony import */ var focus_trap_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! focus-trap-react */ \"../node_modules/focus-trap-react/dist/focus-trap-react.js\");\n/* harmony import */ var focus_trap_react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(focus_trap_react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react_use__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-use */ \"../node_modules/react-use/esm/index.js\");\n/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/keycodes */ \"../node_modules/@wordpress/keycodes/build-module/index.js\");\n/* harmony import */ var _Portal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Portal */ \"./js/components/Portal.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 * SideSheet component\n *\n * This component is named after Material Side Sheets\n * (https://m3.material.io/components/side-sheets/overview), which is\n * planned but not yet implemented for Web. Once available, we could look\n * into moving this to `googlesitekit-components` and replacing it with\n * the Material implementation.\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 speci
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/SourceLink.js":
|
|||
|
|
/*!*************************************!*\
|
|||
|
|
!*** ./js/components/SourceLink.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/* 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/* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Link */ \"./js/components/Link.js\");\n/* harmony import */ var _hooks_useViewOnly__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../hooks/useViewOnly */ \"./js/hooks/useViewOnly.js\");\n\n/**\n * SourceLink component.\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/**\n * Internal dependencies\n */\n\n\nfunction SourceLink(_ref) {\n var name = _ref.name,\n href = _ref.href,\n className = _ref.className,\n external = _ref.external;\n var viewOnlyDashboard = Object(_hooks_useViewOnly__WEBPACK_IMPORTED_MODULE_5__[\"default\"])();\n if (viewOnlyDashboard) {\n return null;\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('googlesitekit-source-link', className)\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createInterpolateElement\"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"sprintf\"])(/* translators: %s: source link */\n Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__[\"__\"])('Source: %s', 'google-site-kit'), \"<a>\".concat(name, \"</a>\")), {\n a: /*#__PURE__*/React.createElement(_Link__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n key: \"link\",\n href: href,\n external: external\n })\n }));\n}\nSourceLink.propTypes = {\n name: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n href: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n external: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool\n};\nSourceLink.defaultProps = {\n name: '',\n href: '',\n className: '',\n external: false\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (SourceLink);\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1NvdXJjZUxpbmsuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9jb21wb25lbnRzL1NvdXJjZUxpbmsuanM/YjIxNiJdLCJzb3VyY2V
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/StoreErrorNotices.js":
|
|||
|
|
/*!********************************************!*\
|
|||
|
|
!*** ./js/components/StoreErrorNotices.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return StoreErrorNotices; });\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 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 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 _ErrorNotice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ErrorNotice */ \"./js/components/ErrorNotice.js\");\n/* harmony import */ var _googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _util_errors__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/errors */ \"./js/util/errors.js\");\n/* harmony import */ var _util_insufficient_permissions_error_description__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util/insufficient-permissions-error-description */ \"./js/util/insufficient-permissions-error-description.js\");\n\n/**\n * StoreErrorNotices component.\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\nfunction StoreErrorNotices(_ref) {\n var _ref$hasButton = _ref.hasButton,\n hasButton = _ref$hasButton === void 0 ? false : _ref$hasButton,\n moduleSlug = _ref.moduleSlug,\n storeName = _ref.storeName;\n var errors = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"useSelect\"])(function (select) {\n return select(storeName).getErrors();\n });\n var module = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"CORE_MODULES\"]).getModule(moduleSlug);\n });\n var existingErrorMessages = [];\n return errors.filter(function (error) {\n if (!(error === null || error === void 0 ? void 0 : error.message) || existingErrorMessages.includes(error.message)) {\n return false;\n }\n existingErrorMessages.push(error.message);\n return true;\n }).map(function (error, key) {\n var message = error.message;\n if (Object(_util_errors__WEBPACK_IMPORTED_MODULE_5__[\"isInsufficientPermissionsError\"])(error)) {\n message = Object(_util_insufficient_permissions_error_description__WEBPACK_IMPORTED_MODULE_6__[\"getInsufficientPermissionsErrorDescription\"])(message, module);\n }\n return /*#__PURE__*/React.createElement(_ErrorNotice__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n key: key,\n error: error,\n hasButton: hasButton,\n storeName: storeName,\n message: message\n });\n });\n}\nStoreErrorNotices.propTypes = {\n hasBu
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/TableOverflowContainer.js":
|
|||
|
|
/*!*************************************************!*\
|
|||
|
|
!*** ./js/components/TableOverflowContainer.js ***!
|
|||
|
|
\*************************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global, React) {/* 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 _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__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 classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);\n\n\n/**\n * TableOverflowContainer component.\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\nfunction TableOverflowContainer(_ref) {\n var children = _ref.children;\n var _useState = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(false),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2),\n isScrolling = _useState2[0],\n setScrolling = _useState2[1];\n var scrollRef = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"useRef\"])();\n Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(function () {\n setIsScrolling();\n var resize = Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"debounce\"])(setIsScrolling, 100);\n global.addEventListener('resize', resize);\n return function () {\n return global.removeEventListener('resize', resize);\n };\n }, []);\n var setIsScrolling = function setIsScrolling() {\n if (!scrollRef.current) {\n return;\n }\n var _scrollRef$current = scrollRef.current,\n scrollLeft = _scrollRef$current.scrollLeft,\n scrollWidth = _scrollRef$current.scrollWidth,\n offsetWidth = _scrollRef$current.offsetWidth;\n var maxScroll = scrollWidth - offsetWidth;\n var scrolling = scrollLeft < maxScroll - 16 && 0 < maxScroll - 16; // 16 = $grid-gap-phone\n\n setScrolling(scrolling);\n };\n return /*#__PURE__*/React.createElement(\"div\", {\n onScroll: Object(lodash__WEBPACK_IMPORTED_MODULE_3__[\"debounce\"])(setIsScrolling, 100),\n className: classnames__WEBPACK_IMPORTED_MODULE_4___default()('googlesitekit-table-overflow', {\n 'googlesitekit-table-overflow--gradient': isScrolling\n })\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: scrollRef,\n className: \"googlesitekit-table-overflow__c
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/TourTooltip.js":
|
|||
|
|
/*!**************************************!*\
|
|||
|
|
!*** ./js/components/TourTooltip.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return TourTooltip; });\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var _material_react_card__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @material/react-card */ \"../node_modules/@material/react-card/dist/index.js\");\n/* harmony import */ var _material_react_card__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_react_card__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _util_create_incremental_array_by_size__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../util/create-incremental-array-by-size */ \"./js/util/create-incremental-array-by-size.js\");\n/* harmony import */ var _svg_icons_close_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../svg/icons/close.svg */ \"./svg/icons/close.svg\");\n\n\n/**\n * TourTooltip component.\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\n\n/**\n * Internal dependencies\n */\n\n\n\nfunction TourTooltip(_ref) {\n var backProps = _ref.backProps,\n closeProps = _ref.closeProps,\n index = _ref.index,\n primaryProps = _ref.primaryProps,\n size = _ref.size,\n step = _ref.step,\n tooltipProps = _ref.tooltipProps;\n var indicatorArray = size > 1 ? Object(_util_create_incremental_array_by_size__WEBPACK_IMPORTED_MODULE_7__[\"createIncrementalArrayBySize\"])(size) : [];\n var getIndicatorClassName = function getIndicatorClassName(indicatorIndex) {\n return classnames__WEBPAC
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/TourTooltips.js":
|
|||
|
|
/*!***************************************!*\
|
|||
|
|
!*** ./js/components/TourTooltips.js ***!
|
|||
|
|
\***************************************/
|
|||
|
|
/*! exports provided: joyrideStyles, floaterProps, GA_ACTIONS, default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global, React) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"joyrideStyles\", function() { return joyrideStyles; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"floaterProps\", function() { return floaterProps; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"GA_ACTIONS\", function() { return GA_ACTIONS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return TourTooltips; });\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_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var react_use__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-use */ \"../node_modules/react-use/esm/index.js\");\n/* harmony import */ var react_joyride__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-joyride */ \"../node_modules/react-joyride/dist/index.mjs\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__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 _googlesitekit_datastore_ui_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../googlesitekit/datastore/ui/constants */ \"./js/googlesitekit/datastore/ui/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _util_tracking__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../util/tracking */ \"./js/util/tracking/index.js\");\n/* harmony import */ var _TourTooltip__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TourTooltip */ \"./js/components/TourTooltip.js\");\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../hooks/useViewContext */ \"./js/hooks/useViewContext.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(t
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/VisuallyHidden.js":
|
|||
|
|
/*!*****************************************!*\
|
|||
|
|
!*** ./js/components/VisuallyHidden.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 _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"../node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n/**\n * Visually Hidden component, mainly used for screen-reader text.\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\nfunction VisuallyHidden(_ref) {\n var className = _ref.className,\n children = _ref.children,\n otherProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref, [\"className\", \"children\"]);\n if (!children) {\n return null;\n }\n return /*#__PURE__*/React.createElement(\"span\", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, otherProps, {\n className: classnames__WEBPACK_IMPORTED_MODULE_4___default()('screen-reader-text', className)\n }), children);\n}\nVisuallyHidden.propTypes = {\n className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,\n children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node\n};\nVisuallyHidden.defaultProps = {\n className: ''\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (VisuallyHidden);\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1Zpc3VhbGx5SGlkZGVuLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9WaXN1YWxseUhpZGRlbi5qcz9kODE4Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogVmlzdWFsbHkgSGlkZGVuIGNvbXBvbmVudCwgbWFpbmx5IHVzZWQgZm9yIHNjcmVlbi1yZWFkZXIgdGV4dC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSB
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/notifications/CTA.js":
|
|||
|
|
/*!********************************************!*\
|
|||
|
|
!*** ./js/components/notifications/CTA.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/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Link */ \"./js/components/Link.js\");\n\n/**\n * CTA component.\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\nfunction CTA(_ref) {\n var title = _ref.title,\n headerText = _ref.headerText,\n headerContent = _ref.headerContent,\n description = _ref.description,\n ctaLink = _ref.ctaLink,\n ctaLabel = _ref.ctaLabel,\n ctaLinkExternal = _ref.ctaLinkExternal,\n ctaType = _ref.ctaType,\n error = _ref.error,\n onClick = _ref.onClick,\n ariaLabel = _ref['aria-label'],\n children = _ref.children;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('googlesitekit-cta', {\n 'googlesitekit-cta--error': error\n })\n }, (headerText || headerContent) && /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-cta__header\"\n }, headerText && /*#__PURE__*/React.createElement(\"h2\", {\n className: \"googlesitekit-cta__header_text\"\n }, headerText), headerContent), /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-cta__body\"\n }, title && /*#__PURE__*/React.createElement(\"h3\", {\n className: \"googlesitekit-cta__title\"\n }, title), description && typeof description === 'string' && /*#__PURE__*/React.createElement(\"p\", {\n className: \"googlesitekit-cta__description\"\n }, description), description && typeof description !== 'string' && /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-cta__description\"\n }, description), ctaLabel && ctaType === 'button' && /*#__PURE__*/React.createElement(googlesitekit_components__WEBPACK_IMPORTED_MODULE_3__[\"Button\"], {\n \"aria-label\": ariaLabel,\n href: ctaLink,\n onClick: onClick\n }, ctaLabel), ctaLabel && ctaType === 'link' && /*#__PURE__*/React.createElement(_Link__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n href: ctaLink,\n onClick: onClick,\n \"aria-label\": ariaLabel,\n external: ctaLinkExternal,\n hideExternalIndicator: ctaLinkExternal,\n arrow: true\n }, ctaLabel), children));\n}\nCTA.propTypes = {\n titl
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/settings/EntityOwnershipChangeNotice.js":
|
|||
|
|
/*!***************************************************************!*\
|
|||
|
|
!*** ./js/components/settings/EntityOwnershipChangeNotice.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return EntityOwnershipChangeNotice; });\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_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__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/* 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 _googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _SettingsNotice_SettingsNotice__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../SettingsNotice/SettingsNotice */ \"./js/components/SettingsNotice/SettingsNotice.js\");\n/* harmony import */ var _SettingsNotice_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../SettingsNotice/utils */ \"./js/components/SettingsNotice/utils.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util */ \"./js/util/index.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 * EntityOwnershipChangeNotice component.\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
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/surveys/SurveyViewTrigger.js":
|
|||
|
|
/*!****************************************************!*\
|
|||
|
|
!*** ./js/components/surveys/SurveyViewTrigger.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 SurveyViewTrigger; });\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 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 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 _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/**\n * SurveyViewTrigger component.\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\n/**\n * Internal dependencies\n */\n\n\n\nfunction SurveyViewTrigger(_ref) {\n var triggerID = _ref.triggerID,\n _ref$ttl = _ref.ttl,\n ttl = _ref$ttl === void 0 ? 0 : _ref$ttl;\n var usingProxy = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_SITE\"]).isUsingProxy();\n });\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"useDispatch\"])(_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_4__[\"CORE_USER\"]),\n triggerSurvey = _useDispatch.triggerSurvey;\n Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function () {\n if (usingProxy) {\n triggerSurvey(triggerID, {\n ttl: ttl\n });\n }\n }, [usingProxy, triggerID, ttl, triggerSurvey]);\n return null;\n}\nSurveyViewTrigger.propTypes = {\n triggerID: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,\n ttl: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL3N1cnZleXMvU3VydmV5Vmlld1RyaWdnZXIuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9jb21wb25lbnRzL3N1cnZleXMvU3VydmV5Vmlld1RyaWdnZXIuanM/N2M3ZCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFN1cnZleVZpZXdUcmlnZ2VyIGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHR
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/feature-tours/shared-key-metrics.js":
|
|||
|
|
/*!************************************************!*\
|
|||
|
|
!*** ./js/feature-tours/shared-key-metrics.js ***!
|
|||
|
|
\************************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\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/* harmony import */ var _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../googlesitekit/constants */ \"./js/googlesitekit/constants.js\");\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\nvar sharedKeyMetrics = {\n slug: 'sharedKeyMetrics',\n contexts: [_googlesitekit_constants__WEBPACK_IMPORTED_MODULE_1__[\"VIEW_CONTEXT_MAIN_DASHBOARD\"], _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_1__[\"VIEW_CONTEXT_MAIN_DASHBOARD_VIEW_ONLY\"], _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_1__[\"VIEW_CONTEXT_ENTITY_DASHBOARD\"], _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_1__[\"VIEW_CONTEXT_ENTITY_DASHBOARD_VIEW_ONLY\"]],\n gaEventCategory: function gaEventCategory(viewContext) {\n return \"\".concat(viewContext, \"_shared_key-metrics\");\n },\n steps: [{\n target: '.googlesitekit-km-change-metrics-cta',\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Personalize your key metrics', 'google-site-kit'),\n content: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Another admin has set up these tailored metrics for your site. Click here to personalize them.', 'google-site-kit'),\n placement: 'bottom-start'\n }]\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (sharedKeyMetrics);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9mZWF0dXJlLXRvdXJzL3NoYXJlZC1rZXktbWV0cmljcy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2ZlYXR1cmUtdG91cnMvc2hhcmVkLWtleS1tZXRyaWNzLmpzP2ViYTciXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIzIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qKlxuICogV29yZFByZXNzIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgeyBfXyB9IGZyb20gJ0B3b3JkcHJlc3MvaTE4bic7XG5cbi8qXG4gKiBJbnRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHtcblx0VklFV19DT05URVhUX01BSU5fREFTSEJPQVJELFxuXHRWSUVXX0NPTlRFWFRfTUFJTl9EQVNIQk9BUkRfVklFV19PTkxZLFxuXHRWSUVXX0NPTlRFWFRfRU5USVRZX0RBU0hCT0FSRCxcblx0VklFV19DT05URVhUX0VOVElUWV9EQVNIQk9BUkRfVklFV19PTkxZLFxufSBmcm9tICcuLi9nb29nbGVzaXRla2l0L2NvbnN0YW50cyc7XG5cbmNvbnN0IHNoYXJlZEtleU1ldHJpY3MgPSB7XG5cdHNsdWc6ICdzaGFyZWRLZXlNZXRyaWNzJyxcblx0Y29udGV4dHM6IFtcblx0XHRWSUVXX0NPTlRFWFRfTUFJTl9EQVNIQk9BUkQsXG5cdFx0VklFV19DT05URVhUX01BSU5fREFTSEJPQVJEX1ZJRVdfT05MWSxcblx0XHR
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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 */\nvar isFeatureEnabled = function 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9mZWF0dXJlcy9pbmRleC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2ZlYXR1cmVzL2luZGV4LmpzPzgyM2MiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBGZWF0dXJlIGZsYWdzLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuZXhwb3J0IGNvbnN0IGVuYWJsZWRGZWF0dXJlcyA9IG5ldyBTZXQoXG5cdGdsb2JhbD8uX2dvb2dsZXNpdGVraXRCYXNlRGF0YT8uZW5hYmxlZEZlYXR1cmVzIHx8IFtdXG4pO1xuXG4vKipcbiAqIFJldHVybnMgdHJ1ZSBpZiBhIGZlYXR1cmUgaXMgZW5hYmxlZDsgZmFsc2Ugb3RoZXJ3aXNlLlxuICpcbiAqIEBzaW5jZSAxLjI1LjBcbiAqIEBzaW5jZSAxLjMzLjAgQ2hhbmdlZCBfZW5hYmxlZEZlYXR1cmVzIGFyZ3VtZW50IHRvIGJlIGEgYFNldGAgaW5zdGVhZCBvZiBgQXJyYXlgLlxuICpcbiAqIEBwYXJhbSB7c3RyaW5nfSBmZWF0dXJlICAgICAgICAgICAgVGhlIG5hbWUgb2YgdGhlIGZlYXR1cmUgdG8gY2hlY2suXG4gKiBAcGFyYW0ge1NldH0gICAgW19lbmFibGVkRmVhdHVyZXNdIE9wdGlvbmFsLiBUaGUgc2V0IG9mIGVuYWJsZWQgZmVhdHVyZXMuIFVzZXMgYGVuYWJsZWRGZWF0dXJlc2Agc2V0IGJ5IHRoZSBzZXJ2ZXIgaW4gYSBnbG9iYWwgSlMgdmFyaWFibGUsIGJ5IGRlZmF1bHQuXG4gKiBAcmV0dXJuIHtib29sZWFufSBg
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit-modules-search-console.js":
|
|||
|
|
/*!****************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit-modules-search-console.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_modules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! googlesitekit-modules */ \"googlesitekit-modules\");\n/* harmony import */ var googlesitekit_modules__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_modules__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var googlesitekit_widgets__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! googlesitekit-widgets */ \"googlesitekit-widgets\");\n/* harmony import */ var googlesitekit_widgets__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_widgets__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _modules_search_console__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./modules/search-console */ \"./js/modules/search-console/index.js\");\n/**\n * Search console module entrypoint.\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\nObject(_modules_search_console__WEBPACK_IMPORTED_MODULE_3__[\"registerStore\"])(googlesitekit_data__WEBPACK_IMPORTED_MODULE_0___default.a);\nObject(_modules_search_console__WEBPACK_IMPORTED_MODULE_3__[\"registerModule\"])(googlesitekit_modules__WEBPACK_IMPORTED_MODULE_1___default.a);\nObject(_modules_search_console__WEBPACK_IMPORTED_MODULE_3__[\"registerWidgets\"])(googlesitekit_widgets__WEBPACK_IMPORTED_MODULE_2___default.a);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0LW1vZHVsZXMtc2VhcmNoLWNvbnNvbGUuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9nb29nbGVzaXRla2l0LW1vZHVsZXMtc2VhcmNoLWNvbnNvbGUuanM/ZmJkMyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFNlYXJjaCBjb25zb2xlIG1vZHVsZSBlbnRyeXBvaW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuLyoqXG4gKiBJbnRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IERhdGEgZnJvbSAnZ29vZ2xlc2l0ZWtpdC1kYXRhJztcbmltcG9ydCBNb2R1bGVzIGZyb20gJ2dvb2dsZXNpdGVraXQtbW9kdWxlcyc7XG5pbXBvcnQgV2lkZ2V0cyBmcm9tICdnb29nbGVzaXRla2l0LXdpZGdldHMnO1xuaW1wb3J0IHtcblx0cmVnaXN0ZXJTdG9yZSxcblx0cmVnaXN0ZXJNb2R1bGUsXG5cdHJlZ2lzdGVyV2lkZ2V0cyxcbn0gZnJvbSAnLi9tb2R1bGVzL3NlYXJjaC1jb25zb2xlJztcblxucmVnaXN0ZXJTdG9yZSggRGF0YSApO1xucmVnaXN0ZXJNb2R1bGUoIE1vZHVsZXMgKTtcbnJlZ2lzdGVyV2lkZ2V0cyggV2lkZ2V0cyApO1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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 _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../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(); } fi
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit/constants.js":
|
|||
|
|
/*!***************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/constants.js ***!
|
|||
|
|
\***************************************/
|
|||
|
|
/*! exports provided: VIEW_CONTEXT_MAIN_DASHBOARD, VIEW_CONTEXT_ENTITY_DASHBOARD, VIEW_CONTEXT_MAIN_DASHBOARD_VIEW_ONLY, VIEW_CONTEXT_ENTITY_DASHBOARD_VIEW_ONLY, VIEW_CONTEXT_POSTS_LIST, VIEW_CONTEXT_USER_INPUT, VIEW_CONTEXT_ACTIVATION, VIEW_CONTEXT_SPLASH, VIEW_CONTEXT_ADMIN_BAR, VIEW_CONTEXT_ADMIN_BAR_VIEW_ONLY, VIEW_CONTEXT_SETTINGS, VIEW_CONTEXT_AD_BLOCKING_RECOVERY, VIEW_CONTEXT_MODULE, VIEW_CONTEXT_WP_DASHBOARD, VIEW_CONTEXT_WP_DASHBOARD_VIEW_ONLY, VIEW_CONTEXT_MODULE_SETUP, VIEW_CONTEXT_METRIC_SELECTION, ANCHOR_ID_KEY_METRICS, ANCHOR_ID_TRAFFIC, ANCHOR_ID_CONTENT, ANCHOR_ID_SPEED, ANCHOR_ID_MONETIZATION, SITE_KIT_VIEW_CONTEXTS, SITE_KIT_VIEW_ONLY_CONTEXTS */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_MAIN_DASHBOARD\", function() { return VIEW_CONTEXT_MAIN_DASHBOARD; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_ENTITY_DASHBOARD\", function() { return VIEW_CONTEXT_ENTITY_DASHBOARD; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_MAIN_DASHBOARD_VIEW_ONLY\", function() { return VIEW_CONTEXT_MAIN_DASHBOARD_VIEW_ONLY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_ENTITY_DASHBOARD_VIEW_ONLY\", function() { return VIEW_CONTEXT_ENTITY_DASHBOARD_VIEW_ONLY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_POSTS_LIST\", function() { return VIEW_CONTEXT_POSTS_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_USER_INPUT\", function() { return VIEW_CONTEXT_USER_INPUT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_ACTIVATION\", function() { return VIEW_CONTEXT_ACTIVATION; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_SPLASH\", function() { return VIEW_CONTEXT_SPLASH; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_ADMIN_BAR\", function() { return VIEW_CONTEXT_ADMIN_BAR; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_ADMIN_BAR_VIEW_ONLY\", function() { return VIEW_CONTEXT_ADMIN_BAR_VIEW_ONLY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_SETTINGS\", function() { return VIEW_CONTEXT_SETTINGS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_AD_BLOCKING_RECOVERY\", function() { return VIEW_CONTEXT_AD_BLOCKING_RECOVERY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_MODULE\", function() { return VIEW_CONTEXT_MODULE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_WP_DASHBOARD\", function() { return VIEW_CONTEXT_WP_DASHBOARD; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_WP_DASHBOARD_VIEW_ONLY\", function() { return VIEW_CONTEXT_WP_DASHBOARD_VIEW_ONLY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_MODULE_SETUP\", function() { return VIEW_CONTEXT_MODULE_SETUP; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VIEW_CONTEXT_METRIC_SELECTION\", function() { return VIEW_CONTEXT_METRIC_SELECTION; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ANCHOR_ID_KEY_METRICS\", function() { return ANCHOR_ID_KEY_METRICS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ANCHOR_ID_TRAFFIC\", function() { return ANCHOR_ID_TRAFFIC; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ANCHOR_ID_CONTENT\", function() { return ANCHOR_ID_CONTENT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ANCHOR_ID_SPEED\", function() { return ANCHOR_ID_SPEED; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ANCHOR_ID_MONETIZATION\", function() { return ANCHOR_ID_MONETIZATION; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SITE_KIT_VIEW_CONTEXTS\", function() { return SITE_KIT_VIEW_CONTEXTS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SITE_KIT_VIEW_ONLY_CONTEXTS\", function() { return SITE_KIT_VIEW_ONLY_CONTEXTS; });\n/**\n * Core 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 *
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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_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_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 _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/data */ \"../node_modules/@wordpress/data/build-module/index.js\");\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 md5__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! md5 */ \"../node_modules/md5/md5.js\");\n/* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util */ \"./js/util/index.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 * 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\nfunction generateErrorKey(baseName, args) {\n if (args && Array.isArray(args)) {\n var stringifiedA
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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 _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util */ \"./js/util/index.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 * 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\nvar defaultReducerCallback = function defaultReducerCallback(state) {\n return state;\n};\nvar defaultArgsToParams = function defaultArgsToParams() {\n return {};\n};\nvar defaultValidateParams = function defaultValidateParams() {};\n\n// Get access to error store action creators.\n// If the parent store doesn't include the error
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit/data/create-settings-store.js":
|
|||
|
|
/*!********************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/data/create-settings-store.js ***!
|
|||
|
|
\********************************************************/
|
|||
|
|
/*! exports provided: INVARIANT_DOING_SUBMIT_CHANGES, INVARIANT_SETTINGS_NOT_CHANGED, createSettingsStore, makeDefaultSubmitChanges, makeDefaultRollbackChanges, makeDefaultCanSubmitChanges, makeDefaultHaveSettingsChanged */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"INVARIANT_DOING_SUBMIT_CHANGES\", function() { return INVARIANT_DOING_SUBMIT_CHANGES; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"INVARIANT_SETTINGS_NOT_CHANGED\", function() { return INVARIANT_SETTINGS_NOT_CHANGED; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createSettingsStore\", function() { return createSettingsStore; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"makeDefaultSubmitChanges\", function() { return makeDefaultSubmitChanges; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"makeDefaultRollbackChanges\", function() { return makeDefaultRollbackChanges; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"makeDefaultCanSubmitChanges\", function() { return makeDefaultCanSubmitChanges; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"makeDefaultHaveSettingsChanged\", function() { return makeDefaultHaveSettingsChanged; });\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__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 _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ \"./js/googlesitekit/data/utils.js\");\n/* harmony import */ var _transform_case__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./transform-case */ \"./js/googlesitekit/data/transform-case.js\");\n/* harmony import */ var _create_fetch_store__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./create-fetch-store */ \"./js/googlesitekit/data/create-fetch
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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 */\nvar camelCaseToPascalCase = function 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 */\nvar camelCaseToConstantCase = function 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/ZTZkZSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIERhdGEgc3RvcmUgdXRpbGl0aWVzIGZvciB0cmFuc2Zvcm1pbmcgbmFtZXMgdG8gYSBjZXJ0YWluIGNhc2UuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKipcbiAqIFRyYW5zZm9ybXMgYSBjYW1lbENhc2UgbmFtZSBpbnRvIGl0cyBQYXNjYWxDYXNlIG5hbWUuXG4gKlxuICogQHNpbmNlIDEuMTAuMFxuICogQHByaXZhdGVcbiAqXG4gKiBAcGFyYW0ge3N0cmluZ30gbmFtZSBcImNhbWVsQ2FzZVwiIG5hbWUgdG8gdHJhbnNmb3JtLlxuICogQHJldHVybiB7c3RyaW5nfSBQYXNjYWxDYXNlIG5hbWUuXG4gKi9cbmV4cG9ydCBjb25zdCBjYW1lbENhc2VUb1Bhc2NhbENhc2UgPSAoIG5hbWUgKSA9PiB7XG5cdHJldHVybiBuYW1lLmNoYXJBdCggMCApLnRvVXBwZXJDYXNlKCkgKyBuYW1lLnNsaWNlKCAxICk7XG59O1xuXG4vKipcbiAqIFRyYW5zZm9ybXMgYSBjYW1lbENhc2UgbmFtZSBpbnRvIGl0cyBDT05TVEFOVF9DQVNFIG5hbWUuXG4gKlxuICogQHNpbmNlIDEuMTAuMFxuICogQHByaXZhdGVcbiAqXG4gKiBAc
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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 lo
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit/datastore/forms/constants.js":
|
|||
|
|
/*!*******************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/datastore/forms/constants.js ***!
|
|||
|
|
\*******************************************************/
|
|||
|
|
/*! exports provided: CORE_FORMS */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CORE_FORMS\", function() { return CORE_FORMS; });\n/**\n * `core/forms` 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_FORMS = 'core/forms';//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L2RhdGFzdG9yZS9mb3Jtcy9jb25zdGFudHMuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9nb29nbGVzaXRla2l0L2RhdGFzdG9yZS9mb3Jtcy9jb25zdGFudHMuanM/YjMxMSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIGBjb3JlL2Zvcm1zYCBkYXRhIHN0b3JlOiBjb25zdGFudHMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG5leHBvcnQgY29uc3QgQ09SRV9GT1JNUyA9ICdjb3JlL2Zvcm1zJztcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/forms/constants.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit/datastore/location/constants.js":
|
|||
|
|
/*!**********************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/datastore/location/constants.js ***!
|
|||
|
|
\**********************************************************/
|
|||
|
|
/*! exports provided: CORE_LOCATION */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CORE_LOCATION\", function() { return CORE_LOCATION; });\n/**\n * `core/location` 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_LOCATION = 'core/location';//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L2RhdGFzdG9yZS9sb2NhdGlvbi9jb25zdGFudHMuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9nb29nbGVzaXRla2l0L2RhdGFzdG9yZS9sb2NhdGlvbi9jb25zdGFudHMuanM/OWE0NSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIGBjb3JlL2xvY2F0aW9uYCBkYXRhIHN0b3JlOiBjb25zdGFudHMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG5leHBvcnQgY29uc3QgQ09SRV9MT0NBVElPTiA9ICdjb3JlL2xvY2F0aW9uJztcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/location/constants.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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L2RhdGFzdG9yZS9zaXRlL2NvbnN0YW50cy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2dvb2dsZXNpdGVraXQvZGF0YXN0b3JlL3NpdGUvY29uc3RhbnRzLmpzP2QxMjEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBgY29yZS9zaXRlYCBkYXRhIHN0b3JlOiBjb25zdGFudHMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG5leHBvcnQgY29uc3QgQ09SRV9TSVRFID0gJ2NvcmUvc2l0ZSc7XG5cbmV4cG9ydCBjb25zdCBBTVBfTU9ERV9QUklNQVJZID0gJ3ByaW1hcnknO1xuZXhwb3J0IGNvbnN0IEFNUF9NT0RFX1NFQ09OREFSWSA9ICdzZWNvbmRhcnknO1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/site/constants.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit/datastore/ui/constants.js":
|
|||
|
|
/*!****************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/datastore/ui/constants.js ***!
|
|||
|
|
\****************************************************/
|
|||
|
|
/*! exports provided: CORE_UI, ACTIVE_CONTEXT_ID */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CORE_UI\", function() { return CORE_UI; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ACTIVE_CONTEXT_ID\", function() { return ACTIVE_CONTEXT_ID; });\n/**\n * `core/ui` 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_UI = 'core/ui';\nvar ACTIVE_CONTEXT_ID = 'activeContextID';//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L2RhdGFzdG9yZS91aS9jb25zdGFudHMuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9nb29nbGVzaXRla2l0L2RhdGFzdG9yZS91aS9jb25zdGFudHMuanM/ZTcxNCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIGBjb3JlL3VpYCBkYXRhIHN0b3JlOiBjb25zdGFudHMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG5leHBvcnQgY29uc3QgQ09SRV9VSSA9ICdjb3JlL3VpJztcblxuZXhwb3J0IGNvbnN0IEFDVElWRV9DT05URVhUX0lEID0gJ2FjdGl2ZUNvbnRleHRJRCc7XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/googlesitekit/datastore/ui/constants.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
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit/modules/create-gathering-data-store.js":
|
|||
|
|
/*!*****************************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/modules/create-gathering-data-store.js ***!
|
|||
|
|
\*****************************************************************/
|
|||
|
|
/*! exports provided: createGatheringDataStore */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createGatheringDataStore\", function() { return createGatheringDataStore; });\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 _data_create_fetch_store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../data/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 * Factory function to create gathering data store.\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\n\nvar RECEIVE_GATHERING_DATA = 'RECEIVE_GATHERING_DATA';\nvar RECEIVE_DATA_AVAILABLE_ON_LOAD = 'RECEIVE_DATA_AVAILABLE_ON_LOAD';\nvar WAIT_FOR_DATA_AVAILABILITY_STATE = 'WAIT_FOR_DATA_AVAILABILITY_STATE';\n\n/**\n * Creates a store object that
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L21vZHVsZXMvZGF0YXN0b3JlL2NvbnN0YW50cy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2dvb2dsZXNpdGVraXQvbW9kdWxlcy9kYXRhc3RvcmUvY29uc3RhbnRzLmpzPzA3YjUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBgY29yZS9tb2R1bGVzYCBkYXRhIHN0b3JlOiBjb25zdGFudHMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG5leHBvcnQgY29uc3QgQ09SRV9NT0RVTEVTID0gJ2NvcmUvbW9kdWxlcyc7XG5leHBvcnQgY29uc3QgRVJST1JfQ09ERV9JTlNVRkZJQ0lFTlRfTU9EVUxFX0RFUEVOREVOQ0lFUyA9XG5cdCdpbnN1ZmZpY2llbnRfbW9kdWxlX2RlcGVuZGVuY2llcyc7XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/googlesitekit/modules/datastore/constants.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit/widgets/components/WidgetHeaderTitle.js":
|
|||
|
|
/*!******************************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/widgets/components/WidgetHeaderTitle.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\n/**\n * WidgetHeaderTitle component.\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\nfunction WidgetHeaderTitle(_ref) {\n var title = _ref.title;\n return /*#__PURE__*/React.createElement(\"h3\", {\n className: \"googlesitekit-subheading-1 googlesitekit-widget__header-title\"\n }, title);\n}\nWidgetHeaderTitle.propTypes = {\n title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (WidgetHeaderTitle);\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L3dpZGdldHMvY29tcG9uZW50cy9XaWRnZXRIZWFkZXJUaXRsZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2dvb2dsZXNpdGVraXQvd2lkZ2V0cy9jb21wb25lbnRzL1dpZGdldEhlYWRlclRpdGxlLmpzPzg1NWEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBXaWRnZXRIZWFkZXJUaXRsZSBjb21wb25lbnQuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKipcbiAqIEV4dGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgUHJvcFR5cGVzIGZyb20gJ3Byb3AtdHlwZXMnO1xuXG5mdW5jdGlvbiBXaWRnZXRIZWFkZXJUaXRsZSggeyB0aXRsZSB9ICkge1xuXHRyZXR1cm4gKFxuXHRcdDxoMyBjbGFzc05hbWU9XCJnb29nbGVzaXRla2l0LXN1YmhlYWRpbmctMSBnb29nbGVzaXRla2l0LXdpZGdldF9faGVhZGVyLXRpdGxlXCI+XG5cdFx0XHR7IHRpdGxlIH1cblx0XHQ8L2gzPlxuXHQpO1xufVxuXG5XaWRnZXRIZWFkZXJUaXRsZS5wcm9wVHlwZXMgPSB7XG5cdHRpdGxlOiBQcm9wVHlwZXMuc3RyaW5nLmlzUmVxdWlyZWQsXG59O1xuXG5leHBvcnQgZGVmYXVsdCBXaWRnZXRIZWFkZXJUaXRsZTtcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFJQTtBQUVBO0FBQ0E7QUFDQTtBQUVBO0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/googlesitekit/widgets/components/WidgetHeaderTitle.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit/widgets/datastore/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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L3dpZGdldHMvZGF0YXN0b3JlL2NvbnN0YW50cy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2dvb2dsZXNpdGVraXQvd2lkZ2V0cy9kYXRhc3RvcmUvY29uc3RhbnRzLmpzP2QyZmIiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBgY29yZS93aWRnZXRzYCBkYXRhIHN0b3JlOiBjb25zdGFudHMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG5leHBvcnQgY29uc3QgV0lER0VUX0FSRUFfU1RZTEVTID0geyBCT1hFUzogJ2JveGVzJywgQ09NUE9TSVRFOiAnY29tcG9zaXRlJyB9O1xuZXhwb3J0IGNvbnN0IFdJREdFVF9XSURUSFMgPSB7IFFVQVJURVI6ICdxdWFydGVyJywgSEFMRjogJ2hhbGYnLCBGVUxMOiAnZnVsbCcgfTtcblxuZXhwb3J0IGNvbnN0IENPUkVfV0lER0VUUyA9ICdjb3JlL3dpZGdldHMnO1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/googlesitekit/widgets/datastore/constants.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit/widgets/default-areas.js":
|
|||
|
|
/*!***************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/widgets/default-areas.js ***!
|
|||
|
|
\***************************************************/
|
|||
|
|
/*! exports provided: AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY, AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY, AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION, AREA_MAIN_DASHBOARD_CONTENT_PRIMARY, AREA_MAIN_DASHBOARD_SPEED_PRIMARY, AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY, AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY, AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY, AREA_ENTITY_DASHBOARD_SPEED_PRIMARY, AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY, default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY\", function() { return AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY\", function() { return AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION\", function() { return AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AREA_MAIN_DASHBOARD_CONTENT_PRIMARY\", function() { return AREA_MAIN_DASHBOARD_CONTENT_PRIMARY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AREA_MAIN_DASHBOARD_SPEED_PRIMARY\", function() { return AREA_MAIN_DASHBOARD_SPEED_PRIMARY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY\", function() { return AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY\", function() { return AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY\", function() { return AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AREA_ENTITY_DASHBOARD_SPEED_PRIMARY\", function() { return AREA_ENTITY_DASHBOARD_SPEED_PRIMARY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY\", function() { return AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY; });\n/**\n * Widgets API default areas\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// Main dashboard\nvar AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY = 'mainDashboardKeyMetricsPrimary';\nvar AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY = 'mainDashboardTrafficPrimary';\nvar AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION = 'mainDashboardTrafficAudienceSegmentation';\nvar AREA_MAIN_DASHBOARD_CONTENT_PRIMARY = 'mainDashboardContentPrimary';\nvar AREA_MAIN_DASHBOARD_SPEED_PRIMARY = 'mainDashboardSpeedPrimary';\nvar AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY = 'mainDashboardMonetizationPrimary';\n// Entity dashboard\nvar AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY = 'entityDashboardTrafficPrimary';\nvar AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY = 'entityDashboardContentPrimary';\nvar AREA_ENTITY_DASHBOARD_SPEED_PRIMARY = 'entityDashboardSpeedPrimary';\nvar AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY = 'entityDashboardMonetizationPrimary';\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n // Main dashboard\n AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY: AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY,\n AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY: AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY,\n AREA_MAIN_DASHBOARD_CONTENT_PRIMARY: AREA_MAIN_DASHBOARD_CONTENT_PRIMARY,\n AREA_MAIN_DASHBOARD_SPEED_PRIMARY: AREA_MAIN_DASHBOARD_SPEED_PRIMARY,\n AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY: AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY,\n // Entity dashboard\n AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY: AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY,\n AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY: AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY,\n AREA_ENTITY_DASHBOARD_
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/hooks/useActivateModuleCallback.js":
|
|||
|
|
/*!***********************************************!*\
|
|||
|
|
!*** ./js/hooks/useActivateModuleCallback.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 useActivateModuleCallback; });\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 _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\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 _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_location_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../googlesitekit/datastore/location/constants */ \"./js/googlesitekit/datastore/location/constants.js\");\n/* harmony import */ var _googlesitekit_api_cache__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../googlesitekit/api/cache */ \"./js/googlesitekit/api/cache.js\");\n/* harmony import */ var _util_tracking__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../util/tracking */ \"./js/util/tracking/index.js\");\n/* harmony import */ var _useViewContext__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./useViewContext */ \"./js/hooks/useViewContext.js\");\n\n\n/**\n * `useActivateModuleCallback` hook.\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 * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\n\n/**\n * Returns a callback to activate a module. If the call to activate the module is successful, navigate to the reauthentication URL.\n * Returns null if the module doesn't exist or the user can't manage options.\n *\n * @since 1.70.0\n *\n * @param {string} moduleSlug Module slug.\n * @return {Function|null} Callback to activate module, null if the module doesn't exist or the user can't manage options.\n */\nfunction useAct
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/hooks/useBreakpoint.js":
|
|||
|
|
/*!***********************************!*\
|
|||
|
|
!*** ./js/hooks/useBreakpoint.js ***!
|
|||
|
|
\***********************************/
|
|||
|
|
/*! exports provided: BREAKPOINT_XLARGE, BREAKPOINT_DESKTOP, BREAKPOINT_TABLET, BREAKPOINT_SMALL, useBreakpoint */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BREAKPOINT_XLARGE\", function() { return BREAKPOINT_XLARGE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BREAKPOINT_DESKTOP\", function() { return BREAKPOINT_DESKTOP; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BREAKPOINT_TABLET\", function() { return BREAKPOINT_TABLET; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BREAKPOINT_SMALL\", function() { return BREAKPOINT_SMALL; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useBreakpoint\", function() { return useBreakpoint; });\n/* harmony import */ var _useWindowSize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useWindowSize */ \"./js/hooks/useWindowSize.js\");\n/**\n * `useBreakpoint` hook.\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\nvar BREAKPOINT_XLARGE = 'xlarge';\nvar BREAKPOINT_DESKTOP = 'desktop';\nvar BREAKPOINT_TABLET = 'tablet';\nvar BREAKPOINT_SMALL = 'small';\n\n/**\n * Retrieves the current breakpoint.\n *\n * @since 1.29.0\n *\n * @return {string} The current breakpoint according to the window size.\n */\nfunction useBreakpoint() {\n var onlyWidth = Object(_useWindowSize__WEBPACK_IMPORTED_MODULE_0__[\"useWindowWidth\"])();\n if (onlyWidth > 1280) {\n return BREAKPOINT_XLARGE;\n }\n if (onlyWidth > 960) {\n return BREAKPOINT_DESKTOP;\n }\n if (onlyWidth > 600) {\n return BREAKPOINT_TABLET;\n }\n return BREAKPOINT_SMALL;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9ob29rcy91c2VCcmVha3BvaW50LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvaG9va3MvdXNlQnJlYWtwb2ludC5qcz81NDAxIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogYHVzZUJyZWFrcG9pbnRgIGhvb2suXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG5pbXBvcnQgeyB1c2VXaW5kb3dXaWR0aCB9IGZyb20gJy4vdXNlV2luZG93U2l6ZSc7XG5cbmV4cG9ydCBjb25zdCBCUkVBS1BPSU5UX1hMQVJHRSA9ICd4bGFyZ2UnO1xuZXhwb3J0IGNvbnN0IEJSRUFLUE9JTlRfREVTS1RPUCA9ICdkZXNrdG9wJztcbmV4cG9ydCBjb25zdCBCUkVBS1BPSU5UX1RBQkxFVCA9ICd0YWJsZXQnO1xuZXhwb3J0IGNvbnN0IEJSRUFLUE9JTlRfU01BTEwgPSAnc21hbGwnO1xuXG4vKipcbiAqIFJldHJpZXZlcyB0aGUgY3VycmVudCBicmVha3BvaW50LlxuICpcbiAqIEBzaW5jZSAxLjI5LjBcbiAqXG4gKiBAcmV0dXJuIHtzdHJpbmd9IFRoZSBjdXJyZW50IGJyZWFrcG9pbnQgYWNjb3JkaW5nIHRvIHRoZSB3aW5kb3cgc2l6ZS5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIHVzZUJyZWFrcG9pbnQoKSB7XG5cdGNvbnN0IG9ubHlXaWR0aCA9IHVzZVdpbmRvd1dpZHRoKCk7XG5cblx0aWYgKCBvbmx5V2lkdGggPiAxMjgwICkge1xuXHRcdHJldHVybiBCUkVBS1BPSU5UX1hMQVJHRTtcblx0fVxuXG5cdGlmICggb25seVdpZHRoID4gOTYwICkge1xuXHRcdHJldHVybiBC
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/hooks/useCompleteModuleActivationCallback.js":
|
|||
|
|
/*!*********************************************************!*\
|
|||
|
|
!*** ./js/hooks/useCompleteModuleActivationCallback.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 useCompleteModuleActivationCallback; });\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 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 _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_location_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../googlesitekit/datastore/location/constants */ \"./js/googlesitekit/datastore/location/constants.js\");\n/**\n * `useCompleteModuleActivationCallback` hook.\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 * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n/**\n * Returns a callback to navigate users to the module's authentication URL.\n *\n * Returns null if the module doesn't exist or the user can't manage options.\n *\n * @since 1.73.0\n *\n * @param {string} moduleSlug Module slug.\n * @return {Function|null} Callback that navigates to a module's reauth URL, null if the module doesn't exist or the user can't manage options.\n */\nfunction useCompleteModuleActivationCallback(moduleSlug) {\n var canManageOptions = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"CORE_USER\"]).hasCapability(_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"PERMISSION_MANAGE_OPTIONS\"]);\n });\n var moduleStoreName = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_MODULES\"]).getModuleStoreName(moduleSlug);\n });\n var adminReauthURL = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useSelect\"])(function (select) {\n var _select;\n return (_select = select(moduleStoreName)) === null || _select === void 0 ? void 0 : _select.getAdminReauthURL();\n });\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useDispatch\"])(_googlesitekit_datastore_location_constants__WEBPACK_IMPORTED_MODULE_4__[\"CORE_LOCATION\"]),\n navigateTo = _useDispatch.navigateTo;\n var completeModuleActivationCallback = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function () {\n return navigateTo(adminReauthURL);\n }, [adminReauthURL, navigateTo]);\n if (!adminReauthURL || !canManageOptions) {\n return null;\n }\n return completeModuleActivationCallback;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/hooks/useDashboardType.js":
|
|||
|
|
/*!**************************************!*\
|
|||
|
|
!*** ./js/hooks/useDashboardType.js ***!
|
|||
|
|
\**************************************/
|
|||
|
|
/*! exports provided: DASHBOARD_TYPE_MAIN, DASHBOARD_TYPE_ENTITY, default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DASHBOARD_TYPE_MAIN\", function() { return DASHBOARD_TYPE_MAIN; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DASHBOARD_TYPE_ENTITY\", function() { return DASHBOARD_TYPE_ENTITY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return useDashboardType; });\n/* harmony import */ var _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../googlesitekit/constants */ \"./js/googlesitekit/constants.js\");\n/* harmony import */ var _useViewContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useViewContext */ \"./js/hooks/useViewContext.js\");\n/**\n * `useDashboardType` hook.\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\nvar DASHBOARD_TYPE_MAIN = _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_0__[\"VIEW_CONTEXT_MAIN_DASHBOARD\"];\nvar DASHBOARD_TYPE_ENTITY = _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_0__[\"VIEW_CONTEXT_ENTITY_DASHBOARD\"];\n\n/**\n * Determines dashboard type from the view context.\n *\n * @since 1.45.0\n *\n * @return {string|null} The type of dashboard (either `DASHBOARD_TYPE_MAIN` or `DASHBOARD_TYPE_ENTITY`; `null` if not a Unified Dashboard page).\n */\nfunction useDashboardType() {\n var viewContext = Object(_useViewContext__WEBPACK_IMPORTED_MODULE_1__[\"default\"])();\n if (viewContext === _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_0__[\"VIEW_CONTEXT_MAIN_DASHBOARD\"] || viewContext === _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_0__[\"VIEW_CONTEXT_MAIN_DASHBOARD_VIEW_ONLY\"]) {\n return DASHBOARD_TYPE_MAIN;\n }\n if (viewContext === _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_0__[\"VIEW_CONTEXT_ENTITY_DASHBOARD\"] || viewContext === _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_0__[\"VIEW_CONTEXT_ENTITY_DASHBOARD_VIEW_ONLY\"]) {\n return DASHBOARD_TYPE_ENTITY;\n }\n return null;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9ob29rcy91c2VEYXNoYm9hcmRUeXBlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvaG9va3MvdXNlRGFzaGJvYXJkVHlwZS5qcz81YzNhIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogYHVzZURhc2hib2FyZFR5cGVgIGhvb2suXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKipcbiAqIEludGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQge1xuXHRWSUVXX0NPTlRFWFRfTUFJTl9EQVNIQk9BUkQsXG5cdFZJRVdfQ09OVEVYVF9FTlRJVFlfREFTSEJPQVJELFxuXHRWSUVXX0NPTlRFWFRfTUFJTl9EQVNIQk9BUkRfVklFV19PTkxZLFxuXHRWSUVXX0NPTlRFWFRfRU5USVRZX0RBU0hCT0FSRF9WSUVXX09OTFksXG59IGZyb2
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/hooks/useDebounce.js":
|
|||
|
|
/*!*********************************!*\
|
|||
|
|
!*** ./js/hooks/useDebounce.js ***!
|
|||
|
|
\*********************************/
|
|||
|
|
/*! exports provided: useDebounce */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useDebounce\", function() { return useDebounce; });\n/* harmony import */ var use_memo_one__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! use-memo-one */ \"../node_modules/use-memo-one/dist/use-memo-one.esm.js\");\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 _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/**\n * `useDebounce` hook, from @wordpress/compose.\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// @TODO When we upgrade React to 16.4, we can also upgrade @wordpress/compose, and then this file can be removed.\n\n/**\n * External dependencies\n */\n\n\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Debounces a function with Lodash's `debounce`.\n *\n * A new debounced function will be returned and any scheduled calls\n * cancelled if any of the arguments change, including the function to debounce,\n * so please wrap functions created on render in components in `useCallback`.\n *\n * @since 1.26.0\n *\n * @param {...any} args Arguments passed to Lodash's `debounce`.\n * @return {Function} Debounced function.\n */\nfunction useDebounce() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n var debounced = Object(use_memo_one__WEBPACK_IMPORTED_MODULE_0__[\"useMemoOne\"])(function () {\n return lodash__WEBPACK_IMPORTED_MODULE_1__[\"debounce\"].apply(void 0, args);\n }, args);\n Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"useEffect\"])(function () {\n return function () {\n return debounced.cancel();\n };\n }, [debounced]);\n return debounced;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9ob29rcy91c2VEZWJvdW5jZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2hvb2tzL3VzZURlYm91bmNlLmpzPzhlYWYiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBgdXNlRGVib3VuY2VgIGhvb2ssIGZyb20gQHdvcmRwcmVzcy9jb21wb3NlLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuLy8gQFRPRE8gV2hlbiB3ZSB1cGdyYWRlIFJlYWN0IHRvIDE2LjQsIHdlIGNhbiBhbHNvIHVwZ3JhZGUgQHdvcmRwcmVzcy9jb21wb3NlLCBhbmQgdGhlbiB0aGlzIGZpbGUgY2FuIGJlIHJlbW92ZWQuXG5cbi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IHVzZU1lbW9
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/hooks/useViewContext.js":
|
|||
|
|
/*!************************************!*\
|
|||
|
|
!*** ./js/hooks/useViewContext.js ***!
|
|||
|
|
\************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\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 _components_Root_ViewContextContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/Root/ViewContextContext */ \"./js/components/Root/ViewContextContext.js\");\n/**\n * `useViewContext` hook.\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 * WordPress dependencies\n */\n\n\n\n/**\n * Returns the current Site Kit viewing context, eg. \"dashboard\",\n * \"entity dashboard\", \"view-only dashboard\", etc.\n *\n * @since 1.74.0\n *\n * @return {string} The current \"viewing context\" value for the plugin.\n */\nfunction useViewContext() {\n var viewContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useContext\"])(_components_Root_ViewContextContext__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n return viewContext;\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (useViewContext);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9ob29rcy91c2VWaWV3Q29udGV4dC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2hvb2tzL3VzZVZpZXdDb250ZXh0LmpzPzAzYjIiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBgdXNlVmlld0NvbnRleHRgIGhvb2suXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMiBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKipcbiAqIFdvcmRQcmVzcyBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHsgdXNlQ29udGV4dCB9IGZyb20gJ0B3b3JkcHJlc3MvZWxlbWVudCc7XG5pbXBvcnQgVmlld0NvbnRleHRDb250ZXh0IGZyb20gJy4uL2NvbXBvbmVudHMvUm9vdC9WaWV3Q29udGV4dENvbnRleHQnO1xuXG4vKipcbiAqIFJldHVybnMgdGhlIGN1cnJlbnQgU2l0ZSBLaXQgdmlld2luZyBjb250ZXh0LCBlZy4gXCJkYXNoYm9hcmRcIixcbiAqIFwiZW50aXR5IGRhc2hib2FyZFwiLCBcInZpZXctb25seSBkYXNoYm9hcmRcIiwgZXRjLlxuICpcbiAqIEBzaW5jZSAxLjc0LjBcbiAqXG4gKiBAcmV0dXJuIHtzdHJpbmd9IFRoZSBjdXJyZW50IFwidmlld2luZyBjb250ZXh0XCIgdmFsdWUgZm9yIHRoZSBwbHVnaW4uXG4gKi9cbmZ1bmN0aW9uIHVzZVZpZXdDb250ZXh0KCkge1xuXHRjb25zdCB2aWV3Q29udGV4dCA9IHVzZUNvbnRleHQoIFZpZXdDb250ZXh0Q29udGV4dCApO1xuXG5cdHJldHVybiB2aWV3Q29udGV4dDtcbn1cblxuZXhwb3J0IGRlZmF1bHQgdXNlVmlld0NvbnRleHQ7XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/hooks/useViewContext.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/hooks/useViewOnly.js":
|
|||
|
|
/*!*********************************!*\
|
|||
|
|
!*** ./js/hooks/useViewOnly.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 useViewOnly; });\n/* harmony import */ var _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../googlesitekit/constants */ \"./js/googlesitekit/constants.js\");\n/* harmony import */ var _useViewContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useViewContext */ \"./js/hooks/useViewContext.js\");\n/**\n * `useViewOnly` hook.\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 * Determines if the current view context is a \"view only\" dashboard context.\n *\n * @since 1.72.0\n *\n * @return {boolean} True if current context is a view-only dashboard context, false otherwise.\n */\nfunction useViewOnly() {\n var viewContext = Object(_useViewContext__WEBPACK_IMPORTED_MODULE_1__[\"default\"])();\n return _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_0__[\"SITE_KIT_VIEW_ONLY_CONTEXTS\"].includes(viewContext);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9ob29rcy91c2VWaWV3T25seS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2hvb2tzL3VzZVZpZXdPbmx5LmpzPzY0MmYiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBgdXNlVmlld09ubHlgIGhvb2suXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMiBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKipcbiAqIEludGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgeyBTSVRFX0tJVF9WSUVXX09OTFlfQ09OVEVYVFMgfSBmcm9tICcuLi9nb29nbGVzaXRla2l0L2NvbnN0YW50cyc7XG5pbXBvcnQgdXNlVmlld0NvbnRleHQgZnJvbSAnLi91c2VWaWV3Q29udGV4dCc7XG5cbi8qKlxuICogRGV0ZXJtaW5lcyBpZiB0aGUgY3VycmVudCB2aWV3IGNvbnRleHQgaXMgYSBcInZpZXcgb25seVwiIGRhc2hib2FyZCBjb250ZXh0LlxuICpcbiAqIEBzaW5jZSAxLjcyLjBcbiAqXG4gKiBAcmV0dXJuIHtib29sZWFufSBUcnVlIGlmIGN1cnJlbnQgY29udGV4dCBpcyBhIHZpZXctb25seSBkYXNoYm9hcmQgY29udGV4dCwgZmFsc2Ugb3RoZXJ3aXNlLlxuICovXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiB1c2VWaWV3T25seSgpIHtcblx0Y29uc3Qgdmlld0NvbnRleHQgPSB1c2VWaWV3Q29udGV4dCgpO1xuXG5cdHJldHVybiBTSVRFX0tJVF9WSUVXX09OTFlfQ09OVEVYVFMuaW5jbHVkZXMoIHZpZXdDb250ZXh0ICk7XG59XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/hooks/useViewOnly.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/hooks/useWindowSize.js":
|
|||
|
|
/*!***********************************!*\
|
|||
|
|
!*** ./js/hooks/useWindowSize.js ***!
|
|||
|
|
\***********************************/
|
|||
|
|
/*! exports provided: useWindowSize, useWindowHeight, useWindowWidth */
|
|||
|
|
/***/ (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__, \"useWindowSize\", function() { return useWindowSize; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useWindowHeight\", function() { return useWindowHeight; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useWindowWidth\", function() { return useWindowWidth; });\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 _react_hook_throttle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @react-hook/throttle */ \"../node_modules/@react-hook/throttle/dist/module/index.js\");\n/* harmony import */ var _react_hook_event__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @react-hook/event */ \"../node_modules/@react-hook/event/dist/module/index.js\");\n\n/**\n * `useWindowSize` hook.\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// Copied from https://github.com/jaredLunde/react-hook/blob/b8ac9515e26937e838a36a27001dc46c7f46a390/packages/window-size/throttled/src/index.tsx\n// Modified to use global.innerWidth and global.innerHeight instead of document.documentElement.clientWidth and document.documentElement.clientHeight.\n\n/**\n * External dependencies\n */\n\n\nvar emptyObj = {};\nvar win = typeof global === 'undefined' ? null : global;\nvar getSize = function getSize() {\n return [global.innerWidth, global.innerHeight];\n};\nvar useWindowSize = function useWindowSize() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : emptyObj;\n var fps = options.fps,\n leading = options.leading,\n _options$initialWidth = options.initialWidth,\n initialWidth = _options$initialWidth === void 0 ? 0 : _options$initialWidth,\n _options$initialHeigh = options.initialHeight,\n initialHeight = _options$initialHeigh === void 0 ? 0 : _options$initialHeigh;\n var _useThrottle = Object(_react_hook_throttle__WEBPACK_IMPORTED_MODULE_1__[\"useThrottle\"])(/* istanbul ignore next */\n typeof document === 'undefined' ? [initialWidth, initialHeight] : getSize, fps, leading),\n _useThrottle2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useThrottle, 2),\n size = _useThrottle2[0],\n setThrottledSize = _useThrottle2[1];\n var setSize = function setSize() {\n return setThrottledSize(getSize);\n };\n Object(_react_hook_event__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(win, 'resize', setSize);\n Object(_react_hook_event__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(win, 'orientationchange', setSize);\n return size;\n};\nvar useWindowHeight = function useWindowHeight(options) {\n return useWindowSize(options)[1];\n};\nvar useWindowWidth = function useWindowWidth(options) {\n return useWindowSize(options)[0];\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;charse
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/material-components/index.js":
|
|||
|
|
/*!*****************************************!*\
|
|||
|
|
!*** ./js/material-components/index.js ***!
|
|||
|
|
\*****************************************/
|
|||
|
|
/*! exports provided: Cell, Row, Grid, MDCRipple, MDCFormField, MDCRadio, MDCSwitch, MDCDialog, MDCCheckbox, MDCMenu, Dialog, DialogContent, DialogFooter */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _material_ripple__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @material/ripple */ \"../node_modules/@material/ripple/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MDCRipple\", function() { return _material_ripple__WEBPACK_IMPORTED_MODULE_0__[\"MDCRipple\"]; });\n\n/* harmony import */ var _material_form_field__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @material/form-field */ \"../node_modules/@material/form-field/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MDCFormField\", function() { return _material_form_field__WEBPACK_IMPORTED_MODULE_1__[\"MDCFormField\"]; });\n\n/* harmony import */ var _material_radio__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @material/radio */ \"../node_modules/@material/radio/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MDCRadio\", function() { return _material_radio__WEBPACK_IMPORTED_MODULE_2__[\"MDCRadio\"]; });\n\n/* harmony import */ var _material_switch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @material/switch */ \"../node_modules/@material/switch/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MDCSwitch\", function() { return _material_switch__WEBPACK_IMPORTED_MODULE_3__[\"MDCSwitch\"]; });\n\n/* harmony import */ var _material_dialog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @material/dialog */ \"../node_modules/@material/dialog/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MDCDialog\", function() { return _material_dialog__WEBPACK_IMPORTED_MODULE_4__[\"MDCDialog\"]; });\n\n/* harmony import */ var _material_checkbox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @material/checkbox */ \"../node_modules/@material/checkbox/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MDCCheckbox\", function() { return _material_checkbox__WEBPACK_IMPORTED_MODULE_5__[\"MDCCheckbox\"]; });\n\n/* harmony import */ var _material_menu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @material/menu */ \"../node_modules/@material/menu/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MDCMenu\", function() { return _material_menu__WEBPACK_IMPORTED_MODULE_6__[\"MDCMenu\"]; });\n\n/* harmony import */ var _material_react_dialog__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @material/react-dialog */ \"../node_modules/@material/react-dialog/dist/index.js\");\n/* harmony import */ var _material_react_dialog__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_material_react_dialog__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony reexport (default from non-harmony) */ __webpack_require__.d(__webpack_exports__, \"Dialog\", function() { return _material_react_dialog__WEBPACK_IMPORTED_MODULE_7___default.a; });\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DialogContent\", function() { return _material_react_dialog__WEBPACK_IMPORTED_MODULE_7__[\"DialogContent\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DialogFooter\", function() { return _material_react_dialog__WEBPACK_IMPORTED_MODULE_7__[\"DialogFooter\"]; });\n\n/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./layout */ \"./js/material-components/layout/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Cell\", function() { return _layout__WEBPACK_IMPORTED_MODULE_8__[\"Cell\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Row\", function() { return _layout__WEBPACK_IMPORTED_MODULE_8__[\"Row\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Grid\", function() { return _layout__WEBPACK_IMPORTED_MODULE_8__[\"Grid\"]; });\n\n/**\n * Material components.\n *\n * Site Kit by Google, Copyright 2
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/material-components/layout/Cell.js":
|
|||
|
|
/*!***********************************************!*\
|
|||
|
|
!*** ./js/material-components/layout/Cell.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Cell; });\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__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_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"../node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n\n\n\n\n/**\n * Material UI > Layout > Cell component.\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\nfunction Cell(props) {\n var _classnames;\n var className = props.className,\n alignTop = props.alignTop,\n alignMiddle = props.alignMiddle,\n alignBottom = props.alignBottom,\n alignRight = props.alignRight,\n alignLeft = props.alignLeft,\n smAlignRight = props.smAlignRight,\n mdAlignRight = props.mdAlignRight,\n lgAlignRight = props.lgAlignRight,\n smSize = props.smSize,\n smStart = props.smStart,\n smOrder = props.smOrder,\n mdSize = props.mdSize,\n mdStart = props.mdStart,\n mdOrder = props.mdOrder,\n lgSize = props.lgSize,\n lgStart = props.lgStart,\n lgOrder = props.lgOrder,\n size = props.size,\n children = props.children,\n otherProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(props, [\"className\", \"alignTop\", \"alignMiddle\", \"alignBottom\", \"alignRight\", \"alignLeft\", \"smAlignRight\", \"mdAlignRight\", \"lgAlignRight\", \"smSize\", \"smStart\", \"smOrder\", \"mdSize\", \"mdStart\", \"mdOrder\", \"lgSize\", \"lgStart\", \"lg
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/material-components/layout/Grid.js":
|
|||
|
|
/*!***********************************************!*\
|
|||
|
|
!*** ./js/material-components/layout/Grid.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 _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"../node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n/**\n * Material UI > Layout > Grid component.\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\nvar Grid = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"forwardRef\"])(function (_ref, ref) {\n var alignLeft = _ref.alignLeft,\n fill = _ref.fill,\n className = _ref.className,\n children = _ref.children,\n collapsed = _ref.collapsed,\n otherProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref, [\"alignLeft\", \"fill\", \"className\", \"children\", \"collapsed\"]);\n return /*#__PURE__*/React.createElement(\"div\", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n className: classnames__WEBPACK_IMPORTED_MODULE_4___default()('mdc-layout-grid', className, {\n 'mdc-layout-grid--align-left': alignLeft,\n 'mdc-layout-grid--collapsed': collapsed,\n 'mdc-layout-grid--fill': fill\n })\n }, otherProps, {\n ref: ref\n }), children);\n});\nGrid.displayName = 'Grid';\nGrid.propTypes = {\n alignLeft: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,\n fill: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,\n className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,\n collapsed: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,\n children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node\n};\nGrid.defaultProps = {\n className: ''\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Grid);\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\")))//# sourceURL=[module]\n//# sourceMappingUR
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/material-components/layout/Row.js":
|
|||
|
|
/*!**********************************************!*\
|
|||
|
|
!*** ./js/material-components/layout/Row.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 _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"../node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n/**\n * Material UI > Layout > Row component.\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\nvar Row = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__[\"forwardRef\"])(function (_ref, ref) {\n var className = _ref.className,\n children = _ref.children,\n otherProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref, [\"className\", \"children\"]);\n return /*#__PURE__*/React.createElement(\"div\", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n ref: ref,\n className: classnames__WEBPACK_IMPORTED_MODULE_4___default()('mdc-layout-grid__inner', className)\n }, otherProps), children);\n});\nRow.displayName = 'Row';\nRow.propTypes = {\n className: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,\n children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node\n};\nRow.defaultProps = {\n className: ''\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Row);\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tYXRlcmlhbC1jb21wb25lbnRzL2xheW91dC9Sb3cuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9tYXRlcmlhbC1jb21wb25lbnRzL2xheW91dC9Sb3cuanM/NTY1MCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIE1hdGVyaWFsIFVJID4gTGF5b3V0ID4gUm93IGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICog
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/material-components/layout/index.js":
|
|||
|
|
/*!************************************************!*\
|
|||
|
|
!*** ./js/material-components/layout/index.js ***!
|
|||
|
|
\************************************************/
|
|||
|
|
/*! exports provided: Cell, Row, Grid */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Cell */ \"./js/material-components/layout/Cell.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Cell\", function() { return _Cell__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _Row__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Row */ \"./js/material-components/layout/Row.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Row\", function() { return _Row__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Grid */ \"./js/material-components/layout/Grid.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Grid\", function() { return _Grid__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/**\n * Material UI > Layout components.\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\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tYXRlcmlhbC1jb21wb25lbnRzL2xheW91dC9pbmRleC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL21hdGVyaWFsLWNvbXBvbmVudHMvbGF5b3V0L2luZGV4LmpzPzA1OTEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBNYXRlcmlhbCBVSSA+IExheW91dCBjb21wb25lbnRzLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuZXhwb3J0IHsgZGVmYXVsdCBhcyBDZWxsIH0gZnJvbSAnLi9DZWxsJztcbmV4cG9ydCB7IGRlZmF1bHQgYXMgUm93IH0gZnJvbSAnLi9Sb3cnO1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBHcmlkIH0gZnJvbSAnLi9HcmlkJztcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/material-components/layout/index.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 */
|
|||
|
|
/***/ (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\"
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/utils/chart.js":
|
|||
|
|
/*!***********************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/utils/chart.js ***!
|
|||
|
|
\***********************************************/
|
|||
|
|
/*! exports provided: extractAnalyticsDataForPieChart, isSingleSlice */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"extractAnalyticsDataForPieChart\", function() { return extractAnalyticsDataForPieChart; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isSingleSlice\", function() { return isSingleSlice; });\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 * Analytics utility functions.\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 * Extracts data required for a pie chart from the Analytics 4 report information.\n *\n * @since 1.96.0\n *\n * @param {Array} report The report data.\n * @param {Object} [options] Optional. Data extraction options.\n * @param {number} [options.keyColumnIndex] Optional. The number of a column to extract metrics data from.\n * @param {number} [options.maxSlices] Optional. Limit the number of slices to display.\n * @param {boolean} [options.withOthers] Optional. Whether to add \"Others\" record to the data map. Only relevant\n * if `maxSlices` is passed. If passed, the final slice will be the\n * \"Others\" slice, i.e. the number of actual row slices will be\n * `maxSlices - 1`.\n * @param {Function} [options.tooltipCallback] Optional. A callback function for tooltip column values.\n * @return {Array} Extracted data.\n */\nfunction extractAnalyticsDataForPieChart(report) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$keyColumnInd = options.keyColumnIndex,\n keyColumnIndex = _options$keyColumnInd === void 0 ? 0 : _options$keyColumnInd,\n maxSlices = options.maxSlices,\n _options$withOthers = options.withOthers,\n withOthers = _options$withOthers === void 0 ? false : _options$withOthers,\n tooltipCallback = options.tooltipCallback;\n var _ref = report || {},\n _ref$rows = _ref.rows,\n rows = _ref$rows === void 0 ? [] : _ref$rows;\n var withTooltips = typeof tooltipCallback === 'function';\n var columns = ['Source', 'Percent'];\n if (withTooltips) {\n columns.push({\n type: 'string',\n role: 'tooltip',\n p: {\n html: true\n }\n });\n }\n var dataMap = [columns];\n var currentDateRangeRows = rows.filter(function (_ref2) {\n var dimensionValues = _ref2.dimensionValues;\n return dimensionValues[1].value === 'date_range_0';\n });\n var totalCurrent = currentDateRangeRows.reduce(function (sum, row) {\n return sum + parseInt(row.metricValues[0].value, 10);\n }, 0);\n var previousDateRangeRows = rows.filter(function (_ref3) {\n var dimensionValues = _ref3.dimensionValues;\n return dimensionValues[1].value === 'date_range_1';\n });\n var totalPrevious = previousDateRangeRows.reduce(function (sum, row) {\n return sum + parseInt(row.metricValues[0].value, 10);\n }, 0);\n var hasOthers = withOthers;\n var rowsNumber = currentDateRangeRows.length;\n var othersCurrent = totalCurrent;\n var othersPrevious = totalPrevious;\n if (maxSlices > 0) {\n hasOthe
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/utils/extract-dashboard-data.js":
|
|||
|
|
/*!****************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/utils/extract-dashboard-data.js ***!
|
|||
|
|
\****************************************************************/
|
|||
|
|
/*! exports provided: extractAnalytics4DashboardData */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"extractAnalytics4DashboardData\", function() { return extractAnalytics4DashboardData; });\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 classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__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/* harmony import */ var _util_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../util/i18n */ \"./js/util/i18n.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../util */ \"./js/util/index.js\");\n/* harmony import */ var _partition_report__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./partition-report */ \"./js/modules/analytics-4/utils/partition-report.js\");\n/* harmony import */ var _parseDimensionStringToDate__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./parseDimensionStringToDate */ \"./js/modules/analytics-4/utils/parseDimensionStringToDate.js\");\n\n/**\n * Analytics-4 Dashboard data extraction functions.\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 * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n/**\n * Reduces and processes an array of analytics-4 row data.\n *\n * @since 1.96.0\n *\n * @param {Array} rows An array of rows to reduce.\n * @param {number} selectedStats The currently selected stat we need to return data for.\n * @return {Array} Array of selected stats from analytics row data.\n */\nfunction reduceAnalytics4RowsData(rows, selectedStats) {\n var dataMap = [];\n rows.forEach(function (row) {\n if (!row.metricValues) {\n return;\n }\n var value = row.metricValues[selectedStats].value;\n var dateString = row.dimensionValues[0].value;\n var date = Object(_parseDimensionStringToDate__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(dateString);\n dataMap.push([date, value]);\n });\n return dataMap;\n}\n\n/**\n * Extracts the data required from an analytics 'site-analytics' request.\n *\n * @since 1.96.0\n * @since 1.98.0 Added chartDataFormats parameter.\n *\n * @param {Object} report The data returned from the Analytics API call.\n * @param {Array} selectedStats The currently selected stat
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/utils/formatting.js":
|
|||
|
|
/*!****************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/utils/formatting.js ***!
|
|||
|
|
\****************************************************/
|
|||
|
|
/*! exports provided: decodeAmpersand, splitCategories */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"decodeAmpersand\", function() { return decodeAmpersand; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"splitCategories\", function() { return splitCategories; });\n/**\n * Formatting helpers.\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 * Converts ampersand HTML entities into characters.\n *\n * @since 1.152.0\n *\n * @param {string} input Input string.\n * @return {string} String with ampersand converted to char, if present.\n */\nfunction decodeAmpersand(input) {\n return input.replace(/&/gi, '&');\n}\n\n/**\n * Splits a string of categories separated by ; and returns an array of categories.\n * Decodes ampersands before doing so.\n *\n * @since 1.152.0\n *\n * @param {string} input Input string containing categories separated by ;.\n * @return {Array.<string>} Array of categories.\n */\nfunction splitCategories(input) {\n return decodeAmpersand(input).split('; ');\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L3V0aWxzL2Zvcm1hdHRpbmcuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L3V0aWxzL2Zvcm1hdHRpbmcuanM/MTA2YSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEZvcm1hdHRpbmcgaGVscGVycy5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDI1IEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qKlxuICogQ29udmVydHMgYW1wZXJzYW5kIEhUTUwgZW50aXRpZXMgaW50byBjaGFyYWN0ZXJzLlxuICpcbiAqIEBzaW5jZSAxLjE1Mi4wXG4gKlxuICogQHBhcmFtIHtzdHJpbmd9IGlucHV0IElucHV0IHN0cmluZy5cbiAqIEByZXR1cm4ge3N0cmluZ30gU3RyaW5nIHdpdGggYW1wZXJzYW5kIGNvbnZlcnRlZCB0byBjaGFyLCBpZiBwcmVzZW50LlxuICovXG5leHBvcnQgZnVuY3Rpb24gZGVjb2RlQW1wZXJzYW5kKCBpbnB1dCApIHtcblx0cmV0dXJuIGlucHV0LnJlcGxhY2UoIC8mYW1wOy9naSwgJyYnICk7XG59XG5cbi8qKlxuICogU3BsaXRzIGEgc3RyaW5nIG9mIGNhdGVnb3JpZXMgc2VwYXJhdGVkIGJ5IDsgYW5kIHJldHVybnMgYW4gYXJyYXkgb2YgY2F0ZWdvcmllcy5cbiAqIERlY29kZXMgYW1wZXJzYW5kcyBiZWZvcmUgZG9pbmcgc28uXG4gKlxuICogQHNpbmNlIDEuMTUyLjBcbiAqXG4gKiBAcGFyYW0ge3N0cmluZ30gaW5wdXQgSW5wdXQgc3RyaW5nIGNvbnRhaW5pbmcgY2F0ZWdvcmllcyBzZXBhcmF0ZWQgYnkgOy5cbiAqIEByZXR1cm4ge0FycmF5LjxzdHJpbmc+fSBBcnJheSBvZiBjYXRlZ29yaWVzLlxuICovXG5leHBvcnQgZnVuY3Rpb24gc3BsaXRDYXRlZ29yaWVzKCBpbnB1dCApIHtcblx0cmV0dXJuIGRlY29kZUFtcGVyc2FuZCggaW5wdXQgKS5zcGxpdCggJzsgJyApO1xufVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/utils/index.js":
|
|||
|
|
/*!***********************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/utils/index.js ***!
|
|||
|
|
\***********************************************/
|
|||
|
|
/*! exports provided: extractAnalyticsDataForPieChart, isSingleSlice, isZeroReport, normalizeReportOptions, isValidMetrics, isValidDimensions, isValidDimensionFilters, isValidMetricFilters, isValidOrders, isValidPivotsObject, extractAnalytics4DashboardData, decodeAmpersand, splitCategories */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _chart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chart */ \"./js/modules/analytics-4/utils/chart.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"extractAnalyticsDataForPieChart\", function() { return _chart__WEBPACK_IMPORTED_MODULE_0__[\"extractAnalyticsDataForPieChart\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isSingleSlice\", function() { return _chart__WEBPACK_IMPORTED_MODULE_0__[\"isSingleSlice\"]; });\n\n/* harmony import */ var _is_zero_report__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./is-zero-report */ \"./js/modules/analytics-4/utils/is-zero-report.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isZeroReport\", function() { return _is_zero_report__WEBPACK_IMPORTED_MODULE_1__[\"isZeroReport\"]; });\n\n/* harmony import */ var _report_normalization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./report-normalization */ \"./js/modules/analytics-4/utils/report-normalization.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"normalizeReportOptions\", function() { return _report_normalization__WEBPACK_IMPORTED_MODULE_2__[\"normalizeReportOptions\"]; });\n\n/* harmony import */ var _report_validation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./report-validation */ \"./js/modules/analytics-4/utils/report-validation.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isValidMetrics\", function() { return _report_validation__WEBPACK_IMPORTED_MODULE_3__[\"isValidMetrics\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isValidDimensions\", function() { return _report_validation__WEBPACK_IMPORTED_MODULE_3__[\"isValidDimensions\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isValidDimensionFilters\", function() { return _report_validation__WEBPACK_IMPORTED_MODULE_3__[\"isValidDimensionFilters\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isValidMetricFilters\", function() { return _report_validation__WEBPACK_IMPORTED_MODULE_3__[\"isValidMetricFilters\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isValidOrders\", function() { return _report_validation__WEBPACK_IMPORTED_MODULE_3__[\"isValidOrders\"]; });\n\n/* harmony import */ var _report_pivots_validation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./report-pivots-validation */ \"./js/modules/analytics-4/utils/report-pivots-validation.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isValidPivotsObject\", function() { return _report_pivots_validation__WEBPACK_IMPORTED_MODULE_4__[\"isValidPivotsObject\"]; });\n\n/* harmony import */ var _extract_dashboard_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./extract-dashboard-data */ \"./js/modules/analytics-4/utils/extract-dashboard-data.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"extractAnalytics4DashboardData\", function() { return _extract_dashboard_data__WEBPACK_IMPORTED_MODULE_5__[\"extractAnalytics4DashboardData\"]; });\n\n/* harmony import */ var _formatting__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./formatting */ \"./js/modules/analytics-4/utils/formatting.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"decodeAmpersand\", function() { return _formatting__WEBPACK_IMPORTED_MODULE_6__[\"decodeAmpersand\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"splitCategories\", function() { return _formatting__WEBPACK_IMPORTED_MODULE_6__[\"splitCategories\"]; });\n\n/**\n * Analytics 4 utility functions.\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
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/utils/is-zero-report.js":
|
|||
|
|
/*!********************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/utils/is-zero-report.js ***!
|
|||
|
|
\********************************************************/
|
|||
|
|
/*! exports provided: isZeroReport */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isZeroReport\", function() { return isZeroReport; });\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/**\n * Report utilities.\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 * Checks whether the report data has only zero values.\n *\n * @since 1.95.0\n *\n * @param {Object} report Report data object.\n * @return {(boolean|undefined)} Returns TRUE if the report data is empty or has only zero values, FALSE if there is at least one non-zero value, or undefined if the report data is not resolved yet.\n */\nfunction isZeroReport(report) {\n var _report$totals;\n if (report === undefined) {\n return undefined;\n }\n\n // If there is no rows array, no totals array, or totals is an array of empty objects, this is an empty report.\n if (!(report === null || report === void 0 ? void 0 : report.rows) || !(report === null || report === void 0 ? void 0 : report.totals) || (report === null || report === void 0 ? void 0 : (_report$totals = report.totals) === null || _report$totals === void 0 ? void 0 : _report$totals.every(lodash__WEBPACK_IMPORTED_MODULE_0__[\"isEmpty\"]))) {\n return true;\n }\n\n // false means there _is_ some report data\n return !report.totals.some(function (totals) {\n if (!totals.metricValues) {\n return false;\n }\n return totals.metricValues.some(function (_ref) {\n var value = _ref.value;\n return value > 0;\n });\n });\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L3V0aWxzL2lzLXplcm8tcmVwb3J0LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvbW9kdWxlcy9hbmFseXRpY3MtNC91dGlscy9pcy16ZXJvLXJlcG9ydC5qcz82ZDdiIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogUmVwb3J0IHV0aWxpdGllcy5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIzIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IGlzRW1wdHkgfSBmcm9tICdsb2Rhc2gnO1xuXG4vKipcbiAqIENoZWNrcyB3aGV0aGVyIHRoZSByZXBvcnQgZGF0YSBoYXMgb25seSB6ZXJvIHZhbHVlcy5cbiAqXG4gKiBAc2luY2UgMS45NS4wXG4gKlxuICogQHBhcmFtIHtPYmplY3R9IHJlcG9ydCBSZXBvcnQgZGF0YSBvYmplY3QuXG4gKiBAcmV0dXJuIHsoYm9vbGVhbnx1bmRlZmluZWQpfSBSZXR1cm5zIFRSVUUgaWYgdGhlIHJlcG9ydCBkYXRhIGlzIGVtcHR5IG9yIGhhcyBvbmx5IHplcm8gdmFsdWVzLCBGQUxTRSBpZiB0aGVyZSBpcyBhdCBsZWFzdCBvbmUgbm9uLXplcm8gdmFsdWUsIG9yIHVuZGVmaW5lZCBpZiB0aGU
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/utils/parseDimensionStringToDate.js":
|
|||
|
|
/*!********************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/utils/parseDimensionStringToDate.js ***!
|
|||
|
|
\********************************************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/**\n * `parseDimensionStringToDate` utility.\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 * Converts a dimnension string date into a Date object accounting for differences in timezones.\n *\n * @since 1.10.0\n * @since 1.123.0 Migrated from analytics to analytics-4.\n * @private\n *\n * @param {string} dateString String representing the date in the format of `YYYYMMDD`.\n * @return {(Date|boolean)} Object representing the date passed, or false if parsing fails or a non-string is passed.\n */\nvar parseDimensionStringToDate = function parseDimensionStringToDate(dateString) {\n if ('string' === typeof dateString && dateString.match(/[0-9]{8}/)) {\n var year = dateString.slice(0, 4);\n var monthIndex = Number(dateString.slice(4, 6)) - 1;\n var day = dateString.slice(6, 8);\n return new Date(year, monthIndex.toString(), day);\n }\n return false;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (parseDimensionStringToDate);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L3V0aWxzL3BhcnNlRGltZW5zaW9uU3RyaW5nVG9EYXRlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvbW9kdWxlcy9hbmFseXRpY3MtNC91dGlscy9wYXJzZURpbWVuc2lvblN0cmluZ1RvRGF0ZS5qcz84MTZkIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogYHBhcnNlRGltZW5zaW9uU3RyaW5nVG9EYXRlYCB1dGlsaXR5LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjQgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuLyoqXG4gKiBDb252ZXJ0cyBhIGRpbW5lbnNpb24gc3RyaW5nIGRhdGUgaW50byBhIERhdGUgb2JqZWN0IGFjY291bnRpbmcgZm9yIGRpZmZlcmVuY2VzIGluIHRpbWV6b25lcy5cbiAqXG4gKiBAc2luY2UgMS4xMC4wXG4gKiBAc2luY2UgMS4xMjMuMCBNaWdyYXRlZCBmcm9tIGFuYWx5dGljcyB0byBhbmFseXRpY3MtNC5cbiAqIEBwcml2YXRlXG4gKlxuICogQHBhcmFtIHtzdHJpbmd9IGRhdGVTdHJpbmcgU3RyaW5nIHJlcHJlc2VudGluZyB0aGUgZGF0ZSBpbiB0aGUgZm9ybWF0IG9mIGBZWVlZTU1ERGAuXG4gKiBAcmV0dXJuIHsoRGF0ZXxib29sZWFuKX0gT2JqZWN0IHJlcHJlc2VudGluZyB0aGUgZGF0ZSBwYXNzZWQsIG9yIGZhbHNlIGlmIHBhcnNpbmcgZmFpbHMgb3IgYSBub24tc3RyaW5nIGlzIHBhc3NlZC5cbiAqL1xuY29uc3QgcGFyc2VEaW1lbnNpb25TdHJpbmdUb0RhdGUgPSAoIGRhdGVTdHJpbmcgKSA9PiB7XG5cdGlmICggJ3N0cmluZycgPT09IHR5cGVvZiBkYXRlU3RyaW5nICYmIGRhdGVTdHJpbmcubWF0Y2goIC9bMC05XXs4fS8gKSApIHtcblx0XHRjb25zdCB5ZWFyID0gZGF0ZVN0cmluZy5zbGljZSggMCwgNCApO1xuXHRcdGNvbnN0IG1vbnRoSW5kZXggPSBOdW1iZXIoIGRhdGVTdHJpbmcuc2xpY2UoIDQsIDYgKSApIC0gMTtcblx0XHRjb25zdCBkYXkgPSBkYXRlU3RyaW5nLnNsaWNlKCA2LCA4ICk7XG5cdFx0cmV0dXJuIG5ldyBEYXRlKCB5ZWFyLCBtb250aEluZGV4LnRvU3RyaW5nKCksIGRheSApO1xuXHR9XG5cdHJldHVybiBmYWxzZTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IHBhcnNlRGltZW5zaW9uU3RyaW5nVG9EYXRlO1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/utils/partition-report.js":
|
|||
|
|
/*!**********************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/utils/partition-report.js ***!
|
|||
|
|
\**********************************************************/
|
|||
|
|
/*! exports provided: partitionAnalytics4Report */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"partitionAnalytics4Report\", function() { return partitionAnalytics4Report; });\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\n/**\n * Analytics-4 partition report utility.\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 * Splits report data into segments for current and comparison ranges.\n *\n * @since 1.96.0\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 partitionAnalytics4Report(report, _ref) {\n var dateRangeLength = _ref.dateRangeLength;\n invariant__WEBPACK_IMPORTED_MODULE_1___default()(Array.isArray(report), 'report must be an array to partition.');\n invariant__WEBPACK_IMPORTED_MODULE_1___default()(Number.isInteger(dateRangeLength) && dateRangeLength > 0, 'dateRangeLength must be a positive integer.');\n var getRowsForDateRange = function getRowsForDateRange(dateRange) {\n // Filter the report to get only rows that match the given date range.\n return report.filter(function (_ref2) {\n var _ref2$dimensionValues = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_ref2.dimensionValues, 2),\n dateValue = _ref2$dimensionValues[1];\n return dateValue.value === dateRange;\n });\n };\n\n // Use a negative date range length for reverse slicing.\n var reverseDateRangeLength = -1 * dateRangeLength;\n\n // Get the rows for the current date range and the compare date range.\n // The current range should always be sliced from the end.\n var currentRange = getRowsForDateRange('date_range_0').slice(reverseDateRangeLength);\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 var compareRange = getRowsForDateRange('date_range_1').slice(reverseDateRangeLength * 2, reverseDateRangeLength);\n return {\n currentRange: currentRange,\n compareRange: compareRange\n };\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L3V0aWxzL3BhcnRpdGlvbi1yZXBvcnQuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L3V0aWxzL3BhcnRpdGlvbi1yZXBvcnQuanM/ZWM5ZCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEFuYWx5dGljcy00IHBhcnRpdGlvbiByZXBvcnQgdXRpbGl0eS5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIzIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4w
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/utils/report-normalization.js":
|
|||
|
|
/*!**************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/utils/report-normalization.js ***!
|
|||
|
|
\**************************************************************/
|
|||
|
|
/*! exports provided: normalizeReportOptions */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"normalizeReportOptions\", function() { return normalizeReportOptions; });\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_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"../node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! memize */ \"../node_modules/memize/index.js\");\n/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(memize__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\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 * Analytics 4 report normalization utilities.\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 * Normalizes report options.\n *\n * @since 1.94.0\n *\n * @param {Object} options Report options object.\n * @return {Object} Normalized options object.\n */\nvar normalizeReportOptions = memize__WEBPACK_IMPORTED_MODULE_2___default()(function () {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n metrics = _ref.metrics,\n dimensions = _ref.dimensions,\n options = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref, [\"metrics\", \"dimensions\"]);\n return _objectSpread({\n metrics: normalizeMetrics(metrics),\n dimensions: normalizeDimensions(dimensions)\n }, options);\n});\nvar normalizeMetrics = function normalizeMetrics(metrics) {\n r
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/utils/report-pivots-validation.js":
|
|||
|
|
/*!******************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/utils/report-pivots-validation.js ***!
|
|||
|
|
\******************************************************************/
|
|||
|
|
/*! exports provided: isValidPivotsObject */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidPivotsObject\", function() { return isValidPivotsObject; });\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 _report_validation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./report-validation */ \"./js/modules/analytics-4/utils/report-validation.js\");\n/**\n * Analytics 4 pivot reporting API validation utilities.\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 * Verifies that pivot definitions are valid for a report. It should be an array\n * of objects where each object has a \"fieldNames\" property, a \"limit\" property\n * and an optional \"orderby\" property. The \"orderby\" property should be a valid\n * order definition using the `isValidOrders` function.\n *\n * @since 1.130.0\n *\n * @param {Object[]} pivots The pivots object to check.\n * @return {boolean} TRUE if pivot definitions are valid, otherwise FALSE.\n */\nfunction isValidPivotsObject(pivots) {\n if (!Array.isArray(pivots)) {\n return false;\n }\n return pivots.every(function (pivot) {\n if (!Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"isPlainObject\"])(pivot)) {\n return false;\n }\n if (!pivot.hasOwnProperty('fieldNames') || !Array.isArray(pivot.fieldNames) || pivot.fieldNames.length === 0) {\n return false;\n }\n if (!pivot.hasOwnProperty('limit') || typeof pivot.limit !== 'number') {\n return false;\n }\n if (pivot.hasOwnProperty('orderby') && !Object(_report_validation__WEBPACK_IMPORTED_MODULE_1__[\"isValidOrders\"])(pivot.orderby)) {\n return false;\n }\n return true;\n });\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L3V0aWxzL3JlcG9ydC1waXZvdHMtdmFsaWRhdGlvbi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL21vZHVsZXMvYW5hbHl0aWNzLTQvdXRpbHMvcmVwb3J0LXBpdm90cy12YWxpZGF0aW9uLmpzPzU0ZmEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBBbmFseXRpY3MgNCBwaXZvdCByZXBvcnRpbmcgQVBJIHZhbGlkYXRpb24gdXRpbGl0aWVzLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjQgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuLyoqXG4gKiBFeHRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHsgaXNQbGFpbk9iamVjdCB9IGZyb20gJ2xvZGFzaCc7XG5cbi8qKlxuICogSW50ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IGlzVmFsaWRPcmRlcnMgfSBmcm9tICcuL3JlcG9ydC12Y
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/utils/report-validation.js":
|
|||
|
|
/*!***********************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/utils/report-validation.js ***!
|
|||
|
|
\***********************************************************/
|
|||
|
|
/*! exports provided: isValidMetrics, isValidDimensions, isValidDimensionFilters, isValidMetricFilters, isValidOrders */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidMetrics\", function() { return isValidMetrics; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidDimensions\", function() { return isValidDimensions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidDimensionFilters\", function() { return isValidDimensionFilters; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidMetricFilters\", function() { return isValidMetricFilters; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidOrders\", function() { return isValidOrders; });\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 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 _util_report_validation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../util/report-validation */ \"./js/util/report-validation.js\");\n\n/**\n * Analytics 4 reporting API validation utilities.\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/* eslint complexity: [ \"error\", 17 ] */\n\n/**\n * External dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n/**\n * Verifies that provided metrics match allowed values. Metrics can be a string,\n * an array of string, an array of objects or mix of strings and objects.\n * Objects must have a \"name\" property that matches the regex `/^[a-zA-Z0-9_]+$/`\n * to be valid. Objects can optionally include an \"expression\" property.\n *\n * When a single string is provided, it must be a metric name or a comma-separated\n * list of metric names.\n *\n * A metric name must match the regular expression `/^[a-zA-Z0-9_]+$/`.\n *\n * @since 1.94.0\n * @since 1.98.0 Added a regular expression to validate metric names, in keeping with the GA4 API.\n *\n * @param {string|string[]|Object|Object[]} metrics The metrics to check.\n * @return {boolean} TRUE if metrics are valid, otherwise FALSE.\n */\nfunction isValidMetrics(metrics) {\n var isValidName = function isValidName(metricName) {\n return typeof metricName === 'string' && /^[a-zA-Z0-9_]+$/.test(metricName);\n };\n if (typeof metrics === 'string') {\n var metricNames = metrics.split(',');\n return metricNames.every(isValidName);\n }\n return Object(_util_report_validation__WEBPACK_IMPORTED_MODULE_2__[\"isValidStringsOrObjects\"])(metrics, function (metric) {\n var validName = metric.hasOwnProperty('name') && isValidName(metric.name);\n\n // 'expression' is optional, so if it wasn't provided, we can\n // return early.\n if (!metric.hasOwnProperty('expression')) {\n return validName;\n }\n\n // 'expression', if provided, must be a string.\n var validExpression = typeof metric.expression === 'string';\n return validName && validExpression;\n }, isValidName);\n}\n\n
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/common/ActivateAnalyticsCTA.js":
|
|||
|
|
/*!*****************************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/common/ActivateAnalyticsCTA.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return ActivateAnalyticsCTA; });\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 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 _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _svg_graphics_cta_graph_visitors_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../svg/graphics/cta-graph-visitors.svg */ \"./svg/graphics/cta-graph-visitors.svg\");\n/* harmony import */ var _svg_graphics_cta_graph_goals_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../svg/graphics/cta-graph-goals.svg */ \"./svg/graphics/cta-graph-goals.svg\");\n/* harmony import */ var _components_ActivateAnalyticsCTA__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../components/ActivateAnalyticsCTA */ \"./js/components/ActivateAnalyticsCTA.js\");\n/* harmony import */ var _components_PreviewGraph__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../components/PreviewGraph */ \"./js/components/PreviewGraph.js\");\n\n/**\n * Search Funnel Widget ActivateAnalyticsCTA component.\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 * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\nfunction ActivateAnalyticsCTA(_ref) {\n var title = _ref.title;\n return /*#__PURE__*/React.createElement(_components_ActivateAnalyticsCTA__WEBPACK_IMPORTED_MODULE_5__[\"default\"], null, /*#__PURE__*/React.createElement(_components_PreviewGraph__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('Unique visitors from Search', 'google-site-kit'),\n GraphSVG: _svg_graphics_cta_graph_visitors_svg__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n }), /*#__PURE__*/React.createElement(_components_PreviewGraph__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n title: title,\n GraphSVG: _svg_graphics_cta_graph_goals_svg__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n }));\n}\nActivateAnalyticsCTA.propTypes = {\n title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL2NvbXBvbmVudHMvY29tbW9uL0FjdGl2YXRlQW5hbHl0aWNzQ1RBLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvbW9kdWxlcy9zZWFyY2gtY29uc29sZS9jb21wb25lbnRzL2NvbW1vbi9BY3RpdmF0ZUFuYWx5dGljc0NUQS5qcz85MGNmIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogU2VhcmNoIEZ1bm5lbCBXaWRnZXQgQWN0aXZhdGVBbmFseX
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/common/AnalyticsStats.js":
|
|||
|
|
/*!***********************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/common/AnalyticsStats.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return AnalyticsStats; });\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_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"../node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_toArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/toArray */ \"../node_modules/@babel/runtime/helpers/toArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toArray__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__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 _material_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../material-components */ \"./js/material-components/index.js\");\n/* harmony import */ var _googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _analytics_4_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../analytics-4/utils */ \"./js/modules/analytics-4/utils/index.js\");\n/* harmony import */ var _components_GoogleChart__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../components/GoogleChart */ \"./js/components/GoogleChart/index.js\");\n/* harmony import */ var _analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../analytics-4/datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _hooks_useViewOnly__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../hooks/useViewOnly */ \"./js/hooks/useViewOnly.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../util */ \"./js/util/index.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/common/PropertySelect.js":
|
|||
|
|
/*!***********************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/common/PropertySelect.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return PropertySelect; });\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 _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 googlesitekit_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__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 _datastore_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../datastore/constants */ \"./js/modules/search-console/datastore/constants.js\");\n/* harmony import */ var _util_tracking__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../util/tracking */ \"./js/util/tracking/index.js\");\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../hooks/useViewContext */ \"./js/hooks/useViewContext.js\");\n\n/**\n * PropertySelect component.\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/**\n * Internal dependencies\n */\n\n\n\n\n\nfunction PropertySelect(_ref) {\n var hasModuleAccess = _ref.hasModuleAccess;\n var viewContext = Object(_hooks_useViewContext__WEBPACK_IMPORTED_MODULE_6__[\"default\"])();\n var propertyID = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n return select(_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"MODULES_SEARCH_CONSOLE\"]).getPropertyID();\n });\n var matchedProperties = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n return select(_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"MODULES_SEARCH_CONSOLE\"]).getMatchedProperties();\n });\n var hasResolvedProperties = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n return select(_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"MODULES_SEARCH_CONSOLE\"]).hasFinishedResolution('getMatchedProperties');\n });\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useDispatch\"])(_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"MODULES_SEARCH_CONSOLE\"]),\n setPropertyID = _useDispatch.setPropertyID;\n var onChange = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function (index, item) {\n var newPropertyID = item.dataset.value;\n if (propertyID !== newPropertyID) {\n setPropertyID(newPropertyID);\n Object(_util_tracking__WEBPACK_IMPORTED_M
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/common/ZeroDataMessage.js":
|
|||
|
|
/*!************************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/common/ZeroDataMessage.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 ZeroDataMessage; });\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__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 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 _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/**\n * ZeroDataMessage component.\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 * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\nfunction ZeroDataMessage(_ref) {\n var skipPrefix = _ref.skipPrefix;\n var url = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_SITE\"]).getCurrentEntityURL();\n });\n if (skipPrefix) {\n return url ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Your page hasn’t appeared in Search yet', 'google-site-kit') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Your site hasn’t appeared in Search yet', 'google-site-kit');\n }\n return url ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('No data to display: your page hasn’t appeared in Search yet', 'google-site-kit') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('No data to display: your site hasn’t appeared in Search yet', 'google-site-kit');\n}\nZeroDataMessage.propTypes = {\n skipPrefix: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL2NvbXBvbmVudHMvY29tbW9uL1plcm9EYXRhTWVzc2FnZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL21vZHVsZXMvc2VhcmNoLWNvbnNvbGUvY29tcG9uZW50cy9jb21tb24vWmVyb0RhdGFNZXNzYWdlLmpzPzNjOWMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBaZXJvRGF0YU1lc3NhZ2UgY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGR
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/common/index.js":
|
|||
|
|
/*!**************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/common/index.js ***!
|
|||
|
|
\**************************************************************/
|
|||
|
|
/*! exports provided: PropertySelect, ZeroDataMessage, ActivateAnalyticsCTA, AnalyticsStats */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _PropertySelect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PropertySelect */ \"./js/modules/search-console/components/common/PropertySelect.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PropertySelect\", function() { return _PropertySelect__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _ZeroDataMessage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ZeroDataMessage */ \"./js/modules/search-console/components/common/ZeroDataMessage.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ZeroDataMessage\", function() { return _ZeroDataMessage__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _ActivateAnalyticsCTA__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ActivateAnalyticsCTA */ \"./js/modules/search-console/components/common/ActivateAnalyticsCTA.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ActivateAnalyticsCTA\", function() { return _ActivateAnalyticsCTA__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _AnalyticsStats__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AnalyticsStats */ \"./js/modules/search-console/components/common/AnalyticsStats.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"AnalyticsStats\", function() { return _AnalyticsStats__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/**\n * Search Console common components.\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\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL2NvbXBvbmVudHMvY29tbW9uL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvbW9kdWxlcy9zZWFyY2gtY29uc29sZS9jb21wb25lbnRzL2NvbW1vbi9pbmRleC5qcz8yMGM3Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogU2VhcmNoIENvbnNvbGUgY29tbW9uIGNvbXBvbmVudHMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG5leHBvcnQgeyBkZWZhdWx0IGFzIFByb3BlcnR5U2VsZWN0IH0gZnJvbSAnLi9Qcm9wZXJ0eVNlbGVjdCc7XG5leHBvcnQgeyBkZWZhdWx0IGFzIFplcm9EYXRhTWVzc2FnZSB9IGZyb20gJy4vWmVyb0RhdGFNZXNzYWdlJztcbmV4cG9ydCB7IGRlZmF1bHQgYXMgQWN0aXZhdGVBbmFseXRpY3NDVEEgfSBmcm9tICcuL0FjdGl2YXRlQW5hbHl0aWNzQ1RBJztcbmV4cG9ydCB7IGRlZmF1bHQgYXMgQW5hbHl0aWNzU3RhdHMgfSBmcm9tICcuL0FuYWx5dGljc1N0YXRzJztcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/dashboard/DashboardPopularKeywordsWidget.js":
|
|||
|
|
/*!******************************************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/dashboard/DashboardPopularKeywordsWidget.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return DashboardPopularKeywordsWidget; });\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_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__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 _datastore_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../datastore/constants */ \"./js/modules/search-console/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _components_PreviewTable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../components/PreviewTable */ \"./js/components/PreviewTable.js\");\n/* harmony import */ var _components_SourceLink__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../components/SourceLink */ \"./js/components/SourceLink.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util */ \"./js/modules/search-console/util/index.js\");\n/* harmony import */ var _components_TableOverflowContainer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../components/TableOverflowContainer */ \"./js/components/TableOverflowContainer.js\");\n/* harmony import */ var _components_ReportTable__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../components/ReportTable */ \"./js/components/ReportTable.js\");\n/* harmony import */ var _components_Link__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../components/Link */ \"./js/components/Link.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../util */ \"./js/util/index.js\");\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../common */ \"./js/modules/search-console/components/common/index.js\");\n/* harmony import */ var _hooks_useViewOnly__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../hooks/useViewOnly */ \"./js/hooks/useViewOnly.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[
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/CreateConversionCTA.js":
|
|||
|
|
/*!*****************************************************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/CreateConversionCTA.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return CreateConversionCTA; });\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 react_use__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-use */ \"../node_modules/react-use/esm/index.js\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__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 googlesitekit_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _components_PreviewGraph__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../components/PreviewGraph */ \"./js/components/PreviewGraph.js\");\n/* harmony import */ var _svg_graphics_cta_graph_goals_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../svg/graphics/cta-graph-goals.svg */ \"./svg/graphics/cta-graph-goals.svg\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../util */ \"./js/util/index.js\");\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../hooks/useViewContext */ \"./js/hooks/useViewContext.js\");\n/* harmony import */ var _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n\n/**\n * CreateConversionCTA component for SearchFunnelWidgetGA4.\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 * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\nfunction CreateConversionCTA() {\n var viewContext = Object(_hooks_useViewContext__WEBPACK_IMPORTED_MODULE_8__[\"default\"])();\n var eventCategory = \"\".concat(viewContext, \"_search-traffic-widget\");\n var createConversionEventsSupportURL = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_9__[\"CORE_SITE\"]).getGoogleSupportURL({\n path: '/analytics/answer/12844695'\n });\n });\n var handleOnClick = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function () {\n Object(_util__WEBPACK_IMPORTED_MODULE_7__[\"trackEvent\"])(eventCategory, 'click_ga4_conversions_cta');\n }, [eventCategory]);\n Object(react_use__WEBPAC
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/Footer.js":
|
|||
|
|
/*!****************************************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/Footer.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 _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_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/url */ \"../node_modules/@wordpress/url/build-module/index.js\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _datastore_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../datastore/constants */ \"./js/modules/search-console/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../util */ \"./js/modules/search-console/util/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../util */ \"./js/util/index.js\");\n/* harmony import */ var _analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../analytics-4/datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _components_SourceLink__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../components/SourceLink */ \"./js/components/SourceLink.js\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _hooks_useViewOnly__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../hooks/useViewOnly */ \"./js/hooks/useViewOnly.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)); }
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/Header.js":
|
|||
|
|
/*!****************************************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/Header.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 _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 _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _googlesitekit_widgets_components_WidgetHeaderTitle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../googlesitekit/widgets/components/WidgetHeaderTitle */ \"./js/googlesitekit/widgets/components/WidgetHeaderTitle.js\");\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\n/**\n * Header component for SearchFunnelWidgetGA4.\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 * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\nfunction Header() {\n var currentDayCount = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_2__[\"CORE_USER\"]).getDateRangeNumberOfDays();\n });\n return /*#__PURE__*/React.createElement(_googlesitekit_widgets_components_WidgetHeaderTitle__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"sprintf\"])(/* translators: %s: number of days */\n Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"_n\"])('Search traffic over the last %s day', 'Search traffic over the last %s days', currentDayCount, 'google-site-kit'), currentDayCount)\n });\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (Header);\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL2NvbXBvbmVudHMvZGFzaGJvYXJkL1NlYXJjaEZ1bm5lbFdpZGdldEdBNC9IZWFkZXIuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL2NvbXBvbmVudHMvZGFzaGJvYXJkL1NlYXJjaEZ1bm5lbFdpZGdldEdBNC9IZWFkZXIuanM/YWJiNyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEhlYWRlciBjb21wb25lbnQgZm9yIFNlYXJjaEZ1bm5lbFdpZGdldEdBNC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDI0IEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNv
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/Overview/OptionalCells.js":
|
|||
|
|
/*!********************************************************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/Overview/OptionalCells.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return OptionalCells; });\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__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/* 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 _material_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../material-components */ \"./js/material-components/index.js\");\n/* harmony import */ var _googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../common */ \"./js/modules/search-console/components/common/index.js\");\n/* harmony import */ var _CreateConversionCTA__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../CreateConversionCTA */ \"./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/CreateConversionCTA.js\");\n/* harmony import */ var _components_RecoverableModules__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../../components/RecoverableModules */ \"./js/components/RecoverableModules.js\");\n/* harmony import */ var _hooks_useBreakpoint__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../../hooks/useBreakpoint */ \"./js/hooks/useBreakpoint.js\");\n\n\n/**\n * OptionalCells component for SearchFunnelWidgetGA4.\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 * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\nfunction OptionalCells(_ref) {\n var canViewSharedAnalytics4 = _ref.canViewSharedAnalytics4,\n error = _ref.error,\n halfCellProps = _ref.halfCellProps,\n quarterCellProps = _ref.quarterCellProps,\n showGA4 = _ref.showGA4,\n showConversionsCTA = _ref.showConversionsCTA,\n showRecoverableGA4 = _ref.showRecoverable
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/Overview/index.js":
|
|||
|
|
/*!************************************************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/Overview/index.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Overview; });\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__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_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 _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__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_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/* 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 _material_components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../material-components */ \"./js/material-components/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../util */ \"./js/modules/search-console/util/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../../util */ \"./js/util/index.js\");\n/* harmony import */ var _googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../../googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _datas
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/SearchConsoleStats.js":
|
|||
|
|
/*!****************************************************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/SearchConsoleStats.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SearchConsoleStats; });\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_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"../node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_toArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/toArray */ \"../node_modules/@babel/runtime/helpers/toArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toArray__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../util */ \"./js/modules/search-console/util/index.js\");\n/* harmony import */ var _material_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../material-components */ \"./js/material-components/index.js\");\n/* harmony import */ var _util_partition_report__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../util/partition-report */ \"./js/util/partition-report.js\");\n/* harmony import */ var _components_GoogleChart__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../components/GoogleChart */ \"./js/components/GoogleChart/index.js\");\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_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 * SearchConsoleStats component for SearchFunnelWidgetGA4.\n *\n * Site Kit by Google, Copyright 2024 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/index.js":
|
|||
|
|
/*!***************************************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/index.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 _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_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"../node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__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 _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/url */ \"../node_modules/@wordpress/url/build-module/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/* harmony import */ var _datastore_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../datastore/constants */ \"./js/modules/search-console/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../util */ \"./js/util/index.js\");\n/* harmony import */ var _components_PreviewBlock__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../components/PreviewBlock */ \"./js/components/PreviewBlock.js\");\n/* harmony import */ var _Header__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Header */ \"./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/Header.js\");\n/* harmony import */ var _Footer__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Footer */ \"./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/Footer.js\");\n/* harmony import */ var _Overview__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Overview */ \"./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/Overview/index.js\");\n/* harmony import */ var _Sear
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/settings/SettingsEdit.js":
|
|||
|
|
/*!***********************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/settings/SettingsEdit.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SettingsEdit; });\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 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 googlesitekit_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _datastore_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../datastore/constants */ \"./js/modules/search-console/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _SettingsForm__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SettingsForm */ \"./js/modules/search-console/components/settings/SettingsForm.js\");\n\n/**\n * Search Console Settings Edit component.\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\nfunction SettingsEdit() {\n // We need this useSelect hook to trigger starting getMatchedProperties resolution which is needed to properly\n // display the progress bar while matched properties are being loaded.\n Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useSelect\"])(function (select) {\n return select(_datastore_constants__WEBPACK_IMPORTED_MODULE_3__[\"MODULES_SEARCH_CONSOLE\"]).getMatchedProperties();\n });\n var isDoingSubmitChanges = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useSelect\"])(function (select) {\n return select(_datastore_constants__WEBPACK_IMPORTED_MODULE_3__[\"MODULES_SEARCH_CONSOLE\"]).isDoingSubmitChanges();\n });\n var hasResolvedProperties = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useSelect\"])(function (select) {\n return select(_datastore_constants__WEBPACK_IMPORTED_MODULE_3__[\"MODULES_SEARCH_CONSOLE\"]).hasFinishedResolution('getMatchedProperties');\n });\n var hasSearchConsoleAccess = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"CORE_MODULES\"]).hasModuleOwnershipOrAccess('search-console');\n });\n var viewComponent;\n if (isDoingSubmitChanges || !hasResolvedProperties || hasSearchConsoleAccess === undefined) {\n viewComponent = /*#__PURE__*/React.createElement(googlesitekit_components__WEBPACK_IMPORTED_MODULE_2__[\"ProgressBar\"], null);\n } else {\n viewComponent = /*#__PURE__*/React.createElement(_SettingsForm__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n hasModuleAccess: hasSearchConsoleAccess\n });\n }\
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/settings/SettingsForm.js":
|
|||
|
|
/*!***********************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/settings/SettingsForm.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SettingsForm; });\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 _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 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 _datastore_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../datastore/constants */ \"./js/modules/search-console/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _common___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/ */ \"./js/modules/search-console/components/common/index.js\");\n/* harmony import */ var _components_StoreErrorNotices__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../components/StoreErrorNotices */ \"./js/components/StoreErrorNotices.js\");\n/* harmony import */ var _components_settings_EntityOwnershipChangeNotice__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../components/settings/EntityOwnershipChangeNotice */ \"./js/components/settings/EntityOwnershipChangeNotice.js\");\n/* harmony import */ var _components_SettingsNotice_SettingsNotice__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../components/SettingsNotice/SettingsNotice */ \"./js/components/SettingsNotice/SettingsNotice.js\");\n/* harmony import */ var _components_SettingsNotice__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../components/SettingsNotice */ \"./js/components/SettingsNotice/index.js\");\n/* harmony import */ var _assets_svg_icons_warning_icon_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../../assets/svg/icons/warning-icon.svg */ \"./svg/icons/warning-icon.svg\");\n\n/**\n * SettingsForm component.\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/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\n\nfunction SettingsForm(_ref) {\n var _module$owner;\n var hasModuleAccess = _ref.hasModuleAccess;\n var module = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"CORE_MODULES\"]).getModule('search-console');\n });\n var formattedOwnerName = (module === null || module === void 0 ? void 0 : (_module$owner = module.owner) === null || _module$owner === void 0 ? void 0 : _module$owner.login) ? \"<strong>\".concat(module.owner.login, \"</strong>\") : Object(_wordpress_i18n__WEBPACK_IMPO
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/settings/SettingsView.js":
|
|||
|
|
/*!***********************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/settings/SettingsView.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return SettingsView; });\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 _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 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 _datastore_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../datastore/constants */ \"./js/modules/search-console/datastore/constants.js\");\n/* harmony import */ var _components_DisplaySetting__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../components/DisplaySetting */ \"./js/components/DisplaySetting.js\");\n\n/**\n * Search Console Settings View component\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\nfunction SettingsView() {\n var propertyID = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"useSelect\"])(function (select) {\n return select(_datastore_constants__WEBPACK_IMPORTED_MODULE_3__[\"MODULES_SEARCH_CONSOLE\"]).getPropertyID();\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-settings-module__meta-item\"\n }, /*#__PURE__*/React.createElement(\"h5\", {\n className: \"googlesitekit-settings-module__meta-item-type\"\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Connected Property', 'google-site-kit')), /*#__PURE__*/React.createElement(\"p\", {\n className: \"googlesitekit-settings-module__meta-item-data\"\n }, /*#__PURE__*/React.createElement(_components_DisplaySetting__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n value: propertyID\n })));\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL2NvbXBvbmVudHMvc2V0dGluZ3MvU2V0dGluZ3NWaWV3LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvbW9kdWxlcy9zZWFyY2gtY29uc29sZS9jb21wb25lbnRzL3NldHRpbmdzL1NldHRpbmdzVmlldy5qcz9iMWM4Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogU2VhcmNoIENvbnNvbGUgU2V0dGluZ3MgVmlldyBjb21wb25lbnRcbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKi
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/settings/index.js":
|
|||
|
|
/*!****************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/settings/index.js ***!
|
|||
|
|
\****************************************************************/
|
|||
|
|
/*! exports provided: SettingsView, SettingsForm, SettingsEdit */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _SettingsView__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SettingsView */ \"./js/modules/search-console/components/settings/SettingsView.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"SettingsView\", function() { return _SettingsView__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _SettingsForm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SettingsForm */ \"./js/modules/search-console/components/settings/SettingsForm.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"SettingsForm\", function() { return _SettingsForm__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _SettingsEdit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SettingsEdit */ \"./js/modules/search-console/components/settings/SettingsEdit.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"SettingsEdit\", function() { return _SettingsEdit__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/**\n * Search Console Settings components.\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\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL2NvbXBvbmVudHMvc2V0dGluZ3MvaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL2NvbXBvbmVudHMvc2V0dGluZ3MvaW5kZXguanM/OTk0MiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFNlYXJjaCBDb25zb2xlIFNldHRpbmdzIGNvbXBvbmVudHMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG5leHBvcnQgeyBkZWZhdWx0IGFzIFNldHRpbmdzVmlldyB9IGZyb20gJy4vU2V0dGluZ3NWaWV3JztcbmV4cG9ydCB7IGRlZmF1bHQgYXMgU2V0dGluZ3NGb3JtIH0gZnJvbSAnLi9TZXR0aW5nc0Zvcm0nO1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBTZXR0aW5nc0VkaXQgfSBmcm9tICcuL1NldHRpbmdzRWRpdCc7XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/modules/search-console/components/settings/index.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/components/widgets/PopularKeywordsWidget.js":
|
|||
|
|
/*!*******************************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/components/widgets/PopularKeywordsWidget.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return PopularKeywordsWidget; });\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_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__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/* 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 _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _datastore_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../datastore/constants */ \"./js/modules/search-console/datastore/constants.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util */ \"./js/modules/search-console/util/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../util */ \"./js/util/index.js\");\n/* harmony import */ var _components_Link__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../components/Link */ \"./js/components/Link.js\");\n/* harmony import */ var _hooks_useViewOnly__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../hooks/useViewOnly */ \"./js/hooks/useViewOnly.js\");\n/* harmony import */ var _components_KeyMetrics__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../components/KeyMetrics */ \"./js/components/KeyMetrics/index.js\");\n/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../common */ \"./js/modules/search-console/components/common/index.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 * Popul
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/datastore/base.js":
|
|||
|
|
/*!*****************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/datastore/base.js ***!
|
|||
|
|
\*****************************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var googlesitekit_modules__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! googlesitekit-modules */ \"googlesitekit-modules\");\n/* harmony import */ var googlesitekit_modules__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_modules__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ \"./js/modules/search-console/datastore/constants.js\");\n/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./settings */ \"./js/modules/search-console/datastore/settings.js\");\n/**\n * `modules/search-console` base 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\nvar baseModuleStore = googlesitekit_modules__WEBPACK_IMPORTED_MODULE_0___default.a.createModuleStore('search-console', {\n ownedSettingsSlugs: ['propertyID'],\n storeName: _constants__WEBPACK_IMPORTED_MODULE_1__[\"MODULES_SEARCH_CONSOLE\"],\n settingSlugs: ['propertyID', 'ownerID'],\n requiresSetup: false,\n submitChanges: _settings__WEBPACK_IMPORTED_MODULE_2__[\"submitChanges\"],\n validateCanSubmitChanges: _settings__WEBPACK_IMPORTED_MODULE_2__[\"validateCanSubmitChanges\"]\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (baseModuleStore);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL2RhdGFzdG9yZS9iYXNlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvbW9kdWxlcy9zZWFyY2gtY29uc29sZS9kYXRhc3RvcmUvYmFzZS5qcz8zNWNiIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogYG1vZHVsZXMvc2VhcmNoLWNvbnNvbGVgIGJhc2UgZGF0YSBzdG9yZVxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuLyoqXG4gKiBJbnRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IE1vZHVsZXMgZnJvbSAnZ29vZ2xlc2l0ZWtpdC1tb2R1bGVzJztcbmltcG9ydCB7IE1PRFVMRVNfU0VBUkNIX0NPTlNPTEUgfSBmcm9tICcuL2NvbnN0YW50cyc7XG5pbXBvcnQgeyBzdWJtaXRDaGFuZ2VzLCB2YWxpZGF0ZUNhblN1Ym1pdENoYW5nZXMgfSBmcm9tICcuL3NldHRpbmdzJztcblxuY29uc3QgYmFzZU1vZHVsZVN0b3JlID0gTW9kdWxlcy5jcmVhdGVNb2R1bGVTdG9yZSggJ3NlYXJjaC1jb25zb2xlJywge1xuXHRvd25lZFNldHRpbmdzU2x1Z3M6IFsgJ3Byb3BlcnR5SUQnIF0sXG5cdHN0b3JlTmFtZTogTU9EVUxFU19TRUFSQ0hfQ09OU09MRSxcblx0c2V0dGluZ1NsdWdzOiBbICdwcm9wZXJ0eUlEJywgJ293bmVySUQnIF0sXG5cdHJlcXVpcmVzU2V0dXA6IGZhbHNlLFxuXHRzdWJtaXRDaGFuZ2VzLFxuXHR2YWxpZGF0ZUNhblN1Ym1pdENoYW5nZXMsXG59ICk7XG5cbmV4cG9ydCBkZWZhdWx0IGJhc2VNb2R1bGVTdG9yZTtcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Q
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/datastore/constants.js":
|
|||
|
|
/*!**********************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/datastore/constants.js ***!
|
|||
|
|
\**********************************************************/
|
|||
|
|
/*! exports provided: MODULES_SEARCH_CONSOLE, DATE_RANGE_OFFSET */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"MODULES_SEARCH_CONSOLE\", function() { return MODULES_SEARCH_CONSOLE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DATE_RANGE_OFFSET\", function() { return DATE_RANGE_OFFSET; });\n/**\n * `modules/search-console` 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_SEARCH_CONSOLE = 'modules/search-console';\n\n// Date range offset days for Search Console report requests.\nvar DATE_RANGE_OFFSET = 1;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL2RhdGFzdG9yZS9jb25zdGFudHMuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL2RhdGFzdG9yZS9jb25zdGFudHMuanM/MGNlMyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIGBtb2R1bGVzL3NlYXJjaC1jb25zb2xlYCBkYXRhIHN0b3JlIGNvbnN0YW50cy5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbmV4cG9ydCBjb25zdCBNT0RVTEVTX1NFQVJDSF9DT05TT0xFID0gJ21vZHVsZXMvc2VhcmNoLWNvbnNvbGUnO1xuXG4vLyBEYXRlIHJhbmdlIG9mZnNldCBkYXlzIGZvciBTZWFyY2ggQ29uc29sZSByZXBvcnQgcmVxdWVzdHMuXG5leHBvcnQgY29uc3QgREFURV9SQU5HRV9PRkZTRVQgPSAxO1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/modules/search-console/datastore/constants.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/datastore/index.js":
|
|||
|
|
/*!******************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/datastore/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/* 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 _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ \"./js/modules/search-console/datastore/constants.js\");\n/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./base */ \"./js/modules/search-console/datastore/base.js\");\n/* harmony import */ var _report__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./report */ \"./js/modules/search-console/datastore/report.js\");\n/* harmony import */ var _service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./service */ \"./js/modules/search-console/datastore/service.js\");\n/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./settings */ \"./js/modules/search-console/datastore/settings.js\");\n/* harmony import */ var _properties__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./properties */ \"./js/modules/search-console/datastore/properties.js\");\n/**\n * `modules/search-console` 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\nvar store = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_0__[\"combineStores\"])(_base__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _report__WEBPACK_IMPORTED_MODULE_3__[\"default\"], _service__WEBPACK_IMPORTED_MODULE_4__[\"default\"], _settings__WEBPACK_IMPORTED_MODULE_5__[\"default\"], _properties__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\nvar initialState = store.initialState;\nvar actions = store.actions;\nvar controls = store.controls;\nvar reducer = store.reducer;\nvar resolvers = store.resolvers;\nvar selectors = store.selectors;\nvar registerStore = function registerStore(registry) {\n registry.registerStore(_constants__WEBPACK_IMPORTED_MODULE_1__[\"MODULES_SEARCH_CONSOLE\"], store);\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (store);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL2RhdGFzdG9yZS9pbmRleC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL21vZHVsZXMvc2VhcmNoLWNvbnNvbGUvZGF0YXN0b3JlL2luZGV4LmpzPzdiNGQiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBgbW9kdWxlcy9zZWFyY2gtY29uc29sZWAgZGF0YSBzdG9yZVxuICpcbiAq
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/datastore/properties.js":
|
|||
|
|
/*!***********************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/datastore/properties.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_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 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 _googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constants */ \"./js/modules/search-console/datastore/constants.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 * `modules/search-console` data store: properties.\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 O
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/datastore/report.js":
|
|||
|
|
/*!*******************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/datastore/report.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_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 _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./constants */ \"./js/modules/search-console/datastore/constants.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../util */ \"./js/util/index.js\");\n/* harmony import */ var _googlesitekit_data_create_fetch_store__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../googlesitekit/data/create-fetch-store */ \"./js/googlesitekit/data/create-fetch-store.js\");\n/* harmony import */ var _util_report_validation__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../util/report-validation */ \"./js/util/report-validation.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/datastore/service.js":
|
|||
|
|
/*!********************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/datastore/service.js ***!
|
|||
|
|
\********************************************************/
|
|||
|
|
/*! exports provided: 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__, \"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_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"../node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/url */ \"../node_modules/@wordpress/url/build-module/index.js\");\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/modules/search-console/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../util */ \"./js/util/index.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 * `modules/search-console` data store: service.\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\n\nvar selectors = {\n /**\n * Gets a URL to the service
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/datastore/settings.js":
|
|||
|
|
/*!*********************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/datastore/settings.js ***!
|
|||
|
|
\*********************************************************/
|
|||
|
|
/*! exports provided: INVARIANT_INVALID_PROPERTY_SELECTION, default, submitChanges, validateCanSubmitChanges */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"INVARIANT_INVALID_PROPERTY_SELECTION\", function() { return INVARIANT_INVALID_PROPERTY_SELECTION; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"submitChanges\", function() { return submitChanges; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"validateCanSubmitChanges\", function() { return validateCanSubmitChanges; });\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 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 _googlesitekit_data_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../googlesitekit/data/utils */ \"./js/googlesitekit/data/utils.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ \"./js/modules/search-console/util/index.js\");\n/* harmony import */ var _googlesitekit_data_create_settings_store__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../googlesitekit/data/create-settings-store */ \"./js/googlesitekit/data/create-settings-store.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./constants */ \"./js/modules/search-console/datastore/constants.js\");\n\n\n/**\n * `modules/search-console` data store: 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 * Internal dependencies\n */\n\n\n\n\n\n\n\n// Invariant error messages.\nvar INVARIANT_INVALID_PROPERTY_SELECTION = 'a valid propertyID is required to submit changes';\nvar store = {\n selectors: {\n areSettingsEditDependenciesLoaded: Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"createRegistrySelector\"])(function (select) {\n return functio
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/index.js":
|
|||
|
|
/*!********************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/index.js ***!
|
|||
|
|
\********************************************/
|
|||
|
|
/*! exports provided: registerStore, registerModule, registerWidgets */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"registerModule\", function() { return registerModule; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"registerWidgets\", function() { return registerWidgets; });\n/* harmony import */ var _components_settings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/settings */ \"./js/modules/search-console/components/settings/index.js\");\n/* harmony import */ var _components_dashboard_DashboardPopularKeywordsWidget__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/dashboard/DashboardPopularKeywordsWidget */ \"./js/modules/search-console/components/dashboard/DashboardPopularKeywordsWidget.js\");\n/* harmony import */ var _components_dashboard_SearchFunnelWidgetGA4__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/dashboard/SearchFunnelWidgetGA4 */ \"./js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/index.js\");\n/* harmony import */ var _googlesitekit_widgets_default_areas__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../googlesitekit/widgets/default-areas */ \"./js/googlesitekit/widgets/default-areas.js\");\n/* harmony import */ var _svg_graphics_search_console_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../svg/graphics/search-console.svg */ \"./svg/graphics/search-console.svg\");\n/* harmony import */ var _datastore_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./datastore/constants */ \"./js/modules/search-console/datastore/constants.js\");\n/* harmony import */ var _components_widgets_PopularKeywordsWidget__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/widgets/PopularKeywordsWidget */ \"./js/modules/search-console/components/widgets/PopularKeywordsWidget.js\");\n/* harmony import */ var _googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _datastore__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./datastore */ \"./js/modules/search-console/datastore/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"registerStore\", function() { return _datastore__WEBPACK_IMPORTED_MODULE_8__[\"registerStore\"]; });\n\n/**\n * Search Console module initialization.\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\nvar registerModule = function registerModule(modules) {\n modules.registerModule('search-console', {\n storeName: _datastore_constants__WEBPACK_IMPORTED_MODULE_5__[\"MODULES_SEARCH_CONSOLE\"],\n SettingsEditComponent: _components_settings__WEBPACK_IMPORTED_MODULE_0__[\"SettingsEdit\"],\n SettingsViewComponent: _components_settings__WEBPACK_IMPORTED_MODULE_0__[\"SettingsView\"],\n Icon: _svg_graphics_search_console_svg__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n });\n};\nvar registerWidgets = function registerWidgets(widgets) {\n widgets.registerWidget('searchConsolePopularKeywords', {\n Component: _components_dashboard_DashboardPopularKeywordsWidget__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n width: [widgets.WIDGET_WIDTHS.HALF, widgets.WIDGET_WIDTHS.FULL],\n priority: 1,\n wrapWidget: false,\n modules: ['search-console']\n }, [_googlesitekit_widgets_default_a
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/util/index.js":
|
|||
|
|
/*!*************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/util/index.js ***!
|
|||
|
|
\*************************************************/
|
|||
|
|
/*! exports provided: isZeroReport, getSiteStatsDataForGoogleChart, generateDateRangeArgs, isValidPropertyID, extractSearchConsoleDashboardData */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"extractSearchConsoleDashboardData\", function() { return extractSearchConsoleDashboardData; });\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 _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../util */ \"./js/util/index.js\");\n/* harmony import */ var _is_zero_report__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./is-zero-report */ \"./js/modules/search-console/util/is-zero-report.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isZeroReport\", function() { return _is_zero_report__WEBPACK_IMPORTED_MODULE_2__[\"isZeroReport\"]; });\n\n/* harmony import */ var _site_stats_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./site-stats-data */ \"./js/modules/search-console/util/site-stats-data.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getSiteStatsDataForGoogleChart\", function() { return _site_stats_data__WEBPACK_IMPORTED_MODULE_3__[\"getSiteStatsDataForGoogleChart\"]; });\n\n/* harmony import */ var _report_date_range_args__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./report-date-range-args */ \"./js/modules/search-console/util/report-date-range-args.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"generateDateRangeArgs\", function() { return _report_date_range_args__WEBPACK_IMPORTED_MODULE_4__[\"generateDateRangeArgs\"]; });\n\n/* harmony import */ var _validation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./validation */ \"./js/modules/search-console/util/validation.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isValidPropertyID\", function() { return _validation__WEBPACK_IMPORTED_MODULE_5__[\"isValidPropertyID\"]; });\n\n/**\n * Search Console dashboard 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\nfunction reduceSearchConsoleData(rows) {\n var dataMap = [[{\n type: 'string',\n label: 'Day'\n }, {\n type: 'number',\n label: 'Clicks'\n }, {\n type: 'number',\n label: 'Impressions'\n }, {\n type: 'number',\n label: 'CTR'\n }, {\n type: 'number',\n label: 'Position'\n }]];\n var totalClicks = 0;\n var totalImpressions = 0;\n var totalCTR = 0;\n var totalPosition = 0;\n var count = rows.length;\n Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"each\"])(rows, function (row) {\n var date = Object(_util__WEBPACK_IMPORTED_MODULE_1__[\"stringToDate\"])(row.keys[0]);\n dataMap.push([date.getMonth() + 1 + '/' + date.getUTCDate(), row.clicks, row.impressions, Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"round\"])(row.ctr, 3), Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"round\"])(row.position, 3)]);\n totalClicks += row.clicks;\n totalImpressions += row.impressions;\n totalCTR += row.ctr;\n totalPosition += row.position;\n });\n\n // Do not divide by zero.\n var averageCTR = count > 0 ? totalCTR / count : 0.0;\n var averagePosition = count > 0 ? totalPosition / count : 0.0;\n return {\n dataMap: dataM
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/util/is-zero-report.js":
|
|||
|
|
/*!**********************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/util/is-zero-report.js ***!
|
|||
|
|
\**********************************************************/
|
|||
|
|
/*! exports provided: isZeroReport */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isZeroReport\", function() { return isZeroReport; });\n/**\n * Report 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 * Checks whether the report data is valid.\n *\n * @since 1.22.0\n *\n * @param {Object} report Report data object.\n * @return {(boolean|undefined)} Returns undefined if in the loading state, true if the report has no data or missing data, otherwise false.\n */\nfunction isZeroReport(report) {\n if (report === undefined) {\n return undefined;\n }\n if (!Array.isArray(report) || !report.length) {\n return true;\n }\n var hasMetric = report.some(function (value) {\n return value.clicks > 0 || value.ctr > 0 || value.impressions > 0 || value.position > 0;\n });\n if (!hasMetric) {\n return true;\n }\n\n // false means there _is_ valid report data\n return false;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL3V0aWwvaXMtemVyby1yZXBvcnQuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL3V0aWwvaXMtemVyby1yZXBvcnQuanM/MzY4ZSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFJlcG9ydCB1dGlsaXRpZXMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKipcbiAqIENoZWNrcyB3aGV0aGVyIHRoZSByZXBvcnQgZGF0YSBpcyB2YWxpZC5cbiAqXG4gKiBAc2luY2UgMS4yMi4wXG4gKlxuICogQHBhcmFtIHtPYmplY3R9IHJlcG9ydCBSZXBvcnQgZGF0YSBvYmplY3QuXG4gKiBAcmV0dXJuIHsoYm9vbGVhbnx1bmRlZmluZWQpfSBSZXR1cm5zIHVuZGVmaW5lZCBpZiBpbiB0aGUgbG9hZGluZyBzdGF0ZSwgdHJ1ZSBpZiB0aGUgcmVwb3J0IGhhcyBubyBkYXRhIG9yIG1pc3NpbmcgZGF0YSwgb3RoZXJ3aXNlIGZhbHNlLlxuICovXG5leHBvcnQgZnVuY3Rpb24gaXNaZXJvUmVwb3J0KCByZXBvcnQgKSB7XG5cdGlmICggcmVwb3J0ID09PSB1bmRlZmluZWQgKSB7XG5cdFx0cmV0dXJuIHVuZGVmaW5lZDtcblx0fVxuXG5cdGlmICggISBBcnJheS5pc0FycmF5KCByZXBvcnQgKSB8fCAhIHJlcG9ydC5sZW5ndGggKSB7XG5cdFx0cmV0dXJuIHRydWU7XG5cdH1cblxuXHRjb25zdCBoYXNNZXRyaWMgPSByZXBvcnQuc29tZShcblx0XHQoIHZhbHVlICkgPT5cblx0XHRcdHZhbHVlLmNsaWNrcyA+IDAgfHxcblx0XHRcdHZhbHVlLmN0ciA+IDAgfHxcblx0XHRcdHZhbHVlLmltcHJlc3Npb25zID4gMCB8fFxuXHRcdFx0dmFsdWUucG9zaXRpb24gPiAwXG5cdCk7XG5cblx0aWYgKCAhIGhhc01ldHJpYyApIHtcblx0XHRyZXR1cm4gdHJ1ZTtcblx0fVxuXG5cdC8vIGZhbHNlIG1lYW5zIHRoZXJlIF9pc18gdmFsaWQgcmVwb3J0IGRhdGFcblx0cmV0dXJuIGZhbHNlO1xufVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUlBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# source
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/util/report-date-range-args.js":
|
|||
|
|
/*!******************************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/util/report-date-range-args.js ***!
|
|||
|
|
\******************************************************************/
|
|||
|
|
/*! exports provided: generateDateRangeArgs */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"generateDateRangeArgs\", function() { return generateDateRangeArgs; });\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 _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../util */ \"./js/util/index.js\");\n/**\n * Report date range args utils.\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 * External dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n/**\n * Generates a date range object with the appropriate structure to pass to report selectors.\n *\n * @since 1.26.0\n *\n * @param {Object} dates Object containing the dates.\n * @param {string} dates.startDate Start date in YYYY-MM-DD format.\n * @param {string} dates.endDate End date in YYYY-MM-DD format.\n * @param {string} [dates.compareStartDate] Optional. Start date in YYYY-MM-DD format.\n * @param {string} [dates.compareEndDate] Optional. End date in YYYY-MM-DD format.\n * @return {Object} Date range object.\n */\nvar generateDateRangeArgs = function generateDateRangeArgs(dates) {\n var startDate = dates.startDate,\n endDate = dates.endDate;\n invariant__WEBPACK_IMPORTED_MODULE_0___default()(Object(_util__WEBPACK_IMPORTED_MODULE_1__[\"isValidDateString\"])(startDate), 'A valid startDate is required.');\n invariant__WEBPACK_IMPORTED_MODULE_0___default()(Object(_util__WEBPACK_IMPORTED_MODULE_1__[\"isValidDateString\"])(endDate), 'A valid endDate is required.');\n return {\n start_date: startDate.replace(/-/g, ''),\n end_date: endDate.replace(/-/g, '')\n };\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL3V0aWwvcmVwb3J0LWRhdGUtcmFuZ2UtYXJncy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL21vZHVsZXMvc2VhcmNoLWNvbnNvbGUvdXRpbC9yZXBvcnQtZGF0ZS1yYW5nZS1hcmdzLmpzPzQ1YWYiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBSZXBvcnQgZGF0ZSByYW5nZSBhcmdzIHV0aWxzLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cbi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCBpbnZhcmlhbnQgZnJvbSAnaW52YXJpYW50JztcblxuLyoqXG4gKiBJbnRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHsgaXNWYWxpZERhdGVTdHJpbmcgfSBmcm9tICcuLi8uLi8uLi91dGlsJztcblxuLyoqXG4gKiBHZW5lcmF0ZXMgYSBkYXRlIHJhbmdlIG9iamVjdCB3aXRoIHRoZSBhcHByb3ByaWF0ZSBzdHJ1Y3R1cmUgdG8gcGFzcyB0byByZXBvcnQ
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/util/site-stats-data.js":
|
|||
|
|
/*!***********************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/util/site-stats-data.js ***!
|
|||
|
|
\***********************************************************/
|
|||
|
|
/*! exports provided: getSiteStatsDataForGoogleChart */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getSiteStatsDataForGoogleChart\", function() { return getSiteStatsDataForGoogleChart; });\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__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 _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../util */ \"./js/util/index.js\");\n/**\n * Site stats 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 * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n/**\n * Gets data for a Google chart from a Search Console report.\n *\n * @since 1.30.0\n * @since 1.34.0 Added `dateRangeLength` parameter.\n *\n * @param {Array} current Report rows for the current period.\n * @param {Array} previous Report rows for the previous period.\n * @param {string} label Metric label.\n * @param {number} selectedColumn Selected column index.\n * @param {number} dateRangeLength Date range length.\n * @return {Array.<Array.<number|string>>} Data array.\n */\nvar getSiteStatsDataForGoogleChart = function getSiteStatsDataForGoogleChart(current, previous, label, selectedColumn, dateRangeLength) {\n var dataMap = [[{\n type: 'date',\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Day', 'google-site-kit')\n }, {\n type: 'string',\n role: 'tooltip',\n p: {\n html: true\n }\n }, {\n type: 'number',\n label: label\n }, {\n type: 'number',\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Previous period', 'google-site-kit')\n }]];\n var locale = Object(_util__WEBPACK_IMPORTED_MODULE_2__[\"getLocale\"])();\n var localeDateOptions = {\n weekday: 'short',\n month: 'short',\n day: 'numeric'\n };\n current.forEach(function (currentDay, index) {\n var _previous$index, _previous$index2;\n var currentMonth = currentDay[selectedColumn];\n var currentDate = currentDay.keys[0];\n // Search Console does not provide rows from before the property was added\n // so we need to provide fallback values for the previous range which may not exist.\n var prevMonth = ((_previous$index = previous[index]) === null || _previous$index === void 0 ? void 0 : _previous$index[selectedColumn]) || 0;\n var previousDate = ((_previous$index2 = previous[index]) === null || _previous$index2 === void 0 ? void 0 : _previous$index2.keys[0]) || Object(_util__WEBPACK_IMPORTED_MODULE_2__[\"getPreviousDate\"])(currentDate, dateRangeLength);\n var dateRange = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"sprintf\"])(/* translators: 1: date for user stats, 2: previous date for user stats comparison */\n Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"_x\"])('%1$s vs %2$s', 'Date range for chart tooltip', 'google-site-kit'), Object(_util__WEBPACK_IMPORTED_MODULE_2__[\"stringToDate\
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/search-console/util/validation.js":
|
|||
|
|
/*!******************************************************!*\
|
|||
|
|
!*** ./js/modules/search-console/util/validation.js ***!
|
|||
|
|
\******************************************************/
|
|||
|
|
/*! exports provided: isValidPropertyID */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidPropertyID\", function() { return isValidPropertyID; });\n/**\n * Validation 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 * Checks whether the given property ID appears to be valid.\n *\n * @since 1.31.0\n *\n * @param {*} propertyID Property ID to check.\n * @return {boolean} Whether or not the given property ID is valid.\n */\nfunction isValidPropertyID(propertyID) {\n return typeof propertyID === 'string' && propertyID.length > 0;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL3V0aWwvdmFsaWRhdGlvbi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL21vZHVsZXMvc2VhcmNoLWNvbnNvbGUvdXRpbC92YWxpZGF0aW9uLmpzP2YxNDEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBWYWxpZGF0aW9uIHV0aWxpdGllcy5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qKlxuICogQ2hlY2tzIHdoZXRoZXIgdGhlIGdpdmVuIHByb3BlcnR5IElEIGFwcGVhcnMgdG8gYmUgdmFsaWQuXG4gKlxuICogQHNpbmNlIDEuMzEuMFxuICpcbiAqIEBwYXJhbSB7Kn0gcHJvcGVydHlJRCBQcm9wZXJ0eSBJRCB0byBjaGVjay5cbiAqIEByZXR1cm4ge2Jvb2xlYW59IFdoZXRoZXIgb3Igbm90IHRoZSBnaXZlbiBwcm9wZXJ0eSBJRCBpcyB2YWxpZC5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGlzVmFsaWRQcm9wZXJ0eUlEKCBwcm9wZXJ0eUlEICkge1xuXHRyZXR1cm4gdHlwZW9mIHByb3BlcnR5SUQgPT09ICdzdHJpbmcnICYmIHByb3BlcnR5SUQubGVuZ3RoID4gMDtcbn1cbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/modules/search-console/util/validation.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 _components_ChangeArrow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../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 */\nvar getChartDifferenceArrow = function 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(_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 */\nvar isSingleSlice = function 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 ===
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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 */\nvar convertSecondsToArray = function 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 */\nvar convertDateStringToUNIXTimestamp = function 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL2NvbnZlcnQtdGltZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvY29udmVydC10aW1lLmpzPzJlOTMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBUaW1lIHJlbGF0ZWQgdXRpbGl0eSBmdW5jdGlvbnMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKipcbiAqIENvbnZlcnRzIHNlY29uZHMgaW50byBhbiBhcnJheSB3aXRoIHRoZSBmb2xsb3dpbmcgdmFsdWVzIFtISCwgTU0sIFNTLCBNU10gYXMgZGVzY3JpYmVkIGJlbG93LlxuICogSEg6IGhvdXJzLlxuICogTU06IG1pbnV0ZXMuXG4gKiBTUzogc2Vjb25kcy5cbiAqIE1TOiBtaWxsaXNlY29uZHMuXG4gKlx
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/util/create-incremental-array-by-size.js":
|
|||
|
|
/*!*****************************************************!*\
|
|||
|
|
!*** ./js/util/create-incremental-array-by-size.js ***!
|
|||
|
|
\*****************************************************/
|
|||
|
|
/*! exports provided: createIncrementalArrayBySize */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createIncrementalArrayBySize\", function() { return createIncrementalArrayBySize; });\n/**\n * Create Incremental Array by Size 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 * Creates an array of length equal to size with incremental values starting at 0.\n *\n * @since 1.28.0\n *\n * @param {number} size Array length.\n * @return {number[]} Array of incremental numbers.\n * @example createIncrementalArrayBySize(3); // [0, 1, 2]\n */\nvar createIncrementalArrayBySize = function createIncrementalArrayBySize(size) {\n return new Array(size !== null && size !== void 0 ? size : 0).fill().map(function (_, i) {\n return i;\n });\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL2NyZWF0ZS1pbmNyZW1lbnRhbC1hcnJheS1ieS1zaXplLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvdXRpbC9jcmVhdGUtaW5jcmVtZW50YWwtYXJyYXktYnktc2l6ZS5qcz85Zjc4Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ3JlYXRlIEluY3JlbWVudGFsIEFycmF5IGJ5IFNpemUgdXRpbGl0eS5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qKlxuICogQ3JlYXRlcyBhbiBhcnJheSBvZiBsZW5ndGggZXF1YWwgdG8gc2l6ZSB3aXRoIGluY3JlbWVudGFsIHZhbHVlcyBzdGFydGluZyBhdCAwLlxuICpcbiAqIEBzaW5jZSAxLjI4LjBcbiAqXG4gKiBAcGFyYW0ge251bWJlcn0gc2l6ZSBBcnJheSBsZW5ndGguXG4gKiBAcmV0dXJuIHtudW1iZXJbXX0gQXJyYXkgb2YgaW5jcmVtZW50YWwgbnVtYmVycy5cbiAqIEBleGFtcGxlIGNyZWF0ZUluY3JlbWVudGFsQXJyYXlCeVNpemUoMyk7IC8vIFswLCAxLCAyXVxuICovXG5leHBvcnQgY29uc3QgY3JlYXRlSW5jcmVtZW50YWxBcnJheUJ5U2l6ZSA9ICggc2l6ZSApID0+XG5cdG5ldyBBcnJheSggc2l6ZSA/PyAwICkuZmlsbCgpLm1hcCggKCBfLCBpICkgPT4gaSApO1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/util/create-incremental-array-by-size.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 WAR
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/util/errors.js":
|
|||
|
|
/*!***************************!*\
|
|||
|
|
!*** ./js/util/errors.js ***!
|
|||
|
|
\***************************/
|
|||
|
|
/*! exports provided: ERROR_CODE_MISSING_REQUIRED_SCOPE, ERROR_REASON_INSUFFICIENT_PERMISSIONS, ERROR_REASON_FORBIDDEN, ERROR_INTERNAL_SERVER_ERROR, ERROR_INVALID_JSON, ERROR_REASON_BAD_REQUEST, isWPError, isPermissionScopeError, isInsufficientPermissionsError, isAuthError, isErrorRetryable, getReportErrorMessage */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ERROR_CODE_MISSING_REQUIRED_SCOPE\", function() { return ERROR_CODE_MISSING_REQUIRED_SCOPE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ERROR_REASON_INSUFFICIENT_PERMISSIONS\", function() { return ERROR_REASON_INSUFFICIENT_PERMISSIONS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ERROR_REASON_FORBIDDEN\", function() { return ERROR_REASON_FORBIDDEN; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ERROR_INTERNAL_SERVER_ERROR\", function() { return ERROR_INTERNAL_SERVER_ERROR; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ERROR_INVALID_JSON\", function() { return ERROR_INVALID_JSON; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ERROR_REASON_BAD_REQUEST\", function() { return ERROR_REASON_BAD_REQUEST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isWPError\", function() { return isWPError; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isPermissionScopeError\", function() { return isPermissionScopeError; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isInsufficientPermissionsError\", function() { return isInsufficientPermissionsError; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isAuthError\", function() { return isAuthError; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isErrorRetryable\", function() { return isErrorRetryable; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getReportErrorMessage\", function() { return getReportErrorMessage; });\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 _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/**\n * Error 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 * WordPress dependencies\n */\n\n\n// Error codes and reasons.\nvar ERROR_CODE_MISSING_REQUIRED_SCOPE = 'missing_required_scopes'; // When scopes are missing.\nvar ERROR_REASON_INSUFFICIENT_PERMISSIONS = 'insufficientPermissions';\nvar ERROR_REASON_FORBIDDEN = 'forbidden';\nvar ERROR_INTERNAL_SERVER_ERROR = 'internal_server_error';\nvar ERROR_INVALID_JSON = 'invalid_json';\nvar ERROR_REASON_BAD_REQUEST = 'bad_request';\n\n/**\n * Checks if the provided object is an instance of WP_Error class.\n *\n * @since 1.13.0\n *\n * @param {Object} obj The object to check.\n * @return {boolean} TRUE if the object has \"code\", \"data\" and \"message\" properties, otherwise FALSE.\n */\nfunction isWPError(obj) {\n return Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"isPlainObject\"])(obj) && obj.hasOwnProperty('code') && (typeof obj.code === 'string' || typeof obj.code === 'number') && obj.hasOwnProperty('message') && typeof ob
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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.
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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 im
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/util/initialize-google-global.js":
|
|||
|
|
/*!*********************************************!*\
|
|||
|
|
!*** ./js/util/initialize-google-global.js ***!
|
|||
|
|
\*********************************************/
|
|||
|
|
/*! no static exports found */
|
|||
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|||
|
|
|
|||
|
|
eval("/* WEBPACK VAR INJECTION */(function(global) {/**\n * Side Effect to initialize `google` global.\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\nif (!Object.prototype.hasOwnProperty.call(global, 'google')) {\n global.google = {};\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL2luaXRpYWxpemUtZ29vZ2xlLWdsb2JhbC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvaW5pdGlhbGl6ZS1nb29nbGUtZ2xvYmFsLmpzPzZjOWMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBTaWRlIEVmZmVjdCB0byBpbml0aWFsaXplIGBnb29nbGVgIGdsb2JhbC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbmlmICggISBPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoIGdsb2JhbCwgJ2dvb2dsZScgKSApIHtcblx0Z2xvYmFsLmdvb2dsZSA9IHt9O1xufVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/util/initialize-google-global.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/util/insufficient-permissions-error-description.js":
|
|||
|
|
/*!***************************************************************!*\
|
|||
|
|
!*** ./js/util/insufficient-permissions-error-description.js ***!
|
|||
|
|
\***************************************************************/
|
|||
|
|
/*! exports provided: getInsufficientPermissionsErrorDescription */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getInsufficientPermissionsErrorDescription\", function() { return getInsufficientPermissionsErrorDescription; });\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 * `getInsufficientPermissionsErrorDescription` 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 * Gets a description for an insufficient permissions error.\n *\n * @since 1.16.0\n *\n * @param {string} error Original error message.\n * @param {Object} module Module data.\n * @param {string} module.name The name of the module.\n * @param {string} module.slug The slug of the module.\n * @param {Object} module.owner The owner of the module.\n * @param {string} module.owner.login The The login of the current owner.\n * @return {string} Error description.\n */\nfunction getInsufficientPermissionsErrorDescription() {\n var error = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var module = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _ref = module || {},\n _ref$slug = _ref.slug,\n slug = _ref$slug === void 0 ? '' : _ref$slug,\n _ref$name = _ref.name,\n name = _ref$name === void 0 ? '' : _ref$name,\n _ref$owner = _ref.owner,\n owner = _ref$owner === void 0 ? {} : _ref$owner; // If no module data provided, it is impossible to provide a more clear message.\n if (!slug || !name) {\n return error;\n }\n var message = '';\n var userInfo = '';\n if ('analytics-4' === slug) {\n if (error.match(/account/i)) {\n message = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Your Google account does not have sufficient permissions for this Analytics account, so you won’t be able to see stats from it on the Site Kit dashboard.', 'google-site-kit');\n } else if (error.match(/property/i)) {\n message = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Your Google account does not have sufficient permissions for this Analytics property, so you won’t be able to see stats from it on the Site Kit dashboard.', 'google-site-kit');\n } else if (error.match(/view/i)) {\n message = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Your Google account does not have sufficient permissions for this Analytics view, so you won’t be able to see stats from it on the Site Kit dashboard.', 'google-site-kit');\n }\n } else if ('search-console' === slug) {\n message = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Your Google account does not have sufficient permissions for this Search Console property, so you won’t be able to see stats from it on the Site Kit dashboard.', 'google-site-kit');\n }\n if (!message) {\n message = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"sprintf\"])(/* translators: %s: module name */\n Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Your Google account does not have sufficient permissions to access %s data, so you won’t be able to see stats from it on the Site Kit dashboard.', 'google-site
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/util/is-site-kit-screen.js":
|
|||
|
|
/*!***************************************!*\
|
|||
|
|
!*** ./js/util/is-site-kit-screen.js ***!
|
|||
|
|
\***************************************/
|
|||
|
|
/*! exports provided: isSiteKitScreen */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isSiteKitScreen\", function() { return isSiteKitScreen; });\n/* harmony import */ var _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../googlesitekit/constants */ \"./js/googlesitekit/constants.js\");\n/**\n * Utility function to check whether or not a view-context is a Site Kit view.\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 * Checks whether or not the current viewContext is a Site Kit screen.\n *\n * @since 1.80.0\n *\n * @param {string} viewContext The view-context.\n * @return {boolean} TRUE if the passed view-context is a site kit view; otherwise FALSE.\n */\nvar isSiteKitScreen = function isSiteKitScreen(viewContext) {\n return _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_0__[\"SITE_KIT_VIEW_CONTEXTS\"].includes(viewContext);\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL2lzLXNpdGUta2l0LXNjcmVlbi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvaXMtc2l0ZS1raXQtc2NyZWVuLmpzP2ViMzkiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBVdGlsaXR5IGZ1bmN0aW9uIHRvIGNoZWNrIHdoZXRoZXIgb3Igbm90IGEgdmlldy1jb250ZXh0IGlzIGEgU2l0ZSBLaXQgdmlldy5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIyIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qKlxuICogSW50ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IFNJVEVfS0lUX1ZJRVdfQ09OVEVYVFMgfSBmcm9tICcuLi9nb29nbGVzaXRla2l0L2NvbnN0YW50cyc7XG5cbi8qKlxuICogQ2hlY2tzIHdoZXRoZXIgb3Igbm90IHRoZSBjdXJyZW50IHZpZXdDb250ZXh0IGlzIGEgU2l0ZSBLaXQgc2NyZWVuLlxuICpcbiAqIEBzaW5jZSAxLjgwLjBcbiAqXG4gKiBAcGFyYW0ge3N0cmluZ30gdmlld0NvbnRleHQgVGhlIHZpZXctY29udGV4dC5cbiAqIEByZXR1cm4ge2Jvb2xlYW59IFRSVUUgaWYgdGhlIHBhc3NlZCB2aWV3LWNvbnRleHQgaXMgYSBzaXRlIGtpdCB2aWV3OyBvdGhlcndpc2UgRkFMU0UuXG4gKi9cbmV4cG9ydCBjb25zdCBpc1NpdGVLaXRTY3JlZW4gPSAoIHZpZXdDb250ZXh0ICkgPT5cblx0U0lURV9LSVRfVklFV19DT05URVhUUy5pbmNsdWRlcyggdmlld0NvbnRleHQgKTtcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/util/is-site-kit-screen.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;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL2lzLXZhbGlkLW51bWVyaWMtaWQuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy91dGlsL2lzLXZhbGlkLW51bWVyaWMtaWQuanM/MjU1NiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFV0aWxpdHkgZnVuY3Rpb24gcmVsYXRlZCB0byBjaGVja2luZyBpZiBhIGdpdmVuIHZhbHVlIGlzIG51bWVyaWMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMiBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKipcbiAqIENoZWNrcyB0aGUgZ2l2ZW4gdmFsdWUgdG8gc2VlIGlmIGl0IGlzIGEgcG9zaXRpdmUgaW50ZWdlci5cbiAqXG4gKiBAc2luY2UgMS4xMS4wIEZ1bmN0aW9uIGludHJvZHVjZWQuXG4gKiBAc2luY2UgMS45MC4wIE1vdmVkIG91dHNpZGUgVGFnIE1hbmFnZXIgdG8gYSBnZW5lcmljIHV0aWxpdHkgZnVuY3Rpb24uXG4gKlxuICogQHBhcmFtIHsqfSBpbnB1dCBWYWx1ZSB0byBjaGVjay5cbiAqIEByZXR1cm4ge2Jvb2xlYW59IFZhbGlkaXR5LlxuICovXG5leHBvcnQgZnVuY3Rpb24gaXNWYWxpZE51bWVyaWNJRCggaW5wdXQgKSB7XG5cdGNvbnN0IGlkID0gcGFyc2VGbG9hdCggaW5wdXQgKSB8fCAwO1xuXG5cdGlmICggISBOdW1iZXIuaXNJbnRlZ2VyKCBpZCApICkge1xuXHRcdHJldHVybiBmYWxzZTtcblx0fVxuXG5cdHJldHVybiBpZCA+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL2lzbnVtZXJpYy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvaXNudW1lcmljLmpzPzliNDkiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBVdGlsaXR5IGZ1bmN0aW9uIHJlbGF0ZWQgdG8gY2hlY2tpbmcgaWYgYSBnaXZlbiB2YWx1ZSBpcyBudW1lcmljLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjIgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuLyoqXG4gKiBDaGVja3MgaWYgYSBnaXZlbiB2YWx1ZSBpcyBudW1lcmljLlxuICpcbiAqIEBzaW5jZSAxLjgwLjBcbiAqXG4gKiBAcGFyYW0geyp9IHZhbHVlIFRoZSB2YWx1ZSB0byBjaGVjay5cbiAqIEByZXR1cm4ge2Jvb2xlYW59IFRSVUUgaWYgYSB2YWx1ZSBpcyBudW1lcmljIEZBTFNFIG90aGVyd2lzZS5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGlzTnVtZXJpYyggdmFsdWUgKSB7XG5cdGlmICggdHlwZW9mIHZhbHVlID09PSAnbnVtYmVyJyApIHtcblx0XHRyZXR1cm4gdHJ1ZTtcblx0fVxuXG5cdGNvbnN0IHN0cmluZyA9ICggdmFsdWUgfHwgJycgKS50b1N0cmluZygpO1xuXG5cdGlmICggISBzdHJpbmcgKSB7XG5cdFx0cmV0dXJuIGZhbHNlO1xuXHR9XG5cblx0cmV0dXJuICEgaXNOYU4oIHN0cmluZyApO1xufVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL21hcmtkb3duLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvdXRpbC9tYXJrZG93bi5qcz9kYjAyIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogTWFya2Rvd24gdXRpbGl0eS5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qKlxuICogUmVwbGFjZXMgbWFya2Rvd24gbGlua3Mgd2l0aCBpdHMgSFRNTCBlcXVpdmFsZW50cy5cbiAqXG4gKiBAc2luY2UgMS4yMi4wXG4gKlxuICogQHBhcmFtIHtzdHJpbmd9IHRleHQgTWFya2Rvd24gdGV4dC5cbiAqIEByZXR1cm4ge3N0cmluZ30gVGV4dCB3aXRoIEhUTUwgbGlua3MuXG4gKi9cbmZ1bmN0aW9uIG1hcmtkb3duTGlua3MoIHRleHQgKSB7XG5cdHJldHVybiB0ZXh0LnJlcGxhY2UoXG5cdFx0bmV3IFJlZ0V4cCggJ1xcXFxbKFteXFxcXF1dKylcXFxcXVxcXFwoKGh0dHBzPzovL1teL10rXFxcXC5cXFxcdysvPy4qPylcXFxcKScsICdnaScgKSxcblx0XHQnPGEgaHJlZj1cIiQyXCIgdGFyZ2V0PVwiX2JsYW5rXCIgcmVsPVwibm9vcGVuZXIgbm9yZWZlcnJlclwiPiQxPC9hPidcblx0KTtcbn1cblxuLyoqXG4gKiBBZGRzIHBhcmFncmFwaHMgdG8gdGhlIHRleHQuXG4gKlxuICogQHNpbmNlIDEuMjIuMFxuICpcbiAqIEBwYXJhbSB7c3RyaW5nfSB0ZXh0IE1hcmtkb3duIHRleHQuXG4gKiBAcmV0dXJuIHtzdHJpbmd9IFRleHQgd2l0aCBIVE1MIGxpbmtzLlxuICovXG5mdW5jdGlvbiBtYXJrZG93blBhcmFncmFwaHMoIHRleHQgKSB7XG
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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 */\nvar partitionReport = function 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3BhcnRpdGlvbi1yZXBvcnQuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy91dGlsL3BhcnRpdGlvbi1yZXBvcnQuanM/NTk4MCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFJlcG9ydCBwYXJ0aXRpb25pbmcgdXRpbGl0eS5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCBpbnZhcmlhbnQgZnJvbSAnaW52YXJpYW50JztcblxuLyoqXG4gKiBTcGxpdHMgcmVwb3J0IGRhdGEgaW50byBzZWdtZW50cyBmb3IgY3VycmVudCBhbmQgY29tcGFyaXNvbiByYW5nZXMuXG4gKlxuICogQHNpbmNlIDEuMzMuMFxuICogQHNpbmNlIDEuMzQuMCBVcGRhdGVkIHRvIHN1cHBvcnQgaW5jb21wbGV0ZSBgcmVwb3J0YCBhcnJheXMuXG4gKlxuICogQHBhcmFtIHtBcnJheX0gIHJlcG9ydCAgICAgICAgICAgICAgIFJlcG9ydCByb3dzLlxuICogQHB
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/report-validation.js":
|
|||
|
|
/*!**************************************!*\
|
|||
|
|
!*** ./js/util/report-validation.js ***!
|
|||
|
|
\**************************************/
|
|||
|
|
/*! exports provided: isValidStringsOrObjects, isValidDateRange, isValidOrders, isValidStringularItems */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidStringsOrObjects\", function() { return isValidStringsOrObjects; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidDateRange\", function() { return isValidDateRange; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidOrders\", function() { return isValidOrders; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidStringularItems\", function() { return isValidStringularItems; });\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\n/**\n * Reporting API validation 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 * Validates data that can be either string or object of the certain type, or array of them.\n *\n * @since 1.13.0\n * @since 1.98.0 Added verifyStringFunction parameter.\n *\n * @param {string|string[]|Object|Object[]} data The data to check.\n * @param {Function} verifyObjectFunction The callback to verify an object.\n * @param {Function} [verifyStringFunction] The callback to verify a string (optional).\n * @return {boolean} TRUE if data is valid, otherwise FALSE.\n */\nfunction isValidStringsOrObjects(data, verifyObjectFunction) {\n var verifyStringFunction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function () {\n return true;\n };\n if (typeof data === 'string') {\n return verifyStringFunction(data);\n }\n if (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(data) === 'object' && verifyObjectFunction(data)) {\n return true;\n }\n if (Array.isArray(data)) {\n return data.every(function (item) {\n if (typeof item === 'string') {\n return verifyStringFunction(item);\n }\n if (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(item) === 'object') {\n return verifyObjectFunction(item);\n }\n return false;\n });\n }\n\n // Arguably this should fail/throw, because none of our allowed types were encountered.\n return false;\n}\n\n/**\n * Verifies that either date range or start and end dates are valid.\n *\n * @since 1.13.0\n *\n * @param {Object} dates The object containing dates to check.\n * @param {string} dates.startDate The start date to check.\n * @param {string} dates.endDate The end date to check.\n * @return {boolean} TRUE if either date range or start/end dates are valid, otherwise FALSE.\n */\nfunction isValidDateRange(_ref) {\n var startDate = _ref.startDate,\n endDate = _ref.endDate;\n var validStartDate = startDate && startDate.match(/^\\d{4}-\\d{2}-\\d{2}$/);\n var validEndDate = endDate && endDate.match(/^\\d{4}-\\d{2}-\\d{2}$/);\n return validStartDate && validEndDate;\n}\n\n/**\n * Verifies that order definitions are valid. It can be either an object or an array\n * of objects where each object has \"fieldName\" and valid \"sortOrder\" properties.\n *\n * @since 1.13.0\n *\n * @param {Object|Object[]} orders The order def
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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 */\nvar safelySort = function 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3NhZmVseS1zb3J0LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvdXRpbC9zYWZlbHktc29ydC5qcz8zMzQ3Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogYHNhZmVseVNvcnRgIHV0aWxpdHkgZnVuY3Rpb24uXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyNCBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKipcbiAqIFNvcnRzIGFuIGFycmF5IHdpdGhvdXQgY2F1c2luZyB0aGUgbXV0YXRpb24gaWYgdGhlIGdpdmVuIHBhcmFtZXRlciBpcyBhbiBhcnJheS5cbiAqIElmIHRoZSBwYXJhbWV0ZXIgaXMgbm90IGFuIGFycmF5LCBpdCByZXR1cm5zIHRoZSBwYXJhbWV0ZXIgYXMgaXMuXG4gKlxuICogQHNpbmNlIDEuMTEwLjBcbiAqIEBzaW5jZSAxLjEyOC4wIE1vdmVkIHRvIHRoZSBjb21tb24gdXRpbGl0eSBkaXJlY3RvcnkgZnJvbSB0aGUga2V5IG1ldHJpY3MgZGlyZWN0b3J5LlxuICpcbiAqIEBwYXJhbSB7QXJyYXl8Kn0gYXJyIFBhcmFtIHRvIGJlIHNvcnRlZC5cbiAqIEByZXR1cm4ge0FycmF5fCp9IFx0U2FmZWx5IHNvcnRlZCBhcnJheSB3aXRob3V0IG11dGF0aW9uLlxuICovXG5leHBvcnQgY29uc3Qgc2FmZWx5U29ydCA9ICggYXJyICkgPT4ge1xuXHRyZXR1cm4gQXJyYXkuaXNBcnJheSggYXJyICkgPyBbIC4uLmFyciBdLnNvcnQoKSA6IGFycjtcbn07XG4iXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\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\nvar sanitizeHTML = function 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3Nhbml0aXplLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvdXRpbC9zYW5pdGl6ZS5qcz8yZmFkIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogSW50ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IHB1cmlmeSB9IGZyb20gJy4vcHVyaWZ5JztcblxuZXhwb3J0IGNvbnN0IHNhbml0aXplSFRNTCA9ICggdW5zYWZlSFRNTCwgZG9tUHVyaWZ5Q29uZmlnID0ge30gKSA9PiB7XG5cdHJldHVybiB7XG5cdFx0X19odG1sOiBwdXJpZnkuc2FuaXRpemUoIHVuc2FmZUhUTUwsIGRvbVB1cmlmeUNvbmZpZyApLFxuXHR9O1xufTtcblxuLyoqXG4gKiBUYWtlcyBhIHN0cmluZyBvciBhbiBVUkwgb2JqZWN0LCByZW1vdmVzIHRoZSB0cmFpbGluZyBzbGFzaCBpZiBhbnkgYW5kIHJldHVybnMgaXQuXG4gKlxuICogQHNpbmNlIDEuMjAuMFxuICogQHByaXZhdGVcbiAqXG4gKiBAcGFyYW0ge09iamVjdHxzdHJpbmd9IHVybCBBIHN0cmluZyB3aXRoIG9yIHdpdGhvdXQgdHJhaWxpbmcgc2xhc2ggb3IgYW4gVVJMIG9iamVjdC5cbiAqIEByZXR1cm4ge3N0cmluZ3x1bmRlZmluZWR9IFRoZSBVUkwgc3RyaW5nIGFmdGVyIHJlbW92aW5nIHRoZSB0cmFpbGluZyBzbGFzaC5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIHVudHJhaWxpbmdzbGFzaGl0KCB1cmwgKSB7XG5cdGNvbnN0IG9yaWdpbmFsVVJMID0gdHlwZW9mIHVybCA9PT0gJ29iamVjdCcgPyB1cmwudG9TdHJpbmcoKSA6IHVybDtcblx0cmV0dXJuIG9yaWdpbmFsVVJMPy5yZXBsYWNlPy4oIC9cXC8rJC8sICcnICk7XG59XG4iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\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 */\nvar storageAvailable = function 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 */\nvar getStorage = function getStorage() {\n // Only run the logic to determin
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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 */\nvar stringifyObject = function 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3N0cmluZ2lmeS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvc3RyaW5naWZ5LmpzP2I3NGUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBTdHJpbmdpZnkgZnVuY3Rpb24uXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKipcbiAqIEV4dGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgbWQ1IGZyb20gJ21kNSc7XG5cbi8qKlxuICogVHJhbnNmb3JtcyBhbiBvYmplY3QgaW50byBhIGhhc2ggc3RyaW5nLlxuICpcbiAqIFRoaXMgZnVuY3Rpb24gY2FuIGJlIHVzZWQgdG8gZS5nLiBnZW5lcmF0ZSBjYWNoZSBrZXlzLCBiYXNlZCBvbiB0aGUgZ2l2ZW5cbiAqIG9iamVjdC4gT2JqZWN0IHByb3BlcnRpZXMgYXJlIHNvcnRlZCwgc28gZXZlbiBpZiB0aGV5IGFyZSBwcm92aWRlZCBpblxuICogZGlmZmVyZW50IG9yZGVyLCB0aGUgaGFzaCB3aWxsIG1hdGNoLiBUaGUgZnVuY3Rpb24gZnVydGhlcm1vcmUgc3VwcG9ydHN
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3RyYWNraW5nL2NvbnN0YW50cy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvdHJhY2tpbmcvY29uc3RhbnRzLmpzPzJkNjgiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDb25zdGFudHMgcmVsYXRlZCB0byBldmVudCB0cmFja2luZy5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qKlxuICogRGF0YSBsYXllciBnbG9iYWwgdXNlZCBmb3IgaW50ZXJuYWwvcHJpdmF0ZSBTaXRlIEtpdCBkYXRhLlxuICpcbiAqIEBzaW5jZSAxLjguMFxuICogQHByaXZhdGVcbiAqL1xuZXhwb3J0IGNvbnN0IERBVEFfTEFZRVIgPSAnX2dvb2dsZXNpdGVraXREYXRhTGF5ZXInO1xuXG4vKipcbiAqIFRoZSBgZ3RhZ2AgYDxzY3JpcHQ+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 _features_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../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;\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(_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:applicatio
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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 _ca
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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_IMPOR
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/**\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.152.1\";\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3RyYWNraW5nL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvdXRpbC90cmFja2luZy9pbmRleC5qcz82YTc3Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXZlbnQgdHJhY2tpbmcgdXRpbGl0aWVzLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3VybHMuanMuanMiLCJzb3VyY2
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/util/when-active.js":
|
|||
|
|
/*!********************************!*\
|
|||
|
|
!*** ./js/util/when-active.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 export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return whenActive; });\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 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 _googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_data_transform_case__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../googlesitekit/data/transform-case */ \"./js/googlesitekit/data/transform-case.js\");\n\n/**\n * `whenActive` HOC.\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 * Higher-Order Component to render wrapped components when selected module is active and connected.\n *\n * A higher-order component is used here instead of hooks because there is potential for\n * related selectors in components this HOC wraps to call out to resolvers that call endpoints\n * for modules that aren't active. This would cause 404s at best and possibly errors, so\n * it's better to wrap them in HOCs and \"return early\".\n *\n * @since 1.16.0\n *\n * @param {Object} options Options for enhancing function.\n * @param {string} options.moduleName Name of a module to check.\n * @param {WPComponent} [options.FallbackComponent] Optional. Fallback component to render when the module is not active.\n * @param {WPComponent} [options.IncompleteComponent] Optional. Fallback component to render when the module is active but not connected.\n * @return {Function} Enhancing function.\n */\nfunction whenActive(_ref) {\n var moduleName = _ref.moduleName,\n FallbackComponent = _ref.FallbackComponent,\n IncompleteComponent = _ref.IncompleteComponent;\n return function (WrappedComponent) {\n function WhenActiveComponent(props) {\n var module = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_2__[\"CORE_MODULES\"]).getModule(moduleName);\n }, [moduleName]);\n\n // Return null if the module is not loaded yet or doesn't exist.\n if (!module) {\n return null;\n }\n\n // This component isn't widget-specific but widgets need to use `WidgetNull`\n // from props when rendering \"null\" output.\n var DefaultFallbackComponent = FallbackComponent || props.WidgetNull || null;\n\n // Return a fallback if the module is not active.\n if (module.active === false) {\n return DefaultFallbackComponent && /*#__PURE__*/React.createElement(DefaultFallbackComponent, props);\n }\n\n // Return a fallback if the module is active but not connected yet.\n if (module.connected === false) {\n // If no IncompleteComponent is provided, use the default fall
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/graphics/cta-graph-goals.svg":
|
|||
|
|
/*!******************************************!*\
|
|||
|
|
!*** ./svg/graphics/cta-graph-goals.svg ***!
|
|||
|
|
\******************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M101 35.5H1V0\",\n stroke: \"#CCC\"\n});\nvar _ref2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M2 24.685l24.5-7.404L51 25 75.5 8.774 100 2\",\n stroke: \"#CCC\",\n strokeWidth: 2\n});\nfunction SvgCtaGraphGoals(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 101 36\",\n fill: \"none\"\n }, props), _ref, _ref2);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgCtaGraphGoals);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvZ3JhcGhpY3MvY3RhLWdyYXBoLWdvYWxzLnN2Zy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3N2Zy9ncmFwaGljcy9jdGEtZ3JhcGgtZ29hbHMuc3ZnP2MwMjciXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX2V4dGVuZHMoKSB7IF9leHRlbmRzID0gT2JqZWN0LmFzc2lnbiB8fCBmdW5jdGlvbiAodGFyZ2V0KSB7IGZvciAodmFyIGkgPSAxOyBpIDwgYXJndW1lbnRzLmxlbmd0aDsgaSsrKSB7IHZhciBzb3VyY2UgPSBhcmd1bWVudHNbaV07IGZvciAodmFyIGtleSBpbiBzb3VyY2UpIHsgaWYgKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChzb3VyY2UsIGtleSkpIHsgdGFyZ2V0W2tleV0gPSBzb3VyY2Vba2V5XTsgfSB9IH0gcmV0dXJuIHRhcmdldDsgfTsgcmV0dXJuIF9leHRlbmRzLmFwcGx5KHRoaXMsIGFyZ3VtZW50cyk7IH1cbmltcG9ydCAqIGFzIFJlYWN0IGZyb20gXCJyZWFjdFwiO1xudmFyIF9yZWYgPSAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInBhdGhcIiwge1xuICBkOiBcIk0xMDEgMzUuNUgxVjBcIixcbiAgc3Ryb2tlOiBcIiNDQ0NcIlxufSk7XG52YXIgX3JlZjIgPSAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInBhdGhcIiwge1xuICBkOiBcIk0yIDI0LjY4NWwyNC41LTcuNDA0TDUxIDI1IDc1LjUgOC43NzQgMTAwIDJcIixcbiAgc3Ryb2tlOiBcIiNDQ0NcIixcbiAgc3Ryb2tlV2lkdGg6IDJcbn0pO1xuZnVuY3Rpb24gU3ZnQ3RhR3JhcGhHb2Fscyhwcm9wcykge1xuICByZXR1cm4gLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoXCJzdmdcIiwgX2V4dGVuZHMoe1xuICAgIHZpZXdCb3g6IFwiMCAwIDEwMSAzNlwiLFxuICAgIGZpbGw6IFwibm9uZVwiXG4gIH0sIHByb3BzKSwgX3JlZiwgX3JlZjIpO1xufVxuZXhwb3J0IGRlZmF1bHQgU3ZnQ3RhR3JhcGhHb2FsczsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./svg/graphics/cta-graph-goals.svg\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/graphics/cta-graph-visitors.svg":
|
|||
|
|
/*!*********************************************!*\
|
|||
|
|
!*** ./svg/graphics/cta-graph-visitors.svg ***!
|
|||
|
|
\*********************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M1 24.053l5-4.825 4 2.193 5.333-2.193 7.334 6.579 6-1.754 3-4.825 4.666 6.579 3.334-1.754L47.333 28 55 19.228l4.333 2.193 5.334-3.509 2 1.316h6L81.333 3 84 9.579l2.333-1.754L89 13.088l12-5.263\",\n stroke: \"#CCC\",\n strokeWidth: 2\n});\nfunction SvgCtaGraphVisitors(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 102 30\",\n fill: \"none\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgCtaGraphVisitors);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvZ3JhcGhpY3MvY3RhLWdyYXBoLXZpc2l0b3JzLnN2Zy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3N2Zy9ncmFwaGljcy9jdGEtZ3JhcGgtdmlzaXRvcnMuc3ZnP2E1ZGUiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX2V4dGVuZHMoKSB7IF9leHRlbmRzID0gT2JqZWN0LmFzc2lnbiB8fCBmdW5jdGlvbiAodGFyZ2V0KSB7IGZvciAodmFyIGkgPSAxOyBpIDwgYXJndW1lbnRzLmxlbmd0aDsgaSsrKSB7IHZhciBzb3VyY2UgPSBhcmd1bWVudHNbaV07IGZvciAodmFyIGtleSBpbiBzb3VyY2UpIHsgaWYgKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChzb3VyY2UsIGtleSkpIHsgdGFyZ2V0W2tleV0gPSBzb3VyY2Vba2V5XTsgfSB9IH0gcmV0dXJuIHRhcmdldDsgfTsgcmV0dXJuIF9leHRlbmRzLmFwcGx5KHRoaXMsIGFyZ3VtZW50cyk7IH1cbmltcG9ydCAqIGFzIFJlYWN0IGZyb20gXCJyZWFjdFwiO1xudmFyIF9yZWYgPSAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInBhdGhcIiwge1xuICBkOiBcIk0xIDI0LjA1M2w1LTQuODI1IDQgMi4xOTMgNS4zMzMtMi4xOTMgNy4zMzQgNi41NzkgNi0xLjc1NCAzLTQuODI1IDQuNjY2IDYuNTc5IDMuMzM0LTEuNzU0TDQ3LjMzMyAyOCA1NSAxOS4yMjhsNC4zMzMgMi4xOTMgNS4zMzQtMy41MDkgMiAxLjMxNmg2TDgxLjMzMyAzIDg0IDkuNTc5bDIuMzMzLTEuNzU0TDg5IDEzLjA4OGwxMi01LjI2M1wiLFxuICBzdHJva2U6IFwiI0NDQ1wiLFxuICBzdHJva2VXaWR0aDogMlxufSk7XG5mdW5jdGlvbiBTdmdDdGFHcmFwaFZpc2l0b3JzKHByb3BzKSB7XG4gIHJldHVybiAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInN2Z1wiLCBfZXh0ZW5kcyh7XG4gICAgdmlld0JveDogXCIwIDAgMTAyIDMwXCIsXG4gICAgZmlsbDogXCJub25lXCJcbiAgfSwgcHJvcHMpLCBfcmVmKTtcbn1cbmV4cG9ydCBkZWZhdWx0IFN2Z0N0YUdyYXBoVmlzaXRvcnM7Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./svg/graphics/cta-graph-visitors.svg\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/graphics/key-metrics-no-selected-items.svg":
|
|||
|
|
/*!********************************************************!*\
|
|||
|
|
!*** ./svg/graphics/key-metrics-no-selected-items.svg ***!
|
|||
|
|
\********************************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M59.238 58.571c-2.136 20.178 4.272 29.099 20.48 53.216 16.209 24.118-29.092 62.914 5.475 101.268 33.827 37.532 69.419.009 111.314-4.555 29.443-3.208 57.819 12.98 90.86 5.9 33.04-7.08 46.385-42.599 43.153-68.059-5.59-44.041-26.24-49.107-34.893-66.461-8.654-17.354 2.902-52.997-30.287-73.16-33.19-20.163-76.71 14.42-112.503 12.37-20.651-1.182-40.932-4.995-59.264.86-18.53 5.918-32.662 22.571-34.335 38.621z\",\n fill: \"#B8E6CA\"\n});\nvar _ref2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"g\", {\n filter: \"url(#key-metrics-no-selected-items_svg__filter0_d_2200_11981)\"\n}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"rect\", {\n x: 242.455,\n y: 45.266,\n width: 130.621,\n height: 89.651,\n rx: 10.957,\n transform: \"rotate(15 242.455 45.266)\",\n fill: \"#fff\"\n}));\nvar _ref3 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"rect\", {\n x: 253.726,\n y: 64.785,\n width: 24.903,\n height: 7.969,\n rx: 3.985,\n transform: \"rotate(15 253.726 64.785)\",\n fill: \"#EBEEF0\"\n});\nvar _ref4 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"rect\", {\n x: 249.342,\n y: 81.144,\n width: 49.806,\n height: 19.923,\n rx: 9.961,\n transform: \"rotate(15 249.342 81.144)\",\n fill: \"#FFDED3\"\n});\nvar _ref5 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"rect\", {\n x: 240.436,\n y: 114.357,\n width: 99.428,\n height: 8.773,\n rx: 3.985,\n transform: \"rotate(15 240.436 114.357)\",\n fill: \"#EBEEF0\"\n});\nvar _ref6 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M256.195 90.198l4.644 8.044m0 0l1.412-4.986m-1.412 4.986l-5.023-1.27\",\n stroke: \"#fff\",\n strokeWidth: 1.494,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n});\nvar _ref7 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"rect\", {\n x: 268.706,\n y: 93.551,\n width: 19.923,\n height: 5.977,\n rx: 1.992,\n transform: \"rotate(15 268.706 93.55)\",\n fill: \"#fff\"\n});\nvar _ref8 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"g\", {\n filter: \"url(#key-metrics-no-selected-items_svg__filter1_d_2200_11981)\"\n}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"rect\", {\n x: 13.887,\n y: 79.094,\n width: 130.621,\n height: 89.68,\n rx: 10.957,\n transform: \"rotate(-15 13.887 79.094)\",\n fill: \"#fff\"\n}));\nvar _ref9 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"rect\", {\n x: 32.989,\n y: 90.122,\n width: 62.386,\n height: 7.798,\n rx: 3.899,\n transform: \"rotate(-15 32.99 90.122)\",\n fill: \"#EBEEF0\"\n});\nvar _ref10 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"rect\", {\n x: 37.691,\n y: 106.902,\n width: 49.806,\n height: 19.923,\n rx: 9.961,\n transform: \"rotate(-15 37.691 106.902)\",\n fill: \"#FFDED3\"\n});\nvar _ref11 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"rect\", {\n x: 46.612,\n y: 140.967,\n width: 99.428,\n height: 7.798,\n rx: 3.899,\n transform: \"rotate(-15 46.612 140.967)\",\n fill: \"#EBEEF0\"\n});\nvar _ref12 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M48.152 111.318l8.044 4.645m0 0l-1.27-5.0
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/graphics/search-console.svg":
|
|||
|
|
/*!*****************************************!*\
|
|||
|
|
!*** ./svg/graphics/search-console.svg ***!
|
|||
|
|
\*****************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n fill: \"#525252\",\n d: \"M97.15 2.73c.46-.55 1.37-1.64 1.82-2.2 27-.1 53.98-.04 80.97-.02.44.5 1.32 1.5 1.75 2 .1.15.4.43.5.57.18.16.5.48.68.65.25.23.77.67 1.03.9.33.3.98.92 1.3 1.24.26.25.76.75 1 1 .25.23.7.7.96.94.25.25.74.75.98 1 .25.25.76.75 1 1 .27.26.78.76 1.03 1.02.25.25.76.75 1.02 1 .23.25.72.73.96.97l1 1c.24.24.73.73.98 1 .3.3.93.94 1.24 1.26.23.26.67.78.9 1.04.17.2.5.55.67.73.18.2.56.6.75.78.43.45 1.3 1.3 1.72 1.76.14.15.43.46.57.6.07.13.25.37.33.48.27.56.8 1.67 1.08 2.22.2 5.67-.07 11.34.06 17-7.7-.1-15.4-.1-23.08.02.26-.16.8-.47 1.07-.63-.7-6.6-.7-13.24-.58-19.87-26.28-.02-52.56-.02-78.83 0 .17 6.83-.08 13.64-.44 20.46l1.27.04c-7.8-.1-15.63-.12-23.44-.02.12-5.66-.14-11.32.03-16.98.3-.57.86-1.72 1.15-2.3.1-.1.26-.34.35-.46.15-.16.45-.47.6-.63.44-.45 1.33-1.3 1.77-1.75.2-.18.6-.56.78-.75.22-.22.65-.64.86-.85.24-.23.7-.7.94-.94.25-.24.74-.73.98-1 .25-.22.74-.72 1-.96.23-.26.72-.75.96-1 .24-.23.7-.7.94-.95.2-.23.63-.67.84-.9.32-.32.96-1 1.28-1.33l1.28-1.2c.2-.2.62-.6.83-.8.23-.22.7-.68.9-.9.26-.24.75-.73 1-.97s.72-.73.97-.97c.23-.24.7-.7.94-.94l.8-.8c.1-.14.35-.4.46-.54zm37.7 166.57c2.8-14.95 12.87-28.3 26.16-35.56.2 12.76.08 25.53-.04 38.3.03 2.54-.08 5.12.42 7.63 6.28 4 13.18 6.96 19.6 10.74 6.25-3.25 12.47-6.6 18.7-9.9 2.18-.66 1.4-3.2 1.62-4.93-.06-13.9-.1-27.82 0-41.73 10.12 4.16 17.33 12.82 23 21.85 1.95 6.62 4.35 13.27 4.08 20.3.38 16.85-9.32 33.53-24.3 41.32-1.08.74-2.8 1.17-2.66 2.8-.96 9.1-.42 18.3.17 27.4h-41c.3-9.72.8-19.43-.05-29.14-7.56-3.6-14.02-9.35-18.68-16.3-6.28-9.55-8.7-21.48-7.03-32.76z\"\n});\nvar _ref2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n fill: \"#4d4d4d\",\n d: \"M96.68 3.26c.12-.13.36-.4.47-.53-.1.13-.35.4-.47.53zm85.02-.76c.12.14.4.42.52.56-.13-.14-.4-.42-.53-.56zM95.9 4.06c.2-.2.6-.6.78-.8-.2.2-.6.6-.78.8zm86.32-1c.17.16.5.48.67.65-.2-.15-.5-.47-.7-.63zM94.96 5c.23-.24.7-.7.94-.94-.24.24-.7.7-.94.93zm87.94-1.3c.25.23.77.67 1.03.9-.26-.23-.78-.67-1.04-.9zM93.98 5.96c.24-.24.73-.73.98-.97-.25.22-.74.7-.98.95zm89.95-1.36c.32.3.97.92 1.3 1.24-.33-.32-.98-.94-1.3-1.25zM93 6.93c.25-.24.74-.73.98-.97l-.97.97zm92.22-1.1l1 1-1-1zm-93.12 2c.22-.22.68-.7.9-.9-.22.2-.68.68-.9.9zm94.13-1l.95.95c-.24-.24-.7-.7-.95-.94zm-94.97 1.8c.2-.2.62-.6.83-.8-.23.2-.64.6-.85.8zm95.92-.85zm-97.2 2.05l1.28-1.2-1.28 1.2zm98.18-1.06c.25.26.76.76 1 1.02-.24-.28-.75-.78-1-1.04zm-99.46 2.4c.32-.33.96-1 1.28-1.34-.32.34-.96 1-1.28 1.34zM189.17 9.8c.26.24.77.74 1.02 1-.27-.26-.78-.76-1.04-1zm-101.3 2.25c.2-.22.62-.66.83-.88-.2.22-.63.66-.84.88zM190.2 10.8c.25.25.76.75 1.02 1-.26-.25-.77-.75-1.03-1zM86.92 13c.24-.23.7-.7.94-.95-.23.24-.7.72-.94.96zm104.3-1.2c.24.25.73.73.97.97-.26-.24-.75-.72-1-.96zM85.95 14c.24-.26.73-.75.97-1-.24.25-.73.74-.97 1zm106.25-1.23zm-107.24 2.2c.25-.24.74-.74 1-.98-.26.22-.75.72-1 .96zm108.24-1.2c.24.25.73.74.98 1-.25-.26-.74-.75-1-1zm-109.22 2.2c.25-.26.74-.75.98-1-.24.25-.73.74-.98 1zm110.2-1.2c.3.3.93.95 1.24 1.27-.3-.32-.93-.96-1.24-1.28zM83.04 16.9c.24-.23.7-.7.94-.94l-.94.94zm112.38-.86c.23.26.67.78.9 1.04-.23-.26-.67-.78-.9-1.04zm-113.24 1.7c.22-.2.65-.63.86-.84-.2.2-.64.63-.86.85zm114.14-.66c.17.2.5.55.67.73-.2-.16-.5-.52-.7-.7zM81.4 18.5c.2-.18.6-.56.78-.75-.2.2-.6.57-.8.76zm115.6-.7c.18.2.56.6.75.78-.2-.2-.57-.58-.76-.77zM79.02 20.88c.15-.16.45-.47.6-.63-.15.16-.45.47-.6.63zm120.45-.55zm-120.8 1c.1-.1.26-.3
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/icons/arrow-inverse.svg":
|
|||
|
|
/*!*************************************!*\
|
|||
|
|
!*** ./svg/icons/arrow-inverse.svg ***!
|
|||
|
|
\*************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\"\n}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"circle\", {\n fill: \"#FFF\",\n cx: 6.5,\n cy: 6.5,\n r: 6.5\n}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M3.461 6.96h5.15L6.36 9.21a.464.464 0 00.325.79.459.459 0 00.325-.135l3.037-3.038a.459.459 0 000-.65L7.015 3.135a.46.46 0 00-.65.65L8.61 6.039H3.461a.462.462 0 00-.461.46c0 .254.207.462.461.462z\",\n fill: \"currentColor\"\n}), \".\");\nfunction SvgArrowInverse(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 13 13\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgArrowInverse);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvYXJyb3ctaW52ZXJzZS5zdmcuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zdmcvaWNvbnMvYXJyb3ctaW52ZXJzZS5zdmc/YTI2MiJdLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBfZXh0ZW5kcygpIHsgX2V4dGVuZHMgPSBPYmplY3QuYXNzaWduIHx8IGZ1bmN0aW9uICh0YXJnZXQpIHsgZm9yICh2YXIgaSA9IDE7IGkgPCBhcmd1bWVudHMubGVuZ3RoOyBpKyspIHsgdmFyIHNvdXJjZSA9IGFyZ3VtZW50c1tpXTsgZm9yICh2YXIga2V5IGluIHNvdXJjZSkgeyBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKHNvdXJjZSwga2V5KSkgeyB0YXJnZXRba2V5XSA9IHNvdXJjZVtrZXldOyB9IH0gfSByZXR1cm4gdGFyZ2V0OyB9OyByZXR1cm4gX2V4dGVuZHMuYXBwbHkodGhpcywgYXJndW1lbnRzKTsgfVxuaW1wb3J0ICogYXMgUmVhY3QgZnJvbSBcInJlYWN0XCI7XG52YXIgX3JlZiA9IC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KFwiZ1wiLCB7XG4gIGZpbGw6IFwibm9uZVwiLFxuICBmaWxsUnVsZTogXCJldmVub2RkXCJcbn0sIC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KFwiY2lyY2xlXCIsIHtcbiAgZmlsbDogXCIjRkZGXCIsXG4gIGN4OiA2LjUsXG4gIGN5OiA2LjUsXG4gIHI6IDYuNVxufSksIC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KFwicGF0aFwiLCB7XG4gIGQ6IFwiTTMuNDYxIDYuOTZoNS4xNUw2LjM2IDkuMjFhLjQ2NC40NjQgMCAwMC4zMjUuNzkuNDU5LjQ1OSAwIDAwLjMyNS0uMTM1bDMuMDM3LTMuMDM4YS40NTkuNDU5IDAgMDAwLS42NUw3LjAxNSAzLjEzNWEuNDYuNDYgMCAwMC0uNjUuNjVMOC42MSA2LjAzOUgzLjQ2MWEuNDYyLjQ2MiAwIDAwLS40NjEuNDZjMCAuMjU0LjIwNy40NjIuNDYxLjQ2MnpcIixcbiAgZmlsbDogXCJjdXJyZW50Q29sb3JcIlxufSksIFwiLlwiKTtcbmZ1bmN0aW9uIFN2Z0Fycm93SW52ZXJzZShwcm9wcykge1xuICByZXR1cm4gLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoXCJzdmdcIiwgX2V4dGVuZHMoe1xuICAgIHZpZXdCb3g6IFwiMCAwIDEzIDEzXCJcbiAgfSwgcHJvcHMpLCBfcmVmKTtcbn1cbmV4cG9ydCBkZWZhdWx0IFN2Z0Fycm93SW52ZXJzZTsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./svg/icons/arrow-inverse.svg\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/icons/arrow-up.svg":
|
|||
|
|
/*!********************************!*\
|
|||
|
|
!*** ./svg/icons/arrow-up.svg ***!
|
|||
|
|
\********************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M0 3.01l.443.387 1.755-1.534v3.344h.628V1.863L4.578 3.4l.446-.39L2.512.811 0 3.009z\",\n fill: \"currentColor\"\n});\nfunction SvgArrowUp(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 6 6\",\n fill: \"none\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgArrowUp);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvYXJyb3ctdXAuc3ZnLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3ZnL2ljb25zL2Fycm93LXVwLnN2Zz8wYmZjIl0sInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF9leHRlbmRzKCkgeyBfZXh0ZW5kcyA9IE9iamVjdC5hc3NpZ24gfHwgZnVuY3Rpb24gKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldOyBmb3IgKHZhciBrZXkgaW4gc291cmNlKSB7IGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoc291cmNlLCBrZXkpKSB7IHRhcmdldFtrZXldID0gc291cmNlW2tleV07IH0gfSB9IHJldHVybiB0YXJnZXQ7IH07IHJldHVybiBfZXh0ZW5kcy5hcHBseSh0aGlzLCBhcmd1bWVudHMpOyB9XG5pbXBvcnQgKiBhcyBSZWFjdCBmcm9tIFwicmVhY3RcIjtcbnZhciBfcmVmID0gLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoXCJwYXRoXCIsIHtcbiAgZDogXCJNMCAzLjAxbC40NDMuMzg3IDEuNzU1LTEuNTM0djMuMzQ0aC42MjhWMS44NjNMNC41NzggMy40bC40NDYtLjM5TDIuNTEyLjgxMSAwIDMuMDA5elwiLFxuICBmaWxsOiBcImN1cnJlbnRDb2xvclwiXG59KTtcbmZ1bmN0aW9uIFN2Z0Fycm93VXAocHJvcHMpIHtcbiAgcmV0dXJuIC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KFwic3ZnXCIsIF9leHRlbmRzKHtcbiAgICB2aWV3Qm94OiBcIjAgMCA2IDZcIixcbiAgICBmaWxsOiBcIm5vbmVcIlxuICB9LCBwcm9wcyksIF9yZWYpO1xufVxuZXhwb3J0IGRlZmF1bHQgU3ZnQXJyb3dVcDsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./svg/icons/arrow-up.svg\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/icons/arrow.svg":
|
|||
|
|
/*!*****************************!*\
|
|||
|
|
!*** ./svg/icons/arrow.svg ***!
|
|||
|
|
\*****************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\"\n}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"circle\", {\n fill: \"currentColor\",\n cx: 6.5,\n cy: 6.5,\n r: 6.5\n}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M3.461 6.96h5.15L6.36 9.21a.464.464 0 00.325.79.459.459 0 00.325-.135l3.037-3.038a.459.459 0 000-.65L7.015 3.135a.46.46 0 00-.65.65L8.61 6.039H3.461a.462.462 0 00-.461.46c0 .254.207.462.461.462z\",\n fill: \"#FFF\"\n}), \".\");\nfunction SvgArrow(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 13 13\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgArrow);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvYXJyb3cuc3ZnLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3ZnL2ljb25zL2Fycm93LnN2Zz8yODEwIl0sInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF9leHRlbmRzKCkgeyBfZXh0ZW5kcyA9IE9iamVjdC5hc3NpZ24gfHwgZnVuY3Rpb24gKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldOyBmb3IgKHZhciBrZXkgaW4gc291cmNlKSB7IGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoc291cmNlLCBrZXkpKSB7IHRhcmdldFtrZXldID0gc291cmNlW2tleV07IH0gfSB9IHJldHVybiB0YXJnZXQ7IH07IHJldHVybiBfZXh0ZW5kcy5hcHBseSh0aGlzLCBhcmd1bWVudHMpOyB9XG5pbXBvcnQgKiBhcyBSZWFjdCBmcm9tIFwicmVhY3RcIjtcbnZhciBfcmVmID0gLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoXCJnXCIsIHtcbiAgZmlsbDogXCJub25lXCIsXG4gIGZpbGxSdWxlOiBcImV2ZW5vZGRcIlxufSwgLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoXCJjaXJjbGVcIiwge1xuICBmaWxsOiBcImN1cnJlbnRDb2xvclwiLFxuICBjeDogNi41LFxuICBjeTogNi41LFxuICByOiA2LjVcbn0pLCAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInBhdGhcIiwge1xuICBkOiBcIk0zLjQ2MSA2Ljk2aDUuMTVMNi4zNiA5LjIxYS40NjQuNDY0IDAgMDAuMzI1Ljc5LjQ1OS40NTkgMCAwMC4zMjUtLjEzNWwzLjAzNy0zLjAzOGEuNDU5LjQ1OSAwIDAwMC0uNjVMNy4wMTUgMy4xMzVhLjQ2LjQ2IDAgMDAtLjY1LjY1TDguNjEgNi4wMzlIMy40NjFhLjQ2Mi40NjIgMCAwMC0uNDYxLjQ2YzAgLjI1NC4yMDcuNDYyLjQ2MS40NjJ6XCIsXG4gIGZpbGw6IFwiI0ZGRlwiXG59KSwgXCIuXCIpO1xuZnVuY3Rpb24gU3ZnQXJyb3cocHJvcHMpIHtcbiAgcmV0dXJuIC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KFwic3ZnXCIsIF9leHRlbmRzKHtcbiAgICB2aWV3Qm94OiBcIjAgMCAxMyAxM1wiXG4gIH0sIHByb3BzKSwgX3JlZik7XG59XG5leHBvcnQgZGVmYXVsdCBTdmdBcnJvdzsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./svg/icons/arrow.svg\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/icons/back.svg":
|
|||
|
|
/*!****************************!*\
|
|||
|
|
!*** ./svg/icons/back.svg ***!
|
|||
|
|
\****************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M12 20l-8-8 8-8 1.425 1.4-5.6 5.6H20v2H7.825l5.6 5.6L12 20z\"\n});\nfunction SvgBack(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 24 24\",\n fill: \"currentColor\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgBack);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvYmFjay5zdmcuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zdmcvaWNvbnMvYmFjay5zdmc/MTY0YSJdLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBfZXh0ZW5kcygpIHsgX2V4dGVuZHMgPSBPYmplY3QuYXNzaWduIHx8IGZ1bmN0aW9uICh0YXJnZXQpIHsgZm9yICh2YXIgaSA9IDE7IGkgPCBhcmd1bWVudHMubGVuZ3RoOyBpKyspIHsgdmFyIHNvdXJjZSA9IGFyZ3VtZW50c1tpXTsgZm9yICh2YXIga2V5IGluIHNvdXJjZSkgeyBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKHNvdXJjZSwga2V5KSkgeyB0YXJnZXRba2V5XSA9IHNvdXJjZVtrZXldOyB9IH0gfSByZXR1cm4gdGFyZ2V0OyB9OyByZXR1cm4gX2V4dGVuZHMuYXBwbHkodGhpcywgYXJndW1lbnRzKTsgfVxuaW1wb3J0ICogYXMgUmVhY3QgZnJvbSBcInJlYWN0XCI7XG52YXIgX3JlZiA9IC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KFwicGF0aFwiLCB7XG4gIGQ6IFwiTTEyIDIwbC04LTggOC04IDEuNDI1IDEuNC01LjYgNS42SDIwdjJINy44MjVsNS42IDUuNkwxMiAyMHpcIlxufSk7XG5mdW5jdGlvbiBTdmdCYWNrKHByb3BzKSB7XG4gIHJldHVybiAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInN2Z1wiLCBfZXh0ZW5kcyh7XG4gICAgdmlld0JveDogXCIwIDAgMjQgMjRcIixcbiAgICBmaWxsOiBcImN1cnJlbnRDb2xvclwiXG4gIH0sIHByb3BzKSwgX3JlZik7XG59XG5leHBvcnQgZGVmYXVsdCBTdmdCYWNrOyJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./svg/icons/back.svg\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/icons/check-2.svg":
|
|||
|
|
/*!*******************************!*\
|
|||
|
|
!*** ./svg/icons/check-2.svg ***!
|
|||
|
|
\*******************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M2 5.309l1.474 2.14c.69 1.001 1.946 1.001 2.636 0L10 1.8\",\n stroke: \"currentColor\",\n strokeWidth: 1.6,\n strokeLinecap: \"square\"\n});\nfunction SvgCheck2(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 12 9\",\n fill: \"none\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgCheck2);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvY2hlY2stMi5zdmcuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zdmcvaWNvbnMvY2hlY2stMi5zdmc/MzQ0MSJdLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBfZXh0ZW5kcygpIHsgX2V4dGVuZHMgPSBPYmplY3QuYXNzaWduIHx8IGZ1bmN0aW9uICh0YXJnZXQpIHsgZm9yICh2YXIgaSA9IDE7IGkgPCBhcmd1bWVudHMubGVuZ3RoOyBpKyspIHsgdmFyIHNvdXJjZSA9IGFyZ3VtZW50c1tpXTsgZm9yICh2YXIga2V5IGluIHNvdXJjZSkgeyBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKHNvdXJjZSwga2V5KSkgeyB0YXJnZXRba2V5XSA9IHNvdXJjZVtrZXldOyB9IH0gfSByZXR1cm4gdGFyZ2V0OyB9OyByZXR1cm4gX2V4dGVuZHMuYXBwbHkodGhpcywgYXJndW1lbnRzKTsgfVxuaW1wb3J0ICogYXMgUmVhY3QgZnJvbSBcInJlYWN0XCI7XG52YXIgX3JlZiA9IC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KFwicGF0aFwiLCB7XG4gIGQ6IFwiTTIgNS4zMDlsMS40NzQgMi4xNGMuNjkgMS4wMDEgMS45NDYgMS4wMDEgMi42MzYgMEwxMCAxLjhcIixcbiAgc3Ryb2tlOiBcImN1cnJlbnRDb2xvclwiLFxuICBzdHJva2VXaWR0aDogMS42LFxuICBzdHJva2VMaW5lY2FwOiBcInNxdWFyZVwiXG59KTtcbmZ1bmN0aW9uIFN2Z0NoZWNrMihwcm9wcykge1xuICByZXR1cm4gLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoXCJzdmdcIiwgX2V4dGVuZHMoe1xuICAgIHZpZXdCb3g6IFwiMCAwIDEyIDlcIixcbiAgICBmaWxsOiBcIm5vbmVcIlxuICB9LCBwcm9wcyksIF9yZWYpO1xufVxuZXhwb3J0IGRlZmF1bHQgU3ZnQ2hlY2syOyJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./svg/icons/check-2.svg\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/icons/close.svg":
|
|||
|
|
/*!*****************************!*\
|
|||
|
|
!*** ./svg/icons/close.svg ***!
|
|||
|
|
\*****************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M14 1.41L12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7 14 1.41z\",\n fill: \"currentColor\"\n});\nfunction SvgClose(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 14 14\",\n fill: \"none\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgClose);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvY2xvc2Uuc3ZnLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3ZnL2ljb25zL2Nsb3NlLnN2Zz9mM2EwIl0sInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF9leHRlbmRzKCkgeyBfZXh0ZW5kcyA9IE9iamVjdC5hc3NpZ24gfHwgZnVuY3Rpb24gKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldOyBmb3IgKHZhciBrZXkgaW4gc291cmNlKSB7IGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoc291cmNlLCBrZXkpKSB7IHRhcmdldFtrZXldID0gc291cmNlW2tleV07IH0gfSB9IHJldHVybiB0YXJnZXQ7IH07IHJldHVybiBfZXh0ZW5kcy5hcHBseSh0aGlzLCBhcmd1bWVudHMpOyB9XG5pbXBvcnQgKiBhcyBSZWFjdCBmcm9tIFwicmVhY3RcIjtcbnZhciBfcmVmID0gLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoXCJwYXRoXCIsIHtcbiAgZDogXCJNMTQgMS40MUwxMi41OSAwIDcgNS41OSAxLjQxIDAgMCAxLjQxIDUuNTkgNyAwIDEyLjU5IDEuNDEgMTQgNyA4LjQxIDEyLjU5IDE0IDE0IDEyLjU5IDguNDEgNyAxNCAxLjQxelwiLFxuICBmaWxsOiBcImN1cnJlbnRDb2xvclwiXG59KTtcbmZ1bmN0aW9uIFN2Z0Nsb3NlKHByb3BzKSB7XG4gIHJldHVybiAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInN2Z1wiLCBfZXh0ZW5kcyh7XG4gICAgdmlld0JveDogXCIwIDAgMTQgMTRcIixcbiAgICBmaWxsOiBcIm5vbmVcIlxuICB9LCBwcm9wcyksIF9yZWYpO1xufVxuZXhwb3J0IGRlZmF1bHQgU3ZnQ2xvc2U7Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./svg/icons/close.svg\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/icons/external.svg":
|
|||
|
|
/*!********************************!*\
|
|||
|
|
!*** ./svg/icons/external.svg ***!
|
|||
|
|
\********************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M5 21a1.99 1.99 0 01-1.425-.575A1.99 1.99 0 013 19V5c0-.55.192-1.017.575-1.4.4-.4.875-.6 1.425-.6h7v2H5v14h14v-7h2v7c0 .55-.2 1.025-.6 1.425-.383.383-.85.575-1.4.575H5zm4.7-5.3l-1.4-1.4L17.6 5H14V3h7v7h-2V6.4l-9.3 9.3z\"\n});\nfunction SvgExternal(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 24 24\",\n fill: \"currentColor\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgExternal);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvZXh0ZXJuYWwuc3ZnLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3ZnL2ljb25zL2V4dGVybmFsLnN2Zz82N2VjIl0sInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF9leHRlbmRzKCkgeyBfZXh0ZW5kcyA9IE9iamVjdC5hc3NpZ24gfHwgZnVuY3Rpb24gKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldOyBmb3IgKHZhciBrZXkgaW4gc291cmNlKSB7IGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoc291cmNlLCBrZXkpKSB7IHRhcmdldFtrZXldID0gc291cmNlW2tleV07IH0gfSB9IHJldHVybiB0YXJnZXQ7IH07IHJldHVybiBfZXh0ZW5kcy5hcHBseSh0aGlzLCBhcmd1bWVudHMpOyB9XG5pbXBvcnQgKiBhcyBSZWFjdCBmcm9tIFwicmVhY3RcIjtcbnZhciBfcmVmID0gLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoXCJwYXRoXCIsIHtcbiAgZDogXCJNNSAyMWExLjk5IDEuOTkgMCAwMS0xLjQyNS0uNTc1QTEuOTkgMS45OSAwIDAxMyAxOVY1YzAtLjU1LjE5Mi0xLjAxNy41NzUtMS40LjQtLjQuODc1LS42IDEuNDI1LS42aDd2Mkg1djE0aDE0di03aDJ2N2MwIC41NS0uMiAxLjAyNS0uNiAxLjQyNS0uMzgzLjM4My0uODUuNTc1LTEuNC41NzVINXptNC43LTUuM2wtMS40LTEuNEwxNy42IDVIMTRWM2g3djdoLTJWNi40bC05LjMgOS4zelwiXG59KTtcbmZ1bmN0aW9uIFN2Z0V4dGVybmFsKHByb3BzKSB7XG4gIHJldHVybiAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInN2Z1wiLCBfZXh0ZW5kcyh7XG4gICAgdmlld0JveDogXCIwIDAgMjQgMjRcIixcbiAgICBmaWxsOiBcImN1cnJlbnRDb2xvclwiXG4gIH0sIHByb3BzKSwgX3JlZik7XG59XG5leHBvcnQgZGVmYXVsdCBTdmdFeHRlcm5hbDsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./svg/icons/external.svg\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/icons/info-green.svg":
|
|||
|
|
/*!**********************************!*\
|
|||
|
|
!*** ./svg/icons/info-green.svg ***!
|
|||
|
|
\**********************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M7.334 11.333h1.333v-4H7.334v4zM8.001 6a.658.658 0 00.667-.667.605.605 0 00-.2-.467.605.605 0 00-.467-.2.658.658 0 00-.667.667c0 .189.061.35.183.483A.69.69 0 008.001 6zm0 8.666a6.583 6.583 0 01-2.6-.516 6.85 6.85 0 01-2.117-1.434A6.85 6.85 0 011.851 10.6 6.582 6.582 0 011.334 8c0-.923.172-1.79.517-2.6a6.85 6.85 0 011.433-2.117c.6-.6 1.306-1.072 2.117-1.417A6.404 6.404 0 018 1.333c.922 0 1.789.178 2.6.533a6.618 6.618 0 012.116 1.417c.6.6 1.072 1.306 1.417 2.117.355.81.533 1.677.533 2.6 0 .922-.178 1.789-.533 2.6a6.619 6.619 0 01-1.417 2.116 6.85 6.85 0 01-2.116 1.434 6.583 6.583 0 01-2.6.516zm0-1.333c1.489 0 2.75-.517 3.783-1.55s1.55-2.294 1.55-3.783c0-1.49-.517-2.75-1.55-3.784-1.033-1.033-2.294-1.55-3.783-1.55-1.49 0-2.75.517-3.784 1.55C3.184 5.25 2.667 6.511 2.667 8c0 1.489.517 2.75 1.55 3.783 1.034 1.033 2.295 1.55 3.784 1.55z\",\n fill: \"currentColor\"\n});\nfunction SvgInfoGreen(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 16 16\",\n fill: \"none\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgInfoGreen);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvaW5mby1ncmVlbi5zdmcuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zdmcvaWNvbnMvaW5mby1ncmVlbi5zdmc/MmNhZSJdLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBfZXh0ZW5kcygpIHsgX2V4dGVuZHMgPSBPYmplY3QuYXNzaWduIHx8IGZ1bmN0aW9uICh0YXJnZXQpIHsgZm9yICh2YXIgaSA9IDE7IGkgPCBhcmd1bWVudHMubGVuZ3RoOyBpKyspIHsgdmFyIHNvdXJjZSA9IGFyZ3VtZW50c1tpXTsgZm9yICh2YXIga2V5IGluIHNvdXJjZSkgeyBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKHNvdXJjZSwga2V5KSkgeyB0YXJnZXRba2V5XSA9IHNvdXJjZVtrZXldOyB9IH0gfSByZXR1cm4gdGFyZ2V0OyB9OyByZXR1cm4gX2V4dGVuZHMuYXBwbHkodGhpcywgYXJndW1lbnRzKTsgfVxuaW1wb3J0ICogYXMgUmVhY3QgZnJvbSBcInJlYWN0XCI7XG52YXIgX3JlZiA9IC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KFwicGF0aFwiLCB7XG4gIGQ6IFwiTTcuMzM0IDExLjMzM2gxLjMzM3YtNEg3LjMzNHY0ek04LjAwMSA2YS42NTguNjU4IDAgMDAuNjY3LS42NjcuNjA1LjYwNSAwIDAwLS4yLS40NjcuNjA1LjYwNSAwIDAwLS40NjctLjIuNjU4LjY1OCAwIDAwLS42NjcuNjY3YzAgLjE4OS4wNjEuMzUuMTgzLjQ4M0EuNjkuNjkgMCAwMDguMDAxIDZ6bTAgOC42NjZhNi41ODMgNi41ODMgMCAwMS0yLjYtLjUxNiA2Ljg1IDYuODUgMCAwMS0yLjExNy0xLjQzNEE2Ljg1IDYuODUgMCAwMTEuODUxIDEwLjYgNi41ODIgNi41ODIgMCAwMTEuMzM0IDhjMC0uOTIzLjE3Mi0xLjc5LjUxNy0yLjZhNi44NSA2Ljg1IDAgMDExLjQzMy0yLjExN2MuNi0uNiAxLjMwNi0xLjA3MiAyLjExNy0xLjQxN0E2LjQwNCA2LjQwNCAwIDAxOCAxLjMzM2MuOTIyIDAgMS43ODkuMTc4IDIuNi41MzNhNi42MTggNi42MTggMCAwMTIuMTE2IDEuNDE3Yy42LjYgMS4wNzIgMS4zMDYgMS40MTcgMi4xMTcuMzU1LjgxLjUzMyAxLjY3Ny41MzMgMi42IDAgLjkyMi0uMTc4IDEuNzg5LS41MzMgMi42YTYuNjE5IDYuNjE5IDAgMDEtMS40MTcgMi4xMTYgNi44NSA2Ljg1IDAgMDEtMi4xMTYgMS40MzQgNi41ODMgNi41ODMgMCAwMS0yLjYuNTE2em0wLTEuMzMzYzEuNDg5IDAgMi43NS0uNTE3IDMuNzgzLTEuNTVzMS41NS0yLjI5NCAxLjU1LTMuNzgzYzAtMS40OS0uNTE3LTIuNzUtMS41NS0zLjc4NC0xLjAzMy0xLjAzMy0yLjI5NC0xLjU1LTMuNzgzLTEuNTUtMS40OSAwLTIuNzUuNTE3LTMuNzg0IDEuNTVDMy4xODQgNS4yNSAyLjY2NyA2LjUxMSAyLjY2NyA4YzAgMS40ODkuNTE3IDIuNzUgMS41NSAzLjc4MyAxLjAzNCAxLjAzMyAyLjI5NSAxLjU1IDMuNzg0IDEuNTV6XCIsXG4gIGZpbGw6IFwiY3VycmVudENvbG9yXCJcbn0pO1xuZnVuY3Rpb24gU3ZnSW5mb0dyZWVuKHByb3BzKSB7XG4gIHJldHVybiAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInN2Z1wiLCBfZXh0ZW5kcyh7XG4gICAgdmlld0JveDogXCIwIDAgMTYgMTZcIixcbiAgICBmaWxsOiBcIm5vbmVcIlxuICB9LCBwcm9wcyks
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/icons/info-icon.svg":
|
|||
|
|
/*!*********************************!*\
|
|||
|
|
!*** ./svg/icons/info-icon.svg ***!
|
|||
|
|
\*********************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M10 15.27L16.18 19l-1.64-7.03L20 7.24l-7.19-.61L10 0 7.19 6.63 0 7.24l5.46 4.73L3.82 19 10 15.27z\"\n});\nfunction SvgInfoIcon(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 20 20\",\n fill: \"currentColor\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgInfoIcon);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvaW5mby1pY29uLnN2Zy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3N2Zy9pY29ucy9pbmZvLWljb24uc3ZnPzMxN2MiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX2V4dGVuZHMoKSB7IF9leHRlbmRzID0gT2JqZWN0LmFzc2lnbiB8fCBmdW5jdGlvbiAodGFyZ2V0KSB7IGZvciAodmFyIGkgPSAxOyBpIDwgYXJndW1lbnRzLmxlbmd0aDsgaSsrKSB7IHZhciBzb3VyY2UgPSBhcmd1bWVudHNbaV07IGZvciAodmFyIGtleSBpbiBzb3VyY2UpIHsgaWYgKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChzb3VyY2UsIGtleSkpIHsgdGFyZ2V0W2tleV0gPSBzb3VyY2Vba2V5XTsgfSB9IH0gcmV0dXJuIHRhcmdldDsgfTsgcmV0dXJuIF9leHRlbmRzLmFwcGx5KHRoaXMsIGFyZ3VtZW50cyk7IH1cbmltcG9ydCAqIGFzIFJlYWN0IGZyb20gXCJyZWFjdFwiO1xudmFyIF9yZWYgPSAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInBhdGhcIiwge1xuICBkOiBcIk0xMCAxNS4yN0wxNi4xOCAxOWwtMS42NC03LjAzTDIwIDcuMjRsLTcuMTktLjYxTDEwIDAgNy4xOSA2LjYzIDAgNy4yNGw1LjQ2IDQuNzNMMy44MiAxOSAxMCAxNS4yN3pcIlxufSk7XG5mdW5jdGlvbiBTdmdJbmZvSWNvbihwcm9wcykge1xuICByZXR1cm4gLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoXCJzdmdcIiwgX2V4dGVuZHMoe1xuICAgIHZpZXdCb3g6IFwiMCAwIDIwIDIwXCIsXG4gICAgZmlsbDogXCJjdXJyZW50Q29sb3JcIlxuICB9LCBwcm9wcyksIF9yZWYpO1xufVxuZXhwb3J0IGRlZmF1bHQgU3ZnSW5mb0ljb247Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./svg/icons/info-icon.svg\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/icons/pencil-alt.svg":
|
|||
|
|
/*!**********************************!*\
|
|||
|
|
!*** ./svg/icons/pencil-alt.svg ***!
|
|||
|
|
\**********************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M12.149 7.96l-5.166 5.166a.344.344 0 00-.094.176l-.35 1.755a.344.344 0 00.404.404l1.755-.35a.344.344 0 00.175-.095l5.166-5.165-1.89-1.89zm2.301-1.814a1.031 1.031 0 00-1.458 0L6.497 12.64a1.031 1.031 0 00-.282.527l-.35 1.755a1.031 1.031 0 001.213 1.213l1.754-.35c.2-.04.383-.139.527-.283l6.495-6.494a1.031 1.031 0 000-1.459L14.45 6.146z\"\n});\nvar _ref2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M12.149 7.96l.117-.116a.165.165 0 00-.234 0l.117.117zm-5.166 5.166l-.116-.116.116.116zm-.094.176l.162.033-.162-.033zm-.35 1.755l.161.032-.162-.032zm.404.404l.032.162-.032-.162zm1.755-.35l.032.161-.032-.162zm.175-.095l.117.117-.117-.117zm5.166-5.165l.116.116a.165.165 0 000-.233l-.116.117zm-1.047-3.705l.116.116-.116-.116zm1.458 0l-.116.116.116-.116zM6.497 12.64l.117.117-.117-.117zm-.282.527l-.162-.032.162.032zm-.35 1.755l.161.032-.162-.032zm1.213 1.213l-.033-.162.033.162zm1.754-.35l.033.161-.033-.162zm.527-.283l.117.117-.117-.117zm6.495-6.494l-.117-.117.117.117zm0-1.459l.117-.116-.117.116zm-3.822.295L6.867 13.01l.233.233 5.166-5.165-.234-.234zM6.867 13.01a.509.509 0 00-.14.26l.324.065a.18.18 0 01.05-.092l-.234-.233zm-.14.26l-.35 1.754.323.065.351-1.755-.323-.064zm-.35 1.754a.509.509 0 00.598.599l-.064-.324a.179.179 0 01-.21-.21l-.324-.065zm.598.599l1.755-.35-.065-.325-1.754.351.064.324zm1.755-.35a.508.508 0 00.26-.14l-.233-.233a.18.18 0 01-.092.048l.065.324zm.26-.14l5.165-5.166-.233-.233L8.757 14.9l.233.233zm3.042-7.055l1.89 1.89.233-.234-1.89-1.89-.233.234zm1.076-1.816a.866.866 0 011.226 0l.233-.233a1.196 1.196 0 00-1.692 0l.233.233zm-6.494 6.495l6.494-6.495-.233-.233-6.494 6.495.233.233zm-.237.443a.866.866 0 01.237-.443l-.233-.233c-.167.167-.281.38-.328.61l.324.066zm-.35 1.754l.35-1.754-.324-.065-.35 1.755.323.064zm1.018 1.02a.866.866 0 01-1.019-1.02l-.323-.065a1.196 1.196 0 001.407 1.408l-.065-.324zm1.755-.351l-1.755.35.065.324 1.755-.35-.065-.324zm.443-.237a.866.866 0 01-.443.237l.065.323c.231-.046.444-.16.611-.327l-.233-.233zm6.494-6.495l-6.494 6.495.233.233 6.495-6.494-.234-.234zm0-1.225a.866.866 0 010 1.225l.234.234a1.196 1.196 0 000-1.692l-.234.233zm-1.403-1.404l1.403 1.404.234-.233-1.404-1.404-.233.233z\"\n});\nfunction SvgPencilAlt(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 22 22\",\n fill: \"currentColor\"\n }, props), _ref, _ref2);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgPencilAlt);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvcGVuY2lsLWFsdC5zdmcuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zdmcvaWNvbnMvcGVuY2lsLWFsdC5zdmc/OWE3ZCJdLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBfZXh0ZW5kcygpIHsgX2V4dGVuZHMgPSBPYmplY3QuYXNzaWduIHx8IGZ1bmN0aW9uICh0YXJnZXQpIHsgZm9yICh2YXIgaSA9IDE7IGkgPCBhcmd1bWVudHMubGVuZ3RoOyBpKyspIHsgdmFyIHNvdXJjZSA9IGFyZ3VtZW50c1tpXTsgZm9yICh2YXIga2V5IGluIHNvdXJjZSkgeyBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKHNvdXJjZSwga2V5KSkgeyB0YXJnZXRba2V5XSA9IHNvdXJjZVtrZXldOyB9IH0gfSByZXR1cm4gdGFyZ2V0OyB9OyByZXR1cm4gX2V4dGVuZHMuYXBwbHkodGhpcywgYXJndW1lbnRzKTsgfVxuaW1wb3J0ICogYXMgUmVhY3QgZnJvbSBcInJlYWN0XCI7XG52YXIgX3JlZiA9IC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KFwicGF0aFwiLCB7XG4gIG
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/icons/star-fill.svg":
|
|||
|
|
/*!*********************************!*\
|
|||
|
|
!*** ./svg/icons/star-fill.svg ***!
|
|||
|
|
\*********************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M5.825 22l2.325-7.6L2 10h7.6L12 2l2.4 8H22l-6.15 4.4 2.325 7.6L12 17.3 5.825 22z\",\n fill: \"currentColor\"\n});\nfunction SvgStarFill(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 24 24\",\n fill: \"none\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgStarFill);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvc3Rhci1maWxsLnN2Zy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3N2Zy9pY29ucy9zdGFyLWZpbGwuc3ZnPzlhZjUiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX2V4dGVuZHMoKSB7IF9leHRlbmRzID0gT2JqZWN0LmFzc2lnbiB8fCBmdW5jdGlvbiAodGFyZ2V0KSB7IGZvciAodmFyIGkgPSAxOyBpIDwgYXJndW1lbnRzLmxlbmd0aDsgaSsrKSB7IHZhciBzb3VyY2UgPSBhcmd1bWVudHNbaV07IGZvciAodmFyIGtleSBpbiBzb3VyY2UpIHsgaWYgKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChzb3VyY2UsIGtleSkpIHsgdGFyZ2V0W2tleV0gPSBzb3VyY2Vba2V5XTsgfSB9IH0gcmV0dXJuIHRhcmdldDsgfTsgcmV0dXJuIF9leHRlbmRzLmFwcGx5KHRoaXMsIGFyZ3VtZW50cyk7IH1cbmltcG9ydCAqIGFzIFJlYWN0IGZyb20gXCJyZWFjdFwiO1xudmFyIF9yZWYgPSAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInBhdGhcIiwge1xuICBkOiBcIk01LjgyNSAyMmwyLjMyNS03LjZMMiAxMGg3LjZMMTIgMmwyLjQgOEgyMmwtNi4xNSA0LjQgMi4zMjUgNy42TDEyIDE3LjMgNS44MjUgMjJ6XCIsXG4gIGZpbGw6IFwiY3VycmVudENvbG9yXCJcbn0pO1xuZnVuY3Rpb24gU3ZnU3RhckZpbGwocHJvcHMpIHtcbiAgcmV0dXJuIC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KFwic3ZnXCIsIF9leHRlbmRzKHtcbiAgICB2aWV3Qm94OiBcIjAgMCAyNCAyNFwiLFxuICAgIGZpbGw6IFwibm9uZVwiXG4gIH0sIHByb3BzKSwgX3JlZik7XG59XG5leHBvcnQgZGVmYXVsdCBTdmdTdGFyRmlsbDsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./svg/icons/star-fill.svg\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/icons/suggestion-icon.svg":
|
|||
|
|
/*!***************************************!*\
|
|||
|
|
!*** ./svg/icons/suggestion-icon.svg ***!
|
|||
|
|
\***************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M0 4h2v7H0zm0-4h2v2H0z\",\n fill: \"currentColor\",\n fillRule: \"evenodd\"\n});\nfunction SvgSuggestionIcon(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 2 11\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgSuggestionIcon);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvc3VnZ2VzdGlvbi1pY29uLnN2Zy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3N2Zy9pY29ucy9zdWdnZXN0aW9uLWljb24uc3ZnPzJiYWEiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX2V4dGVuZHMoKSB7IF9leHRlbmRzID0gT2JqZWN0LmFzc2lnbiB8fCBmdW5jdGlvbiAodGFyZ2V0KSB7IGZvciAodmFyIGkgPSAxOyBpIDwgYXJndW1lbnRzLmxlbmd0aDsgaSsrKSB7IHZhciBzb3VyY2UgPSBhcmd1bWVudHNbaV07IGZvciAodmFyIGtleSBpbiBzb3VyY2UpIHsgaWYgKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChzb3VyY2UsIGtleSkpIHsgdGFyZ2V0W2tleV0gPSBzb3VyY2Vba2V5XTsgfSB9IH0gcmV0dXJuIHRhcmdldDsgfTsgcmV0dXJuIF9leHRlbmRzLmFwcGx5KHRoaXMsIGFyZ3VtZW50cyk7IH1cbmltcG9ydCAqIGFzIFJlYWN0IGZyb20gXCJyZWFjdFwiO1xudmFyIF9yZWYgPSAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInBhdGhcIiwge1xuICBkOiBcIk0wIDRoMnY3SDB6bTAtNGgydjJIMHpcIixcbiAgZmlsbDogXCJjdXJyZW50Q29sb3JcIixcbiAgZmlsbFJ1bGU6IFwiZXZlbm9kZFwiXG59KTtcbmZ1bmN0aW9uIFN2Z1N1Z2dlc3Rpb25JY29uKHByb3BzKSB7XG4gIHJldHVybiAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInN2Z1wiLCBfZXh0ZW5kcyh7XG4gICAgdmlld0JveDogXCIwIDAgMiAxMVwiXG4gIH0sIHByb3BzKSwgX3JlZik7XG59XG5leHBvcnQgZGVmYXVsdCBTdmdTdWdnZXN0aW9uSWNvbjsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./svg/icons/suggestion-icon.svg\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/icons/warning-icon.svg":
|
|||
|
|
/*!************************************!*\
|
|||
|
|
!*** ./svg/icons/warning-icon.svg ***!
|
|||
|
|
\************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar _ref = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M0 0h2v7H0zm0 10h2v2H0z\",\n fill: \"currentColor\",\n fillRule: \"evenodd\"\n});\nfunction SvgWarningIcon(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 2 12\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgWarningIcon);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvd2FybmluZy1pY29uLnN2Zy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3N2Zy9pY29ucy93YXJuaW5nLWljb24uc3ZnPzlmYmMiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX2V4dGVuZHMoKSB7IF9leHRlbmRzID0gT2JqZWN0LmFzc2lnbiB8fCBmdW5jdGlvbiAodGFyZ2V0KSB7IGZvciAodmFyIGkgPSAxOyBpIDwgYXJndW1lbnRzLmxlbmd0aDsgaSsrKSB7IHZhciBzb3VyY2UgPSBhcmd1bWVudHNbaV07IGZvciAodmFyIGtleSBpbiBzb3VyY2UpIHsgaWYgKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChzb3VyY2UsIGtleSkpIHsgdGFyZ2V0W2tleV0gPSBzb3VyY2Vba2V5XTsgfSB9IH0gcmV0dXJuIHRhcmdldDsgfTsgcmV0dXJuIF9leHRlbmRzLmFwcGx5KHRoaXMsIGFyZ3VtZW50cyk7IH1cbmltcG9ydCAqIGFzIFJlYWN0IGZyb20gXCJyZWFjdFwiO1xudmFyIF9yZWYgPSAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInBhdGhcIiwge1xuICBkOiBcIk0wIDBoMnY3SDB6bTAgMTBoMnYySDB6XCIsXG4gIGZpbGw6IFwiY3VycmVudENvbG9yXCIsXG4gIGZpbGxSdWxlOiBcImV2ZW5vZGRcIlxufSk7XG5mdW5jdGlvbiBTdmdXYXJuaW5nSWNvbihwcm9wcykge1xuICByZXR1cm4gLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoXCJzdmdcIiwgX2V4dGVuZHMoe1xuICAgIHZpZXdCb3g6IFwiMCAwIDIgMTJcIlxuICB9LCBwcm9wcyksIF9yZWYpO1xufVxuZXhwb3J0IGRlZmF1bHQgU3ZnV2FybmluZ0ljb247Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./svg/icons/warning-icon.svg\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-components":
|
|||
|
|
/*!***********************************************!*\
|
|||
|
|
!*** external ["googlesitekit","components"] ***!
|
|||
|
|
\***********************************************/
|
|||
|
|
/*! no static exports found */
|
|||
|
|
/***/ (function(module, exports) {
|
|||
|
|
|
|||
|
|
eval("module.exports = googlesitekit[\"components\"];//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ29vZ2xlc2l0ZWtpdC1jb21wb25lbnRzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vL2V4dGVybmFsIFtcImdvb2dsZXNpdGVraXRcIixcImNvbXBvbmVudHNcIl0/ZmZlYiJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IGdvb2dsZXNpdGVraXRbXCJjb21wb25lbnRzXCJdOyJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///googlesitekit-components\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");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "googlesitekit-modules":
|
|||
|
|
/*!********************************************!*\
|
|||
|
|
!*** external ["googlesitekit","modules"] ***!
|
|||
|
|
\********************************************/
|
|||
|
|
/*! no static exports found */
|
|||
|
|
/***/ (function(module, exports) {
|
|||
|
|
|
|||
|
|
eval("module.exports = googlesitekit[\"modules\"];//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ29vZ2xlc2l0ZWtpdC1tb2R1bGVzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vL2V4dGVybmFsIFtcImdvb2dsZXNpdGVraXRcIixcIm1vZHVsZXNcIl0/MTU3ZiJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IGdvb2dsZXNpdGVraXRbXCJtb2R1bGVzXCJdOyJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///googlesitekit-modules\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "googlesitekit-widgets":
|
|||
|
|
/*!********************************************!*\
|
|||
|
|
!*** external ["googlesitekit","widgets"] ***!
|
|||
|
|
\********************************************/
|
|||
|
|
/*! no static exports found */
|
|||
|
|
/***/ (function(module, exports) {
|
|||
|
|
|
|||
|
|
eval("module.exports = googlesitekit[\"widgets\"];//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ29vZ2xlc2l0ZWtpdC13aWRnZXRzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vL2V4dGVybmFsIFtcImdvb2dsZXNpdGVraXRcIixcIndpZGdldHNcIl0/MTlkZiJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IGdvb2dsZXNpdGVraXRbXCJ3aWRnZXRzXCJdOyJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///googlesitekit-widgets\n");
|
|||
|
|
|
|||
|
|
/***/ })
|
|||
|
|
|
|||
|
|
},[["./js/googlesitekit-modules-search-console.js","runtime","googlesitekit-vendor"]]]);
|