From e5f72ae2e2796cbea7a1f6c215d2f738f4957440 Mon Sep 17 00:00:00 2001 From: Viktor Date: Tue, 8 Oct 2024 21:13:25 +0300 Subject: [PATCH] Fix. Settings. React components are translate-ready now. (#426) * Fix. Settings. React components refactored to the functional-based components. * Fix. Settings. React components is translate-ready now. * Fix. Code. React bundle rebuild. --- inc/spbc-admin.php | 1 + js/spbc-react-bundle.js | 299 ++++++++++++++++++++++- js/src/react/components/SpbctAboutCT.js | 80 +++--- js/src/react/components/SpbctPage.js | 264 ++++++++++---------- js/src/react/components/SpbctPageTabs.js | 216 ++++++++-------- js/src/react/index.js | 27 +- package.json | 6 +- 7 files changed, 595 insertions(+), 298 deletions(-) diff --git a/inc/spbc-admin.php b/inc/spbc-admin.php index edd544123..b2d140219 100644 --- a/inc/spbc-admin.php +++ b/inc/spbc-admin.php @@ -416,6 +416,7 @@ function spbc_enqueue_scripts($hook) wp_enqueue_script('spbc-common-js', SPBC_PATH . '/js/spbc-common.min.js', array('jquery'), SPBC_VERSION, false); wp_enqueue_script('spbc-admin-js', SPBC_PATH . '/js/spbc-admin.min.js', array('jquery'), SPBC_VERSION, false); wp_enqueue_script('spbc-react-bundle-js', SPBC_PATH . '/js/spbc-react-bundle.js', array('wp-i18n'), SPBC_VERSION, ['in_footer']); + wp_set_script_translations('spbc-react-bundle-js', 'security-malware-firewall'); $vulnerability_show_install = ( isset($spbc->settings['vulnerability_check__test_before_install']) && diff --git a/js/spbc-react-bundle.js b/js/spbc-react-bundle.js index c848a22c5..ea6f45afb 100644 --- a/js/spbc-react-bundle.js +++ b/js/spbc-react-bundle.js @@ -7,7 +7,6 @@ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). */ /******/ (() => { // webpackBootstrap -/******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "./js/src/react/components/SpbctAboutCT.js": @@ -16,7 +15,8 @@ \*************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\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__);\n\nclass SpbctAboutCT extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {\n constructor(props) {\n super(props);\n this.state = {\n date: new Date()\n };\n }\n render() {\n const data = this.props.data;\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__about_block\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"label\", {\n htmlFor: \"spbc_page_header_about_block\",\n className: \"spbc_page_header_info__block_label\"\n }, \"About CleanTalk\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n id: \"spbc_page_header_about_block\",\n className: \"spbc_page_header_info__block_body\",\n style: {\n height: \"100%\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__about_block__divider\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.supportLink\n }\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.homepage\n }\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.malwareCleaning\n }\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.gdprComplianceLink\n }\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__about_block__divider\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.trademark\n }\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__about_block__divider\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.feedback\n }\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__about_block__divider\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.premium\n }\n }))));\n }\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SpbctAboutCT);\n\n//# sourceURL=webpack:///./js/src/react/components/SpbctAboutCT.js?"); +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SpbctAboutCT: () => (/* binding */ SpbctAboutCT)\n/* harmony export */ });\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__);\n/* harmony import */ var _wordpress_react_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/react-i18n */ \"./node_modules/@wordpress/react-i18n/build-module/index.js\");\n\n\nfunction SpbctAboutCT(props) {\n const {\n __\n } = (0,_wordpress_react_i18n__WEBPACK_IMPORTED_MODULE_1__.useI18n)();\n\n // @ToDO Need to set state 'data'?\n //this.state = {date: new Date()};\n const data = props.data;\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__about_block\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"label\", {\n htmlFor: \"spbc_page_header_about_block\",\n className: \"spbc_page_header_info__block_label\"\n }, __('About CleanTalk', 'security-malware-firewall')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n id: \"spbc_page_header_about_block\",\n className: \"spbc_page_header_info__block_body\",\n style: {\n height: \"100%\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__about_block__divider\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.supportLink\n }\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.homepage\n }\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.malwareCleaning\n }\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.gdprComplianceLink\n }\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__about_block__divider\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.trademark\n }\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__about_block__divider\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.feedback\n }\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__about_block__divider\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.premium\n }\n }))));\n}\n\n//# sourceURL=webpack:///./js/src/react/components/SpbctAboutCT.js?"); /***/ }), @@ -26,7 +26,8 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac \**********************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\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__);\n/* harmony import */ var _SpbctAboutCT__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SpbctAboutCT */ \"./js/src/react/components/SpbctAboutCT.js\");\n\n\nclass SpbctPage extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {\n constructor(props) {\n super(props);\n this.state = {\n date: new Date()\n };\n }\n componentDidMount() {\n jQuery('#spbc_gdpr_open_modal').on('click', function () {\n jQuery('#gdpr_dialog').dialog({\n modal: true,\n show: true,\n position: {\n my: \"center\",\n at: \"center\",\n of: window\n },\n width: +(jQuery('#wpbody').width() / 100 * 70),\n // 70% of #wpbody\n height: 'auto',\n title: 'GDPR compliance',\n draggable: false,\n resizable: false,\n closeText: \"Close\"\n });\n });\n jQuery('#wpfooter').hide();\n\n // Sync button\n jQuery('#spbc_button__sync').on('click', function () {\n jQuery('#spbc_button__sync_regular').hide();\n jQuery('#spbc_button__sync_action').show();\n spbcSendAJAXRequest({\n action: 'spbc_sync'\n }, {\n timeout: 25000,\n button: document.getElementById('spbc_button__sync'),\n spinner: [jQuery('#spbc_button__sync .spbc_preloader_button')],\n callback: function (result, data, params, obj) {\n jQuery('#spbc_button__sync .spbc_success').show(300);\n setTimeout(function () {\n jQuery('#spbc_button__sync .spbc_success').hide(300);\n }, 2000);\n jQuery('#spbc_button__sync_regular').show();\n jQuery('#spbc_button__sync_action').hide();\n if (result.reload) {\n spbcSwitchTab(jQuery('.spbc_tab_nav-scanner')[0]);\n document.location.reload();\n }\n }\n });\n });\n if (spbcSettings.key_changed) {\n jQuery('#spbc_button__sync').click();\n }\n }\n render() {\n const data = this.props.data;\n let goToCleanTalk;\n if (data.goToCleanTalkLink !== '') {\n goToCleanTalk = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n id: \"goToCleanTalk\",\n className: \"spbc-div-2 spbc_page_buttons_header\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"a\", {\n id: \"goToCleanTalkLink\",\n href: data.goToCleanTalkLink,\n className: \"spbc_manual_link spbc_page_buttons_links_basic_align\",\n target: \"_blank\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_buttons_links_basic_align\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"18\",\n height: \"18\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_2972_159)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M10.1669 7.69043H9.92542V5.16602C9.92542 4.81006 9.63684 4.52148 9.28089 4.52148C8.92494 4.52148 8.63636 4.81006 8.63636 5.16602V7.69043H7.34713V5.59575C7.34713 5.23979 7.05855 4.95121 6.70259 4.95121C6.34664 4.95121 6.05806 5.23979 6.05806 5.59575V7.69043H4.76883V6.45516C4.76883 6.09921 4.48025 5.81063 4.1243 5.81063C3.76834 5.81063 3.47977 6.09921 3.47977 6.45516V7.69043H3.23828C2.88233 7.69043 2.59375 7.97901 2.59375 8.33496C2.59375 8.69091 2.88233 8.97949 3.23828 8.97949H10.1669C10.5229 8.97949 10.8114 8.69091 10.8114 8.33496C10.8114 7.97901 10.5229 7.69043 10.1669 7.69043Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M7.15888 10.2695H3.23828C2.88233 10.2695 2.59375 10.5581 2.59375 10.9141C2.59375 11.27 2.88233 11.5586 3.23828 11.5586H7.15892C7.51487 11.5586 7.80345 11.27 7.80345 10.9141C7.80345 10.5581 7.51483 10.2695 7.15888 10.2695Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M22 1.68164C22 1.32569 21.7114 1.03711 21.3555 1.03711H0.644531C0.288578 1.03711 0 1.32569 0 1.68164V17.3808C0 17.7367 0.288578 18.0253 0.644531 18.0253H7.63224H14.3678H21.3555C21.7114 18.0253 22 17.7367 22 17.3808V1.68164ZM18.0461 15.9651L17.1296 16.5057L16.2131 15.9651C14.5561 14.9876 13.5266 13.1852 13.5266 11.2613V9.26421C14.26 9.0968 14.9079 8.6492 15.323 8.01566H18.9362C19.3471 8.64288 19.9864 9.08748 20.7109 9.25871V11.7362C20.5571 13.4779 19.5659 15.0685 18.0461 15.9651ZM1.28906 2.32617H20.7109V7.90394C20.359 7.7453 20.0664 7.4639 19.8993 7.10129C19.7939 6.87295 19.5654 6.72664 19.3139 6.72664H14.9453C14.6938 6.72664 14.4653 6.87291 14.36 7.10129C14.0948 7.6763 13.5147 8.04785 12.8822 8.04785C12.5262 8.04785 12.2376 8.33643 12.2376 8.69238V11.2613C12.2376 12.1256 12.4065 12.9698 12.7188 13.7527H1.28906V2.32617ZM1.28906 15.0418H13.4013C13.8409 15.6925 14.3938 16.2686 15.041 16.7363H1.28906V15.0418ZM19.2183 16.7363C19.7954 16.3193 20.2973 15.8161 20.7109 15.2507V16.7363H19.2183Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M18.3438 10.5598L16.8519 12.0518L16.3464 11.5464C16.0947 11.2947 15.6866 11.2947 15.4349 11.5464C15.1832 11.798 15.1832 12.2061 15.4349 12.4579L16.3961 13.4191C16.517 13.5399 16.6809 13.6079 16.8518 13.6079C17.0228 13.6079 17.1867 13.54 17.3075 13.4191L19.2553 11.4713C19.507 11.2197 19.507 10.8116 19.2553 10.5598C19.0036 10.3082 18.5955 10.3082 18.3438 10.5598Z\",\n fill: \"#026E88\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_2972_159\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\"\n }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", null, data.goToCleanTalkText)));\n }\n let support;\n if (data.support2Link !== '') {\n support = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc-div-2 spbc_page_buttons_header\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"a\", {\n href: data.support2Link,\n className: \"spbc_manual_link spbc_page_buttons_links_basic_align\",\n target: \"_blank\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_buttons_links_basic_align\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"18\",\n height: \"18\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_2972_165)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"mask\", {\n id: \"mask0_2972_165\",\n style: {\n maskType: \"luminance\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"0\",\n y: \"0\",\n width: \"22\",\n height: \"23\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M0 0.00195503H22V22.002H0V0.00195503Z\",\n fill: \"white\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n mask: \"url(#mask0_2972_165)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M8.54492 16.1564C9.13342 19.1218 11.7492 21.3574 14.8875 21.3574C16.1852 21.3574 17.3933 20.975 18.4059 20.317L21.0435 21.0465L20.3139 18.409C20.9719 17.3963 21.3543 16.1882 21.3543 14.8906C21.3543 11.7523 19.1187 9.13651 16.1533 8.54801\",\n stroke: \"#026E88\",\n strokeWidth: \"1.26953\",\n strokeMiterlimit: \"10\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M8.40039 0.646486C4.11696 0.646486 0.644531 4.11892 0.644531 8.40234C0.644531 9.93796 1.09093 11.3693 1.86085 12.5738L0.95541 15.8473L4.22894 14.9419C5.43348 15.7118 6.86477 16.1582 8.40039 16.1582C12.6838 16.1582 16.1562 12.6858 16.1562 8.40234C16.1562 4.11892 12.6838 0.646486 8.40039 0.646486Z\",\n stroke: \"#026E88\",\n strokeWidth: \"1.26953\",\n strokeMiterlimit: \"10\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M9.04492 12.9355H7.75586V11.6465H9.04492V12.9355Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M6.46484 6.44727C6.46484 5.37936 7.33054 4.51367 8.39844 4.51367C9.46634 4.51367 10.332 5.37936 10.332 6.44727C10.332 7.0123 10.0896 7.52067 9.7031 7.87417L8.39844 9.06836V10.3574\",\n stroke: \"#026E88\",\n strokeWidth: \"1.26953\",\n strokeMiterlimit: \"10\"\n }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_2972_165\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\"\n }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", null, data.support2Text)));\n }\n let sync;\n if (data.sync !== '') {\n sync = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc-div-2 spbc_page_buttons_header\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"button\", {\n type: \"button\",\n className: \"spbc_manual_link spbc_page_buttons_links_basic_align\",\n id: \"spbc_button__sync\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"18\",\n height: \"18\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_2972_179)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M16.5 21.9991C16.4083 21.9991 16.3167 21.9808 16.2305 21.9441C16.0178 21.8534 11 19.668 11 15.1736V11.4905C11 11.1962 11.187 10.935 11.4666 10.8396L16.2791 9.20245C16.4221 9.15387 16.5779 9.15387 16.7209 9.20245L21.5334 10.8396C21.813 10.935 22 11.1962 22 11.4905V15.1736C22 19.668 16.9822 21.8534 16.7695 21.945C16.6833 21.9808 16.5917 21.9991 16.5 21.9991ZM12.375 11.9827V15.1727C12.375 18.228 15.543 20.065 16.5 20.549C17.457 20.065 20.625 18.228 20.625 15.1727V11.9827L16.5 10.5793L12.375 11.9827Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M16.2706 17.8756C16.0891 17.8756 15.9131 17.8041 15.7848 17.6739L13.9514 15.8406C13.6829 15.572 13.6829 15.1366 13.9514 14.868C14.22 14.5994 14.6554 14.5994 14.924 14.868L16.1973 16.1413L18.4706 13.1089C18.6961 12.8055 19.1288 12.7432 19.4331 12.9723C19.7365 13.1997 19.7979 13.6305 19.5697 13.9348L16.8197 17.6015C16.7005 17.761 16.5181 17.86 16.3183 17.8747C16.3027 17.8747 16.2871 17.8756 16.2706 17.8756Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M9.7075 19.25H2.52083C1.13025 19.25 0 18.1198 0 16.7292V2.52083C0 1.13025 1.13025 0 2.52083 0H13.0625C14.4531 0 15.5833 1.13025 15.5833 2.52083V7.49833C15.5833 7.87783 15.2753 8.18583 14.8958 8.18583C14.5163 8.18583 14.2083 7.87783 14.2083 7.49833V2.52083C14.2083 1.88925 13.6941 1.375 13.0625 1.375H2.52083C1.88925 1.375 1.375 1.88925 1.375 2.52083V16.7292C1.375 17.3608 1.88925 17.875 2.52083 17.875H9.7075C10.087 17.875 10.395 18.183 10.395 18.5625C10.395 18.942 10.087 19.25 9.7075 19.25Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M12.1458 8.70898H3.4375C3.058 8.70898 2.75 8.40098 2.75 8.02148C2.75 7.64198 3.058 7.33398 3.4375 7.33398H12.1458C12.5253 7.33398 12.8333 7.64198 12.8333 8.02148C12.8333 8.40098 12.5253 8.70898 12.1458 8.70898Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M8.47917 12.375H3.4375C3.058 12.375 2.75 12.067 2.75 11.6875C2.75 11.308 3.058 11 3.4375 11H8.47917C8.85867 11 9.16667 11.308 9.16667 11.6875C9.16667 12.067 8.85867 12.375 8.47917 12.375Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M7.5625 5.04102H3.4375C3.058 5.04102 2.75 4.73302 2.75 4.35352C2.75 3.97402 3.058 3.66602 3.4375 3.66602H7.5625C7.942 3.66602 8.25 3.97402 8.25 4.35352C8.25 4.73302 7.942 5.04102 7.5625 5.04102Z\",\n fill: \"#026E88\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_2972_179\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\"\n })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n id: \"spbc_button__sync_regular\"\n }, data.sync), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n className: \"--hide\",\n id: \"spbc_button__sync_action\",\n style: {\n paddingLeft: \"18px\"\n }\n }, data.syncProgress), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"img\", {\n style: {\n marginLeft: \"10px\",\n marginTop: \"1px\"\n },\n className: \"spbc_preloader_button\",\n src: data.syncUrl\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"img\", {\n style: {\n marginLeft: \"10px\"\n },\n className: \"spbc_success --hide\",\n src: data.syncUrlProgress\n })));\n }\n let spbcErrors = '';\n if (data.spbcErrors) {\n spbcErrors = data.spbcErrors;\n spbcErrors = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__error_block\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"label\", {\n htmlFor: \"spbc_page_header_info__error_block\",\n className: \"spbc_page_header_info__block_label\"\n }, \"Errors\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n id: \"spbc_page_header_info__error_block\",\n className: \"spbc_page_header_info__block_body\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"error\",\n style: {\n margin: \"5px 0 5px\"\n },\n dangerouslySetInnerHTML: {\n __html: spbcErrors\n }\n })));\n }\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"wrap\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n style: {\n display: \"flex\",\n alignItems: \"center\",\n height: \"40px\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", null, data.brandname)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info_common_wrapper\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info_left_column\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__state_block\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"label\", {\n htmlFor: \"spbc_page_header_info_block\",\n className: \"spbc_page_header_info__block_label\"\n }, \"State info\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n id: \"spbc_page_header_info_block\",\n className: \"spbc_page_header_info__block_body\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.adminsOnlineCount\n }\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\"\n }, data.nextScanLaunchTime))), spbcErrors), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info_right_column spbc_page_desktop_info__about_block\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_SpbctAboutCT__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n data: data\n }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_buttons_wrapper\"\n }, goToCleanTalk, support, sync), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_hide\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.gdprModalWindow\n }\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.twoFactorAuth\n }\n })));\n }\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SpbctPage);\n\n//# sourceURL=webpack:///./js/src/react/components/SpbctPage.js?"); +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SpbctPage: () => (/* binding */ SpbctPage)\n/* harmony export */ });\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__);\n/* harmony import */ var _wordpress_react_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/react-i18n */ \"./node_modules/@wordpress/react-i18n/build-module/index.js\");\n/* harmony import */ var _SpbctAboutCT__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SpbctAboutCT */ \"./js/src/react/components/SpbctAboutCT.js\");\n\n\n\nfunction SpbctPage(props) {\n const {\n __\n } = (0,_wordpress_react_i18n__WEBPACK_IMPORTED_MODULE_2__.useI18n)();\n\n // @ToDO Need to set state 'data'?\n //this.state = {date: new Date()};\n\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n jQuery('#spbc_gdpr_open_modal').on('click', function () {\n jQuery('#gdpr_dialog').dialog({\n modal: true,\n show: true,\n position: {\n my: \"center\",\n at: \"center\",\n of: window\n },\n width: +(jQuery('#wpbody').width() / 100 * 70),\n // 70% of #wpbody\n height: 'auto',\n title: 'GDPR compliance',\n draggable: false,\n resizable: false,\n closeText: \"Close\"\n });\n });\n jQuery('#wpfooter').hide();\n\n // Sync button\n jQuery('#spbc_button__sync').on('click', function () {\n jQuery('#spbc_button__sync_regular').hide();\n jQuery('#spbc_button__sync_action').show();\n spbcSendAJAXRequest({\n action: 'spbc_sync'\n }, {\n timeout: 25000,\n button: document.getElementById('spbc_button__sync'),\n spinner: [jQuery('#spbc_button__sync .spbc_preloader_button')],\n callback: function (result, data, params, obj) {\n jQuery('#spbc_button__sync .spbc_success').show(300);\n setTimeout(function () {\n jQuery('#spbc_button__sync .spbc_success').hide(300);\n }, 2000);\n jQuery('#spbc_button__sync_regular').show();\n jQuery('#spbc_button__sync_action').hide();\n if (result.reload) {\n spbcSwitchTab(jQuery('.spbc_tab_nav-scanner')[0]);\n document.location.reload();\n }\n }\n });\n });\n if (spbcSettings.key_changed) {\n jQuery('#spbc_button__sync').click();\n }\n }, []);\n const data = props.data;\n let goToCleanTalk;\n if (data.goToCleanTalkLink !== '') {\n goToCleanTalk = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n id: \"goToCleanTalk\",\n className: \"spbc-div-2 spbc_page_buttons_header\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"a\", {\n id: \"goToCleanTalkLink\",\n href: data.goToCleanTalkLink,\n className: \"spbc_manual_link spbc_page_buttons_links_basic_align\",\n target: \"_blank\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_buttons_links_basic_align\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"18\",\n height: \"18\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_2972_159)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M10.1669 7.69043H9.92542V5.16602C9.92542 4.81006 9.63684 4.52148 9.28089 4.52148C8.92494 4.52148 8.63636 4.81006 8.63636 5.16602V7.69043H7.34713V5.59575C7.34713 5.23979 7.05855 4.95121 6.70259 4.95121C6.34664 4.95121 6.05806 5.23979 6.05806 5.59575V7.69043H4.76883V6.45516C4.76883 6.09921 4.48025 5.81063 4.1243 5.81063C3.76834 5.81063 3.47977 6.09921 3.47977 6.45516V7.69043H3.23828C2.88233 7.69043 2.59375 7.97901 2.59375 8.33496C2.59375 8.69091 2.88233 8.97949 3.23828 8.97949H10.1669C10.5229 8.97949 10.8114 8.69091 10.8114 8.33496C10.8114 7.97901 10.5229 7.69043 10.1669 7.69043Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M7.15888 10.2695H3.23828C2.88233 10.2695 2.59375 10.5581 2.59375 10.9141C2.59375 11.27 2.88233 11.5586 3.23828 11.5586H7.15892C7.51487 11.5586 7.80345 11.27 7.80345 10.9141C7.80345 10.5581 7.51483 10.2695 7.15888 10.2695Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M22 1.68164C22 1.32569 21.7114 1.03711 21.3555 1.03711H0.644531C0.288578 1.03711 0 1.32569 0 1.68164V17.3808C0 17.7367 0.288578 18.0253 0.644531 18.0253H7.63224H14.3678H21.3555C21.7114 18.0253 22 17.7367 22 17.3808V1.68164ZM18.0461 15.9651L17.1296 16.5057L16.2131 15.9651C14.5561 14.9876 13.5266 13.1852 13.5266 11.2613V9.26421C14.26 9.0968 14.9079 8.6492 15.323 8.01566H18.9362C19.3471 8.64288 19.9864 9.08748 20.7109 9.25871V11.7362C20.5571 13.4779 19.5659 15.0685 18.0461 15.9651ZM1.28906 2.32617H20.7109V7.90394C20.359 7.7453 20.0664 7.4639 19.8993 7.10129C19.7939 6.87295 19.5654 6.72664 19.3139 6.72664H14.9453C14.6938 6.72664 14.4653 6.87291 14.36 7.10129C14.0948 7.6763 13.5147 8.04785 12.8822 8.04785C12.5262 8.04785 12.2376 8.33643 12.2376 8.69238V11.2613C12.2376 12.1256 12.4065 12.9698 12.7188 13.7527H1.28906V2.32617ZM1.28906 15.0418H13.4013C13.8409 15.6925 14.3938 16.2686 15.041 16.7363H1.28906V15.0418ZM19.2183 16.7363C19.7954 16.3193 20.2973 15.8161 20.7109 15.2507V16.7363H19.2183Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M18.3438 10.5598L16.8519 12.0518L16.3464 11.5464C16.0947 11.2947 15.6866 11.2947 15.4349 11.5464C15.1832 11.798 15.1832 12.2061 15.4349 12.4579L16.3961 13.4191C16.517 13.5399 16.6809 13.6079 16.8518 13.6079C17.0228 13.6079 17.1867 13.54 17.3075 13.4191L19.2553 11.4713C19.507 11.2197 19.507 10.8116 19.2553 10.5598C19.0036 10.3082 18.5955 10.3082 18.3438 10.5598Z\",\n fill: \"#026E88\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_2972_159\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\"\n }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", null, data.goToCleanTalkText)));\n }\n let support;\n if (data.support2Link !== '') {\n support = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc-div-2 spbc_page_buttons_header\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"a\", {\n href: data.support2Link,\n className: \"spbc_manual_link spbc_page_buttons_links_basic_align\",\n target: \"_blank\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_buttons_links_basic_align\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"18\",\n height: \"18\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_2972_165)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"mask\", {\n id: \"mask0_2972_165\",\n style: {\n maskType: \"luminance\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"0\",\n y: \"0\",\n width: \"22\",\n height: \"23\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M0 0.00195503H22V22.002H0V0.00195503Z\",\n fill: \"white\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n mask: \"url(#mask0_2972_165)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M8.54492 16.1564C9.13342 19.1218 11.7492 21.3574 14.8875 21.3574C16.1852 21.3574 17.3933 20.975 18.4059 20.317L21.0435 21.0465L20.3139 18.409C20.9719 17.3963 21.3543 16.1882 21.3543 14.8906C21.3543 11.7523 19.1187 9.13651 16.1533 8.54801\",\n stroke: \"#026E88\",\n strokeWidth: \"1.26953\",\n strokeMiterlimit: \"10\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M8.40039 0.646486C4.11696 0.646486 0.644531 4.11892 0.644531 8.40234C0.644531 9.93796 1.09093 11.3693 1.86085 12.5738L0.95541 15.8473L4.22894 14.9419C5.43348 15.7118 6.86477 16.1582 8.40039 16.1582C12.6838 16.1582 16.1562 12.6858 16.1562 8.40234C16.1562 4.11892 12.6838 0.646486 8.40039 0.646486Z\",\n stroke: \"#026E88\",\n strokeWidth: \"1.26953\",\n strokeMiterlimit: \"10\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M9.04492 12.9355H7.75586V11.6465H9.04492V12.9355Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M6.46484 6.44727C6.46484 5.37936 7.33054 4.51367 8.39844 4.51367C9.46634 4.51367 10.332 5.37936 10.332 6.44727C10.332 7.0123 10.0896 7.52067 9.7031 7.87417L8.39844 9.06836V10.3574\",\n stroke: \"#026E88\",\n strokeWidth: \"1.26953\",\n strokeMiterlimit: \"10\"\n }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_2972_165\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\"\n }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", null, data.support2Text)));\n }\n let sync;\n if (data.sync !== '') {\n sync = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc-div-2 spbc_page_buttons_header\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"button\", {\n type: \"button\",\n className: \"spbc_manual_link spbc_page_buttons_links_basic_align\",\n id: \"spbc_button__sync\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"18\",\n height: \"18\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_2972_179)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M16.5 21.9991C16.4083 21.9991 16.3167 21.9808 16.2305 21.9441C16.0178 21.8534 11 19.668 11 15.1736V11.4905C11 11.1962 11.187 10.935 11.4666 10.8396L16.2791 9.20245C16.4221 9.15387 16.5779 9.15387 16.7209 9.20245L21.5334 10.8396C21.813 10.935 22 11.1962 22 11.4905V15.1736C22 19.668 16.9822 21.8534 16.7695 21.945C16.6833 21.9808 16.5917 21.9991 16.5 21.9991ZM12.375 11.9827V15.1727C12.375 18.228 15.543 20.065 16.5 20.549C17.457 20.065 20.625 18.228 20.625 15.1727V11.9827L16.5 10.5793L12.375 11.9827Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M16.2706 17.8756C16.0891 17.8756 15.9131 17.8041 15.7848 17.6739L13.9514 15.8406C13.6829 15.572 13.6829 15.1366 13.9514 14.868C14.22 14.5994 14.6554 14.5994 14.924 14.868L16.1973 16.1413L18.4706 13.1089C18.6961 12.8055 19.1288 12.7432 19.4331 12.9723C19.7365 13.1997 19.7979 13.6305 19.5697 13.9348L16.8197 17.6015C16.7005 17.761 16.5181 17.86 16.3183 17.8747C16.3027 17.8747 16.2871 17.8756 16.2706 17.8756Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M9.7075 19.25H2.52083C1.13025 19.25 0 18.1198 0 16.7292V2.52083C0 1.13025 1.13025 0 2.52083 0H13.0625C14.4531 0 15.5833 1.13025 15.5833 2.52083V7.49833C15.5833 7.87783 15.2753 8.18583 14.8958 8.18583C14.5163 8.18583 14.2083 7.87783 14.2083 7.49833V2.52083C14.2083 1.88925 13.6941 1.375 13.0625 1.375H2.52083C1.88925 1.375 1.375 1.88925 1.375 2.52083V16.7292C1.375 17.3608 1.88925 17.875 2.52083 17.875H9.7075C10.087 17.875 10.395 18.183 10.395 18.5625C10.395 18.942 10.087 19.25 9.7075 19.25Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M12.1458 8.70898H3.4375C3.058 8.70898 2.75 8.40098 2.75 8.02148C2.75 7.64198 3.058 7.33398 3.4375 7.33398H12.1458C12.5253 7.33398 12.8333 7.64198 12.8333 8.02148C12.8333 8.40098 12.5253 8.70898 12.1458 8.70898Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M8.47917 12.375H3.4375C3.058 12.375 2.75 12.067 2.75 11.6875C2.75 11.308 3.058 11 3.4375 11H8.47917C8.85867 11 9.16667 11.308 9.16667 11.6875C9.16667 12.067 8.85867 12.375 8.47917 12.375Z\",\n fill: \"#026E88\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M7.5625 5.04102H3.4375C3.058 5.04102 2.75 4.73302 2.75 4.35352C2.75 3.97402 3.058 3.66602 3.4375 3.66602H7.5625C7.942 3.66602 8.25 3.97402 8.25 4.35352C8.25 4.73302 7.942 5.04102 7.5625 5.04102Z\",\n fill: \"#026E88\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_2972_179\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\"\n })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n id: \"spbc_button__sync_regular\"\n }, data.sync), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n className: \"--hide\",\n id: \"spbc_button__sync_action\",\n style: {\n paddingLeft: \"18px\"\n }\n }, data.syncProgress), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"img\", {\n style: {\n marginLeft: \"10px\",\n marginTop: \"1px\"\n },\n className: \"spbc_preloader_button\",\n src: data.syncUrl\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"img\", {\n style: {\n marginLeft: \"10px\"\n },\n className: \"spbc_success --hide\",\n src: data.syncUrlProgress\n })));\n }\n let spbcErrors = '';\n if (data.spbcErrors) {\n spbcErrors = data.spbcErrors;\n spbcErrors = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__error_block\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"label\", {\n htmlFor: \"spbc_page_header_info__error_block\",\n className: \"spbc_page_header_info__block_label\"\n }, __('Errors', 'security-malware-firewall')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n id: \"spbc_page_header_info__error_block\",\n className: \"spbc_page_header_info__block_body\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"error\",\n style: {\n margin: \"5px 0 5px\"\n },\n dangerouslySetInnerHTML: {\n __html: spbcErrors\n }\n })));\n }\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"wrap\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n style: {\n display: \"flex\",\n alignItems: \"center\",\n height: \"40px\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", null, data.brandname)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info_common_wrapper\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info_left_column\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__state_block\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"label\", {\n htmlFor: \"spbc_page_header_info_block\",\n className: \"spbc_page_header_info__block_label\"\n }, __('State info', 'security-malware-firewall')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n id: \"spbc_page_header_info_block\",\n className: \"spbc_page_header_info__block_body\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.adminsOnlineCount\n }\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\"\n }, data.nextScanLaunchTime))), spbcErrors), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info_right_column spbc_page_desktop_info__about_block\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_SpbctAboutCT__WEBPACK_IMPORTED_MODULE_1__.SpbctAboutCT, {\n data: data\n }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_buttons_wrapper\"\n }, goToCleanTalk, support, sync), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_hide\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.gdprModalWindow\n }\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_page_header_info__block_row\",\n dangerouslySetInnerHTML: {\n __html: data.twoFactorAuth\n }\n })));\n}\n\n//# sourceURL=webpack:///./js/src/react/components/SpbctPage.js?"); /***/ }), @@ -36,6 +37,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac \**************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { +"use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\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__);\n\nclass SpbctPageNetworkDashboard extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {\n constructor(props) {\n super(props);\n this.state = {\n date: new Date()\n };\n }\n render() {\n const data = this.props.data;\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"wrap\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n dangerouslySetInnerHTML: {\n __html: data.networkAdminDashboardMsg\n }\n }));\n }\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SpbctPageNetworkDashboard);\n\n//# sourceURL=webpack:///./js/src/react/components/SpbctPageNetworkDashboard.js?"); /***/ }), @@ -46,7 +48,8 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac \**************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\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__);\n\nclass SpbctPage extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {\n constructor(props) {\n super(props);\n this.state = {\n date: new Date()\n };\n }\n componentDidMount() {\n jQuery('.spbc_tab_nav-summary').data('loaded', true); // Summary tab loaded by default\n jQuery('.spbc_tabs_nav_wrapper').on('click', '.spbc_tab_nav', function (event) {\n spbcSwitchTab(event.currentTarget);\n });\n // Get additional params\n var params = {\n target: location.search.match(/spbc_target=(\\S*?)(&|$)/) ? location.search.match(/spbc_target=(\\S*?)(&|$)/)[1] : null,\n action: location.search.match(/spbc_action=(\\S*?)(&|$)/) ? location.search.match(/spbc_action=(\\S*?)(&|$)/)[1] : null,\n times: location.search.match(/spbc_times=(\\S*?)(&|$)/) ? location.search.match(/spbc_times=(\\S*?)(&|$)/)[1] : 3\n };\n // Legacy support\n params.target = location.search.match(/spbc_highlight=(\\S*?)(&|$)/) ? location.search.match(/spbc_highlight=(\\S*?)(&|$)/)[1] : params.target;\n params.action = location.search.search(/spbc_highlight=(\\S*?)(&|$)/) != -1 ? 'highlight' : params.action;\n\n // Get open tab form query\n var spbc_tab = document.getElementsByClassName('spbc_tab_nav-' + (location.search.match(/spbc_tab=(\\S*?)(&|$)/) ? location.search.match(/spbc_tab=(\\S*?)(&|$)/)[1] : ''))[0] || null;\n\n // TAB SWITCHING\n // Switch by URL\n if (spbc_tab) {\n\n // Switch to DEBUG\n } else if (+spbcSettings.debug) {\n spbc_tab = document.getElementsByClassName('spbc_tab_nav-debug')[0];\n // Switch by DEFAULT\n } else if (+spbcSettings.wpms && !+spbcSettings.is_main_site) {\n spbc_tab = document.getElementsByClassName('spbc_tab_nav-security_log')[0];\n // Switch if Key is OK and SFW is ON\n } else if (+spbcSettings.key_is_ok && +spbcSettings.secfw_enabled) {\n spbc_tab = document.getElementsByClassName('spbc_tab_nav-traffic_control')[0];\n // Switch if Key is OK\n } else if (+spbcSettings.key_is_ok) {\n spbc_tab = document.getElementsByClassName('spbc_tab_nav-scanner')[0];\n // Switch if KEY IS BAD\n } else {\n spbc_tab = document.getElementsByClassName('spbc_tab_nav-settings_general')[0];\n params = {\n target: 'spbc_key',\n action: 'highlight',\n times: 3\n };\n }\n\n // Switch tab\n if (spbc_tab) spbcSwitchTab(spbc_tab, params);\n var ctrlKeyDown = false;\n jQuery(document).on(\"keyup\", function (e) {\n if ((e.which || e.keyCode) == 17) ctrlKeyDown = false;\n });\n jQuery(document).on(\"keydown\", function (e) {\n if ((e.which || e.keyCode) == 116 && ctrlKeyDown) {\n e.preventDefault();\n var active_tab = jQuery('.spbc_tab_nav--active')[0];\n var tab_name = active_tab.classList[1].replace('spbc_tab_nav-', '');\n if (tab_name === 'scanner') return;\n jQuery(active_tab).data('loaded', false);\n spbcSwitchTab(active_tab);\n } else if ((e.which || e.keyCode) == 17) {\n ctrlKeyDown = true;\n }\n });\n }\n render() {\n return this.getTabsHeader();\n }\n getTabsHeader() {\n this.dataPrepared = {\n 'criticalCount': null,\n 'criticalDot': null,\n 'vulnerabilitiesCount': null,\n 'vulnerabilitiesDot': null,\n 'keyIsOk': null,\n 'displayDebug': null,\n 'isWPMSMainSite': false,\n 'isSecFWEnabled': true,\n 'isFsWatcherEnabled': true,\n 'isVulnerabilityCheckEnabled': true\n };\n this.dataPrepared.isWPMSMainSite = +this.props.data.isWPMSMainSite;\n this.dataPrepared.isSecFWEnabled = +this.props.data.isSecFWEnabled;\n this.dataPrepared.isFsWatcherEnabled = +this.props.data.isFsWatcherEnabled;\n this.dataPrepared.isVulnerabilityCheckEnabled = +this.props.data.isVulnerabilityCheckEnabled;\n let dot = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_ring-container\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_ringring\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_circle\"\n }));\n if (this.props.data.criticalCount && this.props.data.criticalCount > 0) {\n this.dataPrepared.criticalCount = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", null, \"(\", +this.props.data.criticalCount, \")\");\n this.dataPrepared.criticalDot = dot;\n }\n if (this.props.data.vulnerabilitiesCount && this.props.data.vulnerabilitiesCount > 0) {\n this.dataPrepared.vulnerabilitiesCount = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", null, \"(\", +this.props.data.vulnerabilitiesCount, \")\");\n this.dataPrepared.vulnerabilitiesDot = dot;\n }\n if (!this.props.data.keyIsOk) {\n this.dataPrepared.keyIsOk = dot;\n }\n this.dataPrepared.displayDebug = \"none\";\n if (this.props.data.displayDebug === true) {\n this.dataPrepared.displayDebug = \"flex\";\n }\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tabs_nav_wrapper\"\n }, this.dataPrepared.isSecFWEnabled ? this.getFirewallTab() : '', this.dataPrepared.isWPMSMainSite && this.dataPrepared.isVulnerabilityCheckEnabled ? this.getCriticalUpdatesTab() : '', this.dataPrepared.isWPMSMainSite && this.dataPrepared.isFsWatcherEnabled ? this.getFSWTab() : '', this.dataPrepared.isWPMSMainSite ? this.getScannerTab() : '', this.getBackupsTab(), this.getSecurityLogTab(), this.getSettingsTab(), this.getSummaryTab(), this.dataPrepared.isWPMSMainSite ? this.getDebugTab() : '');\n }\n getFirewallTab() {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-traffic_control spbc_tab_nav--active\",\n style: {\n display: \"flex\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"22\",\n height: \"22\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M21.3554 5.20115H18.3724C18.2553 5.03834 18.1338 4.87983 18.011 4.71986C17.3452 3.85275 16.5907 2.86993 16.1948 0.538579C16.1561 0.310717 15.9984 0.120967 15.7814 0.0413889C15.5643 -0.038232 15.3213 0.00452184 15.1444 0.153279C12.6517 2.25037 12.0335 4.01887 11.8906 5.92917C11.5892 5.49678 11.3885 4.96066 11.3885 4.55667C11.3885 4.31359 11.2517 4.09119 11.0347 3.98149C10.8178 3.87179 10.5576 3.89353 10.3618 4.0376C9.87282 4.39755 9.45165 4.78633 9.09831 5.2012H0.64453C0.288578 5.2012 0 5.48977 0 5.84573V21.3574C0 21.7134 0.288578 22.0019 0.64453 22.0019H21.3554C21.7114 22.0019 22 21.7134 22 21.3574V5.84568C22 5.48973 21.7114 5.20115 21.3554 5.20115ZM10.3436 5.75162C10.6939 6.65912 11.3952 7.53775 12.2819 7.84845C12.7006 7.99532 13.1395 7.68367 13.1395 7.24019C13.1395 5.25229 13.2941 3.74095 15.1619 1.8798C15.6459 3.7562 16.38 4.71238 16.9884 5.50486C17.6481 6.36419 18.0871 6.95939 18.0871 8.4238C18.0871 10.9116 16.0632 12.9355 13.5754 12.9355C11.6675 12.9355 9.85306 11.6267 9.26091 9.82355C8.78774 8.38264 9.18232 6.93949 10.3436 5.75162ZM15.5117 14.2246V16.8027H6.48827V14.2246H15.5117ZM6.48827 6.49026H8.2615C8.17793 6.66858 8.10363 6.85008 8.04086 7.03549C7.81772 7.69445 7.73711 8.38242 7.79765 9.06838H6.48827V6.49026ZM1.28906 6.49021H5.19921V9.06833H1.28906V6.49021ZM1.28906 10.3574H8.08253C8.4372 11.3486 9.09097 12.2534 9.94591 12.9355H1.28906V10.3574ZM1.28906 14.2246H5.19921V16.8027H1.28906V14.2246ZM10.3554 20.7128H1.28906V18.0918H10.3554V20.7128ZM20.7109 20.7128H11.6445V18.0918H20.7109V20.7128ZM20.7109 16.8027H16.8007V14.2246H20.7109V16.8027ZM20.7109 12.9355H17.217C18.0431 12.2675 18.6826 11.3777 19.0444 10.3574H20.7109V12.9355ZM20.7109 9.06833H19.3402C19.3637 8.85663 19.3762 8.64165 19.3762 8.4238C19.3762 7.62171 19.2609 7.00425 19.0759 6.49021H20.7109V9.06833Z\",\n fill: \"#1D2327\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, \"Firewall\"));\n }\n getFSWTab() {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-fswatcher\",\n style: {\n display: \"flex\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"22\",\n height: \"22\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_3710_3316)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"mask\", {\n id: \"mask0_3710_3316\",\n style: {\n maskType: \"luminance\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"0\",\n y: \"0\",\n width: \"22\",\n height: \"23\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M0 0.00390816H22V22.0039H0V0.00390816Z\",\n fill: \"white\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n mask: \"url(#mask0_3710_3316)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M16.1133 4.94336H11.8164V0.646485L16.1133 4.94336Z\",\n stroke: \"#1D2327\",\n strokeWidth: \"1.32813\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M3.22266 7.52148H10.5273\",\n stroke: \"#1D2327\",\n strokeWidth: \"1.32813\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M3.22266 10.0996H8.80859\",\n stroke: \"#1D2327\",\n strokeWidth: \"1.32813\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M3.22266 12.6777H8.80859\",\n stroke: \"#1D2327\",\n strokeWidth: \"1.32813\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M3.22266 15.2559H8.80859\",\n stroke: \"#1D2327\",\n strokeWidth: \"1.32813\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"mask\", {\n id: \"mask1_3710_3316\",\n style: {\n maskType: \"luminance\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"0\",\n y: \"0\",\n width: \"22\",\n height: \"23\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M0 0.00390816H22V22.0039H0V0.00390816Z\",\n fill: \"white\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n mask: \"url(#mask1_3710_3316)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M17.7072 9.51355C19.2174 11.0238 19.2174 13.4723 17.7072 14.9826C16.197 16.4928 13.7483 16.4928 12.2382 14.9826C10.7279 13.4723 10.7279 11.0238 12.2382 9.51355C13.7483 8.00333 16.197 8.00333 17.7072 9.51355Z\",\n stroke: \"#1D2327\",\n strokeWidth: \"1.32813\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M21.355 18.6309L17.709 14.9848\",\n stroke: \"#1D2327\",\n strokeWidth: \"1.32813\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M16.1133 8.55413V4.94531L11.8166 0.648438H2.36328C1.41402 0.648438 0.644531 1.41796 0.644531 2.36719V19.6406C0.644531 20.5898 1.41402 21.3594 2.36328 21.3594H14.3945C15.3438 21.3594 16.1133 20.5898 16.1133 19.6406V15.9459\",\n stroke: \"#1D2327\",\n strokeWidth: \"1.32813\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_3710_3316\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\"\n })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, \"File System Watcher\"));\n }\n getScannerTab() {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-scanner\",\n style: {\n display: \"flex\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"22\",\n height: \"22\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_2972_209)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"mask\", {\n id: \"mask0_2972_209\",\n style: {\n maskType: \"luminance\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"-1\",\n y: \"0\",\n width: \"23\",\n height: \"23\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M21.9961 0.00390816H-0.00390434V22.0039H21.9961V0.00390816Z\",\n fill: \"white\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n mask: \"url(#mask0_2972_209)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M0.644533 8.38281C0.644533 12.6544 4.10734 16.1172 8.37891 16.1172C12.6505 16.1172 16.1133 12.6544 16.1133 8.38281C16.1133 4.11125 12.6505 0.648439 8.37891 0.648439C4.10734 0.648439 0.644533 4.11125 0.644533 8.38281Z\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M10.6741 6.58789L12.2422 5.80384V4.51478\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M6.07422 6.58789L4.50616 5.80384\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M12.2422 8.38281H10.9531\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M5.80078 8.38281H4.51172\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M5.80078 8.38281C5.80078 11.2305 6.95505 12.25 8.37891 12.25C9.80276 12.25 10.957 11.2305 10.957 8.38281C10.957 5.5351 9.80276 5.80469 8.37891 5.80469C6.95505 5.80469 5.80078 5.5351 5.80078 8.38281Z\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M10.7443 10.212L12.2422 10.9609V12.25\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M6.00781 10.212L4.50988 10.9609V12.25\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M9.66602 5.83594V4.51336C9.66602 3.80141 9.08886 3.2243 8.37695 3.2243C7.66505 3.2243 7.08789 3.80141 7.08789 4.51336V5.83594\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M4.50977 5.80469V4.51562\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M12.8566 14.6872L19.1511 20.9817C19.4029 21.2335 19.7327 21.3594 20.0625 21.3594C20.3923 21.3594 20.7221 21.2335 20.9739 20.9817C21.4775 20.4782 21.4775 19.6625 20.9739 19.1589L14.6794 12.8644\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\"\n }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_2972_209\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\",\n transform: \"matrix(-1 0 0 1 22 0)\"\n })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n style: {\n position: \"relative\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, \"Malware Scanner \", this.dataPrepared.criticalCount), this.dataPrepared.criticalDot));\n }\n getBackupsTab() {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-backups\",\n style: {\n display: \"flex\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"i\", {\n className: \"spbc-icon-exchange\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, \"Backups\"));\n }\n getSecurityLogTab() {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-security_log\",\n style: {\n display: \"flex\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"22\",\n height: \"22\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_2972_239)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"mask\", {\n id: \"mask0_2972_239\",\n style: {\n maskType: \"luminance\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"0\",\n y: \"0\",\n width: \"23\",\n height: \"22\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M0.0078125 3.8147e-06H22.0078V22H0.0078125V3.8147e-06Z\",\n fill: \"white\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n mask: \"url(#mask0_2972_239)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M1.93359 14.4785H20.0664C20.7783 14.4785 21.3555 15.0557 21.3555 15.7676V20.0645C21.3555 20.7764 20.7783 21.3535 20.0664 21.3535H1.93359C1.22169 21.3535 0.644531 20.7764 0.644531 20.0645V15.7676C0.644531 15.0557 1.22169 14.4785 1.93359 14.4785Z\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M7.7832 18.8867L9.7168 16.9531\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M9.7168 18.8867L7.7832 16.9531\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M3.26562 18.8867L5.19922 16.9531\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M5.19922 18.8867L3.26562 16.9531\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M12.2891 18.8867L14.2227 16.9531\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M14.2227 18.8867L12.2891 16.9531\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M16.8066 18.8867L18.7402 16.9531\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M18.7402 18.8867L16.8066 16.9531\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M5.41992 6.22656C5.41992 3.14154 7.92083 0.640626 11.0059 0.640626C14.0909 0.640626 16.5918 3.14154 16.5918 6.22656C16.5918 9.31159 14.0909 11.8125 11.0059 11.8125C7.92083 11.8125 5.41992 9.31159 5.41992 6.22656Z\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M11 3.2207C11.8306 3.2207 12.5039 3.89402 12.5039 4.72461V5.58398C12.5039 6.41457 11.8306 7.08789 11 7.08789C10.1694 7.08789 9.49609 6.41457 9.49609 5.58398V4.72461C9.49609 3.89402 10.1694 3.2207 11 3.2207Z\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M7.99805 10.9277V10.0929C7.99805 8.43172 9.34469 7.08508 11.0059 7.08508C12.667 7.08508 14.0137 8.43172 14.0137 10.0929V10.9277\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_2972_239\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\"\n })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, \"Security Log\"));\n }\n getSettingsTab() {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-settings_general\",\n style: {\n display: \"flex\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"22\",\n height: \"22\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_2972_281)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M11.5354 13.0716C11.2269 13.0716 10.9768 13.3217 10.9768 13.6302C10.9766 15.0762 9.80426 16.2481 8.35832 16.2479C6.91238 16.2476 5.74041 15.0753 5.74066 13.6294C5.74092 12.1836 6.91298 11.0117 8.35875 11.0117C8.66727 11.0117 8.91734 10.7616 8.91734 10.4531C8.91734 10.1446 8.66727 9.89453 8.35875 9.89453C6.29616 9.89595 4.62446 11.5676 4.62305 13.6302C4.62305 15.6933 6.29548 17.3657 8.35854 17.3657C10.4216 17.3657 12.094 15.6933 12.094 13.6302C12.094 13.3217 11.8439 13.0716 11.5354 13.0716Z\",\n fill: \"black\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M15.9784 14.9199C15.9251 14.6161 15.6356 14.4129 15.3317 14.4662L14.1625 14.6711C13.9486 14.7086 13.7759 14.8666 13.7195 15.0763C13.5948 15.539 13.4104 15.9835 13.1708 16.3985C13.0616 16.587 13.072 16.8219 13.1974 17L13.8798 17.9724C13.9752 18.1079 13.9593 18.2924 13.842 18.4094L13.1407 19.1107C13.0238 19.2279 12.8396 19.244 12.7041 19.1489L11.7318 18.4666C11.5536 18.3411 11.3187 18.3307 11.1302 18.4399C10.7152 18.6796 10.2708 18.864 9.80805 18.9886C9.59836 19.045 9.44032 19.2178 9.40285 19.4317L9.19531 20.5995C9.16691 20.7626 9.02524 20.8816 8.85973 20.8814H7.86758C7.70206 20.8816 7.56044 20.7626 7.53199 20.5995L7.32703 19.4308C7.28956 19.2169 7.13152 19.0442 6.92184 18.9878C6.45902 18.8631 6.01442 18.6787 5.59926 18.4391C5.41071 18.3298 5.17584 18.3402 4.9977 18.4657L4.02703 19.1476C3.89159 19.2431 3.70709 19.2271 3.59004 19.1098L2.88879 18.4086C2.77174 18.2916 2.75563 18.1075 2.85055 17.972L3.53289 16.9996C3.65832 16.8215 3.66876 16.5866 3.55953 16.3981C3.31981 15.9831 3.13534 15.5386 3.01082 15.0759C2.95445 14.8662 2.78167 14.7082 2.56781 14.6707L1.39906 14.4658C1.2363 14.4374 1.11745 14.2962 1.11719 14.131V13.1389C1.11702 12.9734 1.236 12.8317 1.39906 12.8033L2.56781 12.5983C2.78167 12.5609 2.95445 12.4028 3.01082 12.1931C3.13526 11.7299 3.31972 11.285 3.55953 10.8697C3.66876 10.6812 3.65832 10.4463 3.53289 10.2681L2.85098 9.29876C2.7555 9.16332 2.77149 8.97881 2.88879 8.86177L3.59047 8.16009C3.70743 8.043 3.89168 8.02706 4.02703 8.12228L4.99941 8.80462C5.17756 8.93009 5.41243 8.94049 5.60098 8.83126C6.0161 8.59162 6.4607 8.40716 6.92356 8.28255C7.13324 8.22617 7.29128 8.0534 7.32875 7.83954L7.53371 6.67079C7.58699 6.36692 7.38384 6.07739 7.07996 6.02411C6.77609 5.97083 6.48656 6.17399 6.43328 6.47786L6.28805 7.30716C5.96948 7.41239 5.65937 7.54168 5.36035 7.69388L4.6707 7.21005C4.09131 6.80236 3.30254 6.87111 2.80242 7.3729L2.09859 8.072C1.59728 8.57237 1.52874 9.36089 1.93617 9.94028L2.42 10.6299C2.26776 10.929 2.13847 11.2393 2.03328 11.5581L1.20399 11.7033C0.507118 11.8257 -0.000858177 12.4314 1.19802e-06 13.1389V14.131C-0.000901146 14.8392 0.508021 15.4454 1.2057 15.567L2.035 15.7127C2.14019 16.0313 2.26948 16.3414 2.42172 16.6404L1.93617 17.33C1.52887 17.9095 1.59758 18.698 2.09902 19.1983L2.8007 19.8996C3.30099 20.4011 4.08964 20.4696 4.66899 20.062L5.35649 19.5782C5.6555 19.7304 5.96561 19.8596 6.28418 19.9649L6.42942 20.7942C6.55179 21.4922 7.15894 22.0007 7.86758 21.9986H8.85973C9.56811 21.9995 10.1743 21.4903 10.2957 20.7925L10.4414 19.9632C10.76 19.8579 11.0701 19.7287 11.3691 19.5765L12.0592 20.0603C12.6386 20.4678 13.4273 20.399 13.9275 19.8974L14.6291 19.1958C15.1306 18.6955 15.1993 17.9069 14.792 17.3275L14.3086 16.64C14.4608 16.341 14.59 16.0308 14.6953 15.7123L15.5246 15.5666C15.8285 15.5133 16.0316 15.2238 15.9784 14.9199Z\",\n fill: \"black\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M20.9473 5.07031L20.3629 4.96805C20.2899 4.75733 20.2038 4.55138 20.1051 4.35145L20.4489 3.86719C20.803 3.3636 20.7433 2.6782 20.3075 2.2434L19.7541 1.68867C19.319 1.25194 18.6326 1.19204 18.1286 1.54688L17.6426 1.88762C17.4426 1.78888 17.2367 1.70277 17.026 1.62981L16.9254 1.04801C16.8196 0.441377 16.2925 -0.000986629 15.6768 1.65263e-06H14.8952C14.2794 -0.000771785 13.7525 0.441806 13.6469 1.04844L13.5442 1.63281C13.3335 1.70578 13.1276 1.79188 12.9276 1.89063L12.4416 1.54688C11.938 1.19273 11.2527 1.25241 10.8179 1.68824L10.2653 2.24168C9.82854 2.6767 9.76864 3.36312 10.1235 3.86719L10.4642 4.35317C10.3655 4.5531 10.2794 4.75905 10.2064 4.96977L9.62418 5.07031C9.01772 5.1761 8.5754 5.70294 8.57617 6.31856V7.10016C8.57497 7.71607 9.01742 8.24343 9.62418 8.34926L10.2081 8.45153C10.2811 8.66224 10.3672 8.86819 10.4659 9.06813L10.1248 9.5541C9.77058 10.0575 9.82987 10.7428 10.2653 11.1779L10.8179 11.7305C11.2527 12.1666 11.9384 12.2262 12.4421 11.8718L12.9293 11.5311C13.1293 11.6298 13.3352 11.7159 13.5459 11.7889L13.6486 12.3733C13.7544 12.9797 14.2813 13.4221 14.8969 13.4213H15.6785C16.2943 13.4213 16.8207 12.978 16.9254 12.3711L17.0277 11.7872C17.2384 11.7142 17.4444 11.6281 17.6443 11.5294L18.1286 11.8723C18.6326 12.2273 19.3191 12.1674 19.7541 11.7305L20.3071 11.1775C20.7426 10.7427 20.8025 10.0577 20.4489 9.5541L20.1073 9.06641C20.206 8.86643 20.2921 8.66053 20.3651 8.44981L20.9495 8.34711C21.5546 8.24072 21.9958 7.715 21.9957 7.10059V6.31899C21.9967 5.70307 21.5541 5.17593 20.9473 5.07031ZM20.8786 7.10188C20.8786 7.17479 20.8262 7.23714 20.7544 7.24969L19.8331 7.41125C19.6193 7.44872 19.4465 7.60676 19.3901 7.81645C19.2946 8.1712 19.1531 8.51194 18.9695 8.83008C18.8602 9.01863 18.8706 9.25349 18.9961 9.43164L19.5336 10.1982C19.5757 10.2579 19.5686 10.3392 19.5169 10.3907L18.9643 10.9433C18.9122 10.9933 18.8318 10.9991 18.7731 10.957L18.0052 10.4199C17.8271 10.2945 17.5922 10.2841 17.4037 10.3933C17.0855 10.577 16.7448 10.7184 16.39 10.8139C16.1808 10.871 16.0235 11.0441 15.9866 11.2578L15.825 12.1791C15.8125 12.2509 15.7501 12.3033 15.6772 12.3032H14.8952C14.8222 12.3033 14.7599 12.2509 14.7473 12.1791L14.5854 11.2578C14.5479 11.044 14.3898 10.8712 14.1802 10.8148C13.8253 10.7192 13.4844 10.5778 13.1661 10.3941C12.9775 10.2849 12.7427 10.2953 12.5645 10.4208L11.8001 10.957C11.7404 10.9991 11.6591 10.992 11.6076 10.9403L11.055 10.3877C11.0034 10.3362 10.9963 10.2549 11.0383 10.1952L11.5758 9.42863C11.7013 9.25049 11.7117 9.01562 11.6025 8.82707C11.4187 8.50897 11.2773 8.16819 11.1818 7.81344C11.1246 7.60435 10.9516 7.44722 10.7379 7.41039L9.81668 7.24883C9.74488 7.23628 9.69246 7.17394 9.6925 7.10102L9.69293 6.31899C9.69289 6.24607 9.74531 6.18372 9.81711 6.17117L10.7379 6.00918C10.9518 5.97171 11.1246 5.81367 11.1809 5.60399C11.2765 5.24924 11.4179 4.90849 11.6016 4.59035C11.7108 4.40181 11.7004 4.16694 11.575 3.98879L11.0387 3.22266C10.9967 3.16297 11.0038 3.08168 11.0555 3.03016L11.6085 2.47715C11.66 2.42546 11.7413 2.41837 11.801 2.46039L12.5671 2.99793C12.7453 3.12336 12.9801 3.1338 13.1687 3.02457C13.4868 2.84084 13.8276 2.69943 14.1823 2.60391C14.392 2.54753 14.55 2.37476 14.5875 2.1609L14.7491 1.23965C14.7622 1.16914 14.8234 1.11783 14.8952 1.11719H15.6768C15.7497 1.11715 15.812 1.16957 15.8246 1.24137L15.9861 2.16262C16.0236 2.37647 16.1816 2.54925 16.3913 2.60563C16.7461 2.7011 17.0869 2.84251 17.405 3.02629C17.5935 3.13552 17.8284 3.12512 18.0065 2.99965L18.7731 2.46211C18.8328 2.42009 18.9141 2.42718 18.9656 2.47887L19.5186 3.03188C19.5688 3.08361 19.5751 3.1637 19.5336 3.22266L18.9961 3.99051C18.8706 4.16866 18.8602 4.40353 18.9695 4.59207C19.1531 4.91021 19.2946 5.25096 19.3901 5.60571C19.4465 5.81539 19.6193 5.97343 19.8331 6.0109L20.7544 6.17246C20.8262 6.18501 20.8786 6.24736 20.8786 6.32028V7.10188Z\",\n fill: \"black\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M15.2938 4.03711C13.8199 4.03711 12.625 5.23198 12.625 6.7059C12.6267 8.17912 13.8206 9.37301 15.2938 9.37469C16.7677 9.37469 17.9626 8.17981 17.9626 6.7059C17.9626 5.23198 16.7677 4.03711 15.2938 4.03711ZM15.2938 8.2575C14.4369 8.2575 13.7422 7.56282 13.7422 6.7059C13.742 5.84854 14.4364 5.15309 15.2938 5.15215V5.1543C16.1507 5.1543 16.8454 5.84897 16.8454 6.7059C16.8454 7.56282 16.1507 8.2575 15.2938 8.2575Z\",\n fill: \"black\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_2972_281\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\"\n })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n style: {\n position: \"relative\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, \"General Settings\"), this.dataPrepared.keyIsOk));\n }\n getSummaryTab() {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-summary\",\n style: {\n display: \"flex\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"22\",\n height: \"22\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_2972_309)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M17.4381 2.88241H15.4478V1.99201C15.4478 1.70394 15.1335 1.57301 14.8455 1.57301H13.3004C12.9337 0.525466 12.0171 0.00169566 10.9696 0.00169566C9.93357 -0.0372525 8.99125 0.597999 8.63881 1.57301H7.11988C6.8318 1.57301 6.54373 1.70394 6.54373 1.99201V2.88241H4.55336C3.37389 2.89499 2.40896 3.82543 2.35352 5.00365V20.0096C2.35352 21.1619 3.40106 21.9999 4.55336 21.9999H17.4381C18.5904 21.9999 19.6379 21.1619 19.6379 20.0096V5.0037C19.5825 3.82543 18.6176 2.89499 17.4381 2.88241ZM7.59122 2.62055H9.0316C9.28303 2.58987 9.48499 2.39859 9.5292 2.14916C9.68429 1.47376 10.2768 0.988934 10.9696 0.970688C11.6559 0.99149 12.2395 1.47782 12.3837 2.14916C12.4307 2.40721 12.646 2.60095 12.9075 2.62055H14.4003V4.71563H7.59122V2.62055ZM18.5904 20.0097C18.5904 20.5858 18.0142 20.9525 17.4381 20.9525H4.55336C3.97721 20.9525 3.40106 20.5858 3.40106 20.0097V5.0037C3.45449 4.40399 3.95134 3.94097 4.55336 3.93H6.54368V5.26561C6.57135 5.55905 6.82549 5.77856 7.11983 5.76322H14.8454C15.1452 5.77961 15.4073 5.56311 15.4477 5.26561V3.92995H17.438C18.04 3.94097 18.5369 4.40394 18.5903 5.00365V20.0097H18.5904Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M8.98041 11.7102C8.78397 11.5031 8.45785 11.4914 8.24712 11.684L6.57104 13.2815L5.86396 12.5482C5.66751 12.3411 5.34139 12.3295 5.13066 12.522C4.9278 12.7345 4.9278 13.0689 5.13066 13.2815L6.20437 14.3814C6.2973 14.4855 6.43154 14.543 6.57099 14.5385C6.70914 14.5366 6.84092 14.4801 6.93762 14.3814L8.98031 12.4435C9.18282 12.2577 9.19636 11.9429 9.01054 11.7404C9.00102 11.7299 8.99094 11.7198 8.98041 11.7102Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M16.4963 12.8359H10.473C10.1837 12.8359 9.94922 13.0704 9.94922 13.3597C9.94922 13.649 10.1837 13.8835 10.473 13.8835H16.4963C16.7856 13.8835 17.0201 13.649 17.0201 13.3597C17.0201 13.0704 16.7856 12.8359 16.4963 12.8359Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M8.98041 7.51681C8.78397 7.30973 8.45785 7.29805 8.24712 7.49064L6.57104 9.08812L5.86396 8.35482C5.66751 8.14775 5.34139 8.13607 5.13066 8.32865C4.9278 8.54119 4.9278 8.87558 5.13066 9.08812L6.20437 10.188C6.2973 10.2921 6.43154 10.3496 6.57099 10.3452C6.70914 10.3432 6.84092 10.2867 6.93762 10.188L8.98031 8.2501C9.18282 8.06434 9.19636 7.74954 9.01054 7.54708C9.00102 7.53651 8.99094 7.52643 8.98041 7.51681Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M16.4963 8.64258H10.473C10.1837 8.64258 9.94922 8.87707 9.94922 9.16635C9.94922 9.45563 10.1837 9.69012 10.473 9.69012H16.4963C16.7856 9.69012 17.0201 9.45563 17.0201 9.16635C17.0201 8.87707 16.7856 8.64258 16.4963 8.64258Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M8.98041 15.8976C8.78397 15.6906 8.45785 15.6789 8.24712 15.8715L6.57104 17.469L5.86396 16.7357C5.66751 16.5286 5.34139 16.517 5.13066 16.7095C4.9278 16.922 4.9278 17.2564 5.13066 17.469L6.20437 18.5689C6.2973 18.6729 6.43154 18.7305 6.57099 18.726C6.70914 18.7241 6.84092 18.6676 6.93762 18.5689L8.98031 16.6309C9.18282 16.4452 9.19636 16.1304 9.01054 15.9279C9.00102 15.9174 8.99094 15.9073 8.98041 15.8976Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M16.4963 17.0234H10.473C10.1837 17.0234 9.94922 17.2579 9.94922 17.5472C9.94922 17.8365 10.1837 18.071 10.473 18.071H16.4963C16.7856 18.071 17.0201 17.8365 17.0201 17.5472C17.0201 17.2579 16.7856 17.0234 16.4963 17.0234Z\",\n fill: \"#1D2327\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_2972_309\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\"\n })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, \"Summary\"));\n }\n getCriticalUpdatesTab() {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-critical_updates\",\n style: {\n display: \"flex\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"22\",\n height: \"22\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_4058_112)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M13.2433 21.0002H2.52304C1.53779 21.0002 0.736328 20.2152 0.736328 19.2502V2.95512C0.736328 1.99009 1.53779 1.20508 2.52304 1.20508H8.46673C8.79554 1.20508 9.0623 1.46637 9.0623 1.78843C9.0623 2.11048 8.79554 2.37178 8.46673 2.37178H2.52304C2.19462 2.37178 1.92747 2.63345 1.92747 2.95512V19.2502C1.92747 19.5718 2.19462 19.8335 2.52304 19.8335H13.2433C13.5721 19.8335 13.8389 20.0948 13.8389 20.4168C13.8389 20.7389 13.5721 21.0002 13.2433 21.0002Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M18.4042 10.4999C18.0754 10.4999 17.8087 10.2386 17.8087 9.91657V2.95512C17.8087 2.63345 17.5415 2.37178 17.2131 2.37178H11.2694C10.9406 2.37178 10.6738 2.11048 10.6738 1.78843C10.6738 1.46637 10.9406 1.20508 11.2694 1.20508H17.2131C18.1983 1.20508 18.9998 1.99009 18.9998 2.95512V9.91657C18.9998 10.2386 18.733 10.4999 18.4042 10.4999Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M7.68541 10.8897C7.35661 10.8897 7.08984 10.6284 7.08984 10.3064C7.08984 9.98433 7.35661 9.72304 7.68541 9.72304L16.0234 9.72266C16.3522 9.72266 16.619 9.98395 16.619 10.306C16.619 10.6281 16.3522 10.8894 16.0234 10.8894L7.68541 10.8897Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M4.30822 11.4675C4.1349 11.4675 3.97011 11.3934 3.85728 11.265L3.2617 10.5883C3.04689 10.3441 3.07481 9.97566 3.32374 9.76564C3.57306 9.55486 3.94917 9.58259 4.16359 9.82641L4.30163 9.98326L4.84447 9.34902C5.0554 9.10254 5.43073 9.06988 5.68354 9.27686C5.93557 9.48384 5.96853 9.85147 5.75721 10.0987L4.76459 11.259C4.65253 11.39 4.48697 11.4663 4.31249 11.4675H4.30822Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M7.68541 14.0538C7.35661 14.0538 7.08984 13.7929 7.08984 13.4704C7.08984 13.1484 7.35661 12.8871 7.68541 12.8871L10.8618 12.8867C11.1906 12.8867 11.4574 13.148 11.4574 13.4701C11.4574 13.7921 11.1906 14.0534 10.8618 14.0534L7.68541 14.0538Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M4.30828 14.6339C4.13496 14.6339 3.97017 14.5599 3.85695 14.4315L3.26138 13.7544C3.04696 13.5102 3.07488 13.1418 3.32381 12.9314C3.5739 12.7206 3.94924 12.7491 4.16404 12.9925L4.30208 13.1497L4.84453 12.5155C5.05546 12.2683 5.43157 12.236 5.68321 12.443C5.93563 12.6496 5.96859 13.0176 5.75727 13.2644L4.76465 14.4251C4.65259 14.5565 4.48703 14.6328 4.31255 14.6339L4.30828 14.6339Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M10.8618 17.2175H7.68541C7.35661 17.2175 7.08984 16.9562 7.08984 16.6341C7.08984 16.3121 7.35661 16.0508 7.68541 16.0508H10.8618C11.1906 16.0508 11.4574 16.3121 11.4574 16.6341C11.4574 16.9562 11.1906 17.2175 10.8618 17.2175Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M4.30828 17.798C4.13496 17.798 3.97017 17.7239 3.85695 17.5956L3.26138 16.9184C3.04696 16.6742 3.07488 16.3058 3.32381 16.0954C3.5739 15.8846 3.94924 15.9131 4.16404 16.1566L4.30208 16.3138L4.84453 15.6796C5.05546 15.4323 5.43157 15.4 5.68321 15.607C5.93563 15.8136 5.96859 16.1816 5.75727 16.4285L4.76465 17.5891C4.65259 17.7205 4.48703 17.7969 4.31255 17.798L4.30828 17.798Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M12.8371 8.55578H6.90545C6.2552 8.55578 5.67243 8.2265 5.3475 7.6743C5.02219 7.12285 5.02219 6.46393 5.3475 5.91248L8.31334 0.881098C8.63866 0.329269 9.22104 0 9.87129 0C10.5215 0 11.1039 0.329273 11.4292 0.881098L14.3951 5.91248C14.7204 6.46393 14.7204 7.12285 14.3951 7.6743C14.0701 8.2265 13.4874 8.55578 12.8371 8.55578ZM9.34473 1.46444L6.37889 6.49583C6.22069 6.76433 6.32616 7.0017 6.37889 7.09133C6.43163 7.18096 6.58866 7.38908 6.90545 7.38908H12.8371C13.1539 7.38908 13.3109 7.18095 13.3637 7.09133C13.4164 7.0017 13.5219 6.76433 13.3637 6.49583L10.3978 1.46444C10.2392 1.19594 9.97674 1.16669 9.87128 1.16669C9.76581 1.16669 9.50331 1.19594 9.34473 1.46444Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M9.86901 4.89281C9.54021 4.89281 9.27344 4.63151 9.27344 4.30946V3.02085C9.27344 2.69879 9.54021 2.4375 9.86901 2.4375C10.1978 2.4375 10.4646 2.69879 10.4646 3.02085V4.30946C10.4646 4.63151 10.1978 4.89281 9.86901 4.89281Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M9.86901 6.83538C9.54021 6.83538 9.27344 6.57408 9.27344 6.25203V6.05796C9.27344 5.7359 9.54021 5.47461 9.86901 5.47461C10.1978 5.47461 10.4646 5.7359 10.4646 6.05796V6.25203C10.4646 6.57408 10.1978 6.83538 9.86901 6.83538Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n x: \"12.5\",\n y: \"12.5\",\n width: \"9\",\n height: \"9\",\n rx: \"0.5\",\n fill: \"#FDFDFD\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M15 15.207V16.457H16.25\",\n strokeWidth: \"0.8\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M19.5859 18.543V17.293H18.3359\",\n strokeWidth: \"0.8\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M19.0604 16.2495C18.9548 15.9509 18.7752 15.684 18.5384 15.4736C18.3017 15.2631 18.0155 15.1161 17.7066 15.0462C17.3977 14.9763 17.0761 14.9858 16.7718 15.0738C16.4676 15.1618 16.1906 15.3255 15.9667 15.5495L15 16.4578M19.5833 17.2912L18.6167 18.1995C18.3928 18.4235 18.1158 18.5872 17.8115 18.6752C17.5072 18.7632 17.1856 18.7727 16.8767 18.7028C16.5678 18.6329 16.2816 18.4859 16.0449 18.2755C15.8082 18.065 15.6286 17.7981 15.5229 17.4995\",\n strokeWidth: \"0.8\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_4058_112\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\"\n })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n style: {\n position: \"relative\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, \"Critical Updates\", this.dataPrepared.vulnerabilitiesCount), this.dataPrepared.vulnerabilitiesDot));\n }\n getDebugTab() {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-debug\",\n style: {\n display: this.dataPrepared.displayDebug\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, \"Debug\"));\n }\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SpbctPage);\n\n//# sourceURL=webpack:///./js/src/react/components/SpbctPageTabs.js?"); +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SpbctPageTabs: () => (/* binding */ SpbctPageTabs)\n/* harmony export */ });\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__);\n/* harmony import */ var _wordpress_react_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/react-i18n */ \"./node_modules/@wordpress/react-i18n/build-module/index.js\");\n\n\nfunction SpbctPageTabs(props) {\n const {\n __\n } = (0,_wordpress_react_i18n__WEBPACK_IMPORTED_MODULE_1__.useI18n)();\n\n // @ToDO Need to set state 'data'?\n //this.state = {date: new Date()};\n\n let dataPrepared = {\n 'criticalCount': null,\n 'criticalDot': null,\n 'vulnerabilitiesCount': null,\n 'vulnerabilitiesDot': null,\n 'keyIsOk': null,\n 'displayDebug': null,\n 'isWPMSMainSite': false,\n 'isSecFWEnabled': true,\n 'isFsWatcherEnabled': true,\n 'isVulnerabilityCheckEnabled': true\n };\n dataPrepared.isWPMSMainSite = +props.data.isWPMSMainSite;\n dataPrepared.isSecFWEnabled = +props.data.isSecFWEnabled;\n dataPrepared.isFsWatcherEnabled = +props.data.isFsWatcherEnabled;\n dataPrepared.isVulnerabilityCheckEnabled = +props.data.isVulnerabilityCheckEnabled;\n (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {\n jQuery('.spbc_tab_nav-summary').data('loaded', true); // Summary tab loaded by default\n jQuery('.spbc_tabs_nav_wrapper').on('click', '.spbc_tab_nav', function (event) {\n spbcSwitchTab(event.currentTarget);\n });\n // Get additional params\n var params = {\n target: location.search.match(/spbc_target=(\\S*?)(&|$)/) ? location.search.match(/spbc_target=(\\S*?)(&|$)/)[1] : null,\n action: location.search.match(/spbc_action=(\\S*?)(&|$)/) ? location.search.match(/spbc_action=(\\S*?)(&|$)/)[1] : null,\n times: location.search.match(/spbc_times=(\\S*?)(&|$)/) ? location.search.match(/spbc_times=(\\S*?)(&|$)/)[1] : 3\n };\n // Legacy support\n params.target = location.search.match(/spbc_highlight=(\\S*?)(&|$)/) ? location.search.match(/spbc_highlight=(\\S*?)(&|$)/)[1] : params.target;\n params.action = location.search.search(/spbc_highlight=(\\S*?)(&|$)/) != -1 ? 'highlight' : params.action;\n\n // Get open tab form query\n var spbc_tab = document.getElementsByClassName('spbc_tab_nav-' + (location.search.match(/spbc_tab=(\\S*?)(&|$)/) ? location.search.match(/spbc_tab=(\\S*?)(&|$)/)[1] : ''))[0] || null;\n\n // TAB SWITCHING\n // Switch by URL\n if (spbc_tab) {\n\n // Switch to DEBUG\n } else if (+spbcSettings.debug) {\n spbc_tab = document.getElementsByClassName('spbc_tab_nav-debug')[0];\n // Switch by DEFAULT\n } else if (+spbcSettings.wpms && !+spbcSettings.is_main_site) {\n spbc_tab = document.getElementsByClassName('spbc_tab_nav-security_log')[0];\n // Switch if Key is OK and SFW is ON\n } else if (+spbcSettings.key_is_ok && +spbcSettings.secfw_enabled) {\n spbc_tab = document.getElementsByClassName('spbc_tab_nav-traffic_control')[0];\n // Switch if Key is OK\n } else if (+spbcSettings.key_is_ok) {\n spbc_tab = document.getElementsByClassName('spbc_tab_nav-scanner')[0];\n // Switch if KEY IS BAD\n } else {\n spbc_tab = document.getElementsByClassName('spbc_tab_nav-settings_general')[0];\n params = {\n target: 'spbc_key',\n action: 'highlight',\n times: 3\n };\n }\n\n // Switch tab\n if (spbc_tab) spbcSwitchTab(spbc_tab, params);\n var ctrlKeyDown = false;\n jQuery(document).on(\"keyup\", function (e) {\n if ((e.which || e.keyCode) == 17) ctrlKeyDown = false;\n });\n jQuery(document).on(\"keydown\", function (e) {\n if ((e.which || e.keyCode) == 116 && ctrlKeyDown) {\n e.preventDefault();\n var active_tab = jQuery('.spbc_tab_nav--active')[0];\n var tab_name = active_tab.classList[1].replace('spbc_tab_nav-', '');\n if (tab_name === 'scanner') return;\n jQuery(active_tab).data('loaded', false);\n spbcSwitchTab(active_tab);\n } else if ((e.which || e.keyCode) == 17) {\n ctrlKeyDown = true;\n }\n });\n }, []);\n const getTabsHeader = () => {\n let dot = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_ring-container\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_ringring\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_circle\"\n }));\n if (props.data.criticalCount && props.data.criticalCount > 0) {\n dataPrepared.criticalCount = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", null, \"(\", +props.data.criticalCount, \")\");\n dataPrepared.criticalDot = dot;\n }\n if (props.data.vulnerabilitiesCount && props.data.vulnerabilitiesCount > 0) {\n dataPrepared.vulnerabilitiesCount = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", null, \"(\", +props.data.vulnerabilitiesCount, \")\");\n dataPrepared.vulnerabilitiesDot = dot;\n }\n if (!props.data.keyIsOk) {\n dataPrepared.keyIsOk = dot;\n }\n dataPrepared.displayDebug = \"none\";\n if (props.data.displayDebug === true) {\n dataPrepared.displayDebug = \"flex\";\n }\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tabs_nav_wrapper\"\n }, dataPrepared.isSecFWEnabled ? getFirewallTab() : '', dataPrepared.isWPMSMainSite && dataPrepared.isVulnerabilityCheckEnabled ? getCriticalUpdatesTab() : '', dataPrepared.isWPMSMainSite && dataPrepared.isFsWatcherEnabled ? getFSWTab() : '', dataPrepared.isWPMSMainSite ? getScannerTab() : '', getBackupsTab(), getSecurityLogTab(), getSettingsTab(), getSummaryTab(), dataPrepared.isWPMSMainSite ? getDebugTab() : '');\n };\n const getFirewallTab = () => {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-traffic_control spbc_tab_nav--active\",\n style: {\n display: \"flex\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"22\",\n height: \"22\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M21.3554 5.20115H18.3724C18.2553 5.03834 18.1338 4.87983 18.011 4.71986C17.3452 3.85275 16.5907 2.86993 16.1948 0.538579C16.1561 0.310717 15.9984 0.120967 15.7814 0.0413889C15.5643 -0.038232 15.3213 0.00452184 15.1444 0.153279C12.6517 2.25037 12.0335 4.01887 11.8906 5.92917C11.5892 5.49678 11.3885 4.96066 11.3885 4.55667C11.3885 4.31359 11.2517 4.09119 11.0347 3.98149C10.8178 3.87179 10.5576 3.89353 10.3618 4.0376C9.87282 4.39755 9.45165 4.78633 9.09831 5.2012H0.64453C0.288578 5.2012 0 5.48977 0 5.84573V21.3574C0 21.7134 0.288578 22.0019 0.64453 22.0019H21.3554C21.7114 22.0019 22 21.7134 22 21.3574V5.84568C22 5.48973 21.7114 5.20115 21.3554 5.20115ZM10.3436 5.75162C10.6939 6.65912 11.3952 7.53775 12.2819 7.84845C12.7006 7.99532 13.1395 7.68367 13.1395 7.24019C13.1395 5.25229 13.2941 3.74095 15.1619 1.8798C15.6459 3.7562 16.38 4.71238 16.9884 5.50486C17.6481 6.36419 18.0871 6.95939 18.0871 8.4238C18.0871 10.9116 16.0632 12.9355 13.5754 12.9355C11.6675 12.9355 9.85306 11.6267 9.26091 9.82355C8.78774 8.38264 9.18232 6.93949 10.3436 5.75162ZM15.5117 14.2246V16.8027H6.48827V14.2246H15.5117ZM6.48827 6.49026H8.2615C8.17793 6.66858 8.10363 6.85008 8.04086 7.03549C7.81772 7.69445 7.73711 8.38242 7.79765 9.06838H6.48827V6.49026ZM1.28906 6.49021H5.19921V9.06833H1.28906V6.49021ZM1.28906 10.3574H8.08253C8.4372 11.3486 9.09097 12.2534 9.94591 12.9355H1.28906V10.3574ZM1.28906 14.2246H5.19921V16.8027H1.28906V14.2246ZM10.3554 20.7128H1.28906V18.0918H10.3554V20.7128ZM20.7109 20.7128H11.6445V18.0918H20.7109V20.7128ZM20.7109 16.8027H16.8007V14.2246H20.7109V16.8027ZM20.7109 12.9355H17.217C18.0431 12.2675 18.6826 11.3777 19.0444 10.3574H20.7109V12.9355ZM20.7109 9.06833H19.3402C19.3637 8.85663 19.3762 8.64165 19.3762 8.4238C19.3762 7.62171 19.2609 7.00425 19.0759 6.49021H20.7109V9.06833Z\",\n fill: \"#1D2327\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, __('Firewall', 'security-malware-firewall')));\n };\n const getFSWTab = () => {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-fswatcher\",\n style: {\n display: \"flex\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"22\",\n height: \"22\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_3710_3316)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"mask\", {\n id: \"mask0_3710_3316\",\n style: {\n maskType: \"luminance\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"0\",\n y: \"0\",\n width: \"22\",\n height: \"23\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M0 0.00390816H22V22.0039H0V0.00390816Z\",\n fill: \"white\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n mask: \"url(#mask0_3710_3316)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M16.1133 4.94336H11.8164V0.646485L16.1133 4.94336Z\",\n stroke: \"#1D2327\",\n strokeWidth: \"1.32813\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M3.22266 7.52148H10.5273\",\n stroke: \"#1D2327\",\n strokeWidth: \"1.32813\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M3.22266 10.0996H8.80859\",\n stroke: \"#1D2327\",\n strokeWidth: \"1.32813\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M3.22266 12.6777H8.80859\",\n stroke: \"#1D2327\",\n strokeWidth: \"1.32813\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M3.22266 15.2559H8.80859\",\n stroke: \"#1D2327\",\n strokeWidth: \"1.32813\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"mask\", {\n id: \"mask1_3710_3316\",\n style: {\n maskType: \"luminance\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"0\",\n y: \"0\",\n width: \"22\",\n height: \"23\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M0 0.00390816H22V22.0039H0V0.00390816Z\",\n fill: \"white\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n mask: \"url(#mask1_3710_3316)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M17.7072 9.51355C19.2174 11.0238 19.2174 13.4723 17.7072 14.9826C16.197 16.4928 13.7483 16.4928 12.2382 14.9826C10.7279 13.4723 10.7279 11.0238 12.2382 9.51355C13.7483 8.00333 16.197 8.00333 17.7072 9.51355Z\",\n stroke: \"#1D2327\",\n strokeWidth: \"1.32813\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M21.355 18.6309L17.709 14.9848\",\n stroke: \"#1D2327\",\n strokeWidth: \"1.32813\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M16.1133 8.55413V4.94531L11.8166 0.648438H2.36328C1.41402 0.648438 0.644531 1.41796 0.644531 2.36719V19.6406C0.644531 20.5898 1.41402 21.3594 2.36328 21.3594H14.3945C15.3438 21.3594 16.1133 20.5898 16.1133 19.6406V15.9459\",\n stroke: \"#1D2327\",\n strokeWidth: \"1.32813\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_3710_3316\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\"\n })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, __('File System Watcher', 'security-malware-firewall')));\n };\n const getScannerTab = () => {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-scanner\",\n style: {\n display: \"flex\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"22\",\n height: \"22\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_2972_209)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"mask\", {\n id: \"mask0_2972_209\",\n style: {\n maskType: \"luminance\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"-1\",\n y: \"0\",\n width: \"23\",\n height: \"23\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M21.9961 0.00390816H-0.00390434V22.0039H21.9961V0.00390816Z\",\n fill: \"white\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n mask: \"url(#mask0_2972_209)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M0.644533 8.38281C0.644533 12.6544 4.10734 16.1172 8.37891 16.1172C12.6505 16.1172 16.1133 12.6544 16.1133 8.38281C16.1133 4.11125 12.6505 0.648439 8.37891 0.648439C4.10734 0.648439 0.644533 4.11125 0.644533 8.38281Z\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M10.6741 6.58789L12.2422 5.80384V4.51478\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M6.07422 6.58789L4.50616 5.80384\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M12.2422 8.38281H10.9531\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M5.80078 8.38281H4.51172\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M5.80078 8.38281C5.80078 11.2305 6.95505 12.25 8.37891 12.25C9.80276 12.25 10.957 11.2305 10.957 8.38281C10.957 5.5351 9.80276 5.80469 8.37891 5.80469C6.95505 5.80469 5.80078 5.5351 5.80078 8.38281Z\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M10.7443 10.212L12.2422 10.9609V12.25\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M6.00781 10.212L4.50988 10.9609V12.25\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M9.66602 5.83594V4.51336C9.66602 3.80141 9.08886 3.2243 8.37695 3.2243C7.66505 3.2243 7.08789 3.80141 7.08789 4.51336V5.83594\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M4.50977 5.80469V4.51562\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M12.8566 14.6872L19.1511 20.9817C19.4029 21.2335 19.7327 21.3594 20.0625 21.3594C20.3923 21.3594 20.7221 21.2335 20.9739 20.9817C21.4775 20.4782 21.4775 19.6625 20.9739 19.1589L14.6794 12.8644\",\n strokeWidth: \"1.30623\",\n strokeMiterlimit: \"10\"\n }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_2972_209\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\",\n transform: \"matrix(-1 0 0 1 22 0)\"\n })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n style: {\n position: \"relative\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, __('Malware Scanner', 'security-malware-firewall'), \" \", dataPrepared.criticalCount), dataPrepared.criticalDot));\n };\n const getBackupsTab = () => {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-backups\",\n style: {\n display: \"flex\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"i\", {\n className: \"spbc-icon-exchange\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, __('Backups', 'security-malware-firewall')));\n };\n const getSecurityLogTab = () => {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-security_log\",\n style: {\n display: \"flex\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"22\",\n height: \"22\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_2972_239)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"mask\", {\n id: \"mask0_2972_239\",\n style: {\n maskType: \"luminance\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"0\",\n y: \"0\",\n width: \"23\",\n height: \"22\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M0.0078125 3.8147e-06H22.0078V22H0.0078125V3.8147e-06Z\",\n fill: \"white\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n mask: \"url(#mask0_2972_239)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M1.93359 14.4785H20.0664C20.7783 14.4785 21.3555 15.0557 21.3555 15.7676V20.0645C21.3555 20.7764 20.7783 21.3535 20.0664 21.3535H1.93359C1.22169 21.3535 0.644531 20.7764 0.644531 20.0645V15.7676C0.644531 15.0557 1.22169 14.4785 1.93359 14.4785Z\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M7.7832 18.8867L9.7168 16.9531\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M9.7168 18.8867L7.7832 16.9531\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M3.26562 18.8867L5.19922 16.9531\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M5.19922 18.8867L3.26562 16.9531\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M12.2891 18.8867L14.2227 16.9531\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M14.2227 18.8867L12.2891 16.9531\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M16.8066 18.8867L18.7402 16.9531\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M18.7402 18.8867L16.8066 16.9531\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M5.41992 6.22656C5.41992 3.14154 7.92083 0.640626 11.0059 0.640626C14.0909 0.640626 16.5918 3.14154 16.5918 6.22656C16.5918 9.31159 14.0909 11.8125 11.0059 11.8125C7.92083 11.8125 5.41992 9.31159 5.41992 6.22656Z\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M11 3.2207C11.8306 3.2207 12.5039 3.89402 12.5039 4.72461V5.58398C12.5039 6.41457 11.8306 7.08789 11 7.08789C10.1694 7.08789 9.49609 6.41457 9.49609 5.58398V4.72461C9.49609 3.89402 10.1694 3.2207 11 3.2207Z\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M7.99805 10.9277V10.0929C7.99805 8.43172 9.34469 7.08508 11.0059 7.08508C12.667 7.08508 14.0137 8.43172 14.0137 10.0929V10.9277\",\n strokeWidth: \"1.2985\",\n strokeMiterlimit: \"10\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_2972_239\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\"\n })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, __('Security Log', 'security-malware-firewall')));\n };\n const getSettingsTab = () => {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-settings_general\",\n style: {\n display: \"flex\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"22\",\n height: \"22\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_2972_281)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M11.5354 13.0716C11.2269 13.0716 10.9768 13.3217 10.9768 13.6302C10.9766 15.0762 9.80426 16.2481 8.35832 16.2479C6.91238 16.2476 5.74041 15.0753 5.74066 13.6294C5.74092 12.1836 6.91298 11.0117 8.35875 11.0117C8.66727 11.0117 8.91734 10.7616 8.91734 10.4531C8.91734 10.1446 8.66727 9.89453 8.35875 9.89453C6.29616 9.89595 4.62446 11.5676 4.62305 13.6302C4.62305 15.6933 6.29548 17.3657 8.35854 17.3657C10.4216 17.3657 12.094 15.6933 12.094 13.6302C12.094 13.3217 11.8439 13.0716 11.5354 13.0716Z\",\n fill: \"black\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M15.9784 14.9199C15.9251 14.6161 15.6356 14.4129 15.3317 14.4662L14.1625 14.6711C13.9486 14.7086 13.7759 14.8666 13.7195 15.0763C13.5948 15.539 13.4104 15.9835 13.1708 16.3985C13.0616 16.587 13.072 16.8219 13.1974 17L13.8798 17.9724C13.9752 18.1079 13.9593 18.2924 13.842 18.4094L13.1407 19.1107C13.0238 19.2279 12.8396 19.244 12.7041 19.1489L11.7318 18.4666C11.5536 18.3411 11.3187 18.3307 11.1302 18.4399C10.7152 18.6796 10.2708 18.864 9.80805 18.9886C9.59836 19.045 9.44032 19.2178 9.40285 19.4317L9.19531 20.5995C9.16691 20.7626 9.02524 20.8816 8.85973 20.8814H7.86758C7.70206 20.8816 7.56044 20.7626 7.53199 20.5995L7.32703 19.4308C7.28956 19.2169 7.13152 19.0442 6.92184 18.9878C6.45902 18.8631 6.01442 18.6787 5.59926 18.4391C5.41071 18.3298 5.17584 18.3402 4.9977 18.4657L4.02703 19.1476C3.89159 19.2431 3.70709 19.2271 3.59004 19.1098L2.88879 18.4086C2.77174 18.2916 2.75563 18.1075 2.85055 17.972L3.53289 16.9996C3.65832 16.8215 3.66876 16.5866 3.55953 16.3981C3.31981 15.9831 3.13534 15.5386 3.01082 15.0759C2.95445 14.8662 2.78167 14.7082 2.56781 14.6707L1.39906 14.4658C1.2363 14.4374 1.11745 14.2962 1.11719 14.131V13.1389C1.11702 12.9734 1.236 12.8317 1.39906 12.8033L2.56781 12.5983C2.78167 12.5609 2.95445 12.4028 3.01082 12.1931C3.13526 11.7299 3.31972 11.285 3.55953 10.8697C3.66876 10.6812 3.65832 10.4463 3.53289 10.2681L2.85098 9.29876C2.7555 9.16332 2.77149 8.97881 2.88879 8.86177L3.59047 8.16009C3.70743 8.043 3.89168 8.02706 4.02703 8.12228L4.99941 8.80462C5.17756 8.93009 5.41243 8.94049 5.60098 8.83126C6.0161 8.59162 6.4607 8.40716 6.92356 8.28255C7.13324 8.22617 7.29128 8.0534 7.32875 7.83954L7.53371 6.67079C7.58699 6.36692 7.38384 6.07739 7.07996 6.02411C6.77609 5.97083 6.48656 6.17399 6.43328 6.47786L6.28805 7.30716C5.96948 7.41239 5.65937 7.54168 5.36035 7.69388L4.6707 7.21005C4.09131 6.80236 3.30254 6.87111 2.80242 7.3729L2.09859 8.072C1.59728 8.57237 1.52874 9.36089 1.93617 9.94028L2.42 10.6299C2.26776 10.929 2.13847 11.2393 2.03328 11.5581L1.20399 11.7033C0.507118 11.8257 -0.000858177 12.4314 1.19802e-06 13.1389V14.131C-0.000901146 14.8392 0.508021 15.4454 1.2057 15.567L2.035 15.7127C2.14019 16.0313 2.26948 16.3414 2.42172 16.6404L1.93617 17.33C1.52887 17.9095 1.59758 18.698 2.09902 19.1983L2.8007 19.8996C3.30099 20.4011 4.08964 20.4696 4.66899 20.062L5.35649 19.5782C5.6555 19.7304 5.96561 19.8596 6.28418 19.9649L6.42942 20.7942C6.55179 21.4922 7.15894 22.0007 7.86758 21.9986H8.85973C9.56811 21.9995 10.1743 21.4903 10.2957 20.7925L10.4414 19.9632C10.76 19.8579 11.0701 19.7287 11.3691 19.5765L12.0592 20.0603C12.6386 20.4678 13.4273 20.399 13.9275 19.8974L14.6291 19.1958C15.1306 18.6955 15.1993 17.9069 14.792 17.3275L14.3086 16.64C14.4608 16.341 14.59 16.0308 14.6953 15.7123L15.5246 15.5666C15.8285 15.5133 16.0316 15.2238 15.9784 14.9199Z\",\n fill: \"black\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M20.9473 5.07031L20.3629 4.96805C20.2899 4.75733 20.2038 4.55138 20.1051 4.35145L20.4489 3.86719C20.803 3.3636 20.7433 2.6782 20.3075 2.2434L19.7541 1.68867C19.319 1.25194 18.6326 1.19204 18.1286 1.54688L17.6426 1.88762C17.4426 1.78888 17.2367 1.70277 17.026 1.62981L16.9254 1.04801C16.8196 0.441377 16.2925 -0.000986629 15.6768 1.65263e-06H14.8952C14.2794 -0.000771785 13.7525 0.441806 13.6469 1.04844L13.5442 1.63281C13.3335 1.70578 13.1276 1.79188 12.9276 1.89063L12.4416 1.54688C11.938 1.19273 11.2527 1.25241 10.8179 1.68824L10.2653 2.24168C9.82854 2.6767 9.76864 3.36312 10.1235 3.86719L10.4642 4.35317C10.3655 4.5531 10.2794 4.75905 10.2064 4.96977L9.62418 5.07031C9.01772 5.1761 8.5754 5.70294 8.57617 6.31856V7.10016C8.57497 7.71607 9.01742 8.24343 9.62418 8.34926L10.2081 8.45153C10.2811 8.66224 10.3672 8.86819 10.4659 9.06813L10.1248 9.5541C9.77058 10.0575 9.82987 10.7428 10.2653 11.1779L10.8179 11.7305C11.2527 12.1666 11.9384 12.2262 12.4421 11.8718L12.9293 11.5311C13.1293 11.6298 13.3352 11.7159 13.5459 11.7889L13.6486 12.3733C13.7544 12.9797 14.2813 13.4221 14.8969 13.4213H15.6785C16.2943 13.4213 16.8207 12.978 16.9254 12.3711L17.0277 11.7872C17.2384 11.7142 17.4444 11.6281 17.6443 11.5294L18.1286 11.8723C18.6326 12.2273 19.3191 12.1674 19.7541 11.7305L20.3071 11.1775C20.7426 10.7427 20.8025 10.0577 20.4489 9.5541L20.1073 9.06641C20.206 8.86643 20.2921 8.66053 20.3651 8.44981L20.9495 8.34711C21.5546 8.24072 21.9958 7.715 21.9957 7.10059V6.31899C21.9967 5.70307 21.5541 5.17593 20.9473 5.07031ZM20.8786 7.10188C20.8786 7.17479 20.8262 7.23714 20.7544 7.24969L19.8331 7.41125C19.6193 7.44872 19.4465 7.60676 19.3901 7.81645C19.2946 8.1712 19.1531 8.51194 18.9695 8.83008C18.8602 9.01863 18.8706 9.25349 18.9961 9.43164L19.5336 10.1982C19.5757 10.2579 19.5686 10.3392 19.5169 10.3907L18.9643 10.9433C18.9122 10.9933 18.8318 10.9991 18.7731 10.957L18.0052 10.4199C17.8271 10.2945 17.5922 10.2841 17.4037 10.3933C17.0855 10.577 16.7448 10.7184 16.39 10.8139C16.1808 10.871 16.0235 11.0441 15.9866 11.2578L15.825 12.1791C15.8125 12.2509 15.7501 12.3033 15.6772 12.3032H14.8952C14.8222 12.3033 14.7599 12.2509 14.7473 12.1791L14.5854 11.2578C14.5479 11.044 14.3898 10.8712 14.1802 10.8148C13.8253 10.7192 13.4844 10.5778 13.1661 10.3941C12.9775 10.2849 12.7427 10.2953 12.5645 10.4208L11.8001 10.957C11.7404 10.9991 11.6591 10.992 11.6076 10.9403L11.055 10.3877C11.0034 10.3362 10.9963 10.2549 11.0383 10.1952L11.5758 9.42863C11.7013 9.25049 11.7117 9.01562 11.6025 8.82707C11.4187 8.50897 11.2773 8.16819 11.1818 7.81344C11.1246 7.60435 10.9516 7.44722 10.7379 7.41039L9.81668 7.24883C9.74488 7.23628 9.69246 7.17394 9.6925 7.10102L9.69293 6.31899C9.69289 6.24607 9.74531 6.18372 9.81711 6.17117L10.7379 6.00918C10.9518 5.97171 11.1246 5.81367 11.1809 5.60399C11.2765 5.24924 11.4179 4.90849 11.6016 4.59035C11.7108 4.40181 11.7004 4.16694 11.575 3.98879L11.0387 3.22266C10.9967 3.16297 11.0038 3.08168 11.0555 3.03016L11.6085 2.47715C11.66 2.42546 11.7413 2.41837 11.801 2.46039L12.5671 2.99793C12.7453 3.12336 12.9801 3.1338 13.1687 3.02457C13.4868 2.84084 13.8276 2.69943 14.1823 2.60391C14.392 2.54753 14.55 2.37476 14.5875 2.1609L14.7491 1.23965C14.7622 1.16914 14.8234 1.11783 14.8952 1.11719H15.6768C15.7497 1.11715 15.812 1.16957 15.8246 1.24137L15.9861 2.16262C16.0236 2.37647 16.1816 2.54925 16.3913 2.60563C16.7461 2.7011 17.0869 2.84251 17.405 3.02629C17.5935 3.13552 17.8284 3.12512 18.0065 2.99965L18.7731 2.46211C18.8328 2.42009 18.9141 2.42718 18.9656 2.47887L19.5186 3.03188C19.5688 3.08361 19.5751 3.1637 19.5336 3.22266L18.9961 3.99051C18.8706 4.16866 18.8602 4.40353 18.9695 4.59207C19.1531 4.91021 19.2946 5.25096 19.3901 5.60571C19.4465 5.81539 19.6193 5.97343 19.8331 6.0109L20.7544 6.17246C20.8262 6.18501 20.8786 6.24736 20.8786 6.32028V7.10188Z\",\n fill: \"black\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M15.2938 4.03711C13.8199 4.03711 12.625 5.23198 12.625 6.7059C12.6267 8.17912 13.8206 9.37301 15.2938 9.37469C16.7677 9.37469 17.9626 8.17981 17.9626 6.7059C17.9626 5.23198 16.7677 4.03711 15.2938 4.03711ZM15.2938 8.2575C14.4369 8.2575 13.7422 7.56282 13.7422 6.7059C13.742 5.84854 14.4364 5.15309 15.2938 5.15215V5.1543C16.1507 5.1543 16.8454 5.84897 16.8454 6.7059C16.8454 7.56282 16.1507 8.2575 15.2938 8.2575Z\",\n fill: \"black\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_2972_281\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\"\n })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n style: {\n position: \"relative\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, __('General Settings', 'security-malware-firewall')), dataPrepared.keyIsOk));\n };\n const getSummaryTab = () => {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-summary\",\n style: {\n display: \"flex\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"22\",\n height: \"22\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_2972_309)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M17.4381 2.88241H15.4478V1.99201C15.4478 1.70394 15.1335 1.57301 14.8455 1.57301H13.3004C12.9337 0.525466 12.0171 0.00169566 10.9696 0.00169566C9.93357 -0.0372525 8.99125 0.597999 8.63881 1.57301H7.11988C6.8318 1.57301 6.54373 1.70394 6.54373 1.99201V2.88241H4.55336C3.37389 2.89499 2.40896 3.82543 2.35352 5.00365V20.0096C2.35352 21.1619 3.40106 21.9999 4.55336 21.9999H17.4381C18.5904 21.9999 19.6379 21.1619 19.6379 20.0096V5.0037C19.5825 3.82543 18.6176 2.89499 17.4381 2.88241ZM7.59122 2.62055H9.0316C9.28303 2.58987 9.48499 2.39859 9.5292 2.14916C9.68429 1.47376 10.2768 0.988934 10.9696 0.970688C11.6559 0.99149 12.2395 1.47782 12.3837 2.14916C12.4307 2.40721 12.646 2.60095 12.9075 2.62055H14.4003V4.71563H7.59122V2.62055ZM18.5904 20.0097C18.5904 20.5858 18.0142 20.9525 17.4381 20.9525H4.55336C3.97721 20.9525 3.40106 20.5858 3.40106 20.0097V5.0037C3.45449 4.40399 3.95134 3.94097 4.55336 3.93H6.54368V5.26561C6.57135 5.55905 6.82549 5.77856 7.11983 5.76322H14.8454C15.1452 5.77961 15.4073 5.56311 15.4477 5.26561V3.92995H17.438C18.04 3.94097 18.5369 4.40394 18.5903 5.00365V20.0097H18.5904Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M8.98041 11.7102C8.78397 11.5031 8.45785 11.4914 8.24712 11.684L6.57104 13.2815L5.86396 12.5482C5.66751 12.3411 5.34139 12.3295 5.13066 12.522C4.9278 12.7345 4.9278 13.0689 5.13066 13.2815L6.20437 14.3814C6.2973 14.4855 6.43154 14.543 6.57099 14.5385C6.70914 14.5366 6.84092 14.4801 6.93762 14.3814L8.98031 12.4435C9.18282 12.2577 9.19636 11.9429 9.01054 11.7404C9.00102 11.7299 8.99094 11.7198 8.98041 11.7102Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M16.4963 12.8359H10.473C10.1837 12.8359 9.94922 13.0704 9.94922 13.3597C9.94922 13.649 10.1837 13.8835 10.473 13.8835H16.4963C16.7856 13.8835 17.0201 13.649 17.0201 13.3597C17.0201 13.0704 16.7856 12.8359 16.4963 12.8359Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M8.98041 7.51681C8.78397 7.30973 8.45785 7.29805 8.24712 7.49064L6.57104 9.08812L5.86396 8.35482C5.66751 8.14775 5.34139 8.13607 5.13066 8.32865C4.9278 8.54119 4.9278 8.87558 5.13066 9.08812L6.20437 10.188C6.2973 10.2921 6.43154 10.3496 6.57099 10.3452C6.70914 10.3432 6.84092 10.2867 6.93762 10.188L8.98031 8.2501C9.18282 8.06434 9.19636 7.74954 9.01054 7.54708C9.00102 7.53651 8.99094 7.52643 8.98041 7.51681Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M16.4963 8.64258H10.473C10.1837 8.64258 9.94922 8.87707 9.94922 9.16635C9.94922 9.45563 10.1837 9.69012 10.473 9.69012H16.4963C16.7856 9.69012 17.0201 9.45563 17.0201 9.16635C17.0201 8.87707 16.7856 8.64258 16.4963 8.64258Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M8.98041 15.8976C8.78397 15.6906 8.45785 15.6789 8.24712 15.8715L6.57104 17.469L5.86396 16.7357C5.66751 16.5286 5.34139 16.517 5.13066 16.7095C4.9278 16.922 4.9278 17.2564 5.13066 17.469L6.20437 18.5689C6.2973 18.6729 6.43154 18.7305 6.57099 18.726C6.70914 18.7241 6.84092 18.6676 6.93762 18.5689L8.98031 16.6309C9.18282 16.4452 9.19636 16.1304 9.01054 15.9279C9.00102 15.9174 8.99094 15.9073 8.98041 15.8976Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M16.4963 17.0234H10.473C10.1837 17.0234 9.94922 17.2579 9.94922 17.5472C9.94922 17.8365 10.1837 18.071 10.473 18.071H16.4963C16.7856 18.071 17.0201 17.8365 17.0201 17.5472C17.0201 17.2579 16.7856 17.0234 16.4963 17.0234Z\",\n fill: \"#1D2327\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_2972_309\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\"\n })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, __('Summary', 'security-malware-firewall')));\n };\n const getCriticalUpdatesTab = () => {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-critical_updates\",\n style: {\n display: \"flex\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"svg\", {\n width: \"22\",\n height: \"22\",\n viewBox: \"0 0 22 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"g\", {\n clipPath: \"url(#clip0_4058_112)\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M13.2433 21.0002H2.52304C1.53779 21.0002 0.736328 20.2152 0.736328 19.2502V2.95512C0.736328 1.99009 1.53779 1.20508 2.52304 1.20508H8.46673C8.79554 1.20508 9.0623 1.46637 9.0623 1.78843C9.0623 2.11048 8.79554 2.37178 8.46673 2.37178H2.52304C2.19462 2.37178 1.92747 2.63345 1.92747 2.95512V19.2502C1.92747 19.5718 2.19462 19.8335 2.52304 19.8335H13.2433C13.5721 19.8335 13.8389 20.0948 13.8389 20.4168C13.8389 20.7389 13.5721 21.0002 13.2433 21.0002Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M18.4042 10.4999C18.0754 10.4999 17.8087 10.2386 17.8087 9.91657V2.95512C17.8087 2.63345 17.5415 2.37178 17.2131 2.37178H11.2694C10.9406 2.37178 10.6738 2.11048 10.6738 1.78843C10.6738 1.46637 10.9406 1.20508 11.2694 1.20508H17.2131C18.1983 1.20508 18.9998 1.99009 18.9998 2.95512V9.91657C18.9998 10.2386 18.733 10.4999 18.4042 10.4999Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M7.68541 10.8897C7.35661 10.8897 7.08984 10.6284 7.08984 10.3064C7.08984 9.98433 7.35661 9.72304 7.68541 9.72304L16.0234 9.72266C16.3522 9.72266 16.619 9.98395 16.619 10.306C16.619 10.6281 16.3522 10.8894 16.0234 10.8894L7.68541 10.8897Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M4.30822 11.4675C4.1349 11.4675 3.97011 11.3934 3.85728 11.265L3.2617 10.5883C3.04689 10.3441 3.07481 9.97566 3.32374 9.76564C3.57306 9.55486 3.94917 9.58259 4.16359 9.82641L4.30163 9.98326L4.84447 9.34902C5.0554 9.10254 5.43073 9.06988 5.68354 9.27686C5.93557 9.48384 5.96853 9.85147 5.75721 10.0987L4.76459 11.259C4.65253 11.39 4.48697 11.4663 4.31249 11.4675H4.30822Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M7.68541 14.0538C7.35661 14.0538 7.08984 13.7929 7.08984 13.4704C7.08984 13.1484 7.35661 12.8871 7.68541 12.8871L10.8618 12.8867C11.1906 12.8867 11.4574 13.148 11.4574 13.4701C11.4574 13.7921 11.1906 14.0534 10.8618 14.0534L7.68541 14.0538Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M4.30828 14.6339C4.13496 14.6339 3.97017 14.5599 3.85695 14.4315L3.26138 13.7544C3.04696 13.5102 3.07488 13.1418 3.32381 12.9314C3.5739 12.7206 3.94924 12.7491 4.16404 12.9925L4.30208 13.1497L4.84453 12.5155C5.05546 12.2683 5.43157 12.236 5.68321 12.443C5.93563 12.6496 5.96859 13.0176 5.75727 13.2644L4.76465 14.4251C4.65259 14.5565 4.48703 14.6328 4.31255 14.6339L4.30828 14.6339Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M10.8618 17.2175H7.68541C7.35661 17.2175 7.08984 16.9562 7.08984 16.6341C7.08984 16.3121 7.35661 16.0508 7.68541 16.0508H10.8618C11.1906 16.0508 11.4574 16.3121 11.4574 16.6341C11.4574 16.9562 11.1906 17.2175 10.8618 17.2175Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M4.30828 17.798C4.13496 17.798 3.97017 17.7239 3.85695 17.5956L3.26138 16.9184C3.04696 16.6742 3.07488 16.3058 3.32381 16.0954C3.5739 15.8846 3.94924 15.9131 4.16404 16.1566L4.30208 16.3138L4.84453 15.6796C5.05546 15.4323 5.43157 15.4 5.68321 15.607C5.93563 15.8136 5.96859 16.1816 5.75727 16.4285L4.76465 17.5891C4.65259 17.7205 4.48703 17.7969 4.31255 17.798L4.30828 17.798Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M12.8371 8.55578H6.90545C6.2552 8.55578 5.67243 8.2265 5.3475 7.6743C5.02219 7.12285 5.02219 6.46393 5.3475 5.91248L8.31334 0.881098C8.63866 0.329269 9.22104 0 9.87129 0C10.5215 0 11.1039 0.329273 11.4292 0.881098L14.3951 5.91248C14.7204 6.46393 14.7204 7.12285 14.3951 7.6743C14.0701 8.2265 13.4874 8.55578 12.8371 8.55578ZM9.34473 1.46444L6.37889 6.49583C6.22069 6.76433 6.32616 7.0017 6.37889 7.09133C6.43163 7.18096 6.58866 7.38908 6.90545 7.38908H12.8371C13.1539 7.38908 13.3109 7.18095 13.3637 7.09133C13.4164 7.0017 13.5219 6.76433 13.3637 6.49583L10.3978 1.46444C10.2392 1.19594 9.97674 1.16669 9.87128 1.16669C9.76581 1.16669 9.50331 1.19594 9.34473 1.46444Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M9.86901 4.89281C9.54021 4.89281 9.27344 4.63151 9.27344 4.30946V3.02085C9.27344 2.69879 9.54021 2.4375 9.86901 2.4375C10.1978 2.4375 10.4646 2.69879 10.4646 3.02085V4.30946C10.4646 4.63151 10.1978 4.89281 9.86901 4.89281Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M9.86901 6.83538C9.54021 6.83538 9.27344 6.57408 9.27344 6.25203V6.05796C9.27344 5.7359 9.54021 5.47461 9.86901 5.47461C10.1978 5.47461 10.4646 5.7359 10.4646 6.05796V6.25203C10.4646 6.57408 10.1978 6.83538 9.86901 6.83538Z\",\n fill: \"#1D2327\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n x: \"12.5\",\n y: \"12.5\",\n width: \"9\",\n height: \"9\",\n rx: \"0.5\",\n fill: \"#FDFDFD\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M15 15.207V16.457H16.25\",\n strokeWidth: \"0.8\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M19.5859 18.543V17.293H18.3359\",\n strokeWidth: \"0.8\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"path\", {\n d: \"M19.0604 16.2495C18.9548 15.9509 18.7752 15.684 18.5384 15.4736C18.3017 15.2631 18.0155 15.1161 17.7066 15.0462C17.3977 14.9763 17.0761 14.9858 16.7718 15.0738C16.4676 15.1618 16.1906 15.3255 15.9667 15.5495L15 16.4578M19.5833 17.2912L18.6167 18.1995C18.3928 18.4235 18.1158 18.5872 17.8115 18.6752C17.5072 18.7632 17.1856 18.7727 16.8767 18.7028C16.5678 18.6329 16.2816 18.4859 16.0449 18.2755C15.8082 18.065 15.6286 17.7981 15.5229 17.4995\",\n strokeWidth: \"0.8\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"defs\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"clipPath\", {\n id: \"clip0_4058_112\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"rect\", {\n width: \"22\",\n height: \"22\",\n fill: \"white\"\n })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n style: {\n position: \"relative\"\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, __('Critical Updates', 'security-malware-firewall'), \" \", dataPrepared.vulnerabilitiesCount), dataPrepared.vulnerabilitiesDot));\n };\n const getDebugTab = () => {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"h2\", {\n className: \"spbc_tab_nav spbc_tab_nav-debug\",\n style: {\n display: dataPrepared.displayDebug\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n className: \"spbc_tab_nav-title\"\n }, __('Debug', 'security-malware-firewall')));\n };\n return getTabsHeader();\n}\n\n//# sourceURL=webpack:///./js/src/react/components/SpbctPageTabs.js?"); /***/ }), @@ -56,7 +59,228 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac \*******************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -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__);\n/* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom/client */ \"./node_modules/react-dom/client.js\");\n/* harmony import */ var _components_SpbctPage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/SpbctPage */ \"./js/src/react/components/SpbctPage.js\");\n/* harmony import */ var _components_SpbctPageTabs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/SpbctPageTabs */ \"./js/src/react/components/SpbctPageTabs.js\");\n/* harmony import */ var _components_SpbctAboutCT__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/SpbctAboutCT */ \"./js/src/react/components/SpbctAboutCT.js\");\n/* harmony import */ var _components_SpbctPageNetworkDashboard__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/SpbctPageNetworkDashboard */ \"./js/src/react/components/SpbctPageNetworkDashboard.js\");\n\n\n\n\n\n\naddEventListener('spbctPage', event => {\n const targetElement = document.getElementById('spbct-page--react');\n const aboutCTElement = document.getElementById('spbct-page-mob-about-ct--react');\n const data = JSON.parse(targetElement.dataset.data);\n if (targetElement !== null) {\n const root = react_dom_client__WEBPACK_IMPORTED_MODULE_1__.createRoot(targetElement);\n if (data.isNetworkAdminDashboard) {\n root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_SpbctPageNetworkDashboard__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n data: data\n }));\n return;\n }\n root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_SpbctPage__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n data: data\n }));\n }\n if (aboutCTElement !== null) {}\n});\naddEventListener('spbctPageTabs', event => {\n const targetElement = document.getElementById('spbct-page-tabs--react');\n const data = JSON.parse(targetElement.dataset.data);\n if (targetElement !== null) {\n const root = react_dom_client__WEBPACK_IMPORTED_MODULE_1__.createRoot(targetElement);\n root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_SpbctPageTabs__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n data: data\n }));\n }\n});\naddEventListener('spbctMobAboutCT', event => {\n const targetElement = document.getElementById('spbct-page-mob-about-ct--react');\n const data = JSON.parse(targetElement.dataset.data);\n if (targetElement !== null) {\n const root = react_dom_client__WEBPACK_IMPORTED_MODULE_1__.createRoot(targetElement);\n root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_SpbctAboutCT__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n data: data\n }));\n }\n});\n\n//# sourceURL=webpack:///./js/src/react/index.js?"); +"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__);\n/* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom/client */ \"./node_modules/react-dom/client.js\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"./node_modules/@wordpress/i18n/build-module/index.js\");\n/* harmony import */ var _wordpress_react_i18n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/react-i18n */ \"./node_modules/@wordpress/react-i18n/build-module/index.js\");\n/* harmony import */ var _components_SpbctPage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/SpbctPage */ \"./js/src/react/components/SpbctPage.js\");\n/* harmony import */ var _components_SpbctPageTabs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/SpbctPageTabs */ \"./js/src/react/components/SpbctPageTabs.js\");\n/* harmony import */ var _components_SpbctAboutCT__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/SpbctAboutCT */ \"./js/src/react/components/SpbctAboutCT.js\");\n/* harmony import */ var _components_SpbctPageNetworkDashboard__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/SpbctPageNetworkDashboard */ \"./js/src/react/components/SpbctPageNetworkDashboard.js\");\n\n\n\n\nconst i18n = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.createI18n)();\n\n\n\n\naddEventListener('spbctPage', event => {\n const targetElement = document.getElementById('spbct-page--react');\n const aboutCTElement = document.getElementById('spbct-page-mob-about-ct--react');\n const data = JSON.parse(targetElement.dataset.data);\n if (targetElement !== null) {\n const root = react_dom_client__WEBPACK_IMPORTED_MODULE_1__.createRoot(targetElement);\n if (data.isNetworkAdminDashboard) {\n root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_SpbctPageNetworkDashboard__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n data: data\n }));\n return;\n }\n root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_react_i18n__WEBPACK_IMPORTED_MODULE_7__.I18nProvider, {\n i18n: i18n\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_SpbctPage__WEBPACK_IMPORTED_MODULE_3__.SpbctPage, {\n data: data\n })));\n }\n if (aboutCTElement !== null) {}\n});\naddEventListener('spbctPageTabs', event => {\n const targetElement = document.getElementById('spbct-page-tabs--react');\n const data = JSON.parse(targetElement.dataset.data);\n if (targetElement !== null) {\n const root = react_dom_client__WEBPACK_IMPORTED_MODULE_1__.createRoot(targetElement);\n root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_react_i18n__WEBPACK_IMPORTED_MODULE_7__.I18nProvider, {\n i18n: i18n\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_SpbctPageTabs__WEBPACK_IMPORTED_MODULE_4__.SpbctPageTabs, {\n data: data\n })));\n }\n});\naddEventListener('spbctMobAboutCT', event => {\n const targetElement = document.getElementById('spbct-page-mob-about-ct--react');\n const data = JSON.parse(targetElement.dataset.data);\n if (targetElement !== null) {\n const root = react_dom_client__WEBPACK_IMPORTED_MODULE_1__.createRoot(targetElement);\n root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_wordpress_react_i18n__WEBPACK_IMPORTED_MODULE_7__.I18nProvider, {\n i18n: i18n\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_SpbctAboutCT__WEBPACK_IMPORTED_MODULE_5__.SpbctAboutCT, {\n data: data\n })));\n }\n});\n\n//# sourceURL=webpack:///./js/src/react/index.js?"); + +/***/ }), + +/***/ "./node_modules/@tannin/compile/index.js": +/*!***********************************************!*\ + !*** ./node_modules/@tannin/compile/index.js ***! + \***********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ compile)\n/* harmony export */ });\n/* harmony import */ var _tannin_postfix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tannin/postfix */ \"./node_modules/@tannin/postfix/index.js\");\n/* harmony import */ var _tannin_evaluate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tannin/evaluate */ \"./node_modules/@tannin/evaluate/index.js\");\n\n\n\n/**\n * Given a C expression, returns a function which can be called to evaluate its\n * result.\n *\n * @example\n *\n * ```js\n * import compile from '@tannin/compile';\n *\n * const evaluate = compile( 'n > 1' );\n *\n * evaluate( { n: 2 } );\n * // ⇒ true\n * ```\n *\n * @param {string} expression C expression.\n *\n * @return {(variables?:{[variable:string]:*})=>*} Compiled evaluator.\n */\nfunction compile(expression) {\n var terms = (0,_tannin_postfix__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(expression);\n return function (variables) {\n return (0,_tannin_evaluate__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(terms, variables);\n };\n}\n\n//# sourceURL=webpack:///./node_modules/@tannin/compile/index.js?"); + +/***/ }), + +/***/ "./node_modules/@tannin/evaluate/index.js": +/*!************************************************!*\ + !*** ./node_modules/@tannin/evaluate/index.js ***! + \************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ evaluate)\n/* harmony export */ });\n/**\n * Operator callback functions.\n *\n * @type {Object}\n */\nvar OPERATORS = {\n '!': function (a) {\n return !a;\n },\n '*': function (a, b) {\n return a * b;\n },\n '/': function (a, b) {\n return a / b;\n },\n '%': function (a, b) {\n return a % b;\n },\n '+': function (a, b) {\n return a + b;\n },\n '-': function (a, b) {\n return a - b;\n },\n '<': function (a, b) {\n return a < b;\n },\n '<=': function (a, b) {\n return a <= b;\n },\n '>': function (a, b) {\n return a > b;\n },\n '>=': function (a, b) {\n return a >= b;\n },\n '==': function (a, b) {\n return a === b;\n },\n '!=': function (a, b) {\n return a !== b;\n },\n '&&': function (a, b) {\n return a && b;\n },\n '||': function (a, b) {\n return a || b;\n },\n '?:': function (a, b, c) {\n if (a) {\n throw b;\n }\n return c;\n }\n};\n\n/**\n * Given an array of postfix terms and operand variables, returns the result of\n * the postfix evaluation.\n *\n * @example\n *\n * ```js\n * import evaluate from '@tannin/evaluate';\n *\n * // 3 + 4 * 5 / 6 ⇒ '3 4 5 * 6 / +'\n * const terms = [ '3', '4', '5', '*', '6', '/', '+' ];\n *\n * evaluate( terms, {} );\n * // ⇒ 6.333333333333334\n * ```\n *\n * @param {string[]} postfix Postfix terms.\n * @param {Object} variables Operand variables.\n *\n * @return {*} Result of evaluation.\n */\nfunction evaluate(postfix, variables) {\n var stack = [],\n i,\n j,\n args,\n getOperatorResult,\n term,\n value;\n for (i = 0; i < postfix.length; i++) {\n term = postfix[i];\n getOperatorResult = OPERATORS[term];\n if (getOperatorResult) {\n // Pop from stack by number of function arguments.\n j = getOperatorResult.length;\n args = Array(j);\n while (j--) {\n args[j] = stack.pop();\n }\n try {\n value = getOperatorResult.apply(null, args);\n } catch (earlyReturn) {\n return earlyReturn;\n }\n } else if (variables.hasOwnProperty(term)) {\n value = variables[term];\n } else {\n value = +term;\n }\n stack.push(value);\n }\n return stack[0];\n}\n\n//# sourceURL=webpack:///./node_modules/@tannin/evaluate/index.js?"); + +/***/ }), + +/***/ "./node_modules/@tannin/plural-forms/index.js": +/*!****************************************************!*\ + !*** ./node_modules/@tannin/plural-forms/index.js ***! + \****************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ pluralForms)\n/* harmony export */ });\n/* harmony import */ var _tannin_compile__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tannin/compile */ \"./node_modules/@tannin/compile/index.js\");\n\n\n/**\n * Given a C expression, returns a function which, when called with a value,\n * evaluates the result with the value assumed to be the \"n\" variable of the\n * expression. The result will be coerced to its numeric equivalent.\n *\n * @param {string} expression C expression.\n *\n * @return {Function} Evaluator function.\n */\nfunction pluralForms(expression) {\n var evaluate = (0,_tannin_compile__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(expression);\n return function (n) {\n return +evaluate({\n n: n\n });\n };\n}\n\n//# sourceURL=webpack:///./node_modules/@tannin/plural-forms/index.js?"); + +/***/ }), + +/***/ "./node_modules/@tannin/postfix/index.js": +/*!***********************************************!*\ + !*** ./node_modules/@tannin/postfix/index.js ***! + \***********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ postfix)\n/* harmony export */ });\nvar PRECEDENCE, OPENERS, TERMINATORS, PATTERN;\n\n/**\n * Operator precedence mapping.\n *\n * @type {Object}\n */\nPRECEDENCE = {\n '(': 9,\n '!': 8,\n '*': 7,\n '/': 7,\n '%': 7,\n '+': 6,\n '-': 6,\n '<': 5,\n '<=': 5,\n '>': 5,\n '>=': 5,\n '==': 4,\n '!=': 4,\n '&&': 3,\n '||': 2,\n '?': 1,\n '?:': 1\n};\n\n/**\n * Characters which signal pair opening, to be terminated by terminators.\n *\n * @type {string[]}\n */\nOPENERS = ['(', '?'];\n\n/**\n * Characters which signal pair termination, the value an array with the\n * opener as its first member. The second member is an optional operator\n * replacement to push to the stack.\n *\n * @type {string[]}\n */\nTERMINATORS = {\n ')': ['('],\n ':': ['?', '?:']\n};\n\n/**\n * Pattern matching operators and openers.\n *\n * @type {RegExp}\n */\nPATTERN = /<=|>=|==|!=|&&|\\|\\||\\?:|\\(|!|\\*|\\/|%|\\+|-|<|>|\\?|\\)|:/;\n\n/**\n * Given a C expression, returns the equivalent postfix (Reverse Polish)\n * notation terms as an array.\n *\n * If a postfix string is desired, simply `.join( ' ' )` the result.\n *\n * @example\n *\n * ```js\n * import postfix from '@tannin/postfix';\n *\n * postfix( 'n > 1' );\n * // ⇒ [ 'n', '1', '>' ]\n * ```\n *\n * @param {string} expression C expression.\n *\n * @return {string[]} Postfix terms.\n */\nfunction postfix(expression) {\n var terms = [],\n stack = [],\n match,\n operator,\n term,\n element;\n while (match = expression.match(PATTERN)) {\n operator = match[0];\n\n // Term is the string preceding the operator match. It may contain\n // whitespace, and may be empty (if operator is at beginning).\n term = expression.substr(0, match.index).trim();\n if (term) {\n terms.push(term);\n }\n while (element = stack.pop()) {\n if (TERMINATORS[operator]) {\n if (TERMINATORS[operator][0] === element) {\n // Substitution works here under assumption that because\n // the assigned operator will no longer be a terminator, it\n // will be pushed to the stack during the condition below.\n operator = TERMINATORS[operator][1] || operator;\n break;\n }\n } else if (OPENERS.indexOf(element) >= 0 || PRECEDENCE[element] < PRECEDENCE[operator]) {\n // Push to stack if either an opener or when pop reveals an\n // element of lower precedence.\n stack.push(element);\n break;\n }\n\n // For each popped from stack, push to terms.\n terms.push(element);\n }\n if (!TERMINATORS[operator]) {\n stack.push(operator);\n }\n\n // Slice matched fragment from expression to continue match.\n expression = expression.substr(match.index + operator.length);\n }\n\n // Push remainder of operand, if exists, to terms.\n expression = expression.trim();\n if (expression) {\n terms.push(expression);\n }\n\n // Pop remaining items from stack into terms.\n return terms.concat(stack.reverse());\n}\n\n//# sourceURL=webpack:///./node_modules/@tannin/postfix/index.js?"); + +/***/ }), + +/***/ "./node_modules/@wordpress/hooks/build-module/createAddHook.js": +/*!*********************************************************************!*\ + !*** ./node_modules/@wordpress/hooks/build-module/createAddHook.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateNamespace.js */ \"./node_modules/@wordpress/hooks/build-module/validateNamespace.js\");\n/* harmony import */ var _validateHookName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./validateHookName.js */ \"./node_modules/@wordpress/hooks/build-module/validateHookName.js\");\n/**\n * Internal dependencies\n */\n\n\n\n/**\n * @callback AddHook\n *\n * Adds the hook to the appropriate hooks container.\n *\n * @param {string} hookName Name of hook to add\n * @param {string} namespace The unique namespace identifying the callback in the form `vendor/plugin/function`.\n * @param {import('.').Callback} callback Function to call when the hook is run\n * @param {number} [priority=10] Priority of this hook\n */\n\n/**\n * Returns a function which, when invoked, will add a hook.\n *\n * @param {import('.').Hooks} hooks Hooks instance.\n * @param {import('.').StoreKey} storeKey\n *\n * @return {AddHook} Function that adds a new hook.\n */\nfunction createAddHook(hooks, storeKey) {\n return function addHook(hookName, namespace, callback, priority = 10) {\n const hooksStore = hooks[storeKey];\n if (!(0,_validateHookName_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(hookName)) {\n return;\n }\n if (!(0,_validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(namespace)) {\n return;\n }\n if ('function' !== typeof callback) {\n // eslint-disable-next-line no-console\n console.error('The hook callback must be a function.');\n return;\n }\n\n // Validate numeric priority\n if ('number' !== typeof priority) {\n // eslint-disable-next-line no-console\n console.error('If specified, the hook priority must be a number.');\n return;\n }\n const handler = {\n callback,\n priority,\n namespace\n };\n if (hooksStore[hookName]) {\n // Find the correct insert index of the new hook.\n const handlers = hooksStore[hookName].handlers;\n\n /** @type {number} */\n let i;\n for (i = handlers.length; i > 0; i--) {\n if (priority >= handlers[i - 1].priority) {\n break;\n }\n }\n if (i === handlers.length) {\n // If append, operate via direct assignment.\n handlers[i] = handler;\n } else {\n // Otherwise, insert before index via splice.\n handlers.splice(i, 0, handler);\n }\n\n // We may also be currently executing this hook. If the callback\n // we're adding would come after the current callback, there's no\n // problem; otherwise we need to increase the execution index of\n // any other runs by 1 to account for the added element.\n hooksStore.__current.forEach(hookInfo => {\n if (hookInfo.name === hookName && hookInfo.currentIndex >= i) {\n hookInfo.currentIndex++;\n }\n });\n } else {\n // This is the first hook of its type.\n hooksStore[hookName] = {\n handlers: [handler],\n runs: 0\n };\n }\n if (hookName !== 'hookAdded') {\n hooks.doAction('hookAdded', hookName, namespace, callback, priority);\n }\n };\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createAddHook);\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createAddHook.js?"); + +/***/ }), + +/***/ "./node_modules/@wordpress/hooks/build-module/createCurrentHook.js": +/*!*************************************************************************!*\ + !*** ./node_modules/@wordpress/hooks/build-module/createCurrentHook.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/**\n * Returns a function which, when invoked, will return the name of the\n * currently running hook, or `null` if no hook of the given type is currently\n * running.\n *\n * @param {import('.').Hooks} hooks Hooks instance.\n * @param {import('.').StoreKey} storeKey\n *\n * @return {() => string | null} Function that returns the current hook name or null.\n */\nfunction createCurrentHook(hooks, storeKey) {\n return function currentHook() {\n var _currentArray$at$name;\n const hooksStore = hooks[storeKey];\n const currentArray = Array.from(hooksStore.__current);\n return (_currentArray$at$name = currentArray.at(-1)?.name) !== null && _currentArray$at$name !== void 0 ? _currentArray$at$name : null;\n };\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createCurrentHook);\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createCurrentHook.js?"); + +/***/ }), + +/***/ "./node_modules/@wordpress/hooks/build-module/createDidHook.js": +/*!*********************************************************************!*\ + !*** ./node_modules/@wordpress/hooks/build-module/createDidHook.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validateHookName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateHookName.js */ \"./node_modules/@wordpress/hooks/build-module/validateHookName.js\");\n/**\n * Internal dependencies\n */\n\n\n/**\n * @callback DidHook\n *\n * Returns the number of times an action has been fired.\n *\n * @param {string} hookName The hook name to check.\n *\n * @return {number | undefined} The number of times the hook has run.\n */\n\n/**\n * Returns a function which, when invoked, will return the number of times a\n * hook has been called.\n *\n * @param {import('.').Hooks} hooks Hooks instance.\n * @param {import('.').StoreKey} storeKey\n *\n * @return {DidHook} Function that returns a hook's call count.\n */\nfunction createDidHook(hooks, storeKey) {\n return function didHook(hookName) {\n const hooksStore = hooks[storeKey];\n if (!(0,_validateHookName_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(hookName)) {\n return;\n }\n return hooksStore[hookName] && hooksStore[hookName].runs ? hooksStore[hookName].runs : 0;\n };\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createDidHook);\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createDidHook.js?"); + +/***/ }), + +/***/ "./node_modules/@wordpress/hooks/build-module/createDoingHook.js": +/*!***********************************************************************!*\ + !*** ./node_modules/@wordpress/hooks/build-module/createDoingHook.js ***! + \***********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/**\n * @callback DoingHook\n * Returns whether a hook is currently being executed.\n *\n * @param {string} [hookName] The name of the hook to check for. If\n * omitted, will check for any hook being executed.\n *\n * @return {boolean} Whether the hook is being executed.\n */\n\n/**\n * Returns a function which, when invoked, will return whether a hook is\n * currently being executed.\n *\n * @param {import('.').Hooks} hooks Hooks instance.\n * @param {import('.').StoreKey} storeKey\n *\n * @return {DoingHook} Function that returns whether a hook is currently\n * being executed.\n */\nfunction createDoingHook(hooks, storeKey) {\n return function doingHook(hookName) {\n const hooksStore = hooks[storeKey];\n\n // If the hookName was not passed, check for any current hook.\n if ('undefined' === typeof hookName) {\n return hooksStore.__current.size > 0;\n }\n\n // Find if the `hookName` hook is in `__current`.\n return Array.from(hooksStore.__current).some(hook => hook.name === hookName);\n };\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createDoingHook);\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createDoingHook.js?"); + +/***/ }), + +/***/ "./node_modules/@wordpress/hooks/build-module/createHasHook.js": +/*!*********************************************************************!*\ + !*** ./node_modules/@wordpress/hooks/build-module/createHasHook.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/**\n * @callback HasHook\n *\n * Returns whether any handlers are attached for the given hookName and optional namespace.\n *\n * @param {string} hookName The name of the hook to check for.\n * @param {string} [namespace] Optional. The unique namespace identifying the callback\n * in the form `vendor/plugin/function`.\n *\n * @return {boolean} Whether there are handlers that are attached to the given hook.\n */\n/**\n * Returns a function which, when invoked, will return whether any handlers are\n * attached to a particular hook.\n *\n * @param {import('.').Hooks} hooks Hooks instance.\n * @param {import('.').StoreKey} storeKey\n *\n * @return {HasHook} Function that returns whether any handlers are\n * attached to a particular hook and optional namespace.\n */\nfunction createHasHook(hooks, storeKey) {\n return function hasHook(hookName, namespace) {\n const hooksStore = hooks[storeKey];\n\n // Use the namespace if provided.\n if ('undefined' !== typeof namespace) {\n return hookName in hooksStore && hooksStore[hookName].handlers.some(hook => hook.namespace === namespace);\n }\n return hookName in hooksStore;\n };\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createHasHook);\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createHasHook.js?"); + +/***/ }), + +/***/ "./node_modules/@wordpress/hooks/build-module/createHooks.js": +/*!*******************************************************************!*\ + !*** ./node_modules/@wordpress/hooks/build-module/createHooks.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ _Hooks: () => (/* binding */ _Hooks),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _createAddHook__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createAddHook */ \"./node_modules/@wordpress/hooks/build-module/createAddHook.js\");\n/* harmony import */ var _createRemoveHook__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createRemoveHook */ \"./node_modules/@wordpress/hooks/build-module/createRemoveHook.js\");\n/* harmony import */ var _createHasHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createHasHook */ \"./node_modules/@wordpress/hooks/build-module/createHasHook.js\");\n/* harmony import */ var _createRunHook__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createRunHook */ \"./node_modules/@wordpress/hooks/build-module/createRunHook.js\");\n/* harmony import */ var _createCurrentHook__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./createCurrentHook */ \"./node_modules/@wordpress/hooks/build-module/createCurrentHook.js\");\n/* harmony import */ var _createDoingHook__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createDoingHook */ \"./node_modules/@wordpress/hooks/build-module/createDoingHook.js\");\n/* harmony import */ var _createDidHook__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./createDidHook */ \"./node_modules/@wordpress/hooks/build-module/createDidHook.js\");\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n\n/**\n * Internal class for constructing hooks. Use `createHooks()` function\n *\n * Note, it is necessary to expose this class to make its type public.\n *\n * @private\n */\nclass _Hooks {\n constructor() {\n /** @type {import('.').Store} actions */\n this.actions = Object.create(null);\n this.actions.__current = new Set();\n\n /** @type {import('.').Store} filters */\n this.filters = Object.create(null);\n this.filters.__current = new Set();\n this.addAction = (0,_createAddHook__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this, 'actions');\n this.addFilter = (0,_createAddHook__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this, 'filters');\n this.removeAction = (0,_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(this, 'actions');\n this.removeFilter = (0,_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(this, 'filters');\n this.hasAction = (0,_createHasHook__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this, 'actions');\n this.hasFilter = (0,_createHasHook__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this, 'filters');\n this.removeAllActions = (0,_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(this, 'actions', true);\n this.removeAllFilters = (0,_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(this, 'filters', true);\n this.doAction = (0,_createRunHook__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this, 'actions', false, false);\n this.doActionAsync = (0,_createRunHook__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this, 'actions', false, true);\n this.applyFilters = (0,_createRunHook__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this, 'filters', true, false);\n this.applyFiltersAsync = (0,_createRunHook__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this, 'filters', true, true);\n this.currentAction = (0,_createCurrentHook__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(this, 'actions');\n this.currentFilter = (0,_createCurrentHook__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(this, 'filters');\n this.doingAction = (0,_createDoingHook__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(this, 'actions');\n this.doingFilter = (0,_createDoingHook__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(this, 'filters');\n this.didAction = (0,_createDidHook__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(this, 'actions');\n this.didFilter = (0,_createDidHook__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(this, 'filters');\n }\n}\n\n/** @typedef {_Hooks} Hooks */\n\n/**\n * Returns an instance of the hooks object.\n *\n * @return {Hooks} A Hooks instance.\n */\nfunction createHooks() {\n return new _Hooks();\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createHooks);\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createHooks.js?"); + +/***/ }), + +/***/ "./node_modules/@wordpress/hooks/build-module/createRemoveHook.js": +/*!************************************************************************!*\ + !*** ./node_modules/@wordpress/hooks/build-module/createRemoveHook.js ***! + \************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateNamespace.js */ \"./node_modules/@wordpress/hooks/build-module/validateNamespace.js\");\n/* harmony import */ var _validateHookName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./validateHookName.js */ \"./node_modules/@wordpress/hooks/build-module/validateHookName.js\");\n/**\n * Internal dependencies\n */\n\n\n\n/**\n * @callback RemoveHook\n * Removes the specified callback (or all callbacks) from the hook with a given hookName\n * and namespace.\n *\n * @param {string} hookName The name of the hook to modify.\n * @param {string} namespace The unique namespace identifying the callback in the\n * form `vendor/plugin/function`.\n *\n * @return {number | undefined} The number of callbacks removed.\n */\n\n/**\n * Returns a function which, when invoked, will remove a specified hook or all\n * hooks by the given name.\n *\n * @param {import('.').Hooks} hooks Hooks instance.\n * @param {import('.').StoreKey} storeKey\n * @param {boolean} [removeAll=false] Whether to remove all callbacks for a hookName,\n * without regard to namespace. Used to create\n * `removeAll*` functions.\n *\n * @return {RemoveHook} Function that removes hooks.\n */\nfunction createRemoveHook(hooks, storeKey, removeAll = false) {\n return function removeHook(hookName, namespace) {\n const hooksStore = hooks[storeKey];\n if (!(0,_validateHookName_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(hookName)) {\n return;\n }\n if (!removeAll && !(0,_validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(namespace)) {\n return;\n }\n\n // Bail if no hooks exist by this name.\n if (!hooksStore[hookName]) {\n return 0;\n }\n let handlersRemoved = 0;\n if (removeAll) {\n handlersRemoved = hooksStore[hookName].handlers.length;\n hooksStore[hookName] = {\n runs: hooksStore[hookName].runs,\n handlers: []\n };\n } else {\n // Try to find the specified callback to remove.\n const handlers = hooksStore[hookName].handlers;\n for (let i = handlers.length - 1; i >= 0; i--) {\n if (handlers[i].namespace === namespace) {\n handlers.splice(i, 1);\n handlersRemoved++;\n // This callback may also be part of a hook that is\n // currently executing. If the callback we're removing\n // comes after the current callback, there's no problem;\n // otherwise we need to decrease the execution index of any\n // other runs by 1 to account for the removed element.\n hooksStore.__current.forEach(hookInfo => {\n if (hookInfo.name === hookName && hookInfo.currentIndex >= i) {\n hookInfo.currentIndex--;\n }\n });\n }\n }\n }\n if (hookName !== 'hookRemoved') {\n hooks.doAction('hookRemoved', hookName, namespace);\n }\n return handlersRemoved;\n };\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createRemoveHook);\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createRemoveHook.js?"); + +/***/ }), + +/***/ "./node_modules/@wordpress/hooks/build-module/createRunHook.js": +/*!*********************************************************************!*\ + !*** ./node_modules/@wordpress/hooks/build-module/createRunHook.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/**\n * Returns a function which, when invoked, will execute all callbacks\n * registered to a hook of the specified type, optionally returning the final\n * value of the call chain.\n *\n * @param {import('.').Hooks} hooks Hooks instance.\n * @param {import('.').StoreKey} storeKey\n * @param {boolean} returnFirstArg Whether each hook callback is expected to return its first argument.\n * @param {boolean} async Whether the hook callback should be run asynchronously\n *\n * @return {(hookName:string, ...args: unknown[]) => undefined|unknown} Function that runs hook callbacks.\n */\nfunction createRunHook(hooks, storeKey, returnFirstArg, async) {\n return function runHook(hookName, ...args) {\n const hooksStore = hooks[storeKey];\n if (!hooksStore[hookName]) {\n hooksStore[hookName] = {\n handlers: [],\n runs: 0\n };\n }\n hooksStore[hookName].runs++;\n const handlers = hooksStore[hookName].handlers;\n\n // The following code is stripped from production builds.\n if (true) {\n // Handle any 'all' hooks registered.\n if ('hookAdded' !== hookName && hooksStore.all) {\n handlers.push(...hooksStore.all.handlers);\n }\n }\n if (!handlers || !handlers.length) {\n return returnFirstArg ? args[0] : undefined;\n }\n const hookInfo = {\n name: hookName,\n currentIndex: 0\n };\n async function asyncRunner() {\n try {\n hooksStore.__current.add(hookInfo);\n let result = returnFirstArg ? args[0] : undefined;\n while (hookInfo.currentIndex < handlers.length) {\n const handler = handlers[hookInfo.currentIndex];\n result = await handler.callback.apply(null, args);\n if (returnFirstArg) {\n args[0] = result;\n }\n hookInfo.currentIndex++;\n }\n return returnFirstArg ? result : undefined;\n } finally {\n hooksStore.__current.delete(hookInfo);\n }\n }\n function syncRunner() {\n try {\n hooksStore.__current.add(hookInfo);\n let result = returnFirstArg ? args[0] : undefined;\n while (hookInfo.currentIndex < handlers.length) {\n const handler = handlers[hookInfo.currentIndex];\n result = handler.callback.apply(null, args);\n if (returnFirstArg) {\n args[0] = result;\n }\n hookInfo.currentIndex++;\n }\n return returnFirstArg ? result : undefined;\n } finally {\n hooksStore.__current.delete(hookInfo);\n }\n }\n return (async ? asyncRunner : syncRunner)();\n };\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createRunHook);\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createRunHook.js?"); + +/***/ }), + +/***/ "./node_modules/@wordpress/hooks/build-module/index.js": +/*!*************************************************************!*\ + !*** ./node_modules/@wordpress/hooks/build-module/index.js ***! + \*************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ actions: () => (/* binding */ actions),\n/* harmony export */ addAction: () => (/* binding */ addAction),\n/* harmony export */ addFilter: () => (/* binding */ addFilter),\n/* harmony export */ applyFilters: () => (/* binding */ applyFilters),\n/* harmony export */ applyFiltersAsync: () => (/* binding */ applyFiltersAsync),\n/* harmony export */ createHooks: () => (/* reexport safe */ _createHooks__WEBPACK_IMPORTED_MODULE_0__[\"default\"]),\n/* harmony export */ currentAction: () => (/* binding */ currentAction),\n/* harmony export */ currentFilter: () => (/* binding */ currentFilter),\n/* harmony export */ defaultHooks: () => (/* binding */ defaultHooks),\n/* harmony export */ didAction: () => (/* binding */ didAction),\n/* harmony export */ didFilter: () => (/* binding */ didFilter),\n/* harmony export */ doAction: () => (/* binding */ doAction),\n/* harmony export */ doActionAsync: () => (/* binding */ doActionAsync),\n/* harmony export */ doingAction: () => (/* binding */ doingAction),\n/* harmony export */ doingFilter: () => (/* binding */ doingFilter),\n/* harmony export */ filters: () => (/* binding */ filters),\n/* harmony export */ hasAction: () => (/* binding */ hasAction),\n/* harmony export */ hasFilter: () => (/* binding */ hasFilter),\n/* harmony export */ removeAction: () => (/* binding */ removeAction),\n/* harmony export */ removeAllActions: () => (/* binding */ removeAllActions),\n/* harmony export */ removeAllFilters: () => (/* binding */ removeAllFilters),\n/* harmony export */ removeFilter: () => (/* binding */ removeFilter)\n/* harmony export */ });\n/* harmony import */ var _createHooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createHooks */ \"./node_modules/@wordpress/hooks/build-module/createHooks.js\");\n/**\n * Internal dependencies\n */\n\n\n/** @typedef {(...args: any[])=>any} Callback */\n\n/**\n * @typedef Handler\n * @property {Callback} callback The callback\n * @property {string} namespace The namespace\n * @property {number} priority The namespace\n */\n\n/**\n * @typedef Hook\n * @property {Handler[]} handlers Array of handlers\n * @property {number} runs Run counter\n */\n\n/**\n * @typedef Current\n * @property {string} name Hook name\n * @property {number} currentIndex The index\n */\n\n/**\n * @typedef {Record & {__current: Set}} Store\n */\n\n/**\n * @typedef {'actions' | 'filters'} StoreKey\n */\n\n/**\n * @typedef {import('./createHooks').Hooks} Hooks\n */\n\nconst defaultHooks = (0,_createHooks__WEBPACK_IMPORTED_MODULE_0__[\"default\"])();\nconst {\n addAction,\n addFilter,\n removeAction,\n removeFilter,\n hasAction,\n hasFilter,\n removeAllActions,\n removeAllFilters,\n doAction,\n doActionAsync,\n applyFilters,\n applyFiltersAsync,\n currentAction,\n currentFilter,\n doingAction,\n doingFilter,\n didAction,\n didFilter,\n actions,\n filters\n} = defaultHooks;\n\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/index.js?"); + +/***/ }), + +/***/ "./node_modules/@wordpress/hooks/build-module/validateHookName.js": +/*!************************************************************************!*\ + !*** ./node_modules/@wordpress/hooks/build-module/validateHookName.js ***! + \************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/**\n * Validate a hookName string.\n *\n * @param {string} hookName The hook name to validate. Should be a non empty string containing\n * only numbers, letters, dashes, periods and underscores. Also,\n * the hook name cannot begin with `__`.\n *\n * @return {boolean} Whether the hook name is valid.\n */\nfunction validateHookName(hookName) {\n if ('string' !== typeof hookName || '' === hookName) {\n // eslint-disable-next-line no-console\n console.error('The hook name must be a non-empty string.');\n return false;\n }\n if (/^__/.test(hookName)) {\n // eslint-disable-next-line no-console\n console.error('The hook name cannot begin with `__`.');\n return false;\n }\n if (!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(hookName)) {\n // eslint-disable-next-line no-console\n console.error('The hook name can only contain numbers, letters, dashes, periods and underscores.');\n return false;\n }\n return true;\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validateHookName);\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/validateHookName.js?"); + +/***/ }), + +/***/ "./node_modules/@wordpress/hooks/build-module/validateNamespace.js": +/*!*************************************************************************!*\ + !*** ./node_modules/@wordpress/hooks/build-module/validateNamespace.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/**\n * Validate a namespace string.\n *\n * @param {string} namespace The namespace to validate - should take the form\n * `vendor/plugin/function`.\n *\n * @return {boolean} Whether the namespace is valid.\n */\nfunction validateNamespace(namespace) {\n if ('string' !== typeof namespace || '' === namespace) {\n // eslint-disable-next-line no-console\n console.error('The namespace must be a non-empty string.');\n return false;\n }\n if (!/^[a-zA-Z][a-zA-Z0-9_.\\-\\/]*$/.test(namespace)) {\n // eslint-disable-next-line no-console\n console.error('The namespace can only contain numbers, letters, dashes, periods, underscores and slashes.');\n return false;\n }\n return true;\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validateNamespace);\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/validateNamespace.js?"); + +/***/ }), + +/***/ "./node_modules/@wordpress/i18n/build-module/create-i18n.js": +/*!******************************************************************!*\ + !*** ./node_modules/@wordpress/i18n/build-module/create-i18n.js ***! + \******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ createI18n: () => (/* binding */ createI18n)\n/* harmony export */ });\n/* harmony import */ var tannin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tannin */ \"./node_modules/tannin/index.js\");\n/**\n * External dependencies\n */\n\n\n/**\n * @typedef {Record} LocaleData\n */\n\n/**\n * Default locale data to use for Tannin domain when not otherwise provided.\n * Assumes an English plural forms expression.\n *\n * @type {LocaleData}\n */\nconst DEFAULT_LOCALE_DATA = {\n '': {\n /** @param {number} n */\n plural_forms(n) {\n return n === 1 ? 0 : 1;\n }\n }\n};\n\n/*\n * Regular expression that matches i18n hooks like `i18n.gettext`, `i18n.ngettext`,\n * `i18n.gettext_domain` or `i18n.ngettext_with_context` or `i18n.has_translation`.\n */\nconst I18N_HOOK_REGEXP = /^i18n\\.(n?gettext|has_translation)(_|$)/;\n\n/**\n * @typedef {(domain?: string) => LocaleData} GetLocaleData\n *\n * Returns locale data by domain in a\n * Jed-formatted JSON object shape.\n *\n * @see http://messageformat.github.io/Jed/\n */\n/**\n * @typedef {(data?: LocaleData, domain?: string) => void} SetLocaleData\n *\n * Merges locale data into the Tannin instance by domain. Note that this\n * function will overwrite the domain configuration. Accepts data in a\n * Jed-formatted JSON object shape.\n *\n * @see http://messageformat.github.io/Jed/\n */\n/**\n * @typedef {(data?: LocaleData, domain?: string) => void} AddLocaleData\n *\n * Merges locale data into the Tannin instance by domain. Note that this\n * function will also merge the domain configuration. Accepts data in a\n * Jed-formatted JSON object shape.\n *\n * @see http://messageformat.github.io/Jed/\n */\n/**\n * @typedef {(data?: LocaleData, domain?: string) => void} ResetLocaleData\n *\n * Resets all current Tannin instance locale data and sets the specified\n * locale data for the domain. Accepts data in a Jed-formatted JSON object shape.\n *\n * @see http://messageformat.github.io/Jed/\n */\n/** @typedef {() => void} SubscribeCallback */\n/** @typedef {() => void} UnsubscribeCallback */\n/**\n * @typedef {(callback: SubscribeCallback) => UnsubscribeCallback} Subscribe\n *\n * Subscribes to changes of locale data\n */\n/**\n * @typedef {(domain?: string) => string} GetFilterDomain\n * Retrieve the domain to use when calling domain-specific filters.\n */\n/**\n * @typedef {(text: string, domain?: string) => string} __\n *\n * Retrieve the translation of text.\n *\n * @see https://developer.wordpress.org/reference/functions/__/\n */\n/**\n * @typedef {(text: string, context: string, domain?: string) => string} _x\n *\n * Retrieve translated string with gettext context.\n *\n * @see https://developer.wordpress.org/reference/functions/_x/\n */\n/**\n * @typedef {(single: string, plural: string, number: number, domain?: string) => string} _n\n *\n * Translates and retrieves the singular or plural form based on the supplied\n * number.\n *\n * @see https://developer.wordpress.org/reference/functions/_n/\n */\n/**\n * @typedef {(single: string, plural: string, number: number, context: string, domain?: string) => string} _nx\n *\n * Translates and retrieves the singular or plural form based on the supplied\n * number, with gettext context.\n *\n * @see https://developer.wordpress.org/reference/functions/_nx/\n */\n/**\n * @typedef {() => boolean} IsRtl\n *\n * Check if current locale is RTL.\n *\n * **RTL (Right To Left)** is a locale property indicating that text is written from right to left.\n * For example, the `he` locale (for Hebrew) specifies right-to-left. Arabic (ar) is another common\n * language written RTL. The opposite of RTL, LTR (Left To Right) is used in other languages,\n * including English (`en`, `en-US`, `en-GB`, etc.), Spanish (`es`), and French (`fr`).\n */\n/**\n * @typedef {(single: string, context?: string, domain?: string) => boolean} HasTranslation\n *\n * Check if there is a translation for a given string in singular form.\n */\n/** @typedef {import('@wordpress/hooks').Hooks} Hooks */\n\n/**\n * An i18n instance\n *\n * @typedef I18n\n * @property {GetLocaleData} getLocaleData Returns locale data by domain in a Jed-formatted JSON object shape.\n * @property {SetLocaleData} setLocaleData Merges locale data into the Tannin instance by domain. Note that this\n * function will overwrite the domain configuration. Accepts data in a\n * Jed-formatted JSON object shape.\n * @property {AddLocaleData} addLocaleData Merges locale data into the Tannin instance by domain. Note that this\n * function will also merge the domain configuration. Accepts data in a\n * Jed-formatted JSON object shape.\n * @property {ResetLocaleData} resetLocaleData Resets all current Tannin instance locale data and sets the specified\n * locale data for the domain. Accepts data in a Jed-formatted JSON object shape.\n * @property {Subscribe} subscribe Subscribes to changes of Tannin locale data.\n * @property {__} __ Retrieve the translation of text.\n * @property {_x} _x Retrieve translated string with gettext context.\n * @property {_n} _n Translates and retrieves the singular or plural form based on the supplied\n * number.\n * @property {_nx} _nx Translates and retrieves the singular or plural form based on the supplied\n * number, with gettext context.\n * @property {IsRtl} isRTL Check if current locale is RTL.\n * @property {HasTranslation} hasTranslation Check if there is a translation for a given string.\n */\n\n/**\n * Create an i18n instance\n *\n * @param {LocaleData} [initialData] Locale data configuration.\n * @param {string} [initialDomain] Domain for which configuration applies.\n * @param {Hooks} [hooks] Hooks implementation.\n *\n * @return {I18n} I18n instance.\n */\nconst createI18n = (initialData, initialDomain, hooks) => {\n /**\n * The underlying instance of Tannin to which exported functions interface.\n *\n * @type {Tannin}\n */\n const tannin = new tannin__WEBPACK_IMPORTED_MODULE_0__[\"default\"]({});\n const listeners = new Set();\n const notifyListeners = () => {\n listeners.forEach(listener => listener());\n };\n\n /**\n * Subscribe to changes of locale data.\n *\n * @param {SubscribeCallback} callback Subscription callback.\n * @return {UnsubscribeCallback} Unsubscribe callback.\n */\n const subscribe = callback => {\n listeners.add(callback);\n return () => listeners.delete(callback);\n };\n\n /** @type {GetLocaleData} */\n const getLocaleData = (domain = 'default') => tannin.data[domain];\n\n /**\n * @param {LocaleData} [data]\n * @param {string} [domain]\n */\n const doSetLocaleData = (data, domain = 'default') => {\n tannin.data[domain] = {\n ...tannin.data[domain],\n ...data\n };\n\n // Populate default domain configuration (supported locale date which omits\n // a plural forms expression).\n tannin.data[domain][''] = {\n ...DEFAULT_LOCALE_DATA[''],\n ...tannin.data[domain]?.['']\n };\n\n // Clean up cached plural forms functions cache as it might be updated.\n delete tannin.pluralForms[domain];\n };\n\n /** @type {SetLocaleData} */\n const setLocaleData = (data, domain) => {\n doSetLocaleData(data, domain);\n notifyListeners();\n };\n\n /** @type {AddLocaleData} */\n const addLocaleData = (data, domain = 'default') => {\n tannin.data[domain] = {\n ...tannin.data[domain],\n ...data,\n // Populate default domain configuration (supported locale date which omits\n // a plural forms expression).\n '': {\n ...DEFAULT_LOCALE_DATA[''],\n ...tannin.data[domain]?.[''],\n ...data?.['']\n }\n };\n\n // Clean up cached plural forms functions cache as it might be updated.\n delete tannin.pluralForms[domain];\n notifyListeners();\n };\n\n /** @type {ResetLocaleData} */\n const resetLocaleData = (data, domain) => {\n // Reset all current Tannin locale data.\n tannin.data = {};\n\n // Reset cached plural forms functions cache.\n tannin.pluralForms = {};\n setLocaleData(data, domain);\n };\n\n /**\n * Wrapper for Tannin's `dcnpgettext`. Populates default locale data if not\n * otherwise previously assigned.\n *\n * @param {string|undefined} domain Domain to retrieve the translated text.\n * @param {string|undefined} context Context information for the translators.\n * @param {string} single Text to translate if non-plural. Used as\n * fallback return value on a caught error.\n * @param {string} [plural] The text to be used if the number is\n * plural.\n * @param {number} [number] The number to compare against to use\n * either the singular or plural form.\n *\n * @return {string} The translated string.\n */\n const dcnpgettext = (domain = 'default', context, single, plural, number) => {\n if (!tannin.data[domain]) {\n // Use `doSetLocaleData` to set silently, without notifying listeners.\n doSetLocaleData(undefined, domain);\n }\n return tannin.dcnpgettext(domain, context, single, plural, number);\n };\n\n /** @type {GetFilterDomain} */\n const getFilterDomain = (domain = 'default') => domain;\n\n /** @type {__} */\n const __ = (text, domain) => {\n let translation = dcnpgettext(domain, undefined, text);\n if (!hooks) {\n return translation;\n }\n\n /**\n * Filters text with its translation.\n *\n * @param {string} translation Translated text.\n * @param {string} text Text to translate.\n * @param {string} domain Text domain. Unique identifier for retrieving translated strings.\n */\n translation = /** @type {string} */\n /** @type {*} */hooks.applyFilters('i18n.gettext', translation, text, domain);\n return /** @type {string} */(\n /** @type {*} */hooks.applyFilters('i18n.gettext_' + getFilterDomain(domain), translation, text, domain)\n );\n };\n\n /** @type {_x} */\n const _x = (text, context, domain) => {\n let translation = dcnpgettext(domain, context, text);\n if (!hooks) {\n return translation;\n }\n\n /**\n * Filters text with its translation based on context information.\n *\n * @param {string} translation Translated text.\n * @param {string} text Text to translate.\n * @param {string} context Context information for the translators.\n * @param {string} domain Text domain. Unique identifier for retrieving translated strings.\n */\n translation = /** @type {string} */\n /** @type {*} */hooks.applyFilters('i18n.gettext_with_context', translation, text, context, domain);\n return /** @type {string} */(\n /** @type {*} */hooks.applyFilters('i18n.gettext_with_context_' + getFilterDomain(domain), translation, text, context, domain)\n );\n };\n\n /** @type {_n} */\n const _n = (single, plural, number, domain) => {\n let translation = dcnpgettext(domain, undefined, single, plural, number);\n if (!hooks) {\n return translation;\n }\n\n /**\n * Filters the singular or plural form of a string.\n *\n * @param {string} translation Translated text.\n * @param {string} single The text to be used if the number is singular.\n * @param {string} plural The text to be used if the number is plural.\n * @param {string} number The number to compare against to use either the singular or plural form.\n * @param {string} domain Text domain. Unique identifier for retrieving translated strings.\n */\n translation = /** @type {string} */\n /** @type {*} */hooks.applyFilters('i18n.ngettext', translation, single, plural, number, domain);\n return /** @type {string} */(\n /** @type {*} */hooks.applyFilters('i18n.ngettext_' + getFilterDomain(domain), translation, single, plural, number, domain)\n );\n };\n\n /** @type {_nx} */\n const _nx = (single, plural, number, context, domain) => {\n let translation = dcnpgettext(domain, context, single, plural, number);\n if (!hooks) {\n return translation;\n }\n\n /**\n * Filters the singular or plural form of a string with gettext context.\n *\n * @param {string} translation Translated text.\n * @param {string} single The text to be used if the number is singular.\n * @param {string} plural The text to be used if the number is plural.\n * @param {string} number The number to compare against to use either the singular or plural form.\n * @param {string} context Context information for the translators.\n * @param {string} domain Text domain. Unique identifier for retrieving translated strings.\n */\n translation = /** @type {string} */\n /** @type {*} */hooks.applyFilters('i18n.ngettext_with_context', translation, single, plural, number, context, domain);\n return /** @type {string} */(\n /** @type {*} */hooks.applyFilters('i18n.ngettext_with_context_' + getFilterDomain(domain), translation, single, plural, number, context, domain)\n );\n };\n\n /** @type {IsRtl} */\n const isRTL = () => {\n return 'rtl' === _x('ltr', 'text direction');\n };\n\n /** @type {HasTranslation} */\n const hasTranslation = (single, context, domain) => {\n const key = context ? context + '\\u0004' + single : single;\n let result = !!tannin.data?.[domain !== null && domain !== void 0 ? domain : 'default']?.[key];\n if (hooks) {\n /**\n * Filters the presence of a translation in the locale data.\n *\n * @param {boolean} hasTranslation Whether the translation is present or not..\n * @param {string} single The singular form of the translated text (used as key in locale data)\n * @param {string} context Context information for the translators.\n * @param {string} domain Text domain. Unique identifier for retrieving translated strings.\n */\n result = /** @type { boolean } */\n /** @type {*} */hooks.applyFilters('i18n.has_translation', result, single, context, domain);\n result = /** @type { boolean } */\n /** @type {*} */hooks.applyFilters('i18n.has_translation_' + getFilterDomain(domain), result, single, context, domain);\n }\n return result;\n };\n if (initialData) {\n setLocaleData(initialData, initialDomain);\n }\n if (hooks) {\n /**\n * @param {string} hookName\n */\n const onHookAddedOrRemoved = hookName => {\n if (I18N_HOOK_REGEXP.test(hookName)) {\n notifyListeners();\n }\n };\n hooks.addAction('hookAdded', 'core/i18n', onHookAddedOrRemoved);\n hooks.addAction('hookRemoved', 'core/i18n', onHookAddedOrRemoved);\n }\n return {\n getLocaleData,\n setLocaleData,\n addLocaleData,\n resetLocaleData,\n subscribe,\n __,\n _x,\n _n,\n _nx,\n isRTL,\n hasTranslation\n };\n};\n\n//# sourceURL=webpack:///./node_modules/@wordpress/i18n/build-module/create-i18n.js?"); + +/***/ }), + +/***/ "./node_modules/@wordpress/i18n/build-module/default-i18n.js": +/*!*******************************************************************!*\ + !*** ./node_modules/@wordpress/i18n/build-module/default-i18n.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ __: () => (/* binding */ __),\n/* harmony export */ _n: () => (/* binding */ _n),\n/* harmony export */ _nx: () => (/* binding */ _nx),\n/* harmony export */ _x: () => (/* binding */ _x),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ getLocaleData: () => (/* binding */ getLocaleData),\n/* harmony export */ hasTranslation: () => (/* binding */ hasTranslation),\n/* harmony export */ isRTL: () => (/* binding */ isRTL),\n/* harmony export */ resetLocaleData: () => (/* binding */ resetLocaleData),\n/* harmony export */ setLocaleData: () => (/* binding */ setLocaleData),\n/* harmony export */ subscribe: () => (/* binding */ subscribe)\n/* harmony export */ });\n/* harmony import */ var _create_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./create-i18n */ \"./node_modules/@wordpress/i18n/build-module/create-i18n.js\");\n/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/hooks */ \"./node_modules/@wordpress/hooks/build-module/index.js\");\n/**\n * Internal dependencies\n */\n\n\n/**\n * WordPress dependencies\n */\n\nconst i18n = (0,_create_i18n__WEBPACK_IMPORTED_MODULE_0__.createI18n)(undefined, undefined, _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.defaultHooks);\n\n/**\n * Default, singleton instance of `I18n`.\n */\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (i18n);\n\n/*\n * Comments in this file are duplicated from ./i18n due to\n * https://github.com/WordPress/gutenberg/pull/20318#issuecomment-590837722\n */\n\n/**\n * @typedef {import('./create-i18n').LocaleData} LocaleData\n * @typedef {import('./create-i18n').SubscribeCallback} SubscribeCallback\n * @typedef {import('./create-i18n').UnsubscribeCallback} UnsubscribeCallback\n */\n\n/**\n * Returns locale data by domain in a Jed-formatted JSON object shape.\n *\n * @see http://messageformat.github.io/Jed/\n *\n * @param {string} [domain] Domain for which to get the data.\n * @return {LocaleData} Locale data.\n */\nconst getLocaleData = i18n.getLocaleData.bind(i18n);\n\n/**\n * Merges locale data into the Tannin instance by domain. Accepts data in a\n * Jed-formatted JSON object shape.\n *\n * @see http://messageformat.github.io/Jed/\n *\n * @param {LocaleData} [data] Locale data configuration.\n * @param {string} [domain] Domain for which configuration applies.\n */\nconst setLocaleData = i18n.setLocaleData.bind(i18n);\n\n/**\n * Resets all current Tannin instance locale data and sets the specified\n * locale data for the domain. Accepts data in a Jed-formatted JSON object shape.\n *\n * @see http://messageformat.github.io/Jed/\n *\n * @param {LocaleData} [data] Locale data configuration.\n * @param {string} [domain] Domain for which configuration applies.\n */\nconst resetLocaleData = i18n.resetLocaleData.bind(i18n);\n\n/**\n * Subscribes to changes of locale data\n *\n * @param {SubscribeCallback} callback Subscription callback\n * @return {UnsubscribeCallback} Unsubscribe callback\n */\nconst subscribe = i18n.subscribe.bind(i18n);\n\n/**\n * Retrieve the translation of text.\n *\n * @see https://developer.wordpress.org/reference/functions/__/\n *\n * @param {string} text Text to translate.\n * @param {string} [domain] Domain to retrieve the translated text.\n *\n * @return {string} Translated text.\n */\nconst __ = i18n.__.bind(i18n);\n\n/**\n * Retrieve translated string with gettext context.\n *\n * @see https://developer.wordpress.org/reference/functions/_x/\n *\n * @param {string} text Text to translate.\n * @param {string} context Context information for the translators.\n * @param {string} [domain] Domain to retrieve the translated text.\n *\n * @return {string} Translated context string without pipe.\n */\nconst _x = i18n._x.bind(i18n);\n\n/**\n * Translates and retrieves the singular or plural form based on the supplied\n * number.\n *\n * @see https://developer.wordpress.org/reference/functions/_n/\n *\n * @param {string} single The text to be used if the number is singular.\n * @param {string} plural The text to be used if the number is plural.\n * @param {number} number The number to compare against to use either the\n * singular or plural form.\n * @param {string} [domain] Domain to retrieve the translated text.\n *\n * @return {string} The translated singular or plural form.\n */\nconst _n = i18n._n.bind(i18n);\n\n/**\n * Translates and retrieves the singular or plural form based on the supplied\n * number, with gettext context.\n *\n * @see https://developer.wordpress.org/reference/functions/_nx/\n *\n * @param {string} single The text to be used if the number is singular.\n * @param {string} plural The text to be used if the number is plural.\n * @param {number} number The number to compare against to use either the\n * singular or plural form.\n * @param {string} context Context information for the translators.\n * @param {string} [domain] Domain to retrieve the translated text.\n *\n * @return {string} The translated singular or plural form.\n */\nconst _nx = i18n._nx.bind(i18n);\n\n/**\n * Check if current locale is RTL.\n *\n * **RTL (Right To Left)** is a locale property indicating that text is written from right to left.\n * For example, the `he` locale (for Hebrew) specifies right-to-left. Arabic (ar) is another common\n * language written RTL. The opposite of RTL, LTR (Left To Right) is used in other languages,\n * including English (`en`, `en-US`, `en-GB`, etc.), Spanish (`es`), and French (`fr`).\n *\n * @return {boolean} Whether locale is RTL.\n */\nconst isRTL = i18n.isRTL.bind(i18n);\n\n/**\n * Check if there is a translation for a given string (in singular form).\n *\n * @param {string} single Singular form of the string to look up.\n * @param {string} [context] Context information for the translators.\n * @param {string} [domain] Domain to retrieve the translated text.\n * @return {boolean} Whether the translation exists or not.\n */\nconst hasTranslation = i18n.hasTranslation.bind(i18n);\n\n//# sourceURL=webpack:///./node_modules/@wordpress/i18n/build-module/default-i18n.js?"); + +/***/ }), + +/***/ "./node_modules/@wordpress/i18n/build-module/index.js": +/*!************************************************************!*\ + !*** ./node_modules/@wordpress/i18n/build-module/index.js ***! + \************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ __: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__.__),\n/* harmony export */ _n: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__._n),\n/* harmony export */ _nx: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__._nx),\n/* harmony export */ _x: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__._x),\n/* harmony export */ createI18n: () => (/* reexport safe */ _create_i18n__WEBPACK_IMPORTED_MODULE_1__.createI18n),\n/* harmony export */ defaultI18n: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__[\"default\"]),\n/* harmony export */ getLocaleData: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__.getLocaleData),\n/* harmony export */ hasTranslation: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__.hasTranslation),\n/* harmony export */ isRTL: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__.isRTL),\n/* harmony export */ resetLocaleData: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__.resetLocaleData),\n/* harmony export */ setLocaleData: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__.setLocaleData),\n/* harmony export */ sprintf: () => (/* reexport safe */ _sprintf__WEBPACK_IMPORTED_MODULE_0__.sprintf),\n/* harmony export */ subscribe: () => (/* reexport safe */ _default_i18n__WEBPACK_IMPORTED_MODULE_2__.subscribe)\n/* harmony export */ });\n/* harmony import */ var _sprintf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sprintf */ \"./node_modules/@wordpress/i18n/build-module/sprintf.js\");\n/* harmony import */ var _create_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create-i18n */ \"./node_modules/@wordpress/i18n/build-module/create-i18n.js\");\n/* harmony import */ var _default_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./default-i18n */ \"./node_modules/@wordpress/i18n/build-module/default-i18n.js\");\n\n\n\n\n//# sourceURL=webpack:///./node_modules/@wordpress/i18n/build-module/index.js?"); + +/***/ }), + +/***/ "./node_modules/@wordpress/i18n/build-module/sprintf.js": +/*!**************************************************************!*\ + !*** ./node_modules/@wordpress/i18n/build-module/sprintf.js ***! + \**************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ sprintf: () => (/* binding */ sprintf)\n/* harmony export */ });\n/* harmony import */ var memize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! memize */ \"./node_modules/memize/dist/index.js\");\n/* harmony import */ var sprintf_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sprintf-js */ \"./node_modules/sprintf-js/src/sprintf.js\");\n/* harmony import */ var sprintf_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sprintf_js__WEBPACK_IMPORTED_MODULE_1__);\n/**\n * External dependencies\n */\n\n\n\n/**\n * Log to console, once per message; or more precisely, per referentially equal\n * argument set. Because Jed throws errors, we log these to the console instead\n * to avoid crashing the application.\n *\n * @param {...*} args Arguments to pass to `console.error`\n */\nconst logErrorOnce = (0,memize__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(console.error); // eslint-disable-line no-console\n\n/**\n * Returns a formatted string. If an error occurs in applying the format, the\n * original format string is returned.\n *\n * @param {string} format The format of the string to generate.\n * @param {...*} args Arguments to apply to the format.\n *\n * @see https://www.npmjs.com/package/sprintf-js\n *\n * @return {string} The formatted string.\n */\nfunction sprintf(format, ...args) {\n try {\n return sprintf_js__WEBPACK_IMPORTED_MODULE_1___default().sprintf(format, ...args);\n } catch (error) {\n if (error instanceof Error) {\n logErrorOnce('sprintf error: \\n\\n' + error.toString());\n }\n return format;\n }\n}\n\n//# sourceURL=webpack:///./node_modules/@wordpress/i18n/build-module/sprintf.js?"); + +/***/ }), + +/***/ "./node_modules/@wordpress/react-i18n/build-module/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/@wordpress/react-i18n/build-module/index.js ***! + \******************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ I18nProvider: () => (/* binding */ I18nProvider),\n/* harmony export */ useI18n: () => (/* binding */ useI18n),\n/* harmony export */ withI18n: () => (/* binding */ withI18n)\n/* harmony export */ });\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ \"./node_modules/react/index.js\");\n/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ \"./node_modules/@wordpress/i18n/build-module/index.js\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\n\n\n\n/**\n * Utility to make a new context value\n *\n * @param i18n\n */\nfunction makeContextValue(i18n) {\n return {\n __: i18n.__.bind(i18n),\n _x: i18n._x.bind(i18n),\n _n: i18n._n.bind(i18n),\n _nx: i18n._nx.bind(i18n),\n isRTL: i18n.isRTL.bind(i18n),\n hasTranslation: i18n.hasTranslation.bind(i18n)\n };\n}\nconst I18nContext = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createContext)(makeContextValue(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.defaultI18n));\n/**\n * The `I18nProvider` should be mounted above any localized components:\n *\n * @example\n * ```js\n * import { createI18n } from '@wordpress/i18n';\n * import { I18nProvider } from '@wordpress/react-i18n';\n * const i18n = createI18n();\n *\n * ReactDom.render(\n * \t\n * \t\t\n * \t,\n * \tel\n * );\n * ```\n *\n * You can also instantiate the provider without the `i18n` prop. In that case it will use the\n * default `I18n` instance exported from `@wordpress/i18n`.\n *\n * @param props i18n provider props.\n * @return Children wrapped in the I18nProvider.\n */\nfunction I18nProvider(props) {\n const {\n children,\n i18n = _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.defaultI18n\n } = props;\n const [update, forceUpdate] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useReducer)(() => [], []);\n\n // Rerender translations whenever the i18n instance fires a change event.\n (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useEffect)(() => i18n.subscribe(forceUpdate), [i18n]);\n const value = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useMemo)(() => makeContextValue(i18n), [i18n, update]);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(I18nContext.Provider, {\n value: value,\n children: children\n });\n}\n\n/**\n * React hook providing access to i18n functions. It exposes the `__`, `_x`, `_n`, `_nx`,\n * `isRTL` and `hasTranslation` functions from [`@wordpress/i18n`](../i18n).\n * Refer to their documentation there.\n *\n * @example\n * ```js\n * import { useI18n } from '@wordpress/react-i18n';\n *\n * function MyComponent() {\n * \tconst { __ } = useI18n();\n * \treturn __( 'Hello, world!' );\n * }\n * ```\n */\nconst useI18n = () => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useContext)(I18nContext);\n/**\n * React higher-order component that passes the i18n translate functions (the same set\n * as exposed by the `useI18n` hook) to the wrapped component as props.\n *\n * @example\n * ```js\n * import { withI18n } from '@wordpress/react-i18n';\n *\n * function MyComponent( { __ } ) {\n * \treturn __( 'Hello, world!' );\n * }\n *\n * export default withI18n( MyComponent );\n * ```\n *\n * @param InnerComponent React component to be wrapped and receive the i18n functions like `__`\n * @return The wrapped component\n */\nfunction withI18n(InnerComponent) {\n const EnhancedComponent = props => {\n const i18nProps = useI18n();\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(InnerComponent, {\n ...props,\n ...i18nProps\n });\n };\n const innerComponentName = InnerComponent.displayName || InnerComponent.name || 'Component';\n EnhancedComponent.displayName = `WithI18n(${innerComponentName})`;\n return EnhancedComponent;\n}\n\n//# sourceURL=webpack:///./node_modules/@wordpress/react-i18n/build-module/index.js?"); /***/ }), @@ -66,7 +290,8 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var reac \*************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { -eval("/**\n * @license React\n * react-dom.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */if(true){(function(){'use strict';/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=='undefined'&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==='function'){__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());}var React=__webpack_require__(/*! react */ \"./node_modules/react/index.js\");var Scheduler=__webpack_require__(/*! scheduler */ \"./node_modules/scheduler/index.js\");var ReactSharedInternals=React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;var suppressWarning=false;function setSuppressWarning(newSuppressWarning){{suppressWarning=newSuppressWarning;}}// In DEV, calls to console.warn and console.error get replaced\n// by calls to these methods by a Babel plugin.\n//\n// In PROD (or in packages without access to React internals),\n// they are left as they are instead.\nfunction warn(format){{if(!suppressWarning){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}printWarning('warn',format,args);}}}function error(format){{if(!suppressWarning){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){args[_key2-1]=arguments[_key2];}printWarning('error',format,args);}}}function printWarning(level,format,args){// When changing this logic, you might want to also\n// update consoleWithStackDev.www.js as well.\n{var ReactDebugCurrentFrame=ReactSharedInternals.ReactDebugCurrentFrame;var stack=ReactDebugCurrentFrame.getStackAddendum();if(stack!==''){format+='%s';args=args.concat([stack]);}// eslint-disable-next-line react-internal/safe-string-coercion\nvar argsWithFormat=args.map(function(item){return String(item);});// Careful: RN currently depends on this prefix\nargsWithFormat.unshift('Warning: '+format);// We intentionally don't use spread (or .apply) directly because it\n// breaks IE9: https://github.com/facebook/react/issues/13610\n// eslint-disable-next-line react-internal/no-production-logging\nFunction.prototype.apply.call(console[level],console,argsWithFormat);}}var FunctionComponent=0;var ClassComponent=1;var IndeterminateComponent=2;// Before we know whether it is function or class\nvar HostRoot=3;// Root of a host tree. Could be nested inside another node.\nvar HostPortal=4;// A subtree. Could be an entry point to a different renderer.\nvar HostComponent=5;var HostText=6;var Fragment=7;var Mode=8;var ContextConsumer=9;var ContextProvider=10;var ForwardRef=11;var Profiler=12;var SuspenseComponent=13;var MemoComponent=14;var SimpleMemoComponent=15;var LazyComponent=16;var IncompleteClassComponent=17;var DehydratedFragment=18;var SuspenseListComponent=19;var ScopeComponent=21;var OffscreenComponent=22;var LegacyHiddenComponent=23;var CacheComponent=24;var TracingMarkerComponent=25;// -----------------------------------------------------------------------------\nvar enableClientRenderFallbackOnTextMismatch=true;// TODO: Need to review this code one more time before landing\n// the react-reconciler package.\nvar enableNewReconciler=false;// Support legacy Primer support on internal FB www\nvar enableLazyContextPropagation=false;// FB-only usage. The new API has different semantics.\nvar enableLegacyHidden=false;// Enables unstable_avoidThisFallback feature in Fiber\nvar enableSuspenseAvoidThisFallback=false;// Enables unstable_avoidThisFallback feature in Fizz\n// React DOM Chopping Block\n//\n// Similar to main Chopping Block but only flags related to React DOM. These are\n// grouped because we will likely batch all of them into a single major release.\n// -----------------------------------------------------------------------------\n// Disable support for comment nodes as React DOM containers. Already disabled\n// in open source, but www codebase still relies on it. Need to remove.\nvar disableCommentsAsDOMContainers=true;// Disable javascript: URL strings in href for XSS protection.\n// and client rendering, mostly to allow JSX attributes to apply to the custom\n// element's object properties instead of only HTML attributes.\n// https://github.com/facebook/react/issues/11347\nvar enableCustomElementPropertySupport=false;// Disables children for