2254 lines
2.0 MiB
JavaScript
2254 lines
2.0 MiB
JavaScript
|
|
(window["__googlesitekit_webpackJsonp"] = window["__googlesitekit_webpackJsonp"] || []).push([["googlesitekit-wp-dashboard"],{
|
|||
|
|
|
|||
|
|
/***/ "./js/components/AccessibleWarningIcon.js":
|
|||
|
|
/*!************************************************!*\
|
|||
|
|
!*** ./js/components/AccessibleWarningIcon.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 AccessibleWarningIcon; });\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 _VisuallyHidden__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VisuallyHidden */ \"./js/components/VisuallyHidden.js\");\n/* harmony import */ var _svg_icons_warning_v2_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../svg/icons/warning-v2.svg */ \"./svg/icons/warning-v2.svg\");\n\n/**\n * AccessibleWarningIcon 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/**\n * Internal dependencies\n */\n\n\nfunction AccessibleWarningIcon(_ref) {\n var _ref$height = _ref.height,\n height = _ref$height === void 0 ? 12 : _ref$height,\n _ref$screenReaderText = _ref.screenReaderText,\n screenReaderText = _ref$screenReaderText === void 0 ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('Error', 'google-site-kit') : _ref$screenReaderText,\n _ref$width = _ref.width,\n width = _ref$width === void 0 ? 14 : _ref$width;\n return /*#__PURE__*/React.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, /*#__PURE__*/React.createElement(_VisuallyHidden__WEBPACK_IMPORTED_MODULE_3__[\"default\"], null, screenReaderText), /*#__PURE__*/React.createElement(_svg_icons_warning_v2_svg__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n width: width,\n height: height\n }));\n}\nAccessibleWarningIcon.propTypes = {\n height: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,\n screenReaderText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n width: 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0FjY2Vzc2libGVXYXJuaW5nSWNvbi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2NvbXBvbmVudHMvQWNjZXNzaWJsZVdhcm5pbmdJY29uLmpzP2YzNWYiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBBY2Nlc3NpYmxlV2FybmluZ0ljb24gY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjQgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0NoYW5nZUFycm93LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9DaGFuZ2VBcnJvdy5qcz9iNjAwIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5pbXBvcnQgY2xhc3NuYW1lcyBmcm9tICdjbGFzc25hbWVzJztcblxuZnVuY3Rpb24gQ2hhbmdlQXJyb3coIHsgZGlyZWN0aW9uLCBpbnZlcnRDb2xvciwgd2lkdGgsIGhlaWdodCB9ICkge1xuXHRyZXR1cm4gKFxuXHRcdDxzdmdcblx0XHRcdGNsYXNzTmFtZT17IGNsYXNzbmFtZXMoXG5cdFx0XHRcdCdnb29nbGVzaXRla2l0LWNoYW5nZS1hcnJvdycsXG5cdFx0XHRcdGBnb29nbGVzaXRla2l0LWNoYW5nZS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UFDQTtBQUVBO0FBQUE7
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/NjdiOCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFNwYXJrbGluZSBjb21wb25lbnQuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMyBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZ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./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/DetailsPermaLinks.js":
|
|||
|
|
/*!********************************************!*\
|
|||
|
|
!*** ./js/components/DetailsPermaLinks.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 DetailsPermaLinks; });\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_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 _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ \"./js/util/index.js\");\n\n/**\n * Details Permalink Links 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\nfunction DetailsPermaLinks(_ref) {\n var title = _ref.title,\n path = _ref.path,\n serviceURL = _ref.serviceURL;\n var siteURL = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_4__[\"CORE_SITE\"]).getReferenceSiteURL();\n });\n var permaLink = Object(_util__WEBPACK_IMPORTED_MODULE_6__[\"getFullURL\"])(siteURL, path);\n var detailsURL = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_4__[\"CORE_SITE\"]).getAdminURL('googlesitekit-dashboard', {\n permaLink: permaLink\n });\n });\n return /*#__PURE__*/React.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, /*#__PURE__*/React.createElement(_Link__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n className: \"googlesitekit-font-weight-medium\",\n href: serviceURL || detailsURL,\n external: !!serviceURL,\n hideExternalIndicator: true\n }, title), /*#__PURE__*/React.createElement(_Link__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('googlesitekit-display-block', 'googlesitekit-overflow-wrap-break-word'),\n href: permaLink,\n target: \"_blank\" // No external styling.\n ,\n small: true\n }, path));\n}\nDetailsPermaLinks.propTypes = {\
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/ErrorHandler/index.js":
|
|||
|
|
/*!*********************************************!*\
|
|||
|
|
!*** ./js/components/ErrorHandler/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 _GenericErrorHandlerActions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../GenericErrorHandlerActions */ \"./js/components/GenericErrorHandlerActions.js\");\n/* harmony import */ var _Root_ViewContextContext__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Root/ViewContextContext */ \"./js/components/Root/ViewContextContext.js\");\n/* harmony import */ var _notifications_BannerNotification__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../notifications/BannerNotification */ \"./js/components/notifications/BannerNotification/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../util */ \"./js/util/index.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_h
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/FeatureTours.js":
|
|||
|
|
/*!***************************************!*\
|
|||
|
|
!*** ./js/components/FeatureTours.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 FeatureTours; });\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 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_user_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hooks/useViewContext */ \"./js/hooks/useViewContext.js\");\n/* harmony import */ var _TourTooltips__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TourTooltips */ \"./js/components/TourTooltips.js\");\n\n/**\n * Feature Tours 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\n\n\nfunction FeatureTours() {\n var viewContext = Object(_hooks_useViewContext__WEBPACK_IMPORTED_MODULE_4__[\"default\"])();\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"useDispatch\"])(_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_USER\"]),\n triggerTourForView = _useDispatch.triggerTourForView;\n Object(react_use__WEBPACK_IMPORTED_MODULE_1__[\"useMount\"])(function () {\n triggerTourForView(viewContext);\n });\n var tour = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_USER\"]).getCurrentTour();\n });\n Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function () {\n if (!tour) {\n return;\n }\n var dashboardElement = document.getElementById('js-googlesitekit-main-dashboard');\n if (!dashboardElement) {\n return;\n }\n var observer = new ResizeObserver(function () {\n global.dispatchEvent(new Event('resize'));\n });\n observer.observe(dashboardElement);\n return function () {\n observer.disconnect();\n };\n }, [tour]);\n if (!tour) {\n return null;\n }\n return /*#__PURE__*/React.createElement(_TourTooltips__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n tourID: tour.slug,\n steps: tour.steps,\n gaEventCategory: tour.gaEventCategory,\n callback: tour.callback\n });\n}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ \"../node_modules/webpack/buildin/global.js\"), __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiL
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/FeaturesProvider/FeaturesContext.js":
|
|||
|
|
/*!***********************************************************!*\
|
|||
|
|
!*** ./js/components/FeaturesProvider/FeaturesContext.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 _features__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../features */ \"./js/features/index.js\");\n/**\n * Feature Flags 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\n\n/**\n * Internal dependencies\n */\n\nvar FeaturesContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createContext\"])(_features__WEBPACK_IMPORTED_MODULE_1__[\"enabledFeatures\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = (FeaturesContext);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0ZlYXR1cmVzUHJvdmlkZXIvRmVhdHVyZXNDb250ZXh0LmpzLmpzIiwic291cmNlcyI6WyJ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Jlc3MgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IGNyZWF0ZUNvbnRleHQgfSBmcm9tICdAd29yZHByZXNzL2VsZW1lbnQnO1xuXG4vKipcbiAqIEludGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgeyBlbmFibGVkRmVhdHVyZXMgfSBmcm9tICcuLi8uLi9mZWF0dXJlcyc7XG5cbmNvbnN0IEZlYXR1cmVzQ29udGV4dCA9IGNyZWF0ZUNvbnRleHQoIGVuYWJsZWRGZWF0dXJlcyApO1xuXG5leHBvcnQgZGVmYXVsdCBGZWF0dXJlc0NvbnRleHQ7XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/components/FeaturesProvider/FeaturesContext.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/FeaturesProvider/index.js":
|
|||
|
|
/*!*************************************************!*\
|
|||
|
|
!*** ./js/components/FeaturesProvider/index.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 _FeaturesContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FeaturesContext */ \"./js/components/FeaturesProvider/FeaturesContext.js\");\n/**\n * Feature Flags Provider component.\n *\n * Site Kit by Google, Copyright 2020 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 Consumer = _FeaturesContext__WEBPACK_IMPORTED_MODULE_0__[\"default\"].Consumer,\n Provider = _FeaturesContext__WEBPACK_IMPORTED_MODULE_0__[\"default\"].Provider;\n\nvar FeaturesProvider = Provider;\n/* harmony default export */ __webpack_exports__[\"default\"] = (FeaturesProvider);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0ZlYXR1cmVzUHJvdmlkZXIvaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9jb21wb25lbnRzL0ZlYXR1cmVzUHJvdmlkZXIvaW5kZXguanM/ZWFlNiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEZlYXR1cmUgRmxhZ3MgUHJvdmlkZXIgY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjAgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBp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0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUVBO0FBQUE7QUFFQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/components/FeaturesProvider/index.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/InViewProvider/InViewContext.js":
|
|||
|
|
/*!*******************************************************!*\
|
|||
|
|
!*** ./js/components/InViewProvider/InViewContext.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/**\n * InView 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 InViewContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"createContext\"])(false);\n/* harmony default export */ __webpack_exports__[\"default\"] = (InViewContext);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL0luVmlld1Byb3ZpZGVyL0luVmlld0NvbnRleHQuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9jb21wb25lbnRzL0luVmlld1Byb3ZpZGVyL0luVmlld0NvbnRleHQuanM/MDE1MCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEluVmlldyBjb250ZXh0IGZvciBSZWFjdCBjb21wb25lbnRzLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIk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7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/components/InViewProvider/InViewContext.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/InViewProvider/index.js":
|
|||
|
|
/*!***********************************************!*\
|
|||
|
|
!*** ./js/components/InViewProvider/index.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 _InViewContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./InViewContext */ \"./js/components/InViewProvider/InViewContext.js\");\n/**\n * In-view Provider component.\n *\n * Site Kit by Google, Copyright 2020 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 Consumer = _InViewContext__WEBPACK_IMPORTED_MODULE_0__[\"default\"].Consumer,\n Provider = _InViewContext__WEBPACK_IMPORTED_MODULE_0__[\"default\"].Provider;\n\nvar InViewProvider = Provider;\n/* harmony default export */ __webpack_exports__[\"default\"] = (InViewProvider);//# sourceURL=[module]\n//# sourceMappingURL=data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9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKipcbiAqIEludGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgSW5WaWV3Q29udGV4dCBmcm9tICcuL0luVmlld0NvbnRleHQnO1xuXG5leHBvcnQgY29uc3QgeyBDb25zdW1lciwgUHJvdmlkZXIgfSA9IEluVmlld0NvbnRleHQ7XG5cbmNvbnN0IEluVmlld1Byb3ZpZGVyID0gUHJvdmlkZXI7XG5cbmV4cG9ydCBkZWZhdWx0IEluVmlld1Byb3ZpZGVyO1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFFQTtBQUFBO0FBRUE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/components/InViewProvider/index.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/ModalDialog.js":
|
|||
|
|
/*!**************************************!*\
|
|||
|
|
!*** ./js/components/ModalDialog.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_compose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/compose */ \"../node_modules/@wordpress/compose/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 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 _svg_icons_warning_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../svg/icons/warning.svg */ \"./svg/icons/warning.svg\");\n\n/**\n * ModalDialog 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\n\nfunction ModalDialog(_ref) {\n var _ref$className = _ref.className,\n className = _ref$className === void 0 ? '' : _ref$className,\n _ref$dialogActive = _ref.dialogActive,\n dialogActive = _ref$dialogActive === void 0 ? false : _ref$dialogActive,\n _ref$handleDialog = _ref.handleDialog,\n handleDialog = _ref$handleDialog === void 0 ? null : _ref$handleDialog,\n _ref$onOpen = _ref.onOpen,\n onOpen = _ref$onOpen === void 0 ? null : _ref$onOpen,\n _ref$onClose = _ref.onClose,\n onClose = _ref$onClose === void 0 ? null : _ref$onClose,\n _ref$title = _ref.title,\n title = _ref$title === void 0 ? null : _ref$title,\n provides = _ref.provides,\n handleConfirm = _ref.handleConfirm,\n subtitle = _ref.subtitle,\n _ref$confirmButton = _ref.confirmButton,\n confirmButton = _ref$confirmButton === void 0 ? null : _ref$confirmButton,\n dependentModules = _ref.dependentModules,\n _ref$danger = _ref.danger,\n danger = _ref$danger === void 0 ? false : _ref$danger,\n _ref$inProgress = _ref.inProgress,\n inProgress = _ref$inProgress === void 0 ? false : _ref$inProgress,\n _ref$small = _ref.small,\n small = _ref$small === void 0 ? false : _ref$small,\n _ref$medium = _ref.medium,\n medium = _ref$medium === void 0 ? false : _ref$medium,\n _ref$buttonLink = _ref.buttonLink,\n buttonLink = _ref$buttonLink === void 0 ? null : _ref$buttonLin
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/ModuleIcon.js":
|
|||
|
|
/*!*************************************!*\
|
|||
|
|
!*** ./js/components/ModuleIcon.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 ModuleIcon; });\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 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\n\n\n/**\n * ModuleIcon 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\nfunction ModuleIcon(_ref) {\n var slug = _ref.slug,\n size = _ref.size,\n props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref, [\"slug\", \"size\"]);\n var ModuleIconComponent = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_MODULES\"]).getModuleIcon(slug);\n });\n if (!ModuleIconComponent) {\n return null;\n }\n return /*#__PURE__*/React.createElement(ModuleIconComponent, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({\n width: size,\n height: size\n }, props));\n}\nModuleIcon.propTypes = {\n slug: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string.isRequired,\n size: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.number\n};\nModuleIcon.defaultProps = {\n size: 33\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL01vZHVsZUl
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/YmIyMSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIE51bGwgY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ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VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/components/Null.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/PermissionsModal/AuthenticatedPermissionsModal.js":
|
|||
|
|
/*!*************************************************************************!*\
|
|||
|
|
!*** ./js/components/PermissionsModal/AuthenticatedPermissionsModal.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_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 _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 _ModalDialog__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ModalDialog */ \"./js/components/ModalDialog.js\");\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_datastore_location_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../googlesitekit/datastore/location/constants */ \"./js/googlesitekit/datastore/location/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 _googlesitekit_data_create_snapshot_store__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../googlesitekit/data/create-snapshot-store */ \"./js/googlesitekit/data/create-snapshot-store.js\");\n/* harmony import */ var _Portal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Portal */ \"./js/components/Portal.js\");\n\n\n\n/**\n * AuthenticatedPermissionsModal 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\nfunction AuthenticatedPermissionsModal() {\n var _permissionsError$dat7, _permissionsError$dat8, _permissionsError$dat9, _permissionsError$dat10;\n var registry = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useRegistry\"])();\n var permissionsError = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useSelect\"])(function (select) {\n return select(_googlesiteki
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/PermissionsModal/index.js":
|
|||
|
|
/*!*************************************************!*\
|
|||
|
|
!*** ./js/components/PermissionsModal/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 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 _AuthenticatedPermissionsModal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AuthenticatedPermissionsModal */ \"./js/components/PermissionsModal/AuthenticatedPermissionsModal.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\n/**\n * PermissionsModal 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\nfunction PermissionsModal() {\n var isAuthenticated = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_user_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_USER\"]).isAuthenticated();\n });\n if (isAuthenticated) {\n return /*#__PURE__*/React.createElement(_AuthenticatedPermissionsModal__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null);\n }\n return null;\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (PermissionsModal);\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1Blcm1pc3Npb25zTW9kYWwvaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9jb21wb25lbnRzL1Blcm1pc3Npb25zTW9kYWwvaW5kZXguanM/N2RlMyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFBlcm1pc3Npb25zTW9kYWwgY29tcG9uZW50LlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5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b24gUGVybWlzc2lvbnNNb2RhbCgpIHtcblx0Y29uc3QgaXNBdXRoZW50aWNhdGVkID0gdXNlU2VsZWN0KCAoIHNlbGVjdCApID0+XG5cdFx0c2VsZWN0KCBDT1JFX1VTR
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/ReportError.js":
|
|||
|
|
/*!**************************************!*\
|
|||
|
|
!*** ./js/components/ReportError.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 ReportError; });\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 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 _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_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../googlesitekit/modules/datastore/constants */ \"./js/googlesitekit/modules/datastore/constants.js\");\n/* harmony import */ var _util_errors__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../util/errors */ \"./js/util/errors.js\");\n/* harmony import */ var _util_insufficient_permissions_error_description__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../util/insufficient-permissions-error-description */ \"./js/util/insufficient-permissions-error-description.js\");\n/* harmony import */ var _util_purify__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../util/purify */ \"./js/util/purify.js\");\n/* harmony import */ var _components_ErrorText__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../components/ErrorText */ \"./js/components/ErrorText.js\");\n/* harmony import */ var _notifications_CTA__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./notifications/CTA */ \"./js/components/notifications/CTA.js\");\n/* harmony import */ var _ReportErrorActions__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ReportErrorActions */ \"./js/components/ReportErrorActions.js\");\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[
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/ReportZero.js":
|
|||
|
|
/*!*************************************!*\
|
|||
|
|
!*** ./js/components/ReportZero.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 ReportZero; });\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 * ReportZero 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\n\nfunction ReportZero(_ref) {\n var moduleSlug = _ref.moduleSlug;\n var module = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_modules_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"CORE_MODULES\"]).getModule(moduleSlug);\n });\n return /*#__PURE__*/React.createElement(_notifications_CTA__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"sprintf\"])(/* translators: %s: Module name */\n Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('%s Gathering Data', 'google-site-kit'), module === null || module === void 0 ? void 0 : module.name),\n description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"sprintf\"])(/* translators: %s: Module name */\n Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('%s data is not yet available, please check back later', 'google-site-kit'), module === null || module === void 0 ? void 0 : module.name)\n });\n}\nReportZero.propTypes = {\n moduleSlug: 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1JlcG9ydFplcm8uanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9jb21wb25lbnRzL1JlcG9ydFplcm8uanM/Y2ZmYSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFJlcG9ydFplc
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/RestoreSnapshots/index.js":
|
|||
|
|
/*!*************************************************!*\
|
|||
|
|
!*** ./js/components/RestoreSnapshots/index.js ***!
|
|||
|
|
\*************************************************/
|
|||
|
|
/*! exports provided: default */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\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 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_create_snapshot_store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../googlesitekit/data/create-snapshot-store */ \"./js/googlesitekit/data/create-snapshot-store.js\");\n\n\n\n/**\n * Snapshot restoration 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\nfunction RestoreSnapshots(_ref) {\n var children = _ref.children;\n var registry = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useRegistry\"])();\n var _useState = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"useState\"])(false),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2),\n restoredSnapshots = _useState2[0],\n setRestoredSnapshots = _useState2[1];\n Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__[\"useEffect\"])(function () {\n if (!restoredSnapshots) {\n _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return Object(_googlesitekit_data_create_snapshot_store__WEBPACK_IMPORTED_MODULE_5__[\"restoreAllSnapshots\"])(registry);\n case 2:\n setRestoredSnapshots(true);\n case 3:\n case \"end\":\n return _context.
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/Root/index.js":
|
|||
|
|
/*!*************************************!*\
|
|||
|
|
!*** ./js/components/Root/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 Root; });\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 _material_ui_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @material-ui/core */ \"../node_modules/@material-ui/core/esm/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 _ErrorHandler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ErrorHandler */ \"./js/components/ErrorHandler/index.js\");\n/* harmony import */ var _FeaturesProvider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../FeaturesProvider */ \"./js/components/FeaturesProvider/index.js\");\n/* harmony import */ var _features__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../features */ \"./js/features/index.js\");\n/* harmony import */ var _PermissionsModal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../PermissionsModal */ \"./js/components/PermissionsModal/index.js\");\n/* harmony import */ var _RestoreSnapshots__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../RestoreSnapshots */ \"./js/components/RestoreSnapshots/index.js\");\n/* harmony import */ var _FeatureTours__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../FeatureTours */ \"./js/components/FeatureTours.js\");\n/* harmony import */ var _ViewContextContext__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ViewContextContext */ \"./js/components/Root/ViewContextContext.js\");\n/* harmony import */ var _InViewProvider__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../InViewProvider */ \"./js/components/InViewProvider/index.js\");\n/* harmony import */ var _util_is_site_kit_screen__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../util/is-site-kit-screen */ \"./js/util/is-site-kit-screen.js\");\n\n\n/**\n * Root 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\n\n\n\nfunction Root(_ref) {\n var children = _ref.children,\n registry = _ref.registry,\n _ref$viewContext = _ref.viewContext,\n viewContext = _ref$viewContext === void 0 ? null : _ref$viewContext
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL1NldHRpbmdzTm90aWNlL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy9TZXR0aW5nc05vdGljZS9pbmRleC5qcz9jZDg5Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogU2V0dGluZ3Mgbm90aWNlIGNvb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I6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\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/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/SupportLink.js":
|
|||
|
|
/*!**************************************!*\
|
|||
|
|
!*** ./js/components/SupportLink.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 SupportLink; });\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 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 _Link__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Link */ \"./js/components/Link.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 * Internal dependencies\n */\n\n\n\nfunction SupportLink(props) {\n var path = props.path,\n query = props.query,\n hash = props.hash,\n otherProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(props, [\"path\", \"query\", \"hash\"]);\n var supportURL = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_SITE\"]).getGoogleSupportURL({\n path: path,\n query: query,\n hash: hash\n });\n });\n return /*#__PURE__*/React.createElement(_Link__WEBPACK_IMPORTED_MODULE_6__[\"default\"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, otherProps, {\n href: supportURL\n }));\n}\nSupportLink.propTypes = {\n path: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string.isRequired,\n query: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object,\n hash: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string\n};\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpre
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/conversion-tracking/SetupEnhancedConversionTrackingNotice.js":
|
|||
|
|
/*!************************************************************************************!*\
|
|||
|
|
!*** ./js/components/conversion-tracking/SetupEnhancedConversionTrackingNotice.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 SetupEnhancedConversionTrackingNotice; });\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 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/**\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 SetupEnhancedConversionTrackingNotice(_ref) {\n var className = _ref.className,\n message = _ref.message;\n var isCTEnabled = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_3__[\"CORE_SITE\"]).isConversionTrackingEnabled();\n });\n if (isCTEnabled || isCTEnabled === undefined) {\n return null;\n }\n return /*#__PURE__*/React.createElement(\"p\", {\n className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, 'googlesitekit-color--surfaces-on-background-variant')\n }, message);\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL2NvbnZlcnNpb24tdHJhY2tpbmcvU2V0dXBFbmhhbmNlZENvbnZlcnNpb25UcmFja2luZ05vdGljZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2NvbXBvbmVudHMvY29udmVyc2lvbi10cmFja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Banner.js":
|
|||
|
|
/*!******************************************************************!*\
|
|||
|
|
!*** ./js/components/notifications/BannerNotification/Banner.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 _material_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../material-components */ \"./js/material-components/index.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/**\n * WordPress dependencies\n */\n\n\n/*\n * Internal dependencies\n */\n\nvar Banner = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"forwardRef\"])(function (_ref, ref) {\n var id = _ref.id,\n className = _ref.className,\n children = _ref.children,\n secondaryPane = _ref.secondaryPane;\n return /*#__PURE__*/React.createElement(\"section\", {\n id: id,\n className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, 'googlesitekit-publisher-win'),\n ref: ref\n }, /*#__PURE__*/React.createElement(_material_components__WEBPACK_IMPORTED_MODULE_3__[\"Grid\"], null, /*#__PURE__*/React.createElement(_material_components__WEBPACK_IMPORTED_MODULE_3__[\"Row\"], null, children)), secondaryPane && /*#__PURE__*/React.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-publisher-win__secondary-pane-divider\"\n }), /*#__PURE__*/React.createElement(_material_components__WEBPACK_IMPORTED_MODULE_3__[\"Grid\"], {\n className: \"googlesitekit-publisher-win__secondary-pane\"\n }, /*#__PURE__*/React.createElement(_material_components__WEBPACK_IMPORTED_MODULE_3__[\"Row\"], null, /*#__PURE__*/React.createElement(_material_components__WEBPACK_IMPORTED_MODULE_3__[\"Cell\"], {\n className: \"googlesitekit-publisher-win__secondary-pane\",\n size: 12\n }, secondaryPane)))));\n});\nBanner.displayName = 'Banner';\nBanner.propTypes = {\n id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n secondaryPane: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Banner);\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL25vdGlmaWNhdGlvbnMvQmFubmVyTm90aWZpY2F0aW9uL0Jhbm5lci5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2NvbXBvbmVudHMvbm90aWZpY2F0aW9ucy9CYW5uZXJOb3RpZmljYXRpb24vQmFubmVyLmpzPzliN2UiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIzIEdvb2dsZSBMTENcbiAqXG4gKiBM
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/notifications/BannerNotification/BannerActions.js":
|
|||
|
|
/*!*************************************************************************!*\
|
|||
|
|
!*** ./js/components/notifications/BannerNotification/BannerActions.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 BannerActions; });\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 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 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_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _googlesitekit_datastore_location_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../googlesitekit/datastore/location/constants */ \"./js/googlesitekit/datastore/location/constants.js\");\n\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 * WordPress dependencies\n */\n\n\n/*\n * Internal dependencies\n */\n\n\n\nfunction BannerActions(props) {\n var ctaLink = props.ctaLink,\n ctaLabel = props.ctaLabel,\n ctaComponent = props.ctaComponent,\n ctaTarget = props.ctaTarget,\n ctaCallback = props.ctaCallback,\n dismissLabel = props.dismissLabel,\n dismissCallback = props.dismissCallback,\n dismissIsTertiary = props
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/notifications/BannerNotification/BannerDescription.js":
|
|||
|
|
/*!*****************************************************************************!*\
|
|||
|
|
!*** ./js/components/notifications/BannerNotification/BannerDescription.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 BannerDescription; });\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 _util_sanitize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../util/sanitize */ \"./js/util/sanitize.js\");\n/* harmony import */ var _Link__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Link */ \"./js/components/Link.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constants */ \"./js/components/notifications/BannerNotification/constants.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 * Internal dependencies\n */\n\n\n\nfunction BannerDescription(props) {\n var description = props.description,\n learnMoreLabel = props.learnMoreLabel,\n learnMoreURL = props.learnMoreURL,\n learnMoreTarget = props.learnMoreTarget,\n learnMoreDescription = props.learnMoreDescription,\n onLearnMoreClick = props.onLearnMoreClick;\n if (!description) {\n return null;\n }\n var handleLearnMore = function handleLearnMore(event) {\n event.persist();\n onLearnMoreClick === null || onLearnMoreClick === void 0 ? void 0 : onLearnMoreClick();\n };\n var learnMore;\n if (learnMoreLabel) {\n learnMore = /*#__PURE__*/React.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, /*#__PURE__*/React.createElement(_Link__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n onClick: handleLearnMore,\n href: learnMoreURL,\n external: learnMoreTarget === _constants__WEBPACK_IMPORTED_MODULE_4__[\"LEARN_MORE_TARGET\"].EXTERNAL\n }, learnMoreLabel), learnMoreDescription);\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-publisher-win__desc\"\n }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"isValidElement\"])(description) ? /*#__PURE__*/React.createElement(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, description, learnMore && /*#__PURE__*/React.createElement(\"p\", null, learnMore)) : /*#__PURE__*/React.createElement(\"p\", null, /*#__PURE__*/React.createElement(\"span\", {\n dangerouslySetInnerHTML: Object(_util_sanitize__WEBPACK_IMPORTED_MODULE_2__[\"sanitizeHTML\"])(description, {\n ALLOWED_TAGS: ['strong', 'em', 'br', 'a'],\n ALLOWED_ATTR: ['href']\n })\n }), ' ', learnMore));\n}\nBannerDescription.propTypes = {\n description: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,\n learnMoreURL: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n learnMoreDescription: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n learnMoreLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n learnMoreTarget: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(Object.values(_constants__WEBP
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/notifications/BannerNotification/BannerIcon.js":
|
|||
|
|
/*!**********************************************************************!*\
|
|||
|
|
!*** ./js/components/notifications/BannerNotification/BannerIcon.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 BannerIcon; });\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_warning_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../svg/icons/warning.svg */ \"./svg/icons/warning.svg\");\n/* harmony import */ var _svg_icons_error_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../svg/icons/error.svg */ \"./svg/icons/error.svg\");\n/* harmony import */ var _material_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../material-components */ \"./js/material-components/index.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 * Internal dependencies\n */\n\n\n\nfunction BannerIcon(props) {\n var type = props.type;\n if ('win-error' !== type && 'win-warning' !== type) {\n return null;\n }\n var icon = 'win-warning' === type ? /*#__PURE__*/React.createElement(_svg_icons_warning_svg__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n width: 34\n }) : /*#__PURE__*/React.createElement(_svg_icons_error_svg__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n width: 28\n });\n return /*#__PURE__*/React.createElement(_material_components__WEBPACK_IMPORTED_MODULE_4__[\"Cell\"], {\n size: 1,\n smOrder: 3,\n mdOrder: 3,\n lgOrder: 3\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-publisher-win__icons\"\n }, icon));\n}\nBannerIcon.propTypes = {\n type: 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL25vdGlmaWNhdGlvbnMvQmFubmVyTm90aWZpY2F0aW9uL0Jhbm5lckljb24uanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9jb21wb25lbnRzL25vdGlmaWNhdGlvbnMvQmFubmVyTm90aWZpY2F0aW9uL0Jhbm5lckljb24uanM/YmVmOSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjMgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cb
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/notifications/BannerNotification/BannerLogo.js":
|
|||
|
|
/*!**********************************************************************!*\
|
|||
|
|
!*** ./js/components/notifications/BannerNotification/BannerLogo.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 BannerLogo; });\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 _material_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../material-components */ \"./js/material-components/index.js\");\n/* harmony import */ var _svg_graphics_logo_g_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../svg/graphics/logo-g.svg */ \"./svg/graphics/logo-g.svg\");\n/* harmony import */ var _ModuleIcon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../ModuleIcon */ \"./js/components/ModuleIcon.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 * Internal dependencies\n */\n\n\n\nfunction BannerLogo(props) {\n var module = props.module,\n moduleName = props.moduleName;\n return /*#__PURE__*/React.createElement(_material_components__WEBPACK_IMPORTED_MODULE_2__[\"Cell\"], {\n size: 12\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-publisher-win__logo\"\n }, module && /*#__PURE__*/React.createElement(_ModuleIcon__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n slug: module,\n size: 19\n }), !module && /*#__PURE__*/React.createElement(_svg_graphics_logo_g_svg__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n height: \"34\",\n width: \"32\"\n })), moduleName && /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-publisher-win__module-name\"\n }, moduleName));\n}\nBannerLogo.propTypes = {\n module: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,\n moduleName: 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL25vdGlmaWNhdGlvbnMvQmFubmVyTm90aWZpY2F0aW9uL0Jhbm5lckxvZ28uanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9jb21wb25lbnRzL25vdGlmaWNhdGlvbnMvQmFubmVyTm90aWZpY2F0aW9uL0Jhbm5lckxvZ28uanM/ZjM1NCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjMgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZ
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/notifications/BannerNotification/BannerTitle.js":
|
|||
|
|
/*!***********************************************************************!*\
|
|||
|
|
!*** ./js/components/notifications/BannerNotification/BannerTitle.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 BannerTitle; });\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 _Badge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Badge */ \"./js/components/Badge.js\");\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 * Internal dependencies\n */\n\nfunction BannerTitle(props) {\n var title = props.title,\n badgeLabel = props.badgeLabel,\n WinImageSVG = props.WinImageSVG,\n _props$winImageFormat = props.winImageFormat,\n winImageFormat = _props$winImageFormat === void 0 ? '' : _props$winImageFormat,\n _props$smallWinImageS = props.smallWinImageSVGWidth,\n smallWinImageSVGWidth = _props$smallWinImageS === void 0 ? 75 : _props$smallWinImageS,\n _props$smallWinImageS2 = props.smallWinImageSVGHeight,\n smallWinImageSVGHeight = _props$smallWinImageS2 === void 0 ? 75 : _props$smallWinImageS2;\n if (!title) {\n return null;\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-publisher-win__title-image-wrapper\"\n }, /*#__PURE__*/React.createElement(\"h3\", {\n className: \"googlesitekit-heading-2 googlesitekit-publisher-win__title\"\n }, title, badgeLabel && /*#__PURE__*/React.createElement(_Badge__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n label: badgeLabel\n })), WinImageSVG && /*#__PURE__*/React.createElement(\"div\", {\n className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, \"googlesitekit-publisher-win__image-\".concat(winImageFormat), winImageFormat))\n }, /*#__PURE__*/React.createElement(WinImageSVG, {\n width: smallWinImageSVGWidth,\n height: smallWinImageSVGHeight\n })));\n}\nBannerTitle.propTypes = {\n title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,\n badgeLabel: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,\n WinImageSVG: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.elementType,\n winImageFormat: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,\n smallWinImageSVGWidth: prop_types__WEBPACK_IM
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/notifications/BannerNotification/constants.js":
|
|||
|
|
/*!*********************************************************************!*\
|
|||
|
|
!*** ./js/components/notifications/BannerNotification/constants.js ***!
|
|||
|
|
\*********************************************************************/
|
|||
|
|
/*! exports provided: LEARN_MORE_TARGET */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LEARN_MORE_TARGET\", function() { return LEARN_MORE_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\nvar LEARN_MORE_TARGET = {\n EXTERNAL: 'external',\n INTERNAL: 'internal'\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL25vdGlmaWNhdGlvbnMvQmFubmVyTm90aWZpY2F0aW9uL2NvbnN0YW50cy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2NvbXBvbmVudHMvbm90aWZpY2F0aW9ucy9CYW5uZXJOb3RpZmljYXRpb24vY29uc3RhbnRzLmpzPzAzODkiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdod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FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/components/notifications/BannerNotification/constants.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/notifications/BannerNotification/index.js":
|
|||
|
|
/*!*****************************************************************!*\
|
|||
|
|
!*** ./js/components/notifications/BannerNotification/index.js ***!
|
|||
|
|
\*****************************************************************/
|
|||
|
|
/*! exports provided: LEARN_MORE_TARGET, 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 BannerNotification; });\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_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"../node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"../node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__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 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 react_use__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-use */ \"../node_modules/react-use/esm/index.js\");\n/* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/url */ \"../node_modules/@wordpress/url/build-module/index.js\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _material_components__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../material-components */ \"./js/material-components/index.js\");\n/* harmony import */ var _util_scroll__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../util/scroll */ \"./js/util/scroll.js\");\n/* harmony import */ var _googlesitekit_api_cach
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/notifications/BannerNotification/utils.js":
|
|||
|
|
/*!*****************************************************************!*\
|
|||
|
|
!*** ./js/components/notifications/BannerNotification/utils.js ***!
|
|||
|
|
\*****************************************************************/
|
|||
|
|
/*! exports provided: ERROR_OR_WARNING_SIZE, SMALL_IMAGE_SVG_SIZE, getContentCellSizeProperties, getContentCellOrderProperties, getImageCellSizeProperties, getImageCellOrderProperties */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ERROR_OR_WARNING_SIZE\", function() { return ERROR_OR_WARNING_SIZE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SMALL_IMAGE_SVG_SIZE\", function() { return SMALL_IMAGE_SVG_SIZE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getContentCellSizeProperties\", function() { return getContentCellSizeProperties; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getContentCellOrderProperties\", function() { return getContentCellOrderProperties; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getImageCellSizeProperties\", function() { return getImageCellSizeProperties; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getImageCellOrderProperties\", function() { return getImageCellOrderProperties; });\n/**\n * BannerNotification utility functions.\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\nvar ERROR_OR_WARNING_SIZE = 1;\nvar SMALL_IMAGE_SVG_SIZE = 1;\n\n/**\n * Returns the cell size for the content area within BannerNotification.\n *\n * @since 1.69.0\n *\n * @param {Object} args Arguments.\n * @param {boolean} args.hasErrorOrWarning Whether the banner is rendering an error or a warning.\n * @param {boolean} args.hasSmallImageSVG Whether the banner is rendering a small image.\n * @param {boolean} args.hasWinImageSVG Whether the banner is rendering a large image.\n * @param {string} [args.format] The notification format. Can be either small, large or larger. Default: small.\n * @return {Object} The cell size for each breakpoint denoted by the smSize, mdSize and lgSize keys.\n */\nfunction getContentCellSizeProperties(_ref) {\n var _ref$format = _ref.format,\n format = _ref$format === void 0 ? 'small' : _ref$format,\n hasErrorOrWarning = _ref.hasErrorOrWarning,\n hasSmallImageSVG = _ref.hasSmallImageSVG,\n hasWinImageSVG = _ref.hasWinImageSVG;\n var sizes = {\n smSize: 4,\n mdSize: 8,\n lgSize: 12\n };\n var imageCellSizes = getImageCellSizeProperties(format);\n Object.keys(sizes).forEach(function (key) {\n var size = sizes[key];\n if (hasErrorOrWarning) {\n size = size - ERROR_OR_WARNING_SIZE;\n }\n if (hasSmallImageSVG) {\n size = size - SMALL_IMAGE_SVG_SIZE;\n }\n if (hasWinImageSVG && 0 < size - imageCellSizes[key]) {\n size = size - imageCellSizes[key];\n }\n sizes[key] = size;\n });\n return sizes;\n}\n\n/**\n * Gets the cell order for the content area within BannerNotification.\n *\n * @since 1.69.0\n *\n * @param {string} format The format of the notification. Can be either small or larger.\n * @return {Object} The cell order for each breakpoint denoted by the smOrder, mdOrder and lgOrder keys.\n */\nvar getContentCellOrderProperties = function getContentCellOrderProperties(format) {\n switch (format) {\n case 'small':\n return {};\n case 'larger':\n return {\n smOrder: 2,\n mdOrder: 2,\n lgOrder: 1\n };\n default:\n return {\n smOrder: 2,\n mdOrder: 1\n };\n }\n};\n\n/**\n * Gets the cell size for the image area within BannerNotification.\n *\n * @since 1.69.0\n *\n * @param {string} format The format of the notification. Can be either smaller or larger.\n * @return {Object} The cell s
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/wp-dashboard/WPDashboardActivateAnalyticsCTA.js":
|
|||
|
|
/*!***********************************************************************!*\
|
|||
|
|
!*** ./js/components/wp-dashboard/WPDashboardActivateAnalyticsCTA.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 WPDashboardActivateAnalyticsCTA; });\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 _svg_graphics_cta_graph_traffic_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../svg/graphics/cta-graph-traffic.svg */ \"./svg/graphics/cta-graph-traffic.svg\");\n/* harmony import */ var _svg_graphics_cta_most_popular_content_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../svg/graphics/cta-most-popular-content.svg */ \"./svg/graphics/cta-most-popular-content.svg\");\n/* harmony import */ var _ActivateAnalyticsCTA__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ActivateAnalyticsCTA */ \"./js/components/ActivateAnalyticsCTA.js\");\n/* harmony import */ var _PreviewGraph__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../PreviewGraph */ \"./js/components/PreviewGraph.js\");\n\n/**\n * WP Dashboard 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 * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\nfunction WPDashboardActivateAnalyticsCTA() {\n return /*#__PURE__*/React.createElement(_ActivateAnalyticsCTA__WEBPACK_IMPORTED_MODULE_4__[\"default\"], null, /*#__PURE__*/React.createElement(_PreviewGraph__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Traffic', 'google-site-kit'),\n GraphSVG: _svg_graphics_cta_graph_traffic_svg__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n showIcons: false\n }), /*#__PURE__*/React.createElement(_PreviewGraph__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Most popular content', 'google-site-kit'),\n GraphSVG: _svg_graphics_cta_most_popular_content_svg__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n showIcons: false\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL3dwLWRhc2hib2FyZC9XUERhc2hib2FyZEFjdGl2YXRlQW5hbHl0aWNzQ1RBLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy93cC1kYXNoYm9hcmQvV1BEYXNoYm9hcmRBY3RpdmF0ZUFuYWx5dGljc0NUQS5qcz83NDQ1Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogV1AgRGFzaGJvYXJkIEFjdGl2YXRlQW5hbHl0aWNzQ1RBIGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIyIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgY
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/wp-dashboard/WPDashboardApp.js":
|
|||
|
|
/*!******************************************************!*\
|
|||
|
|
!*** ./js/components/wp-dashboard/WPDashboardApp.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 react_use__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-use */ \"../node_modules/react-use/esm/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 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 _Link__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Link */ \"./js/components/Link.js\");\n/* harmony import */ var _WPDashboardWidgets__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./WPDashboardWidgets */ \"./js/components/wp-dashboard/WPDashboardWidgets.js\");\n/* harmony import */ var _components_InViewProvider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../components/InViewProvider */ \"./js/components/InViewProvider/index.js\");\n/* harmony import */ var _googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n\n\n/**\n * WPDashboardApp 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\n\nfunction WPDashboardApp() {\n var trackingRef = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"useRef\"])();\n var intersectionEntry = Object(react_use__WEBPACK_IMPORTED_MODULE_2__[\"useIntersection\"])(trackingRef, {\n threshold: 0 // Trigger \"in-view\" as soon as one pixel is visible.\n });\n var dashboardURL = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_8__[\"CORE_SITE\"]).getAdminURL('googlesitekit-dashboard');\n });\n var _useState = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])({\n key: 'WPDashboardApp',\n value: !!(intersectionEntry === null || intersectionEntry === void 0 ? void 0 : intersectionEntry.intersectionRatio)\n }),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2),\n inViewState = _useState2[0],\n setInViewState = _useState2[1];\n Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(function () {\n
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/wp-dashboard/WPDashboardClicks.js":
|
|||
|
|
/*!*********************************************************!*\
|
|||
|
|
!*** ./js/components/wp-dashboard/WPDashboardClicks.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 _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 _modules_search_console_datastore_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../modules/search-console/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 _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n/* harmony import */ var _util_sum_object_list_value__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/sum-object-list-value */ \"./js/util/sum-object-list-value.js\");\n/* harmony import */ var _util_partition_report__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/partition-report */ \"./js/util/partition-report.js\");\n/* harmony import */ var _DataBlock__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../DataBlock */ \"./js/components/DataBlock/index.js\");\n/* harmony import */ var _PreviewBlock__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../PreviewBlock */ \"./js/components/PreviewBlock.js\");\n/* harmony import */ var _GatheringDataNotice__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../GatheringDataNotice */ \"./js/components/GatheringDataNotice.js\");\n\n\n/**\n * WPDashboardClicks 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\n\n\n\n\n\n\n\nfunction WPDashboardClicks(_ref) {\n var WPDashboardReportError = _ref.WPDashboardReportError;\n var isGatheringData = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useInViewSelect\"])(function (select) {\n return select(_modules_search_console_datastore_c
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/wp-dashboard/WPDashboardImpressions.js":
|
|||
|
|
/*!**************************************************************!*\
|
|||
|
|
!*** ./js/components/wp-dashboard/WPDashboardImpressions.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 _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 _modules_search_console_datastore_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../modules/search-console/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 _DataBlock__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../DataBlock */ \"./js/components/DataBlock/index.js\");\n/* harmony import */ var _PreviewBlock__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../PreviewBlock */ \"./js/components/PreviewBlock.js\");\n/* harmony import */ var _GatheringDataNotice__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../GatheringDataNotice */ \"./js/components/GatheringDataNotice.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n/* harmony import */ var _util_sum_object_list_value__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../util/sum-object-list-value */ \"./js/util/sum-object-list-value.js\");\n/* harmony import */ var _util_partition_report__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../util/partition-report */ \"./js/util/partition-report.js\");\n\n\n/**\n * WPDashboardImpressions 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\n\n\n\n\n\n\n\nfunction WPDashboardImpressions(_ref) {\n var WPDashboardReportError = _ref.WPDashboardReportError;\n var isGatheringData = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useInViewSelect\"])(function (select) {\n return select(_modules_search_console_d
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/wp-dashboard/WPDashboardPopularPagesGA4.js":
|
|||
|
|
/*!******************************************************************!*\
|
|||
|
|
!*** ./js/components/wp-dashboard/WPDashboardPopularPagesGA4.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 WPDashboardPopularPagesGA4; });\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"../node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\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 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/* 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 _modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../modules/analytics-4/datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _modules_analytics_4_components_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../modules/analytics-4/components/common */ \"./js/modules/analytics-4/components/common/index.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 _PreviewTable__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../PreviewTable */ \"./js/components/PreviewTable.js\");\n/* harmony import */ var _TableOverflowContainer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../TableOverflowContainer */ \"./js/components/TableOverflowContainer.js\");\n/* harmony import */ var _ReportTable__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../ReportTable */ \"./js/components/ReportTable.js\");\n/* harmony import */ var _DetailsPermaLinks__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../DetailsPermaLinks */ \"./js/components/DetailsPermaLinks
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/wp-dashboard/WPDashboardSessionDurationGA4.js":
|
|||
|
|
/*!*********************************************************************!*\
|
|||
|
|
!*** ./js/components/wp-dashboard/WPDashboardSessionDurationGA4.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_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 _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 _modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../modules/analytics-4/datastore/constants */ \"./js/modules/analytics-4/datastore/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 _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n/* harmony import */ var _DataBlock__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../DataBlock */ \"./js/components/DataBlock/index.js\");\n/* harmony import */ var _PreviewBlock__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../PreviewBlock */ \"./js/components/PreviewBlock.js\");\n/* harmony import */ var _GatheringDataNotice__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../GatheringDataNotice */ \"./js/components/GatheringDataNotice.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 * WP Dashboard Session Duration GA4 component.\n *\n * Site Kit by
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/wp-dashboard/WPDashboardUniqueVisitorsChartGA4.js":
|
|||
|
|
/*!*************************************************************************!*\
|
|||
|
|
!*** ./js/components/wp-dashboard/WPDashboardUniqueVisitorsChartGA4.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 WPDashboardUniqueVisitorsChartGA4; });\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 _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 _modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../modules/analytics-4/datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _GoogleChart__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../GoogleChart */ \"./js/components/GoogleChart/index.js\");\n/* harmony import */ var _chart_options__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./chart-options */ \"./js/components/wp-dashboard/chart-options.js\");\n/* harmony import */ var _modules_analytics_4_utils_extract_dashboard_data__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../modules/analytics-4/utils/extract-dashboard-data */ \"./js/modules/analytics-4/utils/extract-dashboard-data.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols =
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/wp-dashboard/WPDashboardUniqueVisitorsGA4.js":
|
|||
|
|
/*!********************************************************************!*\
|
|||
|
|
!*** ./js/components/wp-dashboard/WPDashboardUniqueVisitorsGA4.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_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 _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 _modules_analytics_4_datastore_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../modules/analytics-4/datastore/constants */ \"./js/modules/analytics-4/datastore/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 _PreviewBlock__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../PreviewBlock */ \"./js/components/PreviewBlock.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n/* harmony import */ var _DataBlock__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../DataBlock */ \"./js/components/DataBlock/index.js\");\n/* harmony import */ var _GatheringDataNotice__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../GatheringDataNotice */ \"./js/components/GatheringDataNotice.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 * WPDashboardUniqueVisitorsGA4 component.\n *\n * Site Kit by Goog
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/wp-dashboard/WPDashboardWidgets.js":
|
|||
|
|
/*!**********************************************************!*\
|
|||
|
|
!*** ./js/components/wp-dashboard/WPDashboardWidgets.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 WPDashboardWidgets; });\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 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_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_user_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../googlesitekit/datastore/user/constants */ \"./js/googlesitekit/datastore/user/constants.js\");\n/* harmony import */ var _googlesitekit_widgets_util_get_widget_component_props__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../googlesitekit/widgets/util/get-widget-component-props */ \"./js/googlesitekit/widgets/util/get-widget-component-props.js\");\n/* harmony import */ var _WPDashboardImpressions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./WPDashboardImpressions */ \"./js/components/wp-dashboard/WPDashboardImpressions.js\");\n/* harmony import */ var _WPDashboardClicks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./WPDashboardClicks */ \"./js/components/wp-dashboard/WPDashboardClicks.js\");\n/* harmony import */ var _WPDashboardUniqueVisitorsGA4__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./WPDashboardUniqueVisitorsGA4 */ \"./js/components/wp-dashboard/WPDashboardUniqueVisitorsGA4.js\");\n/* harmony import */ var _WPDashboardSessionDurationGA4__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./WPDashboardSessionDurationGA4 */ \"./js/components/wp-dashboard/WPDashboardSessionDurationGA4.js\");\n/* harmony import */ var _WPDashboardPopularPagesGA4__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./WPDashboardPopularPagesGA4 */ \"./js/components/wp-dashboard/WPDashboardPopularPagesGA4.js\");\n/* harmony import */ var _WPDashboardUniqueVisitorsChartGA4__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./WPDashboardUniqueVisitorsChartGA4 */ \"./js/components/wp-dashboard/WPDashboardUniqueVisitorsChartGA4.js\");\n/* harmony import */ var _WPDashboardActivateAnalyticsCTA__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./WPDashboardActivateAnalyticsCTA */ \"./js/components/wp-dashboard/WPDashboardActivateAnalyticsCTA.js\");\n/* harmony import */ var _DataBlockGroup__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../DataBlockGroup */ \"./js/components/DataBlockGroup.js\");\n\n/**\n * WPDashboardWidgets 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 * Word
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/components/wp-dashboard/chart-options.js":
|
|||
|
|
/*!*****************************************************!*\
|
|||
|
|
!*** ./js/components/wp-dashboard/chart-options.js ***!
|
|||
|
|
\*****************************************************/
|
|||
|
|
/*! exports provided: UNIQUE_VISITORS_CHART_OPTIONS */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"UNIQUE_VISITORS_CHART_OPTIONS\", function() { return UNIQUE_VISITORS_CHART_OPTIONS; });\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 * 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 UNIQUE_VISITORS_CHART_OPTIONS = {\n animation: {\n startup: true\n },\n chart: {\n title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__[\"__\"])('Unique visitors', 'google-site-kit')\n },\n curveType: 'function',\n height: 270,\n width: '100%',\n chartArea: {\n height: '80%',\n left: 20,\n right: 20\n },\n legend: {\n position: 'top',\n textStyle: {\n color: '#616161',\n fontSize: 12\n }\n },\n hAxis: {\n format: 'MMM d',\n gridlines: {\n color: '#fff'\n },\n textStyle: {\n color: '#616161',\n fontSize: 12\n }\n },\n vAxis: {\n textPosition: 'none',\n viewWindow: {\n min: 0\n },\n gridlines: {\n color: '#eee'\n }\n },\n series: {\n 0: {\n color: '#6380b8',\n targetAxisIndex: 0\n },\n 1: {\n color: '#6380b8',\n targetAxisIndex: 0,\n lineDashStyle: [3, 3],\n lineWidth: 1\n }\n },\n focusTarget: 'category',\n crosshair: {\n color: 'gray',\n opacity: 0.1,\n orientation: 'vertical',\n trigger: 'both'\n },\n tooltip: {\n isHtml: true,\n // eslint-disable-line sitekit/acronym-case\n trigger: 'both'\n }\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9jb21wb25lbnRzL3dwLWRhc2hib2FyZC9jaGFydC1vcHRpb25zLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvY29tcG9uZW50cy93cC1kYXNoYm9hcmQvY2hhcnQtb3B0aW9ucy5qcz9jMjNhIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMyBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFx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aW9uOiAndG9wJyxc
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9mZWF0dXJlcy9pbmRleC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2ZlYXR1cmVzL2luZGV4LmpzPzgyM2MiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBGZWF0dXJlIGZsYWdzLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TI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
|||
|
|
\******************************************/
|
|||
|
|
/*! no exports provided */
|
|||
|
|
/***/ (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_dom_ready__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/dom-ready */ \"../node_modules/@wordpress/dom-ready/build-module/index.js\");\n/* harmony import */ var _components_Root__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/Root */ \"./js/components/Root/index.js\");\n/* harmony import */ var _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./googlesitekit/constants */ \"./js/googlesitekit/constants.js\");\n/* harmony import */ var _components_wp_dashboard_WPDashboardApp__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/wp-dashboard/WPDashboardApp */ \"./js/components/wp-dashboard/WPDashboardApp.js\");\n\n/**\n * WPDashboard 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/* eslint camelcase:[0] */\n\n/**\n * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n// Initialize the app once the DOM is ready.\nObject(_wordpress_dom_ready__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(function () {\n var renderTarget = document.getElementById('js-googlesitekit-wp-dashboard');\n if (renderTarget) {\n var viewOnly = renderTarget.dataset.viewOnly;\n var viewContext = viewOnly ? _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_3__[\"VIEW_CONTEXT_WP_DASHBOARD_VIEW_ONLY\"] : _googlesitekit_constants__WEBPACK_IMPORTED_MODULE_3__[\"VIEW_CONTEXT_WP_DASHBOARD\"];\n Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"render\"])(/*#__PURE__*/React.createElement(_components_Root__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n viewContext: viewContext\n }, /*#__PURE__*/React.createElement(_components_wp_dashboard_WPDashboardApp__WEBPACK_IMPORTED_MODULE_4__[\"default\"], null)), renderTarget);\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0LXdwLWRhc2hib2FyZC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2dvb2dsZXNpdGVraXQtd3AtZGFzaGJvYXJkLmpzPzllMDAiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBXUERhc2hib2FyZCBjb21wb25lbnQuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuLyogZXNsaW50IGNhbWVsY2FzZTpbMF0gKi9cblxuLyoqXG4gKiBXb3JkUHJlc3MgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCBkb21SZWFkeSBmcm9
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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-snapshot-store.js":
|
|||
|
|
/*!********************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/data/create-snapshot-store.js ***!
|
|||
|
|
\********************************************************/
|
|||
|
|
/*! exports provided: createSnapshotStore, getStoresWithSnapshots, snapshotAllStores, restoreAllSnapshots */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createSnapshotStore\", function() { return createSnapshotStore; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getStoresWithSnapshots\", function() { return getStoresWithSnapshots; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"snapshotAllStores\", function() { return snapshotAllStores; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"restoreAllSnapshots\", function() { return restoreAllSnapshots; });\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"../node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"../node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! invariant */ \"../node_modules/invariant/browser.js\");\n/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var googlesitekit_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 _api_cache__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../api/cache */ \"./js/googlesitekit/api/cache.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util */ \"./js/util/index.js\");\n\n\n\n/**\n * Provides a datastore for snapshotting and restoring state.\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// Actions\nvar CREATE_SNAPSHOT = 'CREATE_SNAPSHOT';\nvar DELETE_SNAPSHOT = 'DELETE_SNAPSHOT';\nvar RESTORE_SNAPSHOT = 'RESTORE_SNAPSHOT';\nvar SET_STATE_FROM_SNAPSHOT = 'SET_STATE_FROM_SNAPSHOT';\n\n/**\n * Creates a store object that includes actions and controls for restoring/creating state snapshots.\n *\n * @since 1.9.0\n * @private\n *\n * @param {string} storeName The name of the store to snapshot in the cache.\n * @return {Object} The snapshot store object.\n */\nvar createSnapshotSt
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L2RhdGFzdG9yZS9zaXRlL2NvbnN0YW50cy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2dvb2dsZXNpdGVraXQvZGF0YXN0b3JlL3NpdGUvY29uc3RhbnRzLmpzP2QxMjEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBgY29yZS9zaXRlYCBkYXRhIHN0b3JlOiBjb25zdGFud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0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9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5cbiAqL1xuXG5leHBvcnQgY29uc3QgQ09SRV9VSSA9ICdjb3JlL3VpJztcblxuZXhwb3J0IGNvbnN0IEFDVElWRV9DT05URVhUX0lEID0gJ2FjdGl2ZUNvbnRleHRJRCc7XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\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/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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L21vZHVsZXMvZGF0YXN0b3JlL2NvbnN0YW50cy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2dvb2dsZXNpdGVraXQvbW9kdWxlcy9kYXRhc3RvcmUvY29uc3RhbnRzLmpzPzA3YjUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBgY29yZS9tb2R1bGVzYCBkYXRhIHN0b3JlOiBjb25zdGF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OiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/googlesitekit/modules/datastore/constants.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit/widgets/components/WPDashboardReportError.js":
|
|||
|
|
/*!***********************************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/widgets/components/WPDashboardReportError.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 WPDashboardReportError; });\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 react_use__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-use */ \"../node_modules/react-use/esm/index.js\");\n/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/compose */ \"../node_modules/@wordpress/compose/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 _datastore_ui_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../datastore/ui/constants */ \"./js/googlesitekit/datastore/ui/constants.js\");\n/* harmony import */ var _components_ReportError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../components/ReportError */ \"./js/components/ReportError.js\");\n\n/**\n * WPDashboardReportError 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\n\nfunction WPDashboardReportError(_ref) {\n var moduleSlug = _ref.moduleSlug,\n error = _ref.error;\n var errorInstanceID = Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_3__[\"useInstanceId\"])(WPDashboardReportError, 'WPDashboardReportError');\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useDispatch\"])(_datastore_ui_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_UI\"]),\n setValue = _useDispatch.setValue;\n var errorMessage = error.message;\n var selectInstanceID = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useSelect\"])(function (select) {\n return select(_datastore_ui_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_UI\"]).getValue(\"WPDashboardReportError-\".concat(moduleSlug, \"-\").concat(errorMessage));\n });\n Object(react_use__WEBPACK_IMPORTED_MODULE_2__[\"useLifecycles\"])(function () {\n setValue(\"WPDashboardReportError-\".concat(moduleSlug, \"-\").concat(errorMessage), errorInstanceID);\n }, function () {\n setValue(\"WPDashboardReportError-\".concat(moduleSlug, \"-\").concat(errorMessage), undefined);\n });\n if (selectInstanceID !== errorInstanceID) {\n return null;\n }\n return /*#__PURE__*/React.createElement(_components_ReportError__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n moduleSlug: moduleSlug,\n error: error\n });\n}\nWPDashboardReportError.propTypes = {\n moduleSlug: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,\n error: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object.isRequired\n};\n/* W
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit/widgets/components/Widget.js":
|
|||
|
|
/*!*******************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/widgets/components/Widget.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\n/**\n * Widget 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 Widget = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"forwardRef\"])(function (_ref, ref) {\n var children = _ref.children,\n className = _ref.className,\n widgetSlug = _ref.widgetSlug,\n noPadding = _ref.noPadding,\n Header = _ref.Header,\n Footer = _ref.Footer;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('googlesitekit-widget', \"googlesitekit-widget--\".concat(widgetSlug), {\n 'googlesitekit-widget--no-padding': noPadding\n }, {\n 'googlesitekit-widget--with-header': Header\n }, className),\n ref: ref\n }, Header && /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-widget__header\"\n }, /*#__PURE__*/React.createElement(Header, null)), /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-widget__body\"\n }, children), Footer && /*#__PURE__*/React.createElement(\"div\", {\n className: \"googlesitekit-widget__footer\"\n }, /*#__PURE__*/React.createElement(Footer, null)));\n});\nWidget.defaultProps = {\n children: undefined,\n noPadding: false\n};\nWidget.propTypes = {\n children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,\n widgetSlug: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string.isRequired,\n noPadding: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,\n Header: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.elementType,\n Footer: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.elementType\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Widget);\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L3dpZGdldHMvY29tcG9uZW50cy9XaWRnZXQuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9nb29nbGVzaXRla2l0L3dpZGdldHMvY29tcG9uZW50cy9XaWRnZXQuanM/OGVjMyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFdpZGdldCBjb21wb25lbnQuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit/widgets/components/WidgetNull.js":
|
|||
|
|
/*!***********************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/widgets/components/WidgetNull.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 WidgetNull; });\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 _hooks_useWidgetStateEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../hooks/useWidgetStateEffect */ \"./js/googlesitekit/widgets/hooks/useWidgetStateEffect.js\");\n/* harmony import */ var _components_Null__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../components/Null */ \"./js/components/Null.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 * WidgetNull 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// This doesn't need to change.\nvar metadata = {};\n\n// The supported props must match `Null` (except `widgetSlug`).\nfunction WidgetNull(_ref) {\n var widgetSlug = _ref.widgetSlug;\n Object(_hooks_useWidgetStateEffect__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(widgetSlug, _components_Null__WEBPACK_IMPORTED_MODULE_4__[\"default\"], metadata);\n return /*#__PURE__*/React.createElement(_components_Null__WEBPACK_IMPORTED_MODULE_4__[\"default\"], null);\n}\nWidgetNull.propTypes = _objectSpread({\n widgetSlug: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string.isRequired\n}, _components_Null__WEBPACK_IMPORTED_MODULE_4__[\"default\"].propTypes);\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,eyJ
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit/widgets/components/WidgetRecoverableModules.js":
|
|||
|
|
/*!*************************************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/widgets/components/WidgetRecoverableModules.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 WidgetRecoverableModules; });\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_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__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 _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 _wordpress_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\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 _hooks_useWidgetStateEffect__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../hooks/useWidgetStateEffect */ \"./js/googlesitekit/widgets/hooks/useWidgetStateEffect.js\");\n/* harmony import */ var _components_RecoverableModules__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../components/RecoverableModules */ \"./js/components/RecoverableModules.js\");\n\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 * WidgetRecoverableModules 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
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit/widgets/components/WidgetReportError.js":
|
|||
|
|
/*!******************************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/widgets/components/WidgetReportError.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 WidgetReportError; });\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_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 _components_ReportError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../components/ReportError */ \"./js/components/ReportError.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 * WidgetReportError 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// eslint-disable-next-line no-unused-vars\nfunction WidgetReportError(_ref) {\n var widgetSlug = _ref.widgetSlug,\n props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref, [\"widgetSlug\"]);\n return /*#__PURE__*/React.createElement(_components_ReportError__WEBPACK_IMPORTED_MODULE_4__[\"default\"], props);\n}\nWidgetReportError.propTypes = _objectSpread({\n widgetSlug: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string.isRequired\n}, _components_ReportError__WEBPACK_IMPORTED_MODULE_4__[\"default\"].propTypes);\n/* WEBPACK VAR INJECTI
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit/widgets/components/WidgetReportZero.js":
|
|||
|
|
/*!*****************************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/widgets/components/WidgetReportZero.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 WidgetReportZero; });\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_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ \"../node_modules/@babel/runtime/helpers/extends.js\");\n/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__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 _hooks_useWidgetStateEffect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../hooks/useWidgetStateEffect */ \"./js/googlesitekit/widgets/hooks/useWidgetStateEffect.js\");\n/* harmony import */ var _components_ReportZero__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../components/ReportZero */ \"./js/components/ReportZero.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 * WidgetReportZero 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
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/hooks/useWidgetStateEffect.js":
|
|||
|
|
/*!****************************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/widgets/hooks/useWidgetStateEffect.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 useWidgetStateEffect; });\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 _datastore_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../datastore/constants */ \"./js/googlesitekit/widgets/datastore/constants.js\");\n/**\n * `useWidgetStateEffect` 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 * WordPress dependencies\n */\n\n\n/**\n * Internal dependencies\n */\n\n\nfunction useWidgetStateEffect(widgetSlug, Component, metadata) {\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_1__[\"useDispatch\"])(_datastore_constants__WEBPACK_IMPORTED_MODULE_2__[\"CORE_WIDGETS\"]),\n setWidgetState = _useDispatch.setWidgetState,\n unsetWidgetState = _useDispatch.unsetWidgetState;\n Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function () {\n setWidgetState(widgetSlug, Component, metadata);\n return function () {\n unsetWidgetState(widgetSlug, Component, metadata);\n };\n }, [widgetSlug, Component, metadata, setWidgetState, unsetWidgetState]);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9nb29nbGVzaXRla2l0L3dpZGdldHMvaG9va3MvdXNlV2lkZ2V0U3RhdGVFZmZlY3QuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9nb29nbGVzaXRla2l0L3dpZGdldHMvaG9va3MvdXNlV2lkZ2V0U3RhdGVFZmZlY3QuanM/YWM2OCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIGB1c2VXaWRnZXRTdGF0ZUVmZmVjdGAgaG9vay5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qKlxuICogV29yZFByZXNzIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgeyB1c2VFZmZlY3QgfSBmcm9tICdAd29yZHByZXNzL2VsZW1lbnQnO1xuXG4vKipcbiAqIEludGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgeyB1c2VEaXNwYXRjaCB9IGZyb20gJ2dvb2dsZXNpdGVraXQtZGF0YSc7XG5pbXBvcnQgeyBDT1JFX1dJREdFVFMgfSBmcm9tICcuLi9kYXRhc3RvcmUvY29uc3RhbnRzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gdXNlV2lkZ2V0U3RhdGVFZmZlY3QoXG5cdHdpZGdldFNsdWcsXG5cdENvbXBvbmVudCxcblx0bWV0YWRhdGFcbikge1xuXHRjb25zdCB7IHNldFdpZGdldFN0YXRlLCB1bnNldFdpZGdldFN0YXRlIH0gPSB1c2VEaXNwYXRjaCggQ09SRV9XSURHRVRTICk7XG5cblx0dXNlRWZmZWN0KCAoKSA9PiB7XG5cdFx0c2V0V2lkZ2
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/googlesitekit/widgets/util/get-widget-component-props.js":
|
|||
|
|
/*!*********************************************************************!*\
|
|||
|
|
!*** ./js/googlesitekit/widgets/util/get-widget-component-props.js ***!
|
|||
|
|
\*********************************************************************/
|
|||
|
|
/*! exports provided: getWidgetComponentProps, withWidgetComponentProps, withWPDashboardWidgetComponentProps */
|
|||
|
|
/***/ (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__, \"getWidgetComponentProps\", function() { return getWidgetComponentProps; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"withWidgetComponentProps\", function() { return withWidgetComponentProps; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"withWPDashboardWidgetComponentProps\", function() { return withWPDashboardWidgetComponentProps; });\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 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 _components_Widget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/Widget */ \"./js/googlesitekit/widgets/components/Widget.js\");\n/* harmony import */ var _components_WidgetReportZero__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/WidgetReportZero */ \"./js/googlesitekit/widgets/components/WidgetReportZero.js\");\n/* harmony import */ var _components_WidgetReportError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/WidgetReportError */ \"./js/googlesitekit/widgets/components/WidgetReportError.js\");\n/* harmony import */ var _components_WidgetNull__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/WidgetNull */ \"./js/googlesitekit/widgets/components/WidgetNull.js\");\n/* harmony import */ var _components_WidgetRecoverableModules__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/WidgetRecoverableModules */ \"./js/googlesitekit/widgets/components/WidgetRecoverableModules.js\");\n/* harmony import */ var _components_WPDashboardReportError__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../components/WPDashboardReportError */ \"./js/googlesitekit/widgets/components/WPDashboardReportError.js\");\n\n\n/**\n * Widgets component props 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 * Internal dependencies\n */\n\n\n\n\n\n\n\n/**\n * WordPress dependencies\n */\n\n\n/**\n * Gets the props to pass to a widget's component.\n *\n * @since 1.25.0\n * @since 1.107.0 Added `widgetSlug` to the returned props.\n *\n * @param {string} widgetSlug The widget's slug.\n * @return {Object} Props to pass to the widget component.\n */\nvar getWidgetComponentProps = memize__WEBPACK_IMPORTED_MODULE_2___default()(function (widgetSlug) {\n // Scope widget-specific components to the widget instance so that the\n // component does not need to (re-)specify the widget slug.\n return {\n widgetSlug: widgetSlug,\n Widget: withWidgetSlug(widgetSlug)(_components_Widg
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9ob29rcy91c2VCcmVha3BvaW50LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvaG9va3MvdXNlQnJlYWtwb2ludC5qcz81NDAxIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogYHVzZUJyZWFrcG9pbnRgIGhvb2suXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMSBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0U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ZHRoKCk7XG5cblx0aWYgKCBvbmx5V2lkdGggPiAxMjgwICkge1xuXHRcdHJldHVybiBCUkVBS1BPSU5UX1hMQVJHRTtcblx0fVxuXG5cdGlmICggb25seVdpZHRoID4gOTYwICkge1xuXHRcdHJldHVybiBC
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9ob29rcy91c2VEZWJvdW5jZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2hvb2tzL3VzZURlYm91bmNlLmpzPzhlYWYiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBgdXNlRGVib3VuY2VgIGhvb2ssIGZyb20gQHdvcmRwcmVzcy9jb21wb3NlLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjEgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVm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/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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9ob29rcy91c2VWaWV3Q29udGV4dC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2hvb2tzL3VzZVZ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gVmlld0NvbnRleHRDb250ZXh0IGZyb20gJy4uL2NvbXBvbmVudHMvUm9vdC9WaWV3Q29udGV4dENvbnRleHQnO1xuXG4vKipcbiAqIFJldHVybnMgdGhlIGN1cnJlbnQgU2l0ZSBLaXQgdmlld2luZyBjb250ZXh0LCBlZy4gXCJkYXNoYm9hcmRcIixcbiAqIFwiZW50aXR5IGRhc2hib2FyZFwiLCBcInZpZXctb25seSBkYXNoYm9hcmRcIiwgZXRjLlxuICpcbiAqIEBzaW5jZSAxLjc0LjBcbiAqXG4gKiBAcmV0dXJuIHtzdHJpbmd9IFRoZSBjdXJyZW50IFwidmlld2luZyBjb250ZXh0XCIgdmFsdWUgZm9yIHRoZSBwbHVnaW4uXG4gKi9cbmZ1bmN0aW9uIHVzZVZpZXdDb250ZXh0KCkge1xuXHRjb25zdCB2aWV3Q29udGV4dCA9IHVzZUNvbnRleHQoIFZpZXdDb250ZXh0Q29udGV4dCApO1xuXG5cdHJldHVybiB2aWV3Q29udGV4dDtcbn1cblxuZXhwb3J0IGRlZmF1bHQgdXNlVmlld0NvbnRleHQ7XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9ob29rcy91c2VWaWV3T25seS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL2hvb2tzL3VzZVZpZXdPbmx5Lmpz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cnQgdXNlVmlld0NvbnRleHQgZnJvbSAnLi91c2VWaWV3Q29udGV4dCc7XG5cbi8qKlxuICogRGV0ZXJtaW5lcyBpZiB0aGUgY3VycmVudCB2aWV3IGNvbnRleHQgaXMgYSBcInZpZXcgb25seVwiIGRhc2hib2FyZCBjb250ZXh0LlxuICpcbiAqIEBzaW5jZSAxLjcyLjBcbiAqXG4gKiBAcmV0dXJuIHtib29sZWFufSBUcnVlIGlmIGN1cnJlbnQgY29udGV4dCBpcyBhIHZpZXctb25seSBkYXNoYm9hcmQgY29udGV4dCwgZmFsc2Ugb3RoZXJ3aXNlLlxuICovXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiB1c2VWaWV3T25seSgpIHtcblx0Y29uc3Qgdmlld0NvbnRleHQgPSB1c2VWaWV3Q29udGV4dCgpO1xuXG5cdHJldHVybiBTSVRFX0tJVF9WSUVXX09OTFlfQ09OVEVYVFMuaW5jbHVkZXMoIHZpZXdDb250ZXh0ICk7XG59XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tYXRlcmlhbC1jb21wb25lbnRzL2xheW91dC9pbmRleC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL21hdGVyaWFsLWNvbXBvbmVudHMvbGF5b3V0L2luZGV4Lmpz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hwb3J0IHsgZGVmYXVsdCBhcyBHcmlkIH0gZnJvbSAnLi9HcmlkJztcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/material-components/layout/index.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/AccountCreate/AccountField.js":
|
|||
|
|
/*!********************************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/components/common/AccountCreate/AccountField.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 AccountField; });\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 _CreateAccountField__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CreateAccountField */ \"./js/modules/analytics-4/components/common/AccountCreate/CreateAccountField.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 _datastore_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../googlesitekit/datastore/forms/constants */ \"./js/googlesitekit/datastore/forms/constants.js\");\n\n/**\n * AccountField 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\n\n\nfunction AccountField() {\n var value = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_FORMS\"]).getValue(_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"FORM_ACCOUNT_CREATE\"], 'accountName');\n });\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useDispatch\"])(_googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_FORMS\"]),\n setValues = _useDispatch.setValues;\n var setValue = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function (accountName) {\n setValues(_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"FORM_ACCOUNT_CREATE\"], {\n accountName: accountName\n });\n }, [setValues]);\n return /*#__PURE__*/React.createElement(_CreateAccountField__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Account', 'google-site-kit'),\n hasError: !value,\n value: value,\n setValue: setValue,\n name: \"account\"\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L2NvbXBvbmVudHMvY29tbW9uL0FjY291bnRDcmVhdGUvQWNjb3VudEZpZWxkLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvbW9kdWxlcy9hbmFseXRpY3MtNC9jb21wb25lbnRzL2NvbW1vbi9BY2NvdW50Q3JlYXRlL0FjY291bnRGaWVsZC5qcz83NzQ2Il0sInNvdXJjZXNDb250ZW50Ijp
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/AccountCreate/CountrySelect.js":
|
|||
|
|
/*!*********************************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/components/common/AccountCreate/CountrySelect.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 CountrySelect; });\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 _utils_countries_timezones__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../utils/countries-timezones */ \"./js/modules/analytics-4/utils/countries-timezones.js\");\n/* harmony import */ var _datastore_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\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\n/**\n * CountrySelect 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\n\n\n\nfunction CountrySelect() {\n var value = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_FORMS\"]).getValue(_datastore_constants__WEBPACK_IMPORTED_MODULE_5__[\"FORM_ACCOUNT_CREATE\"], 'countryCode');\n });\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useDispatch\"])(_googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_FORMS\"]),\n setValues = _useDispatch.setValues;\n var onEnhancedChange = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function (i, item) {\n var newCountryCode = item.dataset.value;\n if (newCountryCode !== value && _utils_countries_timezones__WEBPACK_IMPORTED_MODULE_4__[\"countriesByCode\"][newCountryCode]) {\n setValues(_datastore_constants__WEBPACK_IMPORTED_MODULE_5__[\"FORM_ACCOUNT_CREATE\"], {\n countryCode: newCountryCode,\n timezone:\n // eslint-disable-next-line sitekit/acronym-case\n _utils_countries_timezones__WEBPACK_IMPORTED_MODULE_4__[\"countriesByCode\"][newCountryCode].defaultTimeZoneId\n });\n }\n }, [setValues, value]);\n return /*#__PURE__*/React.createElement(googlesitekit_components__WEBPACK_IMPORTED_MODU
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/AccountCreate/CreateAccountField.js":
|
|||
|
|
/*!**************************************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/components/common/AccountCreate/CreateAccountField.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 CreateAccountField; });\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 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\n/**\n * CreateAccountField 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\nfunction CreateAccountField(_ref) {\n var hasError = _ref.hasError,\n value = _ref.value,\n setValue = _ref.setValue,\n name = _ref.name,\n label = _ref.label;\n // Ensure field doesn't render until default value is available, fixing a potential render bug.\n if (value === undefined) {\n return null;\n }\n return /*#__PURE__*/React.createElement(googlesitekit_components__WEBPACK_IMPORTED_MODULE_2__[\"TextField\"], {\n className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('mdc-text-field', {\n 'mdc-text-field--error': hasError\n }),\n label: label,\n name: name,\n onChange: function onChange(event) {\n setValue(event.target.value, name);\n },\n outlined: true,\n value: value,\n id: \"googlesitekit_analytics_account_create_\".concat(name)\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L2NvbXBvbmVudHMvY29tbW9uL0FjY291bnRDcmVhdGUvQ3JlYXRlQWNjb3VudEZpZWxkLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvbW9kdWxlcy9hbmFseXRpY3MtNC9jb21wb25lbnRzL2NvbW1vbi9BY2NvdW50Q3JlYXRlL0NyZWF0ZUFjY291bnRGaWVsZC5qcz9lMWM4Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ3JlYXRlQWNjb3VudEZpZWxkIGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDI0IEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qKlxuICogR
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/AccountCreate/PropertyField.js":
|
|||
|
|
/*!*********************************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/components/common/AccountCreate/PropertyField.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 PropertyField; });\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 _CreateAccountField__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CreateAccountField */ \"./js/modules/analytics-4/components/common/AccountCreate/CreateAccountField.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 _datastore_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../googlesitekit/datastore/forms/constants */ \"./js/googlesitekit/datastore/forms/constants.js\");\n\n/**\n * PropertyField 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\n\n\nfunction PropertyField() {\n var value = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_FORMS\"]).getValue(_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"FORM_ACCOUNT_CREATE\"], 'propertyName');\n });\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useDispatch\"])(_googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_FORMS\"]),\n setValues = _useDispatch.setValues;\n var setValue = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function (propertyName) {\n setValues(_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"FORM_ACCOUNT_CREATE\"], {\n propertyName: propertyName\n });\n }, [setValues]);\n return /*#__PURE__*/React.createElement(_CreateAccountField__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Property', 'google-site-kit'),\n value: value,\n hasError: !value,\n setValue: setValue,\n name: \"property\"\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L2NvbXBvbmVudHMvY29tbW9uL0FjY291bnRDcmVhdGUvUHJvcGVydHlGaWVsZC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL21vZHVsZXMvYW5hbHl0aWNzLTQvY29tcG9uZW50cy9jb21tb24vQWNjb3VudENyZWF0ZS9Qcm9wZXJ0eUZpZWxkLmpzPzJmMWEiXSwic291cmNlc0
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/AccountCreate/TimezoneSelect.js":
|
|||
|
|
/*!**********************************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/components/common/AccountCreate/TimezoneSelect.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 TimezoneSelect; });\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 _utils_countries_timezones__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../utils/countries-timezones */ \"./js/modules/analytics-4/utils/countries-timezones.js\");\n/* harmony import */ var _datastore_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\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\n/**\n * TimezoneSelect 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\n\n\n\nfunction TimezoneSelect() {\n var countryCode = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_FORMS\"]).getValue(_datastore_constants__WEBPACK_IMPORTED_MODULE_5__[\"FORM_ACCOUNT_CREATE\"], 'countryCode');\n });\n var value = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_FORMS\"]).getValue(_datastore_constants__WEBPACK_IMPORTED_MODULE_5__[\"FORM_ACCOUNT_CREATE\"], 'timezone');\n });\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useDispatch\"])(_googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_6__[\"CORE_FORMS\"]),\n setValues = _useDispatch.setValues;\n var onEnhancedChange = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function (i, item) {\n setValues(_datastore_constants__WEBPACK_IMPORTED_MODULE_5__[\"FORM_ACCOUNT_CREATE\"], {\n timezone: item.dataset.value\n });\n }, [setValues]);\n return /*#__PURE__*/React.createElement(googlesitekit_components__WEBPACK_IMPORTED_MODULE_2__[\"Select\"], {\n className: \"googlesitekit-analytics__selec
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/AccountCreate/WebDataStreamField.js":
|
|||
|
|
/*!**************************************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/components/common/AccountCreate/WebDataStreamField.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 WebDataStreamField; });\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 _CreateAccountField__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CreateAccountField */ \"./js/modules/analytics-4/components/common/AccountCreate/CreateAccountField.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 _datastore_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../googlesitekit/datastore/forms/constants */ \"./js/googlesitekit/datastore/forms/constants.js\");\n\n/**\n * WebDataStreamField 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\n\n\nfunction WebDataStreamField() {\n var value = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_FORMS\"]).getValue(_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"FORM_ACCOUNT_CREATE\"], 'dataStreamName');\n });\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useDispatch\"])(_googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_FORMS\"]),\n setValues = _useDispatch.setValues;\n var setValue = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function (dataStreamName) {\n setValues(_datastore_constants__WEBPACK_IMPORTED_MODULE_4__[\"FORM_ACCOUNT_CREATE\"], {\n dataStreamName: dataStreamName\n });\n }, [setValues]);\n return /*#__PURE__*/React.createElement(_CreateAccountField__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n label: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Web Data Stream', 'google-site-kit'),\n value: value,\n hasError: !value,\n setValue: setValue,\n name: \"dataStream\"\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L2NvbXBvbmVudHMvY29tbW9uL0FjY291bnRDcmVhdGUvV2ViRGF0YVN0cmVhbUZpZWxkLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvbW9kdWxlcy9hbmFseXRpY3MtNC9jb21wb25lbnRzL2NvbW1vbi9BY2NvdW50Q3JlYXRlL1dlYk
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/AccountCreate/index.js":
|
|||
|
|
/*!*************************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/components/common/AccountCreate/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 AccountCreate; });\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 _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_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 googlesitekit_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _datastore_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../datastore/constants */ \"./js/modules/analytics-4/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 _googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../googlesitekit/datastore/forms/constants */ \"./js/googlesitekit/datastore/forms/constants.js\");\n/* harmony import */ var _googlesitekit_datastore_location_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../googlesitekit/datastore/location/constants */ \"./js/googlesitekit/datastore/location/constants.js\");\n/* harmony import */ var _util_errors
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/AccountCreateLegacy.js":
|
|||
|
|
/*!*************************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/components/common/AccountCreateLegacy.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 AccountCreateLegacy; });\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 _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 _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../util */ \"./js/util/index.js\");\n/* harmony import */ var _datastore_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _components_StoreErrorNotices__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../components/StoreErrorNotices */ \"./js/components/StoreErrorNotices.js\");\n/* harmony import */ var _Notice__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Notice */ \"./js/modules/analytics-4/components/common/Notice.js\");\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../hooks/useViewContext */ \"./js/hooks/useViewContext.js\");\n\n\n\n/**\n * Legacy Account Creation 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\n\n\n\n\n\nfunction AccountCreateLegacy() {\n var accounts = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useSelect\"])(function (select) {\n return select(_datastore_constants__WEBPACK_IMPORTED_MODULE_7__[\"MODULES_ANALYTICS_4\"]).getAccountSummaries();\
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/AccountSelect.js":
|
|||
|
|
/*!*******************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/components/common/AccountSelect.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 AccountSelect; });\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_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 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 _datastore_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../util */ \"./js/util/index.js\");\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../hooks/useViewContext */ \"./js/hooks/useViewContext.js\");\n\n/**\n * Analytics-4 Account Select 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/**\n * Internal dependencies\n */\n\n\n\n\n\nfunction AccountSelect(_ref) {\n var hasModuleAccess = _ref.hasModuleAccess,\n onChange = _ref.onChange;\n var viewContext = Object(_hooks_useViewContext__WEBPACK_IMPORTED_MODULE_7__[\"default\"])();\n var accountID = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useSelect\"])(function (select) {\n return select(_datastore_constants__WEBPACK_IMPORTED_MODULE_5__[\"MODULES_ANALYTICS_4\"]).getAccountID();\n });\n var accounts = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useSelect\"])(function (select) {\n return select(_datastore_constants__WEBPACK_IMPORTED_MODULE_5__[\"MODULES_ANALYTICS_4\"]).getAccountSummaries();\n });\n var hasResolvedAccounts = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useSelect\"])(function (select) {\n return select(_datastore_constants__WEBPACK_IMPORTED_MODULE_5__[\"MODULES_ANALYTICS_4\"]).hasFinishedResolution('getAccountSummaries');\n });\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_4__[\"useDispatch\"])(_datastore_constants__WEBPACK_IMPORTED_MODULE_5__[\"MODULES_ANALYTICS_4\"]),\n select
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/EnhancedMeasurementSwitch.js":
|
|||
|
|
/*!*******************************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/components/common/EnhancedMeasurementSwitch.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 EnhancedMeasurementSwitch; });\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 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 _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_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _googlesitekit_datastore_forms_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../googlesitekit/datastore/forms/constants */ \"./js/googlesitekit/datastore/forms/constants.js\");\n/* harmony import */ var _datastore_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _components_SupportLink__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../components/SupportLink */ \"./js/components/SupportLink.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../util */ \"./js/util/index.js\");\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../hooks/useViewContext */ \"./js/hooks/useViewContext.js\");\n/* harmony import */ var _svg_icons_tick_svg__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../svg/icons/tick.svg */ \"./svg/icons/tick.svg\");\n\n\n/**\n * EnhancedMeasurementSwitch 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 d
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/Notice.js":
|
|||
|
|
/*!************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/components/common/Notice.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 Notice; });\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 _components_SettingsNotice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../components/SettingsNotice */ \"./js/components/SettingsNotice/index.js\");\n/* harmony import */ var _components_Link__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../components/Link */ \"./js/components/Link.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\n/**\n * Analytics GA4 Notice 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 * Internal dependencies\n */\n\n\n\n\nfunction Notice() {\n var documentationURL = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_2__[\"useSelect\"])(function (select) {\n return select(_googlesitekit_datastore_site_constants__WEBPACK_IMPORTED_MODULE_5__[\"CORE_SITE\"]).getDocumentationLinkURL('ga4');\n });\n return /*#__PURE__*/React.createElement(_components_SettingsNotice__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n type: _components_SettingsNotice__WEBPACK_IMPORTED_MODULE_3__[\"TYPE_INFO\"],\n LearnMore: function LearnMore() {\n return /*#__PURE__*/React.createElement(_components_Link__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n href: documentationURL,\n external: true\n }, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Learn more here.', 'google-site-kit'));\n },\n notice: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Got a Google Analytics property and want to find out how to use it with Site Kit?', 'google-site-kit')\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L2NvbXBvbmVudHMvY29tbW9uL05vdGljZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL21vZHVsZXMvYW5hbHl0aWNzLTQvY29tcG9uZW50cy9jb21tb24vTm90aWNlLmpzPzM1M2IiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBBbmFseXRpY3MgR0E0IE5vdGljZSBjb21wb25lbnQuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyNCBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbG
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/PropertySelect.js":
|
|||
|
|
/*!********************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/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 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_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 _datastore_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _utils_validation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils/validation */ \"./js/modules/analytics-4/utils/validation.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../util */ \"./js/util/index.js\");\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../hooks/useViewContext */ \"./js/hooks/useViewContext.js\");\n\n/**\n * GA4 Property Select 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\n\n\n\n\nfunction PropertySelect(props) {\n var isDisabled = props.isDisabled,\n hasModuleAccess = props.hasModuleAccess,\n className = props.className,\n _props$onChange = props.onChange,\n onChange = _props$onChange === void 0 ? function () {} : _props$onChange;\n var accountID = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"useSelect\"])(function (select) {\n return select(_datastore_constants__WEBPACK_IMPORTED_MODULE_6__[\"MODULES_ANALYTICS_4\"]).getAccountID();\n });\n var properties = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"useSelect\"])(function (select) {\n return hasModuleAccess !== fal
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/TrackingExclusionSwitches.js":
|
|||
|
|
/*!*******************************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/components/common/TrackingExclusionSwitches.js ***!
|
|||
|
|
\*******************************************************************************/
|
|||
|
|
/*! exports provided: TRACKING_LOGGED_IN_USERS, TRACKING_CONTENT_CREATORS, trackingExclusionLabels, 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__, \"TRACKING_LOGGED_IN_USERS\", function() { return TRACKING_LOGGED_IN_USERS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TRACKING_CONTENT_CREATORS\", function() { return TRACKING_CONTENT_CREATORS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"trackingExclusionLabels\", function() { return trackingExclusionLabels; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return TrackingExclusionSwitches; });\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 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 _datastore_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n\nvar _trackingExclusionLab;\n\n/**\n * Analytics 4 Tracking Exclusion switches 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\n\nvar TRACKING_LOGGED_IN_USERS = 'loggedinUsers';\nvar TRACKING_CONTENT_CREATORS = 'contentCreators';\nvar trackingExclusionLabels = (_trackingExclusionLab = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_trackingExclusionLab, TRACKING_LOGGED_IN_USERS, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('All logged-in users', 'google-site-kit')), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_trackingExclusionLab, TRACKING_CONTENT_CREATORS, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__[\"__\"])('Users that can write posts', 'google-site-kit')), _trackingExclusionLab);\nfunction TrackingExclusionSwitches() {\n var trackingDisabled = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n ret
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/UseSnippetSwitch.js":
|
|||
|
|
/*!**********************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/components/common/UseSnippetSwitch.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 UseSnippetSwitch; });\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 _datastore_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../util */ \"./js/util/index.js\");\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../hooks/useViewContext */ \"./js/hooks/useViewContext.js\");\n\n/**\n * GA4 Use Snippet Switch 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\n\nfunction UseSnippetSwitch(_ref) {\n var description = _ref.description;\n var viewContext = Object(_hooks_useViewContext__WEBPACK_IMPORTED_MODULE_7__[\"default\"])();\n var useSnippet = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useSelect\"])(function (select) {\n return select(_datastore_constants__WEBPACK_IMPORTED_MODULE_5__[\"MODULES_ANALYTICS_4\"]).getUseSnippet();\n });\n var _useDispatch = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_3__[\"useDispatch\"])(_datastore_constants__WEBPACK_IMPORTED_MODULE_5__[\"MODULES_ANALYTICS_4\"]),\n setUseSnippet = _useDispatch.setUseSnippet;\n var onChange = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__[\"useCallback\"])(function () {\n var newUseSnippet = !useSnippet;\n setUseSnippet(newUseSnippet);\n Object(_util__WEBPACK_IMPORTED_MODULE_6__[\"trackEvent\"])(\"\".concat(viewContext, \"_analytics\"), newUseSnippet ? 'enable_tag' : 'disable_tag', 'ga4');\n }, [useSnippet, setUseSnippet, viewContext]);\n if (useSnippet === undefined) {\n return null;\n }\n return /*#__PURE__*/React.createElement(\"div\", {\
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/WebDataStreamNameInput.js":
|
|||
|
|
/*!****************************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/components/common/WebDataStreamNameInput.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 WebDataStreamNameInput; });\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 react_use__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-use */ \"../node_modules/react-use/esm/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 _wordpress_url__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/url */ \"../node_modules/@wordpress/url/build-module/index.js\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! googlesitekit-data */ \"googlesitekit-data\");\n/* harmony import */ var googlesitekit_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _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_datastore_site_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../googlesitekit/datastore/site/constants */ \"./js/googlesitekit/datastore/site/constants.js\");\n/* harmony import */ var _datastore_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _components_AccessibleWarningIcon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../components/AccessibleWarningIcon */ \"./js/components/AccessibleWarningIcon.js\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! googlesitekit-components */ \"googlesitekit-components\");\n/* harmony import */ var googlesitekit_components__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(googlesitekit_components__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _utils_validation__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../utils/validation */ \"./js/modules/analytics-4/utils/validation.js\");\n\n/**\n * Analytics WebDataStreamNameInput 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 * WordPress dependencies\n */\n\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\nfunction WebDataStreamNameInput() {\n var propertyID = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"useSelect\"])(function (select) {\n return select(_datastore_constants__WEBPACK_IMPORTED_MODULE_8__[\"MODULES_ANAL
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/WebDataStreamSelect.js":
|
|||
|
|
/*!*************************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/components/common/WebDataStreamSelect.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 WebDataStreamSelect; });\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 _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 _datastore_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _utils_validation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils/validation */ \"./js/modules/analytics-4/utils/validation.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../util */ \"./js/util/index.js\");\n/* harmony import */ var _hooks_useViewContext__WEBPACK_IMPORTED_MODULE_9__ = __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/**\n * WordPress dependencies\n */\n\n\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\nfunction WebDataStreamSelect(props) {\n var hasModuleAccess = props.hasModuleAccess,\n isDisabled = props.isDisabled,\n className = props.className,\n onChange = props.onChange;\n var accountID = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"useSelect\"])(function (select) {\n return select(_datastore_constants__WEBPACK_IMPORTED_MODULE_6__[\"MODULES_ANALYTICS_4\"]).getAccountID();\n });\n var _useSelect = Object(googlesitekit_data__WEBPACK_IMPORTED_MODULE_5__[\"useSelect\"])(function (select) {\n return select(_datastore_constants__WEBPACK_IMPORTED_MODULE_6__[\"MODULES_ANALYTICS_4\"]).getSettings() || {};\n }),\n propertyID = _useS
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/ZeroDataMessage.js":
|
|||
|
|
/*!*********************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/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 * Analytics ZeroDataMessage 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 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 received any visitors yet', 'google-site-kit') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('Your site hasn’t received any visitors yet', 'google-site-kit');\n }\n return url ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('No data to display: your page hasn’t received any visitors yet', 'google-site-kit') : Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__[\"__\"])('No data to display: your site hasn’t received any visitors 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L2NvbXBvbmVudHMvY29tbW9uL1plcm9EYXRhTWVzc2FnZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL21vZHVsZXMvYW5hbHl0aWNzLTQvY29tcG9uZW50cy9jb21tb24vWmVyb0RhdGFNZXNzYWdlLmpzPzBiNWIiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBBbmFseXRpY3MgWmVyb0RhdGFNZXNzYWdlIGNvbXBvbmVudC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDI0IEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiBkaXN0cmlidXRlZCB1b
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/components/common/index.js":
|
|||
|
|
/*!***********************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/components/common/index.js ***!
|
|||
|
|
\***********************************************************/
|
|||
|
|
/*! exports provided: AccountCreate, AccountSelect, AccountCreateLegacy, EnhancedMeasurementSwitch, WebDataStreamSelect, PropertySelect, TrackingExclusionSwitches, UseSnippetSwitch, Notice, WebDataStreamNameInput, ZeroDataMessage */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _AccountCreate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AccountCreate */ \"./js/modules/analytics-4/components/common/AccountCreate/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"AccountCreate\", function() { return _AccountCreate__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _AccountSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AccountSelect */ \"./js/modules/analytics-4/components/common/AccountSelect.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"AccountSelect\", function() { return _AccountSelect__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _AccountCreateLegacy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AccountCreateLegacy */ \"./js/modules/analytics-4/components/common/AccountCreateLegacy.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"AccountCreateLegacy\", function() { return _AccountCreateLegacy__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _EnhancedMeasurementSwitch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EnhancedMeasurementSwitch */ \"./js/modules/analytics-4/components/common/EnhancedMeasurementSwitch.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"EnhancedMeasurementSwitch\", function() { return _EnhancedMeasurementSwitch__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _WebDataStreamSelect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./WebDataStreamSelect */ \"./js/modules/analytics-4/components/common/WebDataStreamSelect.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"WebDataStreamSelect\", function() { return _WebDataStreamSelect__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n/* harmony import */ var _PropertySelect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./PropertySelect */ \"./js/modules/analytics-4/components/common/PropertySelect.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PropertySelect\", function() { return _PropertySelect__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; });\n\n/* harmony import */ var _TrackingExclusionSwitches__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TrackingExclusionSwitches */ \"./js/modules/analytics-4/components/common/TrackingExclusionSwitches.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TrackingExclusionSwitches\", function() { return _TrackingExclusionSwitches__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; });\n\n/* harmony import */ var _UseSnippetSwitch__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./UseSnippetSwitch */ \"./js/modules/analytics-4/components/common/UseSnippetSwitch.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"UseSnippetSwitch\", function() { return _UseSnippetSwitch__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; });\n\n/* harmony import */ var _Notice__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Notice */ \"./js/modules/analytics-4/components/common/Notice.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Notice\", function() { return _Notice__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; });\n\n/* harmony import */ var _WebDataStreamNameInput__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./WebDataStreamNameInput */ \"./js/modules/analytics-4/components/common/WebDataStreamNameInput.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"WebDataStreamNameInput\", function() { return _WebDataStreamNameInput__WEBPACK_IMPORTED_MODULE_9__[\"default\"]; });\n\n/* harmony import */ var _ZeroDataMessage__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ZeroDataMessage */ \"./js/modules/analytics-4/components/common/ZeroDataMessage.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpac
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/account.js":
|
|||
|
|
/*!*************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/utils/account.js ***!
|
|||
|
|
\*************************************************/
|
|||
|
|
/*! exports provided: getAccountDefaults, populateAccountID, populatePropertyAndAccountIds, populateAccountSummaries */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getAccountDefaults\", function() { return getAccountDefaults; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"populateAccountID\", function() { return populateAccountID; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"populatePropertyAndAccountIds\", function() { return populatePropertyAndAccountIds; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"populateAccountSummaries\", function() { return populateAccountSummaries; });\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 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 _wordpress_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/url */ \"../node_modules/@wordpress/url/build-module/index.js\");\n/* harmony import */ var _countries_timezones__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./countries-timezones */ \"./js/modules/analytics-4/utils/countries-timezones.js\");\n/* harmony import */ var _datastore_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../datastore/constants */ \"./js/modules/analytics-4/datastore/constants.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 * Account helpers.\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/**\n * Gets default values for a new account.\n *\n * @since 1.98.0\n * @since 1.111.0 Added enhanced measurement enabled state to return value.\n *\n * @param {Object} args Site information.\n * @param {string} args.siteName Site name.\n * @param {string} args.siteURL Site home URL.\n * @param {string} args.timezone Site timezone.\n * @param {string} _fallbackTimezone Fallback timezone. Defaults to local tim
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/utils/countries-data.js":
|
|||
|
|
/*!********************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/utils/countries-data.js ***!
|
|||
|
|
\********************************************************/
|
|||
|
|
/*! exports provided: countries */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"countries\", function() { return countries; });\n/* eslint-disable sitekit/acronym-case */\nvar countries = {\n default: {\n defaultCountryCode: 'US',\n country: [{\n countryCode: 'AF',\n displayName: 'Afghanistan',\n defaultTimeZoneId: 'Asia/Kabul',\n timeZone: [{\n timeZoneId: 'Asia/Kabul',\n displayName: '(GMT+04:30) Afghanistan Time'\n }],\n tosLocale: {\n language: 'en',\n country: 'US'\n }\n }, {\n countryCode: 'AL',\n displayName: 'Albania',\n defaultTimeZoneId: 'Europe/Tirane',\n timeZone: [{\n timeZoneId: 'Europe/Tirane',\n displayName: '(GMT+02:00) Albania Time'\n }],\n tosLocale: {\n language: 'en',\n country: 'GB'\n }\n }, {\n countryCode: 'DZ',\n displayName: 'Algeria',\n defaultTimeZoneId: 'Africa/Algiers',\n timeZone: [{\n timeZoneId: 'Africa/Algiers',\n displayName: '(GMT+01:00) Algeria Time'\n }],\n tosLocale: {\n language: 'en',\n country: 'GB'\n }\n }, {\n countryCode: 'AS',\n displayName: 'American Samoa',\n defaultTimeZoneId: 'Pacific/Pago_Pago',\n timeZone: [{\n timeZoneId: 'Pacific/Pago_Pago',\n displayName: '(GMT-11:00) American Samoa Time'\n }],\n tosLocale: {\n language: 'en',\n country: 'US'\n }\n }, {\n countryCode: 'AD',\n displayName: 'Andorra',\n defaultTimeZoneId: 'Europe/Andorra',\n timeZone: [{\n timeZoneId: 'Europe/Andorra',\n displayName: '(GMT+02:00) Andorra Time'\n }],\n tosLocale: {\n language: 'en',\n country: 'GB'\n }\n }, {\n countryCode: 'AQ',\n displayName: 'Antarctica',\n defaultTimeZoneId: 'Antarctica/Palmer',\n timeZone: [{\n timeZoneId: 'Antarctica/Palmer',\n displayName: '(GMT-03:00) Palmer Time'\n }, {\n timeZoneId: 'Antarctica/Rothera',\n displayName: '(GMT-03:00) Rothera Time'\n }, {\n timeZoneId: 'Antarctica/Syowa',\n displayName: '(GMT+03:00) Syowa Time'\n }, {\n timeZoneId: 'Antarctica/Mawson',\n displayName: '(GMT+05:00) Mawson Time'\n }, {\n timeZoneId: 'Antarctica/Vostok',\n displayName: '(GMT+06:00) Vostok Time'\n }, {\n timeZoneId: 'Antarctica/Davis',\n displayName: '(GMT+07:00) Davis Time'\n }, {\n timeZoneId: 'Antarctica/Casey',\n displayName: '(GMT+08:00) Casey Time'\n }, {\n timeZoneId: 'Antarctica/DumontDUrville',\n displayName: \"(GMT+10:00) Dumont d\\u2019Urville Time\"\n }],\n tosLocale: {\n language: 'en',\n country: 'US'\n }\n }, {\n countryCode: 'AR',\n displayName: 'Argentina',\n defaultTimeZoneId: 'America/Buenos_Aires',\n timeZone: [{\n timeZoneId: 'America/Buenos_Aires',\n displayName: '(GMT-03:00) Buenos Aires Time'\n }, {\n timeZoneId: 'America/Cordoba',\n displayName: '(GMT-03:00) Cordoba Time'\n }],\n tosLocale: {\n language: 'es',\n country: 'ES'\n }\n }, {\n countryCode: 'AM',\n displayName: 'Armenia',\n defaultTimeZoneId: 'Asia/Yerevan',\n timeZone: [{\n timeZoneId: 'Asia/Yerevan',\n displayName: '(GMT+04:00) Armenia Time'\n }],\n tosLocale: {\n language: 'en',\n country: 'GB'\n }\n }, {\n countryCode: 'AU',\n displayName: 'Australia',\n defaultTimeZoneId: 'Australia/Perth',\n timeZone: [{\n timeZoneId: 'Australia/Perth',\n displayName: '(GMT+08:00) Perth Time'\n }, {\n timeZoneId: 'Australia/Adelaide',\n displayName: '(GMT+09:30) Adelaide Time'\n }, {\n timeZoneId: 'Australia/Darwin',\n displayName: '(GMT+09:30) Darwin Time'\n }, {\n timeZoneId: 'Australia/B
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/modules/analytics-4/utils/countries-timezones.js":
|
|||
|
|
/*!*************************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/utils/countries-timezones.js ***!
|
|||
|
|
\*************************************************************/
|
|||
|
|
/*! exports provided: allCountries, timeZonesByCountryCode, countriesByCode, countryCodesByTimezone */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"allCountries\", function() { return allCountries; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"timeZonesByCountryCode\", function() { return timeZonesByCountryCode; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"countriesByCode\", function() { return countriesByCode; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"countryCodesByTimezone\", function() { return countryCodesByTimezone; });\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 _countries_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./countries-data */ \"./js/modules/analytics-4/utils/countries-data.js\");\n/**\n * Country and Time Zone 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\nvar allCountries = _countries_data__WEBPACK_IMPORTED_MODULE_1__[\"countries\"].default.country;\nvar timeZonesByCountryCode = allCountries.reduce(function (map, country) {\n map[country.countryCode] = country.timeZone;\n return map;\n}, {});\nvar countriesByCode = Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"keyBy\"])(allCountries, 'countryCode');\nvar countryCodesByTimezone = allCountries.reduce(function (map, country) {\n country.timeZone.forEach(\n // eslint-disable-next-line sitekit/acronym-case\n function (_ref) {\n var timeZoneId = _ref.timeZoneId;\n return map[timeZoneId] = country.countryCode;\n });\n return map;\n}, {});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L3V0aWxzL2NvdW50cmllcy10aW1lem9uZXMuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L3V0aWxzL2NvdW50cmllcy10aW1lem9uZXMuanM/MjdlYSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvdW50cnkgYW5kIFRpbWUgWm9uZSB1dGlsaXRpZXMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyNCBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG4vKipcbiAqIEV4dGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgeyBrZXlCeSB9IGZyb20gJ2xvZGFzaCc7XG5cbi8qKlxuICogSW50ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IGNvdW50cmllcyB9IGZyb20gJy4vY291bnRyaWVzLWRhdGEnO1xuXG5leHBvcnQgY29uc3QgYWxsQ291bnRyaWVzID0gY291bnRyaWVzLmRlZmF1bHQuY291bnRyeTtcblxuZXhwb3J0IGNvbnN0IHRpbWVab25lc0J5Q291bnRyeUNvZGUgPSBhbGxDb3VudHJpZXMucmVkdWNlKCAoIG1hcCwgY291bn
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L3V0aWxzL3BhcnNlRGltZW5zaW9uU3RyaW5nVG9EYXRlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvbW9kdWxlcy9hbmFseXRpY3MtNC91dGlscy9wYXJzZURpbWVuc2lvblN0cmluZ1RvRGF0ZS5qcz84MTZkIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogYHBhcnNlRGltZW5zaW9uU3RyaW5nVG9EYXRlYCB1dGlsaXR5LlxuICpcbiAqIFNpdGUgS2l0IGJ5IE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|||
|
|
/*!**********************************************************!*\
|
|||
|
|
!*** ./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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL2FuYWx5dGljcy00L3V0aWxzL3JlcG9ydC1waXZvdHMtdmFsaWRhdGlvbi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL21vZHVsZXMvYW5hbHl0aWNzLTQvdXRpbHMvcmVwb3J0LXBpdm90cy12YWxpZGF0aW9uLmpzPzU0ZmEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBBbmFseXRpY3MgNCBwaXZvdCByZXBvcnRpbmcgQVBJIHZhbGlkYXRpb24gdXRpbGl0aWVzLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjQgR29vZ2xlIExMQ1xuICpcbi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":
|
|||
|
|
/*!***********************************************************!*\
|
|||
|
|
!*** ./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/analytics-4/utils/validation.js":
|
|||
|
|
/*!****************************************************!*\
|
|||
|
|
!*** ./js/modules/analytics-4/utils/validation.js ***!
|
|||
|
|
\****************************************************/
|
|||
|
|
/*! exports provided: isValidAccountSelection, isValidAccountID, isValidPropertyID, isValidPropertySelection, isValidWebDataStreamID, isValidWebDataStreamSelection, isValidWebDataStreamName, isValidMeasurementID, isValidGoogleTagID, isValidGoogleTagAccountID, isValidGoogleTagContainerID, validateReport, validatePivotReport, validateAudience */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidAccountSelection\", function() { return isValidAccountSelection; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidPropertyID\", function() { return isValidPropertyID; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidPropertySelection\", function() { return isValidPropertySelection; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidWebDataStreamID\", function() { return isValidWebDataStreamID; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidWebDataStreamSelection\", function() { return isValidWebDataStreamSelection; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidWebDataStreamName\", function() { return isValidWebDataStreamName; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidMeasurementID\", function() { return isValidMeasurementID; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidGoogleTagID\", function() { return isValidGoogleTagID; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidGoogleTagAccountID\", function() { return isValidGoogleTagAccountID; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isValidGoogleTagContainerID\", function() { return isValidGoogleTagContainerID; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"validateReport\", function() { return validateReport; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"validatePivotReport\", function() { return validatePivotReport; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"validateAudience\", function() { return validateAudience; });\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 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 _datastore_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../datastore/constants */ \"./js/modules/analytics-4/datastore/constants.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../util */ \"./js/util/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isValidAccountID\", function() { return _util__WEBPACK_IMPORTED_MODULE_3__[\"isValidNumericID\"]; });\n\n/* harmony import */ var _util_report_validation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../util/report-validation */ \"./js/util/report-validation.js\");\n/* harmony import */ var _report_normalization__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./report-normalization */ \"./js/modules/analytics-4/utils/report-normalization.js\");\n/* harmony import */ var _report_validation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./report-validation */ \"./js/modules/analytics-4/utils/report-validation.js\");\n/* harmony import */ var _report_pivots_validation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./report-pivots-validation */ \"./js/modules/analytics-4/utils/report-pivots-validation.js\");\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
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy9tb2R1bGVzL3NlYXJjaC1jb25zb2xlL2RhdGFzdG9yZS9jb25zdGFudHMuanMuanMiLCJzb3VyY2V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1NFQVJDSF9DT05TT0xFID0gJ21vZHVsZXMvc2VhcmNoLWNvbnNvbGUnO1xuXG4vLyBEYXRlIHJhbmdlIG9mZnNldCBkYXlzIGZvciBTZWFyY2ggQ29uc29sZSByZXBvcnQgcmVxdWVzdHMuXG5leHBvcnQgY29uc3QgREFURV9SQU5HRV9PRkZTRVQgPSAxO1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/modules/search-console/datastore/constants.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/util/chart.js":
|
|||
|
|
/*!**************************!*\
|
|||
|
|
!*** ./js/util/chart.js ***!
|
|||
|
|
\**************************/
|
|||
|
|
/*! exports provided: getChartDifferenceArrow, isSingleSlice, calculateDifferenceBetweenChartValues */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(React) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getChartDifferenceArrow\", function() { return getChartDifferenceArrow; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isSingleSlice\", function() { return isSingleSlice; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"calculateDifferenceBetweenChartValues\", function() { return calculateDifferenceBetweenChartValues; });\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ \"../node_modules/@wordpress/element/build-module/index.js\");\n/* harmony import */ var _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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL2NvbnZlcnQtdGltZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvY29udmVydC10aW1lLmpzPzJlOTMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBUaW1lIHJlbGF0ZWQgdXRpbGl0eSBmdW5jdGlvbnMuXG4gKlx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XG4gKlx
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL2NyZWF0ZS1pbmNyZW1lbnRhbC1hcnJheS1ieS1zaXplLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvdXRpbC9jcmVhdGUtaW5jcmVtZW50YWwtYXJyYXktYnktc2l6ZS5qcz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IEBzaW5jZSAxLjI4LjBcbiAqXG4gKiBAcGFyYW0ge251bWJlcn0gc2l6ZSBBcnJheSBsZW5ndGguXG4gKiBAcmV0dXJuIHtudW1iZXJbXX0gQXJyYXkgb2YgaW5jcmVtZW50YWwgbnVtYmVycy5cbiAqIEBleGFtcGxlIGNyZWF0ZUluY3JlbWVudGFsQXJyYXlCeVNpemUoMyk7IC8vIFswLCAxLCAyXVxuICovXG5leHBvcnQgY29uc3QgY3JlYXRlSW5jcmVtZW50YWxBcnJheUJ5U2l6ZSA9ICggc2l6ZSApID0+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/finite-number-or-zero.js":
|
|||
|
|
/*!******************************************!*\
|
|||
|
|
!*** ./js/util/finite-number-or-zero.js ***!
|
|||
|
|
\******************************************/
|
|||
|
|
/*! exports provided: finiteNumberOrZero */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"finiteNumberOrZero\", function() { return finiteNumberOrZero; });\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 * Utility function `finiteNumberOrZero()`.\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 * Returns the passed value if it's a finite number, otherwise returns 0.\n *\n * @since 1.98.0\n *\n * @param {any} value The value to check.\n * @return {number} The finite number `value`, or 0 if `value` is not a finite number.\n */\nvar finiteNumberOrZero = function finiteNumberOrZero(value) {\n return Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"isFinite\"])(value) ? value : 0;\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL2Zpbml0ZS1udW1iZXItb3ItemVyby5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvZmluaXRlLW51bWJlci1vci16ZXJvLmpzP2QxMTAiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBVdGlsaXR5IGZ1bmN0aW9uIGBmaW5pdGVOdW1iZXJPclplcm8oKWAuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMyBHb29nbGUgTExDXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBodHRwczovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJp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UFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./js/util/finite-number-or-zero.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/util/i18n.js":
|
|||
|
|
/*!*************************!*\
|
|||
|
|
!*** ./js/util/i18n.js ***!
|
|||
|
|
\*************************/
|
|||
|
|
/*! exports provided: createDurationFormat, prepareForReadableLargeNumber, readableLargeNumber, expandNumFmtOptions, numFmt, numberFormat, listFormat, getLocale */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createDurationFormat\", function() { return createDurationFormat; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"prepareForReadableLargeNumber\", function() { return prepareForReadableLargeNumber; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"readableLargeNumber\", function() { return readableLargeNumber; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"expandNumFmtOptions\", function() { return expandNumFmtOptions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"numFmt\", function() { return numFmt; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"numberFormat\", function() { return numberFormat; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"listFormat\", function() { return listFormat; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getLocale\", function() { return getLocale; });\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"../node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"../node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"../node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ \"../node_modules/@babel/runtime/helpers/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ \"../node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! memize */ \"../node_modules/memize/index.js\");\n/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(memize__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__);\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL2luaXRpYWxpemUtZ29vZ2xlLWdsb2JhbC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvaW5pdGlhbGl6ZS1nb29nbGUtZ2xvYmFsLmpzPzZjOWMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBTaWRlIEVmZmVjdCB0byBpbml0aWFsaXplIGBnb29nbGVgIGdsb2JhbC5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAy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FDQTtBQUNBO0FBQ0E7QSIsInNvdXJjZVJvb3QiOiIifQ==\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL2lzLXNpdGUta2l0LXNjcmVlbi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL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ZW5jaWVzXG4gKi9cbmltcG9ydCB7IFNJVEVfS0lUX1ZJRVdfQ09OVEVYVFMgfSBmcm9tICcuLi9nb29nbGVzaXRla2l0L2NvbnN0YW50cyc7XG5cbi8qKlxuICogQ2hlY2tzIHdoZXRoZXIgb3Igbm90IHRoZSBjdXJyZW50IHZpZXdDb250ZXh0IGlzIGEgU2l0ZSBLaXQgc2NyZWVuLlxuICpcbiAqIEBzaW5jZSAxLjgwLjBcbiAqXG4gKiBAcGFyYW0ge3N0cmluZ30gdmlld0NvbnRleHQgVGhlIHZpZXctY29udGV4dC5cbiAqIEByZXR1cm4ge2Jvb2xlYW59IFRSVUUgaWYgdGhlIHBhc3NlZCB2aWV3LWNvbnRleHQgaXMgYSBzaXRlIGtpdCB2aWV3OyBvdGhlcndpc2UgRkFMU0UuXG4gKi9cbmV4cG9ydCBjb25zdCBpc1NpdGVLaXRTY3JlZW4gPSAoIHZpZXdDb250ZXh0ICkgPT5cblx0U0lURV9LSVRfVklFV19DT05URVhUUy5pbmNsdWRlcyggdmlld0NvbnRleHQgKTtcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\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/MjU1NiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFV0aWxpdHkgZnVuY3Rpb24gcmVsYXRlZCB0byBjaGVja2luZyBpZiBhIGdpdmVuIHZhbHVlIGlzIG51bWVyaWMuXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ2xlLCBDb3B5cmlnaHQgMjAyMiBHb29nbGUgTExDXG4gKlxuICogTGljZW5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iAqIEByZXR1cm4ge2Jvb2xlYW59IFZhbGlkaXR5LlxuICovXG5leHBvcnQgZnVuY3Rpb24gaXNWYWxpZE51bWVyaWNJRCggaW5wdXQgKSB7XG5cdGNvbnN0IGlkID0gcGFyc2VGbG9hdCggaW5wdXQgKSB8fCAwO1xuXG5cdGlmICggISBOdW1iZXIuaXNJbnRlZ2VyKCBpZCApICkge1xuXHRcdHJldHVybiBmYWxzZTtcblx0fVxuXG5cdHJldHVybiBpZCA+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL2lzbnVtZXJpYy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvaXNudW1lcmljLmpzPzliNDkiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBVdGlsaXR5IGZ1bmN0aW9uIHJlbGF0ZWQgdG8gY2hlY2tpbmcgaWYgYSBnaXZlbiB2YWx1ZSBpcyBudW1lcmljLlxuICpcbiAqIFNpdGUgS2l0IGJ5IEdvb2dsZSwgQ29weXJpZ2h0IDIwMjIgR29vZ2xlIExMQ1xuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgaHR0cHM6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvci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Q0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL21hcmtkb3duLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvdXRpbC9tYXJrZG93bi5qcz9kYjAyIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogTWFya2Rvd24gdXRpbGl0eS5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiBVbmxlc3MgcmVxdW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c3RyaW5nfSB0ZXh0IE1hcmtkb3duIHRleHQuXG4gKiBAcmV0dXJuIHtzdHJpbmd9IFRleHQgd2l0aCBIVE1MIGxpbmtzLlxuICovXG5mdW5jdGlvbiBtYXJrZG93blBhcmFncmFwaHMoIHRleHQgKSB7XG
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3NhZmVseS1zb3J0LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvdXRpbC9zYWZlbHktc29ydC5qcz8zMzQ3Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogYHNhZmVseVNvcnRgIHV0aWxpdHkgZnVuY3Rpb24uXG4gKlxuICogU2l0ZSBLaXQgYnkgR29vZ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zaW5jZSAxLjEyOC4wIE1vdmVkIHRvIHRoZSBjb21tb24gdXRpbGl0eSBkaXJlY3RvcnkgZnJvbSB0aGUga2V5IG1ldHJpY3MgZGlyZWN0b3J5LlxuICpcbiAqIEBwYXJhbSB7QXJyYXl8Kn0gYXJyIFBhcmFtIHRvIGJlIHNvcnRlZC5cbiAqIEByZXR1cm4ge0FycmF5fCp9IFx0U2FmZWx5IHNvcnRlZCBhcnJheSB3aXRob3V0IG11dGF0aW9uLlxuICovXG5leHBvcnQgY29uc3Qgc2FmZWx5U29ydCA9ICggYXJyICkgPT4ge1xuXHRyZXR1cm4gQXJyYXkuaXNBcnJheSggYXJyICkgPyBbIC4uLmFyciBdLnNvcnQoKSA6IGFycjtcbn07XG4iXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3Nhbml0aXplLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vanMvdXRpbC9zYW5pdGl6ZS5qcz8yZmFkIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogSW50ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9yd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UNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./js/util/sanitize.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/util/scroll.js":
|
|||
|
|
/*!***************************!*\
|
|||
|
|
!*** ./js/util/scroll.js ***!
|
|||
|
|
\***************************/
|
|||
|
|
/*! exports provided: getNavigationalScrollTop, getStickyHeaderHeight, getStickyHeaderHeightWithoutNav */
|
|||
|
|
/***/ (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__, \"getNavigationalScrollTop\", function() { return getNavigationalScrollTop; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getStickyHeaderHeight\", function() { return getStickyHeaderHeight; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getStickyHeaderHeightWithoutNav\", function() { return getStickyHeaderHeightWithoutNav; });\n/* harmony import */ var _hooks_useBreakpoint__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../hooks/useBreakpoint */ \"./js/hooks/useBreakpoint.js\");\n/* harmony import */ var _finite_number_or_zero__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./finite-number-or-zero */ \"./js/util/finite-number-or-zero.js\");\n/**\n * Utility functions related to window scrolling.\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 * Gets the y coordinate to scroll to the top of a context element, taking the sticky admin bar, header and navigation height into account.\n *\n * @since 1.137.0 Renamed from getContextScrollTop to getNavigationalScrollTop.\n *\n * @param {string} selector Selector for the element to scroll to. The id (prepend #) or class (prepend .).\n * @param {string} breakpoint The current breakpoint.\n * @return {number} The offset to scroll to.\n */\nfunction getNavigationalScrollTop(selector, breakpoint) {\n var contextElement = document.querySelector(selector);\n if (!contextElement) {\n return 0;\n }\n var contextTop = contextElement.getBoundingClientRect().top;\n var headerHeight = getStickyHeaderHeight(breakpoint);\n return contextTop + global.scrollY - headerHeight;\n}\n\n/**\n * Gets the height of the sticky header.\n *\n * @since 1.69.0\n * @since 1.98.0 Renamed from `getHeaderHeight()` to `getStickyHeaderHeight()`.\n *\n * @param {string} breakpoint The current breakpoint.\n * @return {number} The height of the sticky header.\n */\nfunction getStickyHeaderHeight(breakpoint) {\n var headerHeight = getStickyHeaderHeightWithoutNav(breakpoint);\n var navigation = document.querySelectorAll('.googlesitekit-navigation, .googlesitekit-entity-header');\n headerHeight += Array.from(navigation).reduce(function (height, el) {\n return height + el.offsetHeight;\n }, 0);\n return headerHeight;\n}\n\n/**\n * Returns the height of the sticky WordPress admin bar, if present.\n *\n * @since 1.98.0\n *\n * @param {string} breakpoint The current breakpoint.\n * @return {number} The height of the sticky WordPress admin bar, if present.\n */\nfunction getWordPressAdminBarHeight(breakpoint) {\n // WordPress admin bar is only sticky for breakpoints larger than BREAKPOINT_SMALL. If it's also not sticky then we can return a height of 0.\n var wpAdminBar = document.querySelector('#wpadminbar');\n if (wpAdminBar && breakpoint !== _hooks_useBreakpoint__WEBPACK_IMPORTED_MODULE_0__[\"BREAKPOINT_SMALL\"]) {\n return wpAdminBar.offsetHeight;\n }\n return 0;\n}\n\n/**\n * Returns the height of the sticky Site Kit header including the sticky WordPress admin bar when it's present.\n *\n * @since 1.98.0\n *\n * @param {string} breakpoint The current breakpoint.\n * @return {number} The height of the sticky Site Kit header including the sticky WordPress admin bar when it's present.\n */\nfunction getGoogleSiteKitHeaderHe
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/sum-object-list-value.js":
|
|||
|
|
/*!******************************************!*\
|
|||
|
|
!*** ./js/util/sum-object-list-value.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 sumObjectListValue; });\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 * Utility function sumObjectListValue.\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 * Returns the sum of a given fieldName in a list.\n *\n * @since 1.21.0\n *\n * @param {Array} list Array of objects or arrays.\n * @param {string} fieldName The path name to the field to be summed.\n * @return {number} The sum of all fields in the list.\n */\nfunction sumObjectListValue(list, fieldName) {\n return Object(lodash__WEBPACK_IMPORTED_MODULE_0__[\"sumBy\"])(list, fieldName) || 0;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3N1bS1vYmplY3QtbGlzdC12YWx1ZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvc3VtLW9iamVjdC1saXN0LXZhbHVlLmpzP2UyZDUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBVdGlsaXR5IGZ1bmN0aW9uIHN1bU9iamVjdExpc3RWYWx1ZS5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXB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0aCBuYW1lIHRvIHRoZSBmaWVsZCB0byBiZSBzdW1tZWQuXG4gKiBAcmV0dXJuIHtudW1iZXJ9IFRoZSBzdW0gb2YgYWxsIGZpZWxkcyBpbiB0aGUgbGlzdC5cbiAqL1xuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gc3VtT2JqZWN0TGlzdFZhbHVlKCBsaXN0LCBmaWVsZE5hbWUgKSB7XG5cdHJldHVybiBzdW1CeSggbGlzdCwgZmllbGROYW1lICkgfHwgMDtcbn1cbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./js/util/sum-object-list-value.js\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./js/util/tracking/constants.js":
|
|||
|
|
/*!***************************************!*\
|
|||
|
|
!*** ./js/util/tracking/constants.js ***!
|
|||
|
|
\***************************************/
|
|||
|
|
/*! exports provided: DATA_LAYER, SCRIPT_IDENTIFIER */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DATA_LAYER\", function() { return DATA_LAYER; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SCRIPT_IDENTIFIER\", function() { return SCRIPT_IDENTIFIER; });\n/**\n * Constants related to event tracking.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Data layer global used for internal/private Site Kit data.\n *\n * @since 1.8.0\n * @private\n */\nvar DATA_LAYER = '_googlesitekitDataLayer';\n\n/**\n * The `gtag` `<script>` identifier.\n *\n * @since 1.8.0\n * @private\n */\nvar SCRIPT_IDENTIFIER = 'data-googlesitekit-gtag';//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9qcy91dGlsL3RyYWNraW5nL2NvbnN0YW50cy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2pzL3V0aWwvdHJhY2tpbmcvY29uc3RhbnRzLmpzPzJkNjgiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDb25zdGFudHMgcmVsYXRlZCB0byBldmVudCB0cmFja2luZy5cbiAqXG4gKiBTaXRlIEtpdCBieSBHb29nbGUsIENvcHlyaWdodCAyMDIxIEdvb2dsZSBMTENcbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHBzOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5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DQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\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,eyJ2ZXJzaW9uIjozLCJmaW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8vZ2l0aHViLmNvbS9nb29nbGUvc2l0ZS1raXQtd3AvaXNzdWVzLzExODF9XG5cdCAqL1xuXHRyZXR1cm4gZnVuY3Rpb24gZGF0YUxheWVyUHVzaCgpIHtcblx0XHR0YXJnZXRbIERBVEFfTEFZRVIgXSA9IHRhcmdldFsgREFUQV9MQVlFUiBdIHx8IFtdO1xuXHRcdHRhcmdldFsgREFUQV9MQVlFUiBdLnB1c2goIGFyZ3VtZW50cyApO1xuXHR9O1xufVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\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
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/graphics/cta-graph-traffic.svg":
|
|||
|
|
/*!********************************************!*\
|
|||
|
|
!*** ./svg/graphics/cta-graph-traffic.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: \"M86.66 6.101a22.375 22.375 0 016.226-1.09l.215 7.871a14.544 14.544 0 00-4.046.709L86.66 6.1z\",\n fill: \"#DEDEDE\"\n});\nvar _ref2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M75.423 14.275a22.544 22.544 0 0110.57-7.945l2.628 7.41a14.655 14.655 0 00-6.871 5.164l-6.327-4.63z\",\n fill: \"#C6C6C6\"\n});\nvar _ref3 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M75.317 40.725a22.482 22.482 0 01-4.226-12.872 22.637 22.637 0 013.925-13l6.47 4.426a14.714 14.714 0 00-2.552 8.45c.035 3.01.995 5.932 2.747 8.367l-6.364 4.63z\",\n fill: \"#F1F1F1\"\n});\nvar _ref4 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M106.601 45.702a22.401 22.401 0 01-16.346 4.074 22.282 22.282 0 01-14.517-8.485l6.217-4.827a14.483 14.483 0 009.436 5.515 14.562 14.562 0 0010.625-2.648l4.585 6.371z\",\n fill: \"#959595\"\n});\nvar _ref5 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M93.59 5c4.673 0 9.223 1.466 13.013 4.194a22.369 22.369 0 018.129 11.018 22.624 22.624 0 01-7.567 25.067l-4.783-6.223a14.703 14.703 0 004.919-16.293 14.538 14.538 0 00-5.284-7.162 14.477 14.477 0 00-8.458-2.726L93.59 5z\",\n fill: \"#C7C7C7\"\n});\nvar _ref6 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"circle\", {\n cx: 83.5,\n cy: 56.899,\n r: 1.5,\n fill: \"#959595\"\n});\nvar _ref7 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"circle\", {\n cx: 90.5,\n cy: 56.899,\n r: 1.5,\n fill: \"#C7C7C7\"\n});\nvar _ref8 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"circle\", {\n cx: 97.5,\n cy: 56.899,\n r: 1.5,\n fill: \"#DEDEDE\"\n});\nvar _ref9 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"circle\", {\n cx: 104.5,\n cy: 56.899,\n r: 1.5,\n fill: \"#F1F1F1\"\n});\nvar _ref10 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n stroke: \"#ECE9F1\",\n strokeWidth: 0.937,\n strokeLinecap: \"round\",\n d: \"M.468 58.531h55.064\"\n});\nvar _ref11 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n stroke: \"#ECE9F1\",\n strokeWidth: 0.468,\n strokeLinecap: \"round\",\n d: \"M.234 44.765h55.532M.234 30.765h55.532M.234 16.766h55.532\"\n});\nvar _ref12 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n opacity: 0.08,\n d: \"M25.531 47.668c-4.138-1.288-5.95-4.746-9.87-5.24-4.053-.51-7.2 12.53-15.661 13.777V59h56V35.07c-2.25-.486-4.367-17.89-9.25-16.601-4.882 1.288-8.475 20.892-12.365 14.578-3.89-6.313-4.716 15.91-8.854 14.622z\",\n fill: \"url(#cta-graph-traffic_svg__paint0_linear_435_1677)\"\n});\nvar _ref13 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M2.766 1.116L.883 6.3h-.77L2.281.612h.496l-.011.504zM4.344 6.3L2.457 1.116 2.445.612h.496L5.117 6.3h-.773zm-.098-2.106v.618H1.051v-.618h3.195zM6.555.3v6h-.727v-6h.727zM8.5.3v6h-.727v-6H8.5zm5.73 5.023v-3.25h.727V6.3h-.691l-.036-.977zm.137-.89l.301-.008c0 .281-.03.541-.09.781a1.678 1.678 0 01-.281.617c-.13.175-.3.311-.512.41a1.845 1.845 0 01-.77.145c-.205 0-.394-.03-.566-.09a1.132 1.132 0 01-.437-.277 1.262 1.262 0 01-.285-.489 2.355 2.355 0 01-.098-.722V2.073h.723v2.735c0 .19.02
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/graphics/cta-most-popular-content.svg":
|
|||
|
|
/*!***************************************************!*\
|
|||
|
|
!*** ./svg/graphics/cta-most-popular-content.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: \"M96.91 4.813l1.34-4.5h1.305L97.575 6h-.86l.195-1.188zm-1.234-4.5l1.336 4.5L97.215 6h-.867L94.378.312h1.298zm5.527 1.46V6h-1.129V1.773h1.129zM100.004.672c0-.164.057-.3.172-.406a.648.648 0 01.461-.16c.19 0 .342.053.457.16a.526.526 0 01.176.406c0 .164-.059.3-.176.406a.644.644 0 01-.457.16.648.648 0 01-.461-.16.53.53 0 01-.172-.406zm4.074 5.406c-.328 0-.622-.052-.883-.156a1.95 1.95 0 01-.664-.442 1.983 1.983 0 01-.414-.652 2.204 2.204 0 01-.144-.797v-.156c0-.32.045-.613.136-.879.092-.266.222-.496.391-.691.172-.196.38-.345.625-.45.245-.106.521-.16.828-.16.3 0 .565.05.797.149.232.099.426.24.582.422.159.182.279.4.359.656.081.252.121.534.121.844v.468h-3.359v-.75h2.254v-.086a.98.98 0 00-.086-.418.665.665 0 00-.25-.296.774.774 0 00-.43-.11.717.717 0 00-.382.098.756.756 0 00-.262.273 1.496 1.496 0 00-.149.414 2.656 2.656 0 00-.046.516v.156c0 .17.023.326.07.469.049.143.118.267.207.371a.94.94 0 00.328.242c.13.058.277.086.441.086.204 0 .392-.039.567-.117a1.23 1.23 0 00.457-.363l.547.593a1.67 1.67 0 01-.364.368 1.941 1.941 0 01-.546.289c-.214.073-.457.11-.731.11zm3.582-1.172l.879-3.133h.715l-.231 1.23L108.145 6h-.598l.113-1.094zm-.445-3.133l.629 3.13.058 1.097h-.703l-1.07-4.227h1.086zm2.844 3.079l.613-3.079h1.09L110.691 6h-.699l.067-1.148zm-.707-3.079l.875 3.11.121 1.117h-.602l-.879-2.992-.222-1.235h.707zm5.261 3.059a.364.364 0 00-.07-.219.616.616 0 00-.262-.18 2.555 2.555 0 00-.543-.156 4.25 4.25 0 01-.597-.175 2.052 2.052 0 01-.477-.262 1.128 1.128 0 01-.312-.36.994.994 0 01-.114-.48c0-.177.038-.344.114-.5.078-.156.188-.294.332-.414.145-.122.323-.218.531-.285.211-.07.448-.106.711-.106.367 0 .682.059.945.176.266.117.469.279.609.484.144.204.215.435.215.696h-1.125a.6.6 0 00-.07-.293.465.465 0 00-.211-.207.753.753 0 00-.367-.078.734.734 0 00-.324.066.495.495 0 00-.211.172.413.413 0 00-.032.41c.029.05.075.095.137.137.063.041.143.08.242.117.102.034.227.065.375.094.305.062.577.144.817.246.239.099.429.234.57.406.141.17.211.392.211.668 0 .188-.042.36-.125.516a1.242 1.242 0 01-.359.41 1.83 1.83 0 01-.563.27 2.624 2.624 0 01-.73.093c-.394 0-.727-.07-1-.21a1.59 1.59 0 01-.618-.536 1.245 1.245 0 01-.207-.672h1.067a.622.622 0 00.117.371.645.645 0 00.285.203c.117.042.244.063.379.063a.97.97 0 00.363-.059.51.51 0 00.219-.164.397.397 0 00.078-.242z\",\n fill: \"#C7C7C7\"\n});\nvar _ref2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"rect\", {\n x: 103,\n y: 18.6,\n width: 13.3,\n height: 4.2,\n rx: 2.1,\n fill: \"#C7C7C7\"\n});\nvar _ref3 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"rect\", {\n x: 107,\n y: 33,\n width: 9.1,\n height: 4.2,\n rx: 2.1,\n fill: \"#C7C7C7\"\n});\nvar _ref4 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"rect\", {\n x: 107,\n y: 47,\n width: 9.1,\n height: 4.2,\n rx: 2.1,\n fill: \"#C7C7C7\"\n});\nvar _ref5 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"rect\", {\n x: 110,\n y: 61,\n width: 5.6,\n height: 4.2,\n rx: 2.1,\n fill: \"#C7C7C7\"\n});\nvar _ref6 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M2.848 17.981v5.72h-.723v-4.817l-1.457.531v-.652l2.066-.782h.114zm1.351 19.125v.594H.477v-.52l1.863-2.074c.229-.255.406-.47.531-.648.128-.18.216-.34.266-.48a1.27 1.27 0 00.078-.438c0-.188-.04-.357-.117-.508a.879.879 0 00-.336-.367
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/graphics/logo-g.svg":
|
|||
|
|
/*!*********************************!*\
|
|||
|
|
!*** ./svg/graphics/logo-g.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\"](\"path\", {\n d: \"M2.253 12.252l7.399 5.658A13.055 13.055 0 009 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22.02 22.02 0 010 22c0-3.506.81-6.814 2.253-9.748z\",\n fill: \"#FBBC05\"\n}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M9.652 17.91l-7.4-5.658A21.935 21.935 0 0122 0c5.6 0 10.6 2.1 14.5 5.5l-6.4 6.4C27.9 10.1 25.1 9 22 9c-5.77 0-10.64 3.725-12.348 8.91z\",\n fill: \"#EA4335\"\n}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M2.25 31.742l7.396-5.67A12.975 12.975 0 0022 35c6.1 0 10.7-3.1 11.8-8.5H22V18h20.5c.3 1.3.5 2.7.5 4 0 14-10 22-21 22A21.935 21.935 0 012.25 31.742z\",\n fill: \"#34A853\"\n}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M36.34 38.52l-7.025-5.437c2.297-1.45 3.895-3.685 4.485-6.583H22V18h20.5c.3 1.3.5 2.7.5 4 0 7.17-2.623 12.767-6.66 16.52z\",\n fill: \"#4285F4\"\n}));\nfunction SvgLogoG(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 43 44\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgLogoG);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvZ3JhcGhpY3MvbG9nby1nLnN2Zy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3N2Zy9ncmFwaGljcy9sb2dvLWcuc3ZnP2RlNTkiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX2V4dGVuZHMoKSB7IF9leHRlbmRzID0gT2JqZWN0LmFzc2lnbiB8fCBmdW5jdGlvbiAodGFyZ2V0KSB7IGZvciAodmFyIGkgPSAxOyBpIDwgYXJnd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1JlYWN0LmNyZWF0ZUVsZW1lbnQoXCJwYXRoXCIsIHtcbiAgZDogXCJNMi4yNSAzMS43NDJsNy4zOTYtNS42N0ExMi45NzUgMTIuOTc1IDAgMDAyMiAzNWM2LjEgMCAxMC43LTMuMSAxMS44LTguNUgyMlYxOGgyMC41Yy4zIDEuMy41IDIuNy41IDQgMCAxNC0xMCAyMi0yMSAyMkEyMS45MzUgMjEuOTM1IDAgMDEyLjI1IDMxLjc0MnpcIixcbiAgZmlsbDogXCIjMzRBODUzXCJcbn0pLCAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInBhdGhcIiwge1xuICBkOiBcIk0zNi4zNCAzOC41MmwtNy4wMjUtNS40MzdjMi4yOTctMS40NSAzLjg5NS0zLjY4NSA0LjQ4NS02LjU4M0gyMlYxOGgyMC41Yy4zIDEuMy41IDIuNy41IDQgMCA3LjE3LTIuNjIzIDEyLjc2Ny02LjY2IDE2LjUyelwiLFxuICBmaWxsOiBcIiM0Mjg1RjRcIlxufSkpO1xuZnVuY3Rpb24gU3ZnTG9nb0cocHJvc
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./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/YTI2MiJdLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBfZXh0ZW5kcygpIHsgX2V4dGVuZHMgPSBPYmplY3QuYXNzaWduIHx8IGZ1bmN0aW9uICh0YXJnZXQpIHsgZm9yICh2YXIgaSA9IDE7IGkgPCBhcmd1bWVudHMubGVuZ3RoOyBpKyspIHsgdmFyIHNvdXJjZSA9IGFyZ3VtZW50c1tpXTsgZm9yICh2YXIga2V5IGluIHNvdXJjZSkgeyBpZi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AwIDEzIDEzXCJcbiAgfSwgcHJvcHMpLCBfcmVmKTtcbn1cbmV4cG9ydCBkZWZhdWx0IFN2Z0Fycm93SW52ZXJzZTsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvYXJyb3cuc3ZnLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3ZnL2ljb25zL2Fycm93LnN2Zz8yODEwIl0sInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF9leHRlbmRzKCkgeyBfZXh0ZW5kcyA9IE9iamVjdC5hc3NpZ24gfHwgZnVuY3Rpb24gKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldOyBmb3IgKHZhciBrZXkgaW4gc291cmNlKSB7IGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoc291cmNlLCBrZXkpKSB7IHRhcmdldFtrZXldID0gc291cmNlW2tleV07IH0gfSB9IHJldHVybiB0YXJnZXQ7IH07IHJldHVybiBfZXh0ZW5kcy5hcHBseSh0aGlzLCBhcmd1bWVudHMpOyB9XG5pbXBvcnQgKiBhcyBSZWFjdCBmcm9tIFwicmVhY3RcIjtcbnZhciB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BQ0EiLCJzb3VyY2VSb290IjoiIn0=\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/MTY0YSJdLCJzb3VyY2VzQ29udGVudCI6WyJm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/icons/back.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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvY2xvc2Uuc3ZnLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3ZnL2ljb25zL2Nsb3NlLnN2Zz9mM2EwIl0sInNvdXJjZXNDb250ZW50IjpbImZ1b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0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./svg/icons/close.svg\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/icons/error.svg":
|
|||
|
|
/*!*****************************!*\
|
|||
|
|
!*** ./svg/icons/error.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: \"M3.332 24.75h21.335c2.182 0 3.542-2.366 2.451-4.25L16.451 2.07C15.36.184 12.64.184 11.549 2.07L.882 20.5c-1.091 1.884.269 4.25 2.45 4.25zM14 14.833a1.42 1.42 0 01-1.417-1.416v-2.834c0-.779.638-1.416 1.417-1.416.78 0 1.417.637 1.417 1.416v2.834A1.42 1.42 0 0114 14.833zm1.417 5.667h-2.834v-2.833h2.834V20.5z\",\n fill: \"currentColor\",\n fillRule: \"nonzero\"\n});\nfunction SvgError(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 28 25\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgError);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvZXJyb3Iuc3ZnLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3ZnL2ljb25zL2Vycm9yLnN2Zz80YTgyIl0sInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF9leHRlbmRzKCkgeyBfZXh0ZW5kcyA9IE9iamVjdC5hc3NpZ24gfHwgZnVuY3Rpb24gKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldOyBmb3IgKHZhciBrZXkgaW4gc291cmNlKSB7IGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoc291cmNlLCBrZXkpKSB7IHRhcmdldFtrZXldID0gc291cmNlW2tleV07IH0gfSB9IHJldHVybiB0YXJnZXQ7IH07IHJldHVybiBfZXh0ZW5kcy5hcHBseSh0aGlzLCBhcmd1bWVudHMpOyB9XG5pbXBvcnQgKiBhcyBSZWFjdCBmcm9tIFwicmVhY3RcIjtcbnZhciBfcmVmID0gLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoXCJwYXRoXCIsIHtcbiAgZDogXCJNMy4zMzIgMjQuNzVoMjEuMzM1YzIuMTgyIDAgMy41NDItMi4zNjYgMi40NTEtNC4yNUwxNi40NTEgMi4wN0MxNS4zNi4xODQgMTIuNjQuMTg0IDExLjU0OSAyLjA3TC44ODIgMjAuNWMtMS4wOTEgMS44ODQuMjY5IDQuMjUgMi40NSA0LjI1ek0xNCAxNC44MzNhMS40MiAxLjQyIDAgMDEtMS40MTctMS40MTZ2LTIuODM0YzAtLjc3OS42MzgtMS40MTYgMS40MTctMS40MTYuNzggMCAxLjQxNy42MzcgMS40MTcgMS40MTZ2Mi44MzRBMS40MiAxLjQyIDAgMDExNCAxNC44MzN6bTEuNDE3IDUuNjY3aC0yLjgzNHYtMi44MzNoMi44MzRWMjAuNXpcIixcbiAgZmlsbDogXCJjdXJyZW50Q29sb3JcIixcbiAgZmlsbFJ1bGU6IFwibm9uemVyb1wiXG59KTtcbmZ1bmN0aW9uIFN2Z0Vycm9yKHByb3BzKSB7XG4gIHJldHVybiAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInN2Z1wiLCBfZXh0ZW5kcyh7XG4gICAgdmlld0JveDogXCIwIDAgMjggMjVcIlxuICB9LCBwcm9wcyksIF9yZWYpO1xufVxuZXhwb3J0IGRlZmF1bHQgU3ZnRXJyb3I7Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./svg/icons/error.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-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/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/tick.svg":
|
|||
|
|
/*!****************************!*\
|
|||
|
|
!*** ./svg/icons/tick.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 3.838L4.106 7 10 1\",\n stroke: \"currentColor\",\n strokeWidth: 1.5\n});\nfunction SvgTick(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 11 9\",\n fill: \"none\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgTick);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvdGljay5zdmcuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zdmcvaWNvbnMvdGljay5zdmc/NzcyZiJdLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBfZXh0ZW5kcygpIHsgX2V4dGVuZHMgPSBPYmplY3QuYXNzaWduIHx8IGZ1bmN0aW9uICh0YXJnZXQpIHsgZm9yICh2YXIgaSA9IDE7IGkgPCBhcmd1bWVudHMubGVuZ3RoOyBpKyspIHsgdmFyIHNvdXJjZSA9IGFyZ3VtZW50c1tpXTsgZm9yICh2YXIga2V5IGluIHNvdXJjZSkgeyBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKHNvdXJjZSwga2V5KSkgeyB0YXJnZXRba2V5XSA9IHNvdXJjZVtrZXldOyB9IH0gfSByZXR1cm4gdGFyZ2V0OyB9OyByZXR1cm4gX2V4dGVuZHMuYXBwbHkodGhpcywgYXJndW1lbnRzKTsgfVxuaW1wb3J0ICogYXMgUmVhY3QgZnJvbSBcInJlYWN0XCI7XG52YXIgX3JlZiA9IC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KFwicGF0aFwiLCB7XG4gIGQ6IFwiTTEgMy44MzhMNC4xMDYgNyAxMCAxXCIsXG4gIHN0cm9rZTogXCJjdXJyZW50Q29sb3JcIixcbiAgc3Ryb2tlV2lkdGg6IDEuNVxufSk7XG5mdW5jdGlvbiBTdmdUaWNrKHByb3BzKSB7XG4gIHJldHVybiAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudChcInN2Z1wiLCBfZXh0ZW5kcyh7XG4gICAgdmlld0JveDogXCIwIDAgMTEgOVwiLFxuICAgIGZpbGw6IFwibm9uZVwiXG4gIH0sIHByb3BzKSwgX3JlZik7XG59XG5leHBvcnQgZGVmYXVsdCBTdmdUaWNrOyJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./svg/icons/tick.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");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/icons/warning-v2.svg":
|
|||
|
|
/*!**********************************!*\
|
|||
|
|
!*** ./svg/icons/warning-v2.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 19h22L11 0 0 19zm12-3h-2v-2h2v2zm0-4h-2V8h2v4z\",\n fill: \"currentColor\"\n});\nfunction SvgWarningV2(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n viewBox: \"0 0 22 19\"\n }, props), _ref);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgWarningV2);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvd2FybmluZy12Mi5zdmcuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zdmcvaWNvbnMvd2FybmluZy12Mi5zdmc/M2I2YyJdLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBfZXh0ZW5kcygpIHsgX2V4dGVuZHMgPSBPYmplY3QuYXNzaWduIHx8IGZ1bmN0aW9uICh0YXJnZXQpIHsgZm9yICh2YXIgaSA9IDE7IGkgPCBhcmd1bWVudHMubGVuZ3RoOyBpKyspIHsgdmFyIHNvdXJjZSA9IGFyZ3VtZW50c1tpXTsgZm9yICh2YXIga2V5IGluIHNvdXJjZSkgeyBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKHNvdXJjZSwga2V5KSkgeyB0YXJnZXRba2V5XSA9IHNvdXJjZVtrZXldOyB9IH0gfSByZXR1cm4gdGFyZ2V0OyB9OyByZXR1cm4gX2V4dGVuZHMuYXBwbHkodGhpcywgYXJndW1lbnRzKTsgfVxuaW1wb3J0ICogYXMgUmVhY3QgZnJvbSBcInJlYWN0XCI7XG52YXIgX3JlZiA9IC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KFwicGF0aFwiLCB7XG4gIGQ6IFwiTTAgMTloMjJMMTEgMCAwIDE5em0xMi0zaC0ydi0yaDJ2MnptMC00aC0yVjhoMnY0elwiLFxuICBmaWxsOiBcImN1cnJlbnRDb2xvclwiXG59KTtcbmZ1bmN0aW9uIFN2Z1dhcm5pbmdWMihwcm9wcykge1xuICByZXR1cm4gLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoXCJzdmdcIiwgX2V4dGVuZHMoe1xuICAgIHZpZXdCb3g6IFwiMCAwIDIyIDE5XCJcbiAgfSwgcHJvcHMpLCBfcmVmKTtcbn1cbmV4cG9ydCBkZWZhdWx0IFN2Z1dhcm5pbmdWMjsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./svg/icons/warning-v2.svg\n");
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ "./svg/icons/warning.svg":
|
|||
|
|
/*!*******************************!*\
|
|||
|
|
!*** ./svg/icons/warning.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 0h24v24H0z\",\n fill: \"none\"\n});\nvar _ref2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z\"\n});\nfunction SvgWarning(props) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"svg\", _extends({\n fill: \"currentColor\",\n viewBox: \"0 0 24 24\",\n \"aria-labelledby\": \"warning-title warning-desc\"\n }, props), _ref, _ref2);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (SvgWarning);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zdmcvaWNvbnMvd2FybmluZy5zdmcuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zdmcvaWNvbnMvd2FybmluZy5zdmc/YjZiMiJdLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBfZXh0ZW5kcygpIHsgX2V4dGVuZHMgPSBPYmplY3QuYXNzaWduIHx8IGZ1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ZiwgX3JlZjIpO1xufVxuZXhwb3J0IGRlZmF1bHQgU3ZnV2FybmluZzsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./svg/icons/warning.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");
|
|||
|
|
|
|||
|
|
/***/ })
|
|||
|
|
|
|||
|
|
},[["./js/googlesitekit-wp-dashboard.js","runtime","googlesitekit-vendor"]]]);
|