From fd76ba0cbef44410f36cfc84e10f25f67b147294 Mon Sep 17 00:00:00 2001 From: Lai Power Date: Tue, 29 Apr 2025 21:19:59 +0000 Subject: [PATCH] updated plugin `Menu Icons` version 0.13.17 --- wp-content/plugins/menu-icons/CHANGELOG.md | 8 + wp-content/plugins/menu-icons/menu-icons.php | 4 +- wp-content/plugins/menu-icons/readme.txt | 16 +- .../plugins/menu-icons/vendor/autoload.php | 5 +- .../codeinwp/themeisle-sdk/CHANGELOG.md | 95 ++++ .../themeisle-sdk/assets/css/banner.css | 54 ++ .../assets/js/build/about/about.asset.php | 2 +- .../assets/js/build/about/about.css | 2 +- .../assets/js/build/about/about.js | 2 +- .../assets/js/build/banner/banner.asset.php | 1 + .../assets/js/build/banner/banner.js | 1 + .../js/build/float_widget/float.asset.php | 2 +- .../assets/js/build/float_widget/float.js | 2 +- .../assets/js/build/promos/index.asset.php | 2 +- .../assets/js/build/promos/index.js | 2 +- .../assets/js/build/promos/style-index.css | 2 +- .../js/build/survey/survey_deps.asset.php | 2 +- .../assets/js/build/survey/survey_deps.js | 2 +- .../js/build/tracking/tracking.asset.php | 2 +- .../assets/js/build/tracking/tracking.js | 2 +- .../vendor/codeinwp/themeisle-sdk/load.php | 2 +- .../codeinwp/themeisle-sdk/postcss.config.js | 10 - .../src/Common/Abstract_module.php | 4 +- .../codeinwp/themeisle-sdk/src/Loader.php | 62 ++- .../themeisle-sdk/src/Modules/About_us.php | 18 +- .../src/Modules/Announcements.php | 155 +++++- .../src/Modules/Dashboard_widget.php | 1 - .../themeisle-sdk/src/Modules/Licenser.php | 90 +-- .../themeisle-sdk/src/Modules/Logger.php | 16 +- .../themeisle-sdk/src/Modules/Promotions.php | 518 ++++++++++++++---- .../themeisle-sdk/src/Modules/Review.php | 10 +- .../src/Modules/Script_loader.php | 141 ++++- .../src/Modules/Translations.php | 247 +++++++++ .../codeinwp/themeisle-sdk/src/Product.php | 12 +- .../vendor/codeinwp/themeisle-sdk/start.php | 1 + .../vendor/composer/InstalledVersions.php | 45 +- .../menu-icons/vendor/composer/installed.json | 17 +- .../menu-icons/vendor/composer/installed.php | 18 +- 38 files changed, 1332 insertions(+), 243 deletions(-) create mode 100644 wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/css/banner.css create mode 100644 wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/banner/banner.asset.php create mode 100644 wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/banner/banner.js delete mode 100644 wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/postcss.config.js create mode 100644 wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Translations.php diff --git a/wp-content/plugins/menu-icons/CHANGELOG.md b/wp-content/plugins/menu-icons/CHANGELOG.md index 7aee3e2d..20d17f01 100644 --- a/wp-content/plugins/menu-icons/CHANGELOG.md +++ b/wp-content/plugins/menu-icons/CHANGELOG.md @@ -1,3 +1,11 @@ +##### [Version 0.13.17](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.16...v0.13.17) (2025-04-17) + +- Updated dependencies + +##### [Version 0.13.16](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.15...v0.13.16) (2024-11-07) + +- Updated dependencies + ##### [Version 0.13.15](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.14...v0.13.15) (2024-07-10) - Removed recommendations of unsupported plugins diff --git a/wp-content/plugins/menu-icons/menu-icons.php b/wp-content/plugins/menu-icons/menu-icons.php index 840fb7c8..3023bd2f 100644 --- a/wp-content/plugins/menu-icons/menu-icons.php +++ b/wp-content/plugins/menu-icons/menu-icons.php @@ -11,7 +11,7 @@ * Plugin name: Menu Icons * Plugin URI: https://github.com/Codeinwp/wp-menu-icons * Description: Spice up your navigation menus with pretty icons, easily. - * Version: 0.13.15 + * Version: 0.13.17 * Author: ThemeIsle * Author URI: https://themeisle.com * License: GPLv2 @@ -29,7 +29,7 @@ final class Menu_Icons { const DISMISS_NOTICE = 'menu-icons-dismiss-notice'; - const VERSION = '0.13.15'; + const VERSION = '0.13.17'; /** * Holds plugin data diff --git a/wp-content/plugins/menu-icons/readme.txt b/wp-content/plugins/menu-icons/readme.txt index 6876ee8a..078c52c1 100644 --- a/wp-content/plugins/menu-icons/readme.txt +++ b/wp-content/plugins/menu-icons/readme.txt @@ -2,7 +2,7 @@ Contributors: codeinwp, themeisle Tags: menu, nav-menu, icons, navigation Requires at least: 4.7 -Tested up to: 6.6 +Tested up to: 6.8 Stable tag: trunk License: GPLv2 License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -222,6 +222,20 @@ Read [this blog post](http://kucrut.org/add-custom-image-sizes-right-way/). == Changelog == +##### [Version 0.13.17](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.16...v0.13.17) (2025-04-17) + +- Updated dependencies + + + + +##### [Version 0.13.16](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.15...v0.13.16) (2024-11-07) + +- Updated dependencies + + + + ##### [Version 0.13.15](https://github.com/codeinwp/wp-menu-icons/compare/v0.13.14...v0.13.15) (2024-07-10) - Removed recommendations of unsupported plugins diff --git a/wp-content/plugins/menu-icons/vendor/autoload.php b/wp-content/plugins/menu-icons/vendor/autoload.php index 12c12d99..ac2d0604 100644 --- a/wp-content/plugins/menu-icons/vendor/autoload.php +++ b/wp-content/plugins/menu-icons/vendor/autoload.php @@ -14,10 +14,7 @@ if (PHP_VERSION_ID < 50600) { echo $err; } } - trigger_error( - $err, - E_USER_ERROR - ); + throw new RuntimeException($err); } require_once __DIR__ . '/composer/autoload_real.php'; diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/CHANGELOG.md b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/CHANGELOG.md index e7590111..df2bc528 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/CHANGELOG.md +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/CHANGELOG.md @@ -1,3 +1,98 @@ +##### [Version 3.3.44](https://github.com/Codeinwp/themeisle-sdk-main/compare/v3.3.43...v3.3.44) (2025-02-18) + +- Fix variable mismatch in the install category function. + +##### [Version 3.3.43](https://github.com/Codeinwp/themeisle-sdk-main/compare/v3.3.42...v3.3.43) (2025-02-18) + +- Compute survey install category as common data. +- Add auto-trigger cancel event + +##### [Version 3.3.42](https://github.com/Codeinwp/themeisle-sdk-main/compare/v3.3.41...v3.3.42) (2025-02-17) + +- Updated Formbricks package version +- Added support for Formbrick script loading via Internal Pages hooks + +##### [Version 3.3.41](https://github.com/Codeinwp/themeisle-sdk-main/compare/v3.3.40...v3.3.41) (2025-02-05) + +- fixed a minor issue that prevented the translation checking for Hestia PRO + +##### [Version 3.3.40](https://github.com/Codeinwp/themeisle-sdk-main/compare/v3.3.39...v3.3.40) (2024-12-29) + +Adds feadzy features. + +##### [Version 3.3.39](https://github.com/Codeinwp/themeisle-sdk-main/compare/v3.3.38...v3.3.39) (2024-11-19) + +- Adds WPFS promo to About Page +- Changes to Licenser and Updater to accommodate WPFS + +##### [Version 3.3.38](https://github.com/Codeinwp/themeisle-sdk-main/compare/v3.3.37...v3.3.38) (2024-11-13) + +- fix: new SDK slug on wp env +- fix: wfp promo not checking for donation page + +##### [Version 3.3.37](https://github.com/Codeinwp/themeisle-sdk-main/compare/v3.3.36...v3.3.37) (2024-11-06) + +- Hotfix for Black Friday Global notice + +##### [Version 3.3.36](https://github.com/Codeinwp/themeisle-sdk-main/compare/v3.3.35...v3.3.36) (2024-11-06) + +- Update Blackfriday +- Add WP Full Pay + +##### [Version 3.3.35](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.34...v3.3.35) (2024-10-29) + +ignore dev files + +##### [Version 3.3.34](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.33...v3.3.34) (2024-10-25) + +- Add initial promo delay to 6 hours +- Add 21 days delay between two promos + +##### [Version 3.3.33](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.32...v3.3.33) (2024-10-24) + +- chore: disable otter promos by default +- feat: add lang code for Formbricks survey + +##### [Version 3.3.32](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.31...v3.3.32) (2024-10-16) + +- Fix translations bugs and adapt mechanism to work on themes +- Adds product review links in About page +- Fix About page layout on Safari browser + +##### [Version 3.3.31](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.30...v3.3.31) (2024-10-14) + +- Update minimum PHP version required for Hyve promo +- add E2E test support with wp-scripts and Playwright + +##### [Version 3.3.30](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.29...v3.3.30) (2024-09-10) + +- Remove margin auto from ThemeIsle Woo tab +- Add Hyve Promo + +##### [Version 3.3.29](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.28...v3.3.29) (2024-08-21) + +- feat: improve the Promotions appearance timing + +##### [Version 3.3.28](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.27...v3.3.28) (2024-08-09) + + +- fix: remove the delay on woo plugins promos [closes Codeinwp/themeisle[#1655](https://github.com/Codeinwp/themeisle-sdk/issues/1655)] +- fix: swap Neve FSE notice with Neve [closes Codeinwp/themeisle[#1654](https://github.com/Codeinwp/themeisle-sdk/issues/1654)] +- fix: rework optimole promo [closes Codeinwp/themeisle[#1656](https://github.com/Codeinwp/themeisle-sdk/issues/1656)] +- fix: translations workflow always requiring updates [closes Codeinwp/neve-pro-addon[#2840](https://github.com/Codeinwp/themeisle-sdk/issues/2840)] + +##### [Version 3.3.27](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.26...v3.3.27) (2024-07-30) + +- fix: array out of bounds index + +##### [Version 3.3.26](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.25...v3.3.26) (2024-07-29) + +- fix: JS error in core editor +- twak: change ROP product name +- tweak: updated developers list +- fix: removed duplicate feed URL +- feat: add private translation functionality + ##### [Version 3.3.25](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.24...v3.3.25) (2024-07-08) improve upgrade link diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/css/banner.css b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/css/banner.css new file mode 100644 index 00000000..20477478 --- /dev/null +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/css/banner.css @@ -0,0 +1,54 @@ +.tsdk-banner-cta { + position: relative; + display: inline-block; +} + +.tsdk-banner-urgency-text { + position: absolute; + top: 6%; + left: 1%; + color: white; + padding: 5px; + font-size: 16px; + z-index: 10; + text-transform: uppercase; + font-weight: 700; +} + +.tsdk-banner-img { + width: 100%; + height: auto; +} + +@media (max-width: 1100px) { + .tsdk-banner-urgency-text { + font-size: 10px; + top: 0; + left: 1%; + } +} + +@media (max-width: 950px) { + .tsdk-banner-urgency-text { + font-size: 10px; + left: 1%; + } +} + +@media (max-width: 500px) { + .tsdk-banner-urgency-text { + font-size: 6px; + top: -10%; + left: 1%; + } +} + +@media (max-width: 420px) { + .tsdk-banner-urgency-text { + left: 0%; + } +} + +.notice:not(#tsdk_banner) { + display: none; +} \ No newline at end of file diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/about/about.asset.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/about/about.asset.php index fb031746..2479fd8d 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/about/about.asset.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/about/about.asset.php @@ -1 +1 @@ - array('react', 'wp-components', 'wp-element'), 'version' => '2f7b01c785d210cc0a66'); + array('react', 'wp-components', 'wp-element'), 'version' => '7d782affa8469fa8f48d'); diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/about/about.css b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/about/about.css index 90d73702..7340054f 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/about/about.css +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/about/about.css @@ -1 +1 @@ -#wpcontent{padding-left:0 !important}.ti-about{--border: 1px solid #ccc;--link-color: var(--wp-admin-theme-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:normal;display:grid;gap:30px}.ti-about .container{margin:0 auto;max-width:960px;padding:0 15px}.ti-about p{font-size:14px;line-height:1.6}.ti-about button{font-weight:600}.ti-about .spin{animation:spin 1s infinite linear}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.ti-about .head{background:#fff;border-bottom:var(--border);padding:18px 0}.ti-about .head .container{padding:0 15px;display:flex;flex-wrap:wrap;align-items:center}.ti-about .head img{max-height:55px}.ti-about .head p{margin-left:10px}.ti-about .head a{font-style:italic;font-weight:bold}.ti-about .nav{border-bottom:var(--border);display:flex;flex-wrap:wrap;font-size:16px;margin:0;font-weight:600;-moz-column-gap:20px;column-gap:20px}.ti-about .nav a{border-bottom:4px solid rgba(0,0,0,0);color:#868686;padding:20px 10px;text-decoration:none;margin-bottom:-1px;box-sizing:border-box}.ti-about .nav a:hover{color:#313233}.ti-about .nav li{display:flex;margin:0}.ti-about .nav li.active a{border-color:var(--link-color);color:#313233}.ti-about .story-card .footer,.ti-about .story-card .body{display:grid;grid-template-columns:var(--grid, 1fr);align-items:center}.ti-about .story-card{border:var(--border);border-radius:0 0 10px 10px}.ti-about .story-card .body{background:#fff;padding:35px 35px 10px 35px}.ti-about .story-card .body h2{font-size:30px;margin:0 0 30px;color:#1f1d1d}.ti-about .story-card .body p{color:#1e1e1e}.ti-about .story-card .body figure{order:0;margin:0}.ti-about .story-card .body figcaption{margin:10px 0;color:#797979;font-size:12px}.ti-about .story-card .body img{border-radius:8px;max-width:100%}.ti-about .story-card .footer{border-top:var(--border);padding:30px 40px}.ti-about .story-card .footer h2{margin:0 0 20px;text-align:center;font-size:21px}.ti-about .story-card form{display:flex;align-items:center}.ti-about .story-card form .dashicons-yes-alt{color:#609952}.ti-about .story-card input{height:36px;flex-grow:1;border:var(--border);border-radius:2px;font-size:12px;margin-right:15px}.ti-about .product-cards{display:grid;gap:30px}.ti-about .product-card{background:#fff;display:grid;border:var(--border)}.ti-about .product-card h2{font-size:21px;margin:0}.ti-about .product-card p{margin:0;color:#6c6c6c}.ti-about .product-card .header{padding:20px 15px 0;display:flex;align-items:center}.ti-about .product-card .body{padding:20px 15px}.ti-about .product-card img{max-width:50px;margin-right:15px;border-radius:6px}.ti-about .product-card .footer{border-top:var(--border);display:flex;align-items:center;padding:15px;align-self:flex-end;justify-content:space-between}.ti-about .product-card .footer p{margin:8px 0;font-weight:600;font-size:13px;color:#313233}.ti-about .product-card .footer .not-installed{color:#7e7e7e}.ti-about .product-card .footer .active{color:#609952}.ti-about .product-card button,.ti-about .product-card a,.ti-about .product-card .spin{margin-left:auto;text-decoration:none}.ti-about .product-page{margin:0 auto;padding:0;width:100%;max-width:960px;border:1px solid #ccc;border-radius:8px;background-color:#fff}.ti-about .product-page .hero{display:flex;flex-direction:column;align-items:center;padding:64px;border-bottom:1px solid #ccc}.ti-about .product-page .hero h1{font-size:30px;line-height:42px;max-width:500px;text-align:center}.ti-about .product-page .hero p{font-size:14px;line-height:24px;max-width:500px;text-align:center}.ti-about .product-page .hero .logo{width:64px;margin-bottom:24px}.ti-about .product-page .hero .label{font-size:10px;line-height:12px;color:#ed6f57;background-color:rgba(237,111,87,.1803921569);padding:8px 16px;border-radius:4px}.ti-about .product-page .col-3-highlights{display:flex;flex-direction:column;justify-content:space-evenly;padding:24px 0;border-bottom:1px solid #ccc;align-items:center;text-align:center}.ti-about .product-page .col-3-highlights .col{max-width:360px}.ti-about .product-page .col-3-highlights .col h3{font-size:21px;line-height:32px;margin-bottom:8px}.ti-about .product-page .col-3-highlights .col p{font-size:14px;line-height:24px}.ti-about .product-page .col-2-highlights{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;padding:24px 0;border-bottom:1px solid #ccc}.ti-about .product-page .col-2-highlights .col{width:90%}.ti-about .product-page .col-2-highlights .col img{max-width:450px;width:100%}.ti-about .product-page .col-2-highlights .col h2{font-size:24px;line-height:35px;margin-bottom:8px}.ti-about .product-page .col-2-highlights .col p{font-size:14px;line-height:24px}.ti-about .product-page .button-row{display:flex;gap:12px;margin-top:48px}.ti-about .otter-blocks .testimonial-nav{display:flex;gap:8px}.ti-about .otter-blocks .testimonial-nav .testimonial-button{width:10px;height:10px;background-color:#d9d9d9;margin:0;padding:0;border-radius:50%}.ti-about .otter-blocks .testimonial-nav .testimonial-button.active{background-color:#ed6f57}.ti-about .otter-blocks .testimonial-container{width:100%;max-width:450px;display:flex;overflow-x:scroll;scroll-behavior:smooth;margin:0;padding:0}.ti-about .otter-blocks .testimonial-container::-webkit-scrollbar{display:none}.ti-about .otter-blocks .testimonial-container .testimonial{width:100%;flex:1 0 100%;display:flex;flex-wrap:wrap;justify-content:left;gap:14px;align-items:center}.ti-about .otter-blocks .testimonial-container .testimonial p{width:100%;font-size:14px;line-height:24px}.ti-about .otter-blocks .testimonial-container .testimonial h3{font-size:16px;line-height:20px;font-weight:700;color:#1c1c1c}.ti-about .otter-blocks .testimonial-container .testimonial img{width:36px;height:36px;border-radius:50%}.ti-about .otter-blocks .otter-button.is-primary{background-color:#ed6f57}.ti-about .otter-blocks .otter-button.is-secondary{color:#ed6f57;box-shadow:inset 0 0 0 1px #ed6f57}.ti-about .otter-blocks .otter-button.is-loading{background-color:#6c6c6c;color:#fff}@media (min-width: 660px){.ti-about .product-cards{grid-template-columns:1fr 1fr}.ti-about .product-page .col-3-highlights,.ti-about .product-page .col-2-highlights{flex-direction:row;padding:64px 0}.ti-about .product-page .col-3-highlights{text-align:left}.ti-about .product-page .col-3-highlights .col{max-width:200px}.ti-about .product-page .col-2-highlights .col{width:45%}}@media (min-width: 992px){.ti-about .story-card .footer,.ti-about .story-card .body{gap:60px}.ti-about .story-card{--grid: 1.1fr 1fr}.ti-about .story-card .footer h2{margin:0;text-align:left}.ti-about .product-cards{grid-template-columns:1fr 1fr 1fr}} +#wpcontent{padding-left:0 !important}.ti-about{--border: 1px solid #ccc;--link-color: var(--wp-admin-theme-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:normal;display:grid;gap:30px}.ti-about .container{margin:0 auto;max-width:960px;padding:0 15px}.ti-about p{font-size:14px;line-height:1.6}.ti-about button{font-weight:600}.ti-about .spin{animation:spin 1s infinite linear}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.ti-about .head{background:#fff;border-bottom:var(--border);padding:18px 0}.ti-about .head .container{padding:0 15px;display:flex;flex-wrap:wrap;align-items:center}.ti-about .head img{max-height:55px}.ti-about .head p{margin-left:10px}.ti-about .head p.review-link{margin-left:auto}.ti-about .head a{font-style:italic;font-weight:bold}.ti-about .nav{border-bottom:var(--border);display:flex;flex-wrap:wrap;font-size:16px;margin:0;font-weight:600;-moz-column-gap:20px;column-gap:20px}.ti-about .nav a{border-bottom:4px solid rgba(0,0,0,0);color:#868686;padding:20px 10px;text-decoration:none;margin-bottom:-1px;box-sizing:border-box}.ti-about .nav a:hover{color:#313233}.ti-about .nav li{display:flex;margin:0}.ti-about .nav li.active a{border-color:var(--link-color);color:#313233}.ti-about .story-card .footer,.ti-about .story-card .body{display:grid;grid-template-columns:var(--grid, 1fr);align-items:center}.ti-about .story-card{border:var(--border);border-radius:0 0 10px 10px}.ti-about .story-card .body{background:#fff;padding:35px 35px 10px 35px}.ti-about .story-card .body h2{font-size:30px;margin:0 0 30px;color:#1f1d1d}.ti-about .story-card .body p{color:#1e1e1e}.ti-about .story-card .body figure{order:0;margin:0}.ti-about .story-card .body figcaption{margin:10px 0;color:#797979;font-size:12px}.ti-about .story-card .body img{border-radius:8px;max-width:100%}.ti-about .story-card .footer{border-top:var(--border);padding:30px 40px}.ti-about .story-card .footer h2{margin:0 0 20px;text-align:center;font-size:21px}.ti-about .story-card form{display:flex;align-items:center}.ti-about .story-card form .dashicons-yes-alt{color:#609952}.ti-about .story-card input{height:36px;flex-grow:1;border:var(--border);border-radius:2px;font-size:12px;margin-right:15px}.ti-about .product-cards{display:grid;gap:30px}.ti-about .product-card{background:#fff;border:var(--border);display:flex;flex-direction:column}.ti-about .product-card *{box-sizing:border-box}.ti-about .product-card h2{font-size:21px;margin:0}.ti-about .product-card p{margin:0;color:#6c6c6c}.ti-about .product-card .header{padding:20px 15px 0;display:flex;width:100%;align-items:center}.ti-about .product-card .body{padding:20px 15px;width:100%}.ti-about .product-card img{max-width:50px;margin-right:15px;border-radius:6px}.ti-about .product-card .footer{border-top:var(--border);display:flex;align-items:center;padding:15px;width:100%;margin-top:auto;align-self:flex-end;justify-content:space-between}.ti-about .product-card .footer p{margin:8px 0;font-weight:600;font-size:13px;color:#313233}.ti-about .product-card .footer .not-installed{color:#7e7e7e}.ti-about .product-card .footer .active{color:#609952}.ti-about .product-card button,.ti-about .product-card a,.ti-about .product-card .spin{margin-left:auto;text-decoration:none}.ti-about .product-page{margin:0 auto;padding:0;width:100%;max-width:960px;border:1px solid #ccc;border-radius:8px;background-color:#fff}.ti-about .product-page .hero{display:flex;flex-direction:column;align-items:center;padding:64px;border-bottom:1px solid #ccc}.ti-about .product-page .hero h1{font-size:30px;line-height:42px;max-width:500px;text-align:center}.ti-about .product-page .hero p{font-size:14px;line-height:24px;max-width:500px;text-align:center}.ti-about .product-page .hero .logo{width:64px;margin-bottom:24px}.ti-about .product-page .hero .label{font-size:10px;line-height:12px;color:#ed6f57;background-color:rgba(237,111,87,.1803921569);padding:8px 16px;border-radius:4px}.ti-about .product-page .col-3-highlights{display:flex;flex-direction:column;justify-content:space-evenly;padding:24px 0;border-bottom:1px solid #ccc;align-items:center;text-align:center}.ti-about .product-page .col-3-highlights .col{max-width:360px}.ti-about .product-page .col-3-highlights .col h3{font-size:21px;line-height:32px;margin-bottom:8px}.ti-about .product-page .col-3-highlights .col p{font-size:14px;line-height:24px}.ti-about .product-page .col-2-highlights{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;padding:24px 0;border-bottom:1px solid #ccc}.ti-about .product-page .col-2-highlights .col{width:90%}.ti-about .product-page .col-2-highlights .col img{max-width:450px;width:100%}.ti-about .product-page .col-2-highlights .col h2{font-size:24px;line-height:35px;margin-bottom:8px}.ti-about .product-page .col-2-highlights .col p{font-size:14px;line-height:24px}.ti-about .product-page .button-row{display:flex;gap:12px;margin-top:48px}.ti-about .otter-blocks .testimonial-nav{display:flex;gap:8px}.ti-about .otter-blocks .testimonial-nav .testimonial-button{width:10px;height:10px;background-color:#d9d9d9;margin:0;padding:0;border-radius:50%}.ti-about .otter-blocks .testimonial-nav .testimonial-button.active{background-color:#ed6f57}.ti-about .otter-blocks .testimonial-container{width:100%;max-width:450px;display:flex;overflow-x:scroll;scroll-behavior:smooth;margin:0;padding:0}.ti-about .otter-blocks .testimonial-container::-webkit-scrollbar{display:none}.ti-about .otter-blocks .testimonial-container .testimonial{width:100%;flex:1 0 100%;display:flex;flex-wrap:wrap;justify-content:left;gap:14px;align-items:center}.ti-about .otter-blocks .testimonial-container .testimonial p{width:100%;font-size:14px;line-height:24px}.ti-about .otter-blocks .testimonial-container .testimonial h3{font-size:16px;line-height:20px;font-weight:700;color:#1c1c1c}.ti-about .otter-blocks .testimonial-container .testimonial img{width:36px;height:36px;border-radius:50%}.ti-about .otter-blocks .otter-button.is-primary{background-color:#ed6f57}.ti-about .otter-blocks .otter-button.is-secondary{color:#ed6f57;box-shadow:inset 0 0 0 1px #ed6f57}.ti-about .otter-blocks .otter-button.is-loading{background-color:#6c6c6c;color:#fff}@media (min-width: 660px){.ti-about .product-cards{grid-template-columns:1fr 1fr}.ti-about .product-page .col-3-highlights,.ti-about .product-page .col-2-highlights{flex-direction:row;padding:64px 0}.ti-about .product-page .col-3-highlights{text-align:left}.ti-about .product-page .col-3-highlights .col{max-width:200px}.ti-about .product-page .col-2-highlights .col{width:45%}}@media (min-width: 992px){.ti-about .story-card .footer,.ti-about .story-card .body{gap:60px}.ti-about .story-card{--grid: 1.1fr 1fr}.ti-about .story-card .footer h2{margin:0;text-align:left}.ti-about .product-cards{grid-template-columns:repeat(3, minmax(0, 1fr))}} diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/about/about.js b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/about/about.js index cdecb528..cfe9c6b2 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/about/about.js +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/about/about.js @@ -1 +1 @@ -(()=>{"use strict";const e=window.React,t=window.wp.element;function a({pages:t=[],selected:a=""}){const{currentProduct:n,logoUrl:l,strings:s,links:c}=window.tiSDKAboutData,i=(e="")=>e===a?"active":"";return(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"head"},(0,e.createElement)("div",{className:"container"},(0,e.createElement)("img",{src:l,alt:n.name}),(0,e.createElement)("p",null,"by ",(0,e.createElement)("a",{href:"https://themeisle.com"},"Themeisle")))),(c.length>0||t.length>0)&&(0,e.createElement)("div",{className:"container"},(0,e.createElement)("ul",{className:"nav"},(0,e.createElement)("li",{className:i()},(0,e.createElement)("a",{href:window.location},s.aboutUs)),t.map(((t,a)=>(0,e.createElement)("li",{className:i(t.hash),key:a},(0,e.createElement)("a",{href:t.hash},t.name)))),c.map(((t,a)=>(0,e.createElement)("li",{key:a},(0,e.createElement)("a",{href:t.url},t.text)))))))}const n=window.wp.components;function l(){const{strings:a,teamImage:l,homeUrl:s,pageSlug:c}=window.tiSDKAboutData,{heroHeader:i,heroTextFirst:r,heroTextSecond:o,teamImageCaption:m,newsHeading:d,emailPlaceholder:u,signMeUp:E}=a,[p,h]=(0,t.useState)(""),[g,v]=(0,t.useState)(!1),[N,b]=(0,t.useState)(!1);return(0,e.createElement)("div",{className:"container"},(0,e.createElement)("div",{className:"story-card"},(0,e.createElement)("div",{className:"body"},(0,e.createElement)("div",null,(0,e.createElement)("h2",null,i),(0,e.createElement)("p",null,r),(0,e.createElement)("p",null,o)),(0,e.createElement)("figure",null,(0,e.createElement)("img",{src:l,alt:m}),(0,e.createElement)("figcaption",null,m))),(0,e.createElement)("div",{className:"footer"},(0,e.createElement)("h2",null,d),(0,e.createElement)("form",{onSubmit:e=>{e.preventDefault(),v(!0),fetch("https://api.themeisle.com/tracking/subscribe",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json, */*;q=0.1","Cache-Control":"no-cache"},body:JSON.stringify({slug:"about-us",site:s,from:c,email:p})}).then((e=>e.json())).then((e=>{v(!1),"success"===e.code&&b(!0)}))?.catch((e=>{v(!1)}))}},(0,e.createElement)("input",{disabled:g||N,type:"email",value:p,onChange:e=>{h(e.target.value)},placeholder:u}),!g&&!N&&(0,e.createElement)(n.Button,{isPrimary:!0,type:"submit"},E),g&&(0,e.createElement)("span",{className:"dashicons dashicons-update spin"}),N&&(0,e.createElement)("span",{className:"dashicons dashicons-yes-alt"})))))}const s=(e,t=!1)=>new Promise((a=>{wp.updates.ajax(!0===t?"install-theme":"install-plugin",{slug:e,success:()=>{a({success:!0})},error:e=>{a({success:!1,code:e.errorCode})}})}));function c({product:a,slug:l}){const{icon:c,name:i,description:r,status:o,premiumUrl:m,activationLink:d}=a,{strings:u,canInstallPlugins:E,canActivatePlugins:p}=window.tiSDKAboutData,{installNow:h,installed:g,notInstalled:v,active:N,activate:b,learnMore:w}=u,f=!!m,[y,k]=(0,t.useState)(o),[S,T]=(0,t.useState)(!1),D=async()=>{T(!0),await s(l,"neve"===l).then((e=>{e.success&&k("installed")})),T(!1)},x=async()=>{T(!0),window.location.href=d},_=()=>"not-installed"===y&&f?(0,e.createElement)(n.Button,{isLink:!0,icon:"external",href:m,target:"_blank"},w):"not-installed"!==y||f?"installed"===y?(0,e.createElement)(n.Button,{isSecondary:!0,onClick:x,disabled:S||!p},b):null:(0,e.createElement)(n.Button,{isPrimary:!0,onClick:D,disabled:S||!E},h),C=!E&&"not-installed"===y||!p&&"installed"===y?(0,e.createElement)(n.Tooltip,{text:`Ask your admin to enable ${i} on your site`,position:"top center"},_()):_();return(0,e.createElement)("div",{className:"product-card"},(0,e.createElement)("div",{className:"header"},c&&(0,e.createElement)("img",{src:c,alt:i}),(0,e.createElement)("h2",null,i)),(0,e.createElement)("div",{className:"body"},(0,e.createElement)("p",{dangerouslySetInnerHTML:{__html:r}})),(0,e.createElement)("div",{className:"footer"},(0,e.createElement)("p",null,"Status:"," ",(0,e.createElement)("span",{className:y},"installed"===y&&g,"not-installed"===y&&v,"active"===y&&N)),"active"!==y&&!S&&C,S&&(0,e.createElement)("span",{className:"dashicons dashicons-update spin"})))}function i(){const{products:t}=window.tiSDKAboutData;return(0,e.createElement)("div",{className:"container"},(0,e.createElement)("div",{className:"product-cards"},Object.keys(t).map(((a,n)=>(0,e.createElement)(c,{key:a,slug:a,product:t[a]})))))}const r={"otter-page":function({page:a={}}){const{products:l,canInstallPlugins:c,canActivatePlugins:i}=window.tiSDKAboutData,{strings:r,plugin:o}=a,m=a&&a.product?a.product:"",d=m&&l[m]&&l[m].icon?l[m].icon:null,[u,E]=(0,t.useState)(r.testimonials.users[0]),[p,h]=(0,t.useState)(o.status),[g,v]=(0,t.useState)(!1),N="In Progress",b=async()=>{v(!0),await s(m,!1).then((e=>{e.success&&(h("installed"),w())}))},w=async()=>{v(!0),window.location.href=o.activationLink},f=(0,e.createElement)(n.Button,{variant:"primary",disabled:g||("not-installed"===p?!c:!i),className:"otter-button"+(g?" is-loading":""),onClick:"not-installed"===p?b:w},g?(0,e.createElement)("span",null,(0,e.createElement)("span",{className:"dashicons dashicons-update spin"})," ",N):r.buttons.install_otter_free),y=(0,e.createElement)(n.Button,{variant:"primary",disabled:g||("not-installed"===p?!c:!i),className:"otter-button"+(g?" is-loading":""),onClick:"not-installed"===p?b:w},g?(0,e.createElement)("span",null,(0,e.createElement)("span",{className:"dashicons dashicons-update spin"}),N):r.buttons.install_now),k=!c&&"not-installed"===p||!i&&"installed"===p||!1,S=t=>k?(0,e.createElement)(n.Tooltip,{text:"Ask your admin to enable Otter on your site",position:"top center"},t):t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"hero"},d&&(0,e.createElement)("img",{className:"logo",src:d,alt:a.name||""}),(0,e.createElement)("span",{className:"label"},"Neve + Otter = New Possibilities 🤝"),(0,e.createElement)("h1",null,r.heading),(0,e.createElement)("p",null,r.text),("not-installed"===p||"installed"===p)&&S(f)),(0,e.createElement)("div",{className:"col-3-highlights"},(0,e.createElement)("div",{className:"col"},(0,e.createElement)("h3",null,r.features.advancedTitle),(0,e.createElement)("p",null,r.features.advancedDesc)),(0,e.createElement)("div",{className:"col"},(0,e.createElement)("h3",null,r.features.fastTitle),(0,e.createElement)("p",null,r.features.fastDesc)),(0,e.createElement)("div",{className:"col"},(0,e.createElement)("h3",null,r.features.mobileTitle),(0,e.createElement)("p",null,r.features.mobileDesc))),(0,e.createElement)("div",{className:"col-2-highlights"},(0,e.createElement)("div",{className:"col"},(0,e.createElement)("img",{src:r.details.s1Image,alt:r.details.s1Title})),(0,e.createElement)("div",{className:"col"},(0,e.createElement)("h2",null,r.details.s1Title),(0,e.createElement)("p",null,r.details.s1Text))),(0,e.createElement)("div",{className:"col-2-highlights"},(0,e.createElement)("div",{className:"col"},(0,e.createElement)("h2",null,r.details.s2Title),(0,e.createElement)("p",null,r.details.s2Text)),(0,e.createElement)("div",{className:"col"},(0,e.createElement)("img",{src:r.details.s2Image,alt:r.details.s1Title}))),(0,e.createElement)("div",{className:"col-2-highlights"},(0,e.createElement)("div",{className:"col"},(0,e.createElement)("img",{src:r.details.s3Image,alt:r.details.s1Title})),(0,e.createElement)("div",{className:"col"},(0,e.createElement)("h2",null,r.details.s3Title),(0,e.createElement)("p",null,r.details.s3Text))),(0,e.createElement)("div",{className:"col-2-highlights",style:{backgroundColor:"#F7F7F7",borderBottom:"none",borderBottomRightRadius:"8px",borderBottomLeftRadius:"8px"}},(0,e.createElement)("div",{className:"col"},(0,e.createElement)("h2",null,r.testimonials.heading),(0,e.createElement)("div",{className:"button-row"},("not-installed"===p||"installed"===p)&&S(y),(0,e.createElement)("a",{className:"components-button otter-button is-secondary",href:r.buttons.learn_more_link,target:"_blank",rel:"external noreferrer noopener"},r.buttons.learn_more))),(0,e.createElement)("div",{className:"col"},(0,e.createElement)("div",{className:"testimonials"},(0,e.createElement)("ul",{id:"testimonial-container",className:"testimonial-container"},r.testimonials.users.map(((t,a)=>(0,e.createElement)("li",{className:"testimonial",id:"ts_"+a,key:"ts_"+a},(0,e.createElement)("p",null,'"',t.text,'"'),(0,e.createElement)("img",{src:t.avatar,alt:t.name}),(0,e.createElement)("h3",null,t.name))))),(0,e.createElement)("div",{className:"testimonial-nav"},r.testimonials.users.map(((t,a)=>(0,e.createElement)(n.Button,{className:"testimonial-button"+(t.name===u.name?" active":""),key:"button_"+a,onClick:()=>(e=>{const t=r.testimonials.users[e];document.getElementById("ts_"+e).scrollIntoView({behavior:"smooth"}),E(t)})(a)}))))))))}};function o(t){const a=r[t.id];return(0,e.createElement)(a,{page:t.page})}function m({page:t={}}){return(0,e.createElement)("div",{className:"product-page"+(t&&t.product?" "+t.product:"")},(0,e.createElement)(o,{id:t.id,page:t}))}const d=()=>{let e=window.location.hash;return"string"!=typeof window.location.hash?null:e};function u(){const{productPages:n}=window.tiSDKAboutData,s=n?Object.keys(n).map((e=>{const t=n[e];return t.id=e,t})):[],[c,r]=(0,t.useState)(d()),o=()=>{const e=d();null!==e&&r(e)};(0,t.useEffect)((()=>(o(),window.addEventListener("hashchange",o),()=>{window.removeEventListener("hashchange",o)})),[]);const u=s.filter((e=>e.hash===c));return u.length>0?(0,e.createElement)("div",{className:"ti-about"},(0,e.createElement)(a,{pages:s,selected:c}),(0,e.createElement)(m,{page:u[0]})):(0,e.createElement)("div",{className:"ti-about"},(0,e.createElement)(a,{pages:s}),(0,e.createElement)(l,null),(0,e.createElement)(i,null))}document.addEventListener("DOMContentLoaded",(()=>{const a=document.querySelector("#ti-sdk-about");a&&(0,t.render)((0,e.createElement)(u,null),a)}))})(); \ No newline at end of file +(()=>{"use strict";const e=window.React,t=window.wp.element;function a({pages:t=[],selected:a=""}){const{currentProduct:n,logoUrl:l,strings:s,links:c}=window.tiSDKAboutData,i=(e="")=>e===a?"active":"",r=`https://wordpress.org/support/${["neve","hestia"].indexOf(n.slug)>-1?"theme":"plugin"}/${n.slug?.replaceAll("_","-")}/reviews/#new-post`;return(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"head"},(0,e.createElement)("div",{className:"container"},(0,e.createElement)("img",{src:l,alt:n.name}),(0,e.createElement)("p",null,"by ",(0,e.createElement)("a",{href:"https://themeisle.com"},"Themeisle")),(0,e.createElement)("p",{className:"review-link"},"Enjoying ",n.name,"? ",(0,e.createElement)("a",{href:r,target:"_blank"},"Give us a rating!")))),(c.length>0||t.length>0)&&(0,e.createElement)("div",{className:"container"},(0,e.createElement)("ul",{className:"nav"},(0,e.createElement)("li",{className:i()},(0,e.createElement)("a",{href:window.location},s.aboutUs)),t.map(((t,a)=>(0,e.createElement)("li",{className:i(t.hash),key:a},(0,e.createElement)("a",{href:t.hash},t.name)))),c.map(((t,a)=>(0,e.createElement)("li",{key:a},(0,e.createElement)("a",{href:t.url},t.text)))))))}const n=window.wp.components;function l(){const{strings:a,teamImage:l,homeUrl:s,pageSlug:c}=window.tiSDKAboutData,{heroHeader:i,heroTextFirst:r,heroTextSecond:o,teamImageCaption:m,newsHeading:d,emailPlaceholder:u,signMeUp:E}=a,[p,h]=(0,t.useState)(""),[g,v]=(0,t.useState)(!1),[N,b]=(0,t.useState)(!1);return(0,e.createElement)("div",{className:"container"},(0,e.createElement)("div",{className:"story-card"},(0,e.createElement)("div",{className:"body"},(0,e.createElement)("div",null,(0,e.createElement)("h2",null,i),(0,e.createElement)("p",null,r),(0,e.createElement)("p",null,o)),(0,e.createElement)("figure",null,(0,e.createElement)("img",{src:l,alt:m}),(0,e.createElement)("figcaption",null,m))),(0,e.createElement)("div",{className:"footer"},(0,e.createElement)("h2",null,d),(0,e.createElement)("form",{onSubmit:e=>{e.preventDefault(),v(!0),fetch("https://api.themeisle.com/tracking/subscribe",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json, */*;q=0.1","Cache-Control":"no-cache"},body:JSON.stringify({slug:"about-us",site:s,from:c,email:p})}).then((e=>e.json())).then((e=>{v(!1),"success"===e.code&&b(!0)}))?.catch((e=>{v(!1)}))}},(0,e.createElement)("input",{disabled:g||N,type:"email",value:p,onChange:e=>{h(e.target.value)},placeholder:u}),!g&&!N&&(0,e.createElement)(n.Button,{isPrimary:!0,type:"submit"},E),g&&(0,e.createElement)("span",{className:"dashicons dashicons-update spin"}),N&&(0,e.createElement)("span",{className:"dashicons dashicons-yes-alt"})))))}const s=(e,t=!1)=>new Promise((a=>{wp.updates.ajax(!0===t?"install-theme":"install-plugin",{slug:e,success:e=>{a({success:!0,data:e})},error:e=>{a({success:!1,code:e.errorCode})}})}));function c({product:a,slug:l}){const{icon:c,name:i,description:r,status:o,premiumUrl:m,activationLink:d}=a,{strings:u,canInstallPlugins:E,canActivatePlugins:p}=window.tiSDKAboutData,{installNow:h,installed:g,notInstalled:v,active:N,activate:b,learnMore:w}=u,f=!!m,[y,k]=(0,t.useState)(o),[S,T]=(0,t.useState)(!1),D=async()=>{T(!0),await s(l,"neve"===l).then((e=>{e.success&&k("installed")})),T(!1)},x=async()=>{T(!0),window.location.href=d},_=()=>"not-installed"===y&&f?(0,e.createElement)(n.Button,{isLink:!0,icon:"external",href:m,target:"_blank"},w):"not-installed"!==y||f?"installed"===y?(0,e.createElement)(n.Button,{isSecondary:!0,onClick:x,disabled:S||!p},b):null:(0,e.createElement)(n.Button,{isPrimary:!0,onClick:D,disabled:S||!E},h),C=!E&&"not-installed"===y||!p&&"installed"===y?(0,e.createElement)(n.Tooltip,{text:`Ask your admin to enable ${i} on your site`,position:"top center"},_()):_();return(0,e.createElement)("div",{className:"product-card"},(0,e.createElement)("div",{className:"header"},c&&(0,e.createElement)("img",{src:c,alt:i}),(0,e.createElement)("h2",null,i)),(0,e.createElement)("div",{className:"body"},(0,e.createElement)("p",{dangerouslySetInnerHTML:{__html:r}})),(0,e.createElement)("div",{className:"footer"},(0,e.createElement)("p",null,"Status:"," ",(0,e.createElement)("span",{className:y},"installed"===y&&g,"not-installed"===y&&v,"active"===y&&N)),"active"!==y&&!S&&C,S&&(0,e.createElement)("span",{className:"dashicons dashicons-update spin"})))}function i(){const{products:t}=window.tiSDKAboutData;return(0,e.createElement)("div",{className:"container"},(0,e.createElement)("div",{className:"product-cards"},Object.keys(t).map(((a,n)=>(0,e.createElement)(c,{key:a,slug:a,product:t[a]})))))}const r={"otter-page":function({page:a={}}){const{products:l,canInstallPlugins:c,canActivatePlugins:i}=window.tiSDKAboutData,{strings:r,plugin:o}=a,m=a&&a.product?a.product:"",d=m&&l[m]&&l[m].icon?l[m].icon:null,[u,E]=(0,t.useState)(r.testimonials.users[0]),[p,h]=(0,t.useState)(o.status),[g,v]=(0,t.useState)(!1),N="In Progress",b=async()=>{v(!0),await s(m,!1).then((e=>{e.success&&(h("installed"),w())}))},w=async()=>{v(!0),window.location.href=o.activationLink},f=(0,e.createElement)(n.Button,{variant:"primary",disabled:g||("not-installed"===p?!c:!i),className:"otter-button"+(g?" is-loading":""),onClick:"not-installed"===p?b:w},g?(0,e.createElement)("span",null,(0,e.createElement)("span",{className:"dashicons dashicons-update spin"})," ",N):r.buttons.install_otter_free),y=(0,e.createElement)(n.Button,{variant:"primary",disabled:g||("not-installed"===p?!c:!i),className:"otter-button"+(g?" is-loading":""),onClick:"not-installed"===p?b:w},g?(0,e.createElement)("span",null,(0,e.createElement)("span",{className:"dashicons dashicons-update spin"}),N):r.buttons.install_now),k=!c&&"not-installed"===p||!i&&"installed"===p||!1,S=t=>k?(0,e.createElement)(n.Tooltip,{text:"Ask your admin to enable Otter on your site",position:"top center"},t):t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"hero"},d&&(0,e.createElement)("img",{className:"logo",src:d,alt:a.name||""}),(0,e.createElement)("span",{className:"label"},"Neve + Otter = New Possibilities 🤝"),(0,e.createElement)("h1",null,r.heading),(0,e.createElement)("p",null,r.text),("not-installed"===p||"installed"===p)&&S(f)),(0,e.createElement)("div",{className:"col-3-highlights"},(0,e.createElement)("div",{className:"col"},(0,e.createElement)("h3",null,r.features.advancedTitle),(0,e.createElement)("p",null,r.features.advancedDesc)),(0,e.createElement)("div",{className:"col"},(0,e.createElement)("h3",null,r.features.fastTitle),(0,e.createElement)("p",null,r.features.fastDesc)),(0,e.createElement)("div",{className:"col"},(0,e.createElement)("h3",null,r.features.mobileTitle),(0,e.createElement)("p",null,r.features.mobileDesc))),(0,e.createElement)("div",{className:"col-2-highlights"},(0,e.createElement)("div",{className:"col"},(0,e.createElement)("img",{src:r.details.s1Image,alt:r.details.s1Title})),(0,e.createElement)("div",{className:"col"},(0,e.createElement)("h2",null,r.details.s1Title),(0,e.createElement)("p",null,r.details.s1Text))),(0,e.createElement)("div",{className:"col-2-highlights"},(0,e.createElement)("div",{className:"col"},(0,e.createElement)("h2",null,r.details.s2Title),(0,e.createElement)("p",null,r.details.s2Text)),(0,e.createElement)("div",{className:"col"},(0,e.createElement)("img",{src:r.details.s2Image,alt:r.details.s1Title}))),(0,e.createElement)("div",{className:"col-2-highlights"},(0,e.createElement)("div",{className:"col"},(0,e.createElement)("img",{src:r.details.s3Image,alt:r.details.s1Title})),(0,e.createElement)("div",{className:"col"},(0,e.createElement)("h2",null,r.details.s3Title),(0,e.createElement)("p",null,r.details.s3Text))),(0,e.createElement)("div",{className:"col-2-highlights",style:{backgroundColor:"#F7F7F7",borderBottom:"none",borderBottomRightRadius:"8px",borderBottomLeftRadius:"8px"}},(0,e.createElement)("div",{className:"col"},(0,e.createElement)("h2",null,r.testimonials.heading),(0,e.createElement)("div",{className:"button-row"},("not-installed"===p||"installed"===p)&&S(y),(0,e.createElement)("a",{className:"components-button otter-button is-secondary",href:r.buttons.learn_more_link,target:"_blank",rel:"external noreferrer noopener"},r.buttons.learn_more))),(0,e.createElement)("div",{className:"col"},(0,e.createElement)("div",{className:"testimonials"},(0,e.createElement)("ul",{id:"testimonial-container",className:"testimonial-container"},r.testimonials.users.map(((t,a)=>(0,e.createElement)("li",{className:"testimonial",id:"ts_"+a,key:"ts_"+a},(0,e.createElement)("p",null,'"',t.text,'"'),(0,e.createElement)("img",{src:t.avatar,alt:t.name}),(0,e.createElement)("h3",null,t.name))))),(0,e.createElement)("div",{className:"testimonial-nav"},r.testimonials.users.map(((t,a)=>(0,e.createElement)(n.Button,{className:"testimonial-button"+(t.name===u.name?" active":""),key:"button_"+a,onClick:()=>(e=>{const t=r.testimonials.users[e];document.getElementById("ts_"+e).scrollIntoView({behavior:"smooth"}),E(t)})(a)}))))))))}};function o(t){const a=r[t.id];return(0,e.createElement)(a,{page:t.page})}function m({page:t={}}){return(0,e.createElement)("div",{className:"product-page"+(t&&t.product?" "+t.product:"")},(0,e.createElement)(o,{id:t.id,page:t}))}const d=()=>{let e=window.location.hash;return"string"!=typeof window.location.hash?null:e};function u(){const{productPages:n}=window.tiSDKAboutData,s=n?Object.keys(n).map((e=>{const t=n[e];return t.id=e,t})):[],[c,r]=(0,t.useState)(d()),o=()=>{const e=d();null!==e&&r(e)};(0,t.useEffect)((()=>(o(),window.addEventListener("hashchange",o),()=>{window.removeEventListener("hashchange",o)})),[]);const u=s.filter((e=>e.hash===c));return u.length>0?(0,e.createElement)("div",{className:"ti-about"},(0,e.createElement)(a,{pages:s,selected:c}),(0,e.createElement)(m,{page:u[0]})):(0,e.createElement)("div",{className:"ti-about"},(0,e.createElement)(a,{pages:s}),(0,e.createElement)(l,null),(0,e.createElement)(i,null))}document.addEventListener("DOMContentLoaded",(()=>{const a=document.querySelector("#ti-sdk-about");a&&(0,t.render)((0,e.createElement)(u,null),a)}))})(); \ No newline at end of file diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/banner/banner.asset.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/banner/banner.asset.php new file mode 100644 index 00000000..13b23d6e --- /dev/null +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/banner/banner.asset.php @@ -0,0 +1 @@ + array(), 'version' => '9c795bb600f6ae533935'); diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/banner/banner.js b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/banner/banner.js new file mode 100644 index 00000000..be98c34e --- /dev/null +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/banner/banner.js @@ -0,0 +1 @@ +document.addEventListener("DOMContentLoaded",(()=>{document.dispatchEvent(new Event("themeisle:banner:init"))})),document.addEventListener("themeisle:banner:init",(()=>{!function(){if(void 0===window.tsdk_banner_data)return;const n=document.getElementById("tsdk_banner");n&&(n.innerHTML=window.tsdk_banner_data.content)}()})); \ No newline at end of file diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/float_widget/float.asset.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/float_widget/float.asset.php index 9636a057..7edc62dc 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/float_widget/float.asset.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/float_widget/float.asset.php @@ -1 +1 @@ - array('wp-components', 'wp-element'), 'version' => 'ce3090dc0e13b5e1c2e4'); + array('react', 'wp-components', 'wp-element'), 'version' => '80cf3f304af2c0a33ac3'); diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/float_widget/float.js b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/float_widget/float.js index 4c9415cf..86058f3e 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/float_widget/float.js +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/float_widget/float.js @@ -1 +1 @@ -(()=>{"use strict";const e=window.wp.element;function t(t){let{isActive:l,onToggle:n}=t;const{logoUrl:a,primaryColor:o,strings:i,links:s}=window.tiSDKFloatData;return(0,e.createElement)("div",{className:"ti-float-widget-panel",style:{"--ti-float-primary-color":o}},(0,e.createElement)("div",{className:"ti-float-widget-panel__header"},(0,e.createElement)("img",{src:a,alt:"Site Logo"}),i.panelGreet&&(0,e.createElement)("p",null,i.panelGreet),i.panelTitle&&(0,e.createElement)("h3",null,i.panelTitle)),(0,e.createElement)("div",{className:"ti-float-widget-panel__content"},s&&s.map(((t,l)=>(0,e.createElement)("a",{key:"ti-float_link_"+l,href:t.link,target:!0===(null==t?void 0:t.internal)?"_self":"_blank"},(0,e.createElement)("span",{className:"dashicons "+t.icon}),t.title))),(0,e.createElement)("a",{href:"#ti-toggle-widget-float",className:"screen-reader-shortcut"},i.closeToggle?i.closeToggle:"Close")))}const l=window.wp.components;function n(n){let{isActive:a,onToggle:o,onClose:i}=n;const{logoUrl:s,strings:c}=window.tiSDKFloatData,r=c.toggleButton,m=a?"":"active",d=a?"active":"";return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{id:"ti-toggle-widget-float",tabIndex:"0",className:"ti-float-button",onClick:o,"aria-label":"","aria-pressed":a,"aria-disabled":!1,title:r},(0,e.createElement)("img",{className:"ti-float-logo "+m,src:s}),(0,e.createElement)("span",{className:"dashicons dashicons-no-alt ti-float-close-icon "+d}),(0,e.createElement)("span",{className:"screen-reader-text"},r),a&&(0,e.createElement)(l.Popover,{variant:"unstyled",placement:"top-end",onFocusOutside:()=>{console.log("Focus Outside"),i()}},(0,e.createElement)(t,null))))}function a(){const[t,l]=(0,e.useState)(!1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n,{isActive:t,onToggle:()=>{l(!t)},onClose:()=>{l(!1)}}))}document.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelector("#ti-sdk-float-widget");t&&(0,e.render)((0,e.createElement)(a,null),t)}))})(); \ No newline at end of file +(()=>{"use strict";const e=window.React,t=window.wp.element;function l({isActive:t,onToggle:l}){const{logoUrl:n,primaryColor:a,strings:o,links:i}=window.tiSDKFloatData;return(0,e.createElement)("div",{className:"ti-float-widget-panel",style:{"--ti-float-primary-color":a}},(0,e.createElement)("div",{className:"ti-float-widget-panel__header"},(0,e.createElement)("img",{src:n,alt:"Site Logo"}),o.panelGreet&&(0,e.createElement)("p",null,o.panelGreet),o.panelTitle&&(0,e.createElement)("h3",null,o.panelTitle)),(0,e.createElement)("div",{className:"ti-float-widget-panel__content"},i&&i.map(((t,l)=>(0,e.createElement)("a",{key:"ti-float_link_"+l,href:t.link,target:!0===t?.internal?"_self":"_blank"},(0,e.createElement)("span",{className:"dashicons "+t.icon}),t.title))),(0,e.createElement)("a",{href:"#ti-toggle-widget-float",className:"screen-reader-shortcut"},o.closeToggle?o.closeToggle:"Close")))}const n=window.wp.components;function a({isActive:a,onToggle:o,onClose:i}){const{logoUrl:s,strings:c}=window.tiSDKFloatData,r=c.toggleButton,m=a?"":"active",d=a?"active":"";return(0,e.createElement)(t.Fragment,null,(0,e.createElement)("button",{id:"ti-toggle-widget-float",tabIndex:"0",className:"ti-float-button",onClick:o,"aria-label":"","aria-pressed":a,"aria-disabled":!1,title:r},(0,e.createElement)("img",{className:"ti-float-logo "+m,src:s}),(0,e.createElement)("span",{className:"dashicons dashicons-no-alt ti-float-close-icon "+d}),(0,e.createElement)("span",{className:"screen-reader-text"},r),a&&(0,e.createElement)(n.Popover,{variant:"unstyled",placement:"top-end",onFocusOutside:()=>{console.log("Focus Outside"),i()}},(0,e.createElement)(l,null))))}function o(){const[l,n]=(0,t.useState)(!1);return(0,e.createElement)(t.Fragment,null,(0,e.createElement)(a,{isActive:l,onToggle:()=>{n(!l)},onClose:()=>{n(!1)}}))}document.addEventListener("DOMContentLoaded",(()=>{const l=document.querySelector("#ti-sdk-float-widget");l&&(0,t.render)((0,e.createElement)(o,null),l)}))})(); \ No newline at end of file diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/promos/index.asset.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/promos/index.asset.php index 567d0284..2d6fecb5 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/promos/index.asset.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/promos/index.asset.php @@ -1 +1 @@ - array('react', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-plugins'), 'version' => '81a0945a0f941cfc90fa'); + array('react', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-plugins'), 'version' => '3997ba6be36742082cb2'); diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/promos/index.js b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/promos/index.js index 4d08eb27..9321acf9 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/promos/index.js +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/promos/index.js @@ -1 +1 @@ -(()=>{"use strict";var e,t={689:()=>{const e=window.React,t=window.wp.blockEditor,o=window.wp.components,n=window.wp.compose,i=window.wp.data,s=window.wp.element,r=window.wp.hooks,a=()=>{const{createNotice:e}=(0,i.dispatch)("core/notices"),[t,o]=(0,s.useState)({}),[n,r]=(0,s.useState)("loading");return(0,i.useSelect)((e=>{if(Object.keys(t).length)return;const{getEntityRecord:n}=e("core"),i=n("root","site");i&&(r("loaded"),o(i))}),[]),[e=>t?.[e],async(t,n,i="Settings saved.")=>{const s={[t]:n};try{const t=await fetch("/wp-json/wp/v2/settings",{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":wpApiSettings.nonce},body:JSON.stringify(s)});t.ok||(r("error"),e("error","Could not save the settings.",{isDismissible:!0,type:"snackbar"}));const n=await t.json();r("loaded"),e("success",i,{isDismissible:!0,type:"snackbar"}),o(n)}catch(e){console.error("Error updating option:",e)}},n]},l=(e,t=!1)=>new Promise((o=>{wp.updates.ajax(!0===t?"install-theme":"install-plugin",{slug:e,success:()=>{o({success:!0})},error:e=>{o({success:!1,code:e.errorCode})}})})),m=e=>new Promise((t=>{jQuery.get(e).done((()=>{t({success:!0})})).fail((()=>{t({success:!1})}))})),c=(e,t)=>{const o={};return Object.keys(t).forEach((function(e){"innerBlocks"!==e&&(o[e]=t[e])})),e.push(o),Array.isArray(t.innerBlocks)?(o.innerBlocks=t.innerBlocks.map((e=>e.id)),t.innerBlocks.reduce(c,e)):e},d={button:{display:"flex",justifyContent:"center",width:"100%"},image:{padding:"20px 0"},skip:{container:{display:"flex",flexDirection:"column",alignItems:"center"},button:{fontSize:"9px"},poweredby:{fontSize:"9px",textTransform:"uppercase"}}},p={"blocks-css":{title:"Custom CSS",description:"Enable Otter Blocks to add Custom CSS for this block.",image:"css.jpg"},"blocks-animation":{title:"Animations",description:"Enable Otter Blocks to add Animations for this block.",image:"animation.jpg"},"blocks-conditions":{title:"Visibility Conditions",description:"Enable Otter Blocks to add Visibility Conditions for this block.",image:"conditions.jpg"}},u=({onClick:t})=>(0,e.createElement)("div",{style:d.skip.container},(0,e.createElement)(o.Button,{style:d.skip.button,variant:"tertiary",onClick:t},"Skip for now"),(0,e.createElement)("span",{style:d.skip.poweredby},"Recommended by ",window.themeisleSDKPromotions.product)),h=(0,n.createHigherOrderComponent)((n=>i=>{if(i.isSelected&&Boolean(window.themeisleSDKPromotions.showPromotion)){const[r,c]=(0,s.useState)(!1),[h,w]=(0,s.useState)("default"),[g,E]=(0,s.useState)(!1),[k,y,f]=a(),P=async()=>{c(!0),await l("otter-blocks"),y("themeisle_sdk_promotions_otter_installed",!Boolean(k("themeisle_sdk_promotions_otter_installed"))),await m(window.themeisleSDKPromotions.otterActivationUrl),c(!1),w("installed")},S=()=>"installed"===h?(0,e.createElement)("p",null,(0,e.createElement)("strong",null,"Awesome! Refresh the page to see Otter Blocks in action.")):(0,e.createElement)(o.Button,{variant:"secondary",onClick:P,isBusy:r,style:d.button},"Install & Activate Otter Blocks"),b=()=>{const e={...window.themeisleSDKPromotions.option};e[window.themeisleSDKPromotions.showPromotion]=(new Date).getTime()/1e3|0,y("themeisle_sdk_promotions",JSON.stringify(e)),window.themeisleSDKPromotions.showPromotion=!1};return(0,s.useEffect)((()=>{g&&b()}),[g]),g?(0,e.createElement)(n,{...i}):(0,e.createElement)(s.Fragment,null,(0,e.createElement)(n,{...i}),(0,e.createElement)(t.InspectorControls,null,Object.keys(p).map((t=>{if(t===window.themeisleSDKPromotions.showPromotion){const n=p[t];return(0,e.createElement)(o.PanelBody,{key:t,title:n.title,initialOpen:!1},(0,e.createElement)("p",null,n.description),(0,e.createElement)(S,null),(0,e.createElement)("img",{style:d.image,src:window.themeisleSDKPromotions.assets+n.image}),(0,e.createElement)(u,{onClick:()=>E(!0)}))}}))))}return(0,e.createElement)(n,{...i})}),"withInspectorControl");(0,i.select)("core/edit-site")||(0,r.addFilter)("editor.BlockEdit","themeisle-sdk/with-inspector-controls",h);const w=window.wp.plugins,g=window.wp.editPost;function E({stacked:t=!1,noImage:n=!1,type:i,onDismiss:r,onSuccess:c,initialStatus:d=null}){const{assets:p,title:u,email:h,option:w,optionKey:g,labels:E,optimoleActivationUrl:k,optimoleApi:y,optimoleDash:f,nonce:P}=window.themeisleSDKPromotions,[S,b]=(0,s.useState)(!1),[v,D]=(0,s.useState)(h||""),[B,_]=(0,s.useState)(!1),[N,K]=(0,s.useState)(d),[C,O]=a(),A=async()=>{_(!0);const e={...w};e[i]=(new Date).getTime()/1e3|0,window.themeisleSDKPromotions.option=e,await O(g,JSON.stringify(e)),r&&r()},x=()=>{b(!S)},j=e=>{D(e.target.value)},R=async e=>{e.preventDefault(),K("installing"),await l("optimole-wp"),K("activating"),await m(k),O("themeisle_sdk_promotions_optimole_installed",!Boolean(C("themeisle_sdk_promotions_optimole_installed"))),K("connecting");try{await fetch(y,{method:"POST",headers:{"X-WP-Nonce":P,"Content-Type":"application/json"},body:JSON.stringify({email:v})}),c&&c(),K("done")}catch(e){K("done")}};if(B)return null;const I=()=>"done"===N?(0,e.createElement)("div",{className:"done"},(0,e.createElement)("p",null," ",E.optimole.all_set),(0,e.createElement)(o.Button,{icon:"external",isPrimary:!0,href:f,target:"_blank"},E.optimole.gotodash)):N?(0,e.createElement)("p",{className:"om-progress"},(0,e.createElement)("span",{className:"dashicons dashicons-update spin"}),(0,e.createElement)("span",null,"installing"===N&&E.optimole.installing,"activating"===N&&E.optimole.activating,"connecting"===N&&E.optimole.connecting,"…")):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",null,"Enter your email address to create & connect your account"),(0,e.createElement)("form",{onSubmit:R},(0,e.createElement)("input",{defaultValue:v,type:"email",onChange:j,placeholder:E.optimole.email_placeholder}),(0,e.createElement)(o.Button,{isPrimary:!0,type:"submit"},E.optimole.start_cta))),T=()=>(0,e.createElement)(o.Button,{disabled:N&&"done"!==N,onClick:A,isLink:!0,className:"om-notice-dismiss"},(0,e.createElement)("span",{className:"dashicons-no-alt dashicons"}),(0,e.createElement)("span",{className:"screen-reader-text"},E.optimole.dismisscta));return t?(0,e.createElement)("div",{className:"ti-om-stack-wrap"},(0,e.createElement)("div",{className:"om-stack-notice"},T(),(0,e.createElement)("img",{src:p+"/optimole-logo.svg",alt:"Optimole logo"}),(0,e.createElement)("h2",null,E.optimole.heading),(0,e.createElement)("p",null,"om-editor"===i||"om-image-block"===i?E.optimole.message1:E.optimole.message2),!S&&"done"!==N&&(0,e.createElement)(o.Button,{isPrimary:!0,onClick:x,className:"cta"},E.optimole.gst),(S||"done"===N)&&I(),(0,e.createElement)("i",null,u))):(0,e.createElement)(e.Fragment,null,T(),(0,e.createElement)("div",{className:"content"},!n&&(0,e.createElement)("img",{src:p+"/optimole-logo.svg",alt:"Optimole logo"}),(0,e.createElement)("div",null,(0,e.createElement)("p",null,u),(0,e.createElement)("p",{className:"description"},"om-media"===i?E.optimole.message3:E.optimole.message4),!S&&(0,e.createElement)("div",{className:"actions"},(0,e.createElement)(o.Button,{isPrimary:!0,onClick:x},E.optimole.gst),(0,e.createElement)(o.Button,{isLink:!0,target:"_blank",href:"https://wordpress.org/plugins/optimole-wp"},(0,e.createElement)("span",{className:"dashicons dashicons-external"}),(0,e.createElement)("span",null," ",E.optimole.learnmore))),S&&(0,e.createElement)("div",{className:"form-wrap"},I()))))}const k=()=>{const[t,o]=(0,s.useState)(!0),{getBlocks:n}=(0,i.useSelect)((e=>{const{getBlocks:t}=e("core/block-editor");return{getBlocks:t}}));var r;if((r=n(),"core/image",r.reduce(c,[]).filter((e=>"core/image"===e.name))).length<2)return null;const a="ti-sdk-optimole-post-publish "+(t?"":"hidden");return(0,e.createElement)(g.PluginPostPublishPanel,{className:a},(0,e.createElement)(E,{stacked:!0,type:"om-editor",onDismiss:()=>{o(!1)}}))};new class{constructor(){const{showPromotion:e,debug:t}=window.themeisleSDKPromotions;this.promo=e,this.debug="1"===t,this.domRef=null,this.run()}run(){if(this.debug)this.runAll();else switch(this.promo){case"om-attachment":this.runAttachmentPromo();break;case"om-media":this.runMediaPromo();break;case"om-editor":this.runEditorPromo();break;case"om-image-block":this.runImageBlockPromo();break;case"om-elementor":this.runElementorPromo()}}runAttachmentPromo(){wp.media.view.Attachment.Details.prototype.on("ready",(()=>{setTimeout((()=>{this.removeAttachmentPromo(),this.addAttachmentPromo()}),100)})),wp.media.view.Modal.prototype.on("close",(()=>{setTimeout(this.removeAttachmentPromo,100)}))}runMediaPromo(){if(window.themeisleSDKPromotions.option["om-media"])return;const t=document.querySelector("#ti-optml-notice");t&&(0,s.render)((0,e.createElement)(E,{type:"om-media",onDismiss:()=>{t.style.opacity=0}}),t)}runImageBlockPromo(){if(window.themeisleSDKPromotions.option["om-image-block"])return;let o=!0,i=null;const a=(0,n.createHigherOrderComponent)((n=>r=>"core/image"===r.name&&o?(0,e.createElement)(s.Fragment,null,(0,e.createElement)(n,{...r}),(0,e.createElement)(t.InspectorControls,null,(0,e.createElement)(E,{stacked:!0,type:"om-image-block",initialStatus:i,onDismiss:()=>{o=!1},onSuccess:()=>{i="done"}}))):(0,e.createElement)(n,{...r})),"withImagePromo");(0,r.addFilter)("editor.BlockEdit","optimole-promo/image-promo",a,99)}runEditorPromo(){window.themeisleSDKPromotions.option["om-editor"]||(0,w.registerPlugin)("optimole-promo",{render:k})}runElementorPromo(){if(!window.elementor)return;const e=this;elementor.on("preview:loaded",(()=>{elementor.panel.currentView.on("set:page:editor",(t=>{e.domRef&&(0,s.unmountComponentAtNode)(e.domRef),t.activeSection&&"section_image"===t.activeSection&&e.runElementorActions(e)}))}))}addAttachmentPromo(){if(this.domRef&&(0,s.unmountComponentAtNode)(this.domRef),window.themeisleSDKPromotions.option["om-attachment"])return;const t=document.querySelector("#ti-optml-notice-helper");t&&(this.domRef=t,(0,s.render)((0,e.createElement)("div",{className:"notice notice-info ti-sdk-om-notice",style:{margin:0}},(0,e.createElement)(E,{noImage:!0,type:"om-attachment",onDismiss:()=>{t.style.opacity=0}})),t))}removeAttachmentPromo(){const e=document.querySelector("#ti-optml-notice-helper");e&&(0,s.unmountComponentAtNode)(e)}runElementorActions(t){if(window.themeisleSDKPromotions.option["om-elementor"])return;const o=document.querySelector("#elementor-panel__editor__help"),n=document.createElement("div");n.id="ti-optml-notice",t.domRef=n,o&&(o.parentNode.insertBefore(n,o),(0,s.render)((0,e.createElement)(E,{stacked:!0,type:"om-elementor",onDismiss:()=>{n.style.opacity=0}}),n))}runAll(){this.runAttachmentPromo(),this.runMediaPromo(),this.runEditorPromo(),this.runImageBlockPromo(),this.runElementorPromo()}};const y=({onDismiss:t=(()=>{})})=>{const[n,i]=(0,s.useState)(""),[r,c]=a();return(0,e.createElement)(s.Fragment,null,(0,e.createElement)(o.Button,{disabled:"installing"===n,onClick:async()=>{const e={...window.themeisleSDKPromotions.option};e["rop-posts"]=(new Date).getTime()/1e3|0,window.themeisleSDKPromotions.option=e,await c(window.themeisleSDKPromotions.optionKey,JSON.stringify(e)),t&&t()},variant:"link",className:"om-notice-dismiss"},(0,e.createElement)("span",{className:"dashicons-no-alt dashicons"}),(0,e.createElement)("span",{className:"screen-reader-text"},"Dismiss this notice.")),(0,e.createElement)("p",null,"Boost your content's reach effortlessly! Introducing ",(0,e.createElement)("b",null,"Revive Old Posts"),", a cutting-edge plugin from the makers of ",window.themeisleSDKPromotions.product,". Seamlessly auto-share old & new content across social media, driving traffic like never before."),(0,e.createElement)("div",{className:"rop-notice-actions"},"installed"!==n?(0,e.createElement)(o.Button,{variant:"primary",isBusy:"installing"===n,onClick:async()=>{i("installing"),await l("tweet-old-post"),await m(window.themeisleSDKPromotions.ropActivationUrl),c("themeisle_sdk_promotions_rop_installed",!Boolean(r("themeisle_sdk_promotions_rop_installed"))),i("installed")}},"Install & Activate"):(0,e.createElement)(o.Button,{variant:"primary",href:window.themeisleSDKPromotions.ropDash},"Visit Dashboard"),(0,e.createElement)(o.Button,{variant:"link",target:"_blank",href:"https://wordpress.org/plugins/tweet-old-post/"},(0,e.createElement)("span",{className:"dashicons dashicons-external"}),(0,e.createElement)("span",null,"Learn more"))))};new class{constructor(){const{showPromotion:e,debug:t}=window.themeisleSDKPromotions;this.promo=e,this.debug="1"===t,this.domRef=null,this.run()}run(){if(window.themeisleSDKPromotions.option["rop-posts"])return;const t=document.querySelector("#ti-rop-notice");t&&(0,s.render)((0,e.createElement)(y,{onDismiss:()=>{t.style.display="none"}}),t)}};const f=({onDismiss:t=(()=>{})})=>{const[n,i]=a(),{neveFSEMoreUrl:r}=window.themeisleSDKPromotions;return(0,e.createElement)(s.Fragment,null,(0,e.createElement)(o.Button,{onClick:async()=>{const e={...window.themeisleSDKPromotions.option};e["neve-fse-themes-popular"]=(new Date).getTime()/1e3|0,window.themeisleSDKPromotions.option=e,await i(window.themeisleSDKPromotions.optionKey,JSON.stringify(e)),t&&t()},className:"notice-dismiss"},(0,e.createElement)("span",{className:"screen-reader-text"},"Dismiss this notice.")),(0,e.createElement)("p",null,"Meet ",(0,e.createElement)("b",null,"Neve FSE")," from the makers of ",window.themeisleSDKPromotions.product,". A theme that makes full site editing on WordPress straightforward and user-friendly."),(0,e.createElement)("div",{className:"neve-fse-notice-actions"},(0,e.createElement)(o.Button,{variant:"link",target:"_blank",href:r},(0,e.createElement)("span",{className:"dashicons dashicons-external"}),(0,e.createElement)("span",null,"Learn more"))))};new class{constructor(){const{showPromotion:e,debug:t}=window.themeisleSDKPromotions;this.promo=e,this.debug="1"===t,this.domRef=null,this.run()}run(){if(window.themeisleSDKPromotions.option["neve-fse-themes-popular"])return;const t=document.querySelector("#ti-neve-fse-notice");t&&(0,s.render)((0,e.createElement)(f,{onDismiss:()=>{t.style.display="none"}}),t)}}}},o={};function n(e){var i=o[e];if(void 0!==i)return i.exports;var s=o[e]={exports:{}};return t[e](s,s.exports,n),s.exports}n.m=t,e=[],n.O=(t,o,i,s)=>{if(!o){var r=1/0;for(c=0;c=s)&&Object.keys(n.O).every((e=>n.O[e](o[l])))?o.splice(l--,1):(a=!1,s0&&e[c-1][2]>s;c--)e[c]=e[c-1];e[c]=[o,i,s]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var i,s,[r,a,l]=o,m=0;if(r.some((t=>0!==e[t]))){for(i in a)n.o(a,i)&&(n.m[i]=a[i]);if(l)var c=l(n)}for(t&&t(o);mn(689)));i=n.O(i)})(); \ No newline at end of file +(()=>{"use strict";var e,t={536:()=>{const e=window.React,t=window.wp.blockEditor,n=window.wp.components,o=window.wp.compose,i=window.wp.data,s=window.wp.element,a=window.wp.hooks,l=()=>{const{createNotice:e}=(0,i.dispatch)("core/notices"),[t,n]=(0,s.useState)({}),[o,a]=(0,s.useState)("loading");return(0,i.useSelect)((e=>{if(Object.keys(t).length)return;const{getEntityRecord:o}=e("core"),i=o("root","site");i&&(a("loaded"),n(i))}),[]),[e=>t?.[e],async(t,o,i="Settings saved.")=>{const s={[t]:o};try{const t=await fetch("/wp-json/wp/v2/settings",{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":wpApiSettings.nonce},body:JSON.stringify(s)});t.ok||(a("error"),e("error","Could not save the settings.",{isDismissible:!0,type:"snackbar"}));const o=await t.json();a("loaded"),e("success",i,{isDismissible:!0,type:"snackbar"}),n(o)}catch(e){console.error("Error updating option:",e)}},o]},r=(e,t=!1)=>new Promise((n=>{wp.updates.ajax(!0===t?"install-theme":"install-plugin",{slug:e,success:e=>{n({success:!0,data:e})},error:e=>{n({success:!1,code:e.errorCode})}})})),c=e=>new Promise((t=>{jQuery.get(e).done((()=>{t({success:!0})})).fail((()=>{t({success:!1})}))})),m=(e,t)=>{const n={};return Object.keys(t).forEach((function(e){"innerBlocks"!==e&&(n[e]=t[e])})),e.push(n),Array.isArray(t.innerBlocks)?(n.innerBlocks=t.innerBlocks.map((e=>e.id)),t.innerBlocks.reduce(m,e)):e},d={button:{display:"flex",justifyContent:"center",width:"100%"},image:{padding:"20px 0"},skip:{container:{display:"flex",flexDirection:"column",alignItems:"center"},button:{fontSize:"9px"},poweredby:{fontSize:"9px",textTransform:"uppercase"}}},p={"blocks-css":{title:"Custom CSS",description:"Enable Otter Blocks to add Custom CSS for this block.",image:"css.jpg"},"blocks-animation":{title:"Animations",description:"Enable Otter Blocks to add Animations for this block.",image:"animation.jpg"},"blocks-conditions":{title:"Visibility Conditions",description:"Enable Otter Blocks to add Visibility Conditions for this block.",image:"conditions.jpg"}},u=({onClick:t})=>(0,e.createElement)("div",{style:d.skip.container},(0,e.createElement)(n.Button,{style:d.skip.button,variant:"tertiary",onClick:t},"Skip for now"),(0,e.createElement)("span",{style:d.skip.poweredby},"Recommended by ",window.themeisleSDKPromotions.product)),h=(0,o.createHigherOrderComponent)((o=>i=>{const[a,m]=(0,s.useState)(!1),[h,w]=(0,s.useState)("default"),[g,E]=(0,s.useState)(!1),[y,v,f]=l();if((0,s.useEffect)((()=>{g&&(()=>{const e={...window.themeisleSDKPromotions.option};e[window.themeisleSDKPromotions.showPromotion]=(new Date).getTime()/1e3|0,v("themeisle_sdk_promotions",JSON.stringify(e)),window.themeisleSDKPromotions.showPromotion=!1})()}),[g]),!i.isSelected||!Boolean(window.themeisleSDKPromotions.showPromotion))return(0,e.createElement)(o,{...i});const k=async()=>{m(!0),await r("otter-blocks"),v("themeisle_sdk_promotions_otter_installed",!Boolean(y("themeisle_sdk_promotions_otter_installed"))),await c(window.themeisleSDKPromotions.otterActivationUrl),m(!1),w("installed")},S=()=>"installed"===h?(0,e.createElement)("p",null,(0,e.createElement)("strong",null,"Awesome! Refresh the page to see Otter Blocks in action.")):(0,e.createElement)(n.Button,{variant:"secondary",onClick:k,isBusy:a,style:d.button},"Install & Activate Otter Blocks");return g?(0,e.createElement)(o,{...i}):(0,e.createElement)(s.Fragment,null,(0,e.createElement)(o,{...i}),(0,e.createElement)(t.InspectorControls,null,Object.keys(p).map((t=>{if(t===window.themeisleSDKPromotions.showPromotion){const o=p[t];return(0,e.createElement)(n.PanelBody,{key:t,title:o.title,initialOpen:!1},(0,e.createElement)("p",null,o.description),(0,e.createElement)(S,null),(0,e.createElement)("img",{style:d.image,src:window.themeisleSDKPromotions.assets+o.image}),(0,e.createElement)(u,{onClick:()=>E(!0)}))}}))))}),"withInspectorControl");(0,i.select)("core/edit-site")||(0,a.addFilter)("editor.BlockEdit","themeisle-sdk/with-inspector-controls",h);const w=window.wp.plugins,g=window.wp.editPost;function E({stacked:t=!1,type:o,onDismiss:i,onSuccess:a,initialStatus:m=null}){const{title:d,option:p,optionKey:u,labels:h,optimoleActivationUrl:w,optimoleDash:g}=window.themeisleSDKPromotions,[E,y]=(0,s.useState)(!1),[v,f]=(0,s.useState)(m),[k,S]=l(),P=async()=>{y(!0);const e={...p};e[o]=(new Date).getTime()/1e3|0,window.themeisleSDKPromotions.option=e,await S(u,JSON.stringify(e)),i&&i()},_=async e=>{e.preventDefault(),f("installing"),await r("optimole-wp"),f("activating"),await c(w),S("themeisle_sdk_promotions_optimole_installed",!0).then((()=>{f("done")}))};if(E)return null;const b=()=>"done"===v?(0,e.createElement)("div",{className:"done"},(0,e.createElement)("p",null," ",h.all_set),(0,e.createElement)(n.Button,{icon:"external",isPrimary:!0,href:g,target:"_blank"},h.optimole.gotodash)):(0,e.createElement)("p",{className:"om-progress"},(0,e.createElement)("span",{className:"dashicons dashicons-update spin"}),(0,e.createElement)("span",null,"installing"===v&&h.installing,"activating"===v&&h.activating,"…")),D=()=>(0,e.createElement)(n.Button,{disabled:v&&"done"!==v,onClick:P,isLink:!0,className:"om-notice-dismiss"},(0,e.createElement)("span",{className:"dashicons-no-alt dashicons"}),(0,e.createElement)("span",{className:"screen-reader-text"},h.optimole.dismisscta)),N=(t=!1)=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.Button,{isPrimary:!0,onClick:_,className:t?"cta":""},h.optimole.installOptimole),(0,e.createElement)(n.Button,{isLink:!0,target:"_blank",href:"https://wordpress.org/plugins/optimole-wp"},(0,e.createElement)("span",{className:"dashicons dashicons-external"}),(0,e.createElement)("span",null," ",h.learnmore))),B=(0,e.createElement)("div",{className:"ti-om-stack-wrap ti-sdk-om-notice"},(0,e.createElement)("div",{className:"om-stack-notice"},D(),(0,e.createElement)("i",null,d),(0,e.createElement)("p",null,["om-editor","om-image-block"].includes(o)?h.optimole.message1:h.optimole.message2),v?b():N(!0))),K=(0,e.createElement)(e.Fragment,null,D(),(0,e.createElement)("div",{className:"content"},(0,e.createElement)("div",null,(0,e.createElement)("p",null,d),(0,e.createElement)("p",{className:"description"},"om-media"===o?h.optimole.message3:h.optimole.message4),v?b():(0,e.createElement)("div",{className:"actions"},N()))));return t?B:K}const y=()=>{const[t,n]=(0,s.useState)(!0),{getBlocks:o}=(0,i.useSelect)((e=>{const{getBlocks:t}=e("core/block-editor");return{getBlocks:t}}));var a;if((a=o(),"core/image",a.reduce(m,[]).filter((e=>"core/image"===e.name))).length<2)return null;const l="ti-sdk-optimole-post-publish "+(t?"":"hidden");return(0,e.createElement)(g.PluginPostPublishPanel,{className:l},(0,e.createElement)(E,{stacked:!0,type:"om-editor",onDismiss:()=>{n(!1)}}))};new class{constructor(){const{showPromotion:e,debug:t}=window.themeisleSDKPromotions;this.promo=e,this.debug="1"===t,this.domRef=null,this.run()}run(){if(this.debug)this.runAll();else switch(this.promo){case"om-attachment":this.runAttachmentPromo();break;case"om-media":this.runMediaPromo();break;case"om-editor":this.runEditorPromo();break;case"om-image-block":this.runImageBlockPromo();break;case"om-elementor":this.runElementorPromo()}}runAttachmentPromo(){wp.media.view.Attachment.Details.prototype.on("ready",(()=>{setTimeout((()=>{this.removeAttachmentPromo(),this.addAttachmentPromo()}),100)})),wp.media.view.Modal.prototype.on("close",(()=>{setTimeout(this.removeAttachmentPromo,100)}))}runMediaPromo(){if(window.themeisleSDKPromotions.option["om-media"])return;const t=document.querySelector("#ti-optml-notice");t&&(0,s.render)((0,e.createElement)(E,{type:"om-media",onDismiss:()=>{t.style.opacity=0}}),t)}runImageBlockPromo(){if(window.themeisleSDKPromotions.option["om-image-block"])return;let n=!0,i=null;const l=(0,o.createHigherOrderComponent)((o=>a=>"core/image"===a.name&&n?(0,e.createElement)(s.Fragment,null,(0,e.createElement)(o,{...a}),(0,e.createElement)(t.InspectorControls,null,(0,e.createElement)(E,{stacked:!0,type:"om-image-block",initialStatus:i,onDismiss:()=>{n=!1},onSuccess:()=>{i="done"}}))):(0,e.createElement)(o,{...a})),"withImagePromo");(0,a.addFilter)("editor.BlockEdit","optimole-promo/image-promo",l,99)}runEditorPromo(){window.themeisleSDKPromotions.option["om-editor"]||(0,w.registerPlugin)("optimole-promo",{render:y})}runElementorPromo(){if(!window.elementor)return;const e=this;elementor.on("preview:loaded",(()=>{elementor.panel.currentView.on("set:page:editor",(t=>{e.domRef&&(0,s.unmountComponentAtNode)(e.domRef),t.activeSection&&"section_image"===t.activeSection&&e.runElementorActions(e)}))}))}addAttachmentPromo(){if(this.domRef&&(0,s.unmountComponentAtNode)(this.domRef),window.themeisleSDKPromotions.option["om-attachment"])return;const t=document.querySelector("#ti-optml-notice-helper");t&&(this.domRef=t,(0,s.render)((0,e.createElement)("div",{className:"notice notice-info ti-sdk-om-notice",style:{margin:0}},(0,e.createElement)(E,{type:"om-attachment",onDismiss:()=>{t.style.opacity=0}})),t))}removeAttachmentPromo(){const e=document.querySelector("#ti-optml-notice-helper");e&&(0,s.unmountComponentAtNode)(e)}runElementorActions(t){if(window.themeisleSDKPromotions.option["om-elementor"])return;const n=document.querySelector("#elementor-panel__editor__help"),o=document.createElement("div");o.id="ti-optml-notice",t.domRef=o,n&&(n.parentNode.insertBefore(o,n),(0,s.render)((0,e.createElement)(E,{stacked:!0,type:"om-elementor",onDismiss:()=>{o.style.opacity=0}}),o))}runAll(){this.runAttachmentPromo(),this.runMediaPromo(),this.runEditorPromo(),this.runImageBlockPromo(),this.runElementorPromo()}};const v=({onDismiss:t=(()=>{})})=>{const[o,i]=(0,s.useState)(""),[a,m]=l();return(0,e.createElement)(s.Fragment,null,(0,e.createElement)(n.Button,{disabled:"installing"===o,onClick:async()=>{const e={...window.themeisleSDKPromotions.option};e["rop-posts"]=(new Date).getTime()/1e3|0,window.themeisleSDKPromotions.option=e,await m(window.themeisleSDKPromotions.optionKey,JSON.stringify(e)),t&&t()},variant:"link",className:"om-notice-dismiss"},(0,e.createElement)("span",{className:"dashicons-no-alt dashicons"}),(0,e.createElement)("span",{className:"screen-reader-text"},"Dismiss this notice.")),(0,e.createElement)("p",null,"Boost your content's reach effortlessly! Introducing ",(0,e.createElement)("b",null,"Revive Social"),", a cutting-edge plugin from the makers of ",window.themeisleSDKPromotions.product,". Seamlessly auto-share old & new content across social media, driving traffic like never before."),(0,e.createElement)("div",{className:"rop-notice-actions"},"installed"!==o?(0,e.createElement)(n.Button,{variant:"primary",isBusy:"installing"===o,onClick:async()=>{i("installing"),await r("tweet-old-post"),await c(window.themeisleSDKPromotions.ropActivationUrl),m("themeisle_sdk_promotions_rop_installed",!Boolean(a("themeisle_sdk_promotions_rop_installed"))),i("installed")}},"Install & Activate"):(0,e.createElement)(n.Button,{variant:"primary",href:window.themeisleSDKPromotions.ropDash},"Visit Dashboard"),(0,e.createElement)(n.Button,{variant:"link",target:"_blank",href:"https://wordpress.org/plugins/tweet-old-post/"},(0,e.createElement)("span",{className:"dashicons dashicons-external"}),(0,e.createElement)("span",null,"Learn more"))))};new class{constructor(){const{showPromotion:e,debug:t}=window.themeisleSDKPromotions;this.promo=e,this.debug="1"===t,this.domRef=null,this.run()}run(){if(window.themeisleSDKPromotions.option["rop-posts"])return;const t=document.querySelector("#ti-rop-notice");t&&(0,s.render)((0,e.createElement)(v,{onDismiss:()=>{t.style.display="none"}}),t)}};const f=({onDismiss:t=(()=>{})})=>{const{title:o,optionKey:i,labels:a,neveAction:c,activateNeveURL:m}=window.themeisleSDKPromotions,[d,p]=l(),[u,h]=(0,s.useState)(null);return(0,e.createElement)(s.Fragment,null,(0,e.createElement)(n.Button,{disabled:u&&"done"!==u,onClick:async()=>{const e={...window.themeisleSDKPromotions.option};e["neve-themes-popular"]=(new Date).getTime()/1e3|0,window.themeisleSDKPromotions.option=e,await p(i,JSON.stringify(e)),t&&t()},isLink:!0,className:"om-notice-dismiss"},(0,e.createElement)("span",{className:"dashicons-no-alt dashicons"}),(0,e.createElement)("span",{className:"screen-reader-text"},a.redirectionCF7.dismisscta)),(0,e.createElement)("div",{className:"content"},(0,e.createElement)("div",null,(0,e.createElement)("p",null,o),(0,e.createElement)("p",{className:"description"},"Meet ",(0,e.createElement)("b",null,"Neve"),", from the creators of ",window.themeisleSDKPromotions.product,". A very fast and free theme, trusted by over 300,000 users for building their websites and rated 4.7 stars!"),!u&&(0,e.createElement)("div",{className:"actions"},(0,e.createElement)(n.Button,{variant:"primary",onClick:e=>{if(e.preventDefault(),"activate"===c)return h("activating"),void p("themeisle_sdk_promotions_neve_installed",!0).then((()=>{window.location.href=m}));h("installing"),r("neve",!0).then((e=>{h("activating"),p("themeisle_sdk_promotions_neve_installed",!0).then((()=>{window.location.href=e.data.activateUrl}))}))}},"install"===c&&a.installActivate,"activate"===c&&a.activate),(0,e.createElement)(n.Button,{variant:"link",href:window.themeisleSDKPromotions.nevePreviewURL},a.preview)),u&&"done"!==u&&(0,e.createElement)("p",{className:"om-progress"},(0,e.createElement)("span",{className:"dashicons dashicons-update spin"}),(0,e.createElement)("span",null,"installing"===u&&a.installing,"activating"===u&&a.activating,"…")))))};function k({type:t,onDismiss:o}){const{title:i,option:a,optionKey:m,labels:d,rfCF7ActivationUrl:p,cf7Dash:u}=window.themeisleSDKPromotions,[h,w]=(0,s.useState)(!1),[g,E]=(0,s.useState)(null),[y,v]=l();if(h)return null;const f=(0,e.createElement)("div",{className:"actions"},(0,e.createElement)(n.Button,{isPrimary:!0,onClick:async e=>{e.preventDefault(),E("installing"),await r("wpcf7-redirect"),E("activating"),await c(p),v("themeisle_sdk_promotions_redirection_cf7_installed",!Boolean(y("themeisle_sdk_promotions_redirection_cf7_installed"))),E("done")}},d.redirectionCF7.gst),(0,e.createElement)(n.Button,{isLink:!0,target:"_blank",href:"https://wordpress.org/plugins/wpcf7-redirect/"},(0,e.createElement)("span",{className:"dashicons dashicons-external"}),(0,e.createElement)("span",null," ",d.learnmore)));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.Button,{disabled:g&&"done"!==g,onClick:async()=>{w(!0);const e={...a};e[t]=(new Date).getTime()/1e3|0,window.themeisleSDKPromotions.option=e,await v(m,JSON.stringify(e)),o&&o()},isLink:!0,className:"om-notice-dismiss"},(0,e.createElement)("span",{className:"dashicons-no-alt dashicons"}),(0,e.createElement)("span",{className:"screen-reader-text"},d.redirectionCF7.dismisscta)),(0,e.createElement)("div",{className:"content"},(0,e.createElement)("div",null,(0,e.createElement)("p",null,i),(0,e.createElement)("p",{className:"description"},d.redirectionCF7.message),g?"done"===g?(0,e.createElement)("div",{className:"done"},(0,e.createElement)("p",null," ",d.all_set),(0,e.createElement)(n.Button,{icon:"external",variant:"primary",href:u,target:"_blank"},d.redirectionCF7.gotodash)):(0,e.createElement)("p",{className:"om-progress"},(0,e.createElement)("span",{className:"dashicons dashicons-update spin"}),(0,e.createElement)("span",null,"installing"===g&&d.installing,"activating"===g&&d.activating,"…")):f)))}new class{constructor(){const{showPromotion:e,debug:t}=window.themeisleSDKPromotions;this.promo=e,this.debug="1"===t,this.domRef=null,this.run()}run(){if(window.themeisleSDKPromotions.option["neve-themes-popular"])return;const t=document.querySelector("#ti-neve-notice");t&&(0,s.render)((0,e.createElement)(f,{onDismiss:()=>{t.style.display="none"}}),t)}},new class{constructor(){this.run()}run(){if(window.themeisleSDKPromotions.option["redirection-cf7"])return;const t=document.querySelector("#ti-redirection-cf7-notice");t&&(0,s.render)((0,e.createElement)(k,{type:"redirection-cf7",onDismiss:()=>{t.style.display="none"}}),t)}};const S=({onDismiss:t=(()=>{})})=>{const{title:o,option:i,optionKey:a,labels:m,hyveActivationUrl:d,hyveDash:p}=window.themeisleSDKPromotions,[u,h]=(0,s.useState)(!1),[w,g]=(0,s.useState)(null),[E,y]=l();if(u)return null;const v=(0,e.createElement)("div",{className:"actions"},(0,e.createElement)(n.Button,{variant:"primary",onClick:async e=>{e.preventDefault(),g("installing"),await r("hyve-lite"),g("activating"),await c(d),y("themeisle_sdk_promotions_hyve_installed",!Boolean(E("themeisle_sdk_promotions_hyve_installed"))),g("done")}},m.hyve.install),(0,e.createElement)(n.Button,{variant:"link",target:"_blank",href:"https://wordpress.org/plugins/hyve-lite/"},(0,e.createElement)("span",{className:"dashicons dashicons-external"}),(0,e.createElement)("span",null,m.learnmore)));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.Button,{disabled:w&&"done"!==w,onClick:async()=>{h(!0);const e={...i};e["hyve-plugins-install"]=(new Date).getTime()/1e3|0,window.themeisleSDKPromotions.option=e,await y(a,JSON.stringify(e)),t&&t()},variant:"link",className:"om-notice-dismiss"},(0,e.createElement)("span",{className:"dashicons-no-alt dashicons"}),(0,e.createElement)("span",{className:"screen-reader-text"},m.hyve.dismisscta)),(0,e.createElement)("div",{className:"content"},(0,e.createElement)("div",null,(0,e.createElement)("p",null,o),(0,e.createElement)("p",{className:"description"},m.hyve.message),w?"done"===w?(0,e.createElement)("div",{className:"done"},(0,e.createElement)("p",null,m.all_set),(0,e.createElement)(n.Button,{icon:"external",variant:"primary",href:p,target:"_blank"},m.hyve.gotodash)):(0,e.createElement)("p",{className:"om-progress"},(0,e.createElement)("span",{className:"dashicons dashicons-update spin"}),(0,e.createElement)("span",null,"installing"===w&&m.installing,"activating"===w&&m.activating,"…")):v)))};(()=>{if(window.themeisleSDKPromotions.option["hyve-plugins-install"])return;const t=document.querySelector("#ti-hyve-notice");t&&(0,s.createRoot)(t).render((0,e.createElement)(S,{onDismiss:()=>{t.style.display="none"}}))})();const P=(0,o.createHigherOrderComponent)((o=>i=>{if("core/rss"!==i.name||!Boolean(window.themeisleSDKPromotions.showPromotion))return(0,e.createElement)(o,{...i});if("feedzy-editor"!==window.themeisleSDKPromotions.showPromotion)return(0,e.createElement)(o,{...i});const[a,r,c]=l(),[m,d]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{m&&(()=>{const e={...window.themeisleSDKPromotions.option};e[window.themeisleSDKPromotions.showPromotion]=(new Date).getTime()/1e3|0,r("themeisle_sdk_promotions",JSON.stringify(e)),window.themeisleSDKPromotions.showPromotion=!1})()}),[m]),m?(0,e.createElement)(o,{...i}):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o,{...i}),(0,e.createElement)(t.InspectorControls,null,(0,e.createElement)(n.PanelBody,null,(0,e.createElement)("div",{style:{padding:"16px 10px",backgroundColor:"#f0f6fc",borderLeft:"4px solid #72aee6",margin:"5px 0",fontSize:"13px",color:"#1e1e1e",position:"relative"}},(0,e.createElement)("div",{dangerouslySetInnerHTML:{__html:window.themeisleSDKPromotions.labels.feedzy.editor_recommends}}),(0,e.createElement)("button",{onClick:()=>d(!0),style:{position:"absolute",top:"-2px",right:"3px",cursor:"pointer",background:"none",border:"none",padding:"2px",color:"#757575",fontSize:"16px"}},"×")))))}),"withFeedzyNotice");(0,a.addFilter)("editor.BlockEdit","feedzy/with-notice",P);const _=({onDismiss:t=(()=>{})})=>{const{title:o,option:i,optionKey:a,labels:m,wpFullPayActivationUrl:d,wpFullPayDash:p}=window.themeisleSDKPromotions,[u,h]=(0,s.useState)(!1),[w,g]=(0,s.useState)(null),[E,y]=l();if(u)return null;const v=(0,e.createElement)("div",{className:"actions"},(0,e.createElement)(n.Button,{variant:"primary",onClick:async e=>{e.preventDefault(),g("installing"),await r("wp-full-stripe-free"),g("activating"),await c(d),y("themeisle_sdk_promotions_wp_full_pay_installed",!Boolean(E("themeisle_sdk_promotions_wp_full_pay_installed"))),g("done")}},m.wp_full_pay.install),(0,e.createElement)(n.Button,{variant:"link",target:"_blank",href:"https://wordpress.org/plugins/wp-full-stripe-free/"},(0,e.createElement)("span",{className:"dashicons dashicons-external"}),(0,e.createElement)("span",null,m.learnmore)));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.Button,{disabled:w&&"done"!==w,onClick:async()=>{h(!0);const e={...i};e["wp-full-pay-plugins-install"]=(new Date).getTime()/1e3|0,window.themeisleSDKPromotions.option=e,await y(a,JSON.stringify(e)),t&&t()},variant:"link",className:"om-notice-dismiss"},(0,e.createElement)("span",{className:"dashicons-no-alt dashicons"}),(0,e.createElement)("span",{className:"screen-reader-text"},m.wp_full_pay.dismisscta)),(0,e.createElement)("div",{className:"content"},(0,e.createElement)("div",null,(0,e.createElement)("p",null,o),(0,e.createElement)("p",{className:"description"},m.wp_full_pay.message),w?"done"===w?(0,e.createElement)("div",{className:"done"},(0,e.createElement)("p",null,m.all_set),(0,e.createElement)(n.Button,{icon:"external",variant:"primary",href:p,target:"_blank"},m.wp_full_pay.gotodash)):(0,e.createElement)("p",{className:"om-progress"},(0,e.createElement)("span",{className:"dashicons dashicons-update spin"}),(0,e.createElement)("span",null,"installing"===w&&m.installing,"activating"===w&&m.activating,"…")):v)))};(()=>{if(window.themeisleSDKPromotions.option["wp-full-pay-plugins-install"])return;const t=document.querySelector("#ti-wp-full-pay-notice");t&&(0,s.createRoot)(t).render((0,e.createElement)(_,{onDismiss:()=>{t.style.display="none"}}))})()}},n={};function o(e){var i=n[e];if(void 0!==i)return i.exports;var s=n[e]={exports:{}};return t[e](s,s.exports,o),s.exports}o.m=t,e=[],o.O=(t,n,i,s)=>{if(!n){var a=1/0;for(m=0;m=s)&&Object.keys(o.O).every((e=>o.O[e](n[r])))?n.splice(r--,1):(l=!1,s0&&e[m-1][2]>s;m--)e[m]=e[m-1];e[m]=[n,i,s]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var i,s,[a,l,r]=n,c=0;if(a.some((t=>0!==e[t]))){for(i in l)o.o(l,i)&&(o.m[i]=l[i]);if(r)var m=r(o)}for(t&&t(n);co(536)));i=o.O(i)})(); \ No newline at end of file diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/promos/style-index.css b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/promos/style-index.css index 3df7fe23..fc111dca 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/promos/style-index.css +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/promos/style-index.css @@ -1 +1 @@ -.ti-sdk-om-notice{--wp-admin-theme-color: #3858E9;--wp-admin-theme-color-darker-10: #2e47ba;position:relative;padding:0;border-left-color:#3858e9}.ti-sdk-om-notice .content{background:rgba(255,255,255,.75);display:flex;align-items:center;padding:15px 20px}.ti-sdk-om-notice img{max-width:100px;margin-right:20px;display:none}.ti-sdk-om-notice .description{font-size:14px;margin-bottom:20px;color:#000}.ti-sdk-om-notice .actions{margin-top:auto;display:flex;margin-bottom:0;gap:20px}.ti-sdk-om-notice form{display:flex;align-items:center;gap:10px}.ti-sdk-om-notice .form-wrap{display:grid}.ti-sdk-om-notice .form-wrap span:not(.dashicons){margin-bottom:5px;font-weight:500}.ti-sdk-om-notice input{border-radius:0;min-width:250px}.ti-sdk-om-notice a.components-button{display:flex;align-items:center;justify-content:center}.ti-sdk-om-notice .is-link{text-decoration:none;display:flex;align-items:center}.ti-sdk-om-notice .is-link span{line-height:normal}.ti-sdk-om-notice .dashicons{margin-right:2px;text-decoration:none}.ti-sdk-om-notice .done{display:flex;flex-direction:column;align-items:flex-start}.ti-sdk-om-notice .done a{width:auto}.compat-field-optimole th{display:none !important}.compat-field-optimole td{width:100% !important}.compat-field-optimole .ti-sdk-om-notice{margin:0}.om-notice-dismiss{right:10px;top:10px;text-decoration:none !important;position:absolute}.om-notice-dismiss:before{content:none}.ti-om-stack-wrap .om-stack-notice{--wp-admin-theme-color: #3858E9;--wp-admin-theme-color-darker-10: #2e47ba;display:flex;flex-direction:column;align-items:center;position:relative;text-align:center;padding:20px 10px}.ti-om-stack-wrap .om-stack-notice>span{display:none}.ti-om-stack-wrap .om-stack-notice img{max-width:90px !important}.ti-om-stack-wrap .om-stack-notice h2{font-size:18px;margin:30px auto 10px;font-weight:600}.ti-om-stack-wrap .om-stack-notice p{font-size:13px;max-width:250px;margin:0 auto;line-height:17px}.ti-om-stack-wrap .om-stack-notice i{margin-top:10px;font-size:12px;color:#757575}.ti-om-stack-wrap .om-stack-notice .cta{margin:20px auto 0;padding:10px 25px !important}.ti-om-stack-wrap .om-stack-notice .om-notice-dismiss{color:inherit}.ti-om-stack-wrap .om-stack-notice input{border-radius:0}.ti-om-stack-wrap .om-stack-notice form{place-items:center;width:75%;display:grid;margin-top:10px;gap:10px}.ti-om-stack-wrap .om-stack-notice .done{margin-top:15px;display:grid;gap:10px}.ti-om-stack-wrap .om-stack-notice .done p{font-size:15px;font-weight:500}.ti-om-stack-wrap .om-stack-notice .om-progress{margin:20px 0}.block-editor-block-inspector .ti-om-stack-wrap{border-top:1px solid #e0e0e0}.om-progress{gap:5px;font-size:14px;display:flex;align-items:center}.om-progress .spin{animation:om-rotation 2s infinite linear}@keyframes om-rotation{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.ti-sdk-om-promo.hidden{display:none}.media-sidebar .ti-sdk-om-notice input{min-width:unset;flex-grow:1}.media-sidebar .ti-sdk-om-notice .description{margin-bottom:10px}.media-sidebar .ti-sdk-om-notice .content{padding:15px 10px}.media-sidebar .ti-sdk-om-notice .actions{gap:10px}.media-sidebar .ti-sdk-om-notice form{flex-wrap:wrap;justify-content:center}.attachment-info .ti-sdk-om-notice input{min-width:unset;flex-grow:1}.attachment-info .ti-sdk-om-notice form{flex-wrap:wrap;justify-content:center}.ti-sdk-rop-notice{position:relative;padding:10px}.ti-sdk-rop-notice .rop-notice-actions{display:flex;gap:10px}.ti-sdk-rop-notice p{padding:0 10px 0 0}.ti-sdk-neve-fse-notice{position:relative;padding:10px}.ti-sdk-neve-fse-notice .neve-fse-notice-actions{display:flex;gap:10px}.ti-sdk-neve-fse-notice .neve-fse-notice-actions a{text-decoration:none}.ti-sdk-neve-fse-notice .neve-fse-notice-actions a span:not(.dashicons){text-decoration:underline}.ti-sdk-neve-fse-notice p{padding:0 10px 0 0;font-size:14px}@media screen and (min-width: 768px){.ti-sdk-om-notice img{display:block}}@media screen and (min-width: 1200px){.attachment-info .ti-sdk-om-notice form{flex-wrap:unset}} +.ti-sdk-om-notice{--wp-admin-theme-color: #3858E9;--wp-admin-theme-color-darker-10: #2e47ba;position:relative;padding:0;border-left-color:#3858e9}.ti-sdk-om-notice .content{background:rgba(255,255,255,.75);display:flex;align-items:center;padding:15px 20px}.ti-sdk-om-notice img{max-width:100px;margin-right:20px;display:none}.ti-sdk-om-notice .description{font-size:14px;margin-bottom:10px;color:#000}.ti-sdk-om-notice .actions{margin-top:auto;display:flex;margin-bottom:0;gap:20px}.ti-sdk-om-notice form{display:flex;align-items:center;gap:10px}.ti-sdk-om-notice .om-progress span:not(.dashicons){font-weight:500}.ti-sdk-om-notice input{border-radius:0;min-width:250px}.ti-sdk-om-notice a.components-button{display:flex;align-items:center;justify-content:center}.ti-sdk-om-notice .is-link{text-decoration:none;display:flex;align-items:center}.ti-sdk-om-notice .is-link span{line-height:normal}.ti-sdk-om-notice .dashicons{margin-right:2px;text-decoration:none}.ti-sdk-om-notice .done{display:flex;flex-direction:column;align-items:flex-start}.ti-sdk-om-notice .done a{width:auto}.compat-field-optimole th{display:none !important}.compat-field-optimole td{width:100% !important}.compat-field-optimole .ti-sdk-om-notice{margin:0}.om-notice-dismiss{right:10px;top:10px;text-decoration:none !important;position:absolute}.om-notice-dismiss:before{content:none}.ti-om-stack-wrap .om-stack-notice{--wp-admin-theme-color: #3858E9;--wp-admin-theme-color-darker-10: #2e47ba;gap:10px;border-left:4px solid #3858e9;display:flex;flex-direction:column;align-items:start;position:relative;padding:20px 10px}.ti-om-stack-wrap .om-stack-notice>span{display:none}.ti-om-stack-wrap .om-stack-notice img{max-width:90px !important}.ti-om-stack-wrap .om-stack-notice h2{font-size:18px;margin:30px auto 10px;font-weight:600}.ti-om-stack-wrap .om-stack-notice p{font-size:13px;max-width:250px;margin:0;line-height:normal}.ti-om-stack-wrap .om-stack-notice i{margin:10px 0 0;font-size:12px;color:#757575}.ti-om-stack-wrap .om-stack-notice .cta{padding:10px 25px !important}.ti-om-stack-wrap .om-stack-notice .om-notice-dismiss{color:inherit}.ti-om-stack-wrap .om-stack-notice input{border-radius:0}.ti-om-stack-wrap .om-stack-notice .done{margin-top:15px;display:grid;gap:10px}.ti-om-stack-wrap .om-stack-notice .done p{font-size:15px;font-weight:500}.ti-om-stack-wrap .om-stack-notice .om-progress{margin:10px 0}.block-editor-block-inspector .ti-om-stack-wrap{border-top:1px solid #e0e0e0}.om-progress{gap:5px;font-size:13px;display:flex;align-items:center}.om-progress .spin{animation:om-rotation 2s infinite linear}@keyframes om-rotation{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.ti-sdk-om-promo.hidden{display:none}.media-sidebar .ti-sdk-om-notice input{min-width:unset;flex-grow:1}.media-sidebar .ti-sdk-om-notice .description{margin-bottom:10px}.media-sidebar .ti-sdk-om-notice .content{padding:15px 10px}.media-sidebar .ti-sdk-om-notice .actions{gap:10px}.media-sidebar .ti-sdk-om-notice form{flex-wrap:wrap;justify-content:center}.attachment-info .ti-sdk-om-notice input{min-width:unset;flex-grow:1}.attachment-info .ti-sdk-om-notice form{flex-wrap:wrap;justify-content:center}.ti-sdk-rop-notice{position:relative;padding:10px}.ti-sdk-rop-notice .rop-notice-actions{display:flex;gap:10px}.ti-sdk-rop-notice p{padding:0 10px 0 0}.ti-sdk-optimole-post-publish{padding:0 !important}@media screen and (min-width: 768px){.ti-sdk-om-notice img{display:block}}@media screen and (min-width: 1200px){.attachment-info .ti-sdk-om-notice form{flex-wrap:unset}} diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/survey/survey_deps.asset.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/survey/survey_deps.asset.php index baba90f9..dacfad07 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/survey/survey_deps.asset.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/survey/survey_deps.asset.php @@ -1 +1 @@ - array(), 'version' => 'd18c4036e32153ba476c'); + array(), 'version' => '92a432317d1433f31603'); diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/survey/survey_deps.js b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/survey/survey_deps.js index a0715046..20408ebd 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/survey/survey_deps.js +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/survey/survey_deps.js @@ -1 +1 @@ -(()=>{"use strict";async function r(r){if(!window.formbricks){const o=await fetch(`${r}/api/packages/app`);if(!o.ok)return{ok:!1,error:new Error("Failed to load Formbricks App SDK")};const e=await o.text(),t=document.createElement("script");t.innerHTML=e,document.head.appendChild(t);const n=async()=>new Promise(((r,o)=>{const e=setInterval((()=>{window.formbricks&&(clearInterval(e),r())}),100);setTimeout((()=>{clearInterval(e),o(new Error("Formbricks App SDK loading timed out"))}),1e4)}));try{return await n(),{ok:!0,data:void 0}}catch(r){return{ok:!1,error:new Error(r.message??"Failed to load Formbricks App SDK")}}}return{ok:!0,data:void 0}}const o=new Proxy({},{get:(o,e,t)=>async(...o)=>{if(!window.formbricks){if("init"!==e)return void console.error("🧱 Formbricks - Global error: You need to call formbricks.init before calling any other method");if(!o[0])return void console.error("🧱 Formbricks - Global error: You need to pass the apiHost as the first argument");const{apiHost:n}=o[0],i=await(t=r,async(...r)=>{try{return{ok:!0,data:await t(...r)}}catch(r){return{ok:!1,error:r}}})(n);if(!i.ok)return void console.error(`🧱 Formbricks - Global error: ${i.error.message}`)}var t;if(window.formbricks&&"function"!=typeof window.formbricks[e])console.error(`🧱 Formbricks - Global error: Formbricks App SDK does not support method ${String(e)}`);else try{return window.formbricks[e](...o)}catch(r){return void console.error(`Something went wrong: ${r}`)}}});document.addEventListener("DOMContentLoaded",(()=>{window.tsdk_formbricks=o,window.dispatchEvent(new Event("themeisle:survey:loaded"))}))})(); \ No newline at end of file +(()=>{"use strict";let i=!1,r=!1;const o=[],t=new Proxy({},{get:(t,e,n)=>(...t)=>(async(t,...e)=>{if(r){if(window.formbricks){const i=t;await window.formbricks[i](...e)}}else if("init"===t){if(i)return void console.warn("🧱 Formbricks - Warning: Formbricks is already initializing.");i=!0;const t=e[0].apiHost;if((await(async i=>{if(!window.formbricks){const r=document.createElement("script");r.type="text/javascript",r.src=`${i}/js/formbricks.umd.cjs`,r.async=!0;const o=async()=>new Promise(((i,o)=>{const t=setTimeout((()=>{o(new Error("Formbricks SDK loading timed out"))}),1e4);r.onload=()=>{clearTimeout(t),i()},r.onerror=()=>{clearTimeout(t),o(new Error("Failed to load Formbricks SDK"))}}));document.head.appendChild(r);try{return await o(),{ok:!0,data:void 0}}catch(i){return{ok:!1,error:new Error(i.message??"Failed to load Formbricks SDK")}}}return{ok:!0,data:void 0}})(t)).ok&&window.formbricks){window.formbricks.init(...e),i=!1,r=!0;for(const{prop:i,args:r}of o)"function"==typeof window.formbricks[i]?window.formbricks[i](...r):console.error(`🧱 Formbricks - Error: Method ${i} does not exist on formbricks`)}}else console.warn("🧱 Formbricks - Warning: Formbricks not initialized. This method will be queued and executed after initialization."),o.push({prop:t,args:e})})(e,...t)});document.addEventListener("DOMContentLoaded",(()=>{window.tsdk_formbricks={init:i=>{var r,o;"object"==typeof i&&null!==i||(i={});const e={...window.tsdk_survey_data,...i,attributes:{...null!==(r=window.tsdk_survey_data.attributes)&&void 0!==r?r:{},...null!==(o=i.attributes)&&void 0!==o?o:{}}};t?.init(e)}};let i=null;var r;r=window.tsdk_survey_data?.attributes?.install_days_number,isNaN(r)||"boolean"==typeof r||(i=setTimeout((()=>{window.tsdk_formbricks?.init()}),350)),window.addEventListener("themeisle:survey:trigger:cancel",(()=>{clearTimeout(i)})),window.dispatchEvent(new Event("themeisle:survey:loaded"))}))})(); \ No newline at end of file diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/tracking/tracking.asset.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/tracking/tracking.asset.php index 50d9b083..2cc488b0 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/tracking/tracking.asset.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/tracking/tracking.asset.php @@ -1 +1 @@ - array(), 'version' => 'b8af0b12ad3cabe4c4b8'); + array(), 'version' => 'f35e2c927fed8015fa08'); diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/tracking/tracking.js b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/tracking/tracking.js index 677e2b8e..bdc37e05 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/tracking/tracking.js +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/assets/js/build/tracking/tracking.js @@ -1 +1 @@ -(()=>{var e={802:e=>{e.exports=function e(t,n,r){function o(s,u){if(!n[s]){if(!t[s]){if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}u=n[s]={exports:{}},t[s][0].call(u.exports,(function(e){return o(t[s][1][e]||e)}),u,u.exports,e,t,n,r)}return n[s].exports}for(var i=void 0,s=0;s>16),a((65280&r)>>8),a(255&r);return 2==o?a(255&(r=f(e.charAt(n))<<2|f(e.charAt(n+1))>>4)):1==o&&(a((r=f(e.charAt(n))<<10|f(e.charAt(n+1))<<4|f(e.charAt(n+2))>>2)>>8&255),a(255&r)),i},e.fromByteArray=function(e){var t,n,r,o,i=e.length%3,s="";function u(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-i;t>18&63)+u(o>>12&63)+u(o>>6&63)+u(63&o);switch(i){case 1:s=(s+=u((n=e[e.length-1])>>2))+u(n<<4&63)+"==";break;case 2:s=(s=(s+=u((n=(e[e.length-2]<<8)+e[e.length-1])>>10))+u(n>>4&63))+u(n<<2&63)+"="}return s}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,n){(function(t,r,o,i,s,u,a,f,l){var c=e("base64-js"),d=e("ieee754");function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);var r,i,s,u,a=typeof e;if("base64"===t&&"string"==a)for(e=(u=e).trim?u.trim():u.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==a)r=x(e);else if("string"==a)r=o.byteLength(e,t);else{if("object"!=a)throw new Error("First argument needs to be a number, array or string.");r=x(e.length)}if(o._useTypedArrays?i=o._augment(new Uint8Array(r)):((i=this).length=r,i._isBuffer=!0),o._useTypedArrays&&"number"==typeof e.byteLength)i._set(e);else if(S(u=e)||o.isBuffer(u)||u&&"object"==typeof u&&"number"==typeof u.length)for(s=0;s>>0)):(t+1>>0),o}function g(e,t,n,r){if(r||(Y("boolean"==typeof n,"missing or invalid endian"),Y(null!=t,"missing offset"),Y(t+1>>8*(r?i:1-i)}function v(e,t,n,r,o){if(o||(Y(null!=t,"missing value"),Y("boolean"==typeof r,"missing or invalid endian"),Y(null!=n,"missing offset"),Y(n+3>>8*(r?i:3-i)&255}function _(e,t,n,r,o){o||(Y(null!=t,"missing value"),Y("boolean"==typeof r,"missing or invalid endian"),Y(null!=n,"missing offset"),Y(n+1>8,n%=256,r.push(n),r.push(t);return r}(t),e,n,r)}(this,e,t,n);break;default:throw new Error("Unknown encoding")}return i},o.prototype.toString=function(e,t,n){var r,o,i,s,u=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):u.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||rthis.length&&(r=this.length);var i=(r=e.length-t=this.length))return this[e]},o.prototype.readUInt16LE=function(e,t){return h(this,e,!0,t)},o.prototype.readUInt16BE=function(e,t){return h(this,e,!1,t)},o.prototype.readUInt32LE=function(e,t){return p(this,e,!0,t)},o.prototype.readUInt32BE=function(e,t){return p(this,e,!1,t)},o.prototype.readInt8=function(e,t){if(t||(Y(null!=e,"missing offset"),Y(e=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){return g(this,e,!0,t)},o.prototype.readInt16BE=function(e,t){return g(this,e,!1,t)},o.prototype.readInt32LE=function(e,t){return y(this,e,!0,t)},o.prototype.readInt32BE=function(e,t){return y(this,e,!1,t)},o.prototype.readFloatLE=function(e,t){return w(this,e,!0,t)},o.prototype.readFloatBE=function(e,t){return w(this,e,!1,t)},o.prototype.readDoubleLE=function(e,t){return b(this,e,!0,t)},o.prototype.readDoubleBE=function(e,t){return b(this,e,!1,t)},o.prototype.writeUInt8=function(e,t,n){n||(Y(null!=e,"missing value"),Y(null!=t,"missing offset"),Y(t=this.length||(this[t]=e)},o.prototype.writeUInt16LE=function(e,t,n){m(this,e,t,!0,n)},o.prototype.writeUInt16BE=function(e,t,n){m(this,e,t,!1,n)},o.prototype.writeUInt32LE=function(e,t,n){v(this,e,t,!0,n)},o.prototype.writeUInt32BE=function(e,t,n){v(this,e,t,!1,n)},o.prototype.writeInt8=function(e,t,n){n||(Y(null!=e,"missing value"),Y(null!=t,"missing offset"),Y(t=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},o.prototype.writeInt16LE=function(e,t,n){_(this,e,t,!0,n)},o.prototype.writeInt16BE=function(e,t,n){_(this,e,t,!1,n)},o.prototype.writeInt32LE=function(e,t,n){E(this,e,t,!0,n)},o.prototype.writeInt32BE=function(e,t,n){E(this,e,t,!1,n)},o.prototype.writeFloatLE=function(e,t,n){I(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){I(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){A(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){A(this,e,t,!1,n)},o.prototype.fill=function(e,t,n){if(t=t||0,n=n||this.length,Y("number"==typeof(e="string"==typeof(e=e||0)?e.charCodeAt(0):e)&&!isNaN(e),"value is not a number"),Y(t<=n,"end < start"),n!==t&&0!==this.length){Y(0<=t&&t"},o.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(o._useTypedArrays)return new o(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t=t.length||o>=e.length);o++)t[o+n]=e[o];return o}function C(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function M(e,t){Y("number"==typeof e,"cannot write a non-number as a number"),Y(0<=e,"specified a negative value for writing an unsigned value"),Y(e<=t,"value is larger than maximum value for type"),Y(Math.floor(e)===e,"value has a fractional component")}function N(e,t,n){Y("number"==typeof e,"cannot write a non-number as a number"),Y(e<=t,"value larger than maximum allowed value"),Y(n<=e,"value smaller than minimum allowed value"),Y(Math.floor(e)===e,"value has a fractional component")}function F(e,t,n){Y("number"==typeof e,"cannot write a non-number as a number"),Y(e<=t,"value larger than maximum allowed value"),Y(n<=e,"value smaller than minimum allowed value")}function Y(e,t){if(!e)throw new Error(t||"Failed assertion")}o._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=B.get,e.set=B.set,e.write=B.write,e.toString=B.toString,e.toLocaleString=B.toString,e.toJSON=B.toJSON,e.copy=B.copy,e.slice=B.slice,e.readUInt8=B.readUInt8,e.readUInt16LE=B.readUInt16LE,e.readUInt16BE=B.readUInt16BE,e.readUInt32LE=B.readUInt32LE,e.readUInt32BE=B.readUInt32BE,e.readInt8=B.readInt8,e.readInt16LE=B.readInt16LE,e.readInt16BE=B.readInt16BE,e.readInt32LE=B.readInt32LE,e.readInt32BE=B.readInt32BE,e.readFloatLE=B.readFloatLE,e.readFloatBE=B.readFloatBE,e.readDoubleLE=B.readDoubleLE,e.readDoubleBE=B.readDoubleBE,e.writeUInt8=B.writeUInt8,e.writeUInt16LE=B.writeUInt16LE,e.writeUInt16BE=B.writeUInt16BE,e.writeUInt32LE=B.writeUInt32LE,e.writeUInt32BE=B.writeUInt32BE,e.writeInt8=B.writeInt8,e.writeInt16LE=B.writeInt16LE,e.writeInt16BE=B.writeInt16BE,e.writeInt32LE=B.writeInt32LE,e.writeInt32BE=B.writeInt32BE,e.writeFloatLE=B.writeFloatLE,e.writeFloatBE=B.writeFloatBE,e.writeDoubleLE=B.writeDoubleLE,e.writeDoubleBE=B.writeDoubleBE,e.fill=B.fill,e.inspect=B.inspect,e.toArrayBuffer=B.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,n){(function(n,r,o,i,s,u,a,f,l){o=e("buffer").Buffer;var c=new o(4);c.fill(0),t.exports={hash:function(e,t,n,r){for(var i=t(function(e,t){e.length%4!=0&&(n=e.length+(4-e.length%4),e=o.concat([e,c],n));for(var n,r=[],i=t?e.readInt32BE:e.readInt32LE,s=0;sg?t=e(t):t.length>5]|=128<>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,s=0;s>>32-o,n)}function p(e,t,n,r,o,i,s){return h(t&n|~t&r,e,t,o,i,s)}function g(e,t,n,r,o,i,s){return h(t&r|n&~r,e,t,o,i,s)}function y(e,t,n,r,o,i,s){return h(t^n^r,e,t,o,i,s)}function w(e,t,n,r,o,i,s){return h(n^(t|~r),e,t,o,i,s)}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return c.hash(e,d,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,n){(function(e,n,r,o,i,s,u,a,f){t.exports=function(e){for(var t,n=new Array(e),r=0;r>>((3&r)<<3)&255;return n}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,n){(function(n,r,o,i,s,u,a,f,l){var c=e("./helpers");function d(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,o,i=Array(80),s=1732584193,u=-271733879,a=-1732584194,f=271733878,l=-1009589776,c=0;c>16)+(t>>16)+(n>>16)<<16|65535&n}function p(e,t){return e<>>32-t}t.exports=function(e){return c.hash(e,d,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,n){(function(n,r,o,i,s,u,a,f,l){function c(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function d(e,t){var n,r=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),o=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),i=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var s,u,a=0;a>>t|e<<32-t},g=function(e,t){return e>>>t};t.exports=function(e){return h.hash(e,d,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,n){(function(e,t,r,o,i,s,u,a,f){n.read=function(e,t,n,r,o){var i,s,u=8*o-r-1,a=(1<>1,l=-7,c=n?o-1:0,d=n?-1:1;for(o=e[t+c],c+=d,i=o&(1<<-l)-1,o>>=-l,l+=u;0>=-l,l+=r;0>1,c=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1;for(i=t<0||0===t&&1/t<0?1:0,t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,s=f):(s=Math.floor(Math.log(t)/Math.LN2),t*(r=Math.pow(2,-s))<1&&(s--,r*=2),2<=(t+=1<=s+l?c/r:c*Math.pow(2,1-l))*r&&(s++,r/=2),f<=s+l?(u=0,s=f):1<=s+l?(u=(t*r-1)*Math.pow(2,o),s+=l):(u=t*Math.pow(2,l-1)*Math.pow(2,o),s=0));8<=o;e[n+d]=255&u,d+=h,u/=256,o-=8);for(s=s<{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(802),t=n.n(e);const r=e=>{var t;const n=e?.filter((e=>e?.[0]))?.[0];return null!==(t=n?.[1])&&void 0!==t?t:n?.[0]};class o{constructor(){this.events=new Map,this.eventsLimit=50,this.listeners=[],this.interval=null,this.consent=!1,this.endpoint=tiTelemetry?.endpoint,this.products=tiTelemetry?.products,this.autoSendIntervalTime=3e5}_set=(e,t,n)=>{if(!this.hasProduct(t.slug))return;if(!n?.consent&&!this.getProductConsent(t.slug))return;if(!this.validate(t))return;const r=n?.directSave?t:this.trkMetadata(t);this.events.set(e,r),n?.refreshTimer&&this.refreshTimer(),n?.sendNow?this.uploadEvents():n?.ignoreLimit||this.sendIfLimitReached()};_add=(e,n)=>{const r=t()(e);return this._set(r.toString(),e,n),r.toString()};with=e=>{const t={slug:e,...this.envInfo()};return{add:(e,n)=>this._add({...t,...e},n),set:(e,n,r)=>this._set(e,{...t,...n},r),base:this}};envInfo=()=>({site:window.location.hostname});uploadEvents=async()=>{if(0!==this.events.size)try{const e=Array.from(this.events.values());this.events.clear();const t=await this.sendBulkTracking(e.map((({slug:e,site:t,license:n,...r})=>({slug:e,site:t,license:n,data:r}))));t.ok||this.listeners.forEach((e=>e({success:!1,error:"Failed to send tracking events"})));const n=await t.json();this.listeners.forEach((e=>e({success:!0,response:n})))}catch(e){console.error(e)}};sendIfLimitReached=()=>{if(this.events.size>=this.eventsLimit)return this.uploadEvents()};subscribe=e=>(this.listeners.push(e),()=>{this.listeners=this.listeners.filter((t=>t!==e))});hasConsent=()=>this.consent;sendBulkTracking=e=>fetch(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});trkMetadata=e=>({env:r([[window.location.href.includes("customize.php"),"customizer"],[window.location.href.includes("site-editor.php"),"site-editor"],[window.location.href.includes("widgets.php"),"widgets"],[window.location.href.includes("admin.php"),"admin"],["post-editor"]]),license:this.getProductTackHash(e.slug),...null!=e?e:{}});hasProduct=e=>this.products.some((t=>t?.slug?.includes(e)));getProductTackHash=e=>this.products.find((t=>t?.slug?.includes(e)))?.trackHash;getProductConsent=e=>this.products.find((t=>t?.slug?.includes(e)))?.consent;start=()=>{this.interval||(this.interval=window.setInterval((()=>{this.uploadEvents()}),this.autoSendIntervalTime))};stop=()=>{this.interval&&(window.clearInterval(this.interval),this.interval=null)};refreshTimer=()=>{this.stop(),this.start()};validate=e=>"object"==typeof e?0!==Object.keys(e).length&&Object.values(e).every(this.validate):void 0!==e;clone=()=>{const e=new o;return e.events=new Map(this.events),e.listeners=[...this.listeners],e.interval=this.interval,e.consent=this.consent,e.endpoint=this.endpoint,e}}window.tiTrk=new o,window?.wp?.customize?.bind("save",(()=>{window?.tiTrk?.uploadEvents()})),window.addEventListener("beforeunload",(async()=>{window?.tiTrk?.uploadEvents()}))})()})(); \ No newline at end of file +(()=>{var e={802:e=>{e.exports=function e(t,n,r){function o(s,u){if(!n[s]){if(!t[s]){if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}u=n[s]={exports:{}},t[s][0].call(u.exports,(function(e){return o(t[s][1][e]||e)}),u,u.exports,e,t,n,r)}return n[s].exports}for(var i=void 0,s=0;s>16),a((65280&r)>>8),a(255&r);return 2==o?a(255&(r=f(e.charAt(n))<<2|f(e.charAt(n+1))>>4)):1==o&&(a((r=f(e.charAt(n))<<10|f(e.charAt(n+1))<<4|f(e.charAt(n+2))>>2)>>8&255),a(255&r)),i},e.fromByteArray=function(e){var t,n,r,o,i=e.length%3,s="";function u(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-i;t>18&63)+u(o>>12&63)+u(o>>6&63)+u(63&o);switch(i){case 1:s=(s+=u((n=e[e.length-1])>>2))+u(n<<4&63)+"==";break;case 2:s=(s=(s+=u((n=(e[e.length-2]<<8)+e[e.length-1])>>10))+u(n>>4&63))+u(n<<2&63)+"="}return s}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,n){(function(t,r,o,i,s,u,a,f,l){var c=e("base64-js"),d=e("ieee754");function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);var r,i,s,u,a=typeof e;if("base64"===t&&"string"==a)for(e=(u=e).trim?u.trim():u.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==a)r=x(e);else if("string"==a)r=o.byteLength(e,t);else{if("object"!=a)throw new Error("First argument needs to be a number, array or string.");r=x(e.length)}if(o._useTypedArrays?i=o._augment(new Uint8Array(r)):((i=this).length=r,i._isBuffer=!0),o._useTypedArrays&&"number"==typeof e.byteLength)i._set(e);else if(S(u=e)||o.isBuffer(u)||u&&"object"==typeof u&&"number"==typeof u.length)for(s=0;s>>0)):(t+1>>0),o}function g(e,t,n,r){if(r||(Y("boolean"==typeof n,"missing or invalid endian"),Y(null!=t,"missing offset"),Y(t+1>>8*(r?i:1-i)}function v(e,t,n,r,o){if(o||(Y(null!=t,"missing value"),Y("boolean"==typeof r,"missing or invalid endian"),Y(null!=n,"missing offset"),Y(n+3>>8*(r?i:3-i)&255}function _(e,t,n,r,o){o||(Y(null!=t,"missing value"),Y("boolean"==typeof r,"missing or invalid endian"),Y(null!=n,"missing offset"),Y(n+1>8,n%=256,r.push(n),r.push(t);return r}(t),e,n,r)}(this,e,t,n);break;default:throw new Error("Unknown encoding")}return i},o.prototype.toString=function(e,t,n){var r,o,i,s,u=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):u.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||rthis.length&&(r=this.length);var i=(r=e.length-t=this.length))return this[e]},o.prototype.readUInt16LE=function(e,t){return h(this,e,!0,t)},o.prototype.readUInt16BE=function(e,t){return h(this,e,!1,t)},o.prototype.readUInt32LE=function(e,t){return p(this,e,!0,t)},o.prototype.readUInt32BE=function(e,t){return p(this,e,!1,t)},o.prototype.readInt8=function(e,t){if(t||(Y(null!=e,"missing offset"),Y(e=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){return g(this,e,!0,t)},o.prototype.readInt16BE=function(e,t){return g(this,e,!1,t)},o.prototype.readInt32LE=function(e,t){return y(this,e,!0,t)},o.prototype.readInt32BE=function(e,t){return y(this,e,!1,t)},o.prototype.readFloatLE=function(e,t){return w(this,e,!0,t)},o.prototype.readFloatBE=function(e,t){return w(this,e,!1,t)},o.prototype.readDoubleLE=function(e,t){return b(this,e,!0,t)},o.prototype.readDoubleBE=function(e,t){return b(this,e,!1,t)},o.prototype.writeUInt8=function(e,t,n){n||(Y(null!=e,"missing value"),Y(null!=t,"missing offset"),Y(t=this.length||(this[t]=e)},o.prototype.writeUInt16LE=function(e,t,n){m(this,e,t,!0,n)},o.prototype.writeUInt16BE=function(e,t,n){m(this,e,t,!1,n)},o.prototype.writeUInt32LE=function(e,t,n){v(this,e,t,!0,n)},o.prototype.writeUInt32BE=function(e,t,n){v(this,e,t,!1,n)},o.prototype.writeInt8=function(e,t,n){n||(Y(null!=e,"missing value"),Y(null!=t,"missing offset"),Y(t=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},o.prototype.writeInt16LE=function(e,t,n){_(this,e,t,!0,n)},o.prototype.writeInt16BE=function(e,t,n){_(this,e,t,!1,n)},o.prototype.writeInt32LE=function(e,t,n){E(this,e,t,!0,n)},o.prototype.writeInt32BE=function(e,t,n){E(this,e,t,!1,n)},o.prototype.writeFloatLE=function(e,t,n){I(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){I(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){A(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){A(this,e,t,!1,n)},o.prototype.fill=function(e,t,n){if(t=t||0,n=n||this.length,Y("number"==typeof(e="string"==typeof(e=e||0)?e.charCodeAt(0):e)&&!isNaN(e),"value is not a number"),Y(t<=n,"end < start"),n!==t&&0!==this.length){Y(0<=t&&t"},o.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(o._useTypedArrays)return new o(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t=t.length||o>=e.length);o++)t[o+n]=e[o];return o}function C(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function M(e,t){Y("number"==typeof e,"cannot write a non-number as a number"),Y(0<=e,"specified a negative value for writing an unsigned value"),Y(e<=t,"value is larger than maximum value for type"),Y(Math.floor(e)===e,"value has a fractional component")}function N(e,t,n){Y("number"==typeof e,"cannot write a non-number as a number"),Y(e<=t,"value larger than maximum allowed value"),Y(n<=e,"value smaller than minimum allowed value"),Y(Math.floor(e)===e,"value has a fractional component")}function F(e,t,n){Y("number"==typeof e,"cannot write a non-number as a number"),Y(e<=t,"value larger than maximum allowed value"),Y(n<=e,"value smaller than minimum allowed value")}function Y(e,t){if(!e)throw new Error(t||"Failed assertion")}o._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=B.get,e.set=B.set,e.write=B.write,e.toString=B.toString,e.toLocaleString=B.toString,e.toJSON=B.toJSON,e.copy=B.copy,e.slice=B.slice,e.readUInt8=B.readUInt8,e.readUInt16LE=B.readUInt16LE,e.readUInt16BE=B.readUInt16BE,e.readUInt32LE=B.readUInt32LE,e.readUInt32BE=B.readUInt32BE,e.readInt8=B.readInt8,e.readInt16LE=B.readInt16LE,e.readInt16BE=B.readInt16BE,e.readInt32LE=B.readInt32LE,e.readInt32BE=B.readInt32BE,e.readFloatLE=B.readFloatLE,e.readFloatBE=B.readFloatBE,e.readDoubleLE=B.readDoubleLE,e.readDoubleBE=B.readDoubleBE,e.writeUInt8=B.writeUInt8,e.writeUInt16LE=B.writeUInt16LE,e.writeUInt16BE=B.writeUInt16BE,e.writeUInt32LE=B.writeUInt32LE,e.writeUInt32BE=B.writeUInt32BE,e.writeInt8=B.writeInt8,e.writeInt16LE=B.writeInt16LE,e.writeInt16BE=B.writeInt16BE,e.writeInt32LE=B.writeInt32LE,e.writeInt32BE=B.writeInt32BE,e.writeFloatLE=B.writeFloatLE,e.writeFloatBE=B.writeFloatBE,e.writeDoubleLE=B.writeDoubleLE,e.writeDoubleBE=B.writeDoubleBE,e.fill=B.fill,e.inspect=B.inspect,e.toArrayBuffer=B.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,n){(function(n,r,o,i,s,u,a,f,l){o=e("buffer").Buffer;var c=new o(4);c.fill(0),t.exports={hash:function(e,t,n,r){for(var i=t(function(e,t){e.length%4!=0&&(n=e.length+(4-e.length%4),e=o.concat([e,c],n));for(var n,r=[],i=t?e.readInt32BE:e.readInt32LE,s=0;sg?t=e(t):t.length>5]|=128<>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,s=0;s>>32-o,n)}function p(e,t,n,r,o,i,s){return h(t&n|~t&r,e,t,o,i,s)}function g(e,t,n,r,o,i,s){return h(t&r|n&~r,e,t,o,i,s)}function y(e,t,n,r,o,i,s){return h(t^n^r,e,t,o,i,s)}function w(e,t,n,r,o,i,s){return h(n^(t|~r),e,t,o,i,s)}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return c.hash(e,d,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,n){(function(e,n,r,o,i,s,u,a,f){t.exports=function(e){for(var t,n=new Array(e),r=0;r>>((3&r)<<3)&255;return n}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,n){(function(n,r,o,i,s,u,a,f,l){var c=e("./helpers");function d(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,o,i=Array(80),s=1732584193,u=-271733879,a=-1732584194,f=271733878,l=-1009589776,c=0;c>16)+(t>>16)+(n>>16)<<16|65535&n}function p(e,t){return e<>>32-t}t.exports=function(e){return c.hash(e,d,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,n){(function(n,r,o,i,s,u,a,f,l){function c(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function d(e,t){var n,r=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),o=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),i=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var s,u,a=0;a>>t|e<<32-t},g=function(e,t){return e>>>t};t.exports=function(e){return h.hash(e,d,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,n){(function(e,t,r,o,i,s,u,a,f){n.read=function(e,t,n,r,o){var i,s,u=8*o-r-1,a=(1<>1,l=-7,c=n?o-1:0,d=n?-1:1;for(o=e[t+c],c+=d,i=o&(1<<-l)-1,o>>=-l,l+=u;0>=-l,l+=r;0>1,c=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1;for(i=t<0||0===t&&1/t<0?1:0,t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,s=f):(s=Math.floor(Math.log(t)/Math.LN2),t*(r=Math.pow(2,-s))<1&&(s--,r*=2),2<=(t+=1<=s+l?c/r:c*Math.pow(2,1-l))*r&&(s++,r/=2),f<=s+l?(u=0,s=f):1<=s+l?(u=(t*r-1)*Math.pow(2,o),s+=l):(u=t*Math.pow(2,l-1)*Math.pow(2,o),s=0));8<=o;e[n+d]=255&u,d+=h,u/=256,o-=8);for(s=s<{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(802),t=n.n(e);const r=e=>{var t;const n=e?.filter((e=>e?.[0]))?.[0];return null!==(t=n?.[1])&&void 0!==t?t:n?.[0]};class o{constructor(e){var t;null!==(t=e)&&void 0!==t||(e={}),this.events=new Map,this.eventsLimit=50,this.listeners=[],this.interval=null,this.consent=!1,this.endpoint=e?.endpoint,this.products=e?.products,this.autoSendIntervalTime=3e5}_set=(e,t,n)=>{if(!this.hasProduct(t.slug))return;if(!n?.consent&&!this.getProductConsent(t.slug))return;if(!this.validate(t))return;const r=n?.directSave?t:this.trkMetadata(t);this.events.set(e,r),n?.refreshTimer&&this.refreshTimer(),n?.sendNow?this.uploadEvents():n?.ignoreLimit||this.sendIfLimitReached()};_add=(e,n)=>{const r=t()(e);return this._set(r.toString(),e,n),r.toString()};with=e=>{const t={slug:e,...this.envInfo()};return{add:(e,n)=>this._add({...t,...e},n),set:(e,n,r)=>this._set(e,{...t,...n},r),base:this}};envInfo=()=>({site:window.location.hostname});uploadEvents=async()=>{if(0!==this.events.size)try{const e=Array.from(this.events.values());this.events.clear();const t=await this.sendBulkTracking(e.map((({slug:e,site:t,license:n,...r})=>({slug:e,site:t,license:n,data:r}))));t.ok||this.listeners.forEach((e=>e({success:!1,error:"Failed to send tracking events"})));const n=await t.json();this.listeners.forEach((e=>e({success:!0,response:n})))}catch(e){console.error(e)}};sendIfLimitReached=()=>{if(this.events.size>=this.eventsLimit)return this.uploadEvents()};subscribe=e=>(this.listeners.push(e),()=>{this.listeners=this.listeners.filter((t=>t!==e))});hasConsent=()=>this.consent;sendBulkTracking=e=>fetch(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});trkMetadata=e=>({env:r([[window.location.href.includes("customize.php"),"customizer"],[window.location.href.includes("site-editor.php"),"site-editor"],[window.location.href.includes("widgets.php"),"widgets"],[window.location.href.includes("admin.php"),"admin"],["post-editor"]]),license:this.getProductTackHash(e.slug),...null!=e?e:{}});hasProduct=e=>this.products.some((t=>t?.slug?.includes(e)));getProductTackHash=e=>this.products.find((t=>t?.slug?.includes(e)))?.trackHash;getProductConsent=e=>this.products.find((t=>t?.slug?.includes(e)))?.consent;start=()=>{this.interval||(this.interval=window.setInterval((()=>{this.uploadEvents()}),this.autoSendIntervalTime))};stop=()=>{this.interval&&(window.clearInterval(this.interval),this.interval=null)};refreshTimer=()=>{this.stop(),this.start()};validate=e=>"object"==typeof e?0!==Object.keys(e).length&&Object.values(e).every(this.validate):void 0!==e;clone=()=>{const e=new o;return e.events=new Map(this.events),e.listeners=[...this.listeners],e.interval=this.interval,e.consent=this.consent,e.endpoint=this.endpoint,e}}window.tiTrk=new o(window?.tiTelemetry),window?.wp?.customize?.bind("save",(()=>{window?.tiTrk?.uploadEvents()})),window.addEventListener("beforeunload",(async()=>{window?.tiTrk?.uploadEvents()}))})()})(); \ No newline at end of file diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/load.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/load.php index 164f1749..411c4eb3 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/load.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/load.php @@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) { return; } // Current SDK version and path. -$themeisle_sdk_version = '3.3.25'; +$themeisle_sdk_version = '3.3.44'; $themeisle_sdk_path = dirname( __FILE__ ); global $themeisle_sdk_max_version; diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/postcss.config.js b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/postcss.config.js deleted file mode 100644 index fc52856e..00000000 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/postcss.config.js +++ /dev/null @@ -1,10 +0,0 @@ -const wpPreset = require( '@wordpress/postcss-plugins-preset' ); - -module.exports = { - plugins: [ - ...wpPreset, - require( 'postcss-custom-media' )(), // Custom media queries: https://www.npmjs.com/package/postcss-custom-media - require( 'postcss-combine-media-query' )(), // Combine media queries: https://www.npmjs.com/package/postcss-combine-media-query - require( 'postcss-sort-media-queries' )() // Sort media queries: https://www.npmjs.com/package/postcss-sort-media-queries - ] -}; diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Common/Abstract_module.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Common/Abstract_module.php index bb172c1d..54b9a59d 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Common/Abstract_module.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Common/Abstract_module.php @@ -39,6 +39,8 @@ abstract class Abstract_Module { 'multiple-pages-generator-by-porthas' => 'multiple-pages-generator-by-porthas/porthas-multi-pages-generator.php', 'sparks-for-woocommerce' => 'sparks-for-woocommerce/sparks-for-woocommerce.php', 'templates-patterns-collection' => 'templates-patterns-collection/templates-patterns-collection.php', + 'wpcf7-redirect' => 'wpcf7-redirect/wpcf7-redirect.php', + 'wp-full-stripe-free' => 'wp-full-stripe-free/wp-full-stripe.php', ]; /** @@ -111,7 +113,7 @@ abstract class Abstract_Module { * hence we also need to check that the path does not point to the theme else this will break the URL. * References: https://github.com/Codeinwp/neve-pro-addon/issues/2403 */ - if ( $this->product->is_plugin() && false === strpos( $themeisle_sdk_max_path, get_template_directory() ) ) { + if ( ( $this->product->is_plugin() || $this->product->is_theme() ) && false === strpos( $themeisle_sdk_max_path, get_template_directory() ) ) { return plugins_url( '/', $themeisle_sdk_max_path . '/themeisle-sdk/' ); }; diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Loader.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Loader.php index ab6bbbab..afd4917c 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Loader.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Loader.php @@ -53,6 +53,7 @@ final class Loader { 'licenser', 'logger', 'translate', + 'translations', 'review', 'recommendation', 'notification', @@ -113,8 +114,16 @@ final class Loader { 'no_activations' => 'No more activations left for %s. You need to upgrade your plan in order to use %s on more websites. If you need assistance, please get in touch with %s staff.', ], 'promotions' => [ - 'recommended' => 'Recommended by %s', - 'woo' => [ + 'recommended' => 'Recommended by %s', + 'installActivate' => 'Install & Activate', + 'preview' => 'Preview', + 'installing' => 'Installing', + 'activating' => 'Activating', + 'connecting' => 'Connecting to API', + 'learnmore' => 'Learn More', + 'activate' => 'Activate', + 'all_set' => 'Awesome! You are all set!', + 'woo' => [ 'title' => 'More extensions from Themeisle', 'title2' => 'Recommended extensions', 'cta_install' => 'Install', @@ -129,22 +138,39 @@ final class Loader { 'spark_desc2' => 'Add a top notification bar on your website to highlight the latest products, offers, or upcoming events.', 'spark_desc3' => 'Enable an advanced review section, enlarging the basic review options with lots of capabilities.', ], - 'optimole' => [ - 'all_set' => 'Awesome! You are all set!', - 'gotodash' => 'Go to Optimole dashboard', - 'installing' => 'Installing', - 'activating' => 'Activating', - 'connecting' => 'Connecting to API', - 'start_cta' => 'Start using Optimole', - 'dismisscta' => 'Dismiss this notice.', - 'gst' => 'Get Started Free', - 'heading' => 'Get more with Optimole', - 'learnmore' => 'Learn more', - 'message1' => 'Increase this page speed and SEO ranking by optimizing images with Optimole.', - 'message3' => 'Save your server space by storing images to Optimole and deliver them optimized from 400 locations around the globe. Unlimited images, Unlimited traffic.', - 'message4' => 'This image looks to be too large and would affect your site speed, we recommend you to install Optimole to optimize your images.', - 'message2' => 'Leverage Optimole\'s full integration with Elementor to automatically lazyload, resize, compress to AVIF/WebP and deliver from 400 locations around the globe!', - 'email_placeholder' => 'Email address', + + 'feedzy' => [ + 'import_desc' => 'Schedule automatic content imports from any RSS feed directly to your site. %sBuilt by %s%s', + 'install_now' => 'Install Now', + 'by' => 'by %s', + 'editor_recommends' => '%s recommends %sFeedzy%s to display entries from any RSS feed with more advanced styling and filtering options.', + ], + 'optimole' => [ + 'installOptimole' => 'Install Optimole', + 'gotodash' => 'Go to Optimole dashboard', + 'dismisscta' => 'Dismiss this notice.', + 'message1' => 'Increase this page speed and SEO ranking by optimizing images with Optimole.', + 'message3' => 'Save your server space by storing images to Optimole and deliver them optimized from 400 locations around the globe. Unlimited images, Unlimited traffic.', + 'message4' => 'This image looks to be too large and would affect your site speed, we recommend you to install Optimole to optimize your images.', + 'message2' => 'Leverage Optimole\'s full integration with Elementor to automatically lazyload, resize, compress to AVIF/WebP and deliver from 400 locations around the globe!', + ], + 'redirectionCF7' => [ + 'gotodash' => 'Go to Contact Forms', + 'dismisscta' => 'Dismiss this notice.', + 'gst' => 'Get Started Free', + 'message' => 'Add URL redirects, spam protection, execute JavaScript after submissions, and more with the Redirection for CF7 free plugin.', + ], + 'hyve' => [ + 'gotodash' => 'Go to Hyve Dashboard', + 'install' => 'Install Hyve', + 'dismisscta' => 'Dismiss this notice.', + 'message' => 'Hyve is an AI-powered chatbot that turns your WordPress content into interactive conversations, helping you efficiently handle user inquiries.', + ], + 'wp_full_pay' => [ + 'gotodash' => 'Go to WP Full Pay Settings', + 'install' => 'Install WP Full Pay', + 'dismisscta' => 'Dismiss this notice.', + 'message' => 'Enhance your donation page with WP Full Pay—create custom Stripe forms for one-time and recurring donations, manage transactions easily, and boost support with a seamless setup.', ], ], 'welcome' => [ diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/About_us.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/About_us.php index eb70ccef..cae77736 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/About_us.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/About_us.php @@ -338,7 +338,7 @@ class About_Us extends Abstract_Module { 'name' => 'Otter', ], 'tweet-old-post' => [ - 'name' => 'Revive Old Post', + 'name' => 'Revive Social', ], 'feedzy-rss-feeds' => [ 'name' => 'Feedzy', @@ -372,6 +372,15 @@ class About_Us extends Abstract_Module { 'name' => 'Templates Cloud', 'description' => Loader::$labels['about_us']['others']['tpc_desc'], ], + 'wp-cloudflare-page-cache' => [ + 'name' => 'Super Page Cache', + ], + 'hyve-lite' => [ + 'name' => 'Hyve Lite', + ], + 'wp-full-stripe-free' => [ + 'name' => 'WP Full Pay', + ], ]; foreach ( $products as $slug => $product ) { @@ -409,14 +418,13 @@ class About_Us extends Abstract_Module { } $api_data = $this->call_plugin_api( $slug ); - - if ( ! isset( $product['icon'] ) ) { + if ( ! isset( $product['icon'] ) && ( isset( $api_data->icons['2x'] ) || $api_data->icons['1x'] ) ) { $products[ $slug ]['icon'] = isset( $api_data->icons['2x'] ) ? $api_data->icons['2x'] : $api_data->icons['1x']; } - if ( ! isset( $product['description'] ) ) { + if ( ! isset( $product['description'] ) && isset( $api_data->short_description ) ) { $products[ $slug ]['description'] = $api_data->short_description; } - if ( ! isset( $product['name'] ) ) { + if ( ! isset( $product['name'] ) && isset( $api_data->name ) ) { $products[ $slug ]['name'] = $api_data->name; } } diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Announcements.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Announcements.php index f465be0f..f9fac09f 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Announcements.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Announcements.php @@ -35,6 +35,17 @@ class Announcements extends Abstract_Module { ), ); + /** + * Mark is a banner for a product was already loaded. + * + * @var array + */ + private static $banner_loaded = array(); + + const PLUGIN_PAGE = 'https://themeisle.com/plugins'; + const THEME_PAGE = 'https://themeisle.com/themes'; + const REVIVE_SOCIAL = 'https://revive.social/plugins'; + /** * Holds the option prefix for the announcements. * @@ -51,6 +62,17 @@ class Announcements extends Abstract_Module { */ public $time = ''; + /** + * Constructor for the Announcements module. + * + * @param array $timeline Optional. An array representing the timeline of announcements. Default is an empty array. + */ + public function __construct( $timeline = array() ) { + if ( is_array( $timeline ) && ! empty( $timeline ) ) { + self::$timeline = $timeline; + } + } + /** * Check if the module can be loaded. * @@ -83,6 +105,7 @@ class Announcements extends Abstract_Module { add_action( 'admin_init', array( $this, 'load_announcements' ) ); add_filter( 'themeisle_sdk_active_announcements', array( $this, 'get_active_announcements' ) ); add_filter( 'themeisle_sdk_announcements', array( $this, 'get_announcements_for_plugins' ) ); + add_action( 'themeisle_sdk_load_banner', array( $this, 'load_dashboard_banner_renderer' ) ); } /** @@ -143,9 +166,18 @@ class Announcements extends Abstract_Module { $announcements[ $announcement ]['active'] = $this->is_active( $dates ); // Dashboard banners URLs. - $announcements[ $announcement ]['feedzy_dashboard_url'] = tsdk_utmify( 'https://themeisle.com/plugins/feedzy-rss-feeds/blackfriday/', 'bfcm24', 'dashboard' ); - $announcements[ $announcement ]['neve_dashboard_url'] = tsdk_utmify( 'https://themeisle.com/themes/neve/blackfriday/', 'bfcm24', 'dashboard' ); - $announcements[ $announcement ]['otter_dashboard_url'] = tsdk_utmify( 'https://themeisle.com/plugins/otter-blocks/blackfriday/', 'bfcm24', 'dashboard' ); + $announcements[ $announcement ]['neve_dashboard_url'] = tsdk_utmify( self::THEME_PAGE . '/neve/blackfriday/', 'bfcm24', 'dashboard' ); + $announcements[ $announcement ]['hestia_dashboard_url'] = tsdk_utmify( self::THEME_PAGE . '/hestia/blackfriday/', 'bfcm24', 'dashboard' ); + $announcements[ $announcement ]['feedzy_dashboard_url'] = tsdk_utmify( self::PLUGIN_PAGE . '/feedzy-rss-feeds/blackfriday/', 'bfcm24', 'dashboard' ); + $announcements[ $announcement ]['otter_dashboard_url'] = tsdk_utmify( self::PLUGIN_PAGE . '/otter-blocks/blackfriday/', 'bfcm24', 'dashboard' ); + $announcements[ $announcement ]['mpg_dashboard_url'] = tsdk_utmify( self::PLUGIN_PAGE . '/multi-pages-generator/blackfriday', 'bfcm24', 'dashboard' ); + $announcements[ $announcement ]['ppom_dashboard_url'] = tsdk_utmify( self::PLUGIN_PAGE . '/ppom-pro/blackfriday/', 'bfcm24', 'dashboard' ); + $announcements[ $announcement ]['rfc7r_dashboard_url'] = tsdk_utmify( self::PLUGIN_PAGE . '/wpcf7-redirect/blackfriday/', 'bfcm24', 'dashboard' ); + $announcements[ $announcement ]['hyve_dashboard_url'] = tsdk_utmify( self::PLUGIN_PAGE . '/hyve/', 'bfcm24', 'dashboard' ); + $announcements[ $announcement ]['spc_dashboard_url'] = tsdk_utmify( self::PLUGIN_PAGE . '/super-page-cache-pro/blackfriday/', 'bfcm24', 'dashboard' ); + $announcements[ $announcement ]['visualizer_dashboard_url'] = tsdk_utmify( self::PLUGIN_PAGE . '/visualizer-charts-and-graphs/blackfriday/', 'bfcm24', 'dashboard' ); + $announcements[ $announcement ]['feedzy_dashboard_url'] = tsdk_utmify( self::PLUGIN_PAGE . '/feedzy-rss-feeds/blackfriday/', 'bfcm24', 'dashboard' ); + $announcements[ $announcement ]['rop_dashboard_url'] = tsdk_utmify( self::REVIVE_SOCIAL . '/revive-old-post/', 'bfcm24', 'dashboard' ); // Customizer banners URLs. $announcements[ $announcement ]['hestia_customizer_url'] = tsdk_utmify( 'https://themeisle.com/black-friday/', 'bfcm24', 'hestiacustomizer' ); @@ -155,6 +187,22 @@ class Announcements extends Abstract_Module { $remaining_time = $this->get_remaining_time_for_event( $dates['end'] ); $announcements[ $announcement ]['remaining_time'] = $remaining_time; $announcements[ $announcement ]['urgency_text'] = ! empty( $remaining_time ) ? sprintf( Loader::$labels['announcements']['hurry_up'], $remaining_time ) : ''; + + $announcements[ $announcement ]['feedzy_banner_src'] = defined( 'FEEDZY_ABSURL' ) ? FEEDZY_ABSURL . 'img/black-friday.jpg' : ''; + $announcements[ $announcement ]['visualizer_banner_src'] = defined( 'VISUALIZER_ABSURL' ) ? VISUALIZER_ABSURL . 'images/black-friday.jpg' : ''; + $announcements[ $announcement ]['ppom_banner_src'] = defined( 'PPOM_URL' ) ? PPOM_URL . '/images/black-friday.jpg' : ''; + $announcements[ $announcement ]['mpg_banner_src'] = defined( 'MPG_BASE_IMG_PATH' ) ? MPG_BASE_IMG_PATH . '/black-friday.jpg' : ''; + $announcements[ $announcement ]['spc_banner_src'] = defined( 'SWCFPC_PLUGIN_URL' ) ? SWCFPC_PLUGIN_URL . 'assets/img/black-friday.jpg' : ''; + $announcements[ $announcement ]['hestia_banner_src'] = defined( 'HESTIA_ASSETS_URL' ) ? HESTIA_ASSETS_URL . 'img/black-friday.jpg' : ''; + $announcements[ $announcement ]['hyve_banner_src'] = defined( 'HYVE_LITE_URL' ) ? HYVE_LITE_URL . 'assets/images/black-friday.jpg' : ''; + $announcements[ $announcement ]['rfc7r_banner_src'] = defined( 'WPCF7_PRO_REDIRECT_ASSETS_PATH' ) ? WPCF7_PRO_REDIRECT_ASSETS_PATH . 'images/black-friday.jpg' : ''; + $announcements[ $announcement ]['rop_banner_src'] = defined( 'ROP_LITE_URL' ) ? ROP_LITE_URL . 'assets/img/black-friday.jpg' : ''; + + foreach ( $announcements[ $announcement ] as $key => $value ) { + if ( strpos( $key, '_url' ) !== false ) { + $announcements[ $announcement ][ $key ] = tsdk_translate_link( $value ); + } + } } } @@ -277,9 +325,9 @@ class Announcements extends Abstract_Module { foreach ( Loader::get_products() as $product ) { $slug = $product->get_slug(); - // Do not add if the contains the string 'pro'. - if ( strpos( $slug, 'pro' ) !== false ) { - continue; + // NOTE: No notice if the user has at least one Pro product. + if ( $product->requires_license() ) { + return; } $product_names[] = $product->get_name(); @@ -299,11 +347,10 @@ class Announcements extends Abstract_Module {

- > - - - . + + - . > + target="_blank">

@@ -359,4 +406,92 @@ class Announcements extends Abstract_Module { get_announcements_for_plugins() as $announcement ) { + if ( false === $announcement['active'] ) { + continue; + } + + $cta_key = $product_key . '_dashboard_url'; + $banner_src_key = $product_key . '_banner_src'; + + if ( + ! isset( $announcement[ $cta_key ] ) || + ! isset( $announcement[ $banner_src_key ] ) || + empty( $announcement[ $banner_src_key ] ) || + ! isset( $announcement['urgency_text'] ) + ) { + continue; + } + + $banner_data = array( + 'content' => $this->render_banner( + array( + 'cta_url' => $announcement[ $cta_key ], + 'img_src' => $announcement[ $banner_src_key ], + 'urgency_text' => $announcement['urgency_text'], + ) + ), + ); + + break; + } + + if ( empty( $banner_data ) ) { + return; + } + + do_action( 'themeisle_sdk_dependency_enqueue_script', 'banner' ); + wp_localize_script( $banner_handler, 'tsdk_banner_data', $banner_data ); + } + + /** + * Renders a banner with the provided settings. + * + * @param array $settings { + * Optional. An array of settings for the banner. + * + * @type string $cta_url The URL for the call-to-action link. + * @type string $img_src The source URL for the banner image. + * @type string $urgency_text The urgency text to display on the banner. + * } + * @return string The HTML output of the banner. + */ + public function render_banner( $settings = array() ) { + if ( empty( $settings ) ) { + return ''; + } + + return wp_kses_post( + wp_sprintf( + '
%s
', + esc_url_raw( $settings['cta_url'] ), + esc_url_raw( $settings['img_src'] ), + sanitize_text_field( $settings['urgency_text'] ) + ) + ); + } } diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Dashboard_widget.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Dashboard_widget.php index d55e068c..b2ec4c00 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Dashboard_widget.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Dashboard_widget.php @@ -82,7 +82,6 @@ class Dashboard_Widget extends Abstract_Module { 'themeisle_sdk_dashboard_widget_feeds', [ 'https://themeisle.com/blog/feed', - 'https://www.codeinwp.com/blog/feed', 'https://wpshout.com/feed', ] ); diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Licenser.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Licenser.php index 3b5e9a71..edea184f 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Licenser.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Licenser.php @@ -926,7 +926,7 @@ class Licenser extends Abstract_Module { */ public function can_load( $product ) { - if ( $product->is_wordpress_available() ) { + if ( ! $product->requires_license() ) { return false; } @@ -975,55 +975,59 @@ class Licenser extends Abstract_Module { add_action( 'admin_head', [ $this, 'auto_activate' ] ); if ( $this->product->is_plugin() ) { - add_filter( - 'pre_set_site_transient_update_plugins', - [ - $this, - 'pre_set_site_transient_update_plugins_filter', - ] - ); - add_filter( 'plugins_api', array( $this, 'plugins_api_filter' ), 10, 3 ); - add_filter( //phpcs:ignore WordPressVIPMinimum.Hooks.RestrictedHooks.http_request_args - 'http_request_args', - array( - $this, - 'http_request_args', - ), - 10, - 2 - ); - if ( ! self::is_valid( $product->get_basefile() ) ) { + if ( ! $product->is_wordpress_available() ) { add_filter( - 'plugin_action_links_' . plugin_basename( $product->get_basefile() ), - function ( $actions ) { - if ( $this->get_license_status( true ) !== self::STATUS_ACTIVE_EXPIRED ) { - return $actions; - } - $new_actions['deactivate'] = $actions['deactivate']; - $new_actions['renew_link'] = '' . esc_html( Loader::$labels['licenser']['renew_cta'] ) . ''; - - return $new_actions; - } + 'pre_set_site_transient_update_plugins', + [ + $this, + 'pre_set_site_transient_update_plugins_filter', + ] ); + add_filter( 'plugins_api', array( $this, 'plugins_api_filter' ), 10, 3 ); + add_filter( //phpcs:ignore WordPressVIPMinimum.Hooks.RestrictedHooks.http_request_args + 'http_request_args', + array( + $this, + 'http_request_args', + ), + 10, + 2 + ); + if ( ! self::is_valid( $product->get_basefile() ) ) { + add_filter( + 'plugin_action_links_' . plugin_basename( $product->get_basefile() ), + function ( $actions ) { + if ( $this->get_license_status( true ) !== self::STATUS_ACTIVE_EXPIRED ) { + return $actions; + } + $new_actions['deactivate'] = $actions['deactivate']; + $new_actions['renew_link'] = '' . esc_html( Loader::$labels['licenser']['renew_cta'] ) . ''; + + return $new_actions; + } + ); + } } return $this; } if ( $this->product->is_theme() ) { - add_filter( 'site_transient_update_themes', array( &$this, 'theme_update_transient' ) ); - add_action( 'delete_site_transient_update_themes', array( &$this, 'delete_theme_update_transient' ) ); - add_action( 'load-update-core.php', array( &$this, 'delete_theme_update_transient' ) ); - add_action( 'load-themes.php', array( &$this, 'delete_theme_update_transient' ) ); - add_action( 'load-themes.php', array( &$this, 'load_themes_screen' ) ); - add_filter( //phpcs:ignore WordPressVIPMinimum.Hooks.RestrictedHooks.http_request_args - 'http_request_args', - array( - $this, - 'disable_wporg_update', - ), - 5, - 2 - ); + if ( ! $product->is_wordpress_available() ) { + add_filter( 'site_transient_update_themes', array( &$this, 'theme_update_transient' ) ); + add_action( 'delete_site_transient_update_themes', array( &$this, 'delete_theme_update_transient' ) ); + add_action( 'load-update-core.php', array( &$this, 'delete_theme_update_transient' ) ); + add_action( 'load-themes.php', array( &$this, 'delete_theme_update_transient' ) ); + add_action( 'load-themes.php', array( &$this, 'load_themes_screen' ) ); + add_filter( //phpcs:ignore WordPressVIPMinimum.Hooks.RestrictedHooks.http_request_args + 'http_request_args', + array( + $this, + 'disable_wporg_update', + ), + 5, + 2 + ); + } return $this; diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Logger.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Logger.php index 5748296c..969cf22e 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Logger.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Logger.php @@ -79,12 +79,18 @@ class Logger extends Abstract_Module { if ( ! $this->is_logger_active() ) { return; } + + add_action( + 'admin_enqueue_scripts', + function() { + if ( ! apply_filters( 'themeisle_sdk_enable_telemetry', false ) ) { + return; + } - $can_load_telemetry = apply_filters( 'themeisle_sdk_enable_telemetry', false ); - - if ( $can_load_telemetry ) { - add_action( 'admin_enqueue_scripts', array( $this, 'load_telemetry' ) ); - } + $this->load_telemetry(); + }, + PHP_INT_MAX + ); $action_key = $this->product->get_key() . '_log_activity'; if ( ! wp_next_scheduled( $action_key ) ) { diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Promotions.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Promotions.php index 9115f650..b37a4b56 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Promotions.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Promotions.php @@ -32,7 +32,7 @@ class Promotions extends Abstract_Module { * * @var array */ - private $promotions = array(); + public $promotions = array(); /** * Holds the values of the promotions that are not allowed to be shown. @@ -71,11 +71,39 @@ class Promotions extends Abstract_Module { private $option_rop = 'themeisle_sdk_promotions_rop_installed'; /** - * Option key for Neve FSE promos. + * Option key for Neve promo. * * @var string */ - private $option_neve_fse = 'themeisle_sdk_promotions_neve_fse_installed'; + private $option_neve = 'themeisle_sdk_promotions_neve_installed'; + + /** + * Option key for Redirection for CF7. + * + * @var string + */ + private $option_redirection_cf7 = 'themeisle_sdk_promotions_redirection_cf7_installed'; + + /** + * Option key for Hyve. + * + * @var string + */ + private $option_hyve = 'themeisle_sdk_promotions_hyve_installed'; + + /** + * Option key for WP Full Pay. + * + * @var string + */ + private $option_wp_full_pay = 'themeisle_sdk_promotions_wp_full_pay_installed'; + + /** + * Option key for Feedzy. + * + * @var string + */ + private $option_feedzy = 'themeisle_sdk_promotions_feedzy_installed'; /** * Loaded promotion. @@ -113,12 +141,22 @@ class Promotions extends Abstract_Module { return false; } - $this->debug = apply_filters( 'themeisle_sdk_promo_debug', $this->debug ); - $promotions_to_load = apply_filters( $product->get_key() . '_load_promotions', array() ); + $this->debug = apply_filters( 'themeisle_sdk_promo_debug', $this->debug ); + $promotions_to_load = apply_filters( $product->get_key() . '_load_promotions', array() ); + $promotions_to_load[] = 'optimole'; $promotions_to_load[] = 'rop'; $promotions_to_load[] = 'woo_plugins'; - $promotions_to_load[] = 'neve-fse'; + $promotions_to_load[] = 'neve'; + $promotions_to_load[] = 'redirection-cf7'; + $promotions_to_load[] = 'hyve'; + $promotions_to_load[] = 'wp_full_pay'; + $promotions_to_load[] = 'feedzy_import'; + + if ( defined( 'NEVE_VERSION' ) || defined( 'WPMM_PATH' ) || defined( 'OTTER_BLOCKS_VERSION' ) || defined( 'OBFX_URL' ) ) { + $promotions_to_load[] = 'feedzy_embed'; + } + $promotions_to_load = array_unique( $promotions_to_load ); $this->promotions = $this->get_promotions(); @@ -129,7 +167,6 @@ class Promotions extends Abstract_Module { unset( $this->promotions[ $slug ] ); } } - add_action( 'init', array( $this, 'register_settings' ), 99 ); add_action( 'admin_init', array( $this, 'register_reference' ), 99 ); @@ -146,21 +183,21 @@ class Promotions extends Abstract_Module { return; } - $this->product = $product; + $last_dismiss_time = $this->get_last_dismiss_time(); - $last_dismiss = $this->get_last_dismiss_time(); - - if ( ! $this->debug && $last_dismiss && ( time() - $last_dismiss ) < 7 * DAY_IN_SECONDS ) { + if ( ! $this->debug && is_int( $last_dismiss_time ) && ( time() - $last_dismiss_time ) < ( 3 * WEEK_IN_SECONDS ) ) { return; } + $this->product = $product; + add_filter( 'attachment_fields_to_edit', array( $this, 'add_attachment_field' ), 10, 2 ); add_action( 'current_screen', [ $this, 'load_available' ] ); add_action( 'elementor/editor/after_enqueue_scripts', array( $this, 'enqueue' ) ); add_action( 'wp_ajax_tisdk_update_option', array( $this, 'dismiss_promotion' ) ); add_filter( 'themeisle_sdk_ran_promos', '__return_true' ); - if ( get_option( $this->option_neve_fse, false ) !== true ) { + if ( get_option( $this->option_neve, false ) !== true ) { add_action( 'wp_ajax_themeisle_sdk_dismiss_notice', 'ThemeisleSDK\Modules\Notification::regular_dismiss' ); } } @@ -209,8 +246,20 @@ class Promotions extends Abstract_Module { update_option( 'rop_reference_key', sanitize_key( $_GET['rop_reference_key'] ) ); } - if ( isset( $_GET['neve_fse_reference_key'] ) ) { - update_option( 'neve_fse_reference_key', sanitize_key( $_GET['neve_fse_reference_key'] ) ); + if ( isset( $_GET['neve_reference_key'] ) ) { + update_option( 'neve_reference_key', sanitize_key( $_GET['neve_reference_key'] ) ); + } + + if ( isset( $_GET['hyve_reference_key'] ) ) { + update_option( 'hyve_reference_key', sanitize_key( $_GET['hyve_reference_key'] ) ); + } + + if ( isset( $_GET['wp_full_pay_reference_key'] ) ) { + update_option( 'wp_full_pay_reference_key', sanitize_key( $_GET['wp_full_pay_reference_key'] ) ); + } + if ( isset( $_GET['feedzy_reference_key'] ) || ( isset( $_GET['from'], $_GET['plugin'] ) && $_GET['from'] === 'import' && str_starts_with( sanitize_key( $_GET['plugin'] ), 'feedzy' ) ) ) { + update_option( 'feedzy_reference_key', sanitize_key( $_GET['feedzy_reference_key'] ?? 'i-' . $this->product->get_key() ) ); + update_option( $this->option_feedzy, 1 ); } } @@ -263,7 +312,37 @@ class Promotions extends Abstract_Module { ); register_setting( 'themeisle_sdk_settings', - $this->option_neve_fse, + $this->option_neve, + array( + 'type' => 'boolean', + 'sanitize_callback' => 'rest_sanitize_boolean', + 'show_in_rest' => true, + 'default' => false, + ) + ); + register_setting( + 'themeisle_sdk_settings', + $this->option_redirection_cf7, + array( + 'type' => 'boolean', + 'sanitize_callback' => 'rest_sanitize_boolean', + 'show_in_rest' => true, + 'default' => false, + ) + ); + register_setting( + 'themeisle_sdk_settings', + $this->option_hyve, + array( + 'type' => 'boolean', + 'sanitize_callback' => 'rest_sanitize_boolean', + 'show_in_rest' => true, + 'default' => false, + ) + ); + register_setting( + 'themeisle_sdk_settings', + $this->option_wp_full_pay, array( 'type' => 'boolean', 'sanitize_callback' => 'rest_sanitize_boolean', @@ -313,31 +392,45 @@ class Promotions extends Abstract_Module { * @return array */ private function get_promotions() { - $has_otter = defined( 'OTTER_BLOCKS_VERSION' ) || $this->is_plugin_installed( 'otter-blocks' ); - $had_otter_from_promo = get_option( $this->option_otter, false ); - $has_optimole = defined( 'OPTIMOLE_VERSION' ) || $this->is_plugin_installed( 'optimole-wp' ); - $had_optimole_from_promo = get_option( $this->option_optimole, false ); - $has_rop = defined( 'ROP_LITE_VERSION' ) || $this->is_plugin_installed( 'tweet-old-post' ); - $had_rop_from_promo = get_option( $this->option_rop, false ); - $has_woocommerce = class_exists( 'WooCommerce' ); - $has_sparks = defined( 'SPARKS_WC_VERSION' ) || $this->is_plugin_installed( 'sparks-for-woocommerce' ); - $has_ppom = defined( 'PPOM_VERSION' ) || $this->is_plugin_installed( 'woocommerce-product-addon' ); - $is_min_req_v = version_compare( get_bloginfo( 'version' ), '5.8', '>=' ); - $is_min_fse_v = version_compare( get_bloginfo( 'version' ), '6.2', '>=' ); - $current_theme = wp_get_theme(); - $has_neve_fse = $current_theme->template === 'neve-fse' || $current_theme->parent() === 'neve-fse'; - $has_enough_attachments = $this->has_min_media_attachments(); - $has_enough_old_posts = $this->has_old_posts(); + $has_otter = defined( 'OTTER_BLOCKS_VERSION' ) || $this->is_plugin_installed( 'otter-blocks' ); + $had_otter_from_promo = get_option( $this->option_otter, false ); + $has_optimole = defined( 'OPTIMOLE_VERSION' ) || $this->is_plugin_installed( 'optimole-wp' ); + $had_optimole_from_promo = get_option( $this->option_optimole, false ); + $has_rop = defined( 'ROP_LITE_VERSION' ) || $this->is_plugin_installed( 'tweet-old-post' ); + $had_rop_from_promo = get_option( $this->option_rop, false ); + $has_woocommerce = class_exists( 'WooCommerce' ); + $has_sparks = defined( 'SPARKS_WC_VERSION' ) || $this->is_plugin_installed( 'sparks-for-woocommerce' ); + $has_ppom = defined( 'PPOM_VERSION' ) || $this->is_plugin_installed( 'woocommerce-product-addon' ); + $has_redirection_cf7 = defined( 'WPCF7_PRO_REDIRECT_PLUGIN_VERSION' ) || $this->is_plugin_installed( 'wpcf7-redirect' ); + $had_redirection_cf7_promo = get_option( $this->option_redirection_cf7, false ); + $has_hyve = defined( 'HYVE_LITE_VERSION' ) || $this->is_plugin_installed( 'hyve' ) || $this->is_plugin_installed( 'hyve-lite' ); + $had_hyve_from_promo = get_option( $this->option_hyve, false ); + $has_hyve_conditions = version_compare( get_bloginfo( 'version' ), '6.2', '>=' ) && $this->has_support_page(); + $has_wfp_full_pay = defined( 'WP_FULL_STRIPE_BASENAME' ) || $this->is_plugin_installed( 'wp-full-stripe-free' ); + $had_wfp_from_promo = get_option( $this->option_wp_full_pay, false ); + $has_wfp_conditions = $this->has_donate_page(); + $is_min_req_v = version_compare( get_bloginfo( 'version' ), '5.8', '>=' ); + $current_theme = wp_get_theme(); + $has_neve = $current_theme->template === 'neve' || $current_theme->parent() === 'neve'; + $has_neve_from_promo = get_option( $this->option_neve, false ); + $has_enough_attachments = $this->has_min_media_attachments(); + $has_enough_old_posts = $this->has_old_posts(); + $is_min_php_8_1 = version_compare( PHP_VERSION, '8.1', '>=' ); + + $has_feedzy = defined( 'FEEDZY_BASEFILE' ) || $this->is_plugin_installed( 'feedzy-rss-feedss' ); + $had_feedzy_from_promo = get_option( $this->option_feedzy, false ); $all = [ - 'optimole' => [ + 'optimole' => [ 'om-editor' => [ - 'env' => ! $has_optimole && $is_min_req_v && ! $had_optimole_from_promo, - 'screen' => 'editor', + 'env' => ! $has_optimole && $is_min_req_v && ! $had_optimole_from_promo, + 'screen' => 'editor', + 'delayed' => true, ], 'om-image-block' => [ - 'env' => ! $has_optimole && $is_min_req_v && ! $had_optimole_from_promo, - 'screen' => 'editor', + 'env' => ! $has_optimole && $is_min_req_v && ! $had_optimole_from_promo, + 'screen' => 'editor', + 'delayed' => true, ], 'om-attachment' => [ 'env' => ! $has_optimole && ! $had_optimole_from_promo, @@ -348,31 +441,49 @@ class Promotions extends Abstract_Module { 'screen' => 'media', ], 'om-elementor' => [ - 'env' => ! $has_optimole && ! $had_optimole_from_promo && defined( 'ELEMENTOR_VERSION' ), - 'screen' => 'elementor', + 'env' => ! $has_optimole && ! $had_optimole_from_promo && defined( 'ELEMENTOR_VERSION' ), + 'screen' => 'elementor', + 'delayed' => true, ], ], - 'otter' => [ - 'blocks-css' => [ - 'env' => ! $has_otter && $is_min_req_v && ! $had_otter_from_promo, + 'feedzy_import' => [ + 'feedzy-import' => [ + 'env' => true, + 'screen' => 'import', + 'always' => true, + ], + ], + 'feedzy_embed' => [ + 'feedzy-editor' => [ + 'env' => ! $has_feedzy && is_main_site() && ! $had_feedzy_from_promo, 'screen' => 'editor', ], + ], + 'otter' => [ + 'blocks-css' => [ + 'env' => ! $has_otter && $is_min_req_v && ! $had_otter_from_promo, + 'screen' => 'editor', + 'delayed' => true, + ], 'blocks-animation' => [ - 'env' => ! $has_otter && $is_min_req_v && ! $had_otter_from_promo, - 'screen' => 'editor', + 'env' => ! $has_otter && $is_min_req_v && ! $had_otter_from_promo, + 'screen' => 'editor', + 'delayed' => true, ], 'blocks-conditions' => [ - 'env' => ! $has_otter && $is_min_req_v && ! $had_otter_from_promo, - 'screen' => 'editor', + 'env' => ! $has_otter && $is_min_req_v && ! $had_otter_from_promo, + 'screen' => 'editor', + 'delayed' => true, ], ], - 'rop' => [ + 'rop' => [ 'rop-posts' => [ - 'env' => ! $has_rop && ! $had_rop_from_promo && $has_enough_old_posts, - 'screen' => 'edit-post', + 'env' => ! $has_rop && ! $had_rop_from_promo && $has_enough_old_posts, + 'screen' => 'edit-post', + 'delayed' => true, ], ], - 'woo_plugins' => [ + 'woo_plugins' => [ 'ppom' => [ 'env' => ! $has_ppom && $has_woocommerce, 'screen' => 'edit-product', @@ -390,12 +501,31 @@ class Promotions extends Abstract_Module { 'screen' => 'edit-product', ], ], - 'neve-fse' => [ - 'neve-fse-themes-popular' => [ - 'env' => ! $has_neve_fse && $is_min_fse_v, + 'neve' => [ + 'neve-themes-popular' => [ + 'env' => ! $has_neve && ! $has_neve_from_promo, 'screen' => 'themes-install-popular', ], ], + 'redirection-cf7' => [ + 'wpcf7' => [ + 'env' => ! $has_redirection_cf7 && ! $had_redirection_cf7_promo, + 'screen' => 'wpcf7', + 'delayed' => true, + ], + ], + 'hyve' => [ + 'hyve-plugins-install' => [ + 'env' => $is_min_php_8_1 && ! $has_hyve && ! $had_hyve_from_promo && $has_hyve_conditions, + 'screen' => 'plugin-install', + ], + ], + 'wp_full_pay' => [ + 'wp-full-pay-plugins-install' => [ + 'env' => ! $has_wfp_full_pay && ! $had_wfp_from_promo && $has_wfp_conditions, + 'screen' => 'plugin-install', + ], + ], ]; foreach ( $all as $slug => $data ) { @@ -415,7 +545,6 @@ class Promotions extends Abstract_Module { unset( $all[ $slug ] ); } } - return $all; } @@ -442,18 +571,12 @@ class Promotions extends Abstract_Module { /** * Get the last dismiss time of a promotion. * - * @return int The timestamp of last dismiss, or install time - 4 days. + * @return int | false The timestamp of last dismiss or false. */ private function get_last_dismiss_time() { $dismissed = $this->get_upsells_dismiss_time(); - if ( empty( $dismissed ) ) { - // we return the product install time - 4 days because we want to show the upsell after 3 days, - // and we move the product install time 4 days in the past. - return $this->product->get_install_time() - 4 * DAY_IN_SECONDS; - } - - return max( array_values( $dismissed ) ); + return empty( $dismissed ) ? false : max( array_values( $dismissed ) ); } /** @@ -464,17 +587,43 @@ class Promotions extends Abstract_Module { private function filter_by_screen_and_merge() { $current_screen = get_current_screen(); - $is_elementor = isset( $_GET['action'] ) && $_GET['action'] === 'elementor'; - $is_media = isset( $current_screen->id ) && $current_screen->id === 'upload'; - $is_posts = isset( $current_screen->id ) && $current_screen->id === 'edit-post'; - $is_editor = method_exists( $current_screen, 'is_block_editor' ) && $current_screen->is_block_editor(); - $is_theme_install = isset( $current_screen->id ) && ( $current_screen->id === 'theme-install' || $current_screen->id === 'themes' ); - $is_product = isset( $current_screen->id ) && $current_screen->id === 'product'; - - $return = []; + $is_elementor = isset( $_GET['action'] ) && $_GET['action'] === 'elementor'; + $is_media = isset( $current_screen->id ) && $current_screen->id === 'upload'; + $is_posts = isset( $current_screen->id ) && $current_screen->id === 'edit-post'; + $is_editor = method_exists( $current_screen, 'is_block_editor' ) && $current_screen->is_block_editor(); + $is_theme_install = isset( $current_screen->id ) && ( $current_screen->id === 'theme-install' ); + $is_plugin_install = isset( $current_screen->id ) && ( $current_screen->id === 'plugin-install' ); + $is_product = isset( $current_screen->id ) && $current_screen->id === 'product'; + $is_import = isset( $current_screen->id ) && $current_screen->id === 'import'; + $is_cf7_install = isset( $current_screen->id ) && function_exists( 'str_contains' ) ? str_contains( $current_screen->id, 'page_wpcf7' ) : false; + $return = []; + $product_install_time = (int) $this->product->get_install_time(); + $is_older = time() > ( $product_install_time + ( 3 * DAY_IN_SECONDS ) ); + $is_newer = time() < ( $product_install_time + ( 6 * HOUR_IN_SECONDS ) ); foreach ( $this->promotions as $slug => $promos ) { foreach ( $promos as $key => $data ) { + + $data = wp_parse_args( + $data, + [ + 'delayed' => false, + 'always' => false, + ] + ); + + if ( + ! $this->debug && + ( + ( $data['delayed'] === true && ! $is_older ) || // Skip promotions that are delayed for 3 days. + $is_newer // Skip promotions for the first 6 hours after install. + ) + && ! $data['always'] + ) { + unset( $this->promotions[ $slug ][ $key ] ); + + continue; + } switch ( $data['screen'] ) { case 'media-editor': if ( ! $is_media && ! $is_editor ) { @@ -491,6 +640,11 @@ class Promotions extends Abstract_Module { unset( $this->promotions[ $slug ][ $key ] ); } break; + case 'import': + if ( ! $is_import ) { + unset( $this->promotions[ $slug ][ $key ] ); + } + break; case 'elementor': if ( ! $is_elementor ) { unset( $this->promotions[ $slug ][ $key ] ); @@ -511,6 +665,16 @@ class Promotions extends Abstract_Module { unset( $this->promotions[ $slug ][ $key ] ); } break; + case 'wpcf7': + if ( ! $is_cf7_install ) { + unset( $this->promotions[ $slug ][ $key ] ); + } + break; + case 'plugin-install': + if ( ! $is_plugin_install ) { + unset( $this->promotions[ $slug ][ $key ] ); + } + break; } } @@ -545,15 +709,25 @@ class Promotions extends Abstract_Module { if ( $this->get_upsells_dismiss_time( 'rop-posts' ) === false ) { add_action( 'admin_notices', [ $this, 'render_rop_dash_notice' ] ); } - if ( $this->get_upsells_dismiss_time( 'neve-fse-themes-popular' ) === false ) { - add_action( 'admin_notices', [ $this, 'render_neve_fse_themes_notice' ] ); + if ( $this->get_upsells_dismiss_time( 'neve-themes-popular' ) === false ) { + add_action( 'admin_notices', [ $this, 'render_neve_themes_notice' ] ); + } + if ( $this->get_upsells_dismiss_time( 'redirection-cf7' ) === false ) { + add_action( 'admin_notices', [ $this, 'render_redirection_cf7_notice' ] ); + } + if ( $this->get_upsells_dismiss_time( 'hyve-plugins-install' ) === false ) { + add_action( 'admin_notices', [ $this, 'render_hyve_notice' ] ); } + if ( $this->get_upsells_dismiss_time( 'wp-full-pay-plugins-install' ) === false ) { + add_action( 'admin_notices', [ $this, 'render_wp_full_pay_notice' ] ); + } + + add_action( 'load-import.php', [ $this, 'add_import' ] ); $this->load_woo_promos(); return; } - switch ( $slug ) { case 'om-editor': case 'om-image-block': @@ -573,14 +747,21 @@ class Promotions extends Abstract_Module { add_action( 'admin_enqueue_scripts', [ $this, 'enqueue' ] ); add_action( 'admin_notices', [ $this, 'render_rop_dash_notice' ] ); break; + case 'feedzy-import': + add_action( 'load-import.php', [ $this, 'add_import' ] ); + + break; + case 'feedzy-editor': + add_action( 'enqueue_block_editor_assets', [ $this, 'enqueue' ] ); + break; case 'ppom': case 'sparks-wishlist': case 'sparks-announcement': case 'sparks-product-reviews': $this->load_woo_promos(); break; - case 'neve-fse-themes-popular': - // Remove any other notifications if Neve FSE promotion is showing + case 'neve-themes-popular': + // Remove any other notifications if Neve promotion is showing remove_action( 'admin_notices', array( 'ThemeisleSDK\Modules\Notification', 'show_notification' ) ); remove_action( 'wp_ajax_themeisle_sdk_dismiss_notice', @@ -593,11 +774,42 @@ class Promotions extends Abstract_Module { remove_action( 'admin_head', array( 'ThemeisleSDK\Modules\Notification', 'setup_notifications' ) ); // Add required actions to display this notification add_action( 'admin_enqueue_scripts', [ $this, 'enqueue' ] ); - add_action( 'admin_notices', [ $this, 'render_neve_fse_themes_notice' ] ); + add_action( 'admin_notices', [ $this, 'render_neve_themes_notice' ] ); + break; + case 'wpcf7': + add_action( 'admin_enqueue_scripts', [ $this, 'enqueue' ] ); + add_action( 'admin_notices', [ $this, 'render_redirection_cf7_notice' ] ); + break; + case 'hyve-plugins-install': + add_action( 'admin_enqueue_scripts', [ $this, 'enqueue' ] ); + add_action( 'admin_notices', [ $this, 'render_hyve_notice' ] ); + break; + case 'wp-full-pay-plugins-install': + add_action( 'admin_enqueue_scripts', [ $this, 'enqueue' ] ); + add_action( 'admin_notices', [ $this, 'render_wp_full_pay_notice' ] ); break; } } + /** + * Add import row. + * + * @return void + */ + public function add_import() { + global $wp_importers; + if ( isset( $wp_importers['feedzy-rss-feeds'] ) ) { + return; + } + $wp_importers['feedzy-rss-feeds'] = array( // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited + 'Feedzy', + sprintf( Loader::$labels['promotions']['feedzy']['import_desc'], '', $this->product->get_friendly_name(), '' ), + 'install' => 'feedzy-rss-feeds', + ); + if ( defined( 'FEEDZY_BASEFILE' ) ) { + unset( $wp_importers['feedzy-rss-feeds']['install'] ); + } + } /** * Render dashboard notice. */ @@ -623,31 +835,64 @@ class Promotions extends Abstract_Module { $asset_file = require $themeisle_sdk_max_path . '/assets/js/build/promos/index.asset.php'; $deps = array_merge( $asset_file['dependencies'], [ 'updates' ] ); + $themes = wp_get_themes(); + $neve_action = isset( $themes['neve'] ) ? 'activate' : 'install'; + $labels = Loader::$labels['promotions']; + $labels['feedzy']['editor_recommends'] = sprintf( + $labels['feedzy']['editor_recommends'], + $this->product->get_friendly_name(), + '', + '' + ); wp_register_script( $handle, $themeisle_sdk_src . 'assets/js/build/promos/index.js', $deps, $asset_file['version'], true ); wp_localize_script( $handle, 'themeisleSDKPromotions', [ - 'debug' => $this->debug, - 'labels' => [ - 'optimole' => Loader::$labels['promotions']['optimole'], - ], - 'email' => $user->user_email, - 'showPromotion' => $this->loaded_promo, - 'optionKey' => $this->option_main, - 'product' => $this->product->get_name(), - 'option' => empty( $saved ) ? new \stdClass() : $saved, - 'nonce' => wp_create_nonce( 'wp_rest' ), - 'assets' => $themeisle_sdk_src . 'assets/images/', - 'optimoleApi' => esc_url( rest_url( 'optml/v1/register_service' ) ), - 'optimoleActivationUrl' => $this->get_plugin_activation_link( 'optimole-wp' ), - 'otterActivationUrl' => $this->get_plugin_activation_link( 'otter-blocks' ), - 'ropActivationUrl' => $this->get_plugin_activation_link( 'tweet-old-post' ), - 'optimoleDash' => esc_url( add_query_arg( [ 'page' => 'optimole' ], admin_url( 'upload.php' ) ) ), - 'ropDash' => esc_url( add_query_arg( [ 'page' => 'TweetOldPost' ], admin_url( 'admin.php' ) ) ), - 'neveFSEMoreUrl' => tsdk_utmify( 'https://themeisle.com/themes/neve-fse/', 'neve-fse-themes-popular', 'theme-install' ), + 'debug' => $this->debug, + 'labels' => $labels, + 'email' => $user->user_email, + 'showPromotion' => $this->loaded_promo, + 'optionKey' => $this->option_main, + 'product' => $this->product->get_name(), + 'option' => empty( $saved ) ? new \stdClass() : $saved, + 'nonce' => wp_create_nonce( 'wp_rest' ), + 'assets' => $themeisle_sdk_src . 'assets/images/', + 'optimoleApi' => esc_url( rest_url( 'optml/v1/register_service' ) ), + 'optimoleActivationUrl' => $this->get_plugin_activation_link( 'optimole-wp' ), + 'otterActivationUrl' => $this->get_plugin_activation_link( 'otter-blocks' ), + 'ropActivationUrl' => $this->get_plugin_activation_link( 'tweet-old-post' ), + 'optimoleDash' => esc_url( add_query_arg( [ 'page' => 'optimole' ], admin_url( 'upload.php' ) ) ), + 'ropDash' => esc_url( add_query_arg( [ 'page' => 'TweetOldPost' ], admin_url( 'admin.php' ) ) ), // translators: %s is the product name. - 'title' => esc_html( sprintf( Loader::$labels['promotions']['recommended'], $this->product->get_name() ) ), + 'title' => esc_html( sprintf( Loader::$labels['promotions']['recommended'], $this->product->get_name() ) ), + 'redirectionCF7MoreUrl' => tsdk_utmify( 'https://docs.themeisle.com/collection/2014-redirection-for-contact-form-7', 'redirection-for-contact-form-7', 'plugin-install' ), + 'rfCF7ActivationUrl' => $this->get_plugin_activation_link( 'wpcf7-redirect' ), + 'cf7Dash' => esc_url( add_query_arg( [ 'page' => 'wpcf7-new' ], admin_url( 'admin.php' ) ) ), + 'hyveActivationUrl' => $this->get_plugin_activation_link( 'hyve-lite' ), + 'hyveDash' => esc_url( add_query_arg( [ 'page' => 'wpfs-settings-stripe' ], admin_url( 'admin.php' ) ) ), + 'wpFullPayActivationUrl' => $this->get_plugin_activation_link( 'wp-full-stripe-free' ), + 'wpFullPayDash' => esc_url( add_query_arg( [ 'page' => 'wpfs-settings-stripe' ], admin_url( 'admin.php' ) ) ), + 'nevePreviewURL' => esc_url( add_query_arg( [ 'theme' => 'neve' ], admin_url( 'theme-install.php' ) ) ), + 'neveAction' => $neve_action, + 'activateNeveURL' => esc_url( + add_query_arg( + [ + 'action' => 'activate', + 'stylesheet' => 'neve', + '_wpnonce' => wp_create_nonce( 'switch-theme_neve' ), + ], + admin_url( 'themes.php' ) + ) + ), ] ); wp_enqueue_script( $handle ); @@ -668,10 +913,31 @@ class Promotions extends Abstract_Module { } /** - * Render Neve FSE Themes notice. + * Render Neve Themes notice. */ - public function render_neve_fse_themes_notice() { - echo '
'; + public function render_neve_themes_notice() { + echo '
'; + } + + /** + * Render Hyve notice. + */ + public function render_hyve_notice() { + echo '
'; + } + + /** + * Render WP Full Pay notice. + */ + public function render_wp_full_pay_notice() { + echo '
'; + } + + /** + * Render Redirection for CF7 notice. + */ + public function render_redirection_cf7_notice() { + echo '
'; } /** @@ -693,7 +959,7 @@ class Promotions extends Abstract_Module { $meta = wp_get_attachment_metadata( $post->ID ); - if ( isset( $meta['filesize'] ) && $meta['filesize'] < 200000 ) { + if ( isset( $meta['filesize'] ) && $meta['filesize'] < 100000 ) { return $fields; } @@ -923,7 +1189,6 @@ class Promotions extends Abstract_Module { content: url("data:image/svg+xml,%3Csvg fill='%23135e96' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d=''/%3E%3C/svg%3E") !important; min-width: 13px; max-width: 13px; - margin: auto; } .tisdk-suggestions_options.active a::before { @@ -1084,4 +1349,61 @@ class Promotions extends Abstract_Module { wp_send_json( $response ); wp_die(); } + + /** + * Check if the user has a support page. + */ + public function has_support_page() { + $transient_name = 'tisdk_has_support_page'; + $has_support = get_transient( $transient_name ); + + if ( false === $has_support ) { + global $wpdb; + + // We use %i escape identifier that was added in WP 6.2.0, hence need to ignore PHPCS warning. + // We only show this notice to users on higher version as that is the minimum for Hyve as well. + $query = $wpdb->get_var( //phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching + $wpdb->prepare( // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.ReplacementsWrongNumber + 'SELECT ID FROM %i WHERE post_type = %s AND post_status = %s AND post_title LIKE %s LIMIT 1', // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.UnsupportedPlaceholder + $wpdb->posts, + 'page', + 'publish', + '%support%' + ) + ); + + $has_support = $query ? 'yes' : 'no'; + + set_transient( $transient_name, $has_support, 7 * DAY_IN_SECONDS ); + } + + return 'yes' === $has_support; + } + + /** + * Check if the user has a donate page. + */ + public function has_donate_page() { + $transient_name = 'tisdk_has_donate_page'; + $has_donate = get_transient( $transient_name ); + + if ( false === $has_donate ) { + global $wpdb; + + $query = $wpdb->get_var( //phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching + $wpdb->prepare( + 'SELECT ID FROM ' . $wpdb->posts . ' WHERE post_type = %s AND post_status = %s AND post_title LIKE %s LIMIT 1', + 'page', + 'publish', + '%donate%' + ) + ); + + $has_donate = $query ? 'yes' : 'no'; + + set_transient( $transient_name, $has_donate, 7 * DAY_IN_SECONDS ); + } + + return 'yes' === $has_donate; + } } diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Review.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Review.php index 80c47806..3e3c4db1 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Review.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Review.php @@ -54,16 +54,10 @@ class Review extends Abstract_Module { public function add_notification( $all_notifications ) { $developers = [ - 'Bogdan', 'Marius', 'Hardeep', - 'Rodica', - 'Stefan', - 'Uriahs', - 'Madalin', - 'Cristi', - 'Silviu', 'Andrei', + 'Robert', ]; $link = 'https://wordpress.org/support/' . $this->product->get_type() . '/' . $this->product->get_slug() . '/reviews/#wporg-footer'; @@ -76,7 +70,7 @@ class Review extends Abstract_Module { [ '{product}', '{developer}' ], [ $this->product->get_friendly_name(), - $developers[ strlen( get_site_url() ) % 10 ], + $developers[ strlen( get_site_url() ) % count( $developers ) ], ], $message ); diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Script_loader.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Script_loader.php index 8d37c432..1d0ef6bb 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Script_loader.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Script_loader.php @@ -62,8 +62,28 @@ class Script_Loader extends Abstract_Module { add_filter( 'themeisle_sdk_dependency_script_handler', [ $this, 'get_script_handler' ], 10, 1 ); add_action( 'themeisle_sdk_dependency_enqueue_script', [ $this, 'enqueue_script' ], 10, 1 ); + add_filter( 'themeisle_sdk_secret_masking', [ $this, 'secret_masking' ], 10, 1 ); add_filter( 'themeisle_sdk_script_setup', '__return_true' ); + + add_action( 'themeisle_internal_page', [ $this, 'load_survey_for_product' ], 10, 2 ); + } + + /** + * Load survey for product using internal pages. + * + * @param string $product_slug Product slug. + * @param string $page_slug Page slug. + */ + public function load_survey_for_product( $product_slug, $page_slug ) { + $data = apply_filters( 'themeisle-sdk/survey/' . $product_slug, [], $page_slug ); + + if ( empty( $data ) || ! is_array( $data ) ) { + return; + } + + $handler = $this->get_script_handler( 'survey' ); + $this->load_survey( $handler, $data ); } /** @@ -78,7 +98,7 @@ class Script_Loader extends Abstract_Module { return ''; } - if ( 'tracking' !== $slug && 'survey' !== $slug ) { + if ( 'tracking' !== $slug && 'survey' !== $slug && 'banner' !== $slug ) { return ''; } @@ -100,6 +120,8 @@ class Script_Loader extends Abstract_Module { $this->load_tracking( $handler ); } elseif ( 'survey' === $slug ) { $this->load_survey( $handler ); + } elseif ( 'banner' === $slug ) { + $this->load_banner( $handler ); } } @@ -107,10 +129,11 @@ class Script_Loader extends Abstract_Module { * Load the survey script. * * @param string $handler The script handler. + * @param array $data The survey data. * * @return void */ - public function load_survey( $handler ) { + public function load_survey( $handler, $data = array() ) { global $themeisle_sdk_max_path; $asset_file = require $themeisle_sdk_max_path . '/assets/js/build/survey/survey_deps.asset.php'; @@ -121,6 +144,77 @@ class Script_Loader extends Abstract_Module { $asset_file['version'], true ); + + $data = array_replace_recursive( $this->get_survey_common_data( $data ), $data ); + + wp_localize_script( $handler, 'tsdk_survey_data', $data ); + } + + /** + * Get the common data in the Formbrick survey format. + * + * @param array $reference_data Reference data to extrapolate common properties. + * + * @return array + */ + public function get_survey_common_data( $reference_data = array() ) { + $language = apply_filters( 'themeisle_sdk_current_lang', get_user_locale() ); + $available_languages = [ + 'de_DE' => 'de', + 'de_DE_formal' => 'de', + ]; + $lang_code = isset( $available_languages[ $language ] ) ? $available_languages[ $language ] : 'en'; + + $url_parts = wp_parse_url( apply_filters( 'themeisle_sdk_current_site_url', get_site_url() ) ); + $clean_url = str_replace( 'www.', '', $url_parts['host'] ); + if ( isset( $url_parts['path'] ) ) { + $clean_url .= $url_parts['path']; + } + $user_id = 'u_' . hash( 'crc32b', $clean_url ); + + $common_data = [ + 'userId' => $user_id, + 'apiHost' => 'https://app.formbricks.com', + 'attributes' => [ + 'language' => $lang_code, + ], + ]; + + if ( + isset( $reference_data['attributes'], $reference_data['attributes']['install_days_number'] ) + && is_int( $reference_data['attributes']['install_days_number'] ) + ) { + $common_data['attributes']['days_since_install'] = $this->install_time_category( $reference_data['attributes']['install_days_number'] ); + } + + return $common_data; + } + + /** + * Compute the install time category. + * + * @param int $install_days_number The number of days passed since installation. + * + * @return int The category. + */ + private function install_time_category( $install_days_number ) { + if ( 1 < $install_days_number && 8 > $install_days_number ) { + return 7; + } + + if ( 8 <= $install_days_number && 31 > $install_days_number ) { + return 30; + } + + if ( 30 < $install_days_number && 90 > $install_days_number ) { + return 90; + } + + if ( 90 <= $install_days_number ) { + return 91; + } + + return 0; } /** @@ -142,4 +236,47 @@ class Script_Loader extends Abstract_Module { true ); } + + /** + * Load the banner script. + * + * @param string $handler The script handler. + * + * @return void + */ + public function load_banner( $handler ) { + global $themeisle_sdk_max_path; + $asset_file = require $themeisle_sdk_max_path . '/assets/js/build/banner/banner.asset.php'; + + wp_enqueue_script( + $handler, + $this->get_sdk_uri() . 'assets/js/build/banner/banner.js', + $asset_file['dependencies'], + $asset_file['version'], + true + ); + + wp_enqueue_style( + $handler . '_style', + $this->get_sdk_uri() . 'assets/css/banner.css', + [], + $asset_file['version'] + ); + } + + /** + * Mask a secret with `*` for half of its length. + * + * @param mixed $secret The secret. + * + * @return mixed The masked secret if secret is a valid string. + */ + public function secret_masking( $secret ) { + if ( empty( $secret ) || ! is_string( $secret ) ) { + return $secret; + } + + $half_len = intval( strlen( $secret ) / 2 ); + return str_repeat( '*', $half_len ) . substr( $secret, $half_len ); + } } diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Translations.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Translations.php new file mode 100644 index 00000000..e8df6141 --- /dev/null +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Modules/Translations.php @@ -0,0 +1,247 @@ +is_from_partner( $product ) ) { + return false; + } + + if ( $product->is_wordpress_available() ) { + return false; + } + + return apply_filters( $product->get_slug() . '_sdk_enable_private_translations', false ); + } + + /** + * Load module logic. + * + * @param Product $product Product to load. + * + * @return Translations Module instance. + */ + public function load( $product ) { + + $this->product = $product; + + if ( $this->product->is_plugin() ) { + add_filter( 'pre_set_site_transient_update_plugins', [ $this, 'add_plugin_translations' ], 11 ); + } else { + add_filter( 'pre_set_site_transient_update_themes', [ $this, 'add_theme_translations' ], 11 ); + } + + add_filter( 'http_request_host_is_external', [ $this, 'allow_translations_api' ], 10, 3 ); + + return $this; + } + + /** + * Allow external downloads for the translations API. + * + * @param bool $external Whether the host is external. + * @param string $host The host being checked. + * @param string $url The URL being checked. + * + * @return bool + */ + public function allow_translations_api( $external, $host, $url ) { + return strpos( $url, self::API_URL ) === 0 ? true : $external; + } + + /** + * Get translations from API. + * + * @return bool | array + */ + private function get_api_translations() { + $translation_data = $this->get_translation_data(); + + return empty( $translation_data ) ? false : $translation_data; + } + + /** + * Get translation data from API. + * + * @return array + */ + private function get_translation_data() { + $cached = get_transient( self::CACHE_KEY ); + + if ( $cached ) { + return $cached; + } + + $response = $this->safe_get( + self::API_URL . 'translations', + array( + 'timeout' => 15, //phpcs:ignore WordPressVIPMinimum.Performance.RemoteRequestTimeout.timeout_timeout, Inherited by wp_remote_get only, for vip environment we use defaults. + 'sslverify' => false, + ) + ); + if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) { + return []; + } + + $data = json_decode( wp_remote_retrieve_body( $response ) ); + + if ( ! is_array( $data ) ) { + return []; + } + + set_transient( self::CACHE_KEY, $data, 12 * HOUR_IN_SECONDS ); + + return $data; + } + + /** + * Add translations to the transient data. + * + * @param array $_transient_data incoming transient data. + * @param string $type plugins or themes. + * + * @return array + */ + public function add_translations( $_transient_data, $type = 'plugins' ) { + $translations = $this->get_api_translations(); + + if ( ! is_array( $translations ) ) { + return $_transient_data; + } + + if ( ! isset( $_transient_data->translations ) ) { + return $_transient_data; + } + + if ( ! in_array( $type, [ 'plugins', 'themes' ] ) ) { + return $_transient_data; + } + + $installed_translations = wp_get_installed_translations( $type ); + + foreach ( $translations as $translation ) { + $translation = (array) $translation; + + + if ( ! $this->is_valid_translation( $translation, $type ) ) { + continue; + } + + $latest_translation = strtotime( $translation['updated'] ); + + if ( ! is_int( $latest_translation ) ) { + continue; + } + + $existing = (int) get_option( $this->get_translation_option_key( $translation ) ); + $has_translation = isset( $installed_translations[ $translation['slug'] ][ $translation['language'] ] ); + + // If we already have the latest translation, skip. + if ( $existing >= $latest_translation && $has_translation ) { + continue; + } + + $_transient_data->translations[] = $translation; + + update_option( $this->get_translation_option_key( $translation ), $latest_translation ); + } + + return $_transient_data; + } + + /** + * Add theme translations to the transient. + * + * @param array $_transient_data incoming transient data. + * + * @return array + */ + public function add_theme_translations( $_transient_data ) { + return $this->add_translations( $_transient_data, 'themes' ); + } + + + /** + * Add plugin translations to the transient. + * + * @param array $_transient_data The transient data. + * + * @return array + */ + public function add_plugin_translations( $_transient_data ) { + return $this->add_translations( $_transient_data ); + } + + /** + * Get the option key for storing translations. + * + * @param array $translation the translation data from the API. + * + * @return string + */ + private function get_translation_option_key( $translation ) { + return $translation['slug'] . '_translation_' . $translation['language']; + } + + /** + * Check if a translation is valid and applies for the current site. + * + * @param array $translation The translation data. + * + * @return bool + */ + private function is_valid_translation( $translation, $type = 'plugins' ) { + if ( ! isset( $translation['slug'] ) || $translation['slug'] !== $this->product->get_slug() ) { + return false; + } + + $locales = apply_filters( $type . '_update_check_locales', array_values( get_available_languages() ) ); + + if ( ! is_array( $locales ) ) { + return false; + } + $locales = array_unique( $locales ); + + if ( ! isset( $translation['language'], $translation['updated'] ) ) { + return false; + } + + if ( ! in_array( $translation['language'], $locales, true ) ) { + return false; + } + + return true; + } +} diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Product.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Product.php index 041e69b8..fa6518da 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Product.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/src/Product.php @@ -346,7 +346,17 @@ class Product { * @return string Friendly name. */ public function get_friendly_name() { - $name = apply_filters( $this->get_key() . '_friendly_name', trim( str_replace( 'Lite', '', $this->get_name() ) ) ); + $name = trim( str_replace( 'Lite', '', $this->get_name() ) ); + if ( defined( 'OTTER_BLOCKS_BASEFILE' ) && OTTER_BLOCKS_BASEFILE === $this->basefile ) { + $name = 'Otter Blocks'; + } + if ( defined( 'OPTML_BASEFILE' ) && OPTML_BASEFILE === $this->basefile ) { + $name = 'Optimole'; + } + if ( defined( 'WPMM_FILE' ) && WPMM_FILE === $this->basefile ) { + $name = 'LightStart'; + } + $name = apply_filters( $this->get_key() . '_friendly_name', $name ); $name = rtrim( $name, '- ()' ); return $name; diff --git a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/start.php b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/start.php index 84235d04..32ccd24b 100644 --- a/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/start.php +++ b/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/start.php @@ -31,6 +31,7 @@ $files_to_load = [ $themeisle_library_path . '/src/Modules/Notification.php', $themeisle_library_path . '/src/Modules/Logger.php', $themeisle_library_path . '/src/Modules/Translate.php', + $themeisle_library_path . '/src/Modules/Translations.php', $themeisle_library_path . '/src/Modules/Review.php', $themeisle_library_path . '/src/Modules/Recommendation.php', $themeisle_library_path . '/src/Modules/Promotions.php', diff --git a/wp-content/plugins/menu-icons/vendor/composer/InstalledVersions.php b/wp-content/plugins/menu-icons/vendor/composer/InstalledVersions.php index 51e734a7..2052022f 100644 --- a/wp-content/plugins/menu-icons/vendor/composer/InstalledVersions.php +++ b/wp-content/plugins/menu-icons/vendor/composer/InstalledVersions.php @@ -26,12 +26,23 @@ use Composer\Semver\VersionParser; */ class InstalledVersions { + /** + * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to + * @internal + */ + private static $selfDir = null; + /** * @var mixed[]|null * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array}|array{}|null */ private static $installed; + /** + * @var bool + */ + private static $installedIsLocalDir; + /** * @var bool|null */ @@ -309,6 +320,24 @@ class InstalledVersions { self::$installed = $data; self::$installedByVendor = array(); + + // when using reload, we disable the duplicate protection to ensure that self::$installed data is + // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, + // so we have to assume it does not, and that may result in duplicate data being returned when listing + // all installed packages for example + self::$installedIsLocalDir = false; + } + + /** + * @return string + */ + private static function getSelfDir() + { + if (self::$selfDir === null) { + self::$selfDir = strtr(__DIR__, '\\', '/'); + } + + return self::$selfDir; } /** @@ -322,19 +351,27 @@ class InstalledVersions } $installed = array(); + $copiedLocalDir = false; if (self::$canGetVendors) { + $selfDir = self::getSelfDir(); foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { + $vendorDir = strtr($vendorDir, '\\', '/'); if (isset(self::$installedByVendor[$vendorDir])) { $installed[] = self::$installedByVendor[$vendorDir]; } elseif (is_file($vendorDir.'/composer/installed.php')) { /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ $required = require $vendorDir.'/composer/installed.php'; - $installed[] = self::$installedByVendor[$vendorDir] = $required; - if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { - self::$installed = $installed[count($installed) - 1]; + self::$installedByVendor[$vendorDir] = $required; + $installed[] = $required; + if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { + self::$installed = $required; + self::$installedIsLocalDir = true; } } + if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { + $copiedLocalDir = true; + } } } @@ -350,7 +387,7 @@ class InstalledVersions } } - if (self::$installed !== array()) { + if (self::$installed !== array() && !$copiedLocalDir) { $installed[] = self::$installed; } diff --git a/wp-content/plugins/menu-icons/vendor/composer/installed.json b/wp-content/plugins/menu-icons/vendor/composer/installed.json index 46ccc0fc..d01a70a2 100644 --- a/wp-content/plugins/menu-icons/vendor/composer/installed.json +++ b/wp-content/plugins/menu-icons/vendor/composer/installed.json @@ -133,23 +133,24 @@ }, { "name": "codeinwp/themeisle-sdk", - "version": "3.3.25", - "version_normalized": "3.3.25.0", + "version": "3.3.44", + "version_normalized": "3.3.44.0", "source": { "type": "git", "url": "https://github.com/Codeinwp/themeisle-sdk.git", - "reference": "29b7c81f8ccd039f49d62ef7427a4cc06369becc" + "reference": "fed444b52ebf1f689ec2434df177926bf8f238c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/29b7c81f8ccd039f49d62ef7427a4cc06369becc", - "reference": "29b7c81f8ccd039f49d62ef7427a4cc06369becc", + "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/fed444b52ebf1f689ec2434df177926bf8f238c4", + "reference": "fed444b52ebf1f689ec2434df177926bf8f238c4", "shasum": "" }, "require-dev": { - "codeinwp/phpcs-ruleset": "dev-main" + "codeinwp/phpcs-ruleset": "dev-main", + "yoast/phpunit-polyfills": "^2.0" }, - "time": "2024-07-08T13:49:14+00:00", + "time": "2025-02-18T21:31:30+00:00", "type": "library", "installation-source": "dist", "notification-url": "https://packagist.org/downloads/", @@ -170,7 +171,7 @@ ], "support": { "issues": "https://github.com/Codeinwp/themeisle-sdk/issues", - "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.25" + "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.44" }, "install-path": "../codeinwp/themeisle-sdk" }, diff --git a/wp-content/plugins/menu-icons/vendor/composer/installed.php b/wp-content/plugins/menu-icons/vendor/composer/installed.php index 035beb0c..6ff6887a 100644 --- a/wp-content/plugins/menu-icons/vendor/composer/installed.php +++ b/wp-content/plugins/menu-icons/vendor/composer/installed.php @@ -1,9 +1,9 @@ array( 'name' => 'codeinwp/wp-menu-icons', - 'pretty_version' => 'v0.13.15', - 'version' => '0.13.15.0', - 'reference' => '6f28bd69233def87a6289b95d36c9b9b5500cefb', + 'pretty_version' => 'v0.13.17', + 'version' => '0.13.17.0', + 'reference' => '7e30cf90509868e023d4c910c1f75be9b01b91a2', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -40,18 +40,18 @@ 'dev_requirement' => false, ), 'codeinwp/themeisle-sdk' => array( - 'pretty_version' => '3.3.25', - 'version' => '3.3.25.0', - 'reference' => '29b7c81f8ccd039f49d62ef7427a4cc06369becc', + 'pretty_version' => '3.3.44', + 'version' => '3.3.44.0', + 'reference' => 'fed444b52ebf1f689ec2434df177926bf8f238c4', 'type' => 'library', 'install_path' => __DIR__ . '/../codeinwp/themeisle-sdk', 'aliases' => array(), 'dev_requirement' => false, ), 'codeinwp/wp-menu-icons' => array( - 'pretty_version' => 'v0.13.15', - 'version' => '0.13.15.0', - 'reference' => '6f28bd69233def87a6289b95d36c9b9b5500cefb', + 'pretty_version' => 'v0.13.17', + 'version' => '0.13.17.0', + 'reference' => '7e30cf90509868e023d4c910c1f75be9b01b91a2', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(),