From 196ef76ccca3a0cec7635a1805fea5d54a44ee8f Mon Sep 17 00:00:00 2001 From: Gustavs Date: Mon, 2 Aug 2021 20:06:06 +0300 Subject: [PATCH] feat: adding drag & drop file upload file upload and validation File upload progression adding a functional drag and drop upload field updating builder --- .php_cs.dist => .php-cs-fixer.dist.php | 2 +- composer.json | 2 +- composer.lock | 320 +- package-lock.json | 3310 ++++++++++++++--- package.json | 7 + .../builder/src/components/Composer/Field.jsx | 2 + .../Composer/FieldTypes/DragAndDropFile.jsx | 50 + .../src/components/PropertyEditor/File.jsx | 2 - .../builder/src/containers/PropertyEditor.jsx | 1 + .../Context/Request/EditElementContext.php | 26 +- .../Form/Context/Request/PostContext.php | 15 +- .../CheckboxField/CheckboxFieldBundle.php | 26 + .../Fields/FileUpload/FileUploadBundle.php | 71 + .../OptionalFieldJavascriptBundle.php | 6 +- .../GraphQL/Interfaces/FieldInterface.php | 4 + .../src/Controllers/FileUploadController.php | 189 + .../src/Controllers/SubmitController.php | 2 +- .../src/Events/Fields/TransformValueEvent.php | 46 + .../plugin/src/Fields/FileUploadField.php | 25 +- .../src/Fields/Pro/DragAndDropFileField.php | 128 + packages/plugin/src/Freeform.php | 2 + .../Composer/Components/AbstractField.php | 1 + .../Composer/Components/FieldInterface.php | 1 + .../Library/Composer/Components/Layout.php | 73 +- .../Database/SubmissionHandlerInterface.php | 6 +- packages/plugin/src/Models/FieldModel.php | 4 + packages/plugin/src/Records/FieldRecord.php | 22 +- .../src/Records/UnfinalizedFileRecord.php | 6 +- .../front-end/fields/drag-and-drop-file.css | 176 + .../css/front-end/plugin/freeform.css | 177 + .../src/Resources/js/builder/builder.js | 2 +- .../js/scripts/front-end/plugin/freeform.js | 2 +- .../plugin/src/Services/FieldsService.php | 2 + packages/plugin/src/Services/FilesService.php | 92 +- .../src/Services/SubmissionsService.php | 24 - .../codepack/templates/bootstrap/_form.html | 2 +- packages/plugin/src/migrations/Install.php | 4 +- ...09_183655_AddContextToUnfinalizedFiles.php | 39 + packages/plugin/src/site-routes.php | 3 + .../src/templates/submissions/_edit_base.html | 4 +- packages/scripts/.babelrc.json | 2 +- packages/scripts/.eslintrc.json | 21 +- packages/scripts/package-lock.json | 784 ++-- packages/scripts/package.json | 12 +- .../components/front-end/plugin/freeform.js | 12 +- .../src/lib/plugin/constants/event-types.js | 9 + .../fields/drag-and-drop/error-handling.ts | 49 + .../fields/drag-and-drop/file-upload.ts | 172 + .../handlers/fields/drag-and-drop/index.ts | 93 + .../handlers/fields/drag-and-drop/preview.ts | 102 + .../handlers/fields/drag-and-drop/types.ts | 32 + .../src/lib/plugin/helpers/event-handling.ts | 34 + .../scripts/src/lib/plugin/helpers/strings.ts | 7 + packages/scripts/tsconfig.json | 1 + .../front-end/fields/drag-and-drop-file.scss | 220 ++ .../styles/src/front-end/plugin/freeform.scss | 1 + .../styles/src/shared/_media-queries.scss | 39 + 57 files changed, 5395 insertions(+), 1071 deletions(-) rename .php_cs.dist => .php-cs-fixer.dist.php (94%) create mode 100644 packages/builder/src/components/Composer/FieldTypes/DragAndDropFile.jsx create mode 100644 packages/plugin/src/Bundles/Form/Fields/CheckboxField/CheckboxFieldBundle.php create mode 100644 packages/plugin/src/Bundles/Form/Fields/FileUpload/FileUploadBundle.php create mode 100644 packages/plugin/src/Controllers/FileUploadController.php create mode 100644 packages/plugin/src/Events/Fields/TransformValueEvent.php create mode 100644 packages/plugin/src/Fields/Pro/DragAndDropFileField.php create mode 100644 packages/plugin/src/Resources/css/front-end/fields/drag-and-drop-file.css create mode 100644 packages/plugin/src/migrations/m210609_183655_AddContextToUnfinalizedFiles.php create mode 100644 packages/scripts/src/lib/plugin/handlers/fields/drag-and-drop/error-handling.ts create mode 100644 packages/scripts/src/lib/plugin/handlers/fields/drag-and-drop/file-upload.ts create mode 100644 packages/scripts/src/lib/plugin/handlers/fields/drag-and-drop/index.ts create mode 100644 packages/scripts/src/lib/plugin/handlers/fields/drag-and-drop/preview.ts create mode 100644 packages/scripts/src/lib/plugin/handlers/fields/drag-and-drop/types.ts create mode 100644 packages/scripts/src/lib/plugin/helpers/event-handling.ts create mode 100644 packages/scripts/src/lib/plugin/helpers/strings.ts create mode 100644 packages/styles/src/front-end/fields/drag-and-drop-file.scss create mode 100644 packages/styles/src/shared/_media-queries.scss diff --git a/.php_cs.dist b/.php-cs-fixer.dist.php similarity index 94% rename from .php_cs.dist rename to .php-cs-fixer.dist.php index 9cc479c1a..94f9014df 100644 --- a/.php_cs.dist +++ b/.php-cs-fixer.dist.php @@ -3,7 +3,7 @@ $finder = PhpCsFixer\Finder::create() ->in(__DIR__ . '/packages/plugin'); -return PhpCsFixer\Config::create() +return (new PhpCsFixer\Config()) ->setRules([ '@Symfony' => true, '@Symfony:risky' => true, diff --git a/composer.json b/composer.json index d8f28200d..339cdf0af 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ }, "require-dev": { "phpunit/phpunit": "^9.3.0", - "friendsofphp/php-cs-fixer": "^2.16", + "friendsofphp/php-cs-fixer": "^2.19", "brainmaestro/composer-git-hooks": "^2.8" }, "autoload": { diff --git a/composer.lock b/composer.lock index b16d3352e..5a1c19f8f 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b1090e2d7f3b6a26da57cded7caf6c13", + "content-hash": "106c922972bd8137b362a590d3d930fc", "packages": [ { "name": "cebe/markdown", @@ -72,16 +72,16 @@ }, { "name": "composer/ca-bundle", - "version": "1.2.9", + "version": "1.2.10", "source": { "type": "git", "url": "https://github.com/composer/ca-bundle.git", - "reference": "78a0e288fdcebf92aa2318a8d3656168da6ac1a5" + "reference": "9fdb22c2e97a614657716178093cd1da90a64aa8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/ca-bundle/zipball/78a0e288fdcebf92aa2318a8d3656168da6ac1a5", - "reference": "78a0e288fdcebf92aa2318a8d3656168da6ac1a5", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/9fdb22c2e97a614657716178093cd1da90a64aa8", + "reference": "9fdb22c2e97a614657716178093cd1da90a64aa8", "shasum": "" }, "require": { @@ -128,7 +128,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/ca-bundle/issues", - "source": "https://github.com/composer/ca-bundle/tree/1.2.9" + "source": "https://github.com/composer/ca-bundle/tree/1.2.10" }, "funding": [ { @@ -144,7 +144,7 @@ "type": "tidelift" } ], - "time": "2021-01-12T12:10:35+00:00" + "time": "2021-06-07T13:58:28+00:00" }, { "name": "composer/composer", @@ -539,16 +539,16 @@ }, { "name": "craftcms/cms", - "version": "3.6.16", + "version": "3.7.1", "source": { "type": "git", "url": "https://github.com/craftcms/cms.git", - "reference": "e393adc8419f39c2047b211289eb813b5e1869b3" + "reference": "d421f9fdc2444113f1040e01995f79506c6257c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/craftcms/cms/zipball/e393adc8419f39c2047b211289eb813b5e1869b3", - "reference": "e393adc8419f39c2047b211289eb813b5e1869b3", + "url": "https://api.github.com/repos/craftcms/cms/zipball/d421f9fdc2444113f1040e01995f79506c6257c7", + "reference": "d421f9fdc2444113f1040e01995f79506c6257c7", "shasum": "" }, "require": { @@ -569,7 +569,7 @@ "ext-zip": "*", "guzzlehttp/guzzle": "^6.5.5|^7.2.0", "laminas/laminas-feed": "~2.12.3|^2.13.1", - "league/flysystem": "^1.1.3", + "league/flysystem": "^1.1.4", "league/oauth2-client": "^2.6.0", "mikehaertl/php-shellcommand": "^1.6.3", "php": ">=7.2.5", @@ -623,6 +623,12 @@ "license": [ "proprietary" ], + "authors": [ + { + "name": "Pixel & Tonic", + "homepage": "https://pixelandtonic.com/" + } + ], "description": "Craft CMS", "homepage": "https://craftcms.com", "keywords": [ @@ -638,7 +644,7 @@ "rss": "https://github.com/craftcms/cms/releases.atom", "source": "https://github.com/craftcms/cms" }, - "time": "2021-06-01T18:14:34+00:00" + "time": "2021-07-15T00:07:34+00:00" }, { "name": "craftcms/oauth2-craftid", @@ -1349,29 +1355,32 @@ }, { "name": "guzzlehttp/psr7", - "version": "1.8.2", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "dc960a912984efb74d0a90222870c72c87f10c91" + "reference": "1dc8d9cba3897165e16d12bb13d813afb1eb3fe7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/dc960a912984efb74d0a90222870c72c87f10c91", - "reference": "dc960a912984efb74d0a90222870c72c87f10c91", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/1dc8d9cba3897165e16d12bb13d813afb1eb3fe7", + "reference": "1dc8d9cba3897165e16d12bb13d813afb1eb3fe7", "shasum": "" }, "require": { - "php": ">=5.4.0", - "psr/http-message": "~1.0", - "ralouphie/getallheaders": "^2.0.5 || ^3.0.0" + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.0", + "ralouphie/getallheaders": "^3.0" }, "provide": { + "psr/http-factory-implementation": "1.0", "psr/http-message-implementation": "1.0" }, "require-dev": { - "ext-zlib": "*", - "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10" + "bamarni/composer-bin-plugin": "^1.4.1", + "http-interop/http-factory-tests": "^0.9", + "phpunit/phpunit": "^8.5.8 || ^9.3.10" }, "suggest": { "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" @@ -1379,16 +1388,13 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.7-dev" + "dev-master": "2.0-dev" } }, "autoload": { "psr-4": { "GuzzleHttp\\Psr7\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1403,6 +1409,11 @@ { "name": "Tobias Schultze", "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" } ], "description": "PSR-7 message implementation that also provides common utility methods", @@ -1418,9 +1429,9 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/1.8.2" + "source": "https://github.com/guzzle/psr7/tree/2.0.0" }, - "time": "2021-04-26T09:17:50+00:00" + "time": "2021-06-30T20:03:07+00:00" }, { "name": "hashids/hashids", @@ -1564,16 +1575,16 @@ }, { "name": "laminas/laminas-escaper", - "version": "2.7.0", + "version": "2.8.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-escaper.git", - "reference": "5e04bc5ae5990b17159d79d331055e2c645e5cc5" + "reference": "2d6dce99668b413610e9544183fa10392437f542" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-escaper/zipball/5e04bc5ae5990b17159d79d331055e2c645e5cc5", - "reference": "5e04bc5ae5990b17159d79d331055e2c645e5cc5", + "url": "https://api.github.com/repos/laminas/laminas-escaper/zipball/2d6dce99668b413610e9544183fa10392437f542", + "reference": "2d6dce99668b413610e9544183fa10392437f542", "shasum": "" }, "require": { @@ -1584,7 +1595,7 @@ "zendframework/zend-escaper": "^2.6.1" }, "require-dev": { - "laminas/laminas-coding-standard": "~1.0.0", + "laminas/laminas-coding-standard": "~2.3.0", "phpunit/phpunit": "^9.3", "psalm/plugin-phpunit": "^0.12.2", "vimeo/psalm": "^3.16" @@ -1623,7 +1634,7 @@ "type": "community_bridge" } ], - "time": "2020-11-17T21:26:43+00:00" + "time": "2021-06-26T14:26:08+00:00" }, { "name": "laminas/laminas-feed", @@ -1707,16 +1718,16 @@ }, { "name": "laminas/laminas-stdlib", - "version": "3.3.1", + "version": "3.4.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-stdlib.git", - "reference": "d81c7ffe602ed0e6ecb18691019111c0f4bf1efe" + "reference": "e89c2268c9cad25099f562f7f015c28c5dd383c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-stdlib/zipball/d81c7ffe602ed0e6ecb18691019111c0f4bf1efe", - "reference": "d81c7ffe602ed0e6ecb18691019111c0f4bf1efe", + "url": "https://api.github.com/repos/laminas/laminas-stdlib/zipball/e89c2268c9cad25099f562f7f015c28c5dd383c9", + "reference": "e89c2268c9cad25099f562f7f015c28c5dd383c9", "shasum": "" }, "require": { @@ -1727,9 +1738,11 @@ "zendframework/zend-stdlib": "^3.2.1" }, "require-dev": { - "laminas/laminas-coding-standard": "~1.0.0", + "laminas/laminas-coding-standard": "~2.3.0", "phpbench/phpbench": "^0.17.1", - "phpunit/phpunit": "~9.3.7" + "phpunit/phpunit": "~9.3.7", + "psalm/plugin-phpunit": "^0.16.0", + "vimeo/psalm": "^4.7" }, "type": "library", "autoload": { @@ -1761,20 +1774,20 @@ "type": "community_bridge" } ], - "time": "2020-11-19T20:18:59+00:00" + "time": "2021-06-28T21:37:31+00:00" }, { "name": "laminas/laminas-zendframework-bridge", - "version": "1.2.0", + "version": "1.3.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-zendframework-bridge.git", - "reference": "6cccbddfcfc742eb02158d6137ca5687d92cee32" + "reference": "13af2502d9bb6f7d33be2de4b51fb68c6cdb476e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-zendframework-bridge/zipball/6cccbddfcfc742eb02158d6137ca5687d92cee32", - "reference": "6cccbddfcfc742eb02158d6137ca5687d92cee32", + "url": "https://api.github.com/repos/laminas/laminas-zendframework-bridge/zipball/13af2502d9bb6f7d33be2de4b51fb68c6cdb476e", + "reference": "13af2502d9bb6f7d33be2de4b51fb68c6cdb476e", "shasum": "" }, "require": { @@ -1823,20 +1836,20 @@ "type": "community_bridge" } ], - "time": "2021-02-25T21:54:58+00:00" + "time": "2021-06-24T12:49:22+00:00" }, { "name": "league/flysystem", - "version": "1.1.3", + "version": "1.1.4", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem.git", - "reference": "9be3b16c877d477357c015cec057548cf9b2a14a" + "reference": "f3ad69181b8afed2c9edf7be5a2918144ff4ea32" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/9be3b16c877d477357c015cec057548cf9b2a14a", - "reference": "9be3b16c877d477357c015cec057548cf9b2a14a", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/f3ad69181b8afed2c9edf7be5a2918144ff4ea32", + "reference": "f3ad69181b8afed2c9edf7be5a2918144ff4ea32", "shasum": "" }, "require": { @@ -1852,7 +1865,6 @@ "phpunit/phpunit": "^8.5.8" }, "suggest": { - "ext-fileinfo": "Required for MimeType", "ext-ftp": "Allows you to use FTP server storage", "ext-openssl": "Allows you to use FTPS server storage", "league/flysystem-aws-s3-v2": "Allows you to use S3 storage with AWS SDK v2", @@ -1910,7 +1922,7 @@ ], "support": { "issues": "https://github.com/thephpleague/flysystem/issues", - "source": "https://github.com/thephpleague/flysystem/tree/1.x" + "source": "https://github.com/thephpleague/flysystem/tree/1.1.4" }, "funding": [ { @@ -1918,7 +1930,7 @@ "type": "other" } ], - "time": "2020-08-23T07:39:11+00:00" + "time": "2021-06-23T21:56:05+00:00" }, { "name": "league/mime-type-detection", @@ -2334,16 +2346,16 @@ }, { "name": "monolog/monolog", - "version": "2.2.0", + "version": "2.3.1", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "1cb1cde8e8dd0f70cc0fe51354a59acad9302084" + "reference": "9738e495f288eec0b187e310b7cdbbb285777dbe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/1cb1cde8e8dd0f70cc0fe51354a59acad9302084", - "reference": "1cb1cde8e8dd0f70cc0fe51354a59acad9302084", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/9738e495f288eec0b187e310b7cdbbb285777dbe", + "reference": "9738e495f288eec0b187e310b7cdbbb285777dbe", "shasum": "" }, "require": { @@ -2362,7 +2374,7 @@ "php-amqplib/php-amqplib": "~2.4", "php-console/php-console": "^3.1.3", "phpspec/prophecy": "^1.6.1", - "phpstan/phpstan": "^0.12.59", + "phpstan/phpstan": "^0.12.91", "phpunit/phpunit": "^8.5", "predis/predis": "^1.1", "rollbar/rollbar": "^1.3", @@ -2414,7 +2426,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/2.2.0" + "source": "https://github.com/Seldaek/monolog/tree/2.3.1" }, "funding": [ { @@ -2426,20 +2438,20 @@ "type": "tidelift" } ], - "time": "2020-12-14T13:15:25+00:00" + "time": "2021-07-14T11:56:39+00:00" }, { "name": "myclabs/php-enum", - "version": "1.8.0", + "version": "1.8.3", "source": { "type": "git", "url": "https://github.com/myclabs/php-enum.git", - "reference": "46cf3d8498b095bd33727b13fd5707263af99421" + "reference": "b942d263c641ddb5190929ff840c68f78713e937" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/php-enum/zipball/46cf3d8498b095bd33727b13fd5707263af99421", - "reference": "46cf3d8498b095bd33727b13fd5707263af99421", + "url": "https://api.github.com/repos/myclabs/php-enum/zipball/b942d263c641ddb5190929ff840c68f78713e937", + "reference": "b942d263c641ddb5190929ff840c68f78713e937", "shasum": "" }, "require": { @@ -2449,7 +2461,7 @@ "require-dev": { "phpunit/phpunit": "^9.5", "squizlabs/php_codesniffer": "1.*", - "vimeo/psalm": "^4.5.1" + "vimeo/psalm": "^4.6.2" }, "type": "library", "autoload": { @@ -2474,7 +2486,7 @@ ], "support": { "issues": "https://github.com/myclabs/php-enum/issues", - "source": "https://github.com/myclabs/php-enum/tree/1.8.0" + "source": "https://github.com/myclabs/php-enum/tree/1.8.3" }, "funding": [ { @@ -2486,20 +2498,20 @@ "type": "tidelift" } ], - "time": "2021-02-15T16:11:48+00:00" + "time": "2021-07-05T08:18:36+00:00" }, { "name": "nesbot/carbon", - "version": "2.48.1", + "version": "2.50.0", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "8d1f50f1436fb4b05e7127360483dd9c6e73da16" + "reference": "f47f17d17602b2243414a44ad53d9f8b9ada5fdb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/8d1f50f1436fb4b05e7127360483dd9c6e73da16", - "reference": "8d1f50f1436fb4b05e7127360483dd9c6e73da16", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/f47f17d17602b2243414a44ad53d9f8b9ada5fdb", + "reference": "f47f17d17602b2243414a44ad53d9f8b9ada5fdb", "shasum": "" }, "require": { @@ -2551,15 +2563,15 @@ { "name": "Brian Nesbitt", "email": "brian@nesbot.com", - "homepage": "http://nesbot.com" + "homepage": "https://markido.com" }, { "name": "kylekatarnls", - "homepage": "http://github.com/kylekatarnls" + "homepage": "https://github.com/kylekatarnls" } ], "description": "An API extension for DateTime that supports 281 different languages.", - "homepage": "http://carbon.nesbot.com", + "homepage": "https://carbon.nesbot.com", "keywords": [ "date", "datetime", @@ -2579,7 +2591,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T22:08:38+00:00" + "time": "2021-06-28T22:38:45+00:00" }, { "name": "opis/closure", @@ -2960,16 +2972,16 @@ }, { "name": "pixelandtonic/imagine", - "version": "1.2.4.1", + "version": "1.2.4.2", "source": { "type": "git", "url": "https://github.com/pixelandtonic/Imagine.git", - "reference": "2bedcf2dfab50a22126498a16241944c9d4cde65" + "reference": "5ee4b6a365497818815ba50738c8dcbb555c9fd3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pixelandtonic/Imagine/zipball/2bedcf2dfab50a22126498a16241944c9d4cde65", - "reference": "2bedcf2dfab50a22126498a16241944c9d4cde65", + "url": "https://api.github.com/repos/pixelandtonic/Imagine/zipball/5ee4b6a365497818815ba50738c8dcbb555c9fd3", + "reference": "5ee4b6a365497818815ba50738c8dcbb555c9fd3", "shasum": "" }, "require": { @@ -3015,9 +3027,9 @@ "image processing" ], "support": { - "source": "https://github.com/pixelandtonic/Imagine/tree/1.2.4.1" + "source": "https://github.com/pixelandtonic/Imagine/tree/1.2.4.2" }, - "time": "2020-11-05T18:36:18+00:00" + "time": "2021-06-22T18:26:46+00:00" }, { "name": "psr/container", @@ -3624,16 +3636,16 @@ }, { "name": "stripe/stripe-php", - "version": "v7.82.0", + "version": "v7.89.0", "source": { "type": "git", "url": "https://github.com/stripe/stripe-php.git", - "reference": "218f5296923265fab4692a7f8a083ff2e7e35a21" + "reference": "fea12a15d46d15c017b3fe76f78aa7c983cb5928" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/stripe/stripe-php/zipball/218f5296923265fab4692a7f8a083ff2e7e35a21", - "reference": "218f5296923265fab4692a7f8a083ff2e7e35a21", + "url": "https://api.github.com/repos/stripe/stripe-php/zipball/fea12a15d46d15c017b3fe76f78aa7c983cb5928", + "reference": "fea12a15d46d15c017b3fe76f78aa7c983cb5928", "shasum": "" }, "require": { @@ -3679,9 +3691,9 @@ ], "support": { "issues": "https://github.com/stripe/stripe-php/issues", - "source": "https://github.com/stripe/stripe-php/tree/v7.82.0" + "source": "https://github.com/stripe/stripe-php/tree/v7.89.0" }, - "time": "2021-06-04T23:26:37+00:00" + "time": "2021-07-14T17:24:56+00:00" }, { "name": "swiftmailer/swiftmailer", @@ -3760,16 +3772,16 @@ }, { "name": "symfony/console", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "058553870f7809087fa80fa734704a21b9bcaeb2" + "reference": "649730483885ff2ca99ca0560ef0e5f6b03f2ac1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/058553870f7809087fa80fa734704a21b9bcaeb2", - "reference": "058553870f7809087fa80fa734704a21b9bcaeb2", + "url": "https://api.github.com/repos/symfony/console/zipball/649730483885ff2ca99ca0560ef0e5f6b03f2ac1", + "reference": "649730483885ff2ca99ca0560ef0e5f6b03f2ac1", "shasum": "" }, "require": { @@ -3838,7 +3850,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.3.0" + "source": "https://github.com/symfony/console/tree/v5.3.2" }, "funding": [ { @@ -3854,7 +3866,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:43:10+00:00" + "time": "2021-06-12T09:42:48+00:00" }, { "name": "symfony/deprecation-contracts", @@ -3925,16 +3937,16 @@ }, { "name": "symfony/filesystem", - "version": "v5.3.0", + "version": "v5.3.3", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "348116319d7fb7d1faa781d26a48922428013eb2" + "reference": "19b71c8f313b411172dd5f470fd61f24466d79a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/348116319d7fb7d1faa781d26a48922428013eb2", - "reference": "348116319d7fb7d1faa781d26a48922428013eb2", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/19b71c8f313b411172dd5f470fd61f24466d79a9", + "reference": "19b71c8f313b411172dd5f470fd61f24466d79a9", "shasum": "" }, "require": { @@ -3967,7 +3979,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v5.3.0" + "source": "https://github.com/symfony/filesystem/tree/v5.3.3" }, "funding": [ { @@ -3983,7 +3995,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:43:10+00:00" + "time": "2021-06-30T07:27:52+00:00" }, { "name": "symfony/finder", @@ -4777,16 +4789,16 @@ }, { "name": "symfony/process", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "53e36cb1c160505cdaf1ef201501669c4c317191" + "reference": "714b47f9196de61a196d86c4bad5f09201b307df" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/53e36cb1c160505cdaf1ef201501669c4c317191", - "reference": "53e36cb1c160505cdaf1ef201501669c4c317191", + "url": "https://api.github.com/repos/symfony/process/zipball/714b47f9196de61a196d86c4bad5f09201b307df", + "reference": "714b47f9196de61a196d86c4bad5f09201b307df", "shasum": "" }, "require": { @@ -4819,7 +4831,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v5.3.0" + "source": "https://github.com/symfony/process/tree/v5.3.2" }, "funding": [ { @@ -4835,7 +4847,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T12:52:38+00:00" + "time": "2021-06-12T10:15:01+00:00" }, { "name": "symfony/property-access", @@ -5089,16 +5101,16 @@ }, { "name": "symfony/string", - "version": "v5.3.0", + "version": "v5.3.3", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "a9a0f8b6aafc5d2d1c116dcccd1573a95153515b" + "reference": "bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/a9a0f8b6aafc5d2d1c116dcccd1573a95153515b", - "reference": "a9a0f8b6aafc5d2d1c116dcccd1573a95153515b", + "url": "https://api.github.com/repos/symfony/string/zipball/bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1", + "reference": "bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1", "shasum": "" }, "require": { @@ -5152,7 +5164,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v5.3.0" + "source": "https://github.com/symfony/string/tree/v5.3.3" }, "funding": [ { @@ -5168,20 +5180,20 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:43:10+00:00" + "time": "2021-06-27T11:44:38+00:00" }, { "name": "symfony/translation", - "version": "v5.3.0", + "version": "v5.3.3", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "251de0d921c42ef0a81494d8f37405421deefdf6" + "reference": "380b8c9e944d0e364b25f28e8e555241eb49c01c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/251de0d921c42ef0a81494d8f37405421deefdf6", - "reference": "251de0d921c42ef0a81494d8f37405421deefdf6", + "url": "https://api.github.com/repos/symfony/translation/zipball/380b8c9e944d0e364b25f28e8e555241eb49c01c", + "reference": "380b8c9e944d0e364b25f28e8e555241eb49c01c", "shasum": "" }, "require": { @@ -5247,7 +5259,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v5.3.0" + "source": "https://github.com/symfony/translation/tree/v5.3.3" }, "funding": [ { @@ -5263,7 +5275,7 @@ "type": "tidelift" } ], - "time": "2021-05-29T22:28:28+00:00" + "time": "2021-06-27T12:22:47+00:00" }, { "name": "symfony/translation-contracts", @@ -5345,16 +5357,16 @@ }, { "name": "symfony/yaml", - "version": "v5.3.0", + "version": "v5.3.3", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "3bbcf262fceb3d8f48175302e6ba0ac96e3a5a11" + "reference": "485c83a2fb5893e2ff21bf4bfc7fdf48b4967229" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/3bbcf262fceb3d8f48175302e6ba0ac96e3a5a11", - "reference": "3bbcf262fceb3d8f48175302e6ba0ac96e3a5a11", + "url": "https://api.github.com/repos/symfony/yaml/zipball/485c83a2fb5893e2ff21bf4bfc7fdf48b4967229", + "reference": "485c83a2fb5893e2ff21bf4bfc7fdf48b4967229", "shasum": "" }, "require": { @@ -5400,7 +5412,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v5.3.0" + "source": "https://github.com/symfony/yaml/tree/v5.3.3" }, "funding": [ { @@ -5416,7 +5428,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:43:10+00:00" + "time": "2021-06-24T08:13:00+00:00" }, { "name": "true/punycode", @@ -5632,16 +5644,16 @@ }, { "name": "voku/arrayy", - "version": "7.8.9", + "version": "7.8.10", "source": { "type": "git", "url": "https://github.com/voku/Arrayy.git", - "reference": "d26e7d59ac2f6eb891b77c48bfdb9fe1e76afa60" + "reference": "d9b0b1b398f1b19c3c8d72386f5df3764b877052" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/voku/Arrayy/zipball/d26e7d59ac2f6eb891b77c48bfdb9fe1e76afa60", - "reference": "d26e7d59ac2f6eb891b77c48bfdb9fe1e76afa60", + "url": "https://api.github.com/repos/voku/Arrayy/zipball/d9b0b1b398f1b19c3c8d72386f5df3764b877052", + "reference": "d9b0b1b398f1b19c3c8d72386f5df3764b877052", "shasum": "" }, "require": { @@ -5711,7 +5723,7 @@ "type": "tidelift" } ], - "time": "2021-03-29T13:31:10+00:00" + "time": "2021-06-18T23:23:37+00:00" }, { "name": "voku/email-check", @@ -7186,16 +7198,16 @@ }, { "name": "nikic/php-parser", - "version": "v4.10.5", + "version": "v4.11.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "4432ba399e47c66624bc73c8c0f811e5c109576f" + "reference": "fe14cf3672a149364fb66dfe11bf6549af899f94" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/4432ba399e47c66624bc73c8c0f811e5c109576f", - "reference": "4432ba399e47c66624bc73c8c0f811e5c109576f", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/fe14cf3672a149364fb66dfe11bf6549af899f94", + "reference": "fe14cf3672a149364fb66dfe11bf6549af899f94", "shasum": "" }, "require": { @@ -7236,9 +7248,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.10.5" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.11.0" }, - "time": "2021-05-03T19:11:20+00:00" + "time": "2021-07-03T13:36:55+00:00" }, { "name": "phar-io/manifest", @@ -7793,16 +7805,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.5", + "version": "9.5.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "89ff45ea9d70e35522fb6654a2ebc221158de276" + "reference": "fb9b8333f14e3dce976a60ef6a7e05c7c7ed8bfb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/89ff45ea9d70e35522fb6654a2ebc221158de276", - "reference": "89ff45ea9d70e35522fb6654a2ebc221158de276", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/fb9b8333f14e3dce976a60ef6a7e05c7c7ed8bfb", + "reference": "fb9b8333f14e3dce976a60ef6a7e05c7c7ed8bfb", "shasum": "" }, "require": { @@ -7832,7 +7844,7 @@ "sebastian/global-state": "^5.0.1", "sebastian/object-enumerator": "^4.0.3", "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^2.3.2", + "sebastian/type": "^2.3.4", "sebastian/version": "^3.0.2" }, "require-dev": { @@ -7880,7 +7892,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.5" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.6" }, "funding": [ { @@ -7892,7 +7904,7 @@ "type": "github" } ], - "time": "2021-06-05T04:49:07+00:00" + "time": "2021-06-23T05:14:38+00:00" }, { "name": "psr/cache", @@ -8499,16 +8511,16 @@ }, { "name": "sebastian/global-state", - "version": "5.0.2", + "version": "5.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "a90ccbddffa067b51f574dea6eb25d5680839455" + "reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/a90ccbddffa067b51f574dea6eb25d5680839455", - "reference": "a90ccbddffa067b51f574dea6eb25d5680839455", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/23bd5951f7ff26f12d4e3242864df3e08dec4e49", + "reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49", "shasum": "" }, "require": { @@ -8551,7 +8563,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.2" + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.3" }, "funding": [ { @@ -8559,7 +8571,7 @@ "type": "github" } ], - "time": "2020-10-26T15:55:19+00:00" + "time": "2021-06-11T13:31:12+00:00" }, { "name": "sebastian/lines-of-code", @@ -8850,16 +8862,16 @@ }, { "name": "sebastian/type", - "version": "2.3.2", + "version": "2.3.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "0d1c587401514d17e8f9258a27e23527cb1b06c1" + "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/0d1c587401514d17e8f9258a27e23527cb1b06c1", - "reference": "0d1c587401514d17e8f9258a27e23527cb1b06c1", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b8cd8a1c753c90bc1a0f5372170e3e489136f914", + "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914", "shasum": "" }, "require": { @@ -8894,7 +8906,7 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/2.3.2" + "source": "https://github.com/sebastianbergmann/type/tree/2.3.4" }, "funding": [ { @@ -8902,7 +8914,7 @@ "type": "github" } ], - "time": "2021-06-04T13:02:07+00:00" + "time": "2021-06-15T12:49:02+00:00" }, { "name": "sebastian/version", diff --git a/package-lock.json b/package-lock.json index 6134bb519..7acb4e414 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,18 +8,24 @@ "hasInstallScript": true, "license": "ISC", "devDependencies": { + "@typescript-eslint/eslint-plugin": "^4.28.0", + "@typescript-eslint/parser": "^4.28.0", "babel-eslint": "^10.1.0", "browserslist": ">=4.16.5", "eslint": "^7.20.0", "eslint-config-prettier": "^7.2.0", "eslint-config-react": "^1.1.7", + "eslint-plugin-babel": "^5.3.1", + "eslint-plugin-import": "^2.23.4", "eslint-plugin-prettier": "^3.3.1", "eslint-plugin-react": "^7.22.0", + "eslint-plugin-simple-import-sort": "^7.0.0", "hosted-git-info": ">=2.8.9", "ini": ">=2.0.0", "lerna": "^3.22.1", "postcss": ">=8.2.10", "prettier": "^2.2.1", + "prettier-eslint": "^12.0.0", "typescript": "^4.1.5" } }, @@ -237,6 +243,21 @@ "safe-buffer": "^5.1.2" } }, + "node_modules/@evocateur/npm-registry-fetch/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/@evocateur/npm-registry-fetch/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, "node_modules/@evocateur/pacote": { "version": "9.6.5", "resolved": "https://registry.npmjs.org/@evocateur/pacote/-/pacote-9.6.5.tgz", @@ -274,6 +295,15 @@ "which": "^1.3.1" } }, + "node_modules/@evocateur/pacote/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, "node_modules/@evocateur/pacote/node_modules/rimraf": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", @@ -307,6 +337,12 @@ "which": "bin/which" } }, + "node_modules/@evocateur/pacote/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, "node_modules/@lerna/add": { "version": "3.21.0", "resolved": "https://registry.npmjs.org/@lerna/add/-/add-3.21.0.tgz", @@ -1385,6 +1421,28 @@ "node": ">=4" } }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.scandir/node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, "node_modules/@nodelib/fs.stat": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz", @@ -1394,6 +1452,19 @@ "node": ">= 6" } }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.7.tgz", + "integrity": "sha512-BTIhocbPBSrRmHxOAJFtR18oLhxTtAFDAvL8hY1S3iU8k+E60W/YFs4jrixGzQjMpF4qPXxIQHcjVD9dz1C2QA==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/@octokit/auth-token": { "version": "2.4.5", "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.5.tgz", @@ -1404,15 +1475,15 @@ } }, "node_modules/@octokit/core": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.4.0.tgz", - "integrity": "sha512-6/vlKPP8NF17cgYXqucdshWqmMZGXkuvtcrWCgU5NOI0Pl2GjlmZyWgBMrU8zJ3v2MJlM6++CiB45VKYmhiWWg==", + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.5.1.tgz", + "integrity": "sha512-omncwpLVxMP+GLpLPgeGJBF6IWJFjXDS5flY5VbppePYX9XehevbDykRH9PdCdvqt9TS5AOTiDide7h0qrkHjw==", "dev": true, "peer": true, "dependencies": { "@octokit/auth-token": "^2.4.4", "@octokit/graphql": "^4.5.8", - "@octokit/request": "^5.4.12", + "@octokit/request": "^5.6.0", "@octokit/request-error": "^2.0.5", "@octokit/types": "^6.0.3", "before-after-hook": "^2.2.0", @@ -1420,9 +1491,9 @@ } }, "node_modules/@octokit/core/node_modules/@octokit/request-error": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.5.tgz", - "integrity": "sha512-T/2wcCFyM7SkXzNoyVNWjyVlUwBvW3igM3Btr/eKYiPmucXTtkxt2RBsf6gn3LTzaLSLTQtNmvg+dGsOxQrjZg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", + "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", "dev": true, "peer": true, "dependencies": { @@ -1439,9 +1510,9 @@ "peer": true }, "node_modules/@octokit/endpoint": { - "version": "6.0.11", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.11.tgz", - "integrity": "sha512-fUIPpx+pZyoLW4GCs3yMnlj2LfoXTWDUVPTC4V3MUEKZm48W+XYpeWSZCv+vYF1ZABUm2CqnDVf1sFtIYrj7KQ==", + "version": "6.0.12", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", + "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", "dev": true, "dependencies": { "@octokit/types": "^6.0.3", @@ -1456,13 +1527,13 @@ "dev": true }, "node_modules/@octokit/graphql": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.6.1.tgz", - "integrity": "sha512-2lYlvf4YTDgZCTXTW4+OX+9WTLFtEUc6hGm4qM1nlZjzxj+arizM4aHWzBVBCxY9glh7GIs0WEuiSgbVzv8cmA==", + "version": "4.6.4", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.6.4.tgz", + "integrity": "sha512-SWTdXsVheRmlotWNjKzPOb6Js6tjSqA2a8z9+glDJng0Aqjzti8MEWOtuT8ZSu6wHnci7LZNuarE87+WJBG4vg==", "dev": true, "peer": true, "dependencies": { - "@octokit/request": "^5.3.0", + "@octokit/request": "^5.6.0", "@octokit/types": "^6.0.3", "universal-user-agent": "^6.0.0" } @@ -1475,9 +1546,9 @@ "peer": true }, "node_modules/@octokit/openapi-types": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-6.0.0.tgz", - "integrity": "sha512-CnDdK7ivHkBtJYzWzZm7gEkanA7gKH6a09Eguz7flHw//GacPJLmkHA3f3N++MJmlxD1Fl+mB7B32EEpSCwztQ==", + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-7.3.5.tgz", + "integrity": "sha512-6bm5lzGDOeSnWHM5W8OZ86RD2KpchynU+/Qlm5hNEFjfLDhwfAY2lSe68YRUEYFGlxSHe0HmakyhvmtWoD3Zog==", "dev": true }, "node_modules/@octokit/plugin-enterprise-rest": { @@ -1505,9 +1576,9 @@ } }, "node_modules/@octokit/plugin-request-log": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.3.tgz", - "integrity": "sha512-4RFU4li238jMJAzLgAwkBAw+4Loile5haQMQr+uhFq27BmyJXcXSKvoQKqh0agsZEiUlW6iSv3FAgvmGkur7OQ==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz", + "integrity": "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==", "dev": true, "peerDependencies": { "@octokit/core": ">=3" @@ -1533,18 +1604,16 @@ } }, "node_modules/@octokit/request": { - "version": "5.4.14", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.14.tgz", - "integrity": "sha512-VkmtacOIQp9daSnBmDI92xNIeLuSRDOIuplp/CJomkvzt7M18NXgG044Cx/LFKLgjKt9T2tZR6AtJayba9GTSA==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.0.tgz", + "integrity": "sha512-4cPp/N+NqmaGQwbh3vUsYqokQIzt7VjsgTYVXiwpUP2pxd5YiZB2XuTedbb0SPtv9XS7nzAKjAuQxmY8/aZkiA==", "dev": true, "dependencies": { "@octokit/endpoint": "^6.0.1", - "@octokit/request-error": "^2.0.0", - "@octokit/types": "^6.7.1", - "deprecation": "^2.0.0", + "@octokit/request-error": "^2.1.0", + "@octokit/types": "^6.16.1", "is-plain-object": "^5.0.0", "node-fetch": "^2.6.1", - "once": "^1.4.0", "universal-user-agent": "^6.0.0" } }, @@ -1569,9 +1638,9 @@ } }, "node_modules/@octokit/request/node_modules/@octokit/request-error": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.5.tgz", - "integrity": "sha512-T/2wcCFyM7SkXzNoyVNWjyVlUwBvW3igM3Btr/eKYiPmucXTtkxt2RBsf6gn3LTzaLSLTQtNmvg+dGsOxQrjZg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", + "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", "dev": true, "dependencies": { "@octokit/types": "^6.0.3", @@ -1610,14 +1679,20 @@ } }, "node_modules/@octokit/types": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.13.0.tgz", - "integrity": "sha512-W2J9qlVIU11jMwKHUp5/rbVUeErqelCsO5vW5PKNb7wAXQVUz87Rc+imjlEvpvbH8yUb+KHmv8NEjVZdsdpyxA==", + "version": "6.16.7", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.16.7.tgz", + "integrity": "sha512-OuQELiwIKeDySgNID52vm33wDRc2aaX8lKYgAw9Hmw939ITow1HspT8/AH3M3jgGFUMDmHlMNBNEmH7xV7ggXQ==", "dev": true, "dependencies": { - "@octokit/openapi-types": "^6.0.0" + "@octokit/openapi-types": "^7.3.5" } }, + "node_modules/@types/eslint-visitor-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz", + "integrity": "sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==", + "dev": true + }, "node_modules/@types/glob": { "version": "7.1.3", "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.3.tgz", @@ -1628,6 +1703,18 @@ "@types/node": "*" } }, + "node_modules/@types/json-schema": { + "version": "7.0.7", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.7.tgz", + "integrity": "sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA==", + "dev": true + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=", + "dev": true + }, "node_modules/@types/minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.4.tgz", @@ -1641,9 +1728,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "14.14.37", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.37.tgz", - "integrity": "sha512-XYmBiy+ohOR4Lh5jE379fV2IU+6Jn4g5qASinhitfyO71b/sCo6MKsMLF5tc7Zf2CE8hViVQyYSobJNke8OvUw==", + "version": "15.12.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-15.12.5.tgz", + "integrity": "sha512-se3yX7UHv5Bscf8f1ERKvQOD6sTyycH3hdaoozvaLxgUiY5lIGEeH37AD0G0Qi9kPqihPn0HOfd2yaIEN9VwEg==", "dev": true }, "node_modules/@types/normalize-package-data": { @@ -1652,6 +1739,349 @@ "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", "dev": true }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.28.1.tgz", + "integrity": "sha512-9yfcNpDaNGQ6/LQOX/KhUFTR1sCKH+PBr234k6hI9XJ0VP5UqGxap0AnNwBnWFk1MNyWBylJH9ZkzBXC+5akZQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/experimental-utils": "4.28.1", + "@typescript-eslint/scope-manager": "4.28.1", + "debug": "^4.3.1", + "functional-red-black-tree": "^1.0.1", + "regexpp": "^3.1.0", + "semver": "^7.3.5", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^4.0.0", + "eslint": "^5.0.0 || ^6.0.0 || ^7.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/experimental-utils": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.28.1.tgz", + "integrity": "sha512-n8/ggadrZ+uyrfrSEchx3jgODdmcx7MzVM2sI3cTpI/YlfSm0+9HEUaWw3aQn2urL2KYlWYMDgn45iLfjDYB+Q==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.7", + "@typescript-eslint/scope-manager": "4.28.1", + "@typescript-eslint/types": "4.28.1", + "@typescript-eslint/typescript-estree": "4.28.1", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + } + }, + "node_modules/@typescript-eslint/experimental-utils/node_modules/eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^2.0.0" + }, + "engines": { + "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=5" + } + }, + "node_modules/@typescript-eslint/experimental-utils/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.28.1.tgz", + "integrity": "sha512-UjrMsgnhQIIK82hXGaD+MCN8IfORS1CbMdu7VlZbYa8LCZtbZjJA26De4IPQB7XYZbL8gJ99KWNj0l6WD0guJg==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "4.28.1", + "@typescript-eslint/types": "4.28.1", + "@typescript-eslint/typescript-estree": "4.28.1", + "debug": "^4.3.1" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^5.0.0 || ^6.0.0 || ^7.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.28.1.tgz", + "integrity": "sha512-o95bvGKfss6705x7jFGDyS7trAORTy57lwJ+VsYwil/lOUxKQ9tA7Suuq+ciMhJc/1qPwB3XE2DKh9wubW8YYA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "4.28.1", + "@typescript-eslint/visitor-keys": "4.28.1" + }, + "engines": { + "node": "^8.10.0 || ^10.13.0 || >=11.10.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.28.1.tgz", + "integrity": "sha512-4z+knEihcyX7blAGi7O3Fm3O6YRCP+r56NJFMNGsmtdw+NCdpG5SgNz427LS9nQkRVTswZLhz484hakQwB8RRg==", + "dev": true, + "engines": { + "node": "^8.10.0 || ^10.13.0 || >=11.10.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.28.1.tgz", + "integrity": "sha512-GhKxmC4sHXxHGJv8e8egAZeTZ6HI4mLU6S7FUzvFOtsk7ZIDN1ksA9r9DyOgNqowA9yAtZXV0Uiap61bIO81FQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "4.28.1", + "@typescript-eslint/visitor-keys": "4.28.1", + "debug": "^4.3.1", + "globby": "^11.0.3", + "is-glob": "^4.0.1", + "semver": "^7.3.5", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/fast-glob": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.6.tgz", + "integrity": "sha512-GnLuqj/pvQ7pX8/L4J84nijv6sAnlwvSDpMkJi9i7nPmPxGtRPkBSStfvDW5l6nMdX9VWe+pkKWFTgD+vF2QSQ==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/globby": { + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", + "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.1.1", + "ignore": "^5.1.4", + "merge2": "^1.3.0", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/ignore": { + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", + "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/micromatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", + "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", + "dev": true, + "dependencies": { + "braces": "^3.0.1", + "picomatch": "^2.2.3" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.28.1.tgz", + "integrity": "sha512-K4HMrdFqr9PFquPu178SaSb92CaWe2yErXyPumc8cYWxFmhgJsNY9eSePmO05j0JhBvf2Cdhptd6E6Yv9HVHcg==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "4.28.1", + "eslint-visitor-keys": "^2.0.0" + }, + "engines": { + "node": "^8.10.0 || ^10.13.0 || >=11.10.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, "node_modules/@zkochan/cmd-shim": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@zkochan/cmd-shim/-/cmd-shim-3.1.0.tgz", @@ -1933,6 +2363,23 @@ "node": ">=0.10.0" } }, + "node_modules/array.prototype.flat": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.4.tgz", + "integrity": "sha512-4470Xi3GAPAjZqFcljX2xzckv1qeKPizoNkiS0+O4IoPR2ZNpcjE0pkhdihlDouK+x6QOast26B4Q/O9DJnwSg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "define-properties": "^1.1.3", + "es-abstract": "^1.18.0-next.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/array.prototype.flatmap": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.2.4.tgz", @@ -2108,9 +2555,9 @@ } }, "node_modules/before-after-hook": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.1.tgz", - "integrity": "sha512-/6FKxSTWoJdbsLDF8tdIjaRiFXiE6UHsEHE3OPI/cwPURCVi1ukP0gmLn7XWEiFk5TcwQjjY5PWsU+j+tgXgmw==", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.2.tgz", + "integrity": "sha512-3pZEU3NT5BFUo/AD5ERPWOgQOCZITni6iavr5AUw5AUwQjMlI0kzu5btnyD39AF0gUEsDPwJT+oY1ORBJijPjQ==", "dev": true }, "node_modules/bluebird": { @@ -2253,6 +2700,15 @@ "y18n": "^4.0.0" } }, + "node_modules/cacache/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, "node_modules/cacache/node_modules/rimraf": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", @@ -2265,6 +2721,12 @@ "rimraf": "bin.js" } }, + "node_modules/cacache/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, "node_modules/cache-base": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", @@ -2547,13 +3009,28 @@ "wrap-ansi": "^5.1.0" } }, - "node_modules/cliui/node_modules/ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "node_modules/cliui/node_modules/ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/cliui/node_modules/emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "node_modules/cliui/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", "dev": true, "engines": { - "node": ">=6" + "node": ">=4" } }, "node_modules/cliui/node_modules/string-width": { @@ -2703,6 +3180,15 @@ "node": ">= 0.8" } }, + "node_modules/common-tags": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.0.tgz", + "integrity": "sha512-6P6g0uetGpW/sdyUy/iQQCbFF0kWVMSIVSyYz7Zgjcgh8mgw8PQzDNZeyZ5DQ2gM7LBoZPHmnjz8rUthkBG5tw==", + "dev": true, + "engines": { + "node": ">=4.0.0" + } + }, "node_modules/compare-func": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz", @@ -2762,9 +3248,9 @@ } }, "node_modules/config-chain": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.12.tgz", - "integrity": "sha512-a1eOIcu8+7lUInge4Rpf/n4Krkf3Dd9lqhljRzII1/Zno/kRtUWnznPO3jOKBmTEktkt3fkxisUcivoj0ebzoA==", + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz", + "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==", "dev": true, "dependencies": { "ini": "^1.3.4", @@ -3363,6 +3849,12 @@ "node": ">=4" } }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "dev": true + }, "node_modules/doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", @@ -3452,9 +3944,9 @@ "dev": true }, "node_modules/emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, "node_modules/encoding": { @@ -3467,9 +3959,9 @@ } }, "node_modules/encoding/node_modules/iconv-lite": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.2.tgz", - "integrity": "sha512-2y91h5OpQlolefMPmUlivelittSWy0rP+oYVpn6A7GwVHNE8AWzoYOBNmlwks3LobaJxgHCYZAnyNo2GgpNRNQ==", + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", "dev": true, "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" @@ -3687,6 +4179,252 @@ "integrity": "sha1-oJGND8R9DpvRYaRzCAIdqF0lhbM=", "dev": true }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.4.tgz", + "integrity": "sha512-ogtf+5AB/O+nM6DIeBUNr2fuT7ot9Qg/1harBfBtaP13ekEWFQEEMP94BCB7zaNW3gyY+8SHYF00rnqYwXKWOA==", + "dev": true, + "dependencies": { + "debug": "^2.6.9", + "resolve": "^1.13.1" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/eslint-module-utils": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.6.1.tgz", + "integrity": "sha512-ZXI9B8cxAJIH4nfkhTwcRTEAnrVfobYqwjWy/QMCZ8rHkZHFjf9yO4BzpiF9kCSfNlMG54eKigISHpX0+AaT4A==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "pkg-dir": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils/node_modules/find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "dependencies": { + "locate-path": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-module-utils/node_modules/locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "dependencies": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-module-utils/node_modules/p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "dependencies": { + "p-try": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-module-utils/node_modules/p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "dependencies": { + "p-limit": "^1.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-module-utils/node_modules/p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-module-utils/node_modules/pkg-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", + "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", + "dev": true, + "dependencies": { + "find-up": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-plugin-babel": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-babel/-/eslint-plugin-babel-5.3.1.tgz", + "integrity": "sha512-VsQEr6NH3dj664+EyxJwO4FCYm/00JhYb3Sk3ft8o+fpKuIfQ9TaW6uVUfvwMXHcf/lsnRIoyFPsLMyiWCSL/g==", + "dev": true, + "dependencies": { + "eslint-rule-composer": "^0.3.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": ">=4.0.0" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.23.4", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.23.4.tgz", + "integrity": "sha512-6/wP8zZRsnQFiR3iaPFgh5ImVRM1WN5NUWfTIRqwOdeiGJlBcSk82o1FEVq8yXmy4lkIzTo7YhHCIxlU/2HyEQ==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.3", + "array.prototype.flat": "^1.2.4", + "debug": "^2.6.9", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.4", + "eslint-module-utils": "^2.6.1", + "find-up": "^2.0.0", + "has": "^1.0.3", + "is-core-module": "^2.4.0", + "minimatch": "^3.0.4", + "object.values": "^1.1.3", + "pkg-up": "^2.0.0", + "read-pkg-up": "^3.0.0", + "resolve": "^1.20.0", + "tsconfig-paths": "^3.9.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "dependencies": { + "locate-path": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-plugin-import/node_modules/locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "dependencies": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-plugin-import/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/eslint-plugin-import/node_modules/p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "dependencies": { + "p-try": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-plugin-import/node_modules/p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "dependencies": { + "p-limit": "^1.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-plugin-import/node_modules/p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/eslint-plugin-prettier": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.3.1.tgz", @@ -3759,6 +4497,24 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/eslint-plugin-simple-import-sort": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-7.0.0.tgz", + "integrity": "sha512-U3vEDB5zhYPNfxT5TYR7u01dboFZp+HNpnGhkDB2g/2E4wZ/g1Q9Ton8UwCLfRV9yAKyYqDh62oHOamvkFxsvw==", + "dev": true, + "peerDependencies": { + "eslint": ">=5.0.0" + } + }, + "node_modules/eslint-rule-composer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz", + "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==", + "dev": true, + "engines": { + "node": ">=4.0.0" + } + }, "node_modules/eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", @@ -4383,6 +5139,15 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, + "node_modules/fastq": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz", + "integrity": "sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, "node_modules/figgy-pudding": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz", @@ -5643,6 +6408,27 @@ "node": ">= 0.4.0" } }, + "node_modules/has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-ansi/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/has-bigints": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.1.tgz", @@ -5730,24 +6516,6 @@ "node": ">=10" } }, - "node_modules/hosted-git-info/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/hosted-git-info/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/http-cache-semantics": { "version": "3.8.1", "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz", @@ -5856,9 +6624,9 @@ } }, "node_modules/ignore-walk": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.3.tgz", - "integrity": "sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.4.tgz", + "integrity": "sha512-PY6Ii8o1jMRA1z4F2hRkH/xN59ox43DavKvD3oDpfurRlOJyAHpifIwpbdv1n4jt4ov0jSpw3kQ4GhJnpBL6WQ==", "dev": true, "dependencies": { "minimatch": "^3.0.4" @@ -6003,6 +6771,49 @@ "node": ">=6" } }, + "node_modules/inquirer/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/inquirer/node_modules/string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "dependencies": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/inquirer/node_modules/string-width/node_modules/ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/inquirer/node_modules/string-width/node_modules/strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "dependencies": { + "ansi-regex": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/inquirer/node_modules/strip-ansi": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", @@ -6108,9 +6919,9 @@ } }, "node_modules/is-core-module": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.2.0.tgz", - "integrity": "sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.4.0.tgz", + "integrity": "sha512-6A2fkfq1rfeQZjxrZJGerpLCTHRNEBiSgnu0+obeJpEPZRUooHgsizvzv0ZjJwOz3iWIHdJtVWJ/tmPr3D21/A==", "dev": true, "dependencies": { "has": "^1.0.3" @@ -6212,12 +7023,12 @@ } }, "node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, "engines": { - "node": ">=4" + "node": ">=8" } }, "node_modules/is-glob": { @@ -6324,9 +7135,9 @@ } }, "node_modules/is-ssh": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/is-ssh/-/is-ssh-1.3.2.tgz", - "integrity": "sha512-elEw0/0c2UscLrNG+OAorbP539E3rhliKPg+hDMWN9VwrDXfYK+4PBEykDPfxlYYtQvl84TascnQyobfQLHEhQ==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/is-ssh/-/is-ssh-1.3.3.tgz", + "integrity": "sha512-NKzJmQzJfEEma3w5cJNcUMxoXfDjz0Zj0eyCalHn2E6VOwlzjZo0yuO2fcBSf8zhFuVCL/82/r5gRcoi6aEPVQ==", "dev": true, "dependencies": { "protocols": "^1.1.0" @@ -6501,6 +7312,18 @@ "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", "dev": true }, + "node_modules/json5": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", + "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, "node_modules/jsonfile": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", @@ -6688,6 +7511,12 @@ "integrity": "sha1-dWy1FQyjum8RCFp4hJZF8Yj4Xzc=", "dev": true }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, "node_modules/lodash.set": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", @@ -6731,6 +7560,84 @@ "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=", "dev": true }, + "node_modules/loglevel": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.7.1.tgz", + "integrity": "sha512-Hesni4s5UkWkwCGJMQGAh71PaLUmKFM60dHvq0zi/vDhhrzuk+4GgNbTXJ12YYQJn6ZKBDNIjYcuQGKudvqrIw==", + "dev": true, + "engines": { + "node": ">= 0.6.0" + }, + "funding": { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/loglevel" + } + }, + "node_modules/loglevel-colored-level-prefix": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/loglevel-colored-level-prefix/-/loglevel-colored-level-prefix-1.0.0.tgz", + "integrity": "sha1-akAhj9x64V/HbD0PPmdsRlOIYD4=", + "dev": true, + "dependencies": { + "chalk": "^1.1.3", + "loglevel": "^1.4.1" + } + }, + "node_modules/loglevel-colored-level-prefix/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/loglevel-colored-level-prefix/node_modules/ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/loglevel-colored-level-prefix/node_modules/chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "dependencies": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/loglevel-colored-level-prefix/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/loglevel-colored-level-prefix/node_modules/supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, "node_modules/loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", @@ -6757,18 +7664,21 @@ } }, "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, "dependencies": { - "yallist": "^3.0.2" + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" } }, "node_modules/macos-release": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.4.1.tgz", - "integrity": "sha512-H/QHeBIN1fIGJX517pvK8IEK53yQOW7YcEI55oYtgjDdoCQQz7eJS94qt5kNrscReEyuD/JcdFCm2XBEcGOITg==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.5.0.tgz", + "integrity": "sha512-EIgv+QZ9r+814gjJj0Bt5vSLJLzswGmSUbUpbi9AIr/fsN2IWFBl2NucV9PAiek+U1STK468tEkxmVYUtuAN3g==", "dev": true, "engines": { "node": ">=6" @@ -6817,6 +7727,21 @@ "ssri": "^6.0.0" } }, + "node_modules/make-fetch-happen/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-fetch-happen/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, "node_modules/map-cache": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", @@ -6827,9 +7752,9 @@ } }, "node_modules/map-obj": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.2.0.tgz", - "integrity": "sha512-NAq0fCmZYGz9UFEQyndp7sisrow4GroyGeKluyKC/chuITZsPyOyC1UJZPJlVFImhXdROIP5xqouRLThT3BbpQ==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.2.1.tgz", + "integrity": "sha512-+WA2/1sPmDj1dlvvJmB5G6JKfY9dpn7EVBUL06+y6PoljPkh+6V1QihwxNkbcGxCRjt2b0F9K0taiCuo7MbdFQ==", "dev": true, "engines": { "node": ">=8" @@ -7031,6 +7956,15 @@ "node": ">=8" } }, + "node_modules/meow/node_modules/trim-newlines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", + "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/meow/node_modules/type-fest": { "version": "0.18.1", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", @@ -7077,21 +8011,21 @@ } }, "node_modules/mime-db": { - "version": "1.47.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.47.0.tgz", - "integrity": "sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw==", + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.48.0.tgz", + "integrity": "sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ==", "dev": true, "engines": { "node": ">= 0.6" } }, "node_modules/mime-types": { - "version": "2.1.30", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.30.tgz", - "integrity": "sha512-crmjA4bLtR8m9qLpHvgxSChT+XoSlZi8J4n/aIdn3z92e/U47Z0V/yl+Wh9W046GgFVAmoNR/fmdbZYcSSIUeg==", + "version": "2.1.31", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.31.tgz", + "integrity": "sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==", "dev": true, "dependencies": { - "mime-db": "1.47.0" + "mime-db": "1.48.0" }, "engines": { "node": ">= 0.6" @@ -7157,6 +8091,12 @@ "yallist": "^3.0.0" } }, + "node_modules/minipass/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, "node_modules/minizlib": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.3.3.tgz", @@ -7538,19 +8478,10 @@ "semver": "bin/semver" } }, - "node_modules/normalize-url": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-3.3.0.tgz", - "integrity": "sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/npm-bundled": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.1.1.tgz", - "integrity": "sha512-gqkfgGePhTpAEgUsGEgcq1rqPXA+tv/aVBlgEzfXwA1yiUJF7xtEt3CtVwOjNYQOVknDk0F20w58Fnm3EtG0fA==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.1.2.tgz", + "integrity": "sha512-x5DHup0SuyQcmL3s7Rx/YQ8sbw/Hzg0rj48eN0dV7hf5cmQq5PXIeioroH3raV1QC1yh3uTYuMThvEQF3iKgGQ==", "dev": true, "dependencies": { "npm-normalize-package-bin": "^1.0.1" @@ -8199,17 +9130,26 @@ } }, "node_modules/parse-url": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/parse-url/-/parse-url-5.0.2.tgz", - "integrity": "sha512-Czj+GIit4cdWtxo3ISZCvLiUjErSo0iI3wJ+q9Oi3QuMYTI6OZu+7cewMWZ+C1YAnKhYTk6/TLuhIgCypLthPA==", + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/parse-url/-/parse-url-5.0.6.tgz", + "integrity": "sha512-nZp+U7NFVTsBXTh6oGxdwvd7ncz3hJCl74q0lC0pLc3ypXJMKFUpfUEAd4r1x8zVVF5UHFik+CBNOQKN0ayByA==", "dev": true, "dependencies": { "is-ssh": "^1.3.0", - "normalize-url": "^3.3.0", + "normalize-url": "4.5.0", "parse-path": "^4.0.0", "protocols": "^1.4.0" } }, + "node_modules/parse-url/node_modules/normalize-url": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz", + "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/pascalcase": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", @@ -8285,6 +9225,18 @@ "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", "dev": true }, + "node_modules/picomatch": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", + "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/pify": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", @@ -8294,37 +9246,107 @@ "node": ">=6" } }, - "node_modules/pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "node_modules/pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, + "dependencies": { + "pinkie": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pkg-dir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", + "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", + "dev": true, + "dependencies": { + "find-up": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-2.0.0.tgz", + "integrity": "sha1-yBmscoBZpGHKscOImivjxJoATX8=", + "dev": true, + "dependencies": { + "find-up": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/pkg-up/node_modules/find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "dependencies": { + "locate-path": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/pkg-up/node_modules/locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "dependencies": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/pkg-up/node_modules/p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", "dev": true, + "dependencies": { + "p-try": "^1.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "node_modules/pkg-up/node_modules/p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "dev": true, "dependencies": { - "pinkie": "^2.0.0" + "p-limit": "^1.1.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/pkg-dir": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", - "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", + "node_modules/pkg-up/node_modules/p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", "dev": true, - "dependencies": { - "find-up": "^3.0.0" - }, "engines": { - "node": ">=6" + "node": ">=4" } }, "node_modules/posix-character-classes": { @@ -8375,6 +9397,150 @@ "node": ">=10.13.0" } }, + "node_modules/prettier-eslint": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/prettier-eslint/-/prettier-eslint-12.0.0.tgz", + "integrity": "sha512-N8SGGQwAosISXTNl1E57sBbtnqUGlyRWjcfIUxyD3HF4ynehA9GZ8IfJgiep/OfYvCof/JEpy9ZqSl250Wia7A==", + "dev": true, + "dependencies": { + "@typescript-eslint/parser": "^3.0.0", + "common-tags": "^1.4.0", + "dlv": "^1.1.0", + "eslint": "^7.9.0", + "indent-string": "^4.0.0", + "lodash.merge": "^4.6.0", + "loglevel-colored-level-prefix": "^1.0.0", + "prettier": "^2.0.0", + "pretty-format": "^23.0.1", + "require-relative": "^0.8.7", + "typescript": "^3.9.3", + "vue-eslint-parser": "~7.1.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/prettier-eslint/node_modules/@typescript-eslint/experimental-utils": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.10.1.tgz", + "integrity": "sha512-DewqIgscDzmAfd5nOGe4zm6Bl7PKtMG2Ad0KG8CUZAHlXfAKTF9Ol5PXhiMh39yRL2ChRH1cuuUGOcVyyrhQIw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.3", + "@typescript-eslint/types": "3.10.1", + "@typescript-eslint/typescript-estree": "3.10.1", + "eslint-scope": "^5.0.0", + "eslint-utils": "^2.0.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + } + }, + "node_modules/prettier-eslint/node_modules/@typescript-eslint/parser": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.10.1.tgz", + "integrity": "sha512-Ug1RcWcrJP02hmtaXVS3axPPTTPnZjupqhgj+NnZ6BCkwSImWk/283347+x9wN+lqOdK9Eo3vsyiyDHgsmiEJw==", + "dev": true, + "dependencies": { + "@types/eslint-visitor-keys": "^1.0.0", + "@typescript-eslint/experimental-utils": "3.10.1", + "@typescript-eslint/types": "3.10.1", + "@typescript-eslint/typescript-estree": "3.10.1", + "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^5.0.0 || ^6.0.0 || ^7.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/prettier-eslint/node_modules/@typescript-eslint/types": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-3.10.1.tgz", + "integrity": "sha512-+3+FCUJIahE9q0lDi1WleYzjCwJs5hIsbugIgnbB+dSCYUxl8L6PwmsyOPFZde2hc1DlTo/xnkOgiTLSyAbHiQ==", + "dev": true, + "engines": { + "node": "^8.10.0 || ^10.13.0 || >=11.10.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/prettier-eslint/node_modules/@typescript-eslint/typescript-estree": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.10.1.tgz", + "integrity": "sha512-QbcXOuq6WYvnB3XPsZpIwztBoquEYLXh2MtwVU+kO8jgYCiv4G5xrSP/1wg4tkvrEE+esZVquIPX/dxPlePk1w==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "3.10.1", + "@typescript-eslint/visitor-keys": "3.10.1", + "debug": "^4.1.1", + "glob": "^7.1.6", + "is-glob": "^4.0.1", + "lodash": "^4.17.15", + "semver": "^7.3.2", + "tsutils": "^3.17.1" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/prettier-eslint/node_modules/@typescript-eslint/visitor-keys": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-3.10.1.tgz", + "integrity": "sha512-9JgC82AaQeglebjZMgYR5wgmfUdUc+EitGUUMW8u2nDckaeimzW+VsoLV6FoimPv2id3VQzfjwBxEMVz08ameQ==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": "^8.10.0 || ^10.13.0 || >=11.10.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/prettier-eslint/node_modules/typescript": { + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", + "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, "node_modules/prettier-linter-helpers": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", @@ -8387,6 +9553,25 @@ "node": ">=6.0.0" } }, + "node_modules/pretty-format": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-23.6.0.tgz", + "integrity": "sha512-zf9NV1NSlDLDjycnwm6hpFATCGl/K1lt0R/GdkAK2O5LN/rwJoB+Mh93gGJjut4YbmecbfgLWVGSTCr0Ewvvbw==", + "dev": true, + "dependencies": { + "ansi-regex": "^3.0.0", + "ansi-styles": "^3.2.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -8551,6 +9736,26 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/quick-lru": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", @@ -8800,9 +10005,9 @@ } }, "node_modules/repeat-element": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", - "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", + "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", "dev": true, "engines": { "node": ">=0.10.0" @@ -8894,6 +10099,12 @@ "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", "dev": true }, + "node_modules/require-relative": { + "version": "0.8.7", + "resolved": "https://registry.npmjs.org/require-relative/-/require-relative-0.8.7.tgz", + "integrity": "sha1-eZlTn8ngR6N5KPoZb44VY9q9Nt4=", + "dev": true + }, "node_modules/resolve": { "version": "1.20.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", @@ -8975,6 +10186,16 @@ "node": "*" } }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, "node_modules/rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", @@ -8999,6 +10220,29 @@ "node": ">=0.12.0" } }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, "node_modules/run-queue": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz", @@ -9076,24 +10320,6 @@ "node": ">=10" } }, - "node_modules/semver/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", @@ -9260,15 +10486,6 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/slide": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/slide/-/slide-1.1.6.tgz", @@ -9591,9 +10808,9 @@ } }, "node_modules/spdx-license-ids": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.7.tgz", - "integrity": "sha512-U+MTEOO0AiDzxwFvoa4JVnMV6mZlJKk2sBLt90s7G0Gd0Mlknc7kxEn3nuDPNZRta7O2uy8oLcZLVT+4sqNZHQ==", + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.9.tgz", + "integrity": "sha512-Ki212dKK4ogX+xDo4CtOZBVIwhsKBEfsEEcwmJfLQzirgc2jIWdzg40Unxz/HzEUqM1WFzVlQSMF9kZZ2HboLQ==", "dev": true }, "node_modules/split": { @@ -9809,37 +11026,17 @@ } }, "node_modules/string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "dependencies": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/string-width/node_modules/ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/string-width/node_modules/strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", + "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", "dev": true, "dependencies": { - "ansi-regex": "^3.0.0" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=4" + "node": ">=8" } }, "node_modules/string.prototype.matchall": { @@ -10005,40 +11202,11 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/table/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/table/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/table/node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/table/node_modules/string-width": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true }, "node_modules/tar": { "version": "4.4.13", @@ -10058,6 +11226,12 @@ "node": ">=4.5" } }, + "node_modules/tar/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, "node_modules/temp-dir": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-1.0.0.tgz", @@ -10240,15 +11414,6 @@ "punycode": "^2.1.0" } }, - "node_modules/trim-newlines": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.0.tgz", - "integrity": "sha512-C4+gOpvmxaSMKuEf9Qc134F1ZuOHVXKRbtEflf4NTtuuJDEIJ9p5PXsalL8SkeRw+qit1Mo+yuvMPAKwWg/1hA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/trim-off-newlines": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz", @@ -10258,12 +11423,39 @@ "node": ">=0.10.0" } }, + "node_modules/tsconfig-paths": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz", + "integrity": "sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw==", + "dev": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.1", + "minimist": "^1.2.0", + "strip-bom": "^3.0.0" + } + }, "node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, "node_modules/tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", @@ -10323,9 +11515,9 @@ } }, "node_modules/uglify-js": { - "version": "3.13.3", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.3.tgz", - "integrity": "sha512-otIc7O9LyxpUcQoXzj2hL4LPWKklO6LJWoJUzNa8A17Xgi4fOeDC8FBDOLHnC/Slo1CQgsZMcM6as0M76BZaig==", + "version": "3.13.10", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.10.tgz", + "integrity": "sha512-57H3ACYFXeo1IaZ1w02sfA71wI60MGco/IQFjOqK+WtKoprh7Go2/yvd2HPtoJILO2Or84ncLccI4xoHMTSbGg==", "dev": true, "optional": true, "bin": { @@ -10527,6 +11719,7 @@ "version": "3.4.0", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", "dev": true, "bin": { "uuid": "bin/uuid" @@ -10571,6 +11764,43 @@ "extsprintf": "^1.2.0" } }, + "node_modules/vue-eslint-parser": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-7.1.1.tgz", + "integrity": "sha512-8FdXi0gieEwh1IprIBafpiJWcApwrU+l2FEj8c1HtHFdNXMd0+2jUSjBVmcQYohf/E72irwAXEXLga6TQcB3FA==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "eslint-scope": "^5.0.0", + "eslint-visitor-keys": "^1.1.0", + "espree": "^6.2.1", + "esquery": "^1.0.1", + "lodash": "^4.17.15" + }, + "engines": { + "node": ">=8.10" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=5.0.0" + } + }, + "node_modules/vue-eslint-parser/node_modules/espree": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-6.2.1.tgz", + "integrity": "sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw==", + "dev": true, + "dependencies": { + "acorn": "^7.1.1", + "acorn-jsx": "^5.2.0", + "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/wcwidth": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", @@ -10643,6 +11873,49 @@ "string-width": "^1.0.2 || 2" } }, + "node_modules/wide-align/node_modules/ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/wide-align/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/wide-align/node_modules/string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "dependencies": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/wide-align/node_modules/strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "dependencies": { + "ansi-regex": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/windows-release": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/windows-release/-/windows-release-3.3.3.tgz", @@ -10696,6 +11969,21 @@ "node": ">=6" } }, + "node_modules/wrap-ansi/node_modules/emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/wrap-ansi/node_modules/string-width": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", @@ -10827,15 +12115,15 @@ } }, "node_modules/y18n": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz", - "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", "dev": true }, "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true }, "node_modules/yargs": { @@ -10858,9 +12146,9 @@ } }, "node_modules/yargs-parser": { - "version": "20.2.7", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.7.tgz", - "integrity": "sha512-FiNkvbeHzB/syOjIUxFDCnhSfzAL8R5vs40MgLFBorXACCOAEaWu0gRZl14vG8MR9AOJIZbmkjhusqBYZ3HTHw==", + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "dev": true, "engines": { "node": ">=10" @@ -10875,6 +12163,21 @@ "node": ">=6" } }, + "node_modules/yargs/node_modules/emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "node_modules/yargs/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/yargs/node_modules/string-width": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", @@ -10902,9 +12205,9 @@ } }, "node_modules/yargs/node_modules/yargs-parser": { - "version": "15.0.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-15.0.1.tgz", - "integrity": "sha512-0OAMV2mAZQrs3FkNpDQcBk1x5HXb8X4twADss4S0Iuk+2dGnLOE/fRHrsYm542GduMveyA77OF4wrNJuanRCWw==", + "version": "15.0.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-15.0.3.tgz", + "integrity": "sha512-/MVEVjTXy/cGAjdtQf8dW3V9b97bPN7rNn8ETj6BmAQL7ibC7O1Q9SPJbGjgh3SlwoBNXMzj/ZGIj8mBgl12YA==", "dev": true, "dependencies": { "camelcase": "^5.0.0", @@ -11108,6 +12411,23 @@ "make-fetch-happen": "^5.0.0", "npm-package-arg": "^6.1.0", "safe-buffer": "^5.1.2" + }, + "dependencies": { + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + } } }, "@evocateur/pacote": { @@ -11147,6 +12467,15 @@ "which": "^1.3.1" }, "dependencies": { + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, "rimraf": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", @@ -11170,6 +12499,12 @@ "requires": { "isexe": "^2.0.0" } + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true } } }, @@ -12067,12 +13402,40 @@ "glob-to-regexp": "^0.3.0" } }, + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "dependencies": { + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true + } + } + }, "@nodelib/fs.stat": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz", "integrity": "sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==", "dev": true }, + "@nodelib/fs.walk": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.7.tgz", + "integrity": "sha512-BTIhocbPBSrRmHxOAJFtR18oLhxTtAFDAvL8hY1S3iU8k+E60W/YFs4jrixGzQjMpF4qPXxIQHcjVD9dz1C2QA==", + "dev": true, + "requires": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + } + }, "@octokit/auth-token": { "version": "2.4.5", "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.5.tgz", @@ -12083,15 +13446,15 @@ } }, "@octokit/core": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.4.0.tgz", - "integrity": "sha512-6/vlKPP8NF17cgYXqucdshWqmMZGXkuvtcrWCgU5NOI0Pl2GjlmZyWgBMrU8zJ3v2MJlM6++CiB45VKYmhiWWg==", + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.5.1.tgz", + "integrity": "sha512-omncwpLVxMP+GLpLPgeGJBF6IWJFjXDS5flY5VbppePYX9XehevbDykRH9PdCdvqt9TS5AOTiDide7h0qrkHjw==", "dev": true, "peer": true, "requires": { "@octokit/auth-token": "^2.4.4", "@octokit/graphql": "^4.5.8", - "@octokit/request": "^5.4.12", + "@octokit/request": "^5.6.0", "@octokit/request-error": "^2.0.5", "@octokit/types": "^6.0.3", "before-after-hook": "^2.2.0", @@ -12099,9 +13462,9 @@ }, "dependencies": { "@octokit/request-error": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.5.tgz", - "integrity": "sha512-T/2wcCFyM7SkXzNoyVNWjyVlUwBvW3igM3Btr/eKYiPmucXTtkxt2RBsf6gn3LTzaLSLTQtNmvg+dGsOxQrjZg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", + "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", "dev": true, "peer": true, "requires": { @@ -12120,9 +13483,9 @@ } }, "@octokit/endpoint": { - "version": "6.0.11", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.11.tgz", - "integrity": "sha512-fUIPpx+pZyoLW4GCs3yMnlj2LfoXTWDUVPTC4V3MUEKZm48W+XYpeWSZCv+vYF1ZABUm2CqnDVf1sFtIYrj7KQ==", + "version": "6.0.12", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", + "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", "dev": true, "requires": { "@octokit/types": "^6.0.3", @@ -12139,13 +13502,13 @@ } }, "@octokit/graphql": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.6.1.tgz", - "integrity": "sha512-2lYlvf4YTDgZCTXTW4+OX+9WTLFtEUc6hGm4qM1nlZjzxj+arizM4aHWzBVBCxY9glh7GIs0WEuiSgbVzv8cmA==", + "version": "4.6.4", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.6.4.tgz", + "integrity": "sha512-SWTdXsVheRmlotWNjKzPOb6Js6tjSqA2a8z9+glDJng0Aqjzti8MEWOtuT8ZSu6wHnci7LZNuarE87+WJBG4vg==", "dev": true, "peer": true, "requires": { - "@octokit/request": "^5.3.0", + "@octokit/request": "^5.6.0", "@octokit/types": "^6.0.3", "universal-user-agent": "^6.0.0" }, @@ -12160,9 +13523,9 @@ } }, "@octokit/openapi-types": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-6.0.0.tgz", - "integrity": "sha512-CnDdK7ivHkBtJYzWzZm7gEkanA7gKH6a09Eguz7flHw//GacPJLmkHA3f3N++MJmlxD1Fl+mB7B32EEpSCwztQ==", + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-7.3.5.tgz", + "integrity": "sha512-6bm5lzGDOeSnWHM5W8OZ86RD2KpchynU+/Qlm5hNEFjfLDhwfAY2lSe68YRUEYFGlxSHe0HmakyhvmtWoD3Zog==", "dev": true }, "@octokit/plugin-enterprise-rest": { @@ -12192,9 +13555,9 @@ } }, "@octokit/plugin-request-log": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.3.tgz", - "integrity": "sha512-4RFU4li238jMJAzLgAwkBAw+4Loile5haQMQr+uhFq27BmyJXcXSKvoQKqh0agsZEiUlW6iSv3FAgvmGkur7OQ==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz", + "integrity": "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==", "dev": true, "requires": {} }, @@ -12220,25 +13583,23 @@ } }, "@octokit/request": { - "version": "5.4.14", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.14.tgz", - "integrity": "sha512-VkmtacOIQp9daSnBmDI92xNIeLuSRDOIuplp/CJomkvzt7M18NXgG044Cx/LFKLgjKt9T2tZR6AtJayba9GTSA==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.0.tgz", + "integrity": "sha512-4cPp/N+NqmaGQwbh3vUsYqokQIzt7VjsgTYVXiwpUP2pxd5YiZB2XuTedbb0SPtv9XS7nzAKjAuQxmY8/aZkiA==", "dev": true, "requires": { "@octokit/endpoint": "^6.0.1", - "@octokit/request-error": "^2.0.0", - "@octokit/types": "^6.7.1", - "deprecation": "^2.0.0", + "@octokit/request-error": "^2.1.0", + "@octokit/types": "^6.16.1", "is-plain-object": "^5.0.0", "node-fetch": "^2.6.1", - "once": "^1.4.0", "universal-user-agent": "^6.0.0" }, "dependencies": { "@octokit/request-error": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.5.tgz", - "integrity": "sha512-T/2wcCFyM7SkXzNoyVNWjyVlUwBvW3igM3Btr/eKYiPmucXTtkxt2RBsf6gn3LTzaLSLTQtNmvg+dGsOxQrjZg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", + "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", "dev": true, "requires": { "@octokit/types": "^6.0.3", @@ -12301,14 +13662,20 @@ } }, "@octokit/types": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.13.0.tgz", - "integrity": "sha512-W2J9qlVIU11jMwKHUp5/rbVUeErqelCsO5vW5PKNb7wAXQVUz87Rc+imjlEvpvbH8yUb+KHmv8NEjVZdsdpyxA==", + "version": "6.16.7", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.16.7.tgz", + "integrity": "sha512-OuQELiwIKeDySgNID52vm33wDRc2aaX8lKYgAw9Hmw939ITow1HspT8/AH3M3jgGFUMDmHlMNBNEmH7xV7ggXQ==", "dev": true, "requires": { - "@octokit/openapi-types": "^6.0.0" + "@octokit/openapi-types": "^7.3.5" } }, + "@types/eslint-visitor-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz", + "integrity": "sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==", + "dev": true + }, "@types/glob": { "version": "7.1.3", "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.3.tgz", @@ -12319,6 +13686,18 @@ "@types/node": "*" } }, + "@types/json-schema": { + "version": "7.0.7", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.7.tgz", + "integrity": "sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA==", + "dev": true + }, + "@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=", + "dev": true + }, "@types/minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.4.tgz", @@ -12332,16 +13711,234 @@ "dev": true }, "@types/node": { - "version": "14.14.37", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.37.tgz", - "integrity": "sha512-XYmBiy+ohOR4Lh5jE379fV2IU+6Jn4g5qASinhitfyO71b/sCo6MKsMLF5tc7Zf2CE8hViVQyYSobJNke8OvUw==", + "version": "15.12.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-15.12.5.tgz", + "integrity": "sha512-se3yX7UHv5Bscf8f1ERKvQOD6sTyycH3hdaoozvaLxgUiY5lIGEeH37AD0G0Qi9kPqihPn0HOfd2yaIEN9VwEg==", + "dev": true + }, + "@types/normalize-package-data": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", + "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", + "dev": true + }, + "@typescript-eslint/eslint-plugin": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.28.1.tgz", + "integrity": "sha512-9yfcNpDaNGQ6/LQOX/KhUFTR1sCKH+PBr234k6hI9XJ0VP5UqGxap0AnNwBnWFk1MNyWBylJH9ZkzBXC+5akZQ==", + "dev": true, + "requires": { + "@typescript-eslint/experimental-utils": "4.28.1", + "@typescript-eslint/scope-manager": "4.28.1", + "debug": "^4.3.1", + "functional-red-black-tree": "^1.0.1", + "regexpp": "^3.1.0", + "semver": "^7.3.5", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/experimental-utils": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.28.1.tgz", + "integrity": "sha512-n8/ggadrZ+uyrfrSEchx3jgODdmcx7MzVM2sI3cTpI/YlfSm0+9HEUaWw3aQn2urL2KYlWYMDgn45iLfjDYB+Q==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.7", + "@typescript-eslint/scope-manager": "4.28.1", + "@typescript-eslint/types": "4.28.1", + "@typescript-eslint/typescript-estree": "4.28.1", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" + }, + "dependencies": { + "eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^2.0.0" + } + }, + "eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true + } + } + }, + "@typescript-eslint/parser": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.28.1.tgz", + "integrity": "sha512-UjrMsgnhQIIK82hXGaD+MCN8IfORS1CbMdu7VlZbYa8LCZtbZjJA26De4IPQB7XYZbL8gJ99KWNj0l6WD0guJg==", + "dev": true, + "requires": { + "@typescript-eslint/scope-manager": "4.28.1", + "@typescript-eslint/types": "4.28.1", + "@typescript-eslint/typescript-estree": "4.28.1", + "debug": "^4.3.1" + } + }, + "@typescript-eslint/scope-manager": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.28.1.tgz", + "integrity": "sha512-o95bvGKfss6705x7jFGDyS7trAORTy57lwJ+VsYwil/lOUxKQ9tA7Suuq+ciMhJc/1qPwB3XE2DKh9wubW8YYA==", + "dev": true, + "requires": { + "@typescript-eslint/types": "4.28.1", + "@typescript-eslint/visitor-keys": "4.28.1" + } + }, + "@typescript-eslint/types": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.28.1.tgz", + "integrity": "sha512-4z+knEihcyX7blAGi7O3Fm3O6YRCP+r56NJFMNGsmtdw+NCdpG5SgNz427LS9nQkRVTswZLhz484hakQwB8RRg==", "dev": true }, - "@types/normalize-package-data": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", - "dev": true + "@typescript-eslint/typescript-estree": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.28.1.tgz", + "integrity": "sha512-GhKxmC4sHXxHGJv8e8egAZeTZ6HI4mLU6S7FUzvFOtsk7ZIDN1ksA9r9DyOgNqowA9yAtZXV0Uiap61bIO81FQ==", + "dev": true, + "requires": { + "@typescript-eslint/types": "4.28.1", + "@typescript-eslint/visitor-keys": "4.28.1", + "debug": "^4.3.1", + "globby": "^11.0.3", + "is-glob": "^4.0.1", + "semver": "^7.3.5", + "tsutils": "^3.21.0" + }, + "dependencies": { + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true + }, + "array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "requires": { + "path-type": "^4.0.0" + } + }, + "fast-glob": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.6.tgz", + "integrity": "sha512-GnLuqj/pvQ7pX8/L4J84nijv6sAnlwvSDpMkJi9i7nPmPxGtRPkBSStfvDW5l6nMdX9VWe+pkKWFTgD+vF2QSQ==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "globby": { + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", + "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", + "dev": true, + "requires": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.1.1", + "ignore": "^5.1.4", + "merge2": "^1.3.0", + "slash": "^3.0.0" + } + }, + "ignore": { + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", + "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "micromatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", + "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.2.3" + } + }, + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + } + } + }, + "@typescript-eslint/visitor-keys": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.28.1.tgz", + "integrity": "sha512-K4HMrdFqr9PFquPu178SaSb92CaWe2yErXyPumc8cYWxFmhgJsNY9eSePmO05j0JhBvf2Cdhptd6E6Yv9HVHcg==", + "dev": true, + "requires": { + "@typescript-eslint/types": "4.28.1", + "eslint-visitor-keys": "^2.0.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true + } + } }, "@zkochan/cmd-shim": { "version": "3.1.0", @@ -12563,6 +14160,17 @@ "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", "dev": true }, + "array.prototype.flat": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.4.tgz", + "integrity": "sha512-4470Xi3GAPAjZqFcljX2xzckv1qeKPizoNkiS0+O4IoPR2ZNpcjE0pkhdihlDouK+x6QOast26B4Q/O9DJnwSg==", + "dev": true, + "requires": { + "call-bind": "^1.0.0", + "define-properties": "^1.1.3", + "es-abstract": "^1.18.0-next.1" + } + }, "array.prototype.flatmap": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.2.4.tgz", @@ -12700,9 +14308,9 @@ } }, "before-after-hook": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.1.tgz", - "integrity": "sha512-/6FKxSTWoJdbsLDF8tdIjaRiFXiE6UHsEHE3OPI/cwPURCVi1ukP0gmLn7XWEiFk5TcwQjjY5PWsU+j+tgXgmw==", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.2.tgz", + "integrity": "sha512-3pZEU3NT5BFUo/AD5ERPWOgQOCZITni6iavr5AUw5AUwQjMlI0kzu5btnyD39AF0gUEsDPwJT+oY1ORBJijPjQ==", "dev": true }, "bluebird": { @@ -12822,6 +14430,15 @@ "y18n": "^4.0.0" }, "dependencies": { + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, "rimraf": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", @@ -12830,6 +14447,12 @@ "requires": { "glob": "^7.1.3" } + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true } } }, @@ -13068,6 +14691,18 @@ "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", "dev": true }, + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, "string-width": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", @@ -13191,6 +14826,12 @@ "delayed-stream": "~1.0.0" } }, + "common-tags": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.0.tgz", + "integrity": "sha512-6P6g0uetGpW/sdyUy/iQQCbFF0kWVMSIVSyYz7Zgjcgh8mgw8PQzDNZeyZ5DQ2gM7LBoZPHmnjz8rUthkBG5tw==", + "dev": true + }, "compare-func": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz", @@ -13243,9 +14884,9 @@ } }, "config-chain": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.12.tgz", - "integrity": "sha512-a1eOIcu8+7lUInge4Rpf/n4Krkf3Dd9lqhljRzII1/Zno/kRtUWnznPO3jOKBmTEktkt3fkxisUcivoj0ebzoA==", + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz", + "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==", "dev": true, "requires": { "ini": "^1.3.4", @@ -13727,6 +15368,12 @@ "path-type": "^3.0.0" } }, + "dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "dev": true + }, "doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", @@ -13812,9 +15459,9 @@ "dev": true }, "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, "encoding": { @@ -13827,9 +15474,9 @@ }, "dependencies": { "iconv-lite": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.2.tgz", - "integrity": "sha512-2y91h5OpQlolefMPmUlivelittSWy0rP+oYVpn6A7GwVHNE8AWzoYOBNmlwks3LobaJxgHCYZAnyNo2GgpNRNQ==", + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", "dev": true, "requires": { "safer-buffer": ">= 2.1.2 < 3.0.0" @@ -13977,112 +15624,313 @@ "levn": "^0.4.1", "lodash": "^4.17.21", "minimatch": "^3.0.4", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.1.0", - "table": "^6.0.4", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "progress": "^2.0.0", + "regexpp": "^3.1.0", + "semver": "^7.2.1", + "strip-ansi": "^6.0.0", + "strip-json-comments": "^3.1.0", + "table": "^6.0.4", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "dependencies": { + "@babel/code-frame": { + "version": "7.12.11", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", + "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.10.4" + } + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "eslint-visitor-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz", + "integrity": "sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==", + "dev": true + }, + "globals": { + "version": "13.7.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.7.0.tgz", + "integrity": "sha512-Aipsz6ZKRxa/xQkZhNg0qIWXT6x6rD46f6x/PCnBomlttdIyAPak4YD9jTmKpZ72uROSMU87qJtcgpgHaVchiA==", + "dev": true, + "requires": { + "type-fest": "^0.20.2" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true + } + } + }, + "eslint-config-prettier": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-7.2.0.tgz", + "integrity": "sha512-rV4Qu0C3nfJKPOAhFujFxB7RMP+URFyQqqOZW9DMRD7ZDTFyjaIlETU3xzHELt++4ugC0+Jm084HQYkkJe+Ivg==", + "dev": true, + "requires": {} + }, + "eslint-config-react": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/eslint-config-react/-/eslint-config-react-1.1.7.tgz", + "integrity": "sha1-oJGND8R9DpvRYaRzCAIdqF0lhbM=", + "dev": true + }, + "eslint-import-resolver-node": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.4.tgz", + "integrity": "sha512-ogtf+5AB/O+nM6DIeBUNr2fuT7ot9Qg/1harBfBtaP13ekEWFQEEMP94BCB7zaNW3gyY+8SHYF00rnqYwXKWOA==", + "dev": true, + "requires": { + "debug": "^2.6.9", + "resolve": "^1.13.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "eslint-module-utils": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.6.1.tgz", + "integrity": "sha512-ZXI9B8cxAJIH4nfkhTwcRTEAnrVfobYqwjWy/QMCZ8rHkZHFjf9yO4BzpiF9kCSfNlMG54eKigISHpX0+AaT4A==", + "dev": true, + "requires": { + "debug": "^3.2.7", + "pkg-dir": "^2.0.0" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + }, + "pkg-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", + "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", + "dev": true, + "requires": { + "find-up": "^2.1.0" + } + } + } + }, + "eslint-plugin-babel": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-babel/-/eslint-plugin-babel-5.3.1.tgz", + "integrity": "sha512-VsQEr6NH3dj664+EyxJwO4FCYm/00JhYb3Sk3ft8o+fpKuIfQ9TaW6uVUfvwMXHcf/lsnRIoyFPsLMyiWCSL/g==", + "dev": true, + "requires": { + "eslint-rule-composer": "^0.3.0" + } + }, + "eslint-plugin-import": { + "version": "2.23.4", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.23.4.tgz", + "integrity": "sha512-6/wP8zZRsnQFiR3iaPFgh5ImVRM1WN5NUWfTIRqwOdeiGJlBcSk82o1FEVq8yXmy4lkIzTo7YhHCIxlU/2HyEQ==", + "dev": true, + "requires": { + "array-includes": "^3.1.3", + "array.prototype.flat": "^1.2.4", + "debug": "^2.6.9", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.4", + "eslint-module-utils": "^2.6.1", + "find-up": "^2.0.0", + "has": "^1.0.3", + "is-core-module": "^2.4.0", + "minimatch": "^3.0.4", + "object.values": "^1.1.3", + "pkg-up": "^2.0.0", + "read-pkg-up": "^3.0.0", + "resolve": "^1.20.0", + "tsconfig-paths": "^3.9.0" }, "dependencies": { - "@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, "requires": { - "@babel/highlight": "^7.10.4" + "ms": "2.0.0" } }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", "dev": true, "requires": { - "color-convert": "^2.0.1" + "esutils": "^2.0.2" } }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", "dev": true, "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "locate-path": "^2.0.0" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", "dev": true, "requires": { - "color-name": "~1.1.4" + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "eslint-visitor-keys": { + "ms": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz", - "integrity": "sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true }, - "globals": { - "version": "13.7.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.7.0.tgz", - "integrity": "sha512-Aipsz6ZKRxa/xQkZhNg0qIWXT6x6rD46f6x/PCnBomlttdIyAPak4YD9jTmKpZ72uROSMU87qJtcgpgHaVchiA==", + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", "dev": true, "requires": { - "type-fest": "^0.20.2" + "p-try": "^1.0.0" } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "dev": true, "requires": { - "has-flag": "^4.0.0" + "p-limit": "^1.1.0" } }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", "dev": true } } }, - "eslint-config-prettier": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-7.2.0.tgz", - "integrity": "sha512-rV4Qu0C3nfJKPOAhFujFxB7RMP+URFyQqqOZW9DMRD7ZDTFyjaIlETU3xzHELt++4ugC0+Jm084HQYkkJe+Ivg==", - "dev": true, - "requires": {} - }, - "eslint-config-react": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/eslint-config-react/-/eslint-config-react-1.1.7.tgz", - "integrity": "sha1-oJGND8R9DpvRYaRzCAIdqF0lhbM=", - "dev": true - }, "eslint-plugin-prettier": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.3.1.tgz", @@ -14133,6 +15981,19 @@ } } }, + "eslint-plugin-simple-import-sort": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-7.0.0.tgz", + "integrity": "sha512-U3vEDB5zhYPNfxT5TYR7u01dboFZp+HNpnGhkDB2g/2E4wZ/g1Q9Ton8UwCLfRV9yAKyYqDh62oHOamvkFxsvw==", + "dev": true, + "requires": {} + }, + "eslint-rule-composer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz", + "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==", + "dev": true + }, "eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", @@ -14542,6 +16403,15 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, + "fastq": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz", + "integrity": "sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g==", + "dev": true, + "requires": { + "reusify": "^1.0.4" + } + }, "figgy-pudding": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz", @@ -15578,6 +17448,23 @@ "function-bind": "^1.1.1" } }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + } + } + }, "has-bigints": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.1.tgz", @@ -15641,23 +17528,6 @@ "dev": true, "requires": { "lru-cache": "^6.0.0" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } } }, "http-cache-semantics": { @@ -15756,9 +17626,9 @@ "dev": true }, "ignore-walk": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.3.tgz", - "integrity": "sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.4.tgz", + "integrity": "sha512-PY6Ii8o1jMRA1z4F2hRkH/xN59ox43DavKvD3oDpfurRlOJyAHpifIwpbdv1n4jt4ov0jSpw3kQ4GhJnpBL6WQ==", "dev": true, "requires": { "minimatch": "^3.0.4" @@ -15875,6 +17745,39 @@ "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", "dev": true }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } + } + }, "strip-ansi": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", @@ -15955,9 +17858,9 @@ } }, "is-core-module": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.2.0.tgz", - "integrity": "sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.4.0.tgz", + "integrity": "sha512-6A2fkfq1rfeQZjxrZJGerpLCTHRNEBiSgnu0+obeJpEPZRUooHgsizvzv0ZjJwOz3iWIHdJtVWJ/tmPr3D21/A==", "dev": true, "requires": { "has": "^1.0.3" @@ -16028,9 +17931,9 @@ "dev": true }, "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true }, "is-glob": { @@ -16103,9 +18006,9 @@ } }, "is-ssh": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/is-ssh/-/is-ssh-1.3.2.tgz", - "integrity": "sha512-elEw0/0c2UscLrNG+OAorbP539E3rhliKPg+hDMWN9VwrDXfYK+4PBEykDPfxlYYtQvl84TascnQyobfQLHEhQ==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/is-ssh/-/is-ssh-1.3.3.tgz", + "integrity": "sha512-NKzJmQzJfEEma3w5cJNcUMxoXfDjz0Zj0eyCalHn2E6VOwlzjZo0yuO2fcBSf8zhFuVCL/82/r5gRcoi6aEPVQ==", "dev": true, "requires": { "protocols": "^1.1.0" @@ -16247,6 +18150,15 @@ "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", "dev": true }, + "json5": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", + "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } + }, "jsonfile": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", @@ -16401,6 +18313,12 @@ "integrity": "sha1-dWy1FQyjum8RCFp4hJZF8Yj4Xzc=", "dev": true }, + "lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, "lodash.set": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", @@ -16444,6 +18362,64 @@ "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=", "dev": true }, + "loglevel": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.7.1.tgz", + "integrity": "sha512-Hesni4s5UkWkwCGJMQGAh71PaLUmKFM60dHvq0zi/vDhhrzuk+4GgNbTXJ12YYQJn6ZKBDNIjYcuQGKudvqrIw==", + "dev": true + }, + "loglevel-colored-level-prefix": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/loglevel-colored-level-prefix/-/loglevel-colored-level-prefix-1.0.0.tgz", + "integrity": "sha1-akAhj9x64V/HbD0PPmdsRlOIYD4=", + "dev": true, + "requires": { + "chalk": "^1.1.3", + "loglevel": "^1.4.1" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, "loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", @@ -16464,18 +18440,18 @@ } }, "lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, "requires": { - "yallist": "^3.0.2" + "yallist": "^4.0.0" } }, "macos-release": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.4.1.tgz", - "integrity": "sha512-H/QHeBIN1fIGJX517pvK8IEK53yQOW7YcEI55oYtgjDdoCQQz7eJS94qt5kNrscReEyuD/JcdFCm2XBEcGOITg==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.5.0.tgz", + "integrity": "sha512-EIgv+QZ9r+814gjJj0Bt5vSLJLzswGmSUbUpbi9AIr/fsN2IWFBl2NucV9PAiek+U1STK468tEkxmVYUtuAN3g==", "dev": true }, "make-dir": { @@ -16512,6 +18488,23 @@ "promise-retry": "^1.1.1", "socks-proxy-agent": "^4.0.0", "ssri": "^6.0.0" + }, + "dependencies": { + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + } } }, "map-cache": { @@ -16521,9 +18514,9 @@ "dev": true }, "map-obj": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.2.0.tgz", - "integrity": "sha512-NAq0fCmZYGz9UFEQyndp7sisrow4GroyGeKluyKC/chuITZsPyOyC1UJZPJlVFImhXdROIP5xqouRLThT3BbpQ==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.2.1.tgz", + "integrity": "sha512-+WA2/1sPmDj1dlvvJmB5G6JKfY9dpn7EVBUL06+y6PoljPkh+6V1QihwxNkbcGxCRjt2b0F9K0taiCuo7MbdFQ==", "dev": true }, "map-visit": { @@ -16675,6 +18668,12 @@ } } }, + "trim-newlines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", + "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", + "dev": true + }, "type-fest": { "version": "0.18.1", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", @@ -16711,18 +18710,18 @@ } }, "mime-db": { - "version": "1.47.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.47.0.tgz", - "integrity": "sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw==", + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.48.0.tgz", + "integrity": "sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ==", "dev": true }, "mime-types": { - "version": "2.1.30", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.30.tgz", - "integrity": "sha512-crmjA4bLtR8m9qLpHvgxSChT+XoSlZi8J4n/aIdn3z92e/U47Z0V/yl+Wh9W046GgFVAmoNR/fmdbZYcSSIUeg==", + "version": "2.1.31", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.31.tgz", + "integrity": "sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==", "dev": true, "requires": { - "mime-db": "1.47.0" + "mime-db": "1.48.0" } }, "mimic-fn": { @@ -16771,6 +18770,14 @@ "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" + }, + "dependencies": { + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + } } }, "minizlib": { @@ -17101,16 +19108,10 @@ } } }, - "normalize-url": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-3.3.0.tgz", - "integrity": "sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==", - "dev": true - }, "npm-bundled": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.1.1.tgz", - "integrity": "sha512-gqkfgGePhTpAEgUsGEgcq1rqPXA+tv/aVBlgEzfXwA1yiUJF7xtEt3CtVwOjNYQOVknDk0F20w58Fnm3EtG0fA==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.1.2.tgz", + "integrity": "sha512-x5DHup0SuyQcmL3s7Rx/YQ8sbw/Hzg0rj48eN0dV7hf5cmQq5PXIeioroH3raV1QC1yh3uTYuMThvEQF3iKgGQ==", "dev": true, "requires": { "npm-normalize-package-bin": "^1.0.1" @@ -17635,15 +19636,23 @@ } }, "parse-url": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/parse-url/-/parse-url-5.0.2.tgz", - "integrity": "sha512-Czj+GIit4cdWtxo3ISZCvLiUjErSo0iI3wJ+q9Oi3QuMYTI6OZu+7cewMWZ+C1YAnKhYTk6/TLuhIgCypLthPA==", + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/parse-url/-/parse-url-5.0.6.tgz", + "integrity": "sha512-nZp+U7NFVTsBXTh6oGxdwvd7ncz3hJCl74q0lC0pLc3ypXJMKFUpfUEAd4r1x8zVVF5UHFik+CBNOQKN0ayByA==", "dev": true, "requires": { "is-ssh": "^1.3.0", - "normalize-url": "^3.3.0", + "normalize-url": "4.5.0", "parse-path": "^4.0.0", "protocols": "^1.4.0" + }, + "dependencies": { + "normalize-url": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz", + "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==", + "dev": true + } } }, "pascalcase": { @@ -17705,6 +19714,12 @@ "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", "dev": true }, + "picomatch": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", + "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", + "dev": true + }, "pify": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", @@ -17735,6 +19750,60 @@ "find-up": "^3.0.0" } }, + "pkg-up": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-2.0.0.tgz", + "integrity": "sha1-yBmscoBZpGHKscOImivjxJoATX8=", + "dev": true, + "requires": { + "find-up": "^2.1.0" + }, + "dependencies": { + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + } + } + }, "posix-character-classes": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", @@ -17764,6 +19833,91 @@ "integrity": "sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==", "dev": true }, + "prettier-eslint": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/prettier-eslint/-/prettier-eslint-12.0.0.tgz", + "integrity": "sha512-N8SGGQwAosISXTNl1E57sBbtnqUGlyRWjcfIUxyD3HF4ynehA9GZ8IfJgiep/OfYvCof/JEpy9ZqSl250Wia7A==", + "dev": true, + "requires": { + "@typescript-eslint/parser": "^3.0.0", + "common-tags": "^1.4.0", + "dlv": "^1.1.0", + "eslint": "^7.9.0", + "indent-string": "^4.0.0", + "lodash.merge": "^4.6.0", + "loglevel-colored-level-prefix": "^1.0.0", + "prettier": "^2.0.0", + "pretty-format": "^23.0.1", + "require-relative": "^0.8.7", + "typescript": "^3.9.3", + "vue-eslint-parser": "~7.1.0" + }, + "dependencies": { + "@typescript-eslint/experimental-utils": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.10.1.tgz", + "integrity": "sha512-DewqIgscDzmAfd5nOGe4zm6Bl7PKtMG2Ad0KG8CUZAHlXfAKTF9Ol5PXhiMh39yRL2ChRH1cuuUGOcVyyrhQIw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.3", + "@typescript-eslint/types": "3.10.1", + "@typescript-eslint/typescript-estree": "3.10.1", + "eslint-scope": "^5.0.0", + "eslint-utils": "^2.0.0" + } + }, + "@typescript-eslint/parser": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.10.1.tgz", + "integrity": "sha512-Ug1RcWcrJP02hmtaXVS3axPPTTPnZjupqhgj+NnZ6BCkwSImWk/283347+x9wN+lqOdK9Eo3vsyiyDHgsmiEJw==", + "dev": true, + "requires": { + "@types/eslint-visitor-keys": "^1.0.0", + "@typescript-eslint/experimental-utils": "3.10.1", + "@typescript-eslint/types": "3.10.1", + "@typescript-eslint/typescript-estree": "3.10.1", + "eslint-visitor-keys": "^1.1.0" + } + }, + "@typescript-eslint/types": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-3.10.1.tgz", + "integrity": "sha512-+3+FCUJIahE9q0lDi1WleYzjCwJs5hIsbugIgnbB+dSCYUxl8L6PwmsyOPFZde2hc1DlTo/xnkOgiTLSyAbHiQ==", + "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.10.1.tgz", + "integrity": "sha512-QbcXOuq6WYvnB3XPsZpIwztBoquEYLXh2MtwVU+kO8jgYCiv4G5xrSP/1wg4tkvrEE+esZVquIPX/dxPlePk1w==", + "dev": true, + "requires": { + "@typescript-eslint/types": "3.10.1", + "@typescript-eslint/visitor-keys": "3.10.1", + "debug": "^4.1.1", + "glob": "^7.1.6", + "is-glob": "^4.0.1", + "lodash": "^4.17.15", + "semver": "^7.3.2", + "tsutils": "^3.17.1" + } + }, + "@typescript-eslint/visitor-keys": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-3.10.1.tgz", + "integrity": "sha512-9JgC82AaQeglebjZMgYR5wgmfUdUc+EitGUUMW8u2nDckaeimzW+VsoLV6FoimPv2id3VQzfjwBxEMVz08ameQ==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^1.1.0" + } + }, + "typescript": { + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", + "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", + "dev": true + } + } + }, "prettier-linter-helpers": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", @@ -17773,6 +19927,24 @@ "fast-diff": "^1.1.2" } }, + "pretty-format": { + "version": "23.6.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-23.6.0.tgz", + "integrity": "sha512-zf9NV1NSlDLDjycnwm6hpFATCGl/K1lt0R/GdkAK2O5LN/rwJoB+Mh93gGJjut4YbmecbfgLWVGSTCr0Ewvvbw==", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0", + "ansi-styles": "^3.2.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + } + } + }, "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -17914,6 +20086,12 @@ "strict-uri-encode": "^2.0.0" } }, + "queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true + }, "quick-lru": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", @@ -18113,9 +20291,9 @@ "dev": true }, "repeat-element": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", - "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", + "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", "dev": true }, "repeat-string": { @@ -18187,6 +20365,12 @@ "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", "dev": true }, + "require-relative": { + "version": "0.8.7", + "resolved": "https://registry.npmjs.org/require-relative/-/require-relative-0.8.7.tgz", + "integrity": "sha1-eZlTn8ngR6N5KPoZb44VY9q9Nt4=", + "dev": true + }, "resolve": { "version": "1.20.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", @@ -18248,6 +20432,12 @@ "integrity": "sha1-52OI0heZLCUnUCQdPTlW/tmNj/Q=", "dev": true }, + "reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true + }, "rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", @@ -18263,6 +20453,15 @@ "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", "dev": true }, + "run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "requires": { + "queue-microtask": "^1.2.2" + } + }, "run-queue": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz", @@ -18317,23 +20516,6 @@ "dev": true, "requires": { "lru-cache": "^6.0.0" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } } }, "set-blocking": { @@ -18461,12 +20643,6 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true } } }, @@ -18736,9 +20912,9 @@ } }, "spdx-license-ids": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.7.tgz", - "integrity": "sha512-U+MTEOO0AiDzxwFvoa4JVnMV6mZlJKk2sBLt90s7G0Gd0Mlknc7kxEn3nuDPNZRta7O2uy8oLcZLVT+4sqNZHQ==", + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.9.tgz", + "integrity": "sha512-Ki212dKK4ogX+xDo4CtOZBVIwhsKBEfsEEcwmJfLQzirgc2jIWdzg40Unxz/HzEUqM1WFzVlQSMF9kZZ2HboLQ==", "dev": true }, "split": { @@ -18916,30 +21092,14 @@ } }, "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", + "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", "dev": true, "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" } }, "string.prototype.matchall": { @@ -19062,34 +21222,11 @@ "uri-js": "^4.2.2" } }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, "json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "dev": true - }, - "string-width": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - } } } }, @@ -19106,6 +21243,14 @@ "mkdirp": "^0.5.0", "safe-buffer": "^5.1.2", "yallist": "^3.0.3" + }, + "dependencies": { + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + } } }, "temp-dir": { @@ -19258,24 +21403,39 @@ "punycode": "^2.1.0" } }, - "trim-newlines": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.0.tgz", - "integrity": "sha512-C4+gOpvmxaSMKuEf9Qc134F1ZuOHVXKRbtEflf4NTtuuJDEIJ9p5PXsalL8SkeRw+qit1Mo+yuvMPAKwWg/1hA==", - "dev": true - }, "trim-off-newlines": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz", "integrity": "sha1-n5up2e+odkw4dpi8v+sshI8RrbM=", "dev": true }, + "tsconfig-paths": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz", + "integrity": "sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw==", + "dev": true, + "requires": { + "@types/json5": "^0.0.29", + "json5": "^1.0.1", + "minimist": "^1.2.0", + "strip-bom": "^3.0.0" + } + }, "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true }, + "tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, "tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", @@ -19319,9 +21479,9 @@ "dev": true }, "uglify-js": { - "version": "3.13.3", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.3.tgz", - "integrity": "sha512-otIc7O9LyxpUcQoXzj2hL4LPWKklO6LJWoJUzNa8A17Xgi4fOeDC8FBDOLHnC/Slo1CQgsZMcM6as0M76BZaig==", + "version": "3.13.10", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.10.tgz", + "integrity": "sha512-57H3ACYFXeo1IaZ1w02sfA71wI60MGco/IQFjOqK+WtKoprh7Go2/yvd2HPtoJILO2Or84ncLccI4xoHMTSbGg==", "dev": true, "optional": true }, @@ -19526,6 +21686,33 @@ "extsprintf": "^1.2.0" } }, + "vue-eslint-parser": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-7.1.1.tgz", + "integrity": "sha512-8FdXi0gieEwh1IprIBafpiJWcApwrU+l2FEj8c1HtHFdNXMd0+2jUSjBVmcQYohf/E72irwAXEXLga6TQcB3FA==", + "dev": true, + "requires": { + "debug": "^4.1.1", + "eslint-scope": "^5.0.0", + "eslint-visitor-keys": "^1.1.0", + "espree": "^6.2.1", + "esquery": "^1.0.1", + "lodash": "^4.17.15" + }, + "dependencies": { + "espree": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-6.2.1.tgz", + "integrity": "sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw==", + "dev": true, + "requires": { + "acorn": "^7.1.1", + "acorn-jsx": "^5.2.0", + "eslint-visitor-keys": "^1.1.0" + } + } + } + }, "wcwidth": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", @@ -19587,6 +21774,39 @@ "dev": true, "requires": { "string-width": "^1.0.2 || 2" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } } }, "windows-release": { @@ -19627,6 +21847,18 @@ "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", "dev": true }, + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, "string-width": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", @@ -19737,15 +21969,15 @@ "dev": true }, "y18n": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz", - "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", "dev": true }, "yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true }, "yargs": { @@ -19773,6 +22005,18 @@ "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", "dev": true }, + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, "string-width": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", @@ -19794,9 +22038,9 @@ } }, "yargs-parser": { - "version": "15.0.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-15.0.1.tgz", - "integrity": "sha512-0OAMV2mAZQrs3FkNpDQcBk1x5HXb8X4twADss4S0Iuk+2dGnLOE/fRHrsYm542GduMveyA77OF4wrNJuanRCWw==", + "version": "15.0.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-15.0.3.tgz", + "integrity": "sha512-/MVEVjTXy/cGAjdtQf8dW3V9b97bPN7rNn8ETj6BmAQL7ibC7O1Q9SPJbGjgh3SlwoBNXMzj/ZGIj8mBgl12YA==", "dev": true, "requires": { "camelcase": "^5.0.0", @@ -19806,9 +22050,9 @@ } }, "yargs-parser": { - "version": "20.2.7", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.7.tgz", - "integrity": "sha512-FiNkvbeHzB/syOjIUxFDCnhSfzAL8R5vs40MgLFBorXACCOAEaWu0gRZl14vG8MR9AOJIZbmkjhusqBYZ3HTHw==", + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "dev": true } } diff --git a/package.json b/package.json index d723e4cd0..9f43f01d0 100644 --- a/package.json +++ b/package.json @@ -3,22 +3,29 @@ "private": true, "description": "Freeform plugin for Craft CMS", "devDependencies": { + "@typescript-eslint/eslint-plugin": "^4.28.0", + "@typescript-eslint/parser": "^4.28.0", "babel-eslint": "^10.1.0", "browserslist": ">=4.16.5", "eslint": "^7.20.0", "eslint-config-prettier": "^7.2.0", "eslint-config-react": "^1.1.7", + "eslint-plugin-babel": "^5.3.1", + "eslint-plugin-import": "^2.23.4", "eslint-plugin-prettier": "^3.3.1", "eslint-plugin-react": "^7.22.0", + "eslint-plugin-simple-import-sort": "^7.0.0", "hosted-git-info": ">=2.8.9", "ini": ">=2.0.0", "lerna": "^3.22.1", "postcss": ">=8.2.10", "prettier": "^2.2.1", + "prettier-eslint": "^12.0.0", "typescript": "^4.1.5" }, "scripts": { "dev": "lerna run --parallel dev", + "front-end": "lerna run --parallel dev --scope=@ff/{scripts,styles}", "build": "lerna run --parallel build", "format": "prettier --write '**/*.{ts,tsx,md,json,js,jsx,css}'", "format:verify": "prettier --list-different '**/*.{ts,tsx,md,json,js,jsx,css}'", diff --git a/packages/builder/src/components/Composer/Field.jsx b/packages/builder/src/components/Composer/Field.jsx index c2e8ed2f4..3b50e6ec9 100644 --- a/packages/builder/src/components/Composer/Field.jsx +++ b/packages/builder/src/components/Composer/Field.jsx @@ -6,6 +6,7 @@ import CheckboxGroup from './FieldTypes/CheckboxGroup'; import Confirmation from './FieldTypes/Confirmation'; import Datetime from './FieldTypes/Datetime'; import DynamicRecipients from './FieldTypes/DynamicRecipients'; +import DragAndDropFile from './FieldTypes/DragAndDropFile'; import Email from './FieldTypes/Email'; import File from './FieldTypes/File'; import Hidden from './FieldTypes/Hidden'; @@ -67,6 +68,7 @@ const fieldTypes = { cc_number: CreditCardNumber, cc_cvc: CreditCardCvc, cc_exp_date: CreditCardExpDate, + drag_and_drop_file: DragAndDropFile, }; export default class Field extends Component { diff --git a/packages/builder/src/components/Composer/FieldTypes/DragAndDropFile.jsx b/packages/builder/src/components/Composer/FieldTypes/DragAndDropFile.jsx new file mode 100644 index 000000000..0c6127d07 --- /dev/null +++ b/packages/builder/src/components/Composer/FieldTypes/DragAndDropFile.jsx @@ -0,0 +1,50 @@ +import PropTypes from 'prop-types'; +import React from 'react'; +import { FILE } from './../../../constants/FieldTypes'; +import Badge from './Components/Badge'; +import HtmlInput from './HtmlInput'; +import styled from 'styled-components'; + +const Wrapper = styled.div` + padding: 10px 0; + + border-radius: 5px; + border: 3px dashed grey; + background: lightgrey; + text-align: center; +`; + +export default class DragAndDropFile extends HtmlInput { + static propTypes = { + properties: PropTypes.shape({ + label: PropTypes.string.isRequired, + required: PropTypes.bool.isRequired, + assetSourceId: PropTypes.number, + }).isRequired, + }; + + getClassName() { + return 'DragAndDropFile'; + } + + getType() { + return FILE; + } + + getBadges() { + const badges = super.getBadges(); + const { + properties: { assetSourceId }, + } = this.props; + + if (!assetSourceId) { + badges.push(); + } + + return badges; + } + + renderInput() { + return Drag & Drop a file; + } +} diff --git a/packages/builder/src/components/PropertyEditor/File.jsx b/packages/builder/src/components/PropertyEditor/File.jsx index d300a236d..22a5acc32 100644 --- a/packages/builder/src/components/PropertyEditor/File.jsx +++ b/packages/builder/src/components/PropertyEditor/File.jsx @@ -6,7 +6,6 @@ import BasePropertyEditor from './BasePropertyEditor'; import { AttributeEditorProperty } from './PropertyItems'; import CheckboxListProperty from './PropertyItems/CheckboxListProperty'; import CheckboxProperty from './PropertyItems/CheckboxProperty'; -import ExternalOptionsProperty from './PropertyItems/ExternalOptionsProperty'; import SelectProperty from './PropertyItems/SelectProperty'; import TextareaProperty from './PropertyItems/TextareaProperty'; import TextProperty from './PropertyItems/TextProperty'; @@ -56,7 +55,6 @@ export default class File extends BasePropertyEditor { const { properties: { - type, label, handle, required, diff --git a/packages/builder/src/containers/PropertyEditor.jsx b/packages/builder/src/containers/PropertyEditor.jsx index 38587c91a..75d03bebe 100644 --- a/packages/builder/src/containers/PropertyEditor.jsx +++ b/packages/builder/src/containers/PropertyEditor.jsx @@ -81,6 +81,7 @@ const propertyTypes = { signature: Signature, table: Table, invisible: Invisible, + drag_and_drop_file: File, }; const crmPropertyTypes = { diff --git a/packages/plugin/src/Bundles/Form/Context/Request/EditElementContext.php b/packages/plugin/src/Bundles/Form/Context/Request/EditElementContext.php index 364f91aa5..5364882ec 100644 --- a/packages/plugin/src/Bundles/Form/Context/Request/EditElementContext.php +++ b/packages/plugin/src/Bundles/Form/Context/Request/EditElementContext.php @@ -3,6 +3,7 @@ namespace Solspace\Freeform\Bundles\Form\Context\Request; use Solspace\Freeform\Elements\Submission; +use Solspace\Freeform\Events\Forms\HandleRequestEvent; use Solspace\Freeform\Events\Forms\RenderTagEvent; use Solspace\Freeform\Fields\CheckboxField; use Solspace\Freeform\Fields\DynamicRecipientField; @@ -16,18 +17,33 @@ class EditElementContext public function __construct() { - Event::on(Form::class, Form::EVENT_RENDER_BEFORE_OPEN_TAG, [$this, 'handleRequest']); + Event::on(Form::class, Form::EVENT_BEFORE_HANDLE_REQUEST, [$this, 'handleRequest']); + Event::on(Form::class, Form::EVENT_RENDER_BEFORE_OPEN_TAG, [$this, 'handleRender']); } - public function handleRequest(RenderTagEvent $event) + public function handleRequest(HandleRequestEvent $event) { $form = $event->getForm(); - $submissionToken = $form->getPropertyBag()->get(self::SUBMISSION_TOKEN_KEY); - if (!$submissionToken) { + $token = $form->getAssociatedSubmissionToken(); + + $this->applySubmissionToForm($form, $token); + } + + public function handleRender(RenderTagEvent $event) + { + $form = $event->getForm(); + $token = $form->getPropertyBag()->get(self::SUBMISSION_TOKEN_KEY); + + $this->applySubmissionToForm($form, $token); + } + + private function applySubmissionToForm(Form $form, string $token = null) + { + if (!$token) { return; } - $submission = Freeform::getInstance()->submissions->getSubmissionByToken($submissionToken); + $submission = Freeform::getInstance()->submissions->getSubmissionByToken($token); if (!$submission instanceof Submission) { return; } diff --git a/packages/plugin/src/Bundles/Form/Context/Request/PostContext.php b/packages/plugin/src/Bundles/Form/Context/Request/PostContext.php index 4172347a7..1b3579e88 100644 --- a/packages/plugin/src/Bundles/Form/Context/Request/PostContext.php +++ b/packages/plugin/src/Bundles/Form/Context/Request/PostContext.php @@ -2,8 +2,9 @@ namespace Solspace\Freeform\Bundles\Form\Context\Request; +use Solspace\Freeform\Bundles\GraphQL\Interfaces\FieldInterface; +use Solspace\Freeform\Events\Fields\TransformValueEvent; use Solspace\Freeform\Events\Forms\HandleRequestEvent; -use Solspace\Freeform\Fields\CheckboxField; use Solspace\Freeform\Library\Composer\Components\Form; use yii\base\Event; @@ -19,17 +20,21 @@ public function handleRequest(HandleRequestEvent $event) $form = $event->getForm(); $request = $event->getRequest(); + if ($request->getHeaders()->get('Freeform-Preflight')) { + return; + } + if ('POST' !== $request->getMethod() || !$form->isPagePosted()) { return; } foreach ($form->getCurrentPage()->getFields() as $field) { $postedValue = $request->post($field->getHandle()); - if ($field instanceof CheckboxField) { - $postedValue = (bool) $postedValue; - } - $field->setValue($postedValue); + $event = new TransformValueEvent($field, $postedValue); + Event::trigger(FieldInterface::class, FieldInterface::EVENT_TRANSFORM_FROM_POST, $event); + + $field->setValue($event->getValue()); } } } diff --git a/packages/plugin/src/Bundles/Form/Fields/CheckboxField/CheckboxFieldBundle.php b/packages/plugin/src/Bundles/Form/Fields/CheckboxField/CheckboxFieldBundle.php new file mode 100644 index 000000000..10595b633 --- /dev/null +++ b/packages/plugin/src/Bundles/Form/Fields/CheckboxField/CheckboxFieldBundle.php @@ -0,0 +1,26 @@ +setValue((bool) $event->getValue()); + } +} diff --git a/packages/plugin/src/Bundles/Form/Fields/FileUpload/FileUploadBundle.php b/packages/plugin/src/Bundles/Form/Fields/FileUpload/FileUploadBundle.php new file mode 100644 index 000000000..afa2099bb --- /dev/null +++ b/packages/plugin/src/Bundles/Form/Fields/FileUpload/FileUploadBundle.php @@ -0,0 +1,71 @@ +getForm(); + $submission = $event->getSubmission(); + + // Handle only stored submissions + if (!$submission->id) { + return; + } + + $fields = $form->getLayout()->getFields(FileUploadField::class); + $assetIds = []; + foreach ($fields as $field) { + $assetIds = array_merge($assetIds, $field->getValue()); + } + + if (empty($assetIds)) { + return; + } + + $records = UnfinalizedFileRecord::findAll(['assetId' => $assetIds]); + foreach ($records as $record) { + $record->delete(); + } + } + + public function handleDnDPost(TransformValueEvent $event) + { + $field = $event->getField(); + if (!$field instanceof DragAndDropFileField) { + return; + } + + $uids = $event->getValue(); + if (!\is_array($uids)) { + $event->setValue([]); + + return; + } + + $ids = []; + foreach ($uids as $uid) { + $asset = \Craft::$app->getElements()->getElementByUid($uid); + $ids[] = $asset->id; + } + + $event->setValue($ids); + } +} diff --git a/packages/plugin/src/Bundles/Form/Fields/OptionalFieldJavascript/OptionalFieldJavascriptBundle.php b/packages/plugin/src/Bundles/Form/Fields/OptionalFieldJavascript/OptionalFieldJavascriptBundle.php index fc1f8013a..801ad9dac 100644 --- a/packages/plugin/src/Bundles/Form/Fields/OptionalFieldJavascript/OptionalFieldJavascriptBundle.php +++ b/packages/plugin/src/Bundles/Form/Fields/OptionalFieldJavascript/OptionalFieldJavascriptBundle.php @@ -7,7 +7,7 @@ use Solspace\Freeform\Fields\Pro\PhoneField; use Solspace\Freeform\Fields\Pro\SignatureField; use Solspace\Freeform\Library\Bundles\BundleInterface; -use Solspace\Freeform\Services\FormsService; +use Solspace\Freeform\Library\Composer\Components\Form; use yii\base\Event; class OptionalFieldJavascriptBundle implements BundleInterface @@ -15,8 +15,8 @@ class OptionalFieldJavascriptBundle implements BundleInterface public function __construct() { Event::on( - FormsService::class, - FormsService::EVENT_ATTACH_FORM_ATTRIBUTES, + Form::class, + Form::EVENT_ATTACH_TAG_ATTRIBUTES, function (AttachFormAttributesEvent $event) { $form = $event->getForm(); diff --git a/packages/plugin/src/Bundles/GraphQL/Interfaces/FieldInterface.php b/packages/plugin/src/Bundles/GraphQL/Interfaces/FieldInterface.php index 80386848f..895b33221 100644 --- a/packages/plugin/src/Bundles/GraphQL/Interfaces/FieldInterface.php +++ b/packages/plugin/src/Bundles/GraphQL/Interfaces/FieldInterface.php @@ -9,6 +9,10 @@ class FieldInterface extends AbstractInterface { + const EVENT_TRANSFORM_FROM_POST = 'transformFromPost'; + const EVENT_TRANSFORM_FROM_STORAGE = 'transformFromStorage'; + const EVENT_TRANSFORM_FROM_DATABASE = 'transformFromDatabase'; + public static function getName(): string { return 'FreeformFormFieldInterface'; diff --git a/packages/plugin/src/Controllers/FileUploadController.php b/packages/plugin/src/Controllers/FileUploadController.php new file mode 100644 index 000000000..e524b5ba6 --- /dev/null +++ b/packages/plugin/src/Controllers/FileUploadController.php @@ -0,0 +1,189 @@ +requirePostRequest(); + + $request = \Craft::$app->request; + $handle = $request->post('handle'); + + $form = $this->getVerifiedForm(); + $field = $form->get($handle); + + if (!$field instanceof DragAndDropFileField) { + return $this->createErrorResponse(['Invalid field type']); + } + + $payload = []; + foreach ($field->getAssets()->all() as $asset) { + $payload[] = [ + 'id' => $asset->uid, + 'name' => $asset->getFilename(), + 'extension' => $asset->getExtension(), + 'size' => $asset->getFormattedSize(1), + 'url' => $asset->getUrl(), + ]; + } + + return $this->asJson($payload); + } + + public function actionPost() + { + $this->requirePostRequest(); + $request = \Craft::$app->request; + $handle = $request->post('handle'); + + $form = $this->getVerifiedForm(); + $field = $form->get($handle); + + $token = SessionContext::getFormSessionToken($form); + + if (!$field instanceof DragAndDropFileField) { + return $this->createErrorResponse(['Invalid file upload field used']); + } + + $totalUploaded = (int) (new Query()) + ->select('id') + ->from(UnfinalizedFileRecord::TABLE)->where([ + 'fieldHandle' => $handle, + 'formToken' => $token, + ]) + ->count() + ; + + if ($totalUploaded >= $field->getFileCount()) { + return $this->createErrorResponse(['Too many files uploaded']); + } + + if (!$field->isValid()) { + return $this->createErrorResponse($field->getErrors()); + } + + $asset = $this->getFilesService()->uploadDragAndDropFile($field, $form); + if (!$asset) { + return $this->createErrorResponse($field->getErrors()); + } + + return $this->asJson(['id' => $asset->uid]); + } + + public function actionDelete() + { + $this->requirePostRequest(); + + $form = $this->getVerifiedForm(); + $token = SessionContext::getFormSessionToken($form); + $handle = \Craft::$app->request->post('handle'); + $uid = \Craft::$app->request->post('id'); + + $asset = Asset::find()->uid($uid)->one(); + if (!$asset) { + return $this->createErrorResponse(['File doesn\'t exist.']); + } + + $uploadedFileExists = false; + if ($form->getAssociatedSubmissionToken()) { + $submission = Freeform::getInstance() + ->submissions + ->getSubmissionByToken($form->getAssociatedSubmissionToken()) + ; + + if ($submission) { + try { + $field = $submission->{$handle}; + if ($field instanceof DragAndDropFileField) { + $uploadedAssets = $field->getValue(); + $uploadedFileExists = \in_array($asset->id, $uploadedAssets, false); + + if ($uploadedFileExists && $uploadedAssets) { + $index = array_search($asset->id, $uploadedAssets, false); + unset($uploadedAssets[$index]); + $submission->setFormFieldValues([$handle => array_values($uploadedAssets)]); + \Craft::$app->elements->saveElement($submission); + } + } + } catch (\Exception $e) { + } + } + } + + if (!$uploadedFileExists) { + $uploadedFileExists = (bool) (new Query()) + ->select('id') + ->from(UnfinalizedFileRecord::TABLE)->where([ + 'assetId' => $asset->id, + 'formToken' => $token, + ]) + ->count() + ; + } + + if ($uploadedFileExists && $asset) { + if (\Craft::$app->elements->deleteElement($asset)) { + \Craft::$app->db + ->createCommand() + ->delete(UnfinalizedFileRecord::TABLE, ['assetId' => $asset->id]) + ->execute() + ; + } + + return $this->asJson(['success' => true]); + } + + return $this->createErrorResponse(['File doesn\'t exist.']); + } + + private function getVerifiedForm() + { + $request = \Craft::$app->request; + + $formId = SessionContext::getPostedFormId(); + $formModel = $this->getFormsService()->getFormById($formId); + if (!$formModel) { + throw new FreeformException( + \Craft::t('freeform', 'Form with ID {id} not found', ['id' => $formId]) + ); + } + + $form = $formModel->getForm(); + $form->handleRequest($request); + + if ($form->isFormPosted() && $form->isValid() && !$form->getActions()) { + return $form; + } + + throw new BadRequestHttpException('Invalid form used'); + } + + private function createErrorResponse($messages = [], $statusCode = 400): Response + { + $response = $this->asJson( + [ + 'type' => 'field-error', + 'messages' => $messages, + ] + ); + + $response->setStatusCode($statusCode); + + return $response; + } +} diff --git a/packages/plugin/src/Controllers/SubmitController.php b/packages/plugin/src/Controllers/SubmitController.php index 9151ff107..2565facb1 100644 --- a/packages/plugin/src/Controllers/SubmitController.php +++ b/packages/plugin/src/Controllers/SubmitController.php @@ -104,7 +104,7 @@ private function handleSubmission(Form $form, Submission $submission) $this->getSubmissionsService()->postProcessSubmission($submission, $mailingListOptInFields); } - Event::trigger(self::class, Form::EVENT_AFTER_SUBMIT, $event); + Event::trigger(Form::class, Form::EVENT_AFTER_SUBMIT, $event); } private function getReturnUrl(Form $form, Submission $submission): string diff --git a/packages/plugin/src/Events/Fields/TransformValueEvent.php b/packages/plugin/src/Events/Fields/TransformValueEvent.php new file mode 100644 index 000000000..c376d155d --- /dev/null +++ b/packages/plugin/src/Events/Fields/TransformValueEvent.php @@ -0,0 +1,46 @@ +field = $field; + $this->value = $value; + } + + /** + * @return T + */ + public function getField(): AbstractField + { + return $this->field; + } + + public function getValue() + { + return $this->value; + } + + public function setValue($value) + { + $this->value = $value; + } +} diff --git a/packages/plugin/src/Fields/FileUploadField.php b/packages/plugin/src/Fields/FileUploadField.php index 2046b5e64..aed267829 100644 --- a/packages/plugin/src/Fields/FileUploadField.php +++ b/packages/plugin/src/Fields/FileUploadField.php @@ -12,6 +12,8 @@ namespace Solspace\Freeform\Fields; +use craft\elements\Asset; +use craft\elements\db\AssetQuery; use Solspace\Freeform\Library\Composer\Components\AbstractField; use Solspace\Freeform\Library\Composer\Components\Fields\Interfaces\FileUploadInterface; use Solspace\Freeform\Library\Composer\Components\Fields\Interfaces\MultipleValueInterface; @@ -73,6 +75,11 @@ public function getType(): string return self::TYPE_FILE; } + public function getAssets(): AssetQuery + { + return Asset::find()->id($this->getValue()); + } + public function getFileKinds(): array { if (!\is_array($this->fileKinds)) { @@ -97,14 +104,14 @@ public function getInputHtml(): string $attributes = $this->getCustomAttributes(); $this->addInputAttribute('class', $attributes->getClass()); - return 'getInputAttributesString().$this->getAttributeString( - 'name', - $this->getHandle().'[]' - ).$this->getAttributeString('type', $this->getType()).$this->getAttributeString( - 'id', - $this->getIdAttribute() - ).$this->getParameterString('multiple', $this->getFileCount() > 1).$this->getRequiredAttribute( - ).$attributes->getInputAttributesAsString().'/>'; + $inputAttributes = $this->getInputAttributesString().$attributes->getInputAttributesAsString(); + $name = $this->getAttributeString('name', $this->getHandle().'[]'); + $type = $this->getAttributeString('type', $this->getType()); + $id = $this->getAttributeString('id', $this->getIdAttribute()); + $isMultiple = $this->getParameterString('multiple', $this->getFileCount() > 1); + $isRequired = $this->getRequiredAttribute(); + + return ''; } /** @@ -262,7 +269,7 @@ protected function validate(): array /** * Returns an array of all valid file extensions for this field. */ - private function getValidExtensions(): array + protected function getValidExtensions(): array { $allFileKinds = $this->getForm()->getFileUploadHandler()->getFileKinds(); diff --git a/packages/plugin/src/Fields/Pro/DragAndDropFileField.php b/packages/plugin/src/Fields/Pro/DragAndDropFileField.php new file mode 100644 index 000000000..a17f15a62 --- /dev/null +++ b/packages/plugin/src/Fields/Pro/DragAndDropFileField.php @@ -0,0 +1,128 @@ +getCustomAttributes(); + $this->addInputAttribute('class', 'freeform-file-upload '.$attributes->getClass()); + + $output = ''; + $output .= '
getValue()).'" '; + $output .= $this->getInputAttributesString(); + $output .= '>'; + $output .= '
'; + $output .= 'Choose a file'; + $output .= ' or drag it here'; + $output .= '
'; + $output .= '
'; + $output .= '
'; + $output .= '
'; + $output .= '
'; + + return $output; + } + + public function uploadFile() + { + } + + protected function validate(): array + { + $errors = []; + $handle = $this->getHandle(); + $isUploaded = isset($_FILES[$handle]) && !empty($_FILES[$handle]['name']) && !$this->isHidden(); + + $file = $_FILES[$handle] ?? null; + if (!$file) { + if ($this->isRequired()) { + return [$this->translate('This field is required')]; + } + + return []; + } + + $name = $file['name']; + $tmpName = $file['tmp_name']; + $size = $file['size']; + $errorCode = $file['error']; + + if (\is_array($name)) { + $errors[] = $this->translate('Multiple field uploads not supported'); + } + + if ($this->isRequired() && !$isUploaded) { + $errors[] = $this->translate('This field is required'); + } + + $extension = pathinfo($name, \PATHINFO_EXTENSION); + $validExtensions = $this->getValidExtensions(); + + if (empty($tmpName) && \UPLOAD_ERR_NO_FILE === $errorCode) { + return $errors; + } + + // Check the mime type if the server supports it + if (FileHelper::isMimeTypeCheckEnabled() && !empty($tmpName)) { + $mimeType = FileHelper::getMimeType($tmpName); + $mimeExtension = FileHelper::getExtensionByMimeType($mimeType); + + if ($mimeExtension) { + $extension = $mimeExtension; + } else { + $errors[] = $this->translate('Unknown file type'); + } + } + + if (empty($tmpName)) { + switch ($errorCode) { + case \UPLOAD_ERR_INI_SIZE: + case \UPLOAD_ERR_FORM_SIZE: + $errors[] = $this->translate('File size too large'); + + break; + + case \UPLOAD_ERR_PARTIAL: + $errors[] = $this->translate('The file was only partially uploaded'); + + break; + } + $errors[] = $this->translate('Could not upload file'); + } + + // Check for the correct file extension + if (!\in_array(strtolower($extension), $validExtensions, true)) { + $errors[] = $this->translate( + "'{extension}' is not an allowed file extension", + ['extension' => $extension] + ); + } + + $fileSizeKB = ceil($size / 1024); + if ($fileSizeKB > $this->getMaxFileSizeKB()) { + $errors[] = $this->translate( + 'You tried uploading {fileSize}KB, but the maximum file upload size is {maxFileSize}KB', + ['fileSize' => $fileSizeKB, 'maxFileSize' => $this->getMaxFileSizeKB()] + ); + } + + return $errors; + } +} diff --git a/packages/plugin/src/Freeform.php b/packages/plugin/src/Freeform.php index 99ed907d5..543615f52 100644 --- a/packages/plugin/src/Freeform.php +++ b/packages/plugin/src/Freeform.php @@ -34,6 +34,7 @@ use Solspace\Freeform\Controllers\DashboardController; use Solspace\Freeform\Controllers\FeedsController; use Solspace\Freeform\Controllers\FieldsController; +use Solspace\Freeform\Controllers\FileUploadController; use Solspace\Freeform\Controllers\FormsController; use Solspace\Freeform\Controllers\LogsController; use Solspace\Freeform\Controllers\MailingListsController; @@ -488,6 +489,7 @@ private function initControllerMap() 'welcome-screen' => WelcomeScreenController::class, 'rest-settings' => RESTSettingsController::class, 'migrate-notifications' => MigrateNotificationsController::class, + 'file-upload' => FileUploadController::class, ]; } } diff --git a/packages/plugin/src/Library/Composer/Components/AbstractField.php b/packages/plugin/src/Library/Composer/Components/AbstractField.php index 7faa35cdc..76cdc65c4 100644 --- a/packages/plugin/src/Library/Composer/Components/AbstractField.php +++ b/packages/plugin/src/Library/Composer/Components/AbstractField.php @@ -149,6 +149,7 @@ public static function getFieldTypes(): array self::TYPE_SIGNATURE => 'Signature', self::TYPE_TABLE => 'Table', self::TYPE_INVISIBLE => 'Invisible', + self::TYPE_DRAG_AND_DROP_FILE => 'Drag & Drop File', ]; } diff --git a/packages/plugin/src/Library/Composer/Components/FieldInterface.php b/packages/plugin/src/Library/Composer/Components/FieldInterface.php index c7dc0be86..10cb3fb6b 100644 --- a/packages/plugin/src/Library/Composer/Components/FieldInterface.php +++ b/packages/plugin/src/Library/Composer/Components/FieldInterface.php @@ -46,6 +46,7 @@ interface FieldInterface const TYPE_SIGNATURE = 'signature'; const TYPE_TABLE = 'table'; const TYPE_INVISIBLE = 'invisible'; + const TYPE_DRAG_AND_DROP_FILE = 'drag_and_drop_file'; const TYPE_CREDIT_CARD_DETAILS = 'cc_details'; const TYPE_CREDIT_CARD_NUMBER = 'cc_number'; diff --git a/packages/plugin/src/Library/Composer/Components/Layout.php b/packages/plugin/src/Library/Composer/Components/Layout.php index 076b9de96..53e35243c 100644 --- a/packages/plugin/src/Library/Composer/Components/Layout.php +++ b/packages/plugin/src/Library/Composer/Components/Layout.php @@ -13,6 +13,8 @@ namespace Solspace\Freeform\Library\Composer\Components; use Solspace\Freeform\Fields\CheckboxGroupField; +use Solspace\Freeform\Fields\FileUploadField; +use Solspace\Freeform\Fields\HiddenField; use Solspace\Freeform\Fields\MailingListField; use Solspace\Freeform\Fields\Pro\OpinionScaleField; use Solspace\Freeform\Fields\Pro\SignatureField; @@ -122,31 +124,49 @@ public function __construct( $this->buildLayout(); } + /** + * @deprecated use `hasFields(DatetimeField::class)` instead + */ public function hasDatepickerEnabledFields(): bool { return (bool) \count($this->datepickerFields); } + /** + * @deprecated use `hasFields(PhoneField::class)` instead + */ public function hasPhonePatternFields(): bool { return (bool) \count($this->phoneFields); } + /** + * @deprecated use `hasFields(RecaptchaField::class)` instead + */ public function hasRecaptchaFields(): bool { return (bool) \count($this->recaptchaFields); } + /** + * @deprecated use `hasFields(OpinionScaleField::class)` instead + */ public function hasOpinionScaleFields(): bool { return (bool) \count($this->opinionScaleFields); } + /** + * @deprecated use `hasFields(SignatureField::class)` instead + */ public function hasSignatureFields(): bool { return (bool) \count($this->signatureFields); } + /** + * @deprecated use `hasFields(TableField::class)` instead + */ public function hasTableFields(): bool { return (bool) \count($this->tableFields); @@ -175,7 +195,9 @@ public function getPage(int $index): Page } /** - * @return AbstractField[]|NoRenderInterface[] + * @deprecated use `getFields(HiddenField::class)` instead + * + * @return HiddenField[] */ public function getHiddenFields(): array { @@ -183,7 +205,9 @@ public function getHiddenFields(): array } /** - * @return AbstractField[]|FileUploadInterface[] + * @deprecated use `getFields(TableField::class)` instead + * + * @return FileUploadField[] */ public function getFileUploadFields(): array { @@ -191,7 +215,9 @@ public function getFileUploadFields(): array } /** - * @return AbstractField[]|MailingListInterface[] + * @deprecated use `getFields(MailingListField::class)` instead + * + * @return MailingListInterface[] */ public function getMailingListFields(): array { @@ -199,7 +225,9 @@ public function getMailingListFields(): array } /** - * @return AbstractField[]|DatetimeInterface[] + * @deprecated use `getFields(DatetimeField::class)` instead + * + * @return DatetimeInterface[] */ public function getDatepickerFields(): array { @@ -207,7 +235,9 @@ public function getDatepickerFields(): array } /** - * @return AbstractField[]|PhoneMaskInterface[] + * @deprecated use `getFields(PhoneField::class)` instead + * + * @return PhoneMaskInterface[] */ public function getPhoneFields(): array { @@ -215,7 +245,9 @@ public function getPhoneFields(): array } /** - * @return AbstractField[]|RecaptchaInterface[] + * @deprecated use `getFields(RecaptchaField::class)` instead + * + * @return RecaptchaInterface[] */ public function getRecaptchaFields(): array { @@ -223,6 +255,8 @@ public function getRecaptchaFields(): array } /** + * @deprecated use `getFields(OpinionScaleField::class)` instead + * * @return OpinionScaleField[] */ public function getOpinionScaleFields(): array @@ -231,6 +265,8 @@ public function getOpinionScaleFields(): array } /** + * @deprecated use `getFields(SignatureField::class)` instead + * * @return SignatureField[] */ public function getSignatureFields(): array @@ -239,6 +275,8 @@ public function getSignatureFields(): array } /** + * @deprecated use `getFields(TableField::class)` instead + * * @return TableField[] */ public function getTableFields(): array @@ -247,10 +285,28 @@ public function getTableFields(): array } /** - * @return AbstractField[] + * @param class-string $implements */ - public function getFields(): array + public function hasFields(string $implements): bool { + return \count($this->getFields($implements)) > 0; + } + + /** + * @template T + * + * @param class-string|null $implements + * + * @return AbstractField[]|T[] + */ + public function getFields(string $implements = null): array + { + if (null !== $implements) { + return array_filter($this->fields, function (AbstractField $field) use ($implements) { + return $field instanceof $implements; + }); + } + return $this->fields; } @@ -504,6 +560,7 @@ private function buildLayout() { $isPro = Freeform::getInstance()->isPro(); + // TODO: remove these, use the `getField()` method by specifying type $pageObjects = []; $allRows = []; $allFields = []; diff --git a/packages/plugin/src/Library/Database/SubmissionHandlerInterface.php b/packages/plugin/src/Library/Database/SubmissionHandlerInterface.php index b2be7e871..0251fc8be 100644 --- a/packages/plugin/src/Library/Database/SubmissionHandlerInterface.php +++ b/packages/plugin/src/Library/Database/SubmissionHandlerInterface.php @@ -1,4 +1,5 @@ getMetaProperty('fileKinds', ['image', 'pdf']); } + if (FieldInterface::TYPE_DRAG_AND_DROP_FILE === $this->type) { + //$returnArray[''] = $this->getMetaProperty('twig'); + } + if (\in_array($this->type, [FieldInterface::TYPE_RADIO_GROUP, FieldInterface::TYPE_SELECT], true)) { $returnArray['showCustomValues'] = $this->hasCustomOptionValues(); $returnArray['value'] = $this->getMetaProperty('value', ''); diff --git a/packages/plugin/src/Records/FieldRecord.php b/packages/plugin/src/Records/FieldRecord.php index 977b5ef11..b013e2deb 100644 --- a/packages/plugin/src/Records/FieldRecord.php +++ b/packages/plugin/src/Records/FieldRecord.php @@ -15,7 +15,6 @@ use craft\db\ActiveRecord; use Solspace\Freeform\Freeform; use Solspace\Freeform\Library\Composer\Components\AbstractField; -use Solspace\Freeform\Library\Composer\Components\FieldInterface; use Solspace\Freeform\Library\Helpers\HashHelper; /** @@ -82,26 +81,7 @@ public function getHash(): string */ public function getColumnType(): string { - $columnType = 'varchar(100)'; - - switch ($this->type) { - case FieldInterface::TYPE_CHECKBOX_GROUP: - case FieldInterface::TYPE_MULTIPLE_SELECT: - case FieldInterface::TYPE_EMAIL: - case FieldInterface::TYPE_TEXTAREA: - case FieldInterface::TYPE_SIGNATURE: - case FieldInterface::TYPE_TABLE: - $columnType = 'text'; - - break; - - case FieldInterface::TYPE_HIDDEN: - $columnType = 'varchar(250)'; - - break; - } - - return $columnType; + return 'text'; } /** diff --git a/packages/plugin/src/Records/UnfinalizedFileRecord.php b/packages/plugin/src/Records/UnfinalizedFileRecord.php index 721972709..7c60aa38f 100644 --- a/packages/plugin/src/Records/UnfinalizedFileRecord.php +++ b/packages/plugin/src/Records/UnfinalizedFileRecord.php @@ -19,8 +19,10 @@ /** * Class Freeform_FieldRecord. * - * @property int $id - * @property int $assetId + * @property int $id + * @property int $assetId + * @property string $formToken + * @property string $fieldHandle */ class UnfinalizedFileRecord extends ActiveRecord { diff --git a/packages/plugin/src/Resources/css/front-end/fields/drag-and-drop-file.css b/packages/plugin/src/Resources/css/front-end/fields/drag-and-drop-file.css new file mode 100644 index 000000000..81ab27efc --- /dev/null +++ b/packages/plugin/src/Resources/css/front-end/fields/drag-and-drop-file.css @@ -0,0 +1,176 @@ +.freeform-file-upload { + padding: 67px 20px; + height: auto; + border: 3px dashed #3a85ee; + background: #ffffff; + color: #000000; + text-align: center; +} +.freeform-file-upload[data-dragging] { + border-style: solid; + background-color: #e7e7e7; + color: #c6c6c6; +} +.freeform-file-upload[data-contains-files] { + padding: 20px; +} +.freeform-file-upload[data-contains-files] [data-placeholder] { + display: none; +} +.freeform-file-upload [data-preview-zone] { + display: grid; + grid-template-columns: repeat(1, 1fr); + gap: 20px; +} +@media (min-width: 576px) { + .freeform-file-upload [data-preview-zone] { + grid-template-columns: repeat(2, 1fr); + } +} +@media (min-width: 768px) { + .freeform-file-upload [data-preview-zone] { + grid-template-columns: repeat(4, 1fr); + } +} +@media (min-width: 992px) { + .freeform-file-upload [data-preview-zone] { + grid-template-columns: repeat(8, 1fr); + } +} +.freeform-file-upload [data-preview-zone] [data-file-preview] { + opacity: 1; + transform: scale(1); + transition: all 0.3s ease-out; +} +.freeform-file-upload [data-preview-zone] [data-file-preview].animation-enter { + opacity: 0; + transform: scale(0.1); +} +.freeform-file-upload [data-preview-zone] [data-file-preview]:hover { + z-index: 2; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] { + position: relative; + width: 100%; + height: 0; + padding-bottom: 100%; + background: #969797; + background-size: cover; + background-position: center center; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-extension-label] { + position: absolute; + left: 0; + right: 0; + top: calc(50% - (36px / 2)); + display: block; + user-select: none; + color: #ffffff; + font-size: 24px; + text-align: center; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail][data-has-preview] [data-extension-label] { + display: none; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-progress] { + position: absolute; + bottom: 0; + left: 0; + right: 0; + width: 100%; + height: 4px; + overflow: hidden; + background: #e5e5e5; + transition: opacity 0.5s ease-out 3s; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-progress]:after { + content: ""; + position: absolute; + left: 0; + bottom: 0; + display: block; + width: var(--progress); + height: inherit; + background-color: #077bff; + transition: background-color 0.5s ease-out; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-remove-button] { + cursor: pointer; + position: absolute; + right: -9px; + top: -9px; + display: flex; + justify-content: center; + align-items: center; + width: 20px; + height: 20px; + background: #e6e5e5; + color: #878787; + border: 1px solid #e6e5e5; + border-radius: 50%; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-remove-button]:hover { + background: #027bff; + color: #ffffff; + border: 1px solid #027bff; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-errors] { + cursor: pointer; + position: absolute; + right: -12px; + bottom: -10px; + z-index: 2; + width: 26px; + height: 26px; + background: #ff0300; + color: #ffffff; + border: 1px solid #ff0300; + border-radius: 50%; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-errors][aria-label=""], .freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-errors]:not([aria-label]) { + display: none; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-errors][aria-label] + [data-progress]:after { + background: #ff0300; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-filename], +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-filesize] { + display: block; + margin: 0; + padding: 0; + text-align: left; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-filename] { + color: #6b6b6b; + word-break: break-all; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-filesize] { + color: #bfbfbf; +} +.freeform-file-upload [data-preview-zone] [data-file-preview][data-completed] [data-progress] { + opacity: 0; +} +.freeform-file-upload [data-preview-zone] [data-file-preview][data-completed] [data-progress]:after { + background: #21dd21; +} +.freeform-file-upload [data-global-loading] { + color: #ffffff; +} +.freeform-file-upload [data-global-loading]:before { + background: #e5e5e5; + width: 100%; +} +.freeform-file-upload [data-global-loading]:before:after { + content: ""; + position: absolute; + left: 0; + bottom: 0; + display: block; + width: var(--progress); + height: inherit; + background-color: #077bff; + transition: background-color 0.5s ease-out; +} +.freeform-file-upload [data-global-messages] { + color: #a73636; +} diff --git a/packages/plugin/src/Resources/css/front-end/plugin/freeform.css b/packages/plugin/src/Resources/css/front-end/plugin/freeform.css index 04ffd4bd8..7a843d460 100644 --- a/packages/plugin/src/Resources/css/front-end/plugin/freeform.css +++ b/packages/plugin/src/Resources/css/front-end/plugin/freeform.css @@ -54,3 +54,180 @@ .opinion-scale ul.opinion-scale-legends li:last-child { text-align: right; } + +.freeform-file-upload { + padding: 67px 20px; + height: auto; + border: 3px dashed #3a85ee; + background: #ffffff; + color: #000000; + text-align: center; +} +.freeform-file-upload[data-dragging] { + border-style: solid; + background-color: #e7e7e7; + color: #c6c6c6; +} +.freeform-file-upload[data-contains-files] { + padding: 20px; +} +.freeform-file-upload[data-contains-files] [data-placeholder] { + display: none; +} +.freeform-file-upload [data-preview-zone] { + display: grid; + grid-template-columns: repeat(1, 1fr); + gap: 20px; +} +@media (min-width: 576px) { + .freeform-file-upload [data-preview-zone] { + grid-template-columns: repeat(2, 1fr); + } +} +@media (min-width: 768px) { + .freeform-file-upload [data-preview-zone] { + grid-template-columns: repeat(4, 1fr); + } +} +@media (min-width: 992px) { + .freeform-file-upload [data-preview-zone] { + grid-template-columns: repeat(8, 1fr); + } +} +.freeform-file-upload [data-preview-zone] [data-file-preview] { + opacity: 1; + transform: scale(1); + transition: all 0.3s ease-out; +} +.freeform-file-upload [data-preview-zone] [data-file-preview].animation-enter { + opacity: 0; + transform: scale(0.1); +} +.freeform-file-upload [data-preview-zone] [data-file-preview]:hover { + z-index: 2; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] { + position: relative; + width: 100%; + height: 0; + padding-bottom: 100%; + background: #969797; + background-size: cover; + background-position: center center; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-extension-label] { + position: absolute; + left: 0; + right: 0; + top: calc(50% - (36px / 2)); + display: block; + user-select: none; + color: #ffffff; + font-size: 24px; + text-align: center; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail][data-has-preview] [data-extension-label] { + display: none; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-progress] { + position: absolute; + bottom: 0; + left: 0; + right: 0; + width: 100%; + height: 4px; + overflow: hidden; + background: #e5e5e5; + transition: opacity 0.5s ease-out 3s; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-progress]:after { + content: ""; + position: absolute; + left: 0; + bottom: 0; + display: block; + width: var(--progress); + height: inherit; + background-color: #077bff; + transition: background-color 0.5s ease-out; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-remove-button] { + cursor: pointer; + position: absolute; + right: -9px; + top: -9px; + display: flex; + justify-content: center; + align-items: center; + width: 20px; + height: 20px; + background: #e6e5e5; + color: #878787; + border: 1px solid #e6e5e5; + border-radius: 50%; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-remove-button]:hover { + background: #027bff; + color: #ffffff; + border: 1px solid #027bff; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-errors] { + cursor: pointer; + position: absolute; + right: -12px; + bottom: -10px; + z-index: 2; + width: 26px; + height: 26px; + background: #ff0300; + color: #ffffff; + border: 1px solid #ff0300; + border-radius: 50%; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-errors][aria-label=""], .freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-errors]:not([aria-label]) { + display: none; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-thumbnail] [data-errors][aria-label] + [data-progress]:after { + background: #ff0300; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-filename], +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-filesize] { + display: block; + margin: 0; + padding: 0; + text-align: left; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-filename] { + color: #6b6b6b; + word-break: break-all; +} +.freeform-file-upload [data-preview-zone] [data-file-preview] [data-filesize] { + color: #bfbfbf; +} +.freeform-file-upload [data-preview-zone] [data-file-preview][data-completed] [data-progress] { + opacity: 0; +} +.freeform-file-upload [data-preview-zone] [data-file-preview][data-completed] [data-progress]:after { + background: #21dd21; +} +.freeform-file-upload [data-global-loading] { + color: #ffffff; +} +.freeform-file-upload [data-global-loading]:before { + background: #e5e5e5; + width: 100%; +} +.freeform-file-upload [data-global-loading]:before:after { + content: ""; + position: absolute; + left: 0; + bottom: 0; + display: block; + width: var(--progress); + height: inherit; + background-color: #077bff; + transition: background-color 0.5s ease-out; +} +.freeform-file-upload [data-global-messages] { + color: #a73636; +} diff --git a/packages/plugin/src/Resources/js/builder/builder.js b/packages/plugin/src/Resources/js/builder/builder.js index a8ee5604b..995f0b7a2 100644 --- a/packages/plugin/src/Resources/js/builder/builder.js +++ b/packages/plugin/src/Resources/js/builder/builder.js @@ -1,2 +1,2 @@ /*! For license information please see builder.js.LICENSE.txt */ -!function(){var e,t={28677:function(e,t,n){"use strict";n.d(t,{Hc:function(){return a},Ui:function(){return u},lC:function(){return c},OE:function(){return l}});var r=n(34470),o=n(81251),i=new r.ZP("composer",9);function a(){var e=(new Date).getTime();return i.encode(e)}function u(e){return i.encode(e)}function c(e){return e?i.decode(e).pop():null}function l(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e;return t&&(n=(0,o.camelize)(e,!0)),n=n.replace(/[^a-zA-Z0-9\-_]/g,"")}},17121:function(e,t,n){"use strict";n.d(t,{MU:function(){return JT},Iu:function(){return XT},Y4:function(){return zT}});n(28594),n(35666);var r=n(67294),o=n(73935),i=n(66612),a=n(14890),u=n(53894),c="hidden",l="text",s="textarea",f="select",p="multiple_select",y="radio",d="radio_group",h="checkbox",b="checkbox_group",m="email",v="dynamic_recipients",g="file",O="datetime",w="number",E="phone",j="website",R="rating",P="regex",A="confirmation",S="opinion_scale",C="html",k="rich_text",x="mailing_list",I="submit",q="recaptcha",T="password",D="cc_details",F="form",B="validation",H="page",N="integration",M="connections",Z="rules",L="admin_notifications",G="payment",U=[c,l,s,f,p,d,h,b,m,v,g,w],V=[c,"invisible",l,s,f,p,d,h,b,m,v,g,O,w,E,j,R,P,A,T,S],Q=[l,m,O,w,E,j,P,T],K=[l,s,f,p,y,d,h,b,m,v,g,O,w,E,j,R,P,A,C,k,x,I,T,S,"table","signature"],Y=[l,s,f,p,y,d,h,b,m,v,O,w,E,j,R,P,A,x,T,S,c],_=[C,k,I,A,T],W="both",J="date",z="time",X=n(45697),$=n.n(X),ee=n(17698),te=n(57865),ne=n(36221),re=n.n(ne),oe="ADD_FIELD_TO_NEW_ROW",ie="REPOSITION_COLUMN",ae="REMOVE_COLUMN",ue="ADD_COLUMN_TO_ROW",ce="ADD_COLUMN_TO_NEW_ROW",le="SWITCH_PAGE",se="SWITCH_HASH",fe="ADD_PAGE",pe="REMOVE_PAGE",ye="UPDATE_PROPERTY",de="REMOVE_PROPERTY",he="RESET_PROPERTIES",be="UPDATE_FORM_ID",me="UPDATE_DUPLICATE_HANDLE_LIST",ve="ADD_VALUE_SET",ge="CLEAN_UP_VALUES",Oe="UPDATE_VALUE_SET",we="UPDATE_IS_CHECKED",Ee="INSERT_VALUE",je="REMOVE_VALUE",Re="TOGGLE_CUSTOM_VALUES",Pe="REORDER_VALUE_SET",Ae="REMOVE_VALUE_SET",Se="MATRIX_ADD_ROW",Ce="MATRIX_REMOVE_ROW",ke="MATRIX_SWAP_ROW",xe="MATRIX_UPDATE_COLUMN",Ie="REQUEST_FIELDS",qe="RECEIVE_FIELDS",Te="INVALIDATE_FIELDS",De="REQUEST_NOTIFICATIONS",Fe="RECEIVE_NOTIFICATIONS",Be="INVALIDATE_NOTIFICATIONS",He="REQUEST_FORM_TEMPLATES",Ne="RECEIVE_FORM_TEMPLATES",Me="INVALIDATE_FORM_TEMPLATES",Ze="REQUEST_MAILING_LISTS",Le="RECEIVE_MAILING_LISTS",Ge="INVALIDATE_MAILING_LISTS",Ue="REQUEST_GENERATED_OPTIONS",Ve="RECEIVE_GENERATED_OPTIONS",Qe="INVALIDATE_GENERATED_OPTIONS",Ke="REQUEST_CRM_INTEGRATIONS",Ye="RECEIVE_CRM_INTEGRATIONS",_e="INVALIDATE_CRM_INTEGRATIONS",We="END_REQUEST_CRM_INTEGRATIONS",Je="REQUEST_PAYMENT_GATEWAYS",ze="RECEIVE_PAYMENT_GATEWAYS",Xe="INVALIDATE_PAYMENT_GATEWAYS",$e="END_REQUEST_PAYMENT_GATEWAYS",et="CREATE_PAYMENT_PLAN",tt="END_CREATE_PAYMENT_PLAN",nt="ADD_CONNECTION",rt="REMOVE_CONNECTION",ot="UPDATE_CONNECTION",it="ADD_PAGE_BLOCK",at="REMOVE_PAGE_BLOCK",ut="ADD_FIELD_RULE",ct="REMOVE_FIELD_RULE",lt="ADD_GOTO_RULE",st="REMOVE_GOTO_RULE",ft="TOGGLE_FIELD_RULE_SHOW",pt="TOGGLE_RULE_MATCH_ALL",yt="ADD_RULE_CRITERIA",dt="REMOVE_RULE_CRITERIA",ht="UPDATE_RULE_CRITERIA_HASH",bt="TOGGLE_RULE_CRITERIA_EQUALS",mt="UPDATE_RULE_CRITERIA_VALUE",vt="ADD_PLACEHOLDER_ROW",gt="ADD_PLACEHOLDER_COLUMN",Ot="ADD_PLACEHOLDER_PAGE",wt="CLEAR_PLACEHOLDERS",Et="SWAP_PAGE";function jt(e){return{type:le,index:e}}function Rt(e){return{type:se,hash:e}}function Pt(e,t,n){return function(r){r({type:oe,hash:e,properties:t,pageIndex:n}),r(Ct())}}function At(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return function(i){i({type:ce,rowIndex:e,hash:t,properties:n,pageIndex:r,prevPageIndex:o}),i(Ct())}}function St(e,t){return function(n){n({type:ye,hash:e,keyValueObject:t}),t.hasOwnProperty("handle")&&n(Ct())}}function Ct(){return function(e,t){var n=t().composer.properties,r=[],o=[];for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];if(a.hasOwnProperty("handle")){var u=a.handle;-1!==r.indexOf(u)?o.push(u):r.push(u)}}e({type:me,duplicateHandles:o})}}var kt,xt,It;function qt(){return{type:wt}}function Tt(e){return(Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ft(e,t){for(var n=0;n button",placement:"right",event:"hover"},{title:"Special Fields",content:"Drag and drop these when you need them. You can have as many HTML fields as you need, but should only have 1 submit button per page.",target:".composer-special-fields",placement:"right",event:"hover"},{title:"Form Layout",content:"This is a live preview of what your form will look like. Drag and drop and fields from the left column into position here. New rows and columns will automatically be created as you position the fields.",target:".builder",placement:"left",event:"hover"},{title:"Editing Fields",content:"Fields can easily be moved around whenever you need. Clicking on any field will open up its properties in the Property Editor in the right column.",target:".layout",placement:"left",event:"hover"},{title:"Multi-page Forms",content:"To create multi-page forms, click the + button to add more pages. You can edit the names of the pages in the Property Editor in the right column. To rearrange pages, click and drag page tabs to shuffle order. To move fields from one page to another, drag and drop fields onto the page tab you'd like it to be on.",target:".tab-list-wrapper",placement:"bottom",event:"hover"},{title:"Property Editor",content:"This is where all your configuration will happen. Clicking on any field, page tab, etc in Composer layout area will load its configuration options here.",target:".property-editor > div > div.sticky + div",placement:"left",event:"hover"}],$t=n(84387);function en(e){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nn(e,t){for(var n=0;n=4&&e.index!==r.rowIndex)return null;var u=i+(a===r.rowIndex?0:1),c=(0,o.findDOMNode)(n).getBoundingClientRect(),l=(c.right-c.left)/u,s=t.getClientOffset().x-c.left;return Math.floor(s/l)}function bn(e,t,n){var r=t.getItem();if(1===r.columnCountInRow&&(r.rowIndex===e.index||r.rowIndex+1===e.index))return null;var i=(0,o.findDOMNode)(n).getBoundingClientRect(),a=t.getClientOffset();return i.top+20>a.y}var mn=n(96436);function vn(e){return(vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function On(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}_n.propTypes={label:$().string,isRequired:$().bool,type:$().string},_n.contextTypes={renderHtml:$().bool.isRequired};function zn(){return(zn=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $n(){return($n=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tr(){return(tr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rr(){return(rr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ir(){return(ir=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ur(){return(ur=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function lr(){return(lr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function fr(){return(fr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var yr=function(e){e.styles;var t=pr(e,["styles"]);return r.createElement("svg",fr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M65.871 30.777c10.172 3.557 18.658 10.53 26.721 17.449l1.704 1.542-1.763 1.475C75.009 66.032 53.051 78.528 30.279 67.25l2.972-3.046c5.771 2.648 11.944 3.57 18.239 3.402 13.881-.933 26.256-9.417 36.675-17.955-7.439-6.823-15.802-12.546-25.443-15.647l3.149-3.227zM49.415 27.903c2.978.012 1.638.008 4.019.014 4.669.531 1.916.127 8.218 1.456l-3.381 3.464c-3.282-.721-1.594-.407-5.066-.925-15.85-.529-29.54 8.274-41.371 17.968 5.409 4.766 11.154 9.243 17.612 12.496l-2.935 3.007c-7.01-3.745-13.174-8.842-19.103-14.078l-1.704-1.542 1.762-1.475C18.002 39.692 29.629 31.152 43.3 28.574c2.014-.45 4.061-.584 6.115-.671z"}),r.createElement("path",{d:"M56.833 40.424c3.104 2.087 3.97 5.02 4.151 8.614 0 6.477-5.25 11.728-11.727 11.728-3.4-.116-6.435-.896-8.424-3.842l16-16.5z"}),r.createElement("path",{d:"M75.634 21.151c.807.041.414.03 1.179.035l.667.431a2 2 0 01.035 2.829l-52.5 53.8a2 2 0 01-2.863-2.794l52.5-53.8c.34-.248.559-.445.982-.501z"}))};function dr(){return(dr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function br(){return(br=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function vr(){return(vr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Or(){return(Or=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Er(){return(Er=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Rr(){return(Rr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ar(){return(Ar=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Cr(){return(Cr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function xr(){return(xr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function qr(){return(qr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Dr(){return(Dr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Br(){return(Br=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Nr(){return(Nr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Zr(){return(Zr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Gr(){return(Gr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Vr(){return(Vr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Kr(){return(Kr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _r(){return(_r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Jr(){return(Jr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Xr(){return(Xr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var eo={text:function(e){e.styles;var t=Wr(e,["styles"]);return r.createElement("svg",_r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M87.921 28.5c3.917 0 7.079 3.179 7.079 7.085v29.83c0 3.906-3.162 7.085-7.079 7.085H12.079C8.162 72.5 5 69.321 5 65.415v-29.83c0-3.906 3.162-7.085 7.079-7.085h75.842zm0 4H12.079c-1.668 0-3.034 1.374-3.034 3.085v29.83c0 1.711 1.366 3.085 3.034 3.085h75.842c1.668 0 3.034-1.374 3.034-3.085v-29.83c0-1.711-1.366-3.085-3.034-3.085z"}),r.createElement("path",{d:"M57.567 16c4.356.016 8.091 2.075 10.585 5.535 2.365-3.638 6.331-5.334 10.584-5.535h.758v4h-.758c-4.727 0-8.511 3.519-8.511 7.796v44.408c0 4.277 3.784 7.796 8.511 7.796h.758v4h-.758c-4.356-.017-8.09-2.075-10.584-5.535-2.366 3.638-6.332 5.334-10.585 5.535h-.758v-4h.758c4.728 0 8.512-3.519 8.512-7.796V27.796c0-4.277-3.784-7.796-8.512-7.796h-.758v-4h.758z"}))},textarea:function(e){e.styles;var t=zr(e,["styles"]);return r.createElement("svg",Jr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M88.222 11C91.986 11 95 14.181 95 18.06v63.88c0 3.879-3.014 7.06-6.778 7.06H11.778C8.014 89 5 85.819 5 81.94V18.06C5 14.181 8.014 11 11.778 11h76.444zm0 4.034H11.778C10.265 15.035 9 16.369 9 18.06v63.88c0 1.691 1.265 3.026 2.778 3.026h76.444c1.514 0 2.778-1.335 2.778-3.026V18.06c0-1.691-1.264-3.025-2.778-3.026z"}),r.createElement("path",{d:"M18.459 21.833c2.36.067 3.081.689 4.624 2.079 1.146-1.422 2.773-1.911 4.625-2.079h1.375v2.477h-1.376c-1.772 0-3.209 1.294-3.21 2.89v19.266c.001 1.596 1.438 2.89 3.211 2.89h1.375v2.477h-1.376c-2.359-.067-3.08-.689-4.624-2.078-1.145 1.421-2.773 1.91-4.624 2.078h-1.376v-2.477h1.376c1.773 0 3.21-1.294 3.21-2.89V27.2c0-1.596-1.437-2.89-3.21-2.89h-1.376v-2.477h1.376z"}))},hidden:yr,file:function(e){e.styles;var t=sr(e,["styles"]);return r.createElement("svg",lr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M70.197 14.067c10.272 1.243 17.308 12.325 10.43 21.277l-.106.115-5.484 5.508-12.066 12.117-12.065 12.117c-4.388 4.407-4.388 4.407-5.552 5.572-4.295 3.93-9.917 3.664-13.75.099-3.795-3.531-4.411-9.018-.657-12.995l3.984-3.946 7.923-7.845 9.608-9.514 3.985-3.945a2 2 0 112.814 2.842l-3.984 3.945-7.923 7.846-9.608 9.514-3.937 3.896c-4.638 4.917 3.259 12.264 8.778 7.217l5.484-5.508 12.066-12.117 12.065-12.117 5.407-5.431c5.784-7.478-4.023-18.569-12.691-12.899l-1.644 1.686-4.644 4.764-14.094 14.454-14.094 14.455-4.644 4.763-1.755 1.799c-9.962 10.472 4.396 26.276 15.989 17.557l.302-.298 1.085-1.068 3.872-3.812c4.006-3.943 8.014-7.887 11.757-11.567l.043-.043C67.55 52.222 73.748 46.147 74.275 45.678a2 2 0 012.658 2.99c-.443.393-6.939 6.76-17.037 16.689l-.043.043c-3.743 3.68-7.75 7.623-11.756 11.566l-3.872 3.811-1.084 1.068-.384.378-.124.113C27.848 94.632 7.359 73.273 21.172 58.952l1.762-1.807 4.644-4.764 14.094-14.454 14.094-14.455 4.644-4.763 1.762-1.807.079-.082.089-.072c2.726-2.154 4.511-2.505 7.857-2.681z"}))},email:function(e){e.styles;var t=cr(e,["styles"]);return r.createElement("svg",ur({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M84 21.667a7 7 0 017 7v42.667a7 7 0 01-7 7H16a7 7 0 01-7-7V28.667a7 7 0 017-7h68zm0 4H16a3 3 0 00-3 3v42.667a3 3 0 003 3h68a3 3 0 003-3V28.667a3 3 0 00-3-3z"}),r.createElement("path",{d:"M86.487 23.563l2.475 3.142-33.891 26.7.177-.157c-2.474 2.473-8.356 2.473-10.829 0l.169.151-33.309-26.5 2.49-3.13 33.309 26.5.089.07.081.081c.911.911 4.26.911 5.171 0l.084-.084.093-.073 33.891-26.7z"}))},checkbox:function(e){e.styles;var t=Xn(e,["styles"]);return r.createElement("svg",zn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M70.334 22.667a7 7 0 017 7v40.667a7 7 0 01-7 7H29.667a7 7 0 01-7-7V29.667a7 7 0 017-7h40.667zm0 4H29.667a3 3 0 00-3 3v40.667a3 3 0 003 3h40.667a3 3 0 003-3V29.667a3 3 0 00-3-3z"}),r.createElement("path",{d:"M67.662 34.754l2.843 2.815-26.001 26.25-1.414 1.427-1.421-1.42-10-10 2.828-2.828 8.579 8.578 24.586-24.822z"}))},checkbox_group:function(e){e.styles;var t=Jn(e,["styles"]);return r.createElement("svg",Wn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M31.5 35h60M31.5 52h60M31.5 69.5h60",stroke:"#000",strokeWidth:"4",fill:"none"}),r.createElement("path",{d:"M25.061 25.419l2.358 2.369-11.391 11.447-1.179 1.184-1.179-1.184-6.251-6.282 2.358-2.369 5.072 5.097 10.212-10.262zM25.061 42l2.358 2.369-11.391 11.447L14.849 57l-1.179-1.184-6.251-6.282 2.358-2.369 5.072 5.097L25.061 42zM25.061 59l2.358 2.369-11.391 11.447L14.849 74l-1.179-1.184-6.251-6.282 2.358-2.369 5.072 5.097L25.061 59z"}))},confirmation:function(e){e.styles;var t=er(e,["styles"]);return r.createElement("svg",$n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M51.859 16.833c7.874.033 15.21 2.798 21.362 7.669 1.108.877 1.998 1.999 2.998 2.998h-6.705c-5.107-4.141-11.208-5.762-17.655-6.087-16.019 0-29.004 12.985-29.004 29.004 0 16.018 12.985 29.003 29.004 29.003 9.435-.153 18.323-4.545 23.64-12.42H81c-6.669 10.978-16.417 16.357-29.141 17-18.548 0-33.584-15.036-33.584-33.583 0-18.548 15.036-33.584 33.584-33.584z"}),r.createElement("path",{d:"M78.739 15.114v18.473H60.266l18.473-18.473z"}))},cc_details:function(e){e.styles;var t=nr(e,["styles"]);return r.createElement("svg",tr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M84 21.333a7 7 0 017 7V71a7 7 0 01-7 7H16a7 7 0 01-7-7V28.333a7 7 0 017-7h68zm0 4H16a3 3 0 00-3 3V71a3 3 0 003 3h68a3 3 0 003-3V28.333a3 3 0 00-3-3z"}),r.createElement("path",{d:"M12.167 38.5h76.666",stroke:"#000",strokeWidth:"12",fill:"none"}))},datetime:function(e){e.styles;var t=or(e,["styles"]);return r.createElement("svg",rr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M81.16 19.867c3.782 0 6.84 3.086 6.84 6.884v52.364C88 82.914 84.942 86 81.16 86H18.19c-3.782 0-6.84-3.086-6.84-6.885V26.751c0-3.798 3.058-6.884 6.84-6.884h62.97zm0 4H18.19c-1.564 0-2.84 1.287-2.84 2.884v52.364c0 1.598 1.276 2.885 2.84 2.885h62.97c1.564 0 2.84-1.287 2.84-2.885V26.751c0-1.597-1.276-2.884-2.84-2.884z"}),r.createElement("path",{d:"M86.067 36.5v4h-72.6v-4h72.6zM29.3 12.167a3 3 0 013 3V27.5a3 3 0 11-6 0V15.167a3 3 0 013-3zM69.9 12.167a3 3 0 013 3V27.5a3 3 0 11-6 0V15.167a3 3 0 013-3z"}))},dynamic_recipients:function(e){e.styles;var t=ar(e,["styles"]);return r.createElement("svg",ir({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M77.748 20.739c3.534 0 6.4 2.865 6.399 6.399v39.005a6.398 6.398 0 01-6.399 6.399H15.584a6.4 6.4 0 01-6.399-6.399V27.138a6.4 6.4 0 016.399-6.399h62.164zm0 3.656H15.584a2.744 2.744 0 00-2.743 2.743v39.005a2.743 2.743 0 002.743 2.743h62.164a2.743 2.743 0 002.743-2.743V27.138a2.744 2.744 0 00-2.743-2.743z"}),r.createElement("path",{d:"M80.021 22.472l2.263 2.872-30.982 24.409.161-.144c-2.261 2.261-7.638 2.261-9.899 0l.155.138-30.451-24.226 2.277-2.861 30.45 24.226.081.064.074.074c.833.833 3.895.833 4.728 0l.076-.077.085-.067 30.982-24.408zM87.158 28.199c2.441.864 3.418 3.285 3.657 5.658v39.005a6.4 6.4 0 01-6.399 6.399H22.252c-2.445-.09-4.682-1.337-5.65-3.638h59.72v-.019h8.094a2.741 2.741 0 002.743-2.742V33.857l-.001-.001v-5.657z"}))},html:function(e){e.styles;var t=hr(e,["styles"]);return r.createElement("svg",dr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M59.217 22.759l-2.529-.694a1.143 1.143 0 00-.958.102 1.328 1.328 0 00-.633.796L39.886 75.609c-.108.354-.074.687.102.999.177.313.442.524.796.633l2.528.693c.326.11.646.075.958-.102.313-.177.524-.441.632-.794L60.114 24.39a1.225 1.225 0 00-.103-1 1.321 1.321 0 00-.794-.631zM36.421 33.036c0-.354-.136-.667-.408-.938l-2.039-2.039c-.272-.272-.585-.408-.938-.408s-.666.136-.938.408L13.095 49.062c-.272.272-.408.584-.408.938 0 .353.136.666.408.938l19.003 19.003c.272.272.584.407.938.407s.666-.135.938-.407l2.039-2.038c.272-.272.408-.585.408-.939 0-.353-.136-.665-.408-.937L19.987 50l16.026-16.026c.273-.272.408-.585.408-.938zM86.905 49.061L67.902 30.058c-.272-.271-.585-.408-.938-.408-.354 0-.665.137-.938.408l-2.038 2.039c-.272.272-.408.584-.408.938s.136.666.408.938L80.014 50 63.988 66.027c-.272.272-.408.585-.408.937 0 .354.136.667.408.939l2.038 2.038c.273.272.585.407.938.407s.666-.135.938-.407l19.003-19.003c.272-.272.408-.585.408-.939 0-.353-.136-.666-.408-.938z"}))},mailing_list:function(e){e.styles;var t=mr(e,["styles"]);return r.createElement("svg",br({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M93.073 18.887a1.419 1.419 0 00-1.276-.504 1.36 1.36 0 00-.32.056L8.663 40.963a1.432 1.432 0 00-1.054 1.341c-.015.63.385 1.197.983 1.394l30.302 9.929-2.711 21.682a1.428 1.428 0 002.285 1.312l11.09-8.493 9.722 13.89c.269.384.706.61 1.17.61l.097-.003c.5-.035.944-.327 1.173-.774l31.51-61.413c.263-.503.2-1.111-.157-1.551zm-9.919 4.776L40.259 51.067l-26.246-8.599 69.141-18.805zM39.441 72.279l1.974-15.786 6.505 9.293-8.479 6.493zm20.823 6.16L42.483 53.037l45.845-29.29-28.064 54.692z"}),r.createElement("path",{d:"M93.073 18.887a1.419 1.419 0 00-1.276-.504 1.36 1.36 0 00-.32.056L8.663 40.963a1.432 1.432 0 00-1.054 1.341c-.015.63.385 1.197.983 1.394l30.302 9.929-2.711 21.682a1.428 1.428 0 002.285 1.312l11.09-8.493 9.722 13.89c.269.384.706.61 1.17.61l.097-.003c.5-.035.944-.327 1.173-.774l31.51-61.413c.263-.503.2-1.111-.157-1.551zm-9.919 4.776L40.259 51.067l-26.246-8.599 69.141-18.805zM39.441 72.279l1.974-15.786 6.505 9.293-8.479 6.493zm20.823 6.16L42.483 53.037l45.845-29.29-28.064 54.692z",stroke:"#000",strokeWidth:".5",fill:"none"}))},multiple_select:function(e){e.styles;var t=gr(e,["styles"]);return r.createElement("svg",vr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M88.222 11C91.986 11 95 14.181 95 18.06v63.88c0 3.879-3.014 7.06-6.778 7.06H11.778C8.014 89 5 85.819 5 81.94V18.06C5 14.181 8.014 11 11.778 11h76.444zm0 4.034H11.778C10.265 15.035 9 16.369 9 18.06v63.88c0 1.691 1.265 3.026 2.778 3.026h76.444c1.514 0 2.778-1.335 2.778-3.026V18.06c0-1.691-1.264-3.025-2.778-3.026z"}),r.createElement("path",{d:"M20.334 33.5h60M20.334 50.5h60M20.334 68h60",stroke:"#000",strokeWidth:"4",fill:"none"}))},number:function(e){e.styles;var t=wr(e,["styles"]);return r.createElement("svg",Or({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M87.921 28C91.838 28 95 31.179 95 35.085v29.83C95 68.821 91.838 72 87.921 72H12.079C8.162 72 5 68.821 5 64.915v-29.83C5 31.179 8.162 28 12.079 28h75.842zm0 4H12.079c-1.668 0-3.034 1.374-3.034 3.085v29.83c0 1.711 1.366 3.085 3.034 3.085h75.842c1.668 0 3.034-1.374 3.034-3.085v-29.83c0-1.711-1.366-3.085-3.034-3.085z"}),r.createElement("path",{d:"M20.576 43.245q1.039 0 2.02-.173.982-.174 1.776-.578.794-.404 1.356-1.039.563-.635.737-1.559h2.684v20.208h-3.608V45.843h-4.965zM55.27 60.104H41.471q.029-2.512 1.212-4.388 1.184-1.877 3.233-3.262.982-.722 2.05-1.4 1.068-.679 1.963-1.458.895-.78 1.472-1.689.578-.909.607-2.093 0-.548-.13-1.169t-.505-1.155q-.376-.534-1.04-.895t-1.732-.361q-.981 0-1.631.39-.649.39-1.039 1.068-.39.679-.577 1.602-.188.924-.217 1.992h-3.291q0-1.674.448-3.103.447-1.429 1.342-2.468t2.179-1.631q1.285-.592 2.988-.592 1.848 0 3.089.606 1.242.606 2.007 1.53.765.924 1.082 2.007.318 1.082.318 2.064 0 1.212-.376 2.194-.375.981-1.01 1.804-.635.823-1.443 1.515-.809.693-1.675 1.3-.866.606-1.732 1.154-.866.549-1.602 1.097-.736.549-1.285 1.141-.548.591-.75 1.255h9.844zM70.851 48.268q.808.029 1.616-.116.809-.144 1.444-.505.635-.361 1.025-.996.389-.635.389-1.559 0-1.299-.88-2.078-.881-.78-2.266-.78-.866 0-1.502.347-.635.346-1.053.938-.419.592-.621 1.328-.202.736-.173 1.516h-3.291q.058-1.473.548-2.728.491-1.256 1.343-2.18.851-.924 2.064-1.443 1.212-.52 2.742-.52 1.184 0 2.324.346 1.141.347 2.05 1.011.909.664 1.458 1.689.548 1.024.548 2.352 0 1.53-.693 2.671-.692 1.14-2.165 1.66v.057q1.732.347 2.699 1.718.967 1.371.967 3.334 0 1.444-.577 2.584-.577 1.14-1.559 1.934-.981.794-2.28 1.227-1.299.433-2.743.433-1.761 0-3.074-.505-1.314-.505-2.194-1.429-.881-.924-1.343-2.223-.461-1.299-.49-2.887h3.291q-.058 1.848.909 3.075.967 1.227 2.901 1.227 1.646 0 2.757-.939 1.112-.938 1.112-2.67 0-1.184-.462-1.876-.462-.693-1.213-1.054-.75-.361-1.689-.448-.938-.086-1.919-.057z"}))},opinion_scale:function(e){e.styles;var t=jr(e,["styles"]);return r.createElement("svg",Er({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("g",{stroke:"#000",strokeWidth:"12",fill:"none"},r.createElement("path",{d:"M73.5 79.5V19.939M49.775 79.5V43.763M25.95 79.5V67.588"})))},password:function(e){e.styles;var t=Pr(e,["styles"]);return r.createElement("svg",Rr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M25.76 43.152h49.48c3.208 0 5.81 2.155 5.81 4.815V78.3c0 2.659-2.602 4.815-5.81 4.815H25.76c-3.208 0-5.81-2.156-5.81-4.815V47.967c0-2.66 2.602-4.815 5.81-4.815zM50.5 17.885c13.198.521 20.293 13.309 20.776 25.267H29.724c.202-12.2 7.794-24.448 20.776-25.267z",stroke:"#000",strokeWidth:"4",fill:"none"}),r.createElement("path",{d:"M46.22 62.98l-1.009 9.074a1.598 1.598 0 001.59 1.776h6.398a1.598 1.598 0 001.59-1.776L53.78 62.98a6.327 6.327 0 002.618-5.145A6.405 6.405 0 0050 51.436a6.405 6.405 0 00-6.398 6.399c0 2.068.979 3.953 2.618 5.145zM50 54.636a3.203 3.203 0 013.199 3.199c0 1.226-.697 2.324-1.818 2.868a1.6 1.6 0 00-.894 1.616l.925 8.312h-2.824l.925-8.312a1.6 1.6 0 00-.894-1.616c-1.121-.544-1.818-1.642-1.818-2.868A3.203 3.203 0 0150 54.636z"}),r.createElement("path",{d:"M50.5 25.594c8.596.362 13.217 9.248 13.531 17.558H36.969c.131-8.478 5.076-16.989 13.531-17.558z",stroke:"#000",strokeWidth:"4",fill:"none"}))},phone:function(e){e.styles;var t=Sr(e,["styles"]);return r.createElement("svg",Ar({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M30.967 21.108a8.144 8.144 0 00-.961.405c-.786.405-3.297 2.487-5.044 4.177-2.696 2.626-3.864 4.304-3.968 5.715-.116 1.4.486 4.42 1.307 6.652 2.14 5.715 6.282 11.986 12.576 18.985 1.944 2.163 6.942 7.161 9.105 9.105 6.837 6.144 12.935 10.227 18.569 12.414 2.383.925 5.865 1.631 7.254 1.469.752-.092 1.897-.717 3.112-1.701 2.129-1.712 6.005-6.108 6.745-7.635.336-.694.359-.845.359-1.967 0-1.087-.035-1.272-.313-1.793-.162-.324-.451-.717-.636-.891-.405-.381-11.685-7.879-12.472-8.284-.486-.254-.729-.3-1.562-.3-1.516 0-2.036.208-6.328 2.661l-1.921 1.087-1.098-.822c-2.141-1.607-4.409-3.655-7.903-7.149-3.493-3.505-5.541-5.762-7.15-7.914l-.833-1.098 1.342-2.349c1.782-3.146 2.106-3.818 2.326-4.847.22-1.03.151-1.886-.197-2.58-.498-.96-8.168-12.413-8.527-12.715-.844-.706-2.602-.995-3.782-.625zm2.129 2.256c.196.197 4.384 6.479 7.172 10.748 1.019 1.562 1.076 1.677 1.019 2.128-.081.614-.625 1.701-2.511 5.01-.833 1.458-1.573 2.742-1.631 2.857-.197.347 1.758 3.043 4.442 6.108.648.729 2.708 2.869 4.593 4.744 4.107 4.119 6.872 6.548 9.441 8.284l1.111.752.358-.232c.845-.509 4.628-2.638 5.819-3.274.868-.451 1.481-.705 1.852-.74l.566-.07 6.132 4.073c3.378 2.233 6.201 4.153 6.282 4.257.197.267.173.938-.081 1.47-.682 1.492-5.287 6.617-6.953 7.728-.602.405-.682.428-1.585.428-4.893 0-12.413-3.841-20.199-10.331-4.894-4.084-11.118-10.308-15.202-15.202-6.503-7.798-10.263-15.155-10.343-20.188-.012-.764.022-.949.312-1.435.798-1.376 5.554-5.75 7.531-6.941.775-.463 1.516-.532 1.875-.174z"}),r.createElement("path",{d:"M30.967 21.108a8.144 8.144 0 00-.961.405c-.786.405-3.297 2.487-5.044 4.177-2.696 2.626-3.864 4.304-3.968 5.715-.116 1.4.486 4.42 1.307 6.652 2.14 5.715 6.282 11.986 12.576 18.985 1.944 2.163 6.942 7.161 9.105 9.105 6.837 6.144 12.935 10.227 18.569 12.414 2.383.925 5.865 1.631 7.254 1.469.752-.092 1.897-.717 3.112-1.701 2.129-1.712 6.005-6.108 6.745-7.635.336-.694.359-.845.359-1.967 0-1.087-.035-1.272-.313-1.793-.162-.324-.451-.717-.636-.891-.405-.381-11.685-7.879-12.472-8.284-.486-.254-.729-.3-1.562-.3-1.516 0-2.036.208-6.328 2.661l-1.921 1.087-1.098-.822c-2.141-1.607-4.409-3.655-7.903-7.149-3.493-3.505-5.541-5.762-7.15-7.914l-.833-1.098 1.342-2.349c1.782-3.146 2.106-3.818 2.326-4.847.22-1.03.151-1.886-.197-2.58-.498-.96-8.168-12.413-8.527-12.715-.844-.706-2.602-.995-3.782-.625zm2.129 2.256c.196.197 4.384 6.479 7.172 10.748 1.019 1.562 1.076 1.677 1.019 2.128-.081.614-.625 1.701-2.511 5.01-.833 1.458-1.573 2.742-1.631 2.857-.197.347 1.758 3.043 4.442 6.108.648.729 2.708 2.869 4.593 4.744 4.107 4.119 6.872 6.548 9.441 8.284l1.111.752.358-.232c.845-.509 4.628-2.638 5.819-3.274.868-.451 1.481-.705 1.852-.74l.566-.07 6.132 4.073c3.378 2.233 6.201 4.153 6.282 4.257.197.267.173.938-.081 1.47-.682 1.492-5.287 6.617-6.953 7.728-.602.405-.682.428-1.585.428-4.893 0-12.413-3.841-20.199-10.331-4.894-4.084-11.118-10.308-15.202-15.202-6.503-7.798-10.263-15.155-10.343-20.188-.012-.764.022-.949.312-1.435.798-1.376 5.554-5.75 7.531-6.941.775-.463 1.516-.532 1.875-.174z",stroke:"#000",strokeWidth:".5",fill:"none"}))},radio_group:function(e){e.styles;var t=kr(e,["styles"]);return r.createElement("svg",Cr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M28.5 33.5h60M28.5 50.5h60M28.5 68h60",stroke:"#000",strokeWidth:"4",fill:"none"}),r.createElement("path",{d:"M17.167 25.586a7 7 0 110 14 7 7 0 110-14zm0 2.47a4.53 4.53 0 100 9.059 4.53 4.53 0 000-9.059zm0 1.647a2.882 2.882 0 110 5.765 2.882 2.882 0 010-5.765zM17.167 43.25a7 7 0 110 14 7 7 0 110-14zm0 2.471a4.53 4.53 0 100 9.058 4.529 4.529 0 100-9.058zm0 1.647a2.882 2.882 0 110 5.764 2.882 2.882 0 110-5.764zM17.167 60a7 7 0 110 14 7 7 0 110-14zm0 2.471a4.53 4.53 0 100 9.058 4.529 4.529 0 100-9.058zm0 1.647a2.882 2.882 0 110 5.764 2.882 2.882 0 110-5.764z"}))},rating:function(e){e.styles;var t=Ir(e,["styles"]);return r.createElement("svg",xr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M27.954 83.5l4.125-24.051-17.474-17.032 24.148-3.509 10.799-21.882 10.8 21.882L84.5 42.417 67.026 59.449 71.151 83.5 49.552 72.145z",stroke:"#000",strokeWidth:"4",fill:"none"}))},recaptcha:function(e){e.styles;var t=Tr(e,["styles"]);return r.createElement("svg",qr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M84.979 49.951a35.368 35.368 0 00-.035-1.497v-28.31l-7.827 7.827c-6.405-7.841-16.149-12.849-27.064-12.849-11.358 0-21.449 5.422-27.828 13.818l12.829 12.963a16.994 16.994 0 015.196-5.83c2.24-1.748 5.413-3.177 9.803-3.177.53 0 .939.062 1.24.179 5.439.429 10.153 3.431 12.929 7.787l-9.08 9.081c11.501-.045 24.494-.072 29.836.006",fill:"#1C3AA9"}),r.createElement("path",{d:"M49.849 15.124c-.502.001-1.001.013-1.497.035H20.043l7.826 7.827c-7.84 6.405-12.848 16.15-12.848 27.064 0 11.358 5.421 21.449 13.817 27.828L41.802 65.05a17.02 17.02 0 01-5.831-5.197c-1.747-2.24-3.176-5.413-3.176-9.803 0-.53.062-.939.178-1.24.43-5.439 3.431-10.153 7.788-12.929l9.08 9.08c-.045-11.501-.072-24.494.006-29.836",fill:"#4285F4"}),r.createElement("path",{d:"M15.022 50.049c.002.502.013 1.001.036 1.497v28.31l7.826-7.827c6.405 7.841 16.15 12.849 27.064 12.849 11.359 0 21.449-5.422 27.828-13.818L64.948 58.097a16.986 16.986 0 01-5.197 5.83c-2.239 1.748-5.413 3.177-9.802 3.177-.531 0-.94-.062-1.241-.179-5.439-.429-10.153-3.431-12.929-7.787l9.081-9.081c-11.502.045-24.495.072-29.837-.006",fill:"#ABABAB"}))},regex:function(e){e.styles;var t=Fr(e,["styles"]);return r.createElement("svg",Dr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M34.531 62.497q-.814-1.302-1.532-2.684-.718-1.382-1.247-2.914-.529-1.532-.827-3.239-.298-1.708-.298-3.66 0-3.28 1.017-6.452 1.016-3.171 2.887-6.045h2.521q-1.627 2.928-2.481 6.005-.854 3.076-.854 6.492t.814 6.506q.813 3.09 2.521 5.991zM43.223 55.467h3.768v3.659h-3.768zM46.693 44.562l.882-2.607 4.411 1.725v-4.812h2.727v4.812l4.37-1.725.963 2.607-4.572 1.524 2.807 3.769-2.125 1.564-2.847-3.93-2.727 3.93-2.245-1.564 2.807-3.769zM65.469 37.503q.814 1.302 1.519 2.698.704 1.396 1.233 2.927.529 1.532.84 3.24.312 1.707.312 3.659 0 3.28-1.017 6.452-1.016 3.171-2.887 6.018h-2.521q1.627-2.901 2.481-5.978.854-3.076.854-6.492 0-3.415-.814-6.506-.813-3.09-2.521-6.018z"}),r.createElement("g",null,r.createElement("path",{d:"M87.921 28C91.838 28 95 31.179 95 35.085v29.83C95 68.821 91.838 72 87.921 72H12.079C8.162 72 5 68.821 5 64.915v-29.83C5 31.179 8.162 28 12.079 28h75.842zm0 4H12.079c-1.668 0-3.034 1.374-3.034 3.085v29.83c0 1.711 1.366 3.085 3.034 3.085h75.842c1.668 0 3.034-1.374 3.034-3.085v-29.83c0-1.711-1.366-3.085-3.034-3.085z"})))},rich_text:function(e){e.styles;var t=Hr(e,["styles"]);return r.createElement("svg",Br({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M49.009 40.356h35.607M49.009 56.676h35.607M15.384 72.997h69.232",stroke:"#000",strokeWidth:"3",fill:"none"}),r.createElement("path",{d:"M31.259 27.003h4.896l4.599 32.418h-4.71l-1.076-8.581H24.434l-4.08 8.581h-4.97zm1.595 5.721h-.074L26.4 46.527h8.086z"}))},select:function(e){e.styles;var t=Mr(e,["styles"]);return r.createElement("svg",Nr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M86.921 28C90.838 28 94 31.179 94 35.085v29.83C94 68.821 90.838 72 86.921 72H11.079C7.162 72 4 68.821 4 64.915v-29.83C4 31.179 7.162 28 11.079 28h75.842zm0 4H11.079c-1.668 0-3.034 1.374-3.034 3.085v29.83c0 1.711 1.366 3.085 3.034 3.085h75.842c1.668 0 3.034-1.374 3.034-3.085v-29.83c0-1.711-1.366-3.085-3.034-3.085z"}),r.createElement("path",{d:"M81.156 45.438L68.093 58.501 55.031 45.438h26.125z"}))},signature:function(e){e.styles;var t=Lr(e,["styles"]);return r.createElement("svg",Zr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M34.898 84l5.228-21.172 32.282-44.274c2.194-3.008 6.463-3.588 9.529-1.353l2.178 1.589c3.066 2.235 3.819 6.478 1.626 9.486L56.699 68.105l-3.241 4.444L34.898 84zm11.701-23.26l-.884 1.212 6.868 5.008 29.925-41.041c.87-1.193.56-2.942-.749-3.897l-2.179-1.589c-1.309-.954-3.07-.715-3.94.478L46.599 60.74zM23.872 71.254l.613.036.613.251.417.325.302.334.245.34.218.352.205.37.294.584.397.858.41.931.424.975.441.994.459.987.476.95.492.883.502.783.368.488.232.267.236.237.223.189.206.14.181.092.035.007a1.501 1.501 0 01-1.21 2.745l-.295-.137-.466-.273-.428-.317-.395-.352-.369-.383-.357-.425-.491-.666-.595-.939-.551-.996-.514-1.028-.482-1.036-.449-1.014-.419-.964-.387-.881-.221-.479-.089.274-.279.972-.284 1.058-.288 1.104-.294 1.111-.302 1.085-.312 1.019-.243.702-.176.447-.19.426-.217.409-.267.401-.367.399-.559.362-.786.162-.769-.175-.462-.289-.082-.072a1.509 1.509 0 01-.127-.126l-.211-.254-.272-.412-.227-.436-.204-.468-.189-.501-.183-.54-.26-.848-.334-1.184-.329-1.201-.328-1.157-.248-.799-.162-.472-.103-.274-.012.026-.133.318-.138.358-.144.4-.149.442-.153.485-.158.527-.164.575-.085.311a1.5 1.5 0 01-2.893-.794l.085-.311.171-.602.17-.568.167-.529.166-.492.163-.456.162-.423.162-.391.238-.519.324-.595.355-.516.421-.448.558-.377.765-.213.846.108.671.373.461.461.335.483.269.5.233.521.211.546.197.569.276.884.35 1.228.337 1.229.327 1.163.134.433.212-.7.281-1.013.284-1.075.287-1.096.289-1.076.293-1.023.301-.935.24-.641.175-.403.186-.366.216-.347.277-.341.408-.341.425-.212c.102-.037.207-.063.314-.078l.07-.01zm-3.551 11.443l.077.098-.025-.047-.052-.051zm-.019-.025l.026.023-.026-.023zm-4.548-7.537l-.086.054-.067.087.08-.039.073-.102zm9.145-1.273l-.074.104-.01.018.1-.116-.016-.006z"}))},spam:function(e){e.styles;var t=Ur(e,["styles"]);return r.createElement("svg",Gr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M49.141 16.259c-.24.134-.867.627-1.401 1.081-5.173 4.387-12.841 6.841-19.522 6.267-1.027-.094-2.213-.2-2.653-.24-.693-.054-.867-.027-1.267.253-1 .667-.933-.253-.933 13.975 0 13.481.04 14.748.613 17.322 1.88 8.428 8.921 17.428 19.855 25.362C47.06 82.626 49.354 84 50.034 84c1.186 0 7.56-4.44 12.068-8.401 1.786-1.574 4.88-4.707 6.28-6.334 3.56-4.186 6.201-8.867 7.388-13.067.88-3.161.866-2.84.866-17.936 0-12.961-.013-13.695-.24-14.041a2.335 2.335 0 00-.667-.64c-.466-.293-.253-.293-3.866.027-4.468.4-9.681-.614-14.029-2.734-1.906-.92-4.454-2.574-5.773-3.747-.467-.401-1.027-.827-1.227-.934a1.706 1.706 0 00-1.693.066zm2.08 5.108c4.253 3.134 9.254 5.147 14.615 5.908 1.067.146 2.507.227 4.307.227l2.707.013-.054 12.268c-.04 13.774 0 13.148-1.053 16.321-1.027 3.093-2.947 6.468-5.534 9.694-2.547 3.187-7.013 7.414-11 10.415-2.053 1.546-4.961 3.52-5.175 3.52-.493 0-6.08-4.107-8.934-6.56-7.454-6.428-12.001-13.015-13.494-19.576-.281-1.24-.294-1.507-.334-13.681l-.053-12.415h2.64c4.654.013 8.454-.747 12.682-2.52 2.213-.934 5.2-2.681 6.88-4.041.28-.227.547-.413.573-.413.04 0 .587.386 1.227.84z"}),r.createElement("path",{d:"M40.428 55.965l6.757-6.757-6.706-6.706 2.823-2.824 6.707 6.707 6.706-6.707 2.858 2.858-6.707 6.706 6.707 6.706-2.824 2.824-6.707-6.706-6.756 6.757z"}))},submit:function(e){e.styles;var t=Qr(e,["styles"]);return r.createElement("svg",Vr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M67.446 59.5l-2.275-2.275 5.85-5.85H55.225v-3.25h15.796l-5.85-5.85L67.446 40l9.749 9.75-9.749 9.75z"}),r.createElement("path",{d:"M17.5 28h66a5 5 0 015 5v34.5a5 5 0 01-5 5h-66a5 5 0 01-5-5V33a5 5 0 015-5z",stroke:"#000",strokeWidth:"4",fill:"none"}))},website:function(e){e.styles;var t=$r(e,["styles"]);return r.createElement("svg",Xr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M50 17.73h-.079C32.133 17.77 17.73 32.205 17.73 50s14.403 32.224 32.191 32.27H50c17.821 0 32.27-14.449 32.27-32.27 0-17.821-14.449-32.27-32.27-32.27zm1.291 19.309a47.709 47.709 0 009.957-1.323c.968 3.806 1.568 8.186 1.66 12.993H51.291v-11.67zm0-2.581V20.516c3.477.961 7.007 5.604 9.253 12.717a44.631 44.631 0 01-9.253 1.225zm-2.582-13.975v13.975a44.334 44.334 0 01-9.325-1.252c2.265-7.152 5.822-11.808 9.325-12.723zm0 16.556v11.67H37.013c.092-4.814.698-9.2 1.66-13.007a47.48 47.48 0 0010.036 1.337zm-14.297 11.67H20.345a29.524 29.524 0 016.717-17.531 47.387 47.387 0 009.115 3.846c-1.041 4.116-1.667 8.759-1.765 13.685zm0 2.582c.092 4.926.717 9.562 1.765 13.685a46.974 46.974 0 00-9.115 3.853c-3.958-4.821-6.434-10.9-6.717-17.538h14.067zm2.601 0h11.696v11.657a47.547 47.547 0 00-10.036 1.343c-.969-3.807-1.568-8.193-1.66-13zm11.696 14.232v13.988c-3.503-.916-7.066-5.579-9.332-12.744a45.399 45.399 0 019.332-1.244zm2.582 13.961V65.523c3.181.092 6.269.513 9.253 1.231-2.246 7.119-5.769 11.769-9.253 12.73zm0-16.536V51.291h11.617c-.092 4.801-.692 9.18-1.66 12.98a47.26 47.26 0 00-9.957-1.323zm14.212-11.657h14.152a29.517 29.517 0 01-6.71 17.531 47.768 47.768 0 00-9.194-3.872c1.034-4.117 1.66-8.746 1.752-13.659zm0-2.582c-.092-4.919-.718-9.556-1.759-13.672a47.494 47.494 0 009.187-3.872 29.542 29.542 0 016.724 17.538l-14.152.006zm5.65-19.513a45.34 45.34 0 01-8.107 3.352c-1.508-4.854-3.628-8.818-6.131-11.42a29.733 29.733 0 0114.238 8.068zm-28.167-8.041c-2.489 2.594-4.603 6.539-6.105 11.373a44.924 44.924 0 01-8.034-3.332 29.677 29.677 0 0114.139-8.041zM28.834 70.791a45.071 45.071 0 018.041-3.332c1.501 4.834 3.615 8.785 6.105 11.386a29.72 29.72 0 01-14.146-8.054zm28.074 8.074c2.51-2.601 4.63-6.566 6.138-11.433a45.281 45.281 0 018.114 3.359 29.622 29.622 0 01-14.252 8.074z"}))},invisible:yr,table:function(e){e.styles;var t=Yr(e,["styles"]);return r.createElement("svg",Kr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M88.222 11C91.986 11 95 14.181 95 18.06v63.88c0 3.879-3.014 7.06-6.778 7.06H11.778C8.014 89 5 85.819 5 81.94V18.06C5 14.181 8.014 11 11.778 11h76.444zm0 4.034H11.778C10.265 15.035 9 16.369 9 18.06v63.88c0 1.691 1.265 3.026 2.778 3.026h76.444c1.514 0 2.778-1.335 2.778-3.026V18.06c0-1.691-1.264-3.025-2.778-3.026z"}),r.createElement("path",{d:"M92.834 43.5v4H7.833v-4h85.001zM92.834 64.5v4H7.833v-4h85.001z"}),r.createElement("path",{d:"M37 25.398l.215 60.5-4 .014L33 25.413l4-.015zM66.785 25.898l.215 60.5-4 .014-.215-60.499 4-.015z"}),r.createElement("path",{d:"M93 14.405v12H8v-12h85z"}))}},to=function(e){if(eo[e]){var t=eo[e];return r.createElement(t,null)}return null};function no(e){return(no="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ro(){return(ro=Object.assign||function(e){for(var t=1;t0?l[0]:"";if(o&&this.cachedOptions)return this.cachedOptions;var f=[];a&&a!==Vo?n&&n[u]&&(f=n[u]):f=i;var p=[];if(f)for(var y=0;y0?l[0]:"";if(o&&this.cachedOptions)return this.cachedOptions;var f=[];a&&a!==Vo?n&&n[u]&&(f=n[u]):f=i;var p=[];if(f)for(var y=0;y=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Pu(e,t){if(e){if("string"==typeof e)return Au(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Au(e,t):void 0}}function Au(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&r.createElement("ul",{className:"opinion-scale-legends"},l))}}])&&Cu(t.prototype,n),o&&Cu(t,o),a}(yo);function Du(e){return(Du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bu(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Yu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=u?i:o}}));return r.createElement("div",{className:"rating"},a)}}])&&zc(t.prototype,n),o&&zc(t,o),a}(yo);function rl(e){return(rl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ol(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function il(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ql=function(e){e.styles;var t=Il(e,["styles"]);return r.createElement("svg",xl({version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"640",height:"172",viewBox:"0 0 480 129"},t),r.createElement("path",{d:"M178 1.5c0 1-1.1 1.5-3.2 1.6-3.3.1-12.7 1-31.8 3-5.8.6-11.2 1.4-12 1.9-.9.4-3.6 1.1-6 1.5-2.5.4-7 1.3-10 2.1s-7.3 1.4-9.6 1.4c-2.8 0-4.4.5-4.8 1.5-.3 1-1.9 1.5-4.3 1.5-2.1 0-4.7.7-5.7 1.5-1.1.8-3.2 1.5-4.7 1.5s-3.1.4-3.4 1c-.3.5-1.6 1-2.8 1-1.2 0-3.9.9-6 2-2 1.1-4.7 2-5.9 2-1.3 0-3.2.7-4.2 1.5-1.1.8-3.2 1.5-4.7 1.5s-2.9.7-3.3 1.5c-.3.8-1.6 1.5-2.9 1.5-1.4 0-3 .7-3.7 1.5-.7.8-2 1.5-3 1.5s-2.3.7-3 1.5c-.7.8-1.9 1.5-2.7 1.5-.8 0-3.9 1.7-6.9 3.7-3.1 2.1-6.5 4.3-7.6 5C22.1 47.8 2 68.4 2 70.2c0 .9-.4 2-1 2.3-1.3.8-1.3 27.2 0 28 .6.3 1 1.7 1 2.9 0 1.3.7 2.9 1.5 3.6.8.7 1.5 1.8 1.5 2.4 0 1.8 10.3 11.6 12.2 11.6.8 0 2.1.7 2.8 1.5.7.8 1.8 1.5 2.5 1.5s1.8.7 2.5 1.5c.7.9 2.9 1.5 5.1 1.5 2.2 0 3.9.5 3.9 1.1 0 .7 7.2.9 24.2.5 26.2-.6 35.6-1.3 37.4-2.7.7-.5 4.1-1.2 7.8-1.6 3.6-.3 7.1-1.2 7.7-1.9.7-.8 3.1-1.4 5.9-1.4 3.3 0 5-.5 5.4-1.5.3-1 1.9-1.5 4.3-1.5 2.1 0 4.7-.7 5.7-1.5 1.1-.8 3.1-1.5 4.5-1.5s3.5-.7 4.5-1.5c1.1-.8 3.1-1.5 4.5-1.5s3.5-.7 4.5-1.5c1.1-.8 3.2-1.5 4.7-1.5 1.4 0 3.2-.7 3.9-1.5.7-.8 2-1.5 3-1.5s2.3-.7 3-1.5c.7-.8 2.5-1.5 4-1.5s3.3-.7 4-1.5c.7-.8 2.1-1.5 3.1-1.5s2.1-.5 2.4-1.1c.4-.5 1.7-1.5 2.8-2 1.2-.5 3.6-1.8 5.2-2.9 1.7-1.1 3.7-2.3 4.5-2.6 2.3-1.1 9-7.7 9-9 0-.6.7-1.7 1.5-2.4 1-.8 1.5-3.1 1.5-6.9-.1-6.4-3.2-12.1-8.5-15.3-4.2-2.5-4.4-2.6-9.7-3.3-2.6-.3-5-1-5.3-1.6-.4-.5-5.1-.9-10.5-.9s-10.1-.4-10.4-.8c-.5-.9 4.6-5.2 6.1-5.2.5 0 3.9-3.1 7.6-6.8 6.8-6.8 6.8-6.9 6.5-11.8l-.3-4.9-8-.3c-6.8-.3-8.7.1-12.3 2-7.7 4.1-8.4 4.5-13.3 9.4l-4.9 4.8v7.7c0 7-.2 7.8-2.4 9.3-1.4.9-5.8 1.9-9.8 2.2-5.3.5-7.9 1.2-9.5 2.7-2.6 2.4-3 6.2-.7 7.1 1.8.7 1 2.6-1.1 2.6-.8 0-3.4 1.3-5.8 3-2.5 1.6-4.9 3-5.5 3-.5 0-1.2.7-1.6 1.5-.3.8-1.4 1.5-2.5 1.5s-2.3.5-2.6 1.1c-.4.5-1.7 1.4-2.8 2-3.3 1.4-6.1 3.3-7 4.6-.4.7-1.6 1.3-2.6 1.3-2.4 0-6.4 4.4-5.9 6.7.3 1.5 1.3 1.8 5.8 1.8 4.9 0 5.5-.2 5.8-2.2.3-2.4 8-9.3 10.2-9.3.6 0 3.2-1.4 5.7-3 2.4-1.7 4.8-3 5.3-3s3.9-2 7.5-4.6c5.6-3.8 6.9-4.3 8.2-3.2.8.7 6.1 1.7 11.7 2.4 9.2 1 10.3 1 11.9-.6 1.7-1.6 1.7-2 .4-5.2-.8-2-2-3.9-2.6-4.2-2.3-1.5-.9-2.6 3.2-2.6 2.4 0 4.8-.5 5.4-1.1.7-.7 5.6-1.4 11-1.7 8.3-.4 10.1-.2 11.2 1.2.7.9 2.4 1.6 3.6 1.6 1.2 0 2.8.7 3.5 1.5.7.8 2 1.5 2.9 1.5 2.8 0 6.1 5.4 6.1 9.9 0 3.5-.6 4.5-5.2 8.6-2.9 2.6-6.2 5.1-7.3 5.6-1.1.5-2.8 1.3-3.7 1.9-1 .5-2.6 1.5-3.5 2-1 .6-2.5 1.3-3.3 1.6-.8.3-2.2 1-3 1.5-.8.5-2.5 1.3-3.7 1.8-1.1.6-2.4 1.5-2.8 2-.3.6-1.9 1.1-3.4 1.1-1.6 0-3.4.7-4.1 1.5-.7.8-2.5 1.5-4 1.5s-3.3.7-4 1.5c-.7.8-2.4 1.5-3.9 1.5-1.4 0-3.5.7-4.5 1.5-1.1.8-3.1 1.5-4.5 1.5s-3.5.7-4.5 1.5c-1.1.8-3.6 1.5-5.7 1.5-2 0-4.2.7-4.9 1.5-.7.8-2.7 1.5-4.4 1.5-1.8 0-3.7.5-4.4 1.2-.7.7-3.6 1.5-6.4 1.9-5.4.7-11.8 2.3-17.3 4-1.6.6-8.3 1.3-14.8 1.6-6.5.3-12 1-12.3 1.4-.7 1.2-7.1 1.1-7.9-.1-.3-.6-4.4-1-9.1-1-6.6 0-8.6-.3-9-1.5-.4-.8-1.7-1.5-2.9-1.5C26.6 121 8 107.4 8 103.2c0-.9-.6-2.3-1.4-3.1-1.5-1.7-2.1-6.3-1.8-14.7.2-4.2.7-5.6 3.2-8 2-1.9 3-3.9 3-5.9 0-3.7 6.4-10.5 9.8-10.5 1.3 0 2.2-.6 2.2-1.5 0-.8.7-1.5 1.5-1.5.9 0 1.5-.9 1.5-2.4 0-1.7 1.4-3.6 4.4-6 2.3-2 4.8-3.6 5.3-3.6.6 0 1.6-.7 2.3-1.5.7-.8 2-1.5 3-1.5s2.3-.7 3-1.5c.7-.8 2-1.5 3-1.5s2.3-.7 3-1.5c.7-.8 2-1.5 3-1.5s2.3-.7 3-1.5c.7-.8 2.3-1.5 3.5-1.5 1.2 0 2.8-.7 3.5-1.5.7-.8 2.6-1.5 4.2-1.5s3.6-.7 4.4-1.5c.9-.8 2.9-1.5 4.5-1.5 1.7 0 3.7-.7 4.5-1.5.9-.8 3-1.5 4.8-1.5 1.9 0 3.9-.7 4.6-1.5.7-.8 2.7-1.5 4.4-1.5 1.7 0 4-.7 5-1.5 1.1-.8 3.8-1.5 6-1.5 2.3 0 5-.7 6-1.5 1.1-.8 3.6-1.5 5.7-1.5 2 0 5.3-.7 7.2-1.5 2-.8 6.3-1.5 9.5-1.5s6.3-.5 6.9-1.1c.6-.6 5.1-1.3 10-1.6 4.8-.2 10-.9 11.5-1.5 2.8-1 22.8-2.5 46.3-3.4 9.1-.4 13.6-.2 15.2.7 2 1.1 2.6.9 4.8-1.1 5.2-4.9 4.6-5-24-5-22.9 0-26.5.2-26.5 1.5zm-9 32.1c-2.5 2.5-7 6.4-10 8.7-3 2.2-6.9 5.4-8.7 7-4 3.8-6.3 3.1-6.3-1.9 0-3.2.9-4.5 6.5-10 3.6-3.5 7.1-6.4 7.8-6.4.7 0 1.9-.6 2.5-1.2.7-.7 3.2-1.8 5.5-2.3 3.3-.9 4.5-.8 5.7.2 1.2 1.1.8 1.9-3 5.9zm-24.6 31.5c2.4 4 .9 6-2.8 3.5-1.4-.9-3.2-1.6-4-1.6-2.7 0-2.7-1.9.1-3.3 4.1-2.2 4.7-2 6.7 1.4z"}),r.createElement("path",{d:"M231.7 2.7c-.7 3.7.5 4.3 8.8 4.3 8.6.1 15.3.9 16.1 2.1.3.5 2.4.9 4.8.9 2.3 0 5.1.7 6.2 1.5 1 .8 3.6 1.5 5.7 1.5 2.4 0 4 .5 4.3 1.5.4.8 1.7 1.5 3 1.5 1.4 0 2.7.7 3 1.5.4.8 1.1 1.5 1.8 1.5 2.1 0 9.2 7.3 11.4 11.8 1.4 2.7 2.2 6.1 2.2 9.3 0 4.5-.8 7-4.1 12.9-.5.8-1.5 3-2.4 4.8-.8 1.9-4.4 6.4-8 10.1-3.6 3.7-6.5 7.2-6.5 7.8 0 .6-.7 1.6-1.5 2.3-2.7 2.3-1.8 4 2.3 4 3.1 0 4.6-.9 9-5.1 2.8-2.8 5.2-5.5 5.2-6s.7-.9 1.5-.9 1.5.7 1.5 1.5-.7 1.5-1.6 1.5c-1.1 0-1.4.8-1.2 2.7.4 3.9 4.1 4.3 7.7.9 2.1-2 3-2.3 3.9-1.4 1.5 1.5 7-1.3 12.2-6.2 3.6-3.5 3.7-3.5 11.6-3.2 19.9.7 34 1.9 36.1 3.2 1.7 1.1 2.4 1.1 3.6.1.9-.6 1.8-.8 2.1-.3.3.5 6.7 1.2 14.3 1.6 7.6.4 17.9.9 22.8 1.2 5 .2 22.1.6 38.2.9 24.7.4 29.3.2 30.3-1 .7-.8 1.9-1.5 2.6-1.5.9 0 1.4-1.1 1.4-3 0-2.6-.3-3-2.9-3-1.6 0-3.4.6-4 1.4-.6.7-2.7 1.6-4.6 1.9-5.4.9-77.5-1.1-78.8-2.1-.7-.5-9.5-1.2-19.7-1.6-10.1-.4-18.9-1.1-19.4-1.6-.6-.6-8.6-1-18.7-1-11.3 0-18-.4-18.4-1-.4-.6-1.5-.8-2.5-.5-1 .3-2.1.1-2.5-.5-.3-.5-2.2-1-4.1-1-3.5 0-3.5-.1-2.9-3.3.4-1.7 1.4-4.7 2.1-6.6 2.5-6 1.8-14.3-1.8-21.7-3.2-6.5-9.8-13.4-13-13.4-.7 0-1.8-.4-2.4-.9-1.1-1.2-12.7-5.1-14.9-5.1-.9 0-2.6-.7-3.8-1.5-1.5-.9-5.4-1.6-11-1.7-7.9-.3-9.2-.7-8.8-3.1 0-.4-.6-.7-1.4-.7-.8 0-1.4.5-1.2 1.1.1.6-.4 1.4-1 1.6-.7.3-1.3-.2-1.3-1.1 0-1.3-1.1-1.6-5.4-1.6-5.1 0-5.4.2-5.9 2.7z"}))};function Tl(e){return(Tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fl(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Yl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.index&&i.x+i.width1?r.createElement("ul",{className:"composer-actions composer-page-actions"},r.createElement("li",{className:"composer-action-remove",onClick:this.removePageHandler})):"")))}},{key:"tabClickHandler",value:function(e){e.target.className.match(/composer-action-remove/)||this.props.onClick()}},{key:"removePageHandler",value:function(e){var t=this.props,n=t.index,r=t.removePage;return confirm("Are you sure you want to remove this page and all fields on it?")&&r(n),e.preventDefault(),!1}}])&&gp(t.prototype,n),o&&gp(t,o),a}(r.Component),dp.propTypes={index:$().number.isRequired,isSelected:$().bool.isRequired,placeholderPageIndex:$().number,label:$().string,onClick:$().func.isRequired},yp=hp))||yp)||yp)||yp;function Cp(e){return(Cp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xp(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return e(At(t,n,r,o))},removeColumn:function(e){function t(t,n,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(t,n,r){return e(removeColumn(t,n,r))})),addRowPlaceholder:function(t,n){return e({type:vt,rowIndex:t,targetHash:n})},addColumnPlaceholder:function(t,n,r){return e(function(e,t,n){return{type:gt,rowIndex:e,index:t,targetHash:n}}(t,n,r))},addFieldToNewRow:function(t,n,r){return e(Pt(t,n,r))},clearPlaceholders:function(){return e(qt())},checkForDuplicateHandles:function(){return e(Ct())}}}))(Bp=(0,$t.G)([ln,pn],Yp,(function(e){return{connectDropTarget:e.dropTarget()}}))((Np=Hp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gp(e,t)}(a,e);var t,n,o,i=Up(a);function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,e,t)).moveColumn=n.moveColumn.bind(Qp(n)),n.addColumn=n.addColumn.bind(Qp(n)),n.columnToNewRow=n.columnToNewRow.bind(Qp(n)),n.removeColumn=n.removeColumn.bind(Qp(n)),n}return t=a,(n=[{key:"componentDidMount",value:function(){(0,this.props.checkForDuplicateHandles)()}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageIndex,o=t.layout,i=t.connectDropTarget,a=o[n]?o[n]:[],u=this.props.placeholders,c=u.type,l=u.rowIndex,s=c===fn&&-1===l;return i(r.createElement("div",{className:"builder"},r.createElement("div",{className:"tabs"},r.createElement(Mp,null)),r.createElement("div",{className:"layout"},a.map((function(t,n){return r.createElement(mp,{key:t.id,properties:e.props.properties,index:n,columns:t.columns,moveColumn:e.moveColumn,addColumn:e.addColumn,columnToNewRow:e.columnToNewRow,addRowPlaceholder:e.props.addRowPlaceholder,addColumnPlaceholder:e.props.addColumnPlaceholder,clearPlaceholders:e.props.clearPlaceholders})})),r.createElement(cn,{active:s}))))}},{key:"addColumn",value:function(e,t,n,r){this.props.addColumn(e,t,n,r,this.props.pageIndex)}},{key:"moveColumn",value:function(e,t,n,r){this.props.moveColumn(e,t,n,r,this.props.pageIndex)}},{key:"columnToNewRow",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.props.columnToNewRow(e,t,n,this.props.pageIndex)}},{key:"removeColumn",value:function(e,t){this.props.removeColumn(e,t,this.props.pageIndex)}}])&&Lp(t.prototype,n),o&&Lp(t,o),a}(r.Component),Hp.propTypes={layout:$().array.isRequired,pageIndex:$().number.isRequired,connectDropTarget:$().func.isRequired,addColumn:$().func.isRequired,moveColumn:$().func.isRequired,columnToNewRow:$().func.isRequired,addFieldToNewRow:$().func.isRequired,removeColumn:$().func.isRequired,addRowPlaceholder:$().func.isRequired,addColumnPlaceholder:$().func.isRequired,clearPlaceholders:$().func.isRequired,checkForDuplicateHandles:$().func.isRequired,properties:$().object.isRequired,placeholders:$().object.isRequired},Hp.contextTypes={store:$().object},Bp=Np))||Bp)||Bp;function Wp(e){return(Wp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jp(e,t){for(var n=0;n0&&r.createElement("div",{className:"errors"},i.map((function(e,t){return r.createElement("div",{key:t},e)}))),r.createElement("button",{className:"btn submit small",onClick:this.addField},XT("Save")),r.createElement("button",{className:"btn cancel small",onClick:u},XT("Cancel")))}},{key:"updateLabel",value:function(e){var t=e.target.value;this.setState({label:t,handle:this.getHandle(t,!0)})}},{key:"updateHandle",value:function(e){this.setState({handle:this.getHandle(e.target.value,!1)})}},{key:"updateType",value:function(e){this.setState({type:e.target.value}),o.findDOMNode(this.refs.label).focus()}},{key:"updateState",value:function(e){switch(e.which){case 13:this.addField();break;case 27:this.props.toggleFieldForm()}}},{key:"getHandle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,Ql.OE)(e,t)}},{key:"addField",value:function(){var e=this,t=this.refs,n=t.label,r=t.handle,i=t.type,a=this.props,u=a.toggleFieldForm,c=a.fetchFields,l=this.context,s=l.csrf,f=l.notificator,p=l.createFieldUrl,y=o.findDOMNode(n).value,d=o.findDOMNode(r).value,h=o.findDOMNode(i).value,b=[];if(y||b.push(XT("Label must not be empty")),d||b.push(XT("Handle must not be empty")),h||b.push(XT("Field type must not be empty")),b.length)return this.setErrors(b),!1;var m=new FormData;return m.append(s.name,s.token),m.append("label",y),m.append("handle",d),m.append("type",h),My()(p,{method:"post",credentials:"same-origin",body:m}).then((function(e){return e.json()})).then((function(t){t.success?(c(),u(),f("notice",XT("Field added successfully"))):e.setErrors(t.errors)})).catch((function(t){return e.setErrors(t)})),!0}},{key:"setErrors",value:function(e){this.setState({errors:e})}},{key:"cleanErrors",value:function(){this.setState({errors:[]})}}])&&Gy(t.prototype,n),i&&Gy(t,i),u}(r.Component),Fy.initialState={label:"",handle:"",type:l,errors:[]},Fy.propTypes={toggleFieldForm:$().func.isRequired,fetchFields:$().func.isRequired},Fy.contextTypes={csrf:$().shape({name:$().string.isRequired,token:$().string.isRequired}).isRequired,notificator:$().func.isRequired,createFieldUrl:$().string.isRequired},Dy=By))||Dy;function Wy(e){return(Wy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jy(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){if(Fd(r())){n(Td());var o=zT("freeform/api/notifications");return My()(o,{credentials:"same-origin"}).then((function(e){return e.json()})).then((function(r){n(Dd(r)),e&&t&&(n(St(e,{notificationId:t})),n(Rt("")),n(Rt(e)))}))}Promise.resolve()}}(t,n))}}}))((kd=Cd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nd(e,t)}(u,e);var t,n,i,a=Md(u);function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=a.call(this,e,t)).state=u.initialState,n.updateName=n.updateName.bind(Ld(n)),n.updateHandle=n.updateHandle.bind(Ld(n)),n.updateState=n.updateState.bind(Ld(n)),n.getHandle=n.getHandle.bind(Ld(n)),n.addNotification=n.addNotification.bind(Ld(n)),n.setErrors=n.setErrors.bind(Ld(n)),n.cleanErrors=n.cleanErrors.bind(Ld(n)),n}return t=u,(n=[{key:"componentDidMount",value:function(){o.findDOMNode(this.refs.name).focus()}},{key:"render",value:function(){var e=this.state,t=e.name,n=e.handle,o=e.errors,i=this.props.toggleForm,a=this.context.isDbEmailTemplateStorage;return r.createElement("div",{className:"composer-new-field-form"},r.createElement("div",{className:"field"},r.createElement("div",{className:"heading"},r.createElement("label",null,XT("Template Name"))),r.createElement("div",{className:"input"},r.createElement("input",{type:"text",name:"name",ref:"name",className:"text fullwidth",value:t,onChange:this.updateName,onKeyUp:this.updateState}))),a&&r.createElement("div",{className:"field"},r.createElement("div",{className:"heading"},r.createElement("label",null,XT("Handle"))),r.createElement("div",{className:"input"},r.createElement("input",{type:"text",name:"handle",ref:"handle",className:"text fullwidth code",value:n,onChange:this.updateHandle,onKeyUp:this.updateState}))),o.length>0&&r.createElement("div",{className:"errors"},o.map((function(e,t){return r.createElement("div",{key:t},e)}))),r.createElement("button",{className:"btn submit small",onClick:this.addNotification},XT("Save")),r.createElement("button",{className:"btn cancel small",onClick:i},XT("Cancel")))}},{key:"updateName",value:function(e){var t=e.target.value;this.setState({name:t,handle:this.getHandle(t)})}},{key:"updateHandle",value:function(e){this.setState({handle:this.getHandle(e.target.value)})}},{key:"updateState",value:function(e){switch(e.which){case 13:this.addNotification();break;case 27:this.props.toggleForm()}}},{key:"getHandle",value:function(e){return(0,Ql.OE)(e)}},{key:"addNotification",value:function(){var e=this,t=this.refs,n=t.name,r=t.handle,i=this.props,a=i.toggleForm,u=i.fetchNotifications,c=this.context,l=c.csrf,s=c.notificator,f=c.createNotificationUrl,p=c.hash,y=c.isDbEmailTemplateStorage,d=o.findDOMNode(n).value,h=y?o.findDOMNode(r).value:null,b=[];if(d||b.push(XT("Name must not be empty")),!h&&y&&b.push(XT("Handle must not be empty")),b.length)return this.setErrors(b),!1;var m=new FormData;return m.append(l.name,l.token),m.append("name",d),m.append("handle",h),My()(f,{method:"post",credentials:"same-origin",body:m}).then((function(e){return e.json()})).then((function(t){if(t.success){var n=t.id;/^[0-9]+$/.test(n)&&(n=parseInt(n)),u(p,n),a(),s("notice",XT("Notification added successfully"))}else e.setErrors(t.errors)})).catch((function(t){return e.setErrors(t)})),!0}},{key:"setErrors",value:function(e){this.setState({errors:e})}},{key:"cleanErrors",value:function(){this.setState({errors:[]})}}])&&Hd(t.prototype,n),i&&Hd(t,i),u}(r.Component),Cd.initialState={name:"",handle:"",errors:[]},Cd.propTypes={toggleForm:$().func.isRequired,fetchNotifications:$().func.isRequired},Cd.contextTypes={csrf:$().shape({name:$().string.isRequired,token:$().string.isRequired}).isRequired,notificator:$().func.isRequired,createNotificationUrl:$().string.isRequired,isDbEmailTemplateStorage:$().bool.isRequired,hash:$().string.isRequired},Sd=kd))||Sd;function Vd(e){return(Vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qd(e,t){for(var n=0;na&&l>c||(e.reorderValueSet(r.hash,i,a),t.getItem().index=a)}}(e,t,n)}},Ib=(0,$t.G)([yn],xb,(function(e,t){return{connectDropTarget:e.dropTarget(),dragItemType:t.getItemType()}}))(hb=(0,mn.E)(yn,kb,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}}))((mb=bb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wb(e,t)}(u,e);var t,n,i,a=Eb(u);function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=a.call(this,e,t)).updateValues=n.updateValues.bind(Rb(n)),n.updateIsChecked=n.updateIsChecked.bind(Rb(n)),n.cleanUpNodes=n.cleanUpNodes.bind(Rb(n)),n.removeValueSetHandler=n.removeValueSetHandler.bind(Rb(n)),n}return t=u,(n=[{key:"render",value:function(){var e=this.props,t=e.connectDropTarget,n=e.connectDragSource,o=e.connectDragPreview,i=this.props,a=i.label,u=i.value,c=i.isChecked,l=i.showCustomValues;return i.isDragging,t(o(r.createElement("tr",null,r.createElement("td",null,r.createElement("input",{type:"text",value:a,ref:"label","data-type":"label",onBlur:this.cleanUpNodes,onChange:this.updateValues})),l&&r.createElement("td",null,r.createElement("input",{type:"text",value:u,"data-type":"value",ref:"value",className:"code",onBlur:this.cleanUpNodes,onChange:this.updateValues})),r.createElement("td",{className:"composer-option-row-checkbox"},r.createElement("input",{type:"checkbox",checked:c,onChange:this.updateIsChecked})),r.createElement("td",{className:"action"},n(r.createElement("a",{className:"move",title:XT("Reorder")}))),r.createElement("td",{className:"action"},r.createElement("a",{className:"delete",title:XT("Remove"),onClick:this.removeValueSetHandler})))))}},{key:"updateValues",value:function(e){var t=this.props,n=t.hash,r=t.index,i=o.findDOMNode(this.refs.label).value,a=i,u=o.findDOMNode(this.refs.value);u&&"value"===e.target.dataset.type&&(a=u.value),this.props.updateValueSet(n,r,a,i)}},{key:"updateIsChecked",value:function(e){var t=this.props,n=t.hash,r=t.index,o=e.target.checked;this.props.updateIsChecked(n,r,o)}},{key:"cleanUpNodes",value:function(){var e=this.props.hash;this.props.cleanUp(e)}},{key:"removeValueSetHandler",value:function(){var e=this.props,t=e.hash,n=e.index;(0,e.removeValueSet)(t,n)}}])&&Ob(t.prototype,n),i&&Ob(t,i),u}(r.Component),bb.propTypes={hash:$().string.isRequired,label:$().node.isRequired,value:$().node.isRequired,index:$().number.isRequired,isChecked:$().bool,showCustomValues:$().bool,updateValueSet:$().func.isRequired,updateIsChecked:$().func.isRequired,addNewValueSet:$().func.isRequired,cleanUp:$().func.isRequired,connectDropTarget:$().func.isRequired,connectDragSource:$().func.isRequired,connectDragPreview:$().func.isRequired,reorderValueSet:$().func.isRequired,removeValueSet:$().func.isRequired},hb=mb))||hb)||hb;function qb(e){return(qb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tb(e,t){for(var n=0;n input").focus()}),1)}},{key:"toggleCustomValues",value:function(e){(0,this.props.customValuesHandler)(this.context.hash,e.target.checked)}},{key:"renderRows",value:function(){var e=this.props,t=e.options,n=e.values,o=this.props.showCustomValues;void 0===o&&(o=!0);var i=this.context.hash,a=[];if(!t)return a;for(var u=0;u=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function hm(e,t){if(e){if("string"==typeof e)return bm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bm(e,t):void 0}}function bm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,h=this.getConfigProperty("siteId",c);d&&(p=p.filter((function(e){return!e.sites||-1!==e.sites.indexOf(h)})));var b="title";return o===Wo?b="filename":o===_o&&(b="username"),r.createElement("div",null,y,d&&r.createElement(Xd.Z,{label:"Site",name:"siteId",value:h,options:u.map((function(e){return{key:e.id,value:e.name}})),isNumeric:!0,onChangeHandler:this.onUpdateConfig}),r.createElement(Xd.Z,{label:"Target",name:"target",value:n,options:p,onChangeHandler:this.onChangeTarget}),r.createElement(Xd.Z,{label:"Option Label",name:"labelField",value:this.getConfigProperty("labelField",b),options:a.getSourceSpecificValueFieldChoices(o,s),onChangeHandler:this.onUpdateConfig}),r.createElement(Xd.Z,{label:"Option Value",name:"valueField",value:this.getConfigProperty("valueField","id"),options:a.getSourceSpecificValueFieldChoices(o,s),onChangeHandler:this.onUpdateConfig}),r.createElement(Xd.Z,{label:"Order By",name:"orderBy",value:this.getConfigProperty("orderBy","id"),options:a.getSourceSpecificOrderFields(o),onChangeHandler:this.onUpdateConfig}),r.createElement(Xd.Z,{label:"Sort",name:"sort",value:this.getConfigProperty("sort","asc"),options:[{key:"asc",value:XT("Ascending")},{key:"desc",value:XT("Descending")}],onChangeHandler:this.onUpdateConfig}),this.getGeneratedOptions())}},{key:"getCustomValuesComponent",value:function(){var e=this.props,t=e.values,n=e.value,o=e.customOptions,i=e.updateHandler,a=e.showCustomValues;return r.createElement(pb,{label:"Options",instructions:"Options for this field",content:r.createElement(Gb,{value:n,values:t,options:o,triggerCustomValues:i,showCustomValues:a})})}},{key:"getPredefinedValuesComponent",value:function(){var e=this.props,t=e.target,n=void 0===t?null:t,o=e.showEmptyOptionInput,i=void 0!==o&&o,a=null;switch(n){case ai:case ui:case ri:case oi:case ii:case ci:case li:case si:a=r.createElement("div",null,r.createElement(Xd.Z,{label:"Option Label",name:"listType",options:[{key:Go,value:XT("Abbreviated")},{key:Lo,value:XT("Full")}],value:this.getConfigProperty("listType",Lo),onChangeHandler:this.onUpdateConfig}),r.createElement(Xd.Z,{label:"Option Value",name:"valueType",options:[{key:Go,value:XT("Abbreviated")},{key:Lo,value:XT("Full")}],value:this.getConfigProperty("valueType",Go),onChangeHandler:this.onUpdateConfig}));break;case ti:a=r.createElement("div",null,r.createElement(fm.Z,{label:"Range Start",name:"start",isNumeric:!0,value:this.getConfigProperty("start",0),onChangeHandler:this.onUpdateConfig}),r.createElement(fm.Z,{label:"Range End",name:"end",isNumeric:!0,value:this.getConfigProperty("end",10),onChangeHandler:this.onUpdateConfig}));break;case ni:a=r.createElement("div",null,r.createElement(fm.Z,{label:"Range Start",name:"start",isNumeric:!0,value:this.getConfigProperty("start",100),onChangeHandler:this.onUpdateConfig}),r.createElement(fm.Z,{label:"Range End",name:"end",isNumeric:!0,value:this.getConfigProperty("end",0),onChangeHandler:this.onUpdateConfig}),r.createElement(Xd.Z,{label:"Sort Direction",name:"sort",options:[{key:"asc",value:XT("Ascending")},{key:Uo,value:XT("Descending")}],value:this.getConfigProperty("sort","desc"),onChangeHandler:this.onUpdateConfig}));break;case ei:a=r.createElement("div",null,r.createElement(Xd.Z,{label:"Option Label",name:"listType",options:[{key:Lo,value:XT("Full")},{key:Go,value:XT("Abbreviated")},{key:Mo,value:XT("Single number")},{key:Zo,value:XT("2-digit number")}],value:this.getConfigProperty("listType",Lo),onChangeHandler:this.onUpdateConfig}),r.createElement(Xd.Z,{label:"Option Value",name:"valueType",options:[{key:Lo,value:XT("Full")},{key:Go,value:XT("Abbreviated")},{key:Mo,value:XT("Single number")},{key:Zo,value:XT("2-digit number")}],value:this.getConfigProperty("valueType",Lo),onChangeHandler:this.onUpdateConfig}));break;case Xo:a=r.createElement("div",null,r.createElement(Xd.Z,{label:"Option Label",name:"listType",options:[{key:Mo,value:XT("Single number")},{key:Zo,value:XT("2-digit number")}],value:this.getConfigProperty("listType",Mo),onChangeHandler:this.onUpdateConfig}),r.createElement(Xd.Z,{label:"Option Value",name:"valueType",options:[{key:Mo,value:XT("Single number")},{key:Zo,value:XT("2-digit number")}],value:this.getConfigProperty("valueType",Mo),onChangeHandler:this.onUpdateConfig}));break;case $o:a=r.createElement("div",null,r.createElement(Xd.Z,{label:"Option Label",name:"listType",options:[{key:Lo,value:XT("Full")},{key:Go,value:XT("Abbreviated")},{key:Mo,value:XT("Single number")}],value:this.getConfigProperty("listType",Lo),onChangeHandler:this.onUpdateConfig}),r.createElement(Xd.Z,{label:"Option Value",name:"valueType",options:[{key:Lo,value:XT("Full")},{key:Go,value:XT("Abbreviated")},{key:Mo,value:XT("Single number")}],value:this.getConfigProperty("valueType",Lo),onChangeHandler:this.onUpdateConfig}))}var u=null;return i&&(u=r.createElement(fm.Z,{label:"Empty Option Label (optional)",instructions:"To show an empty option at the beginning of the Select field options, enter a value here. Leave blank if you don't want a first option.",name:"emptyOption",value:this.state.emptyOption,onChangeHandler:this.onUpdateEmptyOption})),r.createElement("div",null,u,r.createElement(Xd.Z,{label:"Target",name:"target",value:n,options:[{key:ai,value:XT("States")},{key:ui,value:XT("States & Territories")},{key:ri,value:XT("Provinces - English")},{key:oi,value:XT("Provinces - French")},{key:ii,value:XT("Provinces - Bilingual")},{key:ci,value:XT("Countries")},{key:li,value:XT("Languages")},{key:si,value:XT("Currencies")},{key:ti,value:XT("Numbers")},{key:ni,value:XT("Years")},{key:ei,value:XT("Months")},{key:Xo,value:XT("Days")},{key:$o,value:XT("Days of Week")}],onChangeHandler:this.onChangePredefinedTarget}),a,this.getGeneratedOptions())}},{key:"getGeneratedOptions",value:function(){var e=this.props,t=e.values,n=e.value,o=e.generatedOptions,i=e.isFetchingOptions,a=this.context.hash;if(i&&this.lastOptions)return this.lastOptions;var u=[];if(o&&o[a]){var c,l=dm(o[a]);try{for(l.s();!(c=l.n()).done;){var s=c.value;u.push({value:s.value,label:s.label})}}catch(e){l.e(e)}finally{l.f()}}var f=r.createElement(pb,{label:"Options",instructions:"Options for this field",content:r.createElement(sm,{value:n,values:t,options:u})});return this.lastOptions=f,f}},{key:"getConfigProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.props.configuration,r=void 0===n?{}:n;return r&&r.hasOwnProperty(e)?r[e]:t}},{key:"onChangeSource",value:function(e){var t=this.context,n=t.updateField,r=t.hash,o=this.props.fetchGeneratedOptions,i=e.target.value,a=this.state.emptyOption,u={};switch(i){case Qo:case Ko:case Yo:case _o:case Wo:case Jo:u={source:i,target:null,configuration:{emptyOption:a}};break;case zo:u={source:i,target:ai,configuration:{valueType:Go,listType:Lo,emptyOption:a}};break;default:u={source:Vo,target:null,configuration:null}}n(vm({value:"",values:[]},u)),i!==Vo&&o(r,u.source,u.target,u.configuration)}},{key:"onChangeTarget",value:function(e){var t=this.context.hash,n=this.props,r=n.fetchGeneratedOptions,o=n.configuration,i=n.source,a=n.onChangeHandler,u=e.target.value;a(e),r(t,i,u,o)}},{key:"onChangePredefinedTarget",value:function(e){var t=this.context,n=t.updateField,r=t.hash,o=this.props,i=o.source,a=o.fetchGeneratedOptions,u=e.target.value,c={};switch(u){case ai:case ui:case ri:case oi:case ii:case ci:case li:case si:c={valueType:Go,listType:Lo};break;case ti:c={start:0,end:10};break;case ni:c={sort:Uo,start:100,end:0};break;case ei:c={valueType:Lo,listType:Lo};break;case Xo:c={valueType:Mo,listType:Mo};break;case $o:c={valueType:Lo,listType:Lo}}n({value:"",values:[],source:i,target:u,configuration:c}),a(r,i,u,c)}},{key:"onUpdateConfig",value:function(e){var t=this.context,n=t.updateField,r=t.hash,o=this.props,i=o.configuration,a=o.fetchGeneratedOptions,u=o.source,c=o.target,l=e.target,s=l.name,f=l.value,p=!1;e.target.dataset.isNumeric&&"false"!==e.target.dataset.isNumeric&&(p=!0);var y=f;if(p){var d=/^-/.test(y);y=(y=(y+"").replace(/[^0-9\.]/,""))?parseInt(y):0,d&&y>=0&&(y*=-1)}var h=i?vm({},i):{};h[s]=y,n({value:"",values:[],configuration:h}),a(r,u,c,h)}},{key:"onUpdateEmptyOption",value:function(e){var t=e.target.value;this.setState({emptyOption:t}),this.updateEmptyOptionTrigger&&clearTimeout(this.updateEmptyOptionTrigger),this.updateEmptyOptionTrigger=setTimeout(this.persistEmptyOption,500)}},{key:"persistEmptyOption",value:function(){var e=this.context,t=e.hash,n=e.updateField,r=this.props,o=r.configuration,i=r.fetchGeneratedOptions,a=r.source,u=r.target,c=this.state.emptyOption,l=vm(vm({},o),{},{emptyOption:c});n({configuration:l}),i(t,a,u,l)}}])&&Om(t.prototype,n),o&&Om(t,o),a}($d.Z),cm.propTypes=vm(vm({},$d.Z.propTypes),{},{label:$().string,source:$().string,target:$().node,showEmptyOptionInput:$().bool,configuration:$().shape({labelField:$().string,valueField:$().string,start:$().number,end:$().number,listType:$().string,valueType:$().string,emptyOption:$().string}),showCustomValues:$().bool,customOptions:$().arrayOf($().shape({value:$().any.isRequired,label:$().any.isRequired})).isRequired,sourceTargets:$().object,customFields:$().array,fetchGeneratedOptions:$().func.isRequired,isFetchingOptions:$().bool.isRequired,generatedOptions:$().object,sites:$().array.isRequired,currentSiteId:$().number.isRequired,availableSources:$().array}),cm.contextTypes={updateField:$().func.isRequired,hash:$().string,isCommerceEnabled:$().bool},cm.sourceOptions=[{key:Vo,value:XT("Custom Options")},{key:Qo,value:XT("Entries")},{key:Ko,value:XT("Categories")},{key:Yo,value:XT("Tags")},{key:_o,value:XT("Users")},{key:Wo,value:XT("Assets")},{key:Jo,value:XT("Commerce Products")},{key:zo,value:XT("Predefined Options")}],um=lm))||um;function Cm(e){return(Cm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function km(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xm(e){for(var t=1;ti&&c>u||(e.swapRow(r,i),t.getItem().rowIndex=i)}}(e,t,n)}},$m=(0,$t.G)([dn],Xm,(function(e,t){return{connectDropTarget:e.dropTarget(),dragItemType:t.getItemType()}}))(Nm=(0,mn.E)(dn,zm,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}}))((Zm=Mm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vm(e,t)}(a,e);var t,n,o,i=Qm(a);function a(){return Gm(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.rowIndex,n=e.columns,o=e.isSortable,i=void 0===o||o,a=e.isRemovable,u=void 0===a||a,c=e.values,l=e.editColumn,s=e.deleteRow,f=e.connectDragSource,p=e.connectDragPreview;return(0,e.connectDropTarget)(p(r.createElement("tr",null,n.map((function(e,n){var o=e.handle,i=e.label,a=e.type,u=e.options;return r.createElement(Rs,{rowIndex:t,columnIndex:n,value:c[o]?c[o]:"",options:u,handle:o,label:i,type:a,edit:l,key:n})})),i&&r.createElement("td",{className:"action"},f(r.createElement("a",{className:"move",title:XT("Reorder")}))),u&&r.createElement("td",{className:"action"},r.createElement("a",{className:"delete",title:XT("Remove"),onClick:function(){return s(t)}})))))}}])&&Um(t.prototype,n),o&&Um(t,o),a}(r.Component),Mm.propTypes={rowIndex:$().number.isRequired,columns:$().array.isRequired,isSortable:$().bool,isRemovable:$().bool,values:$().object,deleteRow:$().func,swapRow:$().func,editColumn:$().func,connectDropTarget:$().func,connectDragSource:$().func,connectDragPreview:$().func},Nm=Zm))||Nm)||Nm;function ev(e){return(ev="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||rv(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nv(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=rv(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function rv(e,t){if(e){if("string"==typeof e)return ov(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ov(e,t):void 0}}function ov(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&r.createElement(Id.Tooltip,{title:XT("CRM Integrations"),position:"bottom-start",theme:"light",arrow:!0},r.createElement("a",{onClick:e.editIntegrations,className:"crm-settings"+(e.hash===N?" active":"")})),e.isPro&&e.paymentGatewayCount>0&&r.createElement(Id.Tooltip,{title:XT("Payments"),position:"bottom-start",theme:"light",arrow:!0},r.createElement("a",{onClick:e.editPayments,className:"payment-settings"+(e.hash===G?" active":"")})))};Uv.propTypes={editForm:$().func.isRequired,editValidation:$().func.isRequired,editIntegrations:$().func.isRequired,editAdminNotifications:$().func.isRequired,editPayments:$().func.isRequired,editConnections:$().func.isRequired,editRules:$().func.isRequired,hash:$().string.isRequired,crmIntegrationCount:$().number.isRequired,paymentGatewayCount:$().number.isRequired,isRulesEnabled:$().bool.isRequired,isPro:$().bool.isRequired};var Vv,Qv,Kv,Yv=Uv;function _v(e){return(_v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jv(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(u);try{for(p.s();!(e=p.n()).done;){var y=e.value;-1!==l.indexOf(y.id)&&f.push(y)}}catch(e){p.e(e)}finally{p.f()}var d=[];return f.map((function(e,n){d.push(r.createElement(kg,{key:n,handle:e.handle,label:e.name,required:!1,formFields:s,mappedFormField:c&&c[e.handle]?c[e.handle]:"",onChangeHandler:t.updateMappings}))})),d}}])&&Fg(t.prototype,n),o&&Fg(t,o),a}(r.Component),Sg.propTypes={externalFieldColumnLabel:$().string,internalFieldColumnLabel:$().string,specificFields:$().arrayOf($().shape({name:$().string.isRequired,handle:$().string.isRequired}).isRequired),fields:$().arrayOf($().shape({id:$().number.isRequired,name:$().string.isRequired,handle:$().string.isRequired,type:$().string.isRequired}).isRequired).isRequired,fieldLayoutFieldIds:$().array,mapping:$().object,onChangeHandler:$().func.isRequired},Ag=Cg))||Ag;function Lg(e){return(Lg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gg(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ug(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ug(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Ug(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nUpgrade to Pro to get access to popular API integrations.',{url:zT(n)})}})};zO.propTypes={link:$().string};var XO,$O,ew,tw=zO;function nw(e){return(nw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ow(e,t){for(var n=0;n1&&(i=[i[0]]),o({showAsRadio:n===a.RENDER_AS_RADIOS,showAsCheckboxes:n===a.RENDER_AS_CHECKBOXES,values:i})},e}return t=a,(n=[{key:"render",value:function(){var e=this.context.properties,t=e.required,n=e.label,o=e.handle,i=e.values,u=e.options,c=e.oneLine,l=e.showAsRadio,s=e.showAsCheckboxes,f=e.notificationId,p=e.instructions,y=e.source,d=e.target,h=e.configuration,b=void 0===h?{}:h,m=this.context.canManageNotifications,v=this.props.notifications,g=a.RENDER_AS_SELECT;return l?g=a.RENDER_AS_RADIOS:s&&(g=a.RENDER_AS_CHECKBOXES),r.createElement("div",null,r.createElement(fm.Z,{label:"Handle",instructions:"How you’ll refer to this field in the templates.",name:"handle",value:o,onChangeHandler:this.updateHandle}),r.createElement(fm.Z,{label:"Label",instructions:"Field label used to describe the field.",name:"label",value:n,onChangeHandler:this.update}),r.createElement(Vh,{label:"This field is required?",name:"required",checked:t,onChangeHandler:this.update}),r.createElement("hr",null),r.createElement("h4",null,XT("Configuration")),r.createElement(Xd.Z,{label:"Render as",value:g,options:[{key:a.RENDER_AS_SELECT,value:XT("Select")},{key:a.RENDER_AS_RADIOS,value:XT("Radios")},{key:a.RENDER_AS_CHECKBOXES,value:XT("Checkboxes")}],onChangeHandler:this.handleRenderSwap}),g!==a.RENDER_AS_SELECT&&r.createElement(Vh,{label:"Show all options in a single line?",name:"oneLine",checked:c,onChangeHandler:this.update}),r.createElement(Xd.Z,{label:"Email Template",instructions:"The notification template used to send an email to the email value entered into this field (optional). Leave empty to just store the email address without sending anything.",name:"notificationId",value:f,couldBeNumeric:!0,onChangeHandler:this.update,emptyOption:"Select a template...",optionGroups:ty.getNotificationList(v)},m&&r.createElement(zd,null)),r.createElement("hr",null),r.createElement(sh,{label:"Instructions",instructions:"Field specific user instructions.",name:"instructions",value:p,onChangeHandler:this.update}),r.createElement("hr",null),r.createElement(Sm,{showEmptyOptionInput:!0,values:i,customOptions:u,showCustomValues:!0,source:y,target:d,configuration:b,onChangeHandler:this.update,availableSources:[Vo,Qo,Ko,Yo,_o,Wo,Jo]}),r.createElement(Ov,null))}}])&&qw(t.prototype,n),o&&qw(t,o),a}(qd.Z),Rw.propTypes={notifications:$().oneOfType([$().array,$().object]).isRequired},Rw.contextTypes=kw(kw({},qd.Z.contextTypes),{},{properties:$().shape({type:$().string.isRequired,handle:$().string.isRequired,label:$().string.isRequired,required:$().bool,value:$().node,options:$().array,notificationId:$().oneOfType([$().string,$().number]),oneLine:$().bool,showAsRadio:$().bool,showAsCheckboxes:$().bool,source:$().string,target:$().node,configuration:$().object}).isRequired,canManageNotifications:$().bool.isRequired}),Rw.RENDER_AS_SELECT="select",Rw.RENDER_AS_RADIOS="radios",Rw.RENDER_AS_CHECKBOXES="checkboxes",jw=Pw))||jw;function Lw(e){return(Lw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uw(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){if(mE(r())){n(hE());var o=zT("freeform/api/form-templates");return My()(o,{credentials:"same-origin"}).then((function(e){return e.json()})).then((function(r){n(bE(r)),e&&t&&(n(St(e,{formTemplate:t})),n(Rt("")),n(Rt(e)))}))}Promise.resolve()}}(t,n))}}}))((yE=pE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&OE(e,t)}(u,e);var t,n,i,a=wE(u);function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=a.call(this,e,t)).state=u.initialState,n.updateName=n.updateName.bind(jE(n)),n.updateFileName=n.updateFileName.bind(jE(n)),n.updateState=n.updateState.bind(jE(n)),n.getFileName=n.getFileName.bind(jE(n)),n.addTemplate=n.addTemplate.bind(jE(n)),n.setErrors=n.setErrors.bind(jE(n)),n.cleanErrors=n.cleanErrors.bind(jE(n)),n}return t=u,(n=[{key:"componentDidMount",value:function(){o.findDOMNode(this.refs.name).focus()}},{key:"render",value:function(){var e=this.state,t=e.name,n=e.fileName,o=e.errors,i=this.props.toggleForm;return r.createElement("div",{className:"composer-new-field-form"},r.createElement("div",{className:"field"},r.createElement("div",{className:"heading"},r.createElement("label",null,XT("Template Name"))),r.createElement("div",{className:"input"},r.createElement("input",{type:"text",name:"name",ref:"name",className:"text fullwidth",value:t,onChange:this.updateName,onKeyUp:this.updateState}))),r.createElement("div",{className:"field"},r.createElement("div",{className:"heading"},r.createElement("label",null,XT("File Name"))),r.createElement("div",{className:"input"},r.createElement("input",{type:"text",name:"fileName",ref:"fileName",className:"text fullwidth code",readOnly:!0,disabled:!0,value:n}))),o.length>0&&r.createElement("div",{className:"errors"},o.map((function(e,t){return r.createElement("div",{key:t},e)}))),r.createElement("button",{className:"btn submit small",onClick:this.addTemplate},XT("Save")),r.createElement("button",{className:"btn cancel small",onClick:i},XT("Cancel")))}},{key:"updateName",value:function(e){var t=e.target.value;this.setState({name:t,fileName:this.getFileName(t)})}},{key:"updateFileName",value:function(e){this.setState({handle:this.getFileName(e.target.value)})}},{key:"updateState",value:function(e){switch(e.which){case 13:this.addTemplate();break;case 27:this.props.toggleForm()}}},{key:"getFileName",value:function(e){return(0,qn.underscored)(e)+".html"}},{key:"addTemplate",value:function(){var e=this,t=this.refs.name,n=this.props,r=n.toggleForm,i=n.fetchTemplates,a=this.context,u=a.csrf,c=a.notificator,l=a.createTemplateUrl,s=o.findDOMNode(t).value,f=[];if(s||f.push("Name must not be empty"),f.length)return this.setErrors(f),!1;var p=new FormData;return p.append(u.name,u.token),p.append("templateName",s),My()(l,{method:"post",credentials:"same-origin",body:p}).then((function(e){return e.json()})).then((function(t){t.templateName&&0===t.errors.length?(i("form",t.templateName),r(),c("notice","Template added successfully")):e.setErrors(t.errors)})).catch((function(t){return e.setErrors(t)})),!0}},{key:"setErrors",value:function(e){this.setState({errors:e})}},{key:"cleanErrors",value:function(){this.setState({errors:[]})}}])&&gE(t.prototype,n),i&&gE(t,i),u}(r.Component),pE.initialState={name:"",fileName:"",errors:[]},pE.propTypes={toggleForm:$().func.isRequired,fetchTemplates:$().func.isRequired},pE.contextTypes={csrf:$().shape({name:$().string.isRequired,token:$().string.isRequired}).isRequired,notificator:$().func.isRequired,createTemplateUrl:$().string.isRequired},fE=yE))||fE;function AE(e){return(AE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function SE(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n"+r+"",document.title=r+" - Craft",t||n({handle:(0,Ql.OE)(r,!0)}),this.update(e)}},{key:"getCheckboxFields",value:function(){var e=this.props.composerProperties,t=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];h===r.type&&t.push({key:n,value:r.label})}return t}}])&&UE(t.prototype,n),o&&UE(t,o),a}(qd.Z),DE.title="Form Settings",DE.propTypes={formStatuses:$().array.isRequired,solspaceTemplates:$().array.isRequired,templates:$().array.isRequired,composerProperties:$().object.isRequired,currentFormHandle:$().string},DE.contextTypes=ME(ME({},qd.Z.contextTypes),{},{properties:$().shape({name:$().string.isRequired,handle:$().string.isRequired,submissionTitleFormat:$().string.isRequired,description:$().string.isRequired,storeData:$().bool,ipCollectingEnabled:$().bool,defaultStatus:$().number.isRequired,returnUrl:$().string.isRequired,extraPostUrl:$().string,extraPostTriggerPhrase:$().string,formTemplate:$().string,optInDataStorageTargetHash:$().string,ajaxEnabled:$().bool,recaptchaEnabled:$().bool,gtmEnabled:$().bool,gtmId:$().string,gtmEventName:$().string}).isRequired,canManageSettings:$().bool.isRequired,isDefaultTemplates:$().bool.isRequired,isPro:$().bool.isRequired,isInvisibleRecaptchaSetUp:$().bool.isRequired}),TE=FE))||TE;function JE(e){return(JE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XE(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var sj=function(e){var t=e.styles,n=void 0===t?{}:t,o=lj(e,["styles"]);return r.createElement("svg",cj({"aria-hidden":"true","data-prefix":"fas","data-icon":"compress",className:(n["svg-inline--fa"]||"svg-inline--fa")+" "+(n["fa-compress"]||"fa-compress")+" "+(n["fa-w-14"]||"fa-w-14"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},o),r.createElement("path",{fill:"currentColor",d:"M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"}))};function fj(){return(fj=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var yj=function(e){var t=e.styles,n=void 0===t?{}:t,o=pj(e,["styles"]);return r.createElement("svg",fj({"aria-hidden":"true","data-prefix":"fas","data-icon":"expand",className:(n["svg-inline--fa"]||"svg-inline--fa")+" "+(n["fa-expand"]||"fa-expand")+" "+(n["fa-w-14"]||"fa-w-14"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},o),r.createElement("path",{fill:"currentColor",d:"M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"}))},dj=(n(53239),n(74981));n(19516),n(56667),n(42692),n(82679);function hj(e){return(hj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mj(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],u=e.props.mappedAttributeName,c=void 0===u?"Field":u;return r.createElement("div",{className:"composer-option-table field",key:n,style:{marginBottom:10}},a&&r.createElement("div",{className:"composer-property-heading heading"},r.createElement("label",null,o)),r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,r.createElement("th",null,XT(c)),r.createElement("th",null,XT("FF Field")))),r.createElement("tbody",null,e.renderRows(i))))},e.renderRows=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=e.props,o=n.mapping,i=n.formFields,a=[];return t.map((function(t,n){a.push(r.createElement(Hj,{key:n,handle:t.handle,label:t.label,required:t.required,placeholder:t.placeholder,formFields:i,extraOptions:e.getExtraOptionGroups(),mappedFormField:o&&o[t.handle]?o[t.handle]:"",onChangeHandler:e.updateMappings}))})),a},e.updateMappings=function(){for(var t=e.context.updateField,n=e.refs.items.querySelectorAll("select"),r=e.props.name||"mapping",o={},i=0;i1));return r.createElement("div",{ref:"items"},n)}}])&&Lj(t.prototype,n),o&&Lj(t,o),a}(r.Component);function eR(e){return(eR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nR(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function qR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function yP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0},n.getPaymentFieldList=function(){var e=n.props.paymentType,t=[];return e===tA?t.push(uA):(t.push(rA),t.push(oA),e===nA?t.push(iA):t.push(aA)),t},n.getPlans=function(){return n.props.integration.plans.map((function(e){return{key:e.resourceId,value:e.name}}))},n.handePlanCreated=function(e){(0,n.context.updateField)({plan:e})},n.getPaymentFields=function(){return n.getPaymentFieldList().map((function(e){return pA[e]}))},n.handlePlanHelperToggle=function(){var e=n.state.isPlanHelperOpen;n.setState({isPlanHelperOpen:!e})},n.state={isPlanHelperOpen:!1},n}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.formPaymentFields,n=e.paymentFieldMapping,o=e.amount,i=e.currency,a=e.interval,u=e.description,c=e.plan,l=e.fetchPlans,s=e.isFetching,f=this.getPlans(),p=this.getPaymentFields(),y=this.state.isPlanHelperOpen;return r.createElement("div",null,r.createElement(pb,{label:"Payment Field Mapping",instructions:"Payment fields to your Freeform fields.",content:r.createElement($j,{name:"paymentFieldMapping",formFields:t,fields:p,mapping:n,mappedAttributeLabel:"Payment Field"})}),this.checkFixedFieldVisibility(rA)&&r.createElement(SA,{label:"Fixed Amount",instructions:"Fixed payment amount.",name:"amount",value:o,onChangeHandler:this.update}),this.checkFixedFieldVisibility(oA)&&r.createElement(Xd.Z,{label:"Fixed Currency",instructions:"Payment currency.",name:"currency",value:i,options:bA,onChangeHandler:this.update}),this.checkFixedFieldVisibility(aA)&&r.createElement(fm.Z,{label:"Payment Description",instructions:"Enter a custom payment description",name:"description",value:u,placeholder:"Payment for FF Submission #{id}",onChangeHandler:this.update}),this.checkFixedFieldVisibility(iA)&&r.createElement(Xd.Z,{label:"Fixed Interval",instructions:"The frequency with which a subscription should be billed.",name:"interval",value:a,options:cA,onChangeHandler:this.update}),this.checkFixedFieldVisibility(uA)&&r.createElement(Xd.Z,{label:"Fixed Subscription Plan",instructions:"Select one of existing subscription plans",emptyOption:"Choose a subscription plan...",name:"plan",value:c,options:f,onChangeHandler:this.update}),this.checkHelperFieldVisibility(uA)&&r.createElement(pb,{label:"Available Plans",instructions:"Name of the plan is in bold, id of the plan is underneath it, you can place this id into select, radio option values so user could pick a plan.",content:r.createElement("ul",{className:"plan-helper-list"},r.createElement("li",{onClick:this.handlePlanHelperToggle},r.createElement("a",{href:"#"},y?"Hide":"Show all ("+f.length+")")),y&&f.map((function(e,t){return r.createElement("li",{key:t},r.createElement("strong",null,e.value),r.createElement("br",null),e.key,r.createElement("br",null))})))}),this.checkFieldVisibility(uA)&&r.createElement("button",{className:"btn download icon",onClick:l,disabled:s},s?"Refreshing...":"Refresh plans"),this.checkFieldVisibility(uA)&&r.createElement(HA,{onCreated:this.handePlanCreated}))}}])&&MA(t.prototype,n),o&&MA(t,o),a}(qd.Z),FA.contextTypes={updateField:$().func.isRequired},FA.propTypes={formPaymentFields:$().arrayOf($().shape({handle:$().string.isRequired,label:$().string.isRequired})),integration:$().object.isRequired,paymentType:$().string.isRequired,amount:$().oneOfType([$().string,$().number]),currency:$().string,interval:$().string,description:$().string,plan:$().string,paymentFieldMapping:$().object.isRequired,isFetching:$().bool.isRequired,fetchPlans:$().func.isRequired},DA=BA))||DA;function _A(e){return(_A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function WA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JA(e,t){for(var n=0;n0&&this.renderProperties())}}])&&sS(t.prototype,n),o&&sS(t,o),a}(qd.Z),nS.title="Payments",nS.propTypes={composerProperties:$().object.isRequired,paymentProperties:$().object,paymentGatewayList:$().array.isRequired,fetchPaymentGateways:$().func.isRequired,isFetching:$().bool.isRequired},nS.contextTypes=uS(uS({},qd.Z.contextTypes),{},{properties:$().shape({type:$().string.isRequired,integrationId:$().oneOfType([$().string,$().number]),paymentNotifications:$().oneOfType([$().object,$().array]),paymentType:$().string,amount:$().oneOfType([$().string,$().number]),currency:$().string,interval:$().string,description:$().string,plan:$().string,paymentFieldMapping:$().oneOfType([$().object,$().array]),customerFieldMapping:$().oneOfType([$().object,$().array])}),isPro:$().bool}),tS=rS))||tS;function bS(e){return(bS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vS(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function $C(e,t){if(e){if("string"==typeof e)return ek(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ek(e,t):void 0}}function ek(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;-1===t.indexOf(i.key)&&r.push(i)}}catch(e){o.e(e)}finally{o.f()}return r};function Pk(e){return(Pk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ak(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sk(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function kI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(O=Object.assign(O,NI)),p>0&&(O=Object.assign(O,HI));var w=null;switch(g.type){case F:v="Form Settings",w=r.createElement(WE,{formStatuses:o});break;default:if(g.type&&BI[g.type]){var E=BI[g.type];v=E.title||v,w=r.createElement(E,null)}}var j=-1===[F,B,N,L,H,I,M,G,C,x,q,T,A,Z].indexOf(g.type);return r.createElement("div",{className:"property-editor"},r.createElement(Yv,{editAdminNotifications:u,editForm:i,editValidation:a,editIntegrations:c,editPayments:s,editConnections:l,editRules:f,hash:t,crmIntegrationCount:p,paymentGatewayCount:y,isRulesEnabled:h,isPro:m}),r.createElement("h3",null,r.createElement("span",null,XT(v)),j&&r.createElement(Id.Tooltip,{title:XT("Reset to default values"),position:"bottom-start",theme:"light",arrow:!0},r.createElement("button",{className:"btn small property-reset",onClick:this.resetField},XT("Reset")))),r.createElement("hr",null),!!g.label&&b&&r.createElement("h4",{dangerouslySetInnerHTML:{__html:g.label}}),!!g.label&&!b&&r.createElement("h4",null,g.label),r.createElement("div",{className:"property-wrapper"},w||r.createElement("p",null,XT("Please select an element"))))}}])&&xI(t.prototype,n),o&&xI(t,o),a}(r.Component),RI.propTypes={properties:$().object.isRequired,hash:$().string.isRequired,updateProperties:$().func.isRequired,editForm:$().func.isRequired,editAdminNotifications:$().func.isRequired,editIntegrations:$().func.isRequired,editPayments:$().func.isRequired,crmIntegrationCount:$().number.isRequired,paymentGatewayCount:$().number.isRequired,editConnections:$().func.isRequired,editRules:$().func.isRequired,fields:$().array},RI.contextTypes={isRulesEnabled:$().bool.isRequired,renderHtml:$().bool.isRequired,isPro:$().bool.isRequired},RI.childContextTypes={hash:$().string.isRequired,properties:$().object,updateField:$().func.isRequired},jI=PI))||jI;function ZI(e){return(ZI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function LI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GI(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.hash,r=t.isChecked,o=t.value,i=void 0===o?null:o,a=oq({},e);switch(t.type){case ve:return e[n]?(e[n].options||(e[n].options=[]),a[n].options.push({label:"",value:""}),a):e;case ge:if(e[n]&&e[n].options){for(var u=tq(e[n].options),c=!1,l=0;le.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:bq,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case it:return wq(e,t);case at:return Eq(e,t);case ut:return jq(e,t);case ct:return Rq(e,t);case lt:return Pq(e,t);case st:return Aq(e,t);case ft:return Sq(e,t);case pt:return Cq(e,t);case yt:case dt:case ht:case bt:case mt:return kq(e,t);default:return e}};function qq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tq(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Mq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zq(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[[]],t=arguments.length>1?arguments[1]:void 0,n=null;switch(t.type){case oe:n=Gq(e);var r={id:(0,Ql.Hc)(),columns:[t.hash]};return n[t.pageIndex]||(n[t.pageIndex]=[]),n[t.pageIndex].push(r),n;case ue:return(n=Gq(e))[t.pageIndex][t.rowIndex].columns.splice(t.columnIndex,0,t.hash),n;case ce:return _q(e,t);case fe:return[].concat(Gq(e),[[]]);case pe:return removePageFromLayout(e,t);case Et:return(n=[].concat(Gq(e.slice(0,t.oldIndex)),Gq(e.slice(t.oldIndex+1)))).splice(t.newIndex,0,e[t.oldIndex]),n;default:return e}}function Kq(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case oe:case ue:case ce:return Zq(Zq({},t),{},Lq({},n.hash,n.properties));case fe:return Zq(Zq({},t),{},Lq({},"page".concat(n.index),n.properties));case Et:var r=n.oldIndex,o=n.newIndex,i="page".concat(r),a="page".concat(o),u=t[i].label,c=t[a].label,l=Zq({},t.rules.list),s=null;l[i]&&(s=Zq({},l[i]),delete l[i]);var f=null;return l[a]&&(f=Zq({},l[a]),delete l[a]),s&&(l[a]=s),f&&(l[i]=f),Array.isArray(l)&&(l=Zq({},l)),Zq(Zq({},t),{},(Lq(e={},"page".concat(n.oldIndex),{type:"page",label:c}),Lq(e,"page".concat(n.newIndex),{type:"page",label:u}),Lq(e,"rules",Zq(Zq({},t.rules),{},{list:l})),e));case ye:return Zq(Zq({},t),{},Lq({},n.hash,Zq(Zq({},t[[n.hash]]),n.keyValueObject)));case he:return Zq(Zq({},t),{},Lq({},n.hash,n.defaultProperties));case de:var p=Zq({},t),y=p[n.hash];if(y.type===m)for(var d in p){var h=p[d];h.type===x&&h.emailFieldHash===n.hash&&(p[d].emailFieldHash="")}return delete p[n.hash],p;default:return t}}function Yq(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=Gq(e),r=t.pageIndex,o=t.rowIndex,i=t.columnIndex,a=t.newRowIndex,u=t.newColumnIndex,c=n[r][o].columns[i];return n[r][o].columns.splice(i,1),n[r][a].columns.splice(u,0,c),Wq(n),n}function _q(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=Gq(t),o=n.pageIndex,i=n.rowIndex,a=n.hash,u=n.prevPageIndex,c=void 0===u?null:u,l=Nq(r[o].keys());try{for(l.s();!(e=l.n()).done;){var s=e.value,f=r[o][s].columns.indexOf(a);-1!==f&&r[o][s].columns.splice(f,1)}}catch(e){l.e(e)}finally{l.f()}if(null!==c){var p,y=Nq(r[c].keys());try{for(y.s();!(p=y.n()).done;){var d=p.value,h=r[c][d].columns.indexOf(a);-1!==h&&r[c][d].columns.splice(h,1)}}catch(e){y.e(e)}finally{y.f()}}var b={id:(0,Ql.Hc)(),columns:[a]};return-1===i?r[o].push(b):r[o].splice(i,0,b),Wq(r),r}function Wq(e){var t,n=Nq(e.keys());try{for(n.s();!(t=n.n()).done;){var r,o=t.value,i=Nq(e[o].keys());try{for(i.s();!(r=i.n()).done;){var a=r.value;0===e[o][a].columns.length&&e[o].splice(a,1)}}catch(e){i.e(e)}finally{i.f()}}}catch(e){n.e(e)}finally{n.f()}}function Jq(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=Gq(e),r=t.pageIndex,o=t.rowIndex,i=t.columnIndex;return n[r][o].columns.splice(i,1),0===n[r][o].columns.length&&n[r].splice(o,1),n}function zq(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.index,r=[];e.layout[n].map((function(e){e.columns.map((function(e){return r.push(e)}))}));var o=[].concat(Gq(e.layout.slice(0,n)),Gq(e.layout.slice(n+1))),i=xq(e.properties,t);for(var a in delete i["page".concat(n)],r.map((function(e){i[e]&&delete i[e]})),i)if(i.hasOwnProperty(a)){var u=a.match(/^page(\d+)$/);if(u&&u[1]){var c=u[1];c>n&&(i["page".concat(c-1)]=i["page".concat(c)],delete i["page".concat(c)])}}return Zq(Zq({},e),{},{layout:o,properties:i})}var Xq=[],$q=[];function eT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tT(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return e},formId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case be:return parseInt(t.id);default:return e}},fields:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ie:return e;case qe:return tT(tT({},e),{},{fields:t.fieldData});case Te:return tT(tT({},e),{},{didInvalidate:!0});default:return e}},specialFields:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e},mailingLists:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ze:return wT(wT({},e),{},{isFetching:!0});case Le:return wT(wT({},e),{},{list:t.sourceTargetData,isFetching:!1,didInvalidate:!1});case Ge:return wT(wT({},e),{},{didInvalidate:!0});default:return e}},sourceTargets:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qT;return e},formStatuses:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e},generatedOptionLists:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ue:return lT(lT({},e),{},{isFetching:!0});case Ve:return lT(lT({},e),{},{cache:lT(lT({},e.cache),{},sT({},t.hash,t.generatedOptions)),isFetching:!1,didInvalidate:!1});case Qe:var n=lT(lT({},e),{},{didInvalidate:!0});return delete n.cache[t.hash],n;default:return e}},composer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=null,r=null;switch(t.type){case oe:case fe:case ue:case ce:case Et:return(r=Zq({},e)).layout=Qq(e.layout,t),t.properties&&(r.properties=Kq(e.properties,t)),r;case pe:return zq(e,t);case ie:return n=t.pageIndex,e.layout[n]?Zq(Zq({},e),{},{layout:Yq(e.layout,t)}):e;case ae:return n=t.pageIndex,e.layout[n]?Zq(Zq({},e),{},{layout:Jq(e.layout,t)}):e;case ye:case de:case he:return Zq(Zq({},e),{},{properties:Kq(e.properties,t)});case ve:case ge:case Oe:case we:case Ee:case je:case Re:case Pe:case Ae:return Zq(Zq({},e),{},{properties:aq(e.properties,t)});case nt:case rt:case ot:return Zq(Zq({},e),{},{properties:Zq(Zq({},e.properties),{},{connections:eq(e.properties.connections,t)})});case it:case at:case ut:case ct:case lt:case st:case ft:case pt:case yt:case dt:case ht:case bt:case mt:return Zq(Zq({},e),{},{properties:Zq(Zq({},e.properties),{},{rules:Iq(e.properties.rules,t)})});case Se:case Ce:case ke:case xe:var o=Zq({},e.properties),i=t.hash,a=t.attribute;if(!o[i])return e;var u=Zq({},o[i]);return u[a]||(u[a]=[]),Zq(Zq({},e),{},{properties:Zq(Zq({},e.properties),{},Lq({},i,Zq(Zq({},u),{},Lq({},a,Hq(u[a],t)))))});default:return e}},context:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case le:return Zq(Zq({},e),{},{page:t.index,hash:"page".concat(t.index)});case se:return Zq(Zq({},e),{},{hash:t.hash});default:return e}},craftFields:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xq;return e},notifications:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ST,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case De:return e;case Fe:return PT(PT({},e),{},{list:t.notificationData});case Be:return PT(PT({},e),{},{didInvalidate:!0});default:return e}},assetSources:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e},templates:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case He:return e;case Ne:return iT(iT({},e),{},{list:t.templateData});case Me:return iT(iT({},e),{},{didInvalidate:!0});default:return e}},placeholders:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:IT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case vt:return kT(kT({},IT),{},{type:fn,rowIndex:t.rowIndex,targetHash:t.targetHash});case gt:return kT(kT({},IT),{},{type:pn,rowIndex:t.rowIndex,index:t.index,targetHash:t.targetHash});case Ot:return kT(kT({},IT),{},{type:sn,pageIndex:t.pageIndex});case wt:return kT({},IT);default:return e}},duplicateHandles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case me:return t.duplicateHandles;default:return e}},integrations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ke:return yT(yT({},e),{},{isFetching:!0});case Ye:return yT(yT({},e),{},{list:t.crmData,isFetching:!1,didInvalidate:!1});case _e:return yT(yT({},e),{},{didInvalidate:!0});case We:return yT(yT({},e),{},{didInvalidate:!1,isFetching:!1});default:return e}},paymentGateways:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Je:return mT(mT({},e),{},{isFetching:!0});case ze:return mT(mT({},e),{},{list:t.crmData,isFetching:!1,didInvalidate:!1});case Xe:return mT(mT({},e),{},{didInvalidate:!0});case $e:return mT(mT({},e),{},{didInvalidate:!1,isFetching:!1});case et:case tt:return mT({},e);default:return e}},fileKinds:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e},customFields:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$q;return e},sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:TT;return e}});function FT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function BT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HT=(0,a.qC)((0,a.md)(u.Z),window.devToolsExtension?window.devToolsExtension():function(e){return e}),NT=[{type:I,label:XT("Submit"),labelNext:"Submit",labelPrev:"Previous",disablePrev:!1,position:"left",visible:!0},{type:C,label:"HTML",value:"
Html content
"}];if(isPro&&NT.push({type:k,label:"Rich Text",value:""},{type:A,label:XT("Confirm"),handle:"confirm",placeholder:""},{type:T,label:XT("Password"),handle:"password",placeholder:""}),isRecaptchaEnabled&&!isInvisibleRecaptchaSetUp&&NT.push({type:q,label:"reCAPTCHA",singleton:!0}),isPaymentEnabled){var MT=fieldList.findIndex((function(e){return e.type==D})),ZT=fieldList[MT];if(fieldList.splice(MT,1),paymentGatewayList.length>0){var LT,GT=n(30113).Z,UT=n(99858).Z,VT=n(30262).Z,QT=n(99832).Z;NT.push({id:ZT.id,type:ZT.type,handle:ZT.handle,label:"",fieldLabel:"Credit Card",children:(LT={},BT(LT,QT.getClassName(),{label:"Credit Card Number",required:!0}),BT(LT,UT.getClassName(),{label:"Expiry Date",required:!0}),BT(LT,VT.getClassName(),{label:"CVC/CVV",required:!0}),LT),layout:GT.LAYOUT_3_ROWS,singleton:!0})}}var KT,YT,_T=(0,a.MT)(DT,function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"freeform";return Craft.t(n,e,t)}o.render(r.createElement(i.zt,{store:_T},r.createElement(_I,{saveUrl:Craft.getCpUrl("freeform/forms/save"),formUrl:Craft.getCpUrl("freeform/forms/{id}"),createFieldUrl:Craft.getCpUrl("freeform/api/quick-create-field"),createNotificationUrl:Craft.getCpUrl("freeform/api/quick-create-notification"),createTemplateUrl:Craft.getCpUrl("freeform/settings/add-demo-template"),finishTutorialUrl:Craft.getCpUrl("freeform/api/finish-tutorial"),showTutorial,defaultTemplates,notificator:JT,isPro,canManageFields,canManageNotifications,canManageSettings,isDbEmailTemplateStorage,isRulesEnabled,renderHtml:renderFormHtmlInCpViews,reservedKeywords,isInvisibleRecaptchaSetUp,isCommerceEnabled,isCalendarEnabled,csrf:{name:Craft.csrfTokenName?Craft.csrfTokenName:"csrfToken",token:Craft.csrfTokenValue?Craft.csrfTokenValue:""}})),WT)},34347:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(45697),o=n.n(r),i=n(67294),a=n(28677);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",r=this.context.updateField;t=void 0===t?this.constructor.getClassName():t;var o=this.preprocessTarget(e.target),i=o.name,a=o.value,u=this.compileProps()[n];if("object"!==l(u))throw"".concat(n," property should be an object");var f=c({},u),p=f[t];if("object"!==l(p))throw"".concat(n,".").concat(p," property should be an object");f[t]=c(c({},p),{},s({},i,a)),r(s({},n,f))}},{key:"preprocessTarget",value:function(e){var t=e.name,n=e.value,r=e.type,o=e.dataset,i=e.checked,a=o.isNumeric&&"false"!==o.isNumeric,u=o.isFloat&&"false"!==o.isFloat,c=o.couldBeNumeric&&"false"!==o.couldBeNumeric,l=o.nullable&&"false"!==o.nullable,s=n;switch(r){case"checkbox":s=i}return a&&(s=(s+"").replace(/[^0-9\.]/,""),s=u?s?parseFloat(s):0:s?parseInt(s):0),c&&/^[0-9]+$/.test(s)&&(s=s?parseInt(s):0),l&&(s=""!==s?s:null),{name:t,value:s}}},{key:"updateHandle",value:function(e){var t=this.context.updateField,n=e.target,r=n.name,o=n.value;t(s({},r,(0,a.OE)(o,!1)))}},{key:"updateKeyValue",value:function(e,t){(0,this.context.updateField)(s({},e,t))}},{key:"compileProps",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"children",t=this.context.properties,n=t[e],r=n&&n[this.constructor.getClassName()]||{},o=this.props;return c(c(c({},t),r),o)}}])&&f(t.prototype,n),r&&f(t,r),i}(i.Component);m.contextTypes={properties:o().shape({label:o().string.isRequired}).isRequired,updateField:o().func.isRequired}},30262:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(45697),o=n.n(r),i=n(67294),a=n(17121),u=n(34347),c=n(7943);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t=i)&&Object.keys(r.O).every((function(e){return r.O[e](n[c])}))?n.splice(c--,1):(u=!1,i0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[n,o,i]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={447:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,i,a=n[0],u=n[1],c=n[2],l=0;for(o in u)r.o(u,o)&&(r.m[o]=u[o]);for(c&&c(r),t&&t(n);l1&&void 0!==arguments[1])||arguments[1],n=e;return t&&(n=(0,o.camelize)(e,!0)),n=n.replace(/[^a-zA-Z0-9\-_]/g,"")}},6705:function(e,t,n){"use strict";n.d(t,{MU:function(){return aD},Iu:function(){return cD},Y4:function(){return uD}});n(28594),n(35666);var r=n(67294),o=n(73935),i=n(66612),a=n(14890),u=n(53894),c="hidden",l="text",s="textarea",f="select",p="multiple_select",y="radio",d="radio_group",h="checkbox",b="checkbox_group",m="email",v="dynamic_recipients",g="file",O="datetime",w="number",E="phone",j="website",R="rating",P="regex",S="confirmation",A="opinion_scale",C="html",k="rich_text",x="mailing_list",I="submit",q="recaptcha",T="password",D="cc_details",F="form",B="validation",H="page",N="integration",M="connections",Z="rules",L="admin_notifications",G="payment",U=[c,l,s,f,p,d,h,b,m,v,g,w],V=[c,"invisible",l,s,f,p,d,h,b,m,v,g,O,w,E,j,R,P,S,T,A],Q=[l,m,O,w,E,j,P,T],K=[l,s,f,p,y,d,h,b,m,v,g,O,w,E,j,R,P,S,C,k,x,I,T,A,"table","signature"],_=[l,s,f,p,y,d,h,b,m,v,O,w,E,j,R,P,S,x,T,A,c],Y=[C,k,I,S,T],W="both",J="date",z="time",X=n(45697),$=n.n(X),ee=n(17698),te=n(57865),ne=n(36221),re=n.n(ne),oe="ADD_FIELD_TO_NEW_ROW",ie="REPOSITION_COLUMN",ae="REMOVE_COLUMN",ue="ADD_COLUMN_TO_ROW",ce="ADD_COLUMN_TO_NEW_ROW",le="SWITCH_PAGE",se="SWITCH_HASH",fe="ADD_PAGE",pe="REMOVE_PAGE",ye="UPDATE_PROPERTY",de="REMOVE_PROPERTY",he="RESET_PROPERTIES",be="UPDATE_FORM_ID",me="UPDATE_DUPLICATE_HANDLE_LIST",ve="ADD_VALUE_SET",ge="CLEAN_UP_VALUES",Oe="UPDATE_VALUE_SET",we="UPDATE_IS_CHECKED",Ee="INSERT_VALUE",je="REMOVE_VALUE",Re="TOGGLE_CUSTOM_VALUES",Pe="REORDER_VALUE_SET",Se="REMOVE_VALUE_SET",Ae="MATRIX_ADD_ROW",Ce="MATRIX_REMOVE_ROW",ke="MATRIX_SWAP_ROW",xe="MATRIX_UPDATE_COLUMN",Ie="REQUEST_FIELDS",qe="RECEIVE_FIELDS",Te="INVALIDATE_FIELDS",De="REQUEST_NOTIFICATIONS",Fe="RECEIVE_NOTIFICATIONS",Be="INVALIDATE_NOTIFICATIONS",He="REQUEST_FORM_TEMPLATES",Ne="RECEIVE_FORM_TEMPLATES",Me="INVALIDATE_FORM_TEMPLATES",Ze="REQUEST_MAILING_LISTS",Le="RECEIVE_MAILING_LISTS",Ge="INVALIDATE_MAILING_LISTS",Ue="REQUEST_GENERATED_OPTIONS",Ve="RECEIVE_GENERATED_OPTIONS",Qe="INVALIDATE_GENERATED_OPTIONS",Ke="REQUEST_CRM_INTEGRATIONS",_e="RECEIVE_CRM_INTEGRATIONS",Ye="INVALIDATE_CRM_INTEGRATIONS",We="END_REQUEST_CRM_INTEGRATIONS",Je="REQUEST_PAYMENT_GATEWAYS",ze="RECEIVE_PAYMENT_GATEWAYS",Xe="INVALIDATE_PAYMENT_GATEWAYS",$e="END_REQUEST_PAYMENT_GATEWAYS",et="CREATE_PAYMENT_PLAN",tt="END_CREATE_PAYMENT_PLAN",nt="ADD_CONNECTION",rt="REMOVE_CONNECTION",ot="UPDATE_CONNECTION",it="ADD_PAGE_BLOCK",at="REMOVE_PAGE_BLOCK",ut="ADD_FIELD_RULE",ct="REMOVE_FIELD_RULE",lt="ADD_GOTO_RULE",st="REMOVE_GOTO_RULE",ft="TOGGLE_FIELD_RULE_SHOW",pt="TOGGLE_RULE_MATCH_ALL",yt="ADD_RULE_CRITERIA",dt="REMOVE_RULE_CRITERIA",ht="UPDATE_RULE_CRITERIA_HASH",bt="TOGGLE_RULE_CRITERIA_EQUALS",mt="UPDATE_RULE_CRITERIA_VALUE",vt="ADD_PLACEHOLDER_ROW",gt="ADD_PLACEHOLDER_COLUMN",Ot="ADD_PLACEHOLDER_PAGE",wt="CLEAR_PLACEHOLDERS",Et="SWAP_PAGE";function jt(e){return{type:le,index:e}}function Rt(e){return{type:se,hash:e}}function Pt(e,t,n){return function(r){r({type:oe,hash:e,properties:t,pageIndex:n}),r(Ct())}}function St(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return function(i){i({type:ce,rowIndex:e,hash:t,properties:n,pageIndex:r,prevPageIndex:o}),i(Ct())}}function At(e,t){return function(n){n({type:ye,hash:e,keyValueObject:t}),t.hasOwnProperty("handle")&&n(Ct())}}function Ct(){return function(e,t){var n=t().composer.properties,r=[],o=[];for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];if(a.hasOwnProperty("handle")){var u=a.handle;-1!==r.indexOf(u)?o.push(u):r.push(u)}}e({type:me,duplicateHandles:o})}}var kt,xt,It;function qt(){return{type:wt}}function Tt(e){return(Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ft(e,t){for(var n=0;n button",placement:"right",event:"hover"},{title:"Special Fields",content:"Drag and drop these when you need them. You can have as many HTML fields as you need, but should only have 1 submit button per page.",target:".composer-special-fields",placement:"right",event:"hover"},{title:"Form Layout",content:"This is a live preview of what your form will look like. Drag and drop and fields from the left column into position here. New rows and columns will automatically be created as you position the fields.",target:".builder",placement:"left",event:"hover"},{title:"Editing Fields",content:"Fields can easily be moved around whenever you need. Clicking on any field will open up its properties in the Property Editor in the right column.",target:".layout",placement:"left",event:"hover"},{title:"Multi-page Forms",content:"To create multi-page forms, click the + button to add more pages. You can edit the names of the pages in the Property Editor in the right column. To rearrange pages, click and drag page tabs to shuffle order. To move fields from one page to another, drag and drop fields onto the page tab you'd like it to be on.",target:".tab-list-wrapper",placement:"bottom",event:"hover"},{title:"Property Editor",content:"This is where all your configuration will happen. Clicking on any field, page tab, etc in Composer layout area will load its configuration options here.",target:".property-editor > div > div.sticky + div",placement:"left",event:"hover"}],$t=n(84387);function en(e){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nn(e,t){for(var n=0;n=4&&e.index!==r.rowIndex)return null;var u=i+(a===r.rowIndex?0:1),c=(0,o.findDOMNode)(n).getBoundingClientRect(),l=(c.right-c.left)/u,s=t.getClientOffset().x-c.left;return Math.floor(s/l)}function bn(e,t,n){var r=t.getItem();if(1===r.columnCountInRow&&(r.rowIndex===e.index||r.rowIndex+1===e.index))return null;var i=(0,o.findDOMNode)(n).getBoundingClientRect(),a=t.getClientOffset();return i.top+20>a.y}var mn=n(96436);function vn(e){return(vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function On(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Yn.propTypes={label:$().string,isRequired:$().bool,type:$().string},Yn.contextTypes={renderHtml:$().bool.isRequired};function zn(){return(zn=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $n(){return($n=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tr(){return(tr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rr(){return(rr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ir(){return(ir=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ur(){return(ur=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function lr(){return(lr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function fr(){return(fr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var yr=function(e){e.styles;var t=pr(e,["styles"]);return r.createElement("svg",fr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M65.871 30.777c10.172 3.557 18.658 10.53 26.721 17.449l1.704 1.542-1.763 1.475C75.009 66.032 53.051 78.528 30.279 67.25l2.972-3.046c5.771 2.648 11.944 3.57 18.239 3.402 13.881-.933 26.256-9.417 36.675-17.955-7.439-6.823-15.802-12.546-25.443-15.647l3.149-3.227zM49.415 27.903c2.978.012 1.638.008 4.019.014 4.669.531 1.916.127 8.218 1.456l-3.381 3.464c-3.282-.721-1.594-.407-5.066-.925-15.85-.529-29.54 8.274-41.371 17.968 5.409 4.766 11.154 9.243 17.612 12.496l-2.935 3.007c-7.01-3.745-13.174-8.842-19.103-14.078l-1.704-1.542 1.762-1.475C18.002 39.692 29.629 31.152 43.3 28.574c2.014-.45 4.061-.584 6.115-.671z"}),r.createElement("path",{d:"M56.833 40.424c3.104 2.087 3.97 5.02 4.151 8.614 0 6.477-5.25 11.728-11.727 11.728-3.4-.116-6.435-.896-8.424-3.842l16-16.5z"}),r.createElement("path",{d:"M75.634 21.151c.807.041.414.03 1.179.035l.667.431a2 2 0 01.035 2.829l-52.5 53.8a2 2 0 01-2.863-2.794l52.5-53.8c.34-.248.559-.445.982-.501z"}))};function dr(){return(dr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function br(){return(br=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function vr(){return(vr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Or(){return(Or=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Er(){return(Er=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Rr(){return(Rr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Sr(){return(Sr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Cr(){return(Cr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function xr(){return(xr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function qr(){return(qr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Dr(){return(Dr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Br(){return(Br=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Nr(){return(Nr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Zr(){return(Zr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Gr(){return(Gr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Vr(){return(Vr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Kr(){return(Kr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Yr(){return(Yr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Jr(){return(Jr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Xr(){return(Xr=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var eo={text:function(e){e.styles;var t=Wr(e,["styles"]);return r.createElement("svg",Yr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M87.921 28.5c3.917 0 7.079 3.179 7.079 7.085v29.83c0 3.906-3.162 7.085-7.079 7.085H12.079C8.162 72.5 5 69.321 5 65.415v-29.83c0-3.906 3.162-7.085 7.079-7.085h75.842zm0 4H12.079c-1.668 0-3.034 1.374-3.034 3.085v29.83c0 1.711 1.366 3.085 3.034 3.085h75.842c1.668 0 3.034-1.374 3.034-3.085v-29.83c0-1.711-1.366-3.085-3.034-3.085z"}),r.createElement("path",{d:"M57.567 16c4.356.016 8.091 2.075 10.585 5.535 2.365-3.638 6.331-5.334 10.584-5.535h.758v4h-.758c-4.727 0-8.511 3.519-8.511 7.796v44.408c0 4.277 3.784 7.796 8.511 7.796h.758v4h-.758c-4.356-.017-8.09-2.075-10.584-5.535-2.366 3.638-6.332 5.334-10.585 5.535h-.758v-4h.758c4.728 0 8.512-3.519 8.512-7.796V27.796c0-4.277-3.784-7.796-8.512-7.796h-.758v-4h.758z"}))},textarea:function(e){e.styles;var t=zr(e,["styles"]);return r.createElement("svg",Jr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M88.222 11C91.986 11 95 14.181 95 18.06v63.88c0 3.879-3.014 7.06-6.778 7.06H11.778C8.014 89 5 85.819 5 81.94V18.06C5 14.181 8.014 11 11.778 11h76.444zm0 4.034H11.778C10.265 15.035 9 16.369 9 18.06v63.88c0 1.691 1.265 3.026 2.778 3.026h76.444c1.514 0 2.778-1.335 2.778-3.026V18.06c0-1.691-1.264-3.025-2.778-3.026z"}),r.createElement("path",{d:"M18.459 21.833c2.36.067 3.081.689 4.624 2.079 1.146-1.422 2.773-1.911 4.625-2.079h1.375v2.477h-1.376c-1.772 0-3.209 1.294-3.21 2.89v19.266c.001 1.596 1.438 2.89 3.211 2.89h1.375v2.477h-1.376c-2.359-.067-3.08-.689-4.624-2.078-1.145 1.421-2.773 1.91-4.624 2.078h-1.376v-2.477h1.376c1.773 0 3.21-1.294 3.21-2.89V27.2c0-1.596-1.437-2.89-3.21-2.89h-1.376v-2.477h1.376z"}))},hidden:yr,file:function(e){e.styles;var t=sr(e,["styles"]);return r.createElement("svg",lr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M70.197 14.067c10.272 1.243 17.308 12.325 10.43 21.277l-.106.115-5.484 5.508-12.066 12.117-12.065 12.117c-4.388 4.407-4.388 4.407-5.552 5.572-4.295 3.93-9.917 3.664-13.75.099-3.795-3.531-4.411-9.018-.657-12.995l3.984-3.946 7.923-7.845 9.608-9.514 3.985-3.945a2 2 0 112.814 2.842l-3.984 3.945-7.923 7.846-9.608 9.514-3.937 3.896c-4.638 4.917 3.259 12.264 8.778 7.217l5.484-5.508 12.066-12.117 12.065-12.117 5.407-5.431c5.784-7.478-4.023-18.569-12.691-12.899l-1.644 1.686-4.644 4.764-14.094 14.454-14.094 14.455-4.644 4.763-1.755 1.799c-9.962 10.472 4.396 26.276 15.989 17.557l.302-.298 1.085-1.068 3.872-3.812c4.006-3.943 8.014-7.887 11.757-11.567l.043-.043C67.55 52.222 73.748 46.147 74.275 45.678a2 2 0 012.658 2.99c-.443.393-6.939 6.76-17.037 16.689l-.043.043c-3.743 3.68-7.75 7.623-11.756 11.566l-3.872 3.811-1.084 1.068-.384.378-.124.113C27.848 94.632 7.359 73.273 21.172 58.952l1.762-1.807 4.644-4.764 14.094-14.454 14.094-14.455 4.644-4.763 1.762-1.807.079-.082.089-.072c2.726-2.154 4.511-2.505 7.857-2.681z"}))},email:function(e){e.styles;var t=cr(e,["styles"]);return r.createElement("svg",ur({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M84 21.667a7 7 0 017 7v42.667a7 7 0 01-7 7H16a7 7 0 01-7-7V28.667a7 7 0 017-7h68zm0 4H16a3 3 0 00-3 3v42.667a3 3 0 003 3h68a3 3 0 003-3V28.667a3 3 0 00-3-3z"}),r.createElement("path",{d:"M86.487 23.563l2.475 3.142-33.891 26.7.177-.157c-2.474 2.473-8.356 2.473-10.829 0l.169.151-33.309-26.5 2.49-3.13 33.309 26.5.089.07.081.081c.911.911 4.26.911 5.171 0l.084-.084.093-.073 33.891-26.7z"}))},checkbox:function(e){e.styles;var t=Xn(e,["styles"]);return r.createElement("svg",zn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M70.334 22.667a7 7 0 017 7v40.667a7 7 0 01-7 7H29.667a7 7 0 01-7-7V29.667a7 7 0 017-7h40.667zm0 4H29.667a3 3 0 00-3 3v40.667a3 3 0 003 3h40.667a3 3 0 003-3V29.667a3 3 0 00-3-3z"}),r.createElement("path",{d:"M67.662 34.754l2.843 2.815-26.001 26.25-1.414 1.427-1.421-1.42-10-10 2.828-2.828 8.579 8.578 24.586-24.822z"}))},checkbox_group:function(e){e.styles;var t=Jn(e,["styles"]);return r.createElement("svg",Wn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M31.5 35h60M31.5 52h60M31.5 69.5h60",stroke:"#000",strokeWidth:"4",fill:"none"}),r.createElement("path",{d:"M25.061 25.419l2.358 2.369-11.391 11.447-1.179 1.184-1.179-1.184-6.251-6.282 2.358-2.369 5.072 5.097 10.212-10.262zM25.061 42l2.358 2.369-11.391 11.447L14.849 57l-1.179-1.184-6.251-6.282 2.358-2.369 5.072 5.097L25.061 42zM25.061 59l2.358 2.369-11.391 11.447L14.849 74l-1.179-1.184-6.251-6.282 2.358-2.369 5.072 5.097L25.061 59z"}))},confirmation:function(e){e.styles;var t=er(e,["styles"]);return r.createElement("svg",$n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M51.859 16.833c7.874.033 15.21 2.798 21.362 7.669 1.108.877 1.998 1.999 2.998 2.998h-6.705c-5.107-4.141-11.208-5.762-17.655-6.087-16.019 0-29.004 12.985-29.004 29.004 0 16.018 12.985 29.003 29.004 29.003 9.435-.153 18.323-4.545 23.64-12.42H81c-6.669 10.978-16.417 16.357-29.141 17-18.548 0-33.584-15.036-33.584-33.583 0-18.548 15.036-33.584 33.584-33.584z"}),r.createElement("path",{d:"M78.739 15.114v18.473H60.266l18.473-18.473z"}))},cc_details:function(e){e.styles;var t=nr(e,["styles"]);return r.createElement("svg",tr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M84 21.333a7 7 0 017 7V71a7 7 0 01-7 7H16a7 7 0 01-7-7V28.333a7 7 0 017-7h68zm0 4H16a3 3 0 00-3 3V71a3 3 0 003 3h68a3 3 0 003-3V28.333a3 3 0 00-3-3z"}),r.createElement("path",{d:"M12.167 38.5h76.666",stroke:"#000",strokeWidth:"12",fill:"none"}))},datetime:function(e){e.styles;var t=or(e,["styles"]);return r.createElement("svg",rr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M81.16 19.867c3.782 0 6.84 3.086 6.84 6.884v52.364C88 82.914 84.942 86 81.16 86H18.19c-3.782 0-6.84-3.086-6.84-6.885V26.751c0-3.798 3.058-6.884 6.84-6.884h62.97zm0 4H18.19c-1.564 0-2.84 1.287-2.84 2.884v52.364c0 1.598 1.276 2.885 2.84 2.885h62.97c1.564 0 2.84-1.287 2.84-2.885V26.751c0-1.597-1.276-2.884-2.84-2.884z"}),r.createElement("path",{d:"M86.067 36.5v4h-72.6v-4h72.6zM29.3 12.167a3 3 0 013 3V27.5a3 3 0 11-6 0V15.167a3 3 0 013-3zM69.9 12.167a3 3 0 013 3V27.5a3 3 0 11-6 0V15.167a3 3 0 013-3z"}))},dynamic_recipients:function(e){e.styles;var t=ar(e,["styles"]);return r.createElement("svg",ir({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M77.748 20.739c3.534 0 6.4 2.865 6.399 6.399v39.005a6.398 6.398 0 01-6.399 6.399H15.584a6.4 6.4 0 01-6.399-6.399V27.138a6.4 6.4 0 016.399-6.399h62.164zm0 3.656H15.584a2.744 2.744 0 00-2.743 2.743v39.005a2.743 2.743 0 002.743 2.743h62.164a2.743 2.743 0 002.743-2.743V27.138a2.744 2.744 0 00-2.743-2.743z"}),r.createElement("path",{d:"M80.021 22.472l2.263 2.872-30.982 24.409.161-.144c-2.261 2.261-7.638 2.261-9.899 0l.155.138-30.451-24.226 2.277-2.861 30.45 24.226.081.064.074.074c.833.833 3.895.833 4.728 0l.076-.077.085-.067 30.982-24.408zM87.158 28.199c2.441.864 3.418 3.285 3.657 5.658v39.005a6.4 6.4 0 01-6.399 6.399H22.252c-2.445-.09-4.682-1.337-5.65-3.638h59.72v-.019h8.094a2.741 2.741 0 002.743-2.742V33.857l-.001-.001v-5.657z"}))},html:function(e){e.styles;var t=hr(e,["styles"]);return r.createElement("svg",dr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M59.217 22.759l-2.529-.694a1.143 1.143 0 00-.958.102 1.328 1.328 0 00-.633.796L39.886 75.609c-.108.354-.074.687.102.999.177.313.442.524.796.633l2.528.693c.326.11.646.075.958-.102.313-.177.524-.441.632-.794L60.114 24.39a1.225 1.225 0 00-.103-1 1.321 1.321 0 00-.794-.631zM36.421 33.036c0-.354-.136-.667-.408-.938l-2.039-2.039c-.272-.272-.585-.408-.938-.408s-.666.136-.938.408L13.095 49.062c-.272.272-.408.584-.408.938 0 .353.136.666.408.938l19.003 19.003c.272.272.584.407.938.407s.666-.135.938-.407l2.039-2.038c.272-.272.408-.585.408-.939 0-.353-.136-.665-.408-.937L19.987 50l16.026-16.026c.273-.272.408-.585.408-.938zM86.905 49.061L67.902 30.058c-.272-.271-.585-.408-.938-.408-.354 0-.665.137-.938.408l-2.038 2.039c-.272.272-.408.584-.408.938s.136.666.408.938L80.014 50 63.988 66.027c-.272.272-.408.585-.408.937 0 .354.136.667.408.939l2.038 2.038c.273.272.585.407.938.407s.666-.135.938-.407l19.003-19.003c.272-.272.408-.585.408-.939 0-.353-.136-.666-.408-.938z"}))},mailing_list:function(e){e.styles;var t=mr(e,["styles"]);return r.createElement("svg",br({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M93.073 18.887a1.419 1.419 0 00-1.276-.504 1.36 1.36 0 00-.32.056L8.663 40.963a1.432 1.432 0 00-1.054 1.341c-.015.63.385 1.197.983 1.394l30.302 9.929-2.711 21.682a1.428 1.428 0 002.285 1.312l11.09-8.493 9.722 13.89c.269.384.706.61 1.17.61l.097-.003c.5-.035.944-.327 1.173-.774l31.51-61.413c.263-.503.2-1.111-.157-1.551zm-9.919 4.776L40.259 51.067l-26.246-8.599 69.141-18.805zM39.441 72.279l1.974-15.786 6.505 9.293-8.479 6.493zm20.823 6.16L42.483 53.037l45.845-29.29-28.064 54.692z"}),r.createElement("path",{d:"M93.073 18.887a1.419 1.419 0 00-1.276-.504 1.36 1.36 0 00-.32.056L8.663 40.963a1.432 1.432 0 00-1.054 1.341c-.015.63.385 1.197.983 1.394l30.302 9.929-2.711 21.682a1.428 1.428 0 002.285 1.312l11.09-8.493 9.722 13.89c.269.384.706.61 1.17.61l.097-.003c.5-.035.944-.327 1.173-.774l31.51-61.413c.263-.503.2-1.111-.157-1.551zm-9.919 4.776L40.259 51.067l-26.246-8.599 69.141-18.805zM39.441 72.279l1.974-15.786 6.505 9.293-8.479 6.493zm20.823 6.16L42.483 53.037l45.845-29.29-28.064 54.692z",stroke:"#000",strokeWidth:".5",fill:"none"}))},multiple_select:function(e){e.styles;var t=gr(e,["styles"]);return r.createElement("svg",vr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M88.222 11C91.986 11 95 14.181 95 18.06v63.88c0 3.879-3.014 7.06-6.778 7.06H11.778C8.014 89 5 85.819 5 81.94V18.06C5 14.181 8.014 11 11.778 11h76.444zm0 4.034H11.778C10.265 15.035 9 16.369 9 18.06v63.88c0 1.691 1.265 3.026 2.778 3.026h76.444c1.514 0 2.778-1.335 2.778-3.026V18.06c0-1.691-1.264-3.025-2.778-3.026z"}),r.createElement("path",{d:"M20.334 33.5h60M20.334 50.5h60M20.334 68h60",stroke:"#000",strokeWidth:"4",fill:"none"}))},number:function(e){e.styles;var t=wr(e,["styles"]);return r.createElement("svg",Or({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M87.921 28C91.838 28 95 31.179 95 35.085v29.83C95 68.821 91.838 72 87.921 72H12.079C8.162 72 5 68.821 5 64.915v-29.83C5 31.179 8.162 28 12.079 28h75.842zm0 4H12.079c-1.668 0-3.034 1.374-3.034 3.085v29.83c0 1.711 1.366 3.085 3.034 3.085h75.842c1.668 0 3.034-1.374 3.034-3.085v-29.83c0-1.711-1.366-3.085-3.034-3.085z"}),r.createElement("path",{d:"M20.576 43.245q1.039 0 2.02-.173.982-.174 1.776-.578.794-.404 1.356-1.039.563-.635.737-1.559h2.684v20.208h-3.608V45.843h-4.965zM55.27 60.104H41.471q.029-2.512 1.212-4.388 1.184-1.877 3.233-3.262.982-.722 2.05-1.4 1.068-.679 1.963-1.458.895-.78 1.472-1.689.578-.909.607-2.093 0-.548-.13-1.169t-.505-1.155q-.376-.534-1.04-.895t-1.732-.361q-.981 0-1.631.39-.649.39-1.039 1.068-.39.679-.577 1.602-.188.924-.217 1.992h-3.291q0-1.674.448-3.103.447-1.429 1.342-2.468t2.179-1.631q1.285-.592 2.988-.592 1.848 0 3.089.606 1.242.606 2.007 1.53.765.924 1.082 2.007.318 1.082.318 2.064 0 1.212-.376 2.194-.375.981-1.01 1.804-.635.823-1.443 1.515-.809.693-1.675 1.3-.866.606-1.732 1.154-.866.549-1.602 1.097-.736.549-1.285 1.141-.548.591-.75 1.255h9.844zM70.851 48.268q.808.029 1.616-.116.809-.144 1.444-.505.635-.361 1.025-.996.389-.635.389-1.559 0-1.299-.88-2.078-.881-.78-2.266-.78-.866 0-1.502.347-.635.346-1.053.938-.419.592-.621 1.328-.202.736-.173 1.516h-3.291q.058-1.473.548-2.728.491-1.256 1.343-2.18.851-.924 2.064-1.443 1.212-.52 2.742-.52 1.184 0 2.324.346 1.141.347 2.05 1.011.909.664 1.458 1.689.548 1.024.548 2.352 0 1.53-.693 2.671-.692 1.14-2.165 1.66v.057q1.732.347 2.699 1.718.967 1.371.967 3.334 0 1.444-.577 2.584-.577 1.14-1.559 1.934-.981.794-2.28 1.227-1.299.433-2.743.433-1.761 0-3.074-.505-1.314-.505-2.194-1.429-.881-.924-1.343-2.223-.461-1.299-.49-2.887h3.291q-.058 1.848.909 3.075.967 1.227 2.901 1.227 1.646 0 2.757-.939 1.112-.938 1.112-2.67 0-1.184-.462-1.876-.462-.693-1.213-1.054-.75-.361-1.689-.448-.938-.086-1.919-.057z"}))},opinion_scale:function(e){e.styles;var t=jr(e,["styles"]);return r.createElement("svg",Er({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("g",{stroke:"#000",strokeWidth:"12",fill:"none"},r.createElement("path",{d:"M73.5 79.5V19.939M49.775 79.5V43.763M25.95 79.5V67.588"})))},password:function(e){e.styles;var t=Pr(e,["styles"]);return r.createElement("svg",Rr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M25.76 43.152h49.48c3.208 0 5.81 2.155 5.81 4.815V78.3c0 2.659-2.602 4.815-5.81 4.815H25.76c-3.208 0-5.81-2.156-5.81-4.815V47.967c0-2.66 2.602-4.815 5.81-4.815zM50.5 17.885c13.198.521 20.293 13.309 20.776 25.267H29.724c.202-12.2 7.794-24.448 20.776-25.267z",stroke:"#000",strokeWidth:"4",fill:"none"}),r.createElement("path",{d:"M46.22 62.98l-1.009 9.074a1.598 1.598 0 001.59 1.776h6.398a1.598 1.598 0 001.59-1.776L53.78 62.98a6.327 6.327 0 002.618-5.145A6.405 6.405 0 0050 51.436a6.405 6.405 0 00-6.398 6.399c0 2.068.979 3.953 2.618 5.145zM50 54.636a3.203 3.203 0 013.199 3.199c0 1.226-.697 2.324-1.818 2.868a1.6 1.6 0 00-.894 1.616l.925 8.312h-2.824l.925-8.312a1.6 1.6 0 00-.894-1.616c-1.121-.544-1.818-1.642-1.818-2.868A3.203 3.203 0 0150 54.636z"}),r.createElement("path",{d:"M50.5 25.594c8.596.362 13.217 9.248 13.531 17.558H36.969c.131-8.478 5.076-16.989 13.531-17.558z",stroke:"#000",strokeWidth:"4",fill:"none"}))},phone:function(e){e.styles;var t=Ar(e,["styles"]);return r.createElement("svg",Sr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M30.967 21.108a8.144 8.144 0 00-.961.405c-.786.405-3.297 2.487-5.044 4.177-2.696 2.626-3.864 4.304-3.968 5.715-.116 1.4.486 4.42 1.307 6.652 2.14 5.715 6.282 11.986 12.576 18.985 1.944 2.163 6.942 7.161 9.105 9.105 6.837 6.144 12.935 10.227 18.569 12.414 2.383.925 5.865 1.631 7.254 1.469.752-.092 1.897-.717 3.112-1.701 2.129-1.712 6.005-6.108 6.745-7.635.336-.694.359-.845.359-1.967 0-1.087-.035-1.272-.313-1.793-.162-.324-.451-.717-.636-.891-.405-.381-11.685-7.879-12.472-8.284-.486-.254-.729-.3-1.562-.3-1.516 0-2.036.208-6.328 2.661l-1.921 1.087-1.098-.822c-2.141-1.607-4.409-3.655-7.903-7.149-3.493-3.505-5.541-5.762-7.15-7.914l-.833-1.098 1.342-2.349c1.782-3.146 2.106-3.818 2.326-4.847.22-1.03.151-1.886-.197-2.58-.498-.96-8.168-12.413-8.527-12.715-.844-.706-2.602-.995-3.782-.625zm2.129 2.256c.196.197 4.384 6.479 7.172 10.748 1.019 1.562 1.076 1.677 1.019 2.128-.081.614-.625 1.701-2.511 5.01-.833 1.458-1.573 2.742-1.631 2.857-.197.347 1.758 3.043 4.442 6.108.648.729 2.708 2.869 4.593 4.744 4.107 4.119 6.872 6.548 9.441 8.284l1.111.752.358-.232c.845-.509 4.628-2.638 5.819-3.274.868-.451 1.481-.705 1.852-.74l.566-.07 6.132 4.073c3.378 2.233 6.201 4.153 6.282 4.257.197.267.173.938-.081 1.47-.682 1.492-5.287 6.617-6.953 7.728-.602.405-.682.428-1.585.428-4.893 0-12.413-3.841-20.199-10.331-4.894-4.084-11.118-10.308-15.202-15.202-6.503-7.798-10.263-15.155-10.343-20.188-.012-.764.022-.949.312-1.435.798-1.376 5.554-5.75 7.531-6.941.775-.463 1.516-.532 1.875-.174z"}),r.createElement("path",{d:"M30.967 21.108a8.144 8.144 0 00-.961.405c-.786.405-3.297 2.487-5.044 4.177-2.696 2.626-3.864 4.304-3.968 5.715-.116 1.4.486 4.42 1.307 6.652 2.14 5.715 6.282 11.986 12.576 18.985 1.944 2.163 6.942 7.161 9.105 9.105 6.837 6.144 12.935 10.227 18.569 12.414 2.383.925 5.865 1.631 7.254 1.469.752-.092 1.897-.717 3.112-1.701 2.129-1.712 6.005-6.108 6.745-7.635.336-.694.359-.845.359-1.967 0-1.087-.035-1.272-.313-1.793-.162-.324-.451-.717-.636-.891-.405-.381-11.685-7.879-12.472-8.284-.486-.254-.729-.3-1.562-.3-1.516 0-2.036.208-6.328 2.661l-1.921 1.087-1.098-.822c-2.141-1.607-4.409-3.655-7.903-7.149-3.493-3.505-5.541-5.762-7.15-7.914l-.833-1.098 1.342-2.349c1.782-3.146 2.106-3.818 2.326-4.847.22-1.03.151-1.886-.197-2.58-.498-.96-8.168-12.413-8.527-12.715-.844-.706-2.602-.995-3.782-.625zm2.129 2.256c.196.197 4.384 6.479 7.172 10.748 1.019 1.562 1.076 1.677 1.019 2.128-.081.614-.625 1.701-2.511 5.01-.833 1.458-1.573 2.742-1.631 2.857-.197.347 1.758 3.043 4.442 6.108.648.729 2.708 2.869 4.593 4.744 4.107 4.119 6.872 6.548 9.441 8.284l1.111.752.358-.232c.845-.509 4.628-2.638 5.819-3.274.868-.451 1.481-.705 1.852-.74l.566-.07 6.132 4.073c3.378 2.233 6.201 4.153 6.282 4.257.197.267.173.938-.081 1.47-.682 1.492-5.287 6.617-6.953 7.728-.602.405-.682.428-1.585.428-4.893 0-12.413-3.841-20.199-10.331-4.894-4.084-11.118-10.308-15.202-15.202-6.503-7.798-10.263-15.155-10.343-20.188-.012-.764.022-.949.312-1.435.798-1.376 5.554-5.75 7.531-6.941.775-.463 1.516-.532 1.875-.174z",stroke:"#000",strokeWidth:".5",fill:"none"}))},radio_group:function(e){e.styles;var t=kr(e,["styles"]);return r.createElement("svg",Cr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M28.5 33.5h60M28.5 50.5h60M28.5 68h60",stroke:"#000",strokeWidth:"4",fill:"none"}),r.createElement("path",{d:"M17.167 25.586a7 7 0 110 14 7 7 0 110-14zm0 2.47a4.53 4.53 0 100 9.059 4.53 4.53 0 000-9.059zm0 1.647a2.882 2.882 0 110 5.765 2.882 2.882 0 010-5.765zM17.167 43.25a7 7 0 110 14 7 7 0 110-14zm0 2.471a4.53 4.53 0 100 9.058 4.529 4.529 0 100-9.058zm0 1.647a2.882 2.882 0 110 5.764 2.882 2.882 0 110-5.764zM17.167 60a7 7 0 110 14 7 7 0 110-14zm0 2.471a4.53 4.53 0 100 9.058 4.529 4.529 0 100-9.058zm0 1.647a2.882 2.882 0 110 5.764 2.882 2.882 0 110-5.764z"}))},rating:function(e){e.styles;var t=Ir(e,["styles"]);return r.createElement("svg",xr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M27.954 83.5l4.125-24.051-17.474-17.032 24.148-3.509 10.799-21.882 10.8 21.882L84.5 42.417 67.026 59.449 71.151 83.5 49.552 72.145z",stroke:"#000",strokeWidth:"4",fill:"none"}))},recaptcha:function(e){e.styles;var t=Tr(e,["styles"]);return r.createElement("svg",qr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M84.979 49.951a35.368 35.368 0 00-.035-1.497v-28.31l-7.827 7.827c-6.405-7.841-16.149-12.849-27.064-12.849-11.358 0-21.449 5.422-27.828 13.818l12.829 12.963a16.994 16.994 0 015.196-5.83c2.24-1.748 5.413-3.177 9.803-3.177.53 0 .939.062 1.24.179 5.439.429 10.153 3.431 12.929 7.787l-9.08 9.081c11.501-.045 24.494-.072 29.836.006",fill:"#1C3AA9"}),r.createElement("path",{d:"M49.849 15.124c-.502.001-1.001.013-1.497.035H20.043l7.826 7.827c-7.84 6.405-12.848 16.15-12.848 27.064 0 11.358 5.421 21.449 13.817 27.828L41.802 65.05a17.02 17.02 0 01-5.831-5.197c-1.747-2.24-3.176-5.413-3.176-9.803 0-.53.062-.939.178-1.24.43-5.439 3.431-10.153 7.788-12.929l9.08 9.08c-.045-11.501-.072-24.494.006-29.836",fill:"#4285F4"}),r.createElement("path",{d:"M15.022 50.049c.002.502.013 1.001.036 1.497v28.31l7.826-7.827c6.405 7.841 16.15 12.849 27.064 12.849 11.359 0 21.449-5.422 27.828-13.818L64.948 58.097a16.986 16.986 0 01-5.197 5.83c-2.239 1.748-5.413 3.177-9.802 3.177-.531 0-.94-.062-1.241-.179-5.439-.429-10.153-3.431-12.929-7.787l9.081-9.081c-11.502.045-24.495.072-29.837-.006",fill:"#ABABAB"}))},regex:function(e){e.styles;var t=Fr(e,["styles"]);return r.createElement("svg",Dr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M34.531 62.497q-.814-1.302-1.532-2.684-.718-1.382-1.247-2.914-.529-1.532-.827-3.239-.298-1.708-.298-3.66 0-3.28 1.017-6.452 1.016-3.171 2.887-6.045h2.521q-1.627 2.928-2.481 6.005-.854 3.076-.854 6.492t.814 6.506q.813 3.09 2.521 5.991zM43.223 55.467h3.768v3.659h-3.768zM46.693 44.562l.882-2.607 4.411 1.725v-4.812h2.727v4.812l4.37-1.725.963 2.607-4.572 1.524 2.807 3.769-2.125 1.564-2.847-3.93-2.727 3.93-2.245-1.564 2.807-3.769zM65.469 37.503q.814 1.302 1.519 2.698.704 1.396 1.233 2.927.529 1.532.84 3.24.312 1.707.312 3.659 0 3.28-1.017 6.452-1.016 3.171-2.887 6.018h-2.521q1.627-2.901 2.481-5.978.854-3.076.854-6.492 0-3.415-.814-6.506-.813-3.09-2.521-6.018z"}),r.createElement("g",null,r.createElement("path",{d:"M87.921 28C91.838 28 95 31.179 95 35.085v29.83C95 68.821 91.838 72 87.921 72H12.079C8.162 72 5 68.821 5 64.915v-29.83C5 31.179 8.162 28 12.079 28h75.842zm0 4H12.079c-1.668 0-3.034 1.374-3.034 3.085v29.83c0 1.711 1.366 3.085 3.034 3.085h75.842c1.668 0 3.034-1.374 3.034-3.085v-29.83c0-1.711-1.366-3.085-3.034-3.085z"})))},rich_text:function(e){e.styles;var t=Hr(e,["styles"]);return r.createElement("svg",Br({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M49.009 40.356h35.607M49.009 56.676h35.607M15.384 72.997h69.232",stroke:"#000",strokeWidth:"3",fill:"none"}),r.createElement("path",{d:"M31.259 27.003h4.896l4.599 32.418h-4.71l-1.076-8.581H24.434l-4.08 8.581h-4.97zm1.595 5.721h-.074L26.4 46.527h8.086z"}))},select:function(e){e.styles;var t=Mr(e,["styles"]);return r.createElement("svg",Nr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M86.921 28C90.838 28 94 31.179 94 35.085v29.83C94 68.821 90.838 72 86.921 72H11.079C7.162 72 4 68.821 4 64.915v-29.83C4 31.179 7.162 28 11.079 28h75.842zm0 4H11.079c-1.668 0-3.034 1.374-3.034 3.085v29.83c0 1.711 1.366 3.085 3.034 3.085h75.842c1.668 0 3.034-1.374 3.034-3.085v-29.83c0-1.711-1.366-3.085-3.034-3.085z"}),r.createElement("path",{d:"M81.156 45.438L68.093 58.501 55.031 45.438h26.125z"}))},signature:function(e){e.styles;var t=Lr(e,["styles"]);return r.createElement("svg",Zr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M34.898 84l5.228-21.172 32.282-44.274c2.194-3.008 6.463-3.588 9.529-1.353l2.178 1.589c3.066 2.235 3.819 6.478 1.626 9.486L56.699 68.105l-3.241 4.444L34.898 84zm11.701-23.26l-.884 1.212 6.868 5.008 29.925-41.041c.87-1.193.56-2.942-.749-3.897l-2.179-1.589c-1.309-.954-3.07-.715-3.94.478L46.599 60.74zM23.872 71.254l.613.036.613.251.417.325.302.334.245.34.218.352.205.37.294.584.397.858.41.931.424.975.441.994.459.987.476.95.492.883.502.783.368.488.232.267.236.237.223.189.206.14.181.092.035.007a1.501 1.501 0 01-1.21 2.745l-.295-.137-.466-.273-.428-.317-.395-.352-.369-.383-.357-.425-.491-.666-.595-.939-.551-.996-.514-1.028-.482-1.036-.449-1.014-.419-.964-.387-.881-.221-.479-.089.274-.279.972-.284 1.058-.288 1.104-.294 1.111-.302 1.085-.312 1.019-.243.702-.176.447-.19.426-.217.409-.267.401-.367.399-.559.362-.786.162-.769-.175-.462-.289-.082-.072a1.509 1.509 0 01-.127-.126l-.211-.254-.272-.412-.227-.436-.204-.468-.189-.501-.183-.54-.26-.848-.334-1.184-.329-1.201-.328-1.157-.248-.799-.162-.472-.103-.274-.012.026-.133.318-.138.358-.144.4-.149.442-.153.485-.158.527-.164.575-.085.311a1.5 1.5 0 01-2.893-.794l.085-.311.171-.602.17-.568.167-.529.166-.492.163-.456.162-.423.162-.391.238-.519.324-.595.355-.516.421-.448.558-.377.765-.213.846.108.671.373.461.461.335.483.269.5.233.521.211.546.197.569.276.884.35 1.228.337 1.229.327 1.163.134.433.212-.7.281-1.013.284-1.075.287-1.096.289-1.076.293-1.023.301-.935.24-.641.175-.403.186-.366.216-.347.277-.341.408-.341.425-.212c.102-.037.207-.063.314-.078l.07-.01zm-3.551 11.443l.077.098-.025-.047-.052-.051zm-.019-.025l.026.023-.026-.023zm-4.548-7.537l-.086.054-.067.087.08-.039.073-.102zm9.145-1.273l-.074.104-.01.018.1-.116-.016-.006z"}))},spam:function(e){e.styles;var t=Ur(e,["styles"]);return r.createElement("svg",Gr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M49.141 16.259c-.24.134-.867.627-1.401 1.081-5.173 4.387-12.841 6.841-19.522 6.267-1.027-.094-2.213-.2-2.653-.24-.693-.054-.867-.027-1.267.253-1 .667-.933-.253-.933 13.975 0 13.481.04 14.748.613 17.322 1.88 8.428 8.921 17.428 19.855 25.362C47.06 82.626 49.354 84 50.034 84c1.186 0 7.56-4.44 12.068-8.401 1.786-1.574 4.88-4.707 6.28-6.334 3.56-4.186 6.201-8.867 7.388-13.067.88-3.161.866-2.84.866-17.936 0-12.961-.013-13.695-.24-14.041a2.335 2.335 0 00-.667-.64c-.466-.293-.253-.293-3.866.027-4.468.4-9.681-.614-14.029-2.734-1.906-.92-4.454-2.574-5.773-3.747-.467-.401-1.027-.827-1.227-.934a1.706 1.706 0 00-1.693.066zm2.08 5.108c4.253 3.134 9.254 5.147 14.615 5.908 1.067.146 2.507.227 4.307.227l2.707.013-.054 12.268c-.04 13.774 0 13.148-1.053 16.321-1.027 3.093-2.947 6.468-5.534 9.694-2.547 3.187-7.013 7.414-11 10.415-2.053 1.546-4.961 3.52-5.175 3.52-.493 0-6.08-4.107-8.934-6.56-7.454-6.428-12.001-13.015-13.494-19.576-.281-1.24-.294-1.507-.334-13.681l-.053-12.415h2.64c4.654.013 8.454-.747 12.682-2.52 2.213-.934 5.2-2.681 6.88-4.041.28-.227.547-.413.573-.413.04 0 .587.386 1.227.84z"}),r.createElement("path",{d:"M40.428 55.965l6.757-6.757-6.706-6.706 2.823-2.824 6.707 6.707 6.706-6.707 2.858 2.858-6.707 6.706 6.707 6.706-2.824 2.824-6.707-6.706-6.756 6.757z"}))},submit:function(e){e.styles;var t=Qr(e,["styles"]);return r.createElement("svg",Vr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M67.446 59.5l-2.275-2.275 5.85-5.85H55.225v-3.25h15.796l-5.85-5.85L67.446 40l9.749 9.75-9.749 9.75z"}),r.createElement("path",{d:"M17.5 28h66a5 5 0 015 5v34.5a5 5 0 01-5 5h-66a5 5 0 01-5-5V33a5 5 0 015-5z",stroke:"#000",strokeWidth:"4",fill:"none"}))},website:function(e){e.styles;var t=$r(e,["styles"]);return r.createElement("svg",Xr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M50 17.73h-.079C32.133 17.77 17.73 32.205 17.73 50s14.403 32.224 32.191 32.27H50c17.821 0 32.27-14.449 32.27-32.27 0-17.821-14.449-32.27-32.27-32.27zm1.291 19.309a47.709 47.709 0 009.957-1.323c.968 3.806 1.568 8.186 1.66 12.993H51.291v-11.67zm0-2.581V20.516c3.477.961 7.007 5.604 9.253 12.717a44.631 44.631 0 01-9.253 1.225zm-2.582-13.975v13.975a44.334 44.334 0 01-9.325-1.252c2.265-7.152 5.822-11.808 9.325-12.723zm0 16.556v11.67H37.013c.092-4.814.698-9.2 1.66-13.007a47.48 47.48 0 0010.036 1.337zm-14.297 11.67H20.345a29.524 29.524 0 016.717-17.531 47.387 47.387 0 009.115 3.846c-1.041 4.116-1.667 8.759-1.765 13.685zm0 2.582c.092 4.926.717 9.562 1.765 13.685a46.974 46.974 0 00-9.115 3.853c-3.958-4.821-6.434-10.9-6.717-17.538h14.067zm2.601 0h11.696v11.657a47.547 47.547 0 00-10.036 1.343c-.969-3.807-1.568-8.193-1.66-13zm11.696 14.232v13.988c-3.503-.916-7.066-5.579-9.332-12.744a45.399 45.399 0 019.332-1.244zm2.582 13.961V65.523c3.181.092 6.269.513 9.253 1.231-2.246 7.119-5.769 11.769-9.253 12.73zm0-16.536V51.291h11.617c-.092 4.801-.692 9.18-1.66 12.98a47.26 47.26 0 00-9.957-1.323zm14.212-11.657h14.152a29.517 29.517 0 01-6.71 17.531 47.768 47.768 0 00-9.194-3.872c1.034-4.117 1.66-8.746 1.752-13.659zm0-2.582c-.092-4.919-.718-9.556-1.759-13.672a47.494 47.494 0 009.187-3.872 29.542 29.542 0 016.724 17.538l-14.152.006zm5.65-19.513a45.34 45.34 0 01-8.107 3.352c-1.508-4.854-3.628-8.818-6.131-11.42a29.733 29.733 0 0114.238 8.068zm-28.167-8.041c-2.489 2.594-4.603 6.539-6.105 11.373a44.924 44.924 0 01-8.034-3.332 29.677 29.677 0 0114.139-8.041zM28.834 70.791a45.071 45.071 0 018.041-3.332c1.501 4.834 3.615 8.785 6.105 11.386a29.72 29.72 0 01-14.146-8.054zm28.074 8.074c2.51-2.601 4.63-6.566 6.138-11.433a45.281 45.281 0 018.114 3.359 29.622 29.622 0 01-14.252 8.074z"}))},invisible:yr,table:function(e){e.styles;var t=_r(e,["styles"]);return r.createElement("svg",Kr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},t),r.createElement("path",{d:"M88.222 11C91.986 11 95 14.181 95 18.06v63.88c0 3.879-3.014 7.06-6.778 7.06H11.778C8.014 89 5 85.819 5 81.94V18.06C5 14.181 8.014 11 11.778 11h76.444zm0 4.034H11.778C10.265 15.035 9 16.369 9 18.06v63.88c0 1.691 1.265 3.026 2.778 3.026h76.444c1.514 0 2.778-1.335 2.778-3.026V18.06c0-1.691-1.264-3.025-2.778-3.026z"}),r.createElement("path",{d:"M92.834 43.5v4H7.833v-4h85.001zM92.834 64.5v4H7.833v-4h85.001z"}),r.createElement("path",{d:"M37 25.398l.215 60.5-4 .014L33 25.413l4-.015zM66.785 25.898l.215 60.5-4 .014-.215-60.499 4-.015z"}),r.createElement("path",{d:"M93 14.405v12H8v-12h85z"}))}},to=function(e){if(eo[e]){var t=eo[e];return r.createElement(t,null)}return null};function no(e){return(no="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ro(){return(ro=Object.assign||function(e){for(var t=1;t0?l[0]:"";if(o&&this.cachedOptions)return this.cachedOptions;var f=[];a&&a!==Vo?n&&n[u]&&(f=n[u]):f=i;var p=[];if(f)for(var y=0;y0?l[0]:"";if(o&&this.cachedOptions)return this.cachedOptions;var f=[];a&&a!==Vo?n&&n[u]&&(f=n[u]):f=i;var p=[];if(f)for(var y=0;y=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Bu(e,t){if(e){if("string"==typeof e)return Hu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hu(e,t):void 0}}function Hu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&r.createElement("ul",{className:"opinion-scale-legends"},l))}}])&&Mu(t.prototype,n),o&&Mu(t,o),a}(yo);function Qu(e){return(Qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ku(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _u(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function oc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=u?i:o}}));return r.createElement("div",{className:"rating"},a)}}])&&cl(t.prototype,n),o&&cl(t,o),a}(yo);function dl(e){return(dl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bl(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ul=function(e){e.styles;var t=Gl(e,["styles"]);return r.createElement("svg",Ll({version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"640",height:"172",viewBox:"0 0 480 129"},t),r.createElement("path",{d:"M178 1.5c0 1-1.1 1.5-3.2 1.6-3.3.1-12.7 1-31.8 3-5.8.6-11.2 1.4-12 1.9-.9.4-3.6 1.1-6 1.5-2.5.4-7 1.3-10 2.1s-7.3 1.4-9.6 1.4c-2.8 0-4.4.5-4.8 1.5-.3 1-1.9 1.5-4.3 1.5-2.1 0-4.7.7-5.7 1.5-1.1.8-3.2 1.5-4.7 1.5s-3.1.4-3.4 1c-.3.5-1.6 1-2.8 1-1.2 0-3.9.9-6 2-2 1.1-4.7 2-5.9 2-1.3 0-3.2.7-4.2 1.5-1.1.8-3.2 1.5-4.7 1.5s-2.9.7-3.3 1.5c-.3.8-1.6 1.5-2.9 1.5-1.4 0-3 .7-3.7 1.5-.7.8-2 1.5-3 1.5s-2.3.7-3 1.5c-.7.8-1.9 1.5-2.7 1.5-.8 0-3.9 1.7-6.9 3.7-3.1 2.1-6.5 4.3-7.6 5C22.1 47.8 2 68.4 2 70.2c0 .9-.4 2-1 2.3-1.3.8-1.3 27.2 0 28 .6.3 1 1.7 1 2.9 0 1.3.7 2.9 1.5 3.6.8.7 1.5 1.8 1.5 2.4 0 1.8 10.3 11.6 12.2 11.6.8 0 2.1.7 2.8 1.5.7.8 1.8 1.5 2.5 1.5s1.8.7 2.5 1.5c.7.9 2.9 1.5 5.1 1.5 2.2 0 3.9.5 3.9 1.1 0 .7 7.2.9 24.2.5 26.2-.6 35.6-1.3 37.4-2.7.7-.5 4.1-1.2 7.8-1.6 3.6-.3 7.1-1.2 7.7-1.9.7-.8 3.1-1.4 5.9-1.4 3.3 0 5-.5 5.4-1.5.3-1 1.9-1.5 4.3-1.5 2.1 0 4.7-.7 5.7-1.5 1.1-.8 3.1-1.5 4.5-1.5s3.5-.7 4.5-1.5c1.1-.8 3.1-1.5 4.5-1.5s3.5-.7 4.5-1.5c1.1-.8 3.2-1.5 4.7-1.5 1.4 0 3.2-.7 3.9-1.5.7-.8 2-1.5 3-1.5s2.3-.7 3-1.5c.7-.8 2.5-1.5 4-1.5s3.3-.7 4-1.5c.7-.8 2.1-1.5 3.1-1.5s2.1-.5 2.4-1.1c.4-.5 1.7-1.5 2.8-2 1.2-.5 3.6-1.8 5.2-2.9 1.7-1.1 3.7-2.3 4.5-2.6 2.3-1.1 9-7.7 9-9 0-.6.7-1.7 1.5-2.4 1-.8 1.5-3.1 1.5-6.9-.1-6.4-3.2-12.1-8.5-15.3-4.2-2.5-4.4-2.6-9.7-3.3-2.6-.3-5-1-5.3-1.6-.4-.5-5.1-.9-10.5-.9s-10.1-.4-10.4-.8c-.5-.9 4.6-5.2 6.1-5.2.5 0 3.9-3.1 7.6-6.8 6.8-6.8 6.8-6.9 6.5-11.8l-.3-4.9-8-.3c-6.8-.3-8.7.1-12.3 2-7.7 4.1-8.4 4.5-13.3 9.4l-4.9 4.8v7.7c0 7-.2 7.8-2.4 9.3-1.4.9-5.8 1.9-9.8 2.2-5.3.5-7.9 1.2-9.5 2.7-2.6 2.4-3 6.2-.7 7.1 1.8.7 1 2.6-1.1 2.6-.8 0-3.4 1.3-5.8 3-2.5 1.6-4.9 3-5.5 3-.5 0-1.2.7-1.6 1.5-.3.8-1.4 1.5-2.5 1.5s-2.3.5-2.6 1.1c-.4.5-1.7 1.4-2.8 2-3.3 1.4-6.1 3.3-7 4.6-.4.7-1.6 1.3-2.6 1.3-2.4 0-6.4 4.4-5.9 6.7.3 1.5 1.3 1.8 5.8 1.8 4.9 0 5.5-.2 5.8-2.2.3-2.4 8-9.3 10.2-9.3.6 0 3.2-1.4 5.7-3 2.4-1.7 4.8-3 5.3-3s3.9-2 7.5-4.6c5.6-3.8 6.9-4.3 8.2-3.2.8.7 6.1 1.7 11.7 2.4 9.2 1 10.3 1 11.9-.6 1.7-1.6 1.7-2 .4-5.2-.8-2-2-3.9-2.6-4.2-2.3-1.5-.9-2.6 3.2-2.6 2.4 0 4.8-.5 5.4-1.1.7-.7 5.6-1.4 11-1.7 8.3-.4 10.1-.2 11.2 1.2.7.9 2.4 1.6 3.6 1.6 1.2 0 2.8.7 3.5 1.5.7.8 2 1.5 2.9 1.5 2.8 0 6.1 5.4 6.1 9.9 0 3.5-.6 4.5-5.2 8.6-2.9 2.6-6.2 5.1-7.3 5.6-1.1.5-2.8 1.3-3.7 1.9-1 .5-2.6 1.5-3.5 2-1 .6-2.5 1.3-3.3 1.6-.8.3-2.2 1-3 1.5-.8.5-2.5 1.3-3.7 1.8-1.1.6-2.4 1.5-2.8 2-.3.6-1.9 1.1-3.4 1.1-1.6 0-3.4.7-4.1 1.5-.7.8-2.5 1.5-4 1.5s-3.3.7-4 1.5c-.7.8-2.4 1.5-3.9 1.5-1.4 0-3.5.7-4.5 1.5-1.1.8-3.1 1.5-4.5 1.5s-3.5.7-4.5 1.5c-1.1.8-3.6 1.5-5.7 1.5-2 0-4.2.7-4.9 1.5-.7.8-2.7 1.5-4.4 1.5-1.8 0-3.7.5-4.4 1.2-.7.7-3.6 1.5-6.4 1.9-5.4.7-11.8 2.3-17.3 4-1.6.6-8.3 1.3-14.8 1.6-6.5.3-12 1-12.3 1.4-.7 1.2-7.1 1.1-7.9-.1-.3-.6-4.4-1-9.1-1-6.6 0-8.6-.3-9-1.5-.4-.8-1.7-1.5-2.9-1.5C26.6 121 8 107.4 8 103.2c0-.9-.6-2.3-1.4-3.1-1.5-1.7-2.1-6.3-1.8-14.7.2-4.2.7-5.6 3.2-8 2-1.9 3-3.9 3-5.9 0-3.7 6.4-10.5 9.8-10.5 1.3 0 2.2-.6 2.2-1.5 0-.8.7-1.5 1.5-1.5.9 0 1.5-.9 1.5-2.4 0-1.7 1.4-3.6 4.4-6 2.3-2 4.8-3.6 5.3-3.6.6 0 1.6-.7 2.3-1.5.7-.8 2-1.5 3-1.5s2.3-.7 3-1.5c.7-.8 2-1.5 3-1.5s2.3-.7 3-1.5c.7-.8 2-1.5 3-1.5s2.3-.7 3-1.5c.7-.8 2.3-1.5 3.5-1.5 1.2 0 2.8-.7 3.5-1.5.7-.8 2.6-1.5 4.2-1.5s3.6-.7 4.4-1.5c.9-.8 2.9-1.5 4.5-1.5 1.7 0 3.7-.7 4.5-1.5.9-.8 3-1.5 4.8-1.5 1.9 0 3.9-.7 4.6-1.5.7-.8 2.7-1.5 4.4-1.5 1.7 0 4-.7 5-1.5 1.1-.8 3.8-1.5 6-1.5 2.3 0 5-.7 6-1.5 1.1-.8 3.6-1.5 5.7-1.5 2 0 5.3-.7 7.2-1.5 2-.8 6.3-1.5 9.5-1.5s6.3-.5 6.9-1.1c.6-.6 5.1-1.3 10-1.6 4.8-.2 10-.9 11.5-1.5 2.8-1 22.8-2.5 46.3-3.4 9.1-.4 13.6-.2 15.2.7 2 1.1 2.6.9 4.8-1.1 5.2-4.9 4.6-5-24-5-22.9 0-26.5.2-26.5 1.5zm-9 32.1c-2.5 2.5-7 6.4-10 8.7-3 2.2-6.9 5.4-8.7 7-4 3.8-6.3 3.1-6.3-1.9 0-3.2.9-4.5 6.5-10 3.6-3.5 7.1-6.4 7.8-6.4.7 0 1.9-.6 2.5-1.2.7-.7 3.2-1.8 5.5-2.3 3.3-.9 4.5-.8 5.7.2 1.2 1.1.8 1.9-3 5.9zm-24.6 31.5c2.4 4 .9 6-2.8 3.5-1.4-.9-3.2-1.6-4-1.6-2.7 0-2.7-1.9.1-3.3 4.1-2.2 4.7-2 6.7 1.4z"}),r.createElement("path",{d:"M231.7 2.7c-.7 3.7.5 4.3 8.8 4.3 8.6.1 15.3.9 16.1 2.1.3.5 2.4.9 4.8.9 2.3 0 5.1.7 6.2 1.5 1 .8 3.6 1.5 5.7 1.5 2.4 0 4 .5 4.3 1.5.4.8 1.7 1.5 3 1.5 1.4 0 2.7.7 3 1.5.4.8 1.1 1.5 1.8 1.5 2.1 0 9.2 7.3 11.4 11.8 1.4 2.7 2.2 6.1 2.2 9.3 0 4.5-.8 7-4.1 12.9-.5.8-1.5 3-2.4 4.8-.8 1.9-4.4 6.4-8 10.1-3.6 3.7-6.5 7.2-6.5 7.8 0 .6-.7 1.6-1.5 2.3-2.7 2.3-1.8 4 2.3 4 3.1 0 4.6-.9 9-5.1 2.8-2.8 5.2-5.5 5.2-6s.7-.9 1.5-.9 1.5.7 1.5 1.5-.7 1.5-1.6 1.5c-1.1 0-1.4.8-1.2 2.7.4 3.9 4.1 4.3 7.7.9 2.1-2 3-2.3 3.9-1.4 1.5 1.5 7-1.3 12.2-6.2 3.6-3.5 3.7-3.5 11.6-3.2 19.9.7 34 1.9 36.1 3.2 1.7 1.1 2.4 1.1 3.6.1.9-.6 1.8-.8 2.1-.3.3.5 6.7 1.2 14.3 1.6 7.6.4 17.9.9 22.8 1.2 5 .2 22.1.6 38.2.9 24.7.4 29.3.2 30.3-1 .7-.8 1.9-1.5 2.6-1.5.9 0 1.4-1.1 1.4-3 0-2.6-.3-3-2.9-3-1.6 0-3.4.6-4 1.4-.6.7-2.7 1.6-4.6 1.9-5.4.9-77.5-1.1-78.8-2.1-.7-.5-9.5-1.2-19.7-1.6-10.1-.4-18.9-1.1-19.4-1.6-.6-.6-8.6-1-18.7-1-11.3 0-18-.4-18.4-1-.4-.6-1.5-.8-2.5-.5-1 .3-2.1.1-2.5-.5-.3-.5-2.2-1-4.1-1-3.5 0-3.5-.1-2.9-3.3.4-1.7 1.4-4.7 2.1-6.6 2.5-6 1.8-14.3-1.8-21.7-3.2-6.5-9.8-13.4-13-13.4-.7 0-1.8-.4-2.4-.9-1.1-1.2-12.7-5.1-14.9-5.1-.9 0-2.6-.7-3.8-1.5-1.5-.9-5.4-1.6-11-1.7-7.9-.3-9.2-.7-8.8-3.1 0-.4-.6-.7-1.4-.7-.8 0-1.4.5-1.2 1.1.1.6-.4 1.4-1 1.6-.7.3-1.3-.2-1.3-1.1 0-1.3-1.1-1.6-5.4-1.6-5.1 0-5.4.2-5.9 2.7z"}))};function Vl(e){return(Vl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ql(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kl(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function os(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.index&&i.x+i.width1?r.createElement("ul",{className:"composer-actions composer-page-actions"},r.createElement("li",{className:"composer-action-remove",onClick:this.removePageHandler})):"")))}},{key:"tabClickHandler",value:function(e){e.target.className.match(/composer-action-remove/)||this.props.onClick()}},{key:"removePageHandler",value:function(e){var t=this.props,n=t.index,r=t.removePage;return confirm("Are you sure you want to remove this page and all fields on it?")&&r(n),e.preventDefault(),!1}}])&&xp(t.prototype,n),o&&xp(t,o),a}(r.Component),Pp.propTypes={index:$().number.isRequired,isSelected:$().bool.isRequired,placeholderPageIndex:$().number,label:$().string,onClick:$().func.isRequired},Rp=Sp))||Rp)||Rp)||Rp;function Mp(e){return(Mp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lp(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return e(St(t,n,r,o))},removeColumn:function(e){function t(t,n,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(t,n,r){return e(removeColumn(t,n,r))})),addRowPlaceholder:function(t,n){return e({type:vt,rowIndex:t,targetHash:n})},addColumnPlaceholder:function(t,n,r){return e(function(e,t,n){return{type:gt,rowIndex:e,index:t,targetHash:n}}(t,n,r))},addFieldToNewRow:function(t,n,r){return e(Pt(t,n,r))},clearPlaceholders:function(){return e(qt())},checkForDuplicateHandles:function(){return e(Ct())}}}))(_p=(0,$t.G)([ln,pn],oy,(function(e){return{connectDropTarget:e.dropTarget()}}))((Wp=Yp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$p(e,t)}(a,e);var t,n,o,i=ey(a);function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,e,t)).moveColumn=n.moveColumn.bind(ny(n)),n.addColumn=n.addColumn.bind(ny(n)),n.columnToNewRow=n.columnToNewRow.bind(ny(n)),n.removeColumn=n.removeColumn.bind(ny(n)),n}return t=a,(n=[{key:"componentDidMount",value:function(){(0,this.props.checkForDuplicateHandles)()}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageIndex,o=t.layout,i=t.connectDropTarget,a=o[n]?o[n]:[],u=this.props.placeholders,c=u.type,l=u.rowIndex,s=c===fn&&-1===l;return i(r.createElement("div",{className:"builder"},r.createElement("div",{className:"tabs"},r.createElement(Jp,null)),r.createElement("div",{className:"layout"},a.map((function(t,n){return r.createElement(Cp,{key:t.id,properties:e.props.properties,index:n,columns:t.columns,moveColumn:e.moveColumn,addColumn:e.addColumn,columnToNewRow:e.columnToNewRow,addRowPlaceholder:e.props.addRowPlaceholder,addColumnPlaceholder:e.props.addColumnPlaceholder,clearPlaceholders:e.props.clearPlaceholders})})),r.createElement(cn,{active:s}))))}},{key:"addColumn",value:function(e,t,n,r){this.props.addColumn(e,t,n,r,this.props.pageIndex)}},{key:"moveColumn",value:function(e,t,n,r){this.props.moveColumn(e,t,n,r,this.props.pageIndex)}},{key:"columnToNewRow",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.props.columnToNewRow(e,t,n,this.props.pageIndex)}},{key:"removeColumn",value:function(e,t){this.props.removeColumn(e,t,this.props.pageIndex)}}])&&Xp(t.prototype,n),o&&Xp(t,o),a}(r.Component),Yp.propTypes={layout:$().array.isRequired,pageIndex:$().number.isRequired,connectDropTarget:$().func.isRequired,addColumn:$().func.isRequired,moveColumn:$().func.isRequired,columnToNewRow:$().func.isRequired,addFieldToNewRow:$().func.isRequired,removeColumn:$().func.isRequired,addRowPlaceholder:$().func.isRequired,addColumnPlaceholder:$().func.isRequired,clearPlaceholders:$().func.isRequired,checkForDuplicateHandles:$().func.isRequired,properties:$().object.isRequired,placeholders:$().object.isRequired},Yp.contextTypes={store:$().object},_p=Wp))||_p)||_p;function ay(e){return(ay="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uy(e,t){for(var n=0;n0&&r.createElement("div",{className:"errors"},i.map((function(e,t){return r.createElement("div",{key:t},e)}))),r.createElement("button",{className:"btn submit small",onClick:this.addField},cD("Save")),r.createElement("button",{className:"btn cancel small",onClick:u},cD("Cancel")))}},{key:"updateLabel",value:function(e){var t=e.target.value;this.setState({label:t,handle:this.getHandle(t,!0)})}},{key:"updateHandle",value:function(e){this.setState({handle:this.getHandle(e.target.value,!1)})}},{key:"updateType",value:function(e){this.setState({type:e.target.value}),o.findDOMNode(this.refs.label).focus()}},{key:"updateState",value:function(e){switch(e.which){case 13:this.addField();break;case 27:this.props.toggleFieldForm()}}},{key:"getHandle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,ns.OE)(e,t)}},{key:"addField",value:function(){var e=this,t=this.refs,n=t.label,r=t.handle,i=t.type,a=this.props,u=a.toggleFieldForm,c=a.fetchFields,l=this.context,s=l.csrf,f=l.notificator,p=l.createFieldUrl,y=o.findDOMNode(n).value,d=o.findDOMNode(r).value,h=o.findDOMNode(i).value,b=[];if(y||b.push(cD("Label must not be empty")),d||b.push(cD("Handle must not be empty")),h||b.push(cD("Field type must not be empty")),b.length)return this.setErrors(b),!1;var m=new FormData;return m.append(s.name,s.token),m.append("label",y),m.append("handle",d),m.append("type",h),Jy()(p,{method:"post",credentials:"same-origin",body:m}).then((function(e){return e.json()})).then((function(t){t.success?(c(),u(),f("notice",cD("Field added successfully"))):e.setErrors(t.errors)})).catch((function(t){return e.setErrors(t)})),!0}},{key:"setErrors",value:function(e){this.setState({errors:e})}},{key:"cleanErrors",value:function(){this.setState({errors:[]})}}])&&$y(t.prototype,n),i&&$y(t,i),u}(r.Component),Ky.initialState={label:"",handle:"",type:l,errors:[]},Ky.propTypes={toggleFieldForm:$().func.isRequired,fetchFields:$().func.isRequired},Ky.contextTypes={csrf:$().shape({name:$().string.isRequired,token:$().string.isRequired}).isRequired,notificator:$().func.isRequired,createFieldUrl:$().string.isRequired},Qy=_y))||Qy;function ad(e){return(ad="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ud(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){if(Kd(r())){n(Vd());var o=uD("freeform/api/notifications");return Jy()(o,{credentials:"same-origin"}).then((function(e){return e.json()})).then((function(r){n(Qd(r)),e&&t&&(n(At(e,{notificationId:t})),n(Rt("")),n(Rt(e)))}))}Promise.resolve()}}(t,n))}}}))((Zd=Md=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wd(e,t)}(u,e);var t,n,i,a=Jd(u);function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=a.call(this,e,t)).state=u.initialState,n.updateName=n.updateName.bind(Xd(n)),n.updateHandle=n.updateHandle.bind(Xd(n)),n.updateState=n.updateState.bind(Xd(n)),n.getHandle=n.getHandle.bind(Xd(n)),n.addNotification=n.addNotification.bind(Xd(n)),n.setErrors=n.setErrors.bind(Xd(n)),n.cleanErrors=n.cleanErrors.bind(Xd(n)),n}return t=u,(n=[{key:"componentDidMount",value:function(){o.findDOMNode(this.refs.name).focus()}},{key:"render",value:function(){var e=this.state,t=e.name,n=e.handle,o=e.errors,i=this.props.toggleForm,a=this.context.isDbEmailTemplateStorage;return r.createElement("div",{className:"composer-new-field-form"},r.createElement("div",{className:"field"},r.createElement("div",{className:"heading"},r.createElement("label",null,cD("Template Name"))),r.createElement("div",{className:"input"},r.createElement("input",{type:"text",name:"name",ref:"name",className:"text fullwidth",value:t,onChange:this.updateName,onKeyUp:this.updateState}))),a&&r.createElement("div",{className:"field"},r.createElement("div",{className:"heading"},r.createElement("label",null,cD("Handle"))),r.createElement("div",{className:"input"},r.createElement("input",{type:"text",name:"handle",ref:"handle",className:"text fullwidth code",value:n,onChange:this.updateHandle,onKeyUp:this.updateState}))),o.length>0&&r.createElement("div",{className:"errors"},o.map((function(e,t){return r.createElement("div",{key:t},e)}))),r.createElement("button",{className:"btn submit small",onClick:this.addNotification},cD("Save")),r.createElement("button",{className:"btn cancel small",onClick:i},cD("Cancel")))}},{key:"updateName",value:function(e){var t=e.target.value;this.setState({name:t,handle:this.getHandle(t)})}},{key:"updateHandle",value:function(e){this.setState({handle:this.getHandle(e.target.value)})}},{key:"updateState",value:function(e){switch(e.which){case 13:this.addNotification();break;case 27:this.props.toggleForm()}}},{key:"getHandle",value:function(e){return(0,ns.OE)(e)}},{key:"addNotification",value:function(){var e=this,t=this.refs,n=t.name,r=t.handle,i=this.props,a=i.toggleForm,u=i.fetchNotifications,c=this.context,l=c.csrf,s=c.notificator,f=c.createNotificationUrl,p=c.hash,y=c.isDbEmailTemplateStorage,d=o.findDOMNode(n).value,h=y?o.findDOMNode(r).value:null,b=[];if(d||b.push(cD("Name must not be empty")),!h&&y&&b.push(cD("Handle must not be empty")),b.length)return this.setErrors(b),!1;var m=new FormData;return m.append(l.name,l.token),m.append("name",d),m.append("handle",h),Jy()(f,{method:"post",credentials:"same-origin",body:m}).then((function(e){return e.json()})).then((function(t){if(t.success){var n=t.id;/^[0-9]+$/.test(n)&&(n=parseInt(n)),u(p,n),a(),s("notice",cD("Notification added successfully"))}else e.setErrors(t.errors)})).catch((function(t){return e.setErrors(t)})),!0}},{key:"setErrors",value:function(e){this.setState({errors:e})}},{key:"cleanErrors",value:function(){this.setState({errors:[]})}}])&&Yd(t.prototype,n),i&&Yd(t,i),u}(r.Component),Md.initialState={name:"",handle:"",errors:[]},Md.propTypes={toggleForm:$().func.isRequired,fetchNotifications:$().func.isRequired},Md.contextTypes={csrf:$().shape({name:$().string.isRequired,token:$().string.isRequired}).isRequired,notificator:$().func.isRequired,createNotificationUrl:$().string.isRequired,isDbEmailTemplateStorage:$().bool.isRequired,hash:$().string.isRequired},Nd=Zd))||Nd;function th(e){return(th="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nh(e,t){for(var n=0;na&&l>c||(e.reorderValueSet(r.hash,i,a),t.getItem().index=a)}}(e,t,n)}},Gb=(0,$t.G)([yn],Lb,(function(e,t){return{connectDropTarget:e.dropTarget(),dragItemType:t.getItemType()}}))(Sb=(0,mn.E)(yn,Zb,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}}))((Cb=Ab=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qb(e,t)}(u,e);var t,n,i,a=Tb(u);function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=a.call(this,e,t)).updateValues=n.updateValues.bind(Fb(n)),n.updateIsChecked=n.updateIsChecked.bind(Fb(n)),n.cleanUpNodes=n.cleanUpNodes.bind(Fb(n)),n.removeValueSetHandler=n.removeValueSetHandler.bind(Fb(n)),n}return t=u,(n=[{key:"render",value:function(){var e=this.props,t=e.connectDropTarget,n=e.connectDragSource,o=e.connectDragPreview,i=this.props,a=i.label,u=i.value,c=i.isChecked,l=i.showCustomValues;return i.isDragging,t(o(r.createElement("tr",null,r.createElement("td",null,r.createElement("input",{type:"text",value:a,ref:"label","data-type":"label",onBlur:this.cleanUpNodes,onChange:this.updateValues})),l&&r.createElement("td",null,r.createElement("input",{type:"text",value:u,"data-type":"value",ref:"value",className:"code",onBlur:this.cleanUpNodes,onChange:this.updateValues})),r.createElement("td",{className:"composer-option-row-checkbox"},r.createElement("input",{type:"checkbox",checked:c,onChange:this.updateIsChecked})),r.createElement("td",{className:"action"},n(r.createElement("a",{className:"move",title:cD("Reorder")}))),r.createElement("td",{className:"action"},r.createElement("a",{className:"delete",title:cD("Remove"),onClick:this.removeValueSetHandler})))))}},{key:"updateValues",value:function(e){var t=this.props,n=t.hash,r=t.index,i=o.findDOMNode(this.refs.label).value,a=i,u=o.findDOMNode(this.refs.value);u&&"value"===e.target.dataset.type&&(a=u.value),this.props.updateValueSet(n,r,a,i)}},{key:"updateIsChecked",value:function(e){var t=this.props,n=t.hash,r=t.index,o=e.target.checked;this.props.updateIsChecked(n,r,o)}},{key:"cleanUpNodes",value:function(){var e=this.props.hash;this.props.cleanUp(e)}},{key:"removeValueSetHandler",value:function(){var e=this.props,t=e.hash,n=e.index;(0,e.removeValueSet)(t,n)}}])&&Ib(t.prototype,n),i&&Ib(t,i),u}(r.Component),Ab.propTypes={hash:$().string.isRequired,label:$().node.isRequired,value:$().node.isRequired,index:$().number.isRequired,isChecked:$().bool,showCustomValues:$().bool,updateValueSet:$().func.isRequired,updateIsChecked:$().func.isRequired,addNewValueSet:$().func.isRequired,cleanUp:$().func.isRequired,connectDropTarget:$().func.isRequired,connectDragSource:$().func.isRequired,connectDragPreview:$().func.isRequired,reorderValueSet:$().func.isRequired,removeValueSet:$().func.isRequired},Sb=Cb))||Sb)||Sb;function Ub(e){return(Ub="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vb(e,t){for(var n=0;n input").focus()}),1)}},{key:"toggleCustomValues",value:function(e){(0,this.props.customValuesHandler)(this.context.hash,e.target.checked)}},{key:"renderRows",value:function(){var e=this.props,t=e.options,n=e.values,o=this.props.showCustomValues;void 0===o&&(o=!0);var i=this.context.hash,a=[];if(!t)return a;for(var u=0;u=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Sm(e,t){if(e){if("string"==typeof e)return Am(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Am(e,t):void 0}}function Am(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,h=this.getConfigProperty("siteId",c);d&&(p=p.filter((function(e){return!e.sites||-1!==e.sites.indexOf(h)})));var b="title";return o===Wo?b="filename":o===Yo&&(b="username"),r.createElement("div",null,y,d&&r.createElement(lh.Z,{label:"Site",name:"siteId",value:h,options:u.map((function(e){return{key:e.id,value:e.name}})),isNumeric:!0,onChangeHandler:this.onUpdateConfig}),r.createElement(lh.Z,{label:"Target",name:"target",value:n,options:p,onChangeHandler:this.onChangeTarget}),r.createElement(lh.Z,{label:"Option Label",name:"labelField",value:this.getConfigProperty("labelField",b),options:a.getSourceSpecificValueFieldChoices(o,s),onChangeHandler:this.onUpdateConfig}),r.createElement(lh.Z,{label:"Option Value",name:"valueField",value:this.getConfigProperty("valueField","id"),options:a.getSourceSpecificValueFieldChoices(o,s),onChangeHandler:this.onUpdateConfig}),r.createElement(lh.Z,{label:"Order By",name:"orderBy",value:this.getConfigProperty("orderBy","id"),options:a.getSourceSpecificOrderFields(o),onChangeHandler:this.onUpdateConfig}),r.createElement(lh.Z,{label:"Sort",name:"sort",value:this.getConfigProperty("sort","asc"),options:[{key:"asc",value:cD("Ascending")},{key:"desc",value:cD("Descending")}],onChangeHandler:this.onUpdateConfig}),this.getGeneratedOptions())}},{key:"getCustomValuesComponent",value:function(){var e=this.props,t=e.values,n=e.value,o=e.customOptions,i=e.updateHandler,a=e.showCustomValues;return r.createElement(jb,{label:"Options",instructions:"Options for this field",content:r.createElement($b,{value:n,values:t,options:o,triggerCustomValues:i,showCustomValues:a})})}},{key:"getPredefinedValuesComponent",value:function(){var e=this.props,t=e.target,n=void 0===t?null:t,o=e.showEmptyOptionInput,i=void 0!==o&&o,a=null;switch(n){case ai:case ui:case ri:case oi:case ii:case ci:case li:case si:a=r.createElement("div",null,r.createElement(lh.Z,{label:"Option Label",name:"listType",options:[{key:Go,value:cD("Abbreviated")},{key:Lo,value:cD("Full")}],value:this.getConfigProperty("listType",Lo),onChangeHandler:this.onUpdateConfig}),r.createElement(lh.Z,{label:"Option Value",name:"valueType",options:[{key:Go,value:cD("Abbreviated")},{key:Lo,value:cD("Full")}],value:this.getConfigProperty("valueType",Go),onChangeHandler:this.onUpdateConfig}));break;case ti:a=r.createElement("div",null,r.createElement(Em.Z,{label:"Range Start",name:"start",isNumeric:!0,value:this.getConfigProperty("start",0),onChangeHandler:this.onUpdateConfig}),r.createElement(Em.Z,{label:"Range End",name:"end",isNumeric:!0,value:this.getConfigProperty("end",10),onChangeHandler:this.onUpdateConfig}));break;case ni:a=r.createElement("div",null,r.createElement(Em.Z,{label:"Range Start",name:"start",isNumeric:!0,value:this.getConfigProperty("start",100),onChangeHandler:this.onUpdateConfig}),r.createElement(Em.Z,{label:"Range End",name:"end",isNumeric:!0,value:this.getConfigProperty("end",0),onChangeHandler:this.onUpdateConfig}),r.createElement(lh.Z,{label:"Sort Direction",name:"sort",options:[{key:"asc",value:cD("Ascending")},{key:Uo,value:cD("Descending")}],value:this.getConfigProperty("sort","desc"),onChangeHandler:this.onUpdateConfig}));break;case ei:a=r.createElement("div",null,r.createElement(lh.Z,{label:"Option Label",name:"listType",options:[{key:Lo,value:cD("Full")},{key:Go,value:cD("Abbreviated")},{key:Mo,value:cD("Single number")},{key:Zo,value:cD("2-digit number")}],value:this.getConfigProperty("listType",Lo),onChangeHandler:this.onUpdateConfig}),r.createElement(lh.Z,{label:"Option Value",name:"valueType",options:[{key:Lo,value:cD("Full")},{key:Go,value:cD("Abbreviated")},{key:Mo,value:cD("Single number")},{key:Zo,value:cD("2-digit number")}],value:this.getConfigProperty("valueType",Lo),onChangeHandler:this.onUpdateConfig}));break;case Xo:a=r.createElement("div",null,r.createElement(lh.Z,{label:"Option Label",name:"listType",options:[{key:Mo,value:cD("Single number")},{key:Zo,value:cD("2-digit number")}],value:this.getConfigProperty("listType",Mo),onChangeHandler:this.onUpdateConfig}),r.createElement(lh.Z,{label:"Option Value",name:"valueType",options:[{key:Mo,value:cD("Single number")},{key:Zo,value:cD("2-digit number")}],value:this.getConfigProperty("valueType",Mo),onChangeHandler:this.onUpdateConfig}));break;case $o:a=r.createElement("div",null,r.createElement(lh.Z,{label:"Option Label",name:"listType",options:[{key:Lo,value:cD("Full")},{key:Go,value:cD("Abbreviated")},{key:Mo,value:cD("Single number")}],value:this.getConfigProperty("listType",Lo),onChangeHandler:this.onUpdateConfig}),r.createElement(lh.Z,{label:"Option Value",name:"valueType",options:[{key:Lo,value:cD("Full")},{key:Go,value:cD("Abbreviated")},{key:Mo,value:cD("Single number")}],value:this.getConfigProperty("valueType",Lo),onChangeHandler:this.onUpdateConfig}))}var u=null;return i&&(u=r.createElement(Em.Z,{label:"Empty Option Label (optional)",instructions:"To show an empty option at the beginning of the Select field options, enter a value here. Leave blank if you don't want a first option.",name:"emptyOption",value:this.state.emptyOption,onChangeHandler:this.onUpdateEmptyOption})),r.createElement("div",null,u,r.createElement(lh.Z,{label:"Target",name:"target",value:n,options:[{key:ai,value:cD("States")},{key:ui,value:cD("States & Territories")},{key:ri,value:cD("Provinces - English")},{key:oi,value:cD("Provinces - French")},{key:ii,value:cD("Provinces - Bilingual")},{key:ci,value:cD("Countries")},{key:li,value:cD("Languages")},{key:si,value:cD("Currencies")},{key:ti,value:cD("Numbers")},{key:ni,value:cD("Years")},{key:ei,value:cD("Months")},{key:Xo,value:cD("Days")},{key:$o,value:cD("Days of Week")}],onChangeHandler:this.onChangePredefinedTarget}),a,this.getGeneratedOptions())}},{key:"getGeneratedOptions",value:function(){var e=this.props,t=e.values,n=e.value,o=e.generatedOptions,i=e.isFetchingOptions,a=this.context.hash;if(i&&this.lastOptions)return this.lastOptions;var u=[];if(o&&o[a]){var c,l=Pm(o[a]);try{for(l.s();!(c=l.n()).done;){var s=c.value;u.push({value:s.value,label:s.label})}}catch(e){l.e(e)}finally{l.f()}}var f=r.createElement(jb,{label:"Options",instructions:"Options for this field",content:r.createElement(wm,{value:n,values:t,options:u})});return this.lastOptions=f,f}},{key:"getConfigProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.props.configuration,r=void 0===n?{}:n;return r&&r.hasOwnProperty(e)?r[e]:t}},{key:"onChangeSource",value:function(e){var t=this.context,n=t.updateField,r=t.hash,o=this.props.fetchGeneratedOptions,i=e.target.value,a=this.state.emptyOption,u={};switch(i){case Qo:case Ko:case _o:case Yo:case Wo:case Jo:u={source:i,target:null,configuration:{emptyOption:a}};break;case zo:u={source:i,target:ai,configuration:{valueType:Go,listType:Lo,emptyOption:a}};break;default:u={source:Vo,target:null,configuration:null}}n(km({value:"",values:[]},u)),i!==Vo&&o(r,u.source,u.target,u.configuration)}},{key:"onChangeTarget",value:function(e){var t=this.context.hash,n=this.props,r=n.fetchGeneratedOptions,o=n.configuration,i=n.source,a=n.onChangeHandler,u=e.target.value;a(e),r(t,i,u,o)}},{key:"onChangePredefinedTarget",value:function(e){var t=this.context,n=t.updateField,r=t.hash,o=this.props,i=o.source,a=o.fetchGeneratedOptions,u=e.target.value,c={};switch(u){case ai:case ui:case ri:case oi:case ii:case ci:case li:case si:c={valueType:Go,listType:Lo};break;case ti:c={start:0,end:10};break;case ni:c={sort:Uo,start:100,end:0};break;case ei:c={valueType:Lo,listType:Lo};break;case Xo:c={valueType:Mo,listType:Mo};break;case $o:c={valueType:Lo,listType:Lo}}n({value:"",values:[],source:i,target:u,configuration:c}),a(r,i,u,c)}},{key:"onUpdateConfig",value:function(e){var t=this.context,n=t.updateField,r=t.hash,o=this.props,i=o.configuration,a=o.fetchGeneratedOptions,u=o.source,c=o.target,l=e.target,s=l.name,f=l.value,p=!1;e.target.dataset.isNumeric&&"false"!==e.target.dataset.isNumeric&&(p=!0);var y=f;if(p){var d=/^-/.test(y);y=(y=(y+"").replace(/[^0-9\.]/,""))?parseInt(y):0,d&&y>=0&&(y*=-1)}var h=i?km({},i):{};h[s]=y,n({value:"",values:[],configuration:h}),a(r,u,c,h)}},{key:"onUpdateEmptyOption",value:function(e){var t=e.target.value;this.setState({emptyOption:t}),this.updateEmptyOptionTrigger&&clearTimeout(this.updateEmptyOptionTrigger),this.updateEmptyOptionTrigger=setTimeout(this.persistEmptyOption,500)}},{key:"persistEmptyOption",value:function(){var e=this.context,t=e.hash,n=e.updateField,r=this.props,o=r.configuration,i=r.fetchGeneratedOptions,a=r.source,u=r.target,c=this.state.emptyOption,l=km(km({},o),{},{emptyOption:c});n({configuration:l}),i(t,a,u,l)}}])&&Im(t.prototype,n),o&&Im(t,o),a}(sh.Z),gm.propTypes=km(km({},sh.Z.propTypes),{},{label:$().string,source:$().string,target:$().node,showEmptyOptionInput:$().bool,configuration:$().shape({labelField:$().string,valueField:$().string,start:$().number,end:$().number,listType:$().string,valueType:$().string,emptyOption:$().string}),showCustomValues:$().bool,customOptions:$().arrayOf($().shape({value:$().any.isRequired,label:$().any.isRequired})).isRequired,sourceTargets:$().object,customFields:$().array,fetchGeneratedOptions:$().func.isRequired,isFetchingOptions:$().bool.isRequired,generatedOptions:$().object,sites:$().array.isRequired,currentSiteId:$().number.isRequired,availableSources:$().array}),gm.contextTypes={updateField:$().func.isRequired,hash:$().string,isCommerceEnabled:$().bool},gm.sourceOptions=[{key:Vo,value:cD("Custom Options")},{key:Qo,value:cD("Entries")},{key:Ko,value:cD("Categories")},{key:_o,value:cD("Tags")},{key:Yo,value:cD("Users")},{key:Wo,value:cD("Assets")},{key:Jo,value:cD("Commerce Products")},{key:zo,value:cD("Predefined Options")}],vm=Om))||vm;function Mm(e){return(Mm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lm(e){for(var t=1;ti&&c>u||(e.swapRow(r,i),t.getItem().rowIndex=i)}}(e,t,n)}},sv=(0,$t.G)([dn],lv,(function(e,t){return{connectDropTarget:e.dropTarget(),dragItemType:t.getItemType()}}))(Wm=(0,mn.E)(dn,cv,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}}))((zm=Jm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tv(e,t)}(a,e);var t,n,o,i=nv(a);function a(){return $m(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.rowIndex,n=e.columns,o=e.isSortable,i=void 0===o||o,a=e.isRemovable,u=void 0===a||a,c=e.values,l=e.editColumn,s=e.deleteRow,f=e.connectDragSource,p=e.connectDragPreview;return(0,e.connectDropTarget)(p(r.createElement("tr",null,n.map((function(e,n){var o=e.handle,i=e.label,a=e.type,u=e.options;return r.createElement(Fs,{rowIndex:t,columnIndex:n,value:c[o]?c[o]:"",options:u,handle:o,label:i,type:a,edit:l,key:n})})),i&&r.createElement("td",{className:"action"},f(r.createElement("a",{className:"move",title:cD("Reorder")}))),u&&r.createElement("td",{className:"action"},r.createElement("a",{className:"delete",title:cD("Remove"),onClick:function(){return s(t)}})))))}}])&&ev(t.prototype,n),o&&ev(t,o),a}(r.Component),Jm.propTypes={rowIndex:$().number.isRequired,columns:$().array.isRequired,isSortable:$().bool,isRemovable:$().bool,values:$().object,deleteRow:$().func,swapRow:$().func,editColumn:$().func,connectDropTarget:$().func,connectDragSource:$().func,connectDragPreview:$().func},Wm=zm))||Wm)||Wm;function fv(e){return(fv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||dv(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yv(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=dv(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function dv(e,t){if(e){if("string"==typeof e)return hv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hv(e,t):void 0}}function hv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&r.createElement(Gd.Tooltip,{title:cD("CRM Integrations"),position:"bottom-start",theme:"light",arrow:!0},r.createElement("a",{onClick:e.editIntegrations,className:"crm-settings"+(e.hash===N?" active":"")})),e.isPro&&e.paymentGatewayCount>0&&r.createElement(Gd.Tooltip,{title:cD("Payments"),position:"bottom-start",theme:"light",arrow:!0},r.createElement("a",{onClick:e.editPayments,className:"payment-settings"+(e.hash===G?" active":"")})))};eg.propTypes={editForm:$().func.isRequired,editValidation:$().func.isRequired,editIntegrations:$().func.isRequired,editAdminNotifications:$().func.isRequired,editPayments:$().func.isRequired,editConnections:$().func.isRequired,editRules:$().func.isRequired,hash:$().string.isRequired,crmIntegrationCount:$().number.isRequired,paymentGatewayCount:$().number.isRequired,isRulesEnabled:$().bool.isRequired,isPro:$().bool.isRequired};var tg,ng,rg,og=eg;function ig(e){return(ig="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ag(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ug(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(u);try{for(p.s();!(e=p.n()).done;){var y=e.value;-1!==l.indexOf(y.id)&&f.push(y)}}catch(e){p.e(e)}finally{p.f()}var d=[];return f.map((function(e,n){d.push(r.createElement(Zg,{key:n,handle:e.handle,label:e.name,required:!1,formFields:s,mappedFormField:c&&c[e.handle]?c[e.handle]:"",onChangeHandler:t.updateMappings}))})),d}}])&&Kg(t.prototype,n),o&&Kg(t,o),a}(r.Component),Ng.propTypes={externalFieldColumnLabel:$().string,internalFieldColumnLabel:$().string,specificFields:$().arrayOf($().shape({name:$().string.isRequired,handle:$().string.isRequired}).isRequired),fields:$().arrayOf($().shape({id:$().number.isRequired,name:$().string.isRequired,handle:$().string.isRequired,type:$().string.isRequired}).isRequired).isRequired,fieldLayoutFieldIds:$().array,mapping:$().object,onChangeHandler:$().func.isRequired},Hg=Mg))||Hg;function Xg(e){return(Xg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $g(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return eO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eO(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function eO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nUpgrade to Pro to get access to popular API integrations.',{url:uD(n)})}})};cw.propTypes={link:$().string};var lw,sw,fw,pw=cw;function yw(e){return(yw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hw(e,t){for(var n=0;n1&&(i=[i[0]]),o({showAsRadio:n===a.RENDER_AS_RADIOS,showAsCheckboxes:n===a.RENDER_AS_CHECKBOXES,values:i})},e}return t=a,(n=[{key:"render",value:function(){var e=this.context.properties,t=e.required,n=e.label,o=e.handle,i=e.values,u=e.options,c=e.oneLine,l=e.showAsRadio,s=e.showAsCheckboxes,f=e.notificationId,p=e.instructions,y=e.source,d=e.target,h=e.configuration,b=void 0===h?{}:h,m=this.context.canManageNotifications,v=this.props.notifications,g=a.RENDER_AS_SELECT;return l?g=a.RENDER_AS_RADIOS:s&&(g=a.RENDER_AS_CHECKBOXES),r.createElement("div",null,r.createElement(Em.Z,{label:"Handle",instructions:"How you’ll refer to this field in the templates.",name:"handle",value:o,onChangeHandler:this.updateHandle}),r.createElement(Em.Z,{label:"Label",instructions:"Field label used to describe the field.",name:"label",value:n,onChangeHandler:this.update}),r.createElement(tb,{label:"This field is required?",name:"required",checked:t,onChangeHandler:this.update}),r.createElement("hr",null),r.createElement("h4",null,cD("Configuration")),r.createElement(lh.Z,{label:"Render as",value:g,options:[{key:a.RENDER_AS_SELECT,value:cD("Select")},{key:a.RENDER_AS_RADIOS,value:cD("Radios")},{key:a.RENDER_AS_CHECKBOXES,value:cD("Checkboxes")}],onChangeHandler:this.handleRenderSwap}),g!==a.RENDER_AS_SELECT&&r.createElement(tb,{label:"Show all options in a single line?",name:"oneLine",checked:c,onChangeHandler:this.update}),r.createElement(lh.Z,{label:"Email Template",instructions:"The notification template used to send an email to the email value entered into this field (optional). Leave empty to just store the email address without sending anything.",name:"notificationId",value:f,couldBeNumeric:!0,onChangeHandler:this.update,emptyOption:"Select a template...",optionGroups:py.getNotificationList(v)},m&&r.createElement(ch,null)),r.createElement("hr",null),r.createElement(wh,{label:"Instructions",instructions:"Field specific user instructions.",name:"instructions",value:p,onChangeHandler:this.update}),r.createElement("hr",null),r.createElement(Nm,{showEmptyOptionInput:!0,values:i,customOptions:u,showCustomValues:!0,source:y,target:d,configuration:b,onChangeHandler:this.update,availableSources:[Vo,Qo,Ko,_o,Yo,Wo,Jo]}),r.createElement(Iv,null))}}])&&Uw(t.prototype,n),o&&Uw(t,o),a}(Ud.Z),Fw.propTypes={notifications:$().oneOfType([$().array,$().object]).isRequired},Fw.contextTypes=Zw(Zw({},Ud.Z.contextTypes),{},{properties:$().shape({type:$().string.isRequired,handle:$().string.isRequired,label:$().string.isRequired,required:$().bool,value:$().node,options:$().array,notificationId:$().oneOfType([$().string,$().number]),oneLine:$().bool,showAsRadio:$().bool,showAsCheckboxes:$().bool,source:$().string,target:$().node,configuration:$().object}).isRequired,canManageNotifications:$().bool.isRequired}),Fw.RENDER_AS_SELECT="select",Fw.RENDER_AS_RADIOS="radios",Fw.RENDER_AS_CHECKBOXES="checkboxes",Dw=Bw))||Dw;function Xw(e){return(Xw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eE(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){if(CE(r())){n(SE());var o=uD("freeform/api/form-templates");return Jy()(o,{credentials:"same-origin"}).then((function(e){return e.json()})).then((function(r){n(AE(r)),e&&t&&(n(At(e,{formTemplate:t})),n(Rt("")),n(Rt(e)))}))}Promise.resolve()}}(t,n))}}}))((RE=jE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&IE(e,t)}(u,e);var t,n,i,a=qE(u);function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=a.call(this,e,t)).state=u.initialState,n.updateName=n.updateName.bind(DE(n)),n.updateFileName=n.updateFileName.bind(DE(n)),n.updateState=n.updateState.bind(DE(n)),n.getFileName=n.getFileName.bind(DE(n)),n.addTemplate=n.addTemplate.bind(DE(n)),n.setErrors=n.setErrors.bind(DE(n)),n.cleanErrors=n.cleanErrors.bind(DE(n)),n}return t=u,(n=[{key:"componentDidMount",value:function(){o.findDOMNode(this.refs.name).focus()}},{key:"render",value:function(){var e=this.state,t=e.name,n=e.fileName,o=e.errors,i=this.props.toggleForm;return r.createElement("div",{className:"composer-new-field-form"},r.createElement("div",{className:"field"},r.createElement("div",{className:"heading"},r.createElement("label",null,cD("Template Name"))),r.createElement("div",{className:"input"},r.createElement("input",{type:"text",name:"name",ref:"name",className:"text fullwidth",value:t,onChange:this.updateName,onKeyUp:this.updateState}))),r.createElement("div",{className:"field"},r.createElement("div",{className:"heading"},r.createElement("label",null,cD("File Name"))),r.createElement("div",{className:"input"},r.createElement("input",{type:"text",name:"fileName",ref:"fileName",className:"text fullwidth code",readOnly:!0,disabled:!0,value:n}))),o.length>0&&r.createElement("div",{className:"errors"},o.map((function(e,t){return r.createElement("div",{key:t},e)}))),r.createElement("button",{className:"btn submit small",onClick:this.addTemplate},cD("Save")),r.createElement("button",{className:"btn cancel small",onClick:i},cD("Cancel")))}},{key:"updateName",value:function(e){var t=e.target.value;this.setState({name:t,fileName:this.getFileName(t)})}},{key:"updateFileName",value:function(e){this.setState({handle:this.getFileName(e.target.value)})}},{key:"updateState",value:function(e){switch(e.which){case 13:this.addTemplate();break;case 27:this.props.toggleForm()}}},{key:"getFileName",value:function(e){return(0,qn.underscored)(e)+".html"}},{key:"addTemplate",value:function(){var e=this,t=this.refs.name,n=this.props,r=n.toggleForm,i=n.fetchTemplates,a=this.context,u=a.csrf,c=a.notificator,l=a.createTemplateUrl,s=o.findDOMNode(t).value,f=[];if(s||f.push("Name must not be empty"),f.length)return this.setErrors(f),!1;var p=new FormData;return p.append(u.name,u.token),p.append("templateName",s),Jy()(l,{method:"post",credentials:"same-origin",body:p}).then((function(e){return e.json()})).then((function(t){t.templateName&&0===t.errors.length?(i("form",t.templateName),r(),c("notice","Template added successfully")):e.setErrors(t.errors)})).catch((function(t){return e.setErrors(t)})),!0}},{key:"setErrors",value:function(e){this.setState({errors:e})}},{key:"cleanErrors",value:function(){this.setState({errors:[]})}}])&&xE(t.prototype,n),i&&xE(t,i),u}(r.Component),jE.initialState={name:"",fileName:"",errors:[]},jE.propTypes={toggleForm:$().func.isRequired,fetchTemplates:$().func.isRequired},jE.contextTypes={csrf:$().shape({name:$().string.isRequired,token:$().string.isRequired}).isRequired,notificator:$().func.isRequired,createTemplateUrl:$().string.isRequired},EE=RE))||EE;function HE(e){return(HE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function NE(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n"+r+"",document.title=r+" - Craft",t||n({handle:(0,ns.OE)(r,!0)}),this.update(e)}},{key:"getCheckboxFields",value:function(){var e=this.props.composerProperties,t=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];h===r.type&&t.push({key:n,value:r.label})}return t}}])&&ej(t.prototype,n),o&&ej(t,o),a}(Ud.Z),QE.title="Form Settings",QE.propTypes={formStatuses:$().array.isRequired,solspaceTemplates:$().array.isRequired,templates:$().array.isRequired,composerProperties:$().object.isRequired,currentFormHandle:$().string},QE.contextTypes=JE(JE({},Ud.Z.contextTypes),{},{properties:$().shape({name:$().string.isRequired,handle:$().string.isRequired,submissionTitleFormat:$().string.isRequired,description:$().string.isRequired,storeData:$().bool,ipCollectingEnabled:$().bool,defaultStatus:$().number.isRequired,returnUrl:$().string.isRequired,extraPostUrl:$().string,extraPostTriggerPhrase:$().string,formTemplate:$().string,optInDataStorageTargetHash:$().string,ajaxEnabled:$().bool,recaptchaEnabled:$().bool,gtmEnabled:$().bool,gtmId:$().string,gtmEventName:$().string}).isRequired,canManageSettings:$().bool.isRequired,isDefaultTemplates:$().bool.isRequired,isPro:$().bool.isRequired,isInvisibleRecaptchaSetUp:$().bool.isRequired}),VE=KE))||VE;function uj(e){return(uj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lj(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}mj.contextTypes=lj(lj({},Ud.Z.contextTypes),{},{properties:$().shape({id:$().number.isRequired,type:$().string.isRequired,handle:$().string.isRequired,value:$().string,required:$().bool}).isRequired});var Oj=function(e){var t=e.styles,n=void 0===t?{}:t,o=gj(e,["styles"]);return r.createElement("svg",vj({"aria-hidden":"true","data-prefix":"fas","data-icon":"compress",className:(n["svg-inline--fa"]||"svg-inline--fa")+" "+(n["fa-compress"]||"fa-compress")+" "+(n["fa-w-14"]||"fa-w-14"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},o),r.createElement("path",{fill:"currentColor",d:"M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"}))};function wj(){return(wj=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jj=function(e){var t=e.styles,n=void 0===t?{}:t,o=Ej(e,["styles"]);return r.createElement("svg",wj({"aria-hidden":"true","data-prefix":"fas","data-icon":"expand",className:(n["svg-inline--fa"]||"svg-inline--fa")+" "+(n["fa-expand"]||"fa-expand")+" "+(n["fa-w-14"]||"fa-w-14"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},o),r.createElement("path",{fill:"currentColor",d:"M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"}))},Rj=(n(53239),n(74981));n(19516),n(56667),n(42692),n(82679);function Pj(e){return(Pj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Aj(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],u=e.props.mappedAttributeName,c=void 0===u?"Field":u;return r.createElement("div",{className:"composer-option-table field",key:n,style:{marginBottom:10}},a&&r.createElement("div",{className:"composer-property-heading heading"},r.createElement("label",null,o)),r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,r.createElement("th",null,cD(c)),r.createElement("th",null,cD("FF Field")))),r.createElement("tbody",null,e.renderRows(i))))},e.renderRows=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=e.props,o=n.mapping,i=n.formFields,a=[];return t.map((function(t,n){a.push(r.createElement(_j,{key:n,handle:t.handle,label:t.label,required:t.required,placeholder:t.placeholder,formFields:i,extraOptions:e.getExtraOptionGroups(),mappedFormField:o&&o[t.handle]?o[t.handle]:"",onChangeHandler:e.updateMappings}))})),a},e.updateMappings=function(){for(var t=e.context.updateField,n=e.refs.items.querySelectorAll("select"),r=e.props.name||"mapping",o={},i=0;i1));return r.createElement("div",{ref:"items"},n)}}])&&zj(t.prototype,n),o&&zj(t,o),a}(r.Component);function sR(e){return(sR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pR(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function GR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function jP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0},n.getPaymentFieldList=function(){var e=n.props.paymentType,t=[];return e===fS?t.push(mS):(t.push(yS),t.push(dS),e===pS?t.push(hS):t.push(bS)),t},n.getPlans=function(){return n.props.integration.plans.map((function(e){return{key:e.resourceId,value:e.name}}))},n.handePlanCreated=function(e){(0,n.context.updateField)({plan:e})},n.getPaymentFields=function(){return n.getPaymentFieldList().map((function(e){return ES[e]}))},n.handlePlanHelperToggle=function(){var e=n.state.isPlanHelperOpen;n.setState({isPlanHelperOpen:!e})},n.state={isPlanHelperOpen:!1},n}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.formPaymentFields,n=e.paymentFieldMapping,o=e.amount,i=e.currency,a=e.interval,u=e.description,c=e.plan,l=e.fetchPlans,s=e.isFetching,f=this.getPlans(),p=this.getPaymentFields(),y=this.state.isPlanHelperOpen;return r.createElement("div",null,r.createElement(jb,{label:"Payment Field Mapping",instructions:"Payment fields to your Freeform fields.",content:r.createElement(lR,{name:"paymentFieldMapping",formFields:t,fields:p,mapping:n,mappedAttributeLabel:"Payment Field"})}),this.checkFixedFieldVisibility(yS)&&r.createElement(HS,{label:"Fixed Amount",instructions:"Fixed payment amount.",name:"amount",value:o,onChangeHandler:this.update}),this.checkFixedFieldVisibility(dS)&&r.createElement(lh.Z,{label:"Fixed Currency",instructions:"Payment currency.",name:"currency",value:i,options:SS,onChangeHandler:this.update}),this.checkFixedFieldVisibility(bS)&&r.createElement(Em.Z,{label:"Payment Description",instructions:"Enter a custom payment description",name:"description",value:u,placeholder:"Payment for FF Submission #{id}",onChangeHandler:this.update}),this.checkFixedFieldVisibility(hS)&&r.createElement(lh.Z,{label:"Fixed Interval",instructions:"The frequency with which a subscription should be billed.",name:"interval",value:a,options:vS,onChangeHandler:this.update}),this.checkFixedFieldVisibility(mS)&&r.createElement(lh.Z,{label:"Fixed Subscription Plan",instructions:"Select one of existing subscription plans",emptyOption:"Choose a subscription plan...",name:"plan",value:c,options:f,onChangeHandler:this.update}),this.checkHelperFieldVisibility(mS)&&r.createElement(jb,{label:"Available Plans",instructions:"Name of the plan is in bold, id of the plan is underneath it, you can place this id into select, radio option values so user could pick a plan.",content:r.createElement("ul",{className:"plan-helper-list"},r.createElement("li",{onClick:this.handlePlanHelperToggle},r.createElement("a",{href:"#"},y?"Hide":"Show all ("+f.length+")")),y&&f.map((function(e,t){return r.createElement("li",{key:t},r.createElement("strong",null,e.value),r.createElement("br",null),e.key,r.createElement("br",null))})))}),this.checkFieldVisibility(mS)&&r.createElement("button",{className:"btn download icon",onClick:l,disabled:s},s?"Refreshing...":"Refresh plans"),this.checkFieldVisibility(mS)&&r.createElement(_S,{onCreated:this.handePlanCreated}))}}])&&WS(t.prototype,n),o&&WS(t,o),a}(Ud.Z),QS.contextTypes={updateField:$().func.isRequired},QS.propTypes={formPaymentFields:$().arrayOf($().shape({handle:$().string.isRequired,label:$().string.isRequired})),integration:$().object.isRequired,paymentType:$().string.isRequired,amount:$().oneOfType([$().string,$().number]),currency:$().string,interval:$().string,description:$().string,plan:$().string,paymentFieldMapping:$().object.isRequired,isFetching:$().bool.isRequired,fetchPlans:$().func.isRequired},VS=KS))||VS;function oA(e){return(oA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function iA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aA(e,t){for(var n=0;n0&&this.renderProperties())}}])&&OA(t.prototype,n),o&&OA(t,o),a}(Ud.Z),pA.title="Payments",pA.propTypes={composerProperties:$().object.isRequired,paymentProperties:$().object,paymentGatewayList:$().array.isRequired,fetchPaymentGateways:$().func.isRequired,isFetching:$().bool.isRequired},pA.contextTypes=mA(mA({},Ud.Z.contextTypes),{},{properties:$().shape({type:$().string.isRequired,integrationId:$().oneOfType([$().string,$().number]),paymentNotifications:$().oneOfType([$().object,$().array]),paymentType:$().string,amount:$().oneOfType([$().string,$().number]),currency:$().string,interval:$().string,description:$().string,plan:$().string,paymentFieldMapping:$().oneOfType([$().object,$().array]),customerFieldMapping:$().oneOfType([$().object,$().array])}),isPro:$().bool}),fA=yA))||fA;function SA(e){return(SA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function AA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CA(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function lk(e,t){if(e){if("string"==typeof e)return sk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sk(e,t):void 0}}function sk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;-1===t.indexOf(i.key)&&r.push(i)}}catch(e){o.e(e)}finally{o.f()}return r};function Fk(e){return(Fk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hk(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function MI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(O=Object.assign(O,YI)),p>0&&(O=Object.assign(O,_I));var w=null;switch(g.type){case F:v="Form Settings",w=r.createElement(aj,{formStatuses:o});break;default:if(g.type&&KI[g.type]){var E=KI[g.type];v=E.title||v,w=r.createElement(E,null)}}var j=-1===[F,B,N,L,H,I,M,G,C,x,q,T,S,Z].indexOf(g.type);return r.createElement("div",{className:"property-editor"},r.createElement(og,{editAdminNotifications:u,editForm:i,editValidation:a,editIntegrations:c,editPayments:s,editConnections:l,editRules:f,hash:t,crmIntegrationCount:p,paymentGatewayCount:y,isRulesEnabled:h,isPro:m}),r.createElement("h3",null,r.createElement("span",null,cD(v)),j&&r.createElement(Gd.Tooltip,{title:cD("Reset to default values"),position:"bottom-start",theme:"light",arrow:!0},r.createElement("button",{className:"btn small property-reset",onClick:this.resetField},cD("Reset")))),r.createElement("hr",null),!!g.label&&b&&r.createElement("h4",{dangerouslySetInnerHTML:{__html:g.label}}),!!g.label&&!b&&r.createElement("h4",null,g.label),r.createElement("div",{className:"property-wrapper"},w||r.createElement("p",null,cD("Please select an element"))))}}])&&ZI(t.prototype,n),o&&ZI(t,o),a}(r.Component),DI.propTypes={properties:$().object.isRequired,hash:$().string.isRequired,updateProperties:$().func.isRequired,editForm:$().func.isRequired,editAdminNotifications:$().func.isRequired,editIntegrations:$().func.isRequired,editPayments:$().func.isRequired,crmIntegrationCount:$().number.isRequired,paymentGatewayCount:$().number.isRequired,editConnections:$().func.isRequired,editRules:$().func.isRequired,fields:$().array},DI.contextTypes={isRulesEnabled:$().bool.isRequired,renderHtml:$().bool.isRequired,isPro:$().bool.isRequired},DI.childContextTypes={hash:$().string.isRequired,properties:$().object,updateField:$().func.isRequired},TI=FI))||TI;function JI(e){return(JI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XI(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.hash,r=t.isChecked,o=t.value,i=void 0===o?null:o,a=dq({},e);switch(t.type){case ve:return e[n]?(e[n].options||(e[n].options=[]),a[n].options.push({label:"",value:""}),a):e;case ge:if(e[n]&&e[n].options){for(var u=fq(e[n].options),c=!1,l=0;le.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:Sq,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case it:return Iq(e,t);case at:return qq(e,t);case ut:return Tq(e,t);case ct:return Dq(e,t);case lt:return Fq(e,t);case st:return Bq(e,t);case ft:return Hq(e,t);case pt:return Nq(e,t);case yt:case dt:case ht:case bt:case mt:return Mq(e,t);default:return e}};function Gq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uq(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Wq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jq(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[[]],t=arguments.length>1?arguments[1]:void 0,n=null;switch(t.type){case oe:n=Xq(e);var r={id:(0,ns.Hc)(),columns:[t.hash]};return n[t.pageIndex]||(n[t.pageIndex]=[]),n[t.pageIndex].push(r),n;case ue:return(n=Xq(e))[t.pageIndex][t.rowIndex].columns.splice(t.columnIndex,0,t.hash),n;case ce:return oT(e,t);case fe:return[].concat(Xq(e),[[]]);case pe:return removePageFromLayout(e,t);case Et:return(n=[].concat(Xq(e.slice(0,t.oldIndex)),Xq(e.slice(t.oldIndex+1)))).splice(t.newIndex,0,e[t.oldIndex]),n;default:return e}}function nT(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case oe:case ue:case ce:return Jq(Jq({},t),{},zq({},n.hash,n.properties));case fe:return Jq(Jq({},t),{},zq({},"page".concat(n.index),n.properties));case Et:var r=n.oldIndex,o=n.newIndex,i="page".concat(r),a="page".concat(o),u=t[i].label,c=t[a].label,l=Jq({},t.rules.list),s=null;l[i]&&(s=Jq({},l[i]),delete l[i]);var f=null;return l[a]&&(f=Jq({},l[a]),delete l[a]),s&&(l[a]=s),f&&(l[i]=f),Array.isArray(l)&&(l=Jq({},l)),Jq(Jq({},t),{},(zq(e={},"page".concat(n.oldIndex),{type:"page",label:c}),zq(e,"page".concat(n.newIndex),{type:"page",label:u}),zq(e,"rules",Jq(Jq({},t.rules),{},{list:l})),e));case ye:return Jq(Jq({},t),{},zq({},n.hash,Jq(Jq({},t[[n.hash]]),n.keyValueObject)));case he:return Jq(Jq({},t),{},zq({},n.hash,n.defaultProperties));case de:var p=Jq({},t),y=p[n.hash];if(y.type===m)for(var d in p){var h=p[d];h.type===x&&h.emailFieldHash===n.hash&&(p[d].emailFieldHash="")}return delete p[n.hash],p;default:return t}}function rT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=Xq(e),r=t.pageIndex,o=t.rowIndex,i=t.columnIndex,a=t.newRowIndex,u=t.newColumnIndex,c=n[r][o].columns[i];return n[r][o].columns.splice(i,1),n[r][a].columns.splice(u,0,c),iT(n),n}function oT(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=Xq(t),o=n.pageIndex,i=n.rowIndex,a=n.hash,u=n.prevPageIndex,c=void 0===u?null:u,l=Yq(r[o].keys());try{for(l.s();!(e=l.n()).done;){var s=e.value,f=r[o][s].columns.indexOf(a);-1!==f&&r[o][s].columns.splice(f,1)}}catch(e){l.e(e)}finally{l.f()}if(null!==c){var p,y=Yq(r[c].keys());try{for(y.s();!(p=y.n()).done;){var d=p.value,h=r[c][d].columns.indexOf(a);-1!==h&&r[c][d].columns.splice(h,1)}}catch(e){y.e(e)}finally{y.f()}}var b={id:(0,ns.Hc)(),columns:[a]};return-1===i?r[o].push(b):r[o].splice(i,0,b),iT(r),r}function iT(e){var t,n=Yq(e.keys());try{for(n.s();!(t=n.n()).done;){var r,o=t.value,i=Yq(e[o].keys());try{for(i.s();!(r=i.n()).done;){var a=r.value;0===e[o][a].columns.length&&e[o].splice(a,1)}}catch(e){i.e(e)}finally{i.f()}}}catch(e){n.e(e)}finally{n.f()}}function aT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=Xq(e),r=t.pageIndex,o=t.rowIndex,i=t.columnIndex;return n[r][o].columns.splice(i,1),0===n[r][o].columns.length&&n[r].splice(o,1),n}function uT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.index,r=[];e.layout[n].map((function(e){e.columns.map((function(e){return r.push(e)}))}));var o=[].concat(Xq(e.layout.slice(0,n)),Xq(e.layout.slice(n+1))),i=Zq(e.properties,t);for(var a in delete i["page".concat(n)],r.map((function(e){i[e]&&delete i[e]})),i)if(i.hasOwnProperty(a)){var u=a.match(/^page(\d+)$/);if(u&&u[1]){var c=u[1];c>n&&(i["page".concat(c-1)]=i["page".concat(c)],delete i["page".concat(c)])}}return Jq(Jq({},e),{},{layout:o,properties:i})}var cT=[],lT=[];function sT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fT(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return e},formId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case be:return parseInt(t.id);default:return e}},fields:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ie:return e;case qe:return fT(fT({},e),{},{fields:t.fieldData});case Te:return fT(fT({},e),{},{didInvalidate:!0});default:return e}},specialFields:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e},mailingLists:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:TT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ze:return IT(IT({},e),{},{isFetching:!0});case Le:return IT(IT({},e),{},{list:t.sourceTargetData,isFetching:!1,didInvalidate:!1});case Ge:return IT(IT({},e),{},{didInvalidate:!0});default:return e}},sourceTargets:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:GT;return e},formStatuses:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e},generatedOptionLists:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ue:return gT(gT({},e),{},{isFetching:!0});case Ve:return gT(gT({},e),{},{cache:gT(gT({},e.cache),{},OT({},t.hash,t.generatedOptions)),isFetching:!1,didInvalidate:!1});case Qe:var n=gT(gT({},e),{},{didInvalidate:!0});return delete n.cache[t.hash],n;default:return e}},composer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=null,r=null;switch(t.type){case oe:case fe:case ue:case ce:case Et:return(r=Jq({},e)).layout=tT(e.layout,t),t.properties&&(r.properties=nT(e.properties,t)),r;case pe:return uT(e,t);case ie:return n=t.pageIndex,e.layout[n]?Jq(Jq({},e),{},{layout:rT(e.layout,t)}):e;case ae:return n=t.pageIndex,e.layout[n]?Jq(Jq({},e),{},{layout:aT(e.layout,t)}):e;case ye:case de:case he:return Jq(Jq({},e),{},{properties:nT(e.properties,t)});case ve:case ge:case Oe:case we:case Ee:case je:case Re:case Pe:case Se:return Jq(Jq({},e),{},{properties:bq(e.properties,t)});case nt:case rt:case ot:return Jq(Jq({},e),{},{properties:Jq(Jq({},e.properties),{},{connections:sq(e.properties.connections,t)})});case it:case at:case ut:case ct:case lt:case st:case ft:case pt:case yt:case dt:case ht:case bt:case mt:return Jq(Jq({},e),{},{properties:Jq(Jq({},e.properties),{},{rules:Lq(e.properties.rules,t)})});case Ae:case Ce:case ke:case xe:var o=Jq({},e.properties),i=t.hash,a=t.attribute;if(!o[i])return e;var u=Jq({},o[i]);return u[a]||(u[a]=[]),Jq(Jq({},e),{},{properties:Jq(Jq({},e.properties),{},zq({},i,Jq(Jq({},u),{},zq({},a,_q(u[a],t)))))});default:return e}},context:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case le:return Jq(Jq({},e),{},{page:t.index,hash:"page".concat(t.index)});case se:return Jq(Jq({},e),{},{hash:t.hash});default:return e}},craftFields:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cT;return e},notifications:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case De:return e;case Fe:return FT(FT({},e),{},{list:t.notificationData});case Be:return FT(FT({},e),{},{didInvalidate:!0});default:return e}},assetSources:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e},templates:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case He:return e;case Ne:return hT(hT({},e),{},{list:t.templateData});case Me:return hT(hT({},e),{},{didInvalidate:!0});default:return e}},placeholders:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:LT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case vt:return MT(MT({},LT),{},{type:fn,rowIndex:t.rowIndex,targetHash:t.targetHash});case gt:return MT(MT({},LT),{},{type:pn,rowIndex:t.rowIndex,index:t.index,targetHash:t.targetHash});case Ot:return MT(MT({},LT),{},{type:sn,pageIndex:t.pageIndex});case wt:return MT({},LT);default:return e}},duplicateHandles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case me:return t.duplicateHandles;default:return e}},integrations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:PT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ke:return jT(jT({},e),{},{isFetching:!0});case _e:return jT(jT({},e),{},{list:t.crmData,isFetching:!1,didInvalidate:!1});case Ye:return jT(jT({},e),{},{didInvalidate:!0});case We:return jT(jT({},e),{},{didInvalidate:!1,isFetching:!1});default:return e}},paymentGateways:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Je:return AT(AT({},e),{},{isFetching:!0});case ze:return AT(AT({},e),{},{list:t.crmData,isFetching:!1,didInvalidate:!1});case Xe:return AT(AT({},e),{},{didInvalidate:!0});case $e:return AT(AT({},e),{},{didInvalidate:!1,isFetching:!1});case et:case tt:return AT({},e);default:return e}},fileKinds:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e},customFields:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lT;return e},sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:UT;return e}});function QT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _T=(0,a.qC)((0,a.md)(u.Z),window.devToolsExtension?window.devToolsExtension():function(e){return e}),YT=[{type:I,label:cD("Submit"),labelNext:"Submit",labelPrev:"Previous",disablePrev:!1,position:"left",visible:!0},{type:C,label:"HTML",value:"
Html content
"}];if(isPro&&YT.push({type:k,label:"Rich Text",value:""},{type:S,label:cD("Confirm"),handle:"confirm",placeholder:""},{type:T,label:cD("Password"),handle:"password",placeholder:""}),isRecaptchaEnabled&&!isInvisibleRecaptchaSetUp&&YT.push({type:q,label:"reCAPTCHA",singleton:!0}),isPaymentEnabled){var WT=fieldList.findIndex((function(e){return e.type==D})),JT=fieldList[WT];if(fieldList.splice(WT,1),paymentGatewayList.length>0){var zT,XT=n(30113).Z,$T=n(99858).Z,eD=n(30262).Z,tD=n(99832).Z;YT.push({id:JT.id,type:JT.type,handle:JT.handle,label:"",fieldLabel:"Credit Card",children:(zT={},KT(zT,tD.getClassName(),{label:"Credit Card Number",required:!0}),KT(zT,$T.getClassName(),{label:"Expiry Date",required:!0}),KT(zT,eD.getClassName(),{label:"CVC/CVV",required:!0}),zT),layout:XT.LAYOUT_3_ROWS,singleton:!0})}}var nD,rD,oD=(0,a.MT)(VT,function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"freeform";return Craft.t(n,e,t)}o.render(r.createElement(i.zt,{store:oD},r.createElement(oq,{saveUrl:Craft.getCpUrl("freeform/forms/save"),formUrl:Craft.getCpUrl("freeform/forms/{id}"),createFieldUrl:Craft.getCpUrl("freeform/api/quick-create-field"),createNotificationUrl:Craft.getCpUrl("freeform/api/quick-create-notification"),createTemplateUrl:Craft.getCpUrl("freeform/settings/add-demo-template"),finishTutorialUrl:Craft.getCpUrl("freeform/api/finish-tutorial"),showTutorial,defaultTemplates,notificator:aD,isPro,canManageFields,canManageNotifications,canManageSettings,isDbEmailTemplateStorage,isRulesEnabled,renderHtml:renderFormHtmlInCpViews,reservedKeywords,isInvisibleRecaptchaSetUp,isCommerceEnabled,isCalendarEnabled,csrf:{name:Craft.csrfTokenName?Craft.csrfTokenName:"csrfToken",token:Craft.csrfTokenValue?Craft.csrfTokenValue:""}})),iD)},34347:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(45697),o=n.n(r),i=n(67294),a=n(28677);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",r=this.context.updateField;t=void 0===t?this.constructor.getClassName():t;var o=this.preprocessTarget(e.target),i=o.name,a=o.value,u=this.compileProps()[n];if("object"!==l(u))throw"".concat(n," property should be an object");var f=c({},u),p=f[t];if("object"!==l(p))throw"".concat(n,".").concat(p," property should be an object");f[t]=c(c({},p),{},s({},i,a)),r(s({},n,f))}},{key:"preprocessTarget",value:function(e){var t=e.name,n=e.value,r=e.type,o=e.dataset,i=e.checked,a=o.isNumeric&&"false"!==o.isNumeric,u=o.isFloat&&"false"!==o.isFloat,c=o.couldBeNumeric&&"false"!==o.couldBeNumeric,l=o.nullable&&"false"!==o.nullable,s=n;switch(r){case"checkbox":s=i}return a&&(s=(s+"").replace(/[^0-9\.]/,""),s=u?s?parseFloat(s):0:s?parseInt(s):0),c&&/^[0-9]+$/.test(s)&&(s=s?parseInt(s):0),l&&(s=""!==s?s:null),{name:t,value:s}}},{key:"updateHandle",value:function(e){var t=this.context.updateField,n=e.target,r=n.name,o=n.value;t(s({},r,(0,a.OE)(o,!1)))}},{key:"updateKeyValue",value:function(e,t){(0,this.context.updateField)(s({},e,t))}},{key:"compileProps",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"children",t=this.context.properties,n=t[e],r=n&&n[this.constructor.getClassName()]||{},o=this.props;return c(c(c({},t),r),o)}}])&&f(t.prototype,n),r&&f(t,r),i}(i.Component);m.contextTypes={properties:o().shape({label:o().string.isRequired}).isRequired,updateField:o().func.isRequired}},30262:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(45697),o=n.n(r),i=n(67294),a=n(6705),u=n(34347),c=n(7943);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t=i)&&Object.keys(r.O).every((function(e){return r.O[e](n[c])}))?n.splice(c--,1):(u=!1,i0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[n,o,i]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={447:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,i,a=n[0],u=n[1],c=n[2],l=0;for(o in u)r.o(u,o)&&(r.m[o]=u[o]);for(c&&c(r),t&&t(n);l1?arguments[1]:void 0)}},1318:function(e,t,r){var n=r(5656),o=r(7466),i=r(1400),a=function(e){return function(t,r,a){var c,s=n(t),u=o(s.length),l=i(a,u);if(e&&r!=r){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((e||l in s)&&s[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:function(e,t,r){var n=r(9974),o=r(8361),i=r(7908),a=r(7466),c=r(5417),s=[].push,u=function(e){var t=1==e,r=2==e,u=3==e,l=4==e,f=6==e,d=7==e,p=5==e||f;return function(h,m,v,b){for(var y,g,S=i(h),E=o(S),_=n(m,v,3),x=a(E.length),w=0,k=b||c,O=t?k(h,x):r||d?k(h,0):void 0;x>w;w++)if((p||w in E)&&(g=_(y=E[w],w,S),e))if(t)O[w]=g;else if(g)switch(e){case 3:return!0;case 5:return y;case 6:return w;case 2:s.call(O,y)}else switch(e){case 4:return!1;case 7:s.call(O,y)}return f?-1:u||l?l:O}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterOut:u(7)}},9341:function(e,t,r){"use strict";var n=r(7293);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},5417:function(e,t,r){var n=r(111),o=r(3157),i=r(5112)("species");e.exports=function(e,t){var r;return o(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},4326:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},648:function(e,t,r){var n=r(1694),o=r(4326),i=r(5112)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:a?o(t):"Object"==(n=o(t))&&"function"==typeof t.callee?"Arguments":n}},9920:function(e,t,r){var n=r(6656),o=r(3887),i=r(1236),a=r(3070);e.exports=function(e,t){for(var r=o(t),c=a.f,s=i.f,u=0;u=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=n[1]),e.exports=o&&+o},2649:function(e,t,r){var n=r(7854),o=r(9974),i=Function.call;e.exports=function(e,t,r){return o(i,n[e].prototype[t],r)}},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,r){var n=r(7854),o=r(1236).f,i=r(8880),a=r(1320),c=r(3505),s=r(9920),u=r(4705);e.exports=function(e,t){var r,l,f,d,p,h=e.target,m=e.global,v=e.stat;if(r=m?n:v?n[h]||c(h,{}):(n[h]||{}).prototype)for(l in t){if(d=t[l],f=e.noTargetGet?(p=o(r,l))&&p.value:r[l],!u(m?l:h+(v?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;s(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(r,l,d,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},9974:function(e,t,r){var n=r(3099);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},5005:function(e,t,r){var n=r(857),o=r(7854),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e])||i(o[e]):n[e]&&n[e][t]||o[e]&&o[e][t]}},1246:function(e,t,r){var n=r(648),o=r(7497),i=r(5112)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},8554:function(e,t,r){var n=r(9670),o=r(1246);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return n(t.call(e))}},7854:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},6656:function(e){var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},3501:function(e){e.exports={}},490:function(e,t,r){var n=r(5005);e.exports=n("document","documentElement")},4664:function(e,t,r){var n=r(9781),o=r(7293),i=r(317);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,r){var n=r(7293),o=r(4326),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},2788:function(e,t,r){var n=r(5465),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),e.exports=n.inspectSource},9909:function(e,t,r){var n,o,i,a=r(8536),c=r(7854),s=r(111),u=r(8880),l=r(6656),f=r(5465),d=r(6200),p=r(3501),h=c.WeakMap;if(a){var m=f.state||(f.state=new h),v=m.get,b=m.has,y=m.set;n=function(e,t){return t.facade=e,y.call(m,e,t),t},o=function(e){return v.call(m,e)||{}},i=function(e){return b.call(m,e)}}else{var g=d("state");p[g]=!0,n=function(e,t){return t.facade=e,u(e,g,t),t},o=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!s(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},3157:function(e,t,r){var n=r(4326);e.exports=Array.isArray||function(e){return"Array"==n(e)}},4705:function(e,t,r){var n=r(7293),o=/#|\.prototype\./,i=function(e,t){var r=c[a(e)];return r==u||r!=s&&("function"==typeof t?n(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},s=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},111:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},1913:function(e){e.exports=!1},3383:function(e,t,r){"use strict";var n,o,i,a=r(7293),c=r(9518),s=r(8880),u=r(6656),l=r(5112),f=r(1913),d=l("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(n=o):p=!0);var h=null==n||a((function(){var e={};return n[d].call(e)!==e}));h&&(n={}),f&&!h||u(n,d)||s(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},7497:function(e){e.exports={}},133:function(e,t,r){var n=r(5268),o=r(7392),i=r(7293);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!Symbol.sham&&(n?38===o:o>37&&o<41)}))},8536:function(e,t,r){var n=r(7854),o=r(2788),i=n.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},1574:function(e,t,r){"use strict";var n=r(9781),o=r(7293),i=r(1956),a=r(5181),c=r(5296),s=r(7908),u=r(8361),l=Object.assign,f=Object.defineProperty;e.exports=!l||o((function(){if(n&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach((function(e){t[e]=e})),7!=l({},e)[r]||i(l({},t)).join("")!=o}))?function(e,t){for(var r=s(e),o=arguments.length,l=1,f=a.f,d=c.f;o>l;)for(var p,h=u(arguments[l++]),m=f?i(h).concat(f(h)):i(h),v=m.length,b=0;v>b;)p=m[b++],n&&!d.call(h,p)||(r[p]=h[p]);return r}:l},30:function(e,t,r){var n,o=r(9670),i=r(6048),a=r(748),c=r(3501),s=r(490),u=r(317),l=r(6200)("IE_PROTO"),f=function(){},d=function(e){return"