diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index 82b15fc..34eff07 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -21,7 +21,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 7.4 + php-version: 8.2 coverage: none tools: composer, cs2pr diff --git a/README.md b/README.md index acb5f7f..e1c73c4 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ **Tags:** schema markup, rich snippets, wordpress seo, structured data, google search **Requires at least:** 3.7 **Tested up to:** 6.8 -**Stable tag:** 1.7.4 +**Stable tag:** 1.7.5 **Requires PHP:** 7.4 **License:** GPLv2 or later **License URI:** http://www.gnu.org/licenses/gpl-2.0.html @@ -83,6 +83,10 @@ No, the plugin provides an easy-to-use interface where you can add schema markup ## Changelog ## +### 1.7.5 ### +- Improvement: Compatibility with PHP version 8.3. +- Fixed: Resolved undefined array key warnings in plugin. + ### 1.7.4 ### - Fixed: WooCommerce product editor compatibility - Added exclusions for WooCommerce post types. diff --git a/admin/bsf-analytics/changelog.txt b/admin/bsf-analytics/changelog.txt index fbbbd64..93ced27 100644 --- a/admin/bsf-analytics/changelog.txt +++ b/admin/bsf-analytics/changelog.txt @@ -1,7 +1,14 @@ +v1.1.16 - 15-July-2025 +- Improvement: Added `SureRank` slug to UTM analytics. + +v1.1.15 - 1-July-2025 +- Improvement: Added `Ultimate_VC_Addons` slug to UTM analytics. + v1.1.14 - 6-May-2025 - New: Introduced a key 'hide_optin_checkbox' to hide checkbox from Settings > General. - Improvement: Single optin notice for all bsf products. - Improvement: Introduced delay of 7 days for next optin message if user has reqested request from product. + v1.1.13 - 17-April-2025 - Improvement: Ensured unique id for label's `for` attribute in deactivation survey fields by prefixing them with product slugs. - Improvement: Prevented deactivation survey from triggering when switching from a child theme to its parent. diff --git a/admin/bsf-analytics/modules/utm-analytics.php b/admin/bsf-analytics/modules/utm-analytics.php index 7a3c10d..a8540bd 100644 --- a/admin/bsf-analytics/modules/utm-analytics.php +++ b/admin/bsf-analytics/modules/utm-analytics.php @@ -46,14 +46,16 @@ class BSF_UTM_Analytics { 'surecart', 'sureforms', 'suremails', + 'surerank', 'suretriggers', 'ultimate-addons-for-beaver-builder-lite', 'ultimate-addons-for-gutenberg', 'ultimate-elementor', + 'Ultimate_VC_Addons', 'variation-swatches-woo', 'woo-cart-abandonment-recovery', 'wp-schema-pro', - 'zipwp', + 'zipwp' ]; diff --git a/admin/bsf-analytics/version.json b/admin/bsf-analytics/version.json index 28d5bc4..1d77d38 100644 --- a/admin/bsf-analytics/version.json +++ b/admin/bsf-analytics/version.json @@ -1,4 +1,4 @@ { - "bsf-analytics-ver": "1.1.14" + "bsf-analytics-ver": "1.1.16" } \ No newline at end of file diff --git a/admin/index.php b/admin/index.php index 24759b5..7258714 100644 --- a/admin/index.php +++ b/admin/index.php @@ -182,7 +182,7 @@ function rich_snippet_dashboard() { - + @@ -370,7 +370,7 @@ function rich_snippet_dashboard() { - + @@ -474,11 +474,11 @@ function rich_snippet_dashboard() { - + - + diff --git a/composer.json b/composer.json index a7c1e6f..096f318 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,8 @@ "php-stubs/generator": "^0.8.4", "phpunit/phpunit": "^9.5", "wp-cli/wp-cli": "^2.11", - "squizlabs/php_codesniffer": "^3.10" + "squizlabs/php_codesniffer": "^3.10", + "pheromone/phpcs-security-audit": "^2.0" }, "extra": { "installer-paths": { @@ -46,7 +47,7 @@ }, "require": { "wp-cli/wp-cli-bundle": "^2.11", - "php": "^7.4.33", + "php": "^7.4.33 || ^8.0 || ^8.1 || ^8.2 || ^8.3", "composer/composer": "^2.7", "brainstormforce/nps-survey": "^1", "composer/installers": "*", diff --git a/composer.lock b/composer.lock index 2e1fa5e..0479cdb 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "abe8b7ed14e57806bde418c601321695", + "content-hash": "31af6856a87bd2c80e90c0ab66b24329", "packages": [ { "name": "brainstormforce/bsf-analytics", - "version": "1.1.14", + "version": "1.1.16", "source": { "type": "git", "url": "git@github.com:brainstormforce/bsf-analytics.git", - "reference": "01b374ecb8a76a20c3c5839f38de790319e8d1d7" + "reference": "82f94cf38b4dfef645e30595f060d66ff4098618" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brainstormforce/bsf-analytics/zipball/01b374ecb8a76a20c3c5839f38de790319e8d1d7", - "reference": "01b374ecb8a76a20c3c5839f38de790319e8d1d7", + "url": "https://api.github.com/repos/brainstormforce/bsf-analytics/zipball/82f94cf38b4dfef645e30595f060d66ff4098618", + "reference": "82f94cf38b4dfef645e30595f060d66ff4098618", "shasum": "" }, "require-dev": { @@ -51,23 +51,23 @@ }, "description": "Library to gather non sensitive analytics data to enhance bsf products.", "support": { - "source": "https://github.com/brainstormforce/bsf-analytics/tree/1.1.14", + "source": "https://github.com/brainstormforce/bsf-analytics/tree/1.1.16", "issues": "https://github.com/brainstormforce/bsf-analytics/issues" }, - "time": "2025-05-06T09:44:13+00:00" + "time": "2025-07-15T10:52:37+00:00" }, { "name": "brainstormforce/nps-survey", - "version": "1.0.11", + "version": "1.0.12", "source": { "type": "git", "url": "git@github.com:brainstormforce/nps-survey.git", - "reference": "bfb5d127550281c3a788d0d05abf14cbc0d329ef" + "reference": "efaf3f92e9e17418014b7e3de5822811da82eebb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brainstormforce/nps-survey/zipball/bfb5d127550281c3a788d0d05abf14cbc0d329ef", - "reference": "bfb5d127550281c3a788d0d05abf14cbc0d329ef", + "url": "https://api.github.com/repos/brainstormforce/nps-survey/zipball/efaf3f92e9e17418014b7e3de5822811da82eebb", + "reference": "efaf3f92e9e17418014b7e3de5822811da82eebb", "shasum": "" }, "require-dev": { @@ -111,10 +111,10 @@ }, "description": "NPS Survey Plugin", "support": { - "source": "https://github.com/brainstormforce/nps-survey/tree/1.0.11", + "source": "https://github.com/brainstormforce/nps-survey/tree/1.0.12", "issues": "https://github.com/brainstormforce/nps-survey/issues" }, - "time": "2025-06-27T06:00:28+00:00" + "time": "2025-07-16T09:36:38+00:00" }, { "name": "composer/ca-bundle", @@ -267,16 +267,16 @@ }, { "name": "composer/composer", - "version": "2.8.9", + "version": "2.8.10", "source": { "type": "git", "url": "https://github.com/composer/composer.git", - "reference": "b4e6bff2db7ce756ddb77ecee958a0f41f42bd9d" + "reference": "53834f587d7ab2527eb237459d7b94d1fb9d4c5a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/composer/zipball/b4e6bff2db7ce756ddb77ecee958a0f41f42bd9d", - "reference": "b4e6bff2db7ce756ddb77ecee958a0f41f42bd9d", + "url": "https://api.github.com/repos/composer/composer/zipball/53834f587d7ab2527eb237459d7b94d1fb9d4c5a", + "reference": "53834f587d7ab2527eb237459d7b94d1fb9d4c5a", "shasum": "" }, "require": { @@ -361,7 +361,7 @@ "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/composer/issues", "security": "https://github.com/composer/composer/security/policy", - "source": "https://github.com/composer/composer/tree/2.8.9" + "source": "https://github.com/composer/composer/tree/2.8.10" }, "funding": [ { @@ -377,7 +377,7 @@ "type": "tidelift" } ], - "time": "2025-05-13T12:01:37+00:00" + "time": "2025-07-10T17:08:33+00:00" }, { "name": "composer/installers", @@ -1456,30 +1456,30 @@ }, { "name": "psr/log", - "version": "1.1.4", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11" + "reference": "ef29f6d262798707a9edd554e2b82517ef3a9376" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11", + "url": "https://api.github.com/repos/php-fig/log/zipball/ef29f6d262798707a9edd554e2b82517ef3a9376", + "reference": "ef29f6d262798707a9edd554e2b82517ef3a9376", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": ">=8.0.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { "psr-4": { - "Psr\\Log\\": "Psr/Log/" + "Psr\\Log\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -1500,9 +1500,9 @@ "psr-3" ], "support": { - "source": "https://github.com/php-fig/log/tree/1.1.4" + "source": "https://github.com/php-fig/log/tree/2.0.0" }, - "time": "2021-05-03T11:20:27+00:00" + "time": "2021-07-14T16:41:46+00:00" }, { "name": "react/promise", @@ -1940,20 +1940,20 @@ }, { "name": "symfony/deprecation-contracts", - "version": "v2.5.4", + "version": "v3.6.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "605389f2a7e5625f273b53960dc46aeaf9c62918" + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/605389f2a7e5625f273b53960dc46aeaf9c62918", - "reference": "605389f2a7e5625f273b53960dc46aeaf9c62918", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62", + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.1" }, "type": "library", "extra": { @@ -1962,7 +1962,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "2.5-dev" + "dev-main": "3.6-dev" } }, "autoload": { @@ -1987,7 +1987,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.4" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.6.0" }, "funding": [ { @@ -2003,7 +2003,7 @@ "type": "tidelift" } ], - "time": "2024-09-25T14:11:13+00:00" + "time": "2024-09-25T14:21:43+00:00" }, { "name": "symfony/event-dispatcher", @@ -2171,26 +2171,25 @@ }, { "name": "symfony/filesystem", - "version": "v5.4.45", + "version": "v7.3.2", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "57c8294ed37d4a055b77057827c67f9558c95c54" + "reference": "edcbb768a186b5c3f25d0643159a787d3e63b7fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/57c8294ed37d4a055b77057827c67f9558c95c54", - "reference": "57c8294ed37d4a055b77057827c67f9558c95c54", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/edcbb768a186b5c3f25d0643159a787d3e63b7fd", + "reference": "edcbb768a186b5c3f25d0643159a787d3e63b7fd", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.2", "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-mbstring": "~1.8", - "symfony/polyfill-php80": "^1.16" + "symfony/polyfill-mbstring": "~1.8" }, "require-dev": { - "symfony/process": "^5.4|^6.4" + "symfony/process": "^6.4|^7.0" }, "type": "library", "autoload": { @@ -2218,7 +2217,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v5.4.45" + "source": "https://github.com/symfony/filesystem/tree/v7.3.2" }, "funding": [ { @@ -2229,31 +2228,36 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-10-22T13:05:35+00:00" + "time": "2025-07-07T08:17:47+00:00" }, { "name": "symfony/finder", - "version": "v5.4.45", + "version": "v7.3.2", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "63741784cd7b9967975eec610b256eed3ede022b" + "reference": "2a6614966ba1074fa93dae0bc804227422df4dfe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/63741784cd7b9967975eec610b256eed3ede022b", - "reference": "63741784cd7b9967975eec610b256eed3ede022b", + "url": "https://api.github.com/repos/symfony/finder/zipball/2a6614966ba1074fa93dae0bc804227422df4dfe", + "reference": "2a6614966ba1074fa93dae0bc804227422df4dfe", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.2" + }, + "require-dev": { + "symfony/filesystem": "^6.4|^7.0" }, "type": "library", "autoload": { @@ -2281,7 +2285,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.4.45" + "source": "https://github.com/symfony/finder/tree/v7.3.2" }, "funding": [ { @@ -2292,12 +2296,16 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-28T13:32:08+00:00" + "time": "2025-07-15T13:41:35+00:00" }, { "name": "symfony/polyfill-ctype", @@ -2935,34 +2943,34 @@ }, { "name": "symfony/string", - "version": "v5.4.47", + "version": "v6.4.24", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "136ca7d72f72b599f2631aca474a4f8e26719799" + "reference": "f0ce0bd36a3accb4a225435be077b4b4875587f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/136ca7d72f72b599f2631aca474a4f8e26719799", - "reference": "136ca7d72f72b599f2631aca474a4f8e26719799", + "url": "https://api.github.com/repos/symfony/string/zipball/f0ce0bd36a3accb4a225435be077b4b4875587f4", + "reference": "f0ce0bd36a3accb4a225435be077b4b4875587f4", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.1", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-intl-grapheme": "~1.0", "symfony/polyfill-intl-normalizer": "~1.0", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php80": "~1.15" + "symfony/polyfill-mbstring": "~1.0" }, "conflict": { - "symfony/translation-contracts": ">=3.0" + "symfony/translation-contracts": "<2.5" }, "require-dev": { - "symfony/error-handler": "^4.4|^5.0|^6.0", - "symfony/http-client": "^4.4|^5.0|^6.0", - "symfony/translation-contracts": "^1.1|^2", - "symfony/var-exporter": "^4.4|^5.0|^6.0" + "symfony/error-handler": "^5.4|^6.0|^7.0", + "symfony/http-client": "^5.4|^6.0|^7.0", + "symfony/intl": "^6.2|^7.0", + "symfony/translation-contracts": "^2.5|^3.0", + "symfony/var-exporter": "^5.4|^6.0|^7.0" }, "type": "library", "autoload": { @@ -3001,7 +3009,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v5.4.47" + "source": "https://github.com/symfony/string/tree/v6.4.24" }, "funding": [ { @@ -3012,12 +3020,16 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-11-10T20:33:58+00:00" + "time": "2025-07-10T08:14:14+00:00" }, { "name": "symfony/translation", @@ -3408,16 +3420,16 @@ }, { "name": "wp-cli/core-command", - "version": "v2.1.20", + "version": "v2.1.21", "source": { "type": "git", "url": "https://github.com/wp-cli/core-command.git", - "reference": "83e4692784a815bb7f5df10b72204f237b5224b9" + "reference": "f157fb37dae1d13fe7318452f932917161e83e53" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/core-command/zipball/83e4692784a815bb7f5df10b72204f237b5224b9", - "reference": "83e4692784a815bb7f5df10b72204f237b5224b9", + "url": "https://api.github.com/repos/wp-cli/core-command/zipball/f157fb37dae1d13fe7318452f932917161e83e53", + "reference": "f157fb37dae1d13fe7318452f932917161e83e53", "shasum": "" }, "require": { @@ -3429,7 +3441,7 @@ "wp-cli/db-command": "^1.3 || ^2", "wp-cli/entity-command": "^1.3 || ^2", "wp-cli/extension-command": "^1.2 || ^2", - "wp-cli/wp-cli-tests": "^4" + "wp-cli/wp-cli-tests": "^5" }, "type": "wp-cli-package", "extra": { @@ -3473,9 +3485,9 @@ "homepage": "https://github.com/wp-cli/core-command", "support": { "issues": "https://github.com/wp-cli/core-command/issues", - "source": "https://github.com/wp-cli/core-command/tree/v2.1.20" + "source": "https://github.com/wp-cli/core-command/tree/v2.1.21" }, - "time": "2025-04-16T11:23:00+00:00" + "time": "2025-07-08T17:31:39+00:00" }, { "name": "wp-cli/cron-command", @@ -4274,16 +4286,16 @@ }, { "name": "wp-cli/language-command", - "version": "v2.0.23", + "version": "v2.0.24", "source": { "type": "git", "url": "https://github.com/wp-cli/language-command.git", - "reference": "7221cc39d2b14fd39e55aa7884889f26eec2f822" + "reference": "1f1ca0ce3ee6cc46edfe06ee093cf3a57a131a18" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/language-command/zipball/7221cc39d2b14fd39e55aa7884889f26eec2f822", - "reference": "7221cc39d2b14fd39e55aa7884889f26eec2f822", + "url": "https://api.github.com/repos/wp-cli/language-command/zipball/1f1ca0ce3ee6cc46edfe06ee093cf3a57a131a18", + "reference": "1f1ca0ce3ee6cc46edfe06ee093cf3a57a131a18", "shasum": "" }, "require": { @@ -4293,7 +4305,7 @@ "wp-cli/db-command": "^1.3 || ^2", "wp-cli/entity-command": "^1.3 || ^2", "wp-cli/extension-command": "^1.2 || ^2", - "wp-cli/wp-cli-tests": "^4" + "wp-cli/wp-cli-tests": "^5" }, "type": "wp-cli-package", "extra": { @@ -4348,9 +4360,9 @@ "homepage": "https://github.com/wp-cli/language-command", "support": { "issues": "https://github.com/wp-cli/language-command/issues", - "source": "https://github.com/wp-cli/language-command/tree/v2.0.23" + "source": "https://github.com/wp-cli/language-command/tree/v2.0.24" }, - "time": "2025-04-10T11:09:04+00:00" + "time": "2025-07-08T17:50:14+00:00" }, { "name": "wp-cli/maintenance-mode-command", @@ -5596,30 +5608,30 @@ }, { "name": "doctrine/instantiator", - "version": "1.5.0", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", - "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^8.1" }, "require-dev": { - "doctrine/coding-standard": "^9 || ^11", + "doctrine/coding-standard": "^11", "ext-pdo": "*", "ext-phar": "*", - "phpbench/phpbench": "^0.16 || ^1", - "phpstan/phpstan": "^1.4", - "phpstan/phpstan-phpunit": "^1", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.30 || ^5.4" + "phpbench/phpbench": "^1.2", + "phpstan/phpstan": "^1.9.4", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.5.27", + "vimeo/psalm": "^5.4" }, "type": "library", "autoload": { @@ -5646,7 +5658,7 @@ ], "support": { "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.5.0" + "source": "https://github.com/doctrine/instantiator/tree/2.0.0" }, "funding": [ { @@ -5662,20 +5674,20 @@ "type": "tidelift" } ], - "time": "2022-12-30T00:15:36+00:00" + "time": "2022-12-30T00:23:10+00:00" }, { "name": "myclabs/deep-copy", - "version": "1.13.1", + "version": "1.13.4", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "1720ddd719e16cf0db4eb1c6eca108031636d46c" + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/1720ddd719e16cf0db4eb1c6eca108031636d46c", - "reference": "1720ddd719e16cf0db4eb1c6eca108031636d46c", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a", "shasum": "" }, "require": { @@ -5714,7 +5726,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.13.1" + "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4" }, "funding": [ { @@ -5722,20 +5734,20 @@ "type": "tidelift" } ], - "time": "2025-04-29T12:36:36+00:00" + "time": "2025-08-01T08:46:24+00:00" }, { "name": "nikic/php-parser", - "version": "v5.5.0", + "version": "v5.6.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "ae59794362fe85e051a58ad36b289443f57be7a9" + "reference": "221b0d0fdf1369c71047ad1d18bb5880017bbc56" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/ae59794362fe85e051a58ad36b289443f57be7a9", - "reference": "ae59794362fe85e051a58ad36b289443f57be7a9", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/221b0d0fdf1369c71047ad1d18bb5880017bbc56", + "reference": "221b0d0fdf1369c71047ad1d18bb5880017bbc56", "shasum": "" }, "require": { @@ -5778,9 +5790,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.5.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.0" }, - "time": "2025-05-31T08:24:38+00:00" + "time": "2025-07-27T20:03:57+00:00" }, { "name": "phar-io/manifest", @@ -5900,6 +5912,47 @@ }, "time": "2022-02-21T01:04:05+00:00" }, + { + "name": "pheromone/phpcs-security-audit", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/FloeDesignTechnologies/phpcs-security-audit.git", + "reference": "68a6c53a57156a5efb2073b1eb3f2d79a46c9dc2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/FloeDesignTechnologies/phpcs-security-audit/zipball/68a6c53a57156a5efb2073b1eb3f2d79a46c9dc2", + "reference": "68a6c53a57156a5efb2073b1eb3f2d79a46c9dc2", + "shasum": "" + }, + "require": { + "php": ">=5.4", + "squizlabs/php_codesniffer": ">3.0" + }, + "type": "phpcodesniffer-standard", + "autoload": { + "psr-4": { + "PHPCS_SecurityAudit\\": "Security/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "GPL-3.0-or-later" + ], + "authors": [ + { + "name": "Jonathan Marcil", + "homepage": "https://twitter.com/jonathanmarcil" + } + ], + "description": "phpcs-security-audit is a set of PHP_CodeSniffer rules that finds vulnerabilities and weaknesses related to security in PHP code", + "support": { + "issues": "https://github.com/FloeDesignTechnologies/phpcs-security-audit/issues", + "source": "https://github.com/FloeDesignTechnologies/phpcs-security-audit/tree/master" + }, + "time": "2019-08-05T19:34:55+00:00" + }, { "name": "php-stubs/generator", "version": "v0.8.5", @@ -5959,16 +6012,16 @@ }, { "name": "php-stubs/wordpress-stubs", - "version": "v6.8.1", + "version": "v6.8.2", "source": { "type": "git", "url": "https://github.com/php-stubs/wordpress-stubs.git", - "reference": "92e444847d94f7c30f88c60004648f507688acd5" + "reference": "9c8e22e437463197c1ec0d5eaa9ddd4a0eb6d7f8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/92e444847d94f7c30f88c60004648f507688acd5", - "reference": "92e444847d94f7c30f88c60004648f507688acd5", + "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/9c8e22e437463197c1ec0d5eaa9ddd4a0eb6d7f8", + "reference": "9c8e22e437463197c1ec0d5eaa9ddd4a0eb6d7f8", "shasum": "" }, "conflict": { @@ -5976,7 +6029,7 @@ }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^1.0", - "nikic/php-parser": "^5.4", + "nikic/php-parser": "^5.5", "php": "^7.4 || ^8.0", "php-stubs/generator": "^0.8.3", "phpdocumentor/reflection-docblock": "^5.4.1", @@ -6004,9 +6057,9 @@ ], "support": { "issues": "https://github.com/php-stubs/wordpress-stubs/issues", - "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.8.1" + "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.8.2" }, - "time": "2025-05-02T12:33:34+00:00" + "time": "2025-07-16T06:41:00+00:00" }, { "name": "phpcompatibility/php-compatibility", @@ -6072,16 +6125,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.12.27", + "version": "1.12.28", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "3a6e423c076ab39dfedc307e2ac627ef579db162" + "reference": "fcf8b71aeab4e1a1131d1783cef97b23a51b87a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/3a6e423c076ab39dfedc307e2ac627ef579db162", - "reference": "3a6e423c076ab39dfedc307e2ac627ef579db162", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/fcf8b71aeab4e1a1131d1783cef97b23a51b87a9", + "reference": "fcf8b71aeab4e1a1131d1783cef97b23a51b87a9", "shasum": "" }, "require": { @@ -6126,7 +6179,7 @@ "type": "github" } ], - "time": "2025-05-21T20:51:45+00:00" + "time": "2025-07-17T17:15:39+00:00" }, { "name": "phpunit/php-code-coverage", @@ -6449,16 +6502,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.6.23", + "version": "9.6.24", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "43d2cb18d0675c38bd44982a5d1d88f6d53d8d95" + "reference": "ea49afa29aeea25ea7bf9de9fdd7cab163cc0701" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/43d2cb18d0675c38bd44982a5d1d88f6d53d8d95", - "reference": "43d2cb18d0675c38bd44982a5d1d88f6d53d8d95", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ea49afa29aeea25ea7bf9de9fdd7cab163cc0701", + "reference": "ea49afa29aeea25ea7bf9de9fdd7cab163cc0701", "shasum": "" }, "require": { @@ -6469,7 +6522,7 @@ "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.13.1", + "myclabs/deep-copy": "^1.13.4", "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", "php": ">=7.3", @@ -6480,11 +6533,11 @@ "phpunit/php-timer": "^5.0.3", "sebastian/cli-parser": "^1.0.2", "sebastian/code-unit": "^1.0.8", - "sebastian/comparator": "^4.0.8", + "sebastian/comparator": "^4.0.9", "sebastian/diff": "^4.0.6", "sebastian/environment": "^5.1.5", "sebastian/exporter": "^4.0.6", - "sebastian/global-state": "^5.0.7", + "sebastian/global-state": "^5.0.8", "sebastian/object-enumerator": "^4.0.4", "sebastian/resource-operations": "^3.0.4", "sebastian/type": "^3.2.1", @@ -6532,7 +6585,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.23" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.24" }, "funding": [ { @@ -6556,7 +6609,7 @@ "type": "tidelift" } ], - "time": "2025-05-02T06:40:34+00:00" + "time": "2025-08-10T08:32:42+00:00" }, { "name": "sebastian/cli-parser", @@ -6727,16 +6780,16 @@ }, { "name": "sebastian/comparator", - "version": "4.0.8", + "version": "4.0.9", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a" + "reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/67a2df3a62639eab2cc5906065e9805d4fd5dfc5", + "reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5", "shasum": "" }, "require": { @@ -6789,15 +6842,27 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.9" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/comparator", + "type": "tidelift" } ], - "time": "2022-09-14T12:41:17+00:00" + "time": "2025-08-10T06:51:50+00:00" }, { "name": "sebastian/complexity", @@ -7064,16 +7129,16 @@ }, { "name": "sebastian/global-state", - "version": "5.0.7", + "version": "5.0.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9" + "reference": "b6781316bdcd28260904e7cc18ec983d0d2ef4f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", - "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/b6781316bdcd28260904e7cc18ec983d0d2ef4f6", + "reference": "b6781316bdcd28260904e7cc18ec983d0d2ef4f6", "shasum": "" }, "require": { @@ -7116,15 +7181,27 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.7" + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.8" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/global-state", + "type": "tidelift" } ], - "time": "2024-03-02T06:35:11+00:00" + "time": "2025-08-10T07:10:35+00:00" }, { "name": "sebastian/lines-of-code", @@ -7297,16 +7374,16 @@ }, { "name": "sebastian/recursion-context", - "version": "4.0.5", + "version": "4.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1" + "reference": "539c6691e0623af6dc6f9c20384c120f963465a0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", - "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/539c6691e0623af6dc6f9c20384c120f963465a0", + "reference": "539c6691e0623af6dc6f9c20384c120f963465a0", "shasum": "" }, "require": { @@ -7348,15 +7425,27 @@ "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.6" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/recursion-context", + "type": "tidelift" } ], - "time": "2023-02-03T06:07:39+00:00" + "time": "2025-08-10T06:57:39+00:00" }, { "name": "sebastian/resource-operations", @@ -7776,7 +7865,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^7.4.33" + "php": "^7.4.33 || ^8.0 || ^8.1 || ^8.2 || ^8.3" }, "platform-dev": {}, "plugin-api-version": "2.6.0" diff --git a/index.php b/index.php index 2832403..39d45fb 100644 --- a/index.php +++ b/index.php @@ -5,7 +5,7 @@ * Author: Brainstorm Force * Author URI: https://www.brainstormforce.com * Description: Welcome to the Schema - All In One Schema Rich Snippets! You can now easily add schema markup on various * pages and posts of your website. Implement schema types such as Review, Events, Recipes, Article, Products, Services * *etc. - * Version: 1.7.4 + * Version: 1.7.5 * Text Domain: rich-snippets * License: GPL2 * @@ -70,7 +70,7 @@ public function define_constants() { define( 'AIOSRS_PRO_BASE', plugin_basename( AIOSRS_PRO_FILE ) ); define( 'AIOSRS_PRO_DIR', plugin_dir_path( AIOSRS_PRO_FILE ) ); define( 'AIOSRS_PRO_URI', plugins_url( '/', AIOSRS_PRO_FILE ) ); - define( 'AIOSRS_PRO_VER', '1.7.4' ); + define( 'AIOSRS_PRO_VER', '1.7.5' ); } /** @@ -453,7 +453,7 @@ public function aiosrs_maybe_migrate_analytics_tracking() { 'id' => 'deactivation-survey-all-in-one-schemaorg-rich-snippets', // 'deactivation-survey-' 'popup_logo' => esc_url( plugins_url( 'admin/images/icon_32.png', __FILE__ ) ), 'plugin_slug' => 'all-in-one-schemaorg-rich-snippets', - 'plugin_version' => '1.7.4', + 'plugin_version' => '1.7.5', 'popup_title' => 'Quick Feedback', 'support_url' => 'https://wpschema.com/contact/', 'popup_description' => 'If you have a moment, please share why you are deactivating All In One Schema Rich Snippets:', diff --git a/languages/all-in-one-schemaorg-rich-snippets.pot b/languages/all-in-one-schemaorg-rich-snippets.pot index 097a568..9264185 100644 --- a/languages/all-in-one-schemaorg-rich-snippets.pot +++ b/languages/all-in-one-schemaorg-rich-snippets.pot @@ -2,7 +2,7 @@ # This file is distributed under the GPL2. msgid "" msgstr "" -"Project-Id-Version: Schema - All In One Schema Rich Snippets 1.7.4\n" +"Project-Id-Version: Schema - All In One Schema Rich Snippets 1.7.5\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/all-in-one-schemaorg-rich-snippets\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/lib/nps-survey/changelog.txt b/lib/nps-survey/changelog.txt index b5c368f..e18ffa5 100644 --- a/lib/nps-survey/changelog.txt +++ b/lib/nps-survey/changelog.txt @@ -1,3 +1,7 @@ +Version 1.0.12 - 16-07-2025 +- Improvement: + - Refactored rating prompt logic to allow disabling the WordPress rating functionality, ensuring a non-discriminatory and guideline-compliant user experience. + Version 1.0.11 - 27-06-2025 - Improvement: - Improved core class loading to avoid duplicate declarations and ensure stability. diff --git a/lib/nps-survey/dist/main.asset.php b/lib/nps-survey/dist/main.asset.php index 5d60f80..ff64487 100644 --- a/lib/nps-survey/dist/main.asset.php +++ b/lib/nps-survey/dist/main.asset.php @@ -1 +1 @@ - array('react', 'wp-api-fetch', 'wp-element', 'wp-i18n'), 'version' => '098e9bb53b4690172575'); + array('react', 'wp-api-fetch', 'wp-element', 'wp-i18n'), 'version' => '9a83e54041811ee7b09c'); diff --git a/lib/nps-survey/dist/main.js b/lib/nps-survey/dist/main.js index d70a701..96bbb44 100644 --- a/lib/nps-survey/dist/main.js +++ b/lib/nps-survey/dist/main.js @@ -1 +1 @@ -(()=>{"use strict";var e,t={45:(e,t,r)=>{var o=r(609);const n=window.wp.element,s=e=>{let t;const r=new Set,o=(e,o)=>{const n="function"==typeof e?e(t):e;if(!Object.is(n,t)){const e=t;t=(null!=o?o:"object"!=typeof n||null===n)?n:Object.assign({},t,n),r.forEach((r=>r(t,e)))}},n=()=>t,s={setState:o,getState:n,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},a=t=e(o,n,s);return s};var a=r(79);const{useDebugValue:l}=o,{useSyncExternalStoreWithSelector:i}=a;let c=!1;const d=e=>e,u=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?s(e):s)(e):e,r=(e,r)=>function(e,t=d,r){r&&!c&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),c=!0);const o=i(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return l(o),o}(t,e,r);return Object.assign(r,t),r},p="SET_CURRENT_STEP",m="SET_NPS_RATING",b="SET_SHOW_NPS",f=document.querySelectorAll('[data-id^="nps-survey-"]'),g={};Array.from(f).forEach((e=>{const t=JSON.parse(e.getAttribute("data-vars"));t.npsId=e.dataset.id,g[t.npsId]={showNps:t?.show_if,currentStep:"plugin-rating"===t?.nps_status?.dismiss_step?"plugin-rating":"nps-rating",npsRating:null,npsId:t.npsId}}));const h=(G=(e,{type:t,payload:r,npsId:o})=>{switch(t){case b:return{...e,[o]:{...e[o],showNps:r}};case p:return{...e,[o]:{...e[o],currentStep:r}};case m:return{...e,[o]:{...e[o],npsRating:r}};default:return e}},A=g,(T=(e,t,r)=>(r.dispatch=t=>(e((e=>G(e,t)),!1,t),t),r.dispatchFromDevtools=!0,{dispatch:(...e)=>r.dispatch(...e),...A}))?u(T):u),y=({children:e})=>(0,o.createElement)("p",{className:"mt-1 mx-0 mb-0 text-base leading-6 font-normal text-zip-body-text"},e),v=({children:e})=>(0,o.createElement)("h3",{className:"my-0 text-lg font-bold leading-7 text-zip-app-heading"},e),x=window.wp.i18n,w=function(e){const{message:{logo:t,plugin_name:r,nps_rating_message:s},npsId:a}=e,{dispatch:l}=h(),i=Array.from({length:10},((e,t)=>t+1)),[c,d]=(0,n.useState)(null);return(0,o.createElement)("div",null,(0,o.createElement)("div",{className:"flex items-center justify-start gap-2"},(0,o.createElement)("img",{className:"size-6",src:t,alt:"Brand Logo"}),(0,o.createElement)(v,null,r)),(0,o.createElement)(y,null,s.replaceAll("#pluginname",r)),(0,o.createElement)("div",{className:"mt-5"},(0,o.createElement)("span",{className:"isolate inline-flex gap-2 w-full"},i.map((e=>(0,o.createElement)("button",{type:"button",key:e,onClick:()=>async function(e){null===c&&(d(e),l({npsId:a,type:"SET_NPS_RATING",payload:e}),l(e>=8?{npsId:a,type:"SET_CURRENT_STEP",payload:"plugin-rating"}:{npsId:a,type:"SET_CURRENT_STEP",payload:"comment"}))}(e),className:"relative flex-1 inline-flex items-center justify-center bg-white py-1.5 text-sm font-medium text-nps-button-text hover:bg-gray-50 focus:z-10 border border-solid border-button-disabled rounded-md transition-colors ease-in-out duration-150 hover:cursor-pointer"},e))))),(0,o.createElement)("div",{className:"mt-3 flex items-center justify-between"},(0,o.createElement)("span",{className:"text-secondary-text text-xs font-medium leading-5"},(0,x.__)("Very unlikely","nps-survey")),(0,o.createElement)("span",{className:"text-secondary-text text-xs font-medium leading-5"},(0,x.__)("Very likely","nps-survey"))))},E=e=>{const t=_(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),S(r,t)||N(e)},getConflictingClassGroupIds:(e,t)=>{const n=r[e]||[];return t&&o[e]?[...n,...o[e]]:n}}},S=(e,t)=>{if(0===e.length)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),n=o?S(e.slice(1),o):void 0;if(n)return n;if(0===t.validators.length)return;const s=e.join("-");return t.validators.find((({validator:e})=>e(s)))?.classGroupId},k=/^\[(.+)\]$/,N=e=>{if(k.test(e)){const t=k.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},_=e=>{const{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return C(Object.entries(e.classGroups),r).forEach((([e,r])=>{z(r,o,e,t)})),o},z=(e,t,r,o)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return j(e)?void z(e(o),t,r,o):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach((([e,n])=>{z(n,I(t,e),r,o)}))}else(""===e?t:I(t,e)).classGroupId=r}))},I=(e,t)=>{let r=e;return t.split("-").forEach((e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r},j=e=>e.isThemeGetter,C=(e,t)=>t?e.map((([e,r])=>[e,r.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,r])=>[t+e,r]))):e))])):e,P=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const n=(n,s)=>{r.set(n,s),t++,t>e&&(t=0,o=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(n(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):n(e,t)}}},O=e=>{const{separator:t,experimentalParseClassName:r}=e,o=1===t.length,n=t[0],s=t.length,a=e=>{const r=[];let a,l=0,i=0;for(let c=0;ci?a-i:void 0}};return r?e=>r({className:e,parseClassName:a}):a},R=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach((e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)})),t.push(...r.sort()),t};var T,G,A;function M(){let e,t,r=0,o="";for(;r{if("string"==typeof e)return e;let t,r="";for(let o=0;ot(e)),e());return r=(e=>({cache:P(e.cacheSize),parseClassName:O(e),...E(e)}))(i),o=r.cache.get,n=r.cache.set,s=a,a(l)};function a(e){const t=o(e);if(t)return t;const s=((e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,s=[];let a="";for(let t=e.length-1;t>=0;){for(;" "===e[t];)--t;const l=e.lastIndexOf(" ",t),i=e.slice(-1===l?0:l+1,t+1);t=l;const{modifiers:c,hasImportantModifier:d,baseClassName:u,maybePostfixModifierPosition:p}=r(i);let m=Boolean(p),b=o(m?u.substring(0,p):u);if(!b){if(!m){a=i+(a.length>0?" "+a:a);continue}if(b=o(u),!b){a=i+(a.length>0?" "+a:a);continue}m=!1}const f=R(c).join(":"),g=d?f+"!":f,h=g+b;if(s.includes(h))continue;s.push(h);const y=n(b,m);for(let e=0;e0?" "+a:a)}return a})(e,r);return n(e,s),s}return function(){return s(M.apply(null,arguments))}}const V=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},B=/^\[(?:([a-z-]+):)?(.+)\]$/i,L=/^\d+\/\d+$/,$=new Set(["px","full","screen"]),q=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,H=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,U=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,F=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,J=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,X=e=>K(e)||$.has(e)||L.test(e),Z=e=>de(e,"length",ue),K=e=>Boolean(e)&&!Number.isNaN(Number(e)),Q=e=>de(e,"number",K),Y=e=>Boolean(e)&&Number.isInteger(Number(e)),ee=e=>e.endsWith("%")&&K(e.slice(0,-1)),te=e=>B.test(e),re=e=>q.test(e),oe=new Set(["length","size","percentage"]),ne=e=>de(e,oe,pe),se=e=>de(e,"position",pe),ae=new Set(["image","url"]),le=e=>de(e,ae,be),ie=e=>de(e,"",me),ce=()=>!0,de=(e,t,r)=>{const o=B.exec(e);return!!o&&(o[1]?"string"==typeof t?o[1]===t:t.has(o[1]):r(o[2]))},ue=e=>H.test(e)&&!U.test(e),pe=()=>!1,me=e=>F.test(e),be=e=>J.test(e),fe=D((Symbol.toStringTag,()=>{const e=V("colors"),t=V("spacing"),r=V("blur"),o=V("brightness"),n=V("borderColor"),s=V("borderRadius"),a=V("borderSpacing"),l=V("borderWidth"),i=V("contrast"),c=V("grayscale"),d=V("hueRotate"),u=V("invert"),p=V("gap"),m=V("gradientColorStops"),b=V("gradientColorStopPositions"),f=V("inset"),g=V("margin"),h=V("opacity"),y=V("padding"),v=V("saturate"),x=V("scale"),w=V("sepia"),E=V("skew"),S=V("space"),k=V("translate"),N=()=>["auto",te,t],_=()=>[te,t],z=()=>["",X,Z],I=()=>["auto",K,te],j=()=>["","0",te],C=()=>[K,te];return{cacheSize:500,separator:":",theme:{colors:[ce],spacing:[X,Z],blur:["none","",re,te],brightness:C(),borderColor:[e],borderRadius:["none","","full",re,te],borderSpacing:_(),borderWidth:z(),contrast:C(),grayscale:j(),hueRotate:C(),invert:j(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[ee,Z],inset:N(),margin:N(),opacity:C(),padding:_(),saturate:C(),scale:C(),sepia:j(),skew:C(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[re]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",te]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Y,te]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",Y,te]}],"grid-cols":[{"grid-cols":[ce]}],"col-start-end":[{col:["auto",{span:["full",Y,te]},te]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[ce]}],"row-start-end":[{row:["auto",{span:[Y,te]},te]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[re]},re]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",re,Z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Q]}],"font-family":[{font:[ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",K,Q]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",X,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",X,Z]}],"underline-offset":[{"underline-offset":["auto",X,te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",se]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ne]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},le]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[X,te]}],"outline-w":[{outline:[X,Z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[X,Z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",re,ie]}],"shadow-color":[{shadow:[ce]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",re,te]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[v]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[i]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:C()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:C()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Y,te]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[X,Z,Q]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}));function ge(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;tfe(function(){for(var e,t,r=0,o="",n=arguments.length;r{t.preventDefault(),o||r({npsId:e,type:"SET_CURRENT_STEP",payload:"nps-rating"})},Se=(0,n.forwardRef)((({variant:e="primary",hasSuffixIcon:t=!1,hasPrefixIcon:r=!1,type:n="button",className:s,onClick:a,children:l,disabled:i=!1,id:c="",size:d="medium",...u},p)=>{const m={base:{default:"px-6 py-3",hasPrefixIcon:"pl-4 pr-6 py-3",hasSuffixIcon:"pl-6 pr-4 py-3"},medium:{default:"px-4 py-3 h-11",hasPrefixIcon:"pl-4 pr-6 py-3",hasSuffixIcon:"pl-6 pr-4 py-3"},small:{default:"px-5 py-2 h-[2.625rem]",hasPrefixIcon:"pl-3 pr-5 py-2 h-[2.625rem]",hasSuffixIcon:"pl-5 pr-3 py-2 h-[2.625rem]"}};return(0,o.createElement)("button",{type:n,className:ve("group flex items-center justify-center gap-2 rounded-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 transition duration-150 ease-in-out cursor-pointer border-0",{primary:"text-white bg-nps-button-background border border-solid border-nps-button-background",secondary:"text-zip-body-text bg-white border border-solid border-zip-body-text",dark:"text-white border border-white bg-transparent border-solid",link:"text-border-secondary underline border-0 bg-transparent",blank:"bg-transparent border-transparent"}[e],!r&&!t&&m[d].default,r&&m[d].hasPrefixIcon,t&&m[d].hasSuffixIcon,{base:"text-base font-medium",medium:"text-base font-medium",small:"text-sm font-medium"}[d],{base:"rounded-md",medium:"rounded-md",small:"rounded"}[d],i&&"cursor-not-allowed opacity-70",s),onClick:e=>{a&&"function"==typeof a&&a(e)},ref:p,disabled:i,...c&&{id:c},...u},l)})),ke=({className:e=""})=>(0,o.createElement)("svg",{className:ve("animate-spin size-5 text-white",e),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},(0,o.createElement)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,o.createElement)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}));function Ne({title:e,titleId:t,...r},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M17 10a.75.75 0 0 1-.75.75H5.612l4.158 3.96a.75.75 0 1 1-1.04 1.08l-5.5-5.25a.75.75 0 0 1 0-1.08l5.5-5.25a.75.75 0 1 1 1.04 1.08L5.612 9.25H16.25A.75.75 0 0 1 17 10Z",clipRule:"evenodd"}))}const _e=o.forwardRef(Ne),ze=function(e){const{message:{plugin_rating_title:t,plugin_rating_content:r},plugin_slug:s,npsId:a}=e,[l,i]=(0,n.useState)(""),c=h((e=>e)),{npsRating:d}=c[a],[u,p]=(0,n.useState)(!1),{dispatch:m}=h();return(0,o.createElement)("div",null,(0,o.createElement)("div",{className:"flex justify-between"},(0,o.createElement)(v,null,t)),(0,o.createElement)(y,null,r),(0,o.createElement)("div",{className:"mt-5"},(0,o.createElement)("form",{onSubmit:async function(e){e.preventDefault(),u||we(a,d,l,"",m,p,s)}},(0,o.createElement)("div",{className:"mt-2"},(0,o.createElement)("textarea",{rows:4,cols:65,name:"comment",id:"comment",className:"block w-full rounded-md py-1.5 text-zip-body-text shadow-sm border border-border-nps-primary border-solid placeholder:text-nps-placeholder-text focus:ring-1 focus:ring-nps-button-background sm:text-sm sm:leading-6",defaultValue:"",value:l,onChange:e=>{i(e.target.value)}})),(0,o.createElement)("div",{className:"mt-3 flex justify-between"},(0,o.createElement)(Se,{className:"relative border-none py-2 px-4 pl-0 font-semibold bg-transparent text-nps-button-background",variant:"primary",onClick:e=>Ee(a,e,m,u),size:"small"},(0,o.createElement)(_e,{className:"w-4"}),(0,x.__)("Back","nps-survey")),(0,o.createElement)(Se,{className:"relative py-2 px-4 font-semibold",variant:"primary",type:"submit",size:"small"},u&&(0,o.createElement)("span",{className:"absolute inset-0 inline-flex items-center justify-center"},(0,o.createElement)(ke,null)),(0,o.createElement)("span",{className:ve(u&&"invisible")},(0,x.__)("Submit","nps-survey")))))))},Ie=function(e){const{message:{feedback_title:t,feedback_content:r,plugin_rating_link:n,plugin_rating_button_string:s},dismiss_timespan:a,plugin_slug:l,npsId:i}=e,c=h((e=>e)),{currentStep:d,npsRating:u}=c[i],[p,m]=(0,o.useState)(!1),{dispatch:b}=h(),f=async function(e=!0){we(i,u,"","plugin-rating",b,m,l),xe(i,b,d,a,l),e&&window.open(n,"_blank")};return(0,o.createElement)("div",{className:p&&"opacity-50 cursor-progress"},(0,o.createElement)("div",{className:"flex justify-between"},(0,o.createElement)(v,null,t)),(0,o.createElement)(y,null,r),(0,o.createElement)("div",{className:"flex justify-between mt-5"},(0,o.createElement)(Se,{className:"relative border-none py-2 px-4 pl-0 font-semibold bg-transparent text-nps-button-background",variant:"primary",onClick:e=>Ee(i,e,b),size:"small"},(0,o.createElement)(_e,{className:"w-4"}),(0,x.__)("Back","nps-survey")),(0,o.createElement)("div",{className:"flex justify-start"},(0,o.createElement)(Se,{variant:"link",className:"py-2 px-4 no-underline font-normal",type:"button",onClick:()=>f(!1),size:"small"},(0,x.__)("I already did!","nps-survey")),(0,o.createElement)(Se,{variant:"primary",className:"py-2 px-4 font-semibold",type:"button",onClick:f,size:"small"},s||(0,x.__)("Rate the Plugin","nps-survey")))))};function je({title:e,titleId:t,...r},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"}))}const Ce=o.forwardRef(je),Pe=()=>{const e=window.innerWidth,t={xs:512,sm:640,md:768,lg:1024,xl:1280,"2xl":1536};for(const r in t)if(e<=t[r])return r},Oe=e=>{const{plugin_slug:t,dismiss_timespan:r,npsId:n,npsIndex:s}=e,a=h((e=>e)),{dispatch:l}=h(),{showNps:i,currentStep:c,npsRating:d}=a[n],[u,p]=(0,o.useState)(!1),[m,b]=(0,o.useState)(Pe());if((0,o.useEffect)((()=>{const e=()=>{b(Pe())};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),i)return(0,o.createElement)("div",{className:"max-w-[30rem] xs:w-full w-[calc(100%-8px)] flex bg-white rounded-lg fixed bottom-2 z-[9999999999] right-2 p-4 sm:p-5 border border-solid border-border-tertiary shadow-lg",style:(()=>{const e=12*s;let t=e+8+"px";"xs"===m&&(t=0);const r={bottom:e+8+"px"};return"rtl"===document.documentElement.getAttribute("dir")?r.left=t:r.right=t,r})()},(0,o.createElement)("div",{className:u&&"opacity-50 cursor-progress"},"nps-rating"===c?(0,o.createElement)(w,{...e}):"comment"===c?(0,o.createElement)(ze,{...e}):"plugin-rating"===c?(0,o.createElement)(Ie,{...e}):void 0),(0,o.createElement)("span",{className:"absolute top-3 right-3 cursor-pointer",onClick:function(){u||(d&&"plugin-rating"===c&&we(n,d,"","plugin-rating",l,p,t),xe(n,l,c,r,t))}},(0,o.createElement)(Ce,{className:"h-5 w-5 text-zip-app-inactive-icon","aria-hidden":"true"})))},Re=e=>(0,o.createElement)("div",{id:"nps-survey-wrapper",className:"nps-survey-wrapper"},e&&(0,o.createElement)(Oe,{...e}));document.querySelectorAll('[data-id^="nps-survey-"]').forEach(((e,t)=>{const r=(0,n.createRoot)(e),s=JSON.parse(e.getAttribute("data-vars"));s.npsId=e.dataset.id,s.npsIndex=t,r.render((0,o.createElement)(Re,{...s,key:s.npsId}))}))},656:(e,t,r)=>{var o=r(609),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=o.useState,a=o.useEffect,l=o.useLayoutEffect,i=o.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),o=s({inst:{value:r,getSnapshot:t}}),n=o[0].inst,d=o[1];return l((function(){n.value=r,n.getSnapshot=t,c(n)&&d({inst:n})}),[e,r,t]),a((function(){return c(n)&&d({inst:n}),e((function(){c(n)&&d({inst:n})}))}),[e]),i(r),r};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:d},763:(e,t,r)=>{var o=r(609),n=r(257),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useSyncExternalStore,l=o.useRef,i=o.useEffect,c=o.useMemo,d=o.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,o,n){var u=l(null);if(null===u.current){var p={hasValue:!1,value:null};u.current=p}else p=u.current;u=c((function(){function e(e){if(!i){if(i=!0,a=e,e=o(e),void 0!==n&&p.hasValue){var t=p.value;if(n(t,e))return l=t}return l=e}if(t=l,s(a,e))return t;var r=o(e);return void 0!==n&&n(t,r)?t:(a=e,l=r)}var a,l,i=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,r,o,n]);var m=a(e,u[0],u[1]);return i((function(){p.hasValue=!0,p.value=m}),[m]),d(m),m}},257:(e,t,r)=>{e.exports=r(656)},79:(e,t,r)=>{e.exports=r(763)},609:e=>{e.exports=window.React}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var s=r[e]={exports:{}};return t[e](s,s.exports,o),s.exports}o.m=t,e=[],o.O=(t,r,n,s)=>{if(!r){var a=1/0;for(d=0;d=s)&&Object.keys(o.O).every((e=>o.O[e](r[i])))?r.splice(i--,1):(l=!1,s0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[r,n,s]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={792:0,85:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var n,s,a=r[0],l=r[1],i=r[2],c=0;if(a.some((t=>0!==e[t]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);if(i)var d=i(o)}for(t&&t(r);co(45)));n=o.O(n)})(); \ No newline at end of file +(()=>{"use strict";var e,t={45:(e,t,r)=>{var o=r(609);const n=window.wp.element,s=e=>{let t;const r=new Set,o=(e,o)=>{const n="function"==typeof e?e(t):e;if(!Object.is(n,t)){const e=t;t=(null!=o?o:"object"!=typeof n||null===n)?n:Object.assign({},t,n),r.forEach((r=>r(t,e)))}},n=()=>t,s={setState:o,getState:n,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},a=t=e(o,n,s);return s};var a=r(79);const{useDebugValue:l}=o,{useSyncExternalStoreWithSelector:i}=a;let c=!1;const d=e=>e,u=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?s(e):s)(e):e,r=(e,r)=>function(e,t=d,r){r&&!c&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),c=!0);const o=i(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return l(o),o}(t,e,r);return Object.assign(r,t),r},p="SET_CURRENT_STEP",m="SET_NPS_RATING",b="SET_SHOW_NPS",f=document.querySelectorAll('[data-id^="nps-survey-"]'),g={};Array.from(f).forEach((e=>{const t=JSON.parse(e.getAttribute("data-vars"));t.npsId=e.dataset.id,g[t.npsId]={showNps:t?.show_if,currentStep:"plugin-rating"===t?.nps_status?.dismiss_step?"plugin-rating":"nps-rating",npsRating:null,npsId:t.npsId}}));const h=(G=(e,{type:t,payload:r,npsId:o})=>{switch(t){case b:return{...e,[o]:{...e[o],showNps:r}};case p:return{...e,[o]:{...e[o],currentStep:r}};case m:return{...e,[o]:{...e[o],npsRating:r}};default:return e}},A=g,(T=(e,t,r)=>(r.dispatch=t=>(e((e=>G(e,t)),!1,t),t),r.dispatchFromDevtools=!0,{dispatch:(...e)=>r.dispatch(...e),...A}))?u(T):u),y=({children:e})=>(0,o.createElement)("p",{className:"mt-1 mx-0 mb-0 text-base leading-6 font-normal text-zip-body-text"},e),v=({children:e})=>(0,o.createElement)("h3",{className:"my-0 text-lg font-bold leading-7 text-zip-app-heading"},e),x=window.wp.i18n,w=function(e){const{message:{logo:t,plugin_name:r,nps_rating_message:s},npsId:a}=e,{dispatch:l}=h(),i=Array.from({length:10},((e,t)=>t+1)),[c,d]=(0,n.useState)(null);return(0,o.createElement)("div",null,(0,o.createElement)("div",{className:"flex items-center justify-start gap-2"},(0,o.createElement)("img",{className:"size-6",src:t,alt:"Brand Logo"}),(0,o.createElement)(v,null,r)),(0,o.createElement)(y,null,s.replaceAll("#pluginname",r)),(0,o.createElement)("div",{className:"mt-5"},(0,o.createElement)("span",{className:"isolate inline-flex gap-2 w-full"},i.map((e=>(0,o.createElement)("button",{type:"button",key:e,onClick:()=>async function(e){null===c&&(d(e),l({npsId:a,type:"SET_NPS_RATING",payload:e}),l({npsId:a,type:"SET_CURRENT_STEP",payload:"comment"}))}(e),className:"relative flex-1 inline-flex items-center justify-center bg-white py-1.5 text-sm font-medium text-nps-button-text hover:bg-gray-50 focus:z-10 border border-solid border-button-disabled rounded-md transition-colors ease-in-out duration-150 hover:cursor-pointer"},e))))),(0,o.createElement)("div",{className:"mt-3 flex items-center justify-between"},(0,o.createElement)("span",{className:"text-secondary-text text-xs font-medium leading-5"},(0,x.__)("Very unlikely","nps-survey")),(0,o.createElement)("span",{className:"text-secondary-text text-xs font-medium leading-5"},(0,x.__)("Very likely","nps-survey"))))},E=e=>{const t=_(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),k(r,t)||N(e)},getConflictingClassGroupIds:(e,t)=>{const n=r[e]||[];return t&&o[e]?[...n,...o[e]]:n}}},k=(e,t)=>{if(0===e.length)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),n=o?k(e.slice(1),o):void 0;if(n)return n;if(0===t.validators.length)return;const s=e.join("-");return t.validators.find((({validator:e})=>e(s)))?.classGroupId},S=/^\[(.+)\]$/,N=e=>{if(S.test(e)){const t=S.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},_=e=>{const{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return C(Object.entries(e.classGroups),r).forEach((([e,r])=>{z(r,o,e,t)})),o},z=(e,t,r,o)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return j(e)?void z(e(o),t,r,o):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach((([e,n])=>{z(n,I(t,e),r,o)}))}else(""===e?t:I(t,e)).classGroupId=r}))},I=(e,t)=>{let r=e;return t.split("-").forEach((e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r},j=e=>e.isThemeGetter,C=(e,t)=>t?e.map((([e,r])=>[e,r.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,r])=>[t+e,r]))):e))])):e,P=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const n=(n,s)=>{r.set(n,s),t++,t>e&&(t=0,o=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(n(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):n(e,t)}}},O=e=>{const{separator:t,experimentalParseClassName:r}=e,o=1===t.length,n=t[0],s=t.length,a=e=>{const r=[];let a,l=0,i=0;for(let c=0;ci?a-i:void 0}};return r?e=>r({className:e,parseClassName:a}):a},R=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach((e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)})),t.push(...r.sort()),t};var T,G,A;function M(){let e,t,r=0,o="";for(;r{if("string"==typeof e)return e;let t,r="";for(let o=0;ot(e)),e());return r=(e=>({cache:P(e.cacheSize),parseClassName:O(e),...E(e)}))(i),o=r.cache.get,n=r.cache.set,s=a,a(l)};function a(e){const t=o(e);if(t)return t;const s=((e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,s=[];let a="";for(let t=e.length-1;t>=0;){for(;" "===e[t];)--t;const l=e.lastIndexOf(" ",t),i=e.slice(-1===l?0:l+1,t+1);t=l;const{modifiers:c,hasImportantModifier:d,baseClassName:u,maybePostfixModifierPosition:p}=r(i);let m=Boolean(p),b=o(m?u.substring(0,p):u);if(!b){if(!m){a=i+(a.length>0?" "+a:a);continue}if(b=o(u),!b){a=i+(a.length>0?" "+a:a);continue}m=!1}const f=R(c).join(":"),g=d?f+"!":f,h=g+b;if(s.includes(h))continue;s.push(h);const y=n(b,m);for(let e=0;e0?" "+a:a)}return a})(e,r);return n(e,s),s}return function(){return s(M.apply(null,arguments))}}const B=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},L=/^\[(?:([a-z-]+):)?(.+)\]$/i,V=/^\d+\/\d+$/,$=new Set(["px","full","screen"]),q=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,H=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,F=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,U=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,J=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,X=e=>K(e)||$.has(e)||V.test(e),Z=e=>de(e,"length",ue),K=e=>Boolean(e)&&!Number.isNaN(Number(e)),Q=e=>de(e,"number",K),Y=e=>Boolean(e)&&Number.isInteger(Number(e)),ee=e=>e.endsWith("%")&&K(e.slice(0,-1)),te=e=>L.test(e),re=e=>q.test(e),oe=new Set(["length","size","percentage"]),ne=e=>de(e,oe,pe),se=e=>de(e,"position",pe),ae=new Set(["image","url"]),le=e=>de(e,ae,be),ie=e=>de(e,"",me),ce=()=>!0,de=(e,t,r)=>{const o=L.exec(e);return!!o&&(o[1]?"string"==typeof t?o[1]===t:t.has(o[1]):r(o[2]))},ue=e=>H.test(e)&&!F.test(e),pe=()=>!1,me=e=>U.test(e),be=e=>J.test(e),fe=D((Symbol.toStringTag,()=>{const e=B("colors"),t=B("spacing"),r=B("blur"),o=B("brightness"),n=B("borderColor"),s=B("borderRadius"),a=B("borderSpacing"),l=B("borderWidth"),i=B("contrast"),c=B("grayscale"),d=B("hueRotate"),u=B("invert"),p=B("gap"),m=B("gradientColorStops"),b=B("gradientColorStopPositions"),f=B("inset"),g=B("margin"),h=B("opacity"),y=B("padding"),v=B("saturate"),x=B("scale"),w=B("sepia"),E=B("skew"),k=B("space"),S=B("translate"),N=()=>["auto",te,t],_=()=>[te,t],z=()=>["",X,Z],I=()=>["auto",K,te],j=()=>["","0",te],C=()=>[K,te];return{cacheSize:500,separator:":",theme:{colors:[ce],spacing:[X,Z],blur:["none","",re,te],brightness:C(),borderColor:[e],borderRadius:["none","","full",re,te],borderSpacing:_(),borderWidth:z(),contrast:C(),grayscale:j(),hueRotate:C(),invert:j(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[ee,Z],inset:N(),margin:N(),opacity:C(),padding:_(),saturate:C(),scale:C(),sepia:j(),skew:C(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[re]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",te]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Y,te]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",Y,te]}],"grid-cols":[{"grid-cols":[ce]}],"col-start-end":[{col:["auto",{span:["full",Y,te]},te]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[ce]}],"row-start-end":[{row:["auto",{span:[Y,te]},te]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[re]},re]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",re,Z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Q]}],"font-family":[{font:[ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",K,Q]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",X,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",X,Z]}],"underline-offset":[{"underline-offset":["auto",X,te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",se]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ne]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},le]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[X,te]}],"outline-w":[{outline:[X,Z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[X,Z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",re,ie]}],"shadow-color":[{shadow:[ce]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",re,te]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[v]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[i]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:C()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:C()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Y,te]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[X,Z,Q]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}));function ge(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;tfe(function(){for(var e,t,r=0,o="",n=arguments.length;r{t.preventDefault(),o||r({npsId:e,type:"SET_CURRENT_STEP",payload:"nps-rating"})},ke=(0,n.forwardRef)((({variant:e="primary",hasSuffixIcon:t=!1,hasPrefixIcon:r=!1,type:n="button",className:s,onClick:a,children:l,disabled:i=!1,id:c="",size:d="medium",...u},p)=>{const m={base:{default:"px-6 py-3",hasPrefixIcon:"pl-4 pr-6 py-3",hasSuffixIcon:"pl-6 pr-4 py-3"},medium:{default:"px-4 py-3 h-11",hasPrefixIcon:"pl-4 pr-6 py-3",hasSuffixIcon:"pl-6 pr-4 py-3"},small:{default:"px-5 py-2 h-[2.625rem]",hasPrefixIcon:"pl-3 pr-5 py-2 h-[2.625rem]",hasSuffixIcon:"pl-5 pr-3 py-2 h-[2.625rem]"}};return(0,o.createElement)("button",{type:n,className:ve("group flex items-center justify-center gap-2 rounded-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 transition duration-150 ease-in-out cursor-pointer border-0",{primary:"text-white bg-nps-button-background border border-solid border-nps-button-background",secondary:"text-zip-body-text bg-white border border-solid border-zip-body-text",dark:"text-white border border-white bg-transparent border-solid",link:"text-border-secondary underline border-0 bg-transparent",blank:"bg-transparent border-transparent"}[e],!r&&!t&&m[d].default,r&&m[d].hasPrefixIcon,t&&m[d].hasSuffixIcon,{base:"text-base font-medium",medium:"text-base font-medium",small:"text-sm font-medium"}[d],{base:"rounded-md",medium:"rounded-md",small:"rounded"}[d],i&&"cursor-not-allowed opacity-70",s),onClick:e=>{a&&"function"==typeof a&&a(e)},ref:p,disabled:i,...c&&{id:c},...u},l)})),Se=({className:e=""})=>(0,o.createElement)("svg",{className:ve("animate-spin size-5 text-white",e),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},(0,o.createElement)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,o.createElement)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}));function Ne({title:e,titleId:t,...r},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M17 10a.75.75 0 0 1-.75.75H5.612l4.158 3.96a.75.75 0 1 1-1.04 1.08l-5.5-5.25a.75.75 0 0 1 0-1.08l5.5-5.25a.75.75 0 1 1 1.04 1.08L5.612 9.25H16.25A.75.75 0 0 1 17 10Z",clipRule:"evenodd"}))}const _e=o.forwardRef(Ne),ze=function(e){const{message:{feedback_title:t,feedback_content:r,plugin_rating_title:s,plugin_rating_content:a},plugin_slug:l,npsId:i}=e,[c,d]=(0,n.useState)(""),u=h((e=>e)),{npsRating:p}=u[i],[m,b]=(0,n.useState)(!1),{dispatch:f}=h(),g=p>=8;return(0,o.createElement)("div",null,(0,o.createElement)("div",{className:"flex justify-between"},(0,o.createElement)(v,null,g?t:s)),(0,o.createElement)(y,null,g?r:a),(0,o.createElement)("div",{className:"mt-5"},(0,o.createElement)("form",{onSubmit:async function(e){e.preventDefault(),m||we(i,p,c,"",f,b,l)}},(0,o.createElement)("div",{className:"mt-2"},(0,o.createElement)("textarea",{rows:4,cols:65,name:"comment",id:"comment",className:"block w-full rounded-md py-1.5 text-zip-body-text shadow-sm border border-border-nps-primary border-solid placeholder:text-nps-placeholder-text focus:ring-1 focus:ring-nps-button-background sm:text-sm sm:leading-6",value:c,onChange:e=>{d(e.target.value)}})),(0,o.createElement)("div",{className:"mt-3 flex justify-between"},(0,o.createElement)(ke,{className:"relative border-none py-2 px-4 pl-0 font-semibold bg-transparent text-nps-button-background",variant:"primary",onClick:e=>Ee(i,e,f,m),size:"small"},(0,o.createElement)(_e,{className:"w-4"}),(0,x.__)("Back","nps-survey")),(0,o.createElement)(ke,{className:"relative py-2 px-4 font-semibold",variant:"primary",type:"submit",size:"small"},m&&(0,o.createElement)("span",{className:"absolute inset-0 inline-flex items-center justify-center"},(0,o.createElement)(Se,null)),(0,o.createElement)("span",{className:ve(m&&"invisible")},(0,x.__)("Submit","nps-survey")))))))},Ie=function(e){const{message:{feedback_title:t,feedback_content:r,plugin_rating_link:n,plugin_rating_button_string:s},dismiss_timespan:a,plugin_slug:l,npsId:i}=e,c=h((e=>e)),{currentStep:d,npsRating:u}=c[i],[p,m]=(0,o.useState)(!1),{dispatch:b}=h(),f=async function(e=!0){we(i,u,"","plugin-rating",b,m,l),xe(i,b,d,a,l),e&&window.open(n,"_blank")};return(0,o.createElement)("div",{className:ve(p&&"opacity-50 cursor-progress")},(0,o.createElement)("div",{className:"flex justify-between"},(0,o.createElement)(v,null,t)),(0,o.createElement)(y,null,r),(0,o.createElement)("div",{className:"flex justify-between mt-5"},(0,o.createElement)(ke,{className:"relative border-none py-2 px-4 pl-0 font-semibold bg-transparent text-nps-button-background",variant:"primary",onClick:e=>Ee(i,e,b),size:"small"},(0,o.createElement)(_e,{className:"w-4"}),(0,x.__)("Back","nps-survey")),(0,o.createElement)("div",{className:"flex justify-start"},n&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(ke,{variant:"link",className:"py-2 px-4 no-underline font-normal",type:"button",onClick:()=>f(!1),size:"small"},(0,x.__)("I already did!","nps-survey")),(0,o.createElement)(ke,{variant:"primary",className:"py-2 px-4 font-semibold",type:"button",onClick:f,size:"small"},s||(0,x.__)("Rate the Plugin","nps-survey"))),!n&&(0,o.createElement)(ke,{className:"relative py-2 px-4 font-semibold",variant:"primary",type:"submit",size:"small",onClick:()=>f(!1)},p&&(0,o.createElement)("span",{className:"absolute inset-0 inline-flex items-center justify-center"},(0,o.createElement)(Se,null)),(0,o.createElement)("span",{className:ve(p&&"invisible")},(0,x.__)("Submit","nps-survey"))))))};function je({title:e,titleId:t,...r},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"}))}const Ce=o.forwardRef(je),Pe=()=>{const e=window.innerWidth,t={xs:512,sm:640,md:768,lg:1024,xl:1280,"2xl":1536};for(const r in t)if(e<=t[r])return r},Oe=e=>{const{plugin_slug:t,dismiss_timespan:r,npsId:n,npsIndex:s}=e,a=h((e=>e)),{dispatch:l}=h(),{showNps:i,currentStep:c,npsRating:d}=a[n],[u,p]=(0,o.useState)(!1),[m,b]=(0,o.useState)(Pe());if((0,o.useEffect)((()=>{const e=()=>{b(Pe())};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),i)return(0,o.createElement)("div",{className:"max-w-[30rem] xs:w-full w-[calc(100%-8px)] flex bg-white rounded-lg fixed bottom-2 z-[9999999999] right-2 p-4 sm:p-5 border border-solid border-border-tertiary shadow-lg",style:(()=>{const e=12*s;let t=e+8+"px";"xs"===m&&(t=0);const r={bottom:e+8+"px"};return"rtl"===document.documentElement.getAttribute("dir")?r.left=t:r.right=t,r})()},(0,o.createElement)("div",{className:ve(u&&"opacity-50 cursor-progress")},"nps-rating"===c?(0,o.createElement)(w,{...e}):"comment"===c?(0,o.createElement)(ze,{...e}):"plugin-rating"===c?(0,o.createElement)(Ie,{...e}):void 0),(0,o.createElement)("span",{className:"absolute top-3 right-3 cursor-pointer",onClick:function(){u||(d&&"plugin-rating"===c&&we(n,d,"","plugin-rating",l,p,t),xe(n,l,c,r,t))}},(0,o.createElement)(Ce,{className:"h-5 w-5 text-zip-app-inactive-icon","aria-hidden":"true"})))},Re=e=>(0,o.createElement)("div",{id:"nps-survey-wrapper",className:"nps-survey-wrapper"},e&&(0,o.createElement)(Oe,{...e}));document.querySelectorAll('[data-id^="nps-survey-"]').forEach(((e,t)=>{const r=(0,n.createRoot)(e),s=JSON.parse(e.getAttribute("data-vars"));s.npsId=e.dataset.id,s.npsIndex=t,r.render((0,o.createElement)(Re,{...s,key:s.npsId}))}))},656:(e,t,r)=>{var o=r(609),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=o.useState,a=o.useEffect,l=o.useLayoutEffect,i=o.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),o=s({inst:{value:r,getSnapshot:t}}),n=o[0].inst,d=o[1];return l((function(){n.value=r,n.getSnapshot=t,c(n)&&d({inst:n})}),[e,r,t]),a((function(){return c(n)&&d({inst:n}),e((function(){c(n)&&d({inst:n})}))}),[e]),i(r),r};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:d},763:(e,t,r)=>{var o=r(609),n=r(257),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useSyncExternalStore,l=o.useRef,i=o.useEffect,c=o.useMemo,d=o.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,o,n){var u=l(null);if(null===u.current){var p={hasValue:!1,value:null};u.current=p}else p=u.current;u=c((function(){function e(e){if(!i){if(i=!0,a=e,e=o(e),void 0!==n&&p.hasValue){var t=p.value;if(n(t,e))return l=t}return l=e}if(t=l,s(a,e))return t;var r=o(e);return void 0!==n&&n(t,r)?t:(a=e,l=r)}var a,l,i=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,r,o,n]);var m=a(e,u[0],u[1]);return i((function(){p.hasValue=!0,p.value=m}),[m]),d(m),m}},257:(e,t,r)=>{e.exports=r(656)},79:(e,t,r)=>{e.exports=r(763)},609:e=>{e.exports=window.React}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var s=r[e]={exports:{}};return t[e](s,s.exports,o),s.exports}o.m=t,e=[],o.O=(t,r,n,s)=>{if(!r){var a=1/0;for(d=0;d=s)&&Object.keys(o.O).every((e=>o.O[e](r[i])))?r.splice(i--,1):(l=!1,s0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[r,n,s]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={792:0,85:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var n,s,a=r[0],l=r[1],i=r[2],c=0;if(a.some((t=>0!==e[t]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);if(i)var d=i(o)}for(t&&t(r);co(45)));n=o.O(n)})(); \ No newline at end of file diff --git a/lib/nps-survey/nps-survey.php b/lib/nps-survey/nps-survey.php index 86fe002..49d57da 100644 --- a/lib/nps-survey/nps-survey.php +++ b/lib/nps-survey/nps-survey.php @@ -3,7 +3,7 @@ * Plugin Name: NPS Survey * Description: It is a nps survey library. * Author: Brainstorm Force - * Version: 1.0.11 + * Version: 1.0.12 * License: GPL v2 * Text Domain: nps-survey * @@ -19,5 +19,5 @@ define( 'NPS_SURVEY_BASE', plugin_basename( NPS_SURVEY_FILE ) ); define( 'NPS_SURVEY_DIR', plugin_dir_path( NPS_SURVEY_FILE ) ); define( 'NPS_SURVEY_URL', plugins_url( '/', NPS_SURVEY_FILE ) ); -define( 'NPS_SURVEY_VER', '1.0.11' ); +define( 'NPS_SURVEY_VER', '1.0.12' ); require_once 'nps-survey-plugin-loader.php'; diff --git a/lib/nps-survey/version.json b/lib/nps-survey/version.json index 9e896f5..3ca7121 100644 --- a/lib/nps-survey/version.json +++ b/lib/nps-survey/version.json @@ -1,3 +1,3 @@ { - "nps-survey": "1.0.11" + "nps-survey": "1.0.12" } diff --git a/package-lock.json b/package-lock.json index 415c106..7fc3850 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "all-in-one-schemaorg-rich-snippets", - "version": "1.7.4", + "version": "1.7.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "all-in-one-schemaorg-rich-snippets", - "version": "1.7.4", + "version": "1.7.5", "dependencies": { "@wordpress/scripts": "^1.0.0" }, @@ -882,7 +882,6 @@ "resolved": "https://registry.npmjs.org/grunt/-/grunt-1.6.1.tgz", "integrity": "sha512-/ABUy3gYWu5iBmrUSRBP97JLpQUm0GgVveDCp6t3yRNIoltIYw7rEj3g5y1o2PGPR2vfTRGa7WC/LZHLTXnEzA==", "dev": true, - "license": "MIT", "dependencies": { "dateformat": "~4.6.2", "eventemitter2": "~0.4.13", diff --git a/package.json b/package.json index 5fb8047..efa6e1f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "all-in-one-schemaorg-rich-snippets", - "version": "1.7.4", + "version": "1.7.5", "main": "Gruntfile.js", "author": "Brainstorm Force", "devDependencies": { diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 82df489..97a92d5 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -16,6 +16,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/readme.txt b/readme.txt index 59ac35b..cd5d6d0 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/BrainstormForce Tags: schema markup, rich snippets, wordpress seo, structured data, google search Requires at least: 3.7 Tested up to: 6.8 -Stable tag: 1.7.4 +Stable tag: 1.7.5 Requires PHP: 7.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -83,6 +83,10 @@ No, the plugin provides an easy-to-use interface where you can add schema markup == Changelog == +### 1.7.5 ### +- Improvement: Compatibility with PHP version 8.3. +- Fixed: Resolved undefined array key warnings in plugin. + ### 1.7.4 ### - Fixed: WooCommerce product editor compatibility - Added exclusions for WooCommerce post types.