From 56bc35862df6ccde4af9dd4bf3f9ddb6e43e6a32 Mon Sep 17 00:00:00 2001 From: Sean Delaney Date: Thu, 12 Oct 2023 18:31:17 +0100 Subject: [PATCH 01/12] [SFT-671] - Support ability to encrypt/decrypt submission data --- .../app/components/form-controls/index.tsx | 7 +- .../editors/fields/field-properties.tsx | 70 +++++++------- .../Fields/Types/FieldTypesProvider.php | 24 ----- .../src/Bundles/Routing/routes/cp/export.php | 2 +- .../Submissions/CipherFieldsBundle.php | 91 +++++++++++++++++++ .../src/Elements/Db/SubmissionQuery.php | 12 +++ packages/plugin/src/Elements/Submission.php | 13 +++ .../src/Events/Submissions/CipherEvent.php | 23 +++++ packages/plugin/src/Fields/AbstractField.php | 26 +++++- .../src/Fields/BaseGeneratedOptionsField.php | 2 + .../Fields/Implementations/CheckboxField.php | 2 + .../Implementations/FileUploadField.php | 4 + .../src/Fields/Implementations/HtmlField.php | 3 + .../Fields/Implementations/NumberField.php | 5 + .../Implementations/Pro/ConfirmationField.php | 2 + .../Implementations/Pro/DatetimeField.php | 7 +- .../Pro/FileDragAndDropField.php | 4 + .../Fields/Implementations/Pro/GroupField.php | 8 +- .../Implementations/Pro/OpinionScaleField.php | 3 + .../Fields/Implementations/Pro/PhoneField.php | 3 + .../Implementations/Pro/RatingField.php | 5 + .../Fields/Implementations/Pro/RegexField.php | 3 + .../Implementations/Pro/SignatureField.php | 8 ++ .../Fields/Implementations/Pro/TableField.php | 7 ++ .../Fields/Implementations/TextareaField.php | 3 + .../Interfaces/NoEncryptionInterface.php | 20 ++++ .../Elements/Types/Categories/Categories.php | 7 ++ .../Elements/Types/Entries/Entries.php | 8 ++ .../Options/Elements/Types/Tags/Tags.php | 7 ++ .../Options/Elements/Types/Users/Users.php | 6 ++ .../src/Fields/SectionIcons/advanced.svg | 1 + .../src/Fields/Traits/FileUploadTrait.php | 3 + .../plugin/src/Fields/Traits/OneLineTrait.php | 2 + .../src/Library/Helpers/CipherHelper.php | 19 ++++ .../plugin/src/Resources/js/client/client.js | 2 +- .../plugin/src/Resources/js/client/vendor.js | 2 +- .../Resources/js/client/vendor.js.LICENSE.txt | 6 +- .../src/Services/SubmissionsService.php | 6 +- .../src/controllers/SubmissionsController.php | 17 +++- .../controllers/export/ProfilesController.php | 38 +++++++- .../export/QuickExportController.php | 21 ++++- .../_components/modals/export_csv.html | 6 +- 42 files changed, 429 insertions(+), 79 deletions(-) create mode 100644 packages/plugin/src/Bundles/Submissions/CipherFieldsBundle.php create mode 100644 packages/plugin/src/Events/Submissions/CipherEvent.php create mode 100644 packages/plugin/src/Fields/Interfaces/NoEncryptionInterface.php create mode 100644 packages/plugin/src/Fields/SectionIcons/advanced.svg create mode 100644 packages/plugin/src/Library/Helpers/CipherHelper.php diff --git a/packages/client/src/app/components/form-controls/index.tsx b/packages/client/src/app/components/form-controls/index.tsx index c3a2a7c9b..ccfb9cc33 100644 --- a/packages/client/src/app/components/form-controls/index.tsx +++ b/packages/client/src/app/components/form-controls/index.tsx @@ -2,6 +2,7 @@ import type { ComponentType } from 'react'; import React, { Suspense } from 'react'; import * as ControlTypes from '@components/form-controls/control-types'; import type { ControlType } from '@components/form-controls/types'; +import config, { Edition } from '@config/freeform/freeform.config'; import type { GenericValue, Property, @@ -34,7 +35,7 @@ export const FormComponent: React.FC = ({ context, autoFocus = false, }) => { - const { handle, type, visibilityFilters } = property; + const { handle, type, visibilityFilters, flags } = property; const FormControl = types[type]; const isVisible = useVisibility( @@ -52,6 +53,10 @@ export const FormComponent: React.FC = ({ return null; } + if (!config.editions.is(Edition.Pro) && flags?.includes(Edition.Pro)) { + return null; + } + return ( `}> diff --git a/packages/client/src/app/pages/forms/edit/builder/tabs/layout/property-editor/editors/fields/field-properties.tsx b/packages/client/src/app/pages/forms/edit/builder/tabs/layout/property-editor/editors/fields/field-properties.tsx index 0a6ab21fc..e111f6a9e 100644 --- a/packages/client/src/app/pages/forms/edit/builder/tabs/layout/property-editor/editors/fields/field-properties.tsx +++ b/packages/client/src/app/pages/forms/edit/builder/tabs/layout/property-editor/editors/fields/field-properties.tsx @@ -21,7 +21,6 @@ import { SectionBlock } from '../../section-block'; import { SectionWrapper } from '../../section-block.styles'; import { FavoriteButton } from './favorite/favorite.button'; -import AdvancedIcon from './icons/advanced.svg'; import { FieldComponent } from './field-component'; import { FieldPropertiesWrapper } from './field-properties.styles'; @@ -66,6 +65,7 @@ export const FieldProperties: React.FC<{ uid: string }> = ({ uid }) => { return; } + // FIXME - Convert Field Type as a proper field property under advanced section, similar to label, handle required etc sectionBlocks.push( {properties.map((property) => ( @@ -75,6 +75,39 @@ export const FieldProperties: React.FC<{ uid: string }> = ({ uid }) => { property={property} /> ))} + {handle === 'advanced' && ( + ({ + label: type.name, + value: type.typeClass, + })), + }} + updateValue={(value) => { + if ( + !confirm( + translate( + 'Are you sure? You might potentially lose important data.' + ) + ) + ) { + return; + } + + dispatch( + fieldThunks.change.type( + field, + searchFieldType(value as string) + ) + ); + }} + /> + )} ); }); @@ -89,40 +122,7 @@ export const FieldProperties: React.FC<{ uid: string }> = ({ uid }) => { {type.name} - - {sectionBlocks} - - }> - ({ - label: type.name, - value: type.typeClass, - })), - }} - updateValue={(value) => { - if ( - !confirm( - translate( - 'Are you sure? You might potentially lose important data.' - ) - ) - ) { - return; - } - - dispatch( - fieldThunks.change.type(field, searchFieldType(value as string)) - ); - }} - /> - - + {sectionBlocks} ); }; diff --git a/packages/plugin/src/Bundles/Fields/Types/FieldTypesProvider.php b/packages/plugin/src/Bundles/Fields/Types/FieldTypesProvider.php index 15a248598..f9abab28a 100644 --- a/packages/plugin/src/Bundles/Fields/Types/FieldTypesProvider.php +++ b/packages/plugin/src/Bundles/Fields/Types/FieldTypesProvider.php @@ -3,7 +3,6 @@ namespace Solspace\Freeform\Bundles\Fields\Types; use Solspace\Freeform\Attributes\Field\Type; -use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Bundles\Attributes\Property\PropertyProvider; use Solspace\Freeform\Bundles\Attributes\Property\SectionProvider; use Solspace\Freeform\Bundles\Fields\ImplementationProvider; @@ -45,29 +44,6 @@ public function getSections(): array $list = $this->sectionProvider->getSections(...$types); - $hasDefaultSection = false; - foreach ($list as $section) { - if (null === $section->handle) { - $hasDefaultSection = true; - - break; - } - } - - if (!$hasDefaultSection) { - $list = array_merge( - [ - new Section( - null, - 'Configuration', - file_get_contents(__DIR__.'/../../../Fields/SectionIcons/gears.svg'), - 1 - ), - ], - $list, - ); - } - $this->sections = array_values($list); } diff --git a/packages/plugin/src/Bundles/Routing/routes/cp/export.php b/packages/plugin/src/Bundles/Routing/routes/cp/export.php index 1f06a8122..2f8b92d36 100644 --- a/packages/plugin/src/Bundles/Routing/routes/cp/export.php +++ b/packages/plugin/src/Bundles/Routing/routes/cp/export.php @@ -3,7 +3,7 @@ return [ // quick export 'freeform/export/export-dialogue' => 'freeform/export/quick-export/export-dialogue', - 'freeform/export' => 'freeform/export/quick-export/index', + 'freeform/export/quick-export' => 'freeform/export/quick-export/index', // Export Profiles 'freeform/export/profiles' => 'freeform/export/profiles/index', diff --git a/packages/plugin/src/Bundles/Submissions/CipherFieldsBundle.php b/packages/plugin/src/Bundles/Submissions/CipherFieldsBundle.php new file mode 100644 index 000000000..beafaa068 --- /dev/null +++ b/packages/plugin/src/Bundles/Submissions/CipherFieldsBundle.php @@ -0,0 +1,91 @@ +cipherHelper = $cipherHelper; + + Event::on( + Submission::class, + Submission::EVENT_ENCRYPT_FIELDS, + [$this, 'encryptFields'] + ); + + Event::on( + Submission::class, + Submission::EVENT_DECRYPT_FIELDS, + [$this, 'decryptFields'] + ); + } + + /** + * @throws Exception + * @throws InvalidConfigException + * @throws \Exception + */ + public function encryptFields(CipherEvent $event): void + { + if (!Freeform::getInstance()->isPro()) { + return; + } + + $submission = $event->getSubmission(); + + $key = CipherHelper::getKey($submission->getForm()); + + foreach ($submission->getIterator() as $field) { + $value = $field->getValue(); + + if ($value && $field->canUseEncryption() && $field->isUseEncryption()) { + $encryptedValue = base64_encode(\Craft::$app->getSecurity()->encryptByKey($value, $key)); + + if ($encryptedValue) { + $field->setValue($encryptedValue); + } + } + } + } + + /** + * @throws Exception + * @throws InvalidConfigException + * @throws \Exception + */ + public function decryptFields(CipherEvent $event): void + { + if (!Freeform::getInstance()->isPro() || !\Craft::$app->getUser() || !PermissionHelper::checkPermission(Freeform::PERMISSION_SUBMISSIONS_ACCESS)) { + return; + } + + $submission = $event->getSubmission(); + + $key = CipherHelper::getKey($submission->getForm()); + + foreach ($submission->getIterator() as $field) { + $value = $field->getValue(); + + if ($value && $field->canUseEncryption()) { + $decryptedValue = \Craft::$app->getSecurity()->decryptByKey(base64_decode($value), $key); + + if ($decryptedValue) { + $field->setValue($decryptedValue); + } + } + } + } +} diff --git a/packages/plugin/src/Elements/Db/SubmissionQuery.php b/packages/plugin/src/Elements/Db/SubmissionQuery.php index 56e522587..c55ea5d19 100644 --- a/packages/plugin/src/Elements/Db/SubmissionQuery.php +++ b/packages/plugin/src/Elements/Db/SubmissionQuery.php @@ -7,12 +7,14 @@ use craft\elements\db\ElementQuery; use craft\helpers\Db; use Solspace\Freeform\Elements\Submission; +use Solspace\Freeform\Events\Submissions\CipherEvent; use Solspace\Freeform\Fields\Interfaces\NoStorageInterface; use Solspace\Freeform\Form\Form; use Solspace\Freeform\Freeform; use Solspace\Freeform\Records\FormRecord; use Solspace\Freeform\Records\SpamReasonRecord; use Solspace\Freeform\Records\StatusRecord; +use yii\base\Event; class SubmissionQuery extends ElementQuery { @@ -101,6 +103,16 @@ public function spamReason($value): self return $this; } + public function afterPopulate(array $elements): array + { + foreach ($elements as $submission) { + $cipherEvent = new CipherEvent($submission); + Event::trigger(Submission::class, Submission::EVENT_DECRYPT_FIELDS, $cipherEvent); + } + + return parent::afterPopulate($elements); + } + protected function beforePrepare(): bool { static $forms; diff --git a/packages/plugin/src/Elements/Submission.php b/packages/plugin/src/Elements/Submission.php index 9bce8cf3c..81b76f069 100644 --- a/packages/plugin/src/Elements/Submission.php +++ b/packages/plugin/src/Elements/Submission.php @@ -24,6 +24,7 @@ use Solspace\Freeform\Elements\Actions\SendNotificationAction; use Solspace\Freeform\Elements\Actions\SetSubmissionStatusAction; use Solspace\Freeform\Elements\Db\SubmissionQuery; +use Solspace\Freeform\Events\Submissions\CipherEvent; use Solspace\Freeform\Fields\AbstractField; use Solspace\Freeform\Fields\FieldInterface; use Solspace\Freeform\Fields\Implementations\CheckboxField; @@ -52,6 +53,10 @@ class Submission extends Element public const EVENT_PROCESS_SUBMISSION = 'process-submission'; + public const EVENT_ENCRYPT_FIELDS = 'encrypt-fields'; + + public const EVENT_DECRYPT_FIELDS = 'decrypt-fields'; + public const OPT_IN_DATA_TOKEN_LENGTH = 100; public ?int $formId = null; @@ -135,6 +140,14 @@ public function __isset($name): bool return parent::__isset($name); } + public function beforeSave(bool $isNew): bool + { + $cipherEvent = new CipherEvent($this); + Event::trigger(self::class, self::EVENT_ENCRYPT_FIELDS, $cipherEvent); + + return parent::beforeSave($isNew); + } + public static function find(): SubmissionQuery { return (new SubmissionQuery(self::class))->isSpam(false); diff --git a/packages/plugin/src/Events/Submissions/CipherEvent.php b/packages/plugin/src/Events/Submissions/CipherEvent.php new file mode 100644 index 000000000..cd7ef3992 --- /dev/null +++ b/packages/plugin/src/Events/Submissions/CipherEvent.php @@ -0,0 +1,23 @@ +submission = $submission; + + parent::__construct(); + } + + public function getSubmission(): Submission + { + return $this->submission; + } +} diff --git a/packages/plugin/src/Fields/AbstractField.php b/packages/plugin/src/Fields/AbstractField.php index 86f5886cb..bfb1955fa 100644 --- a/packages/plugin/src/Fields/AbstractField.php +++ b/packages/plugin/src/Fields/AbstractField.php @@ -25,6 +25,7 @@ use Solspace\Freeform\Bundles\Fields\ImplementationProvider; use Solspace\Freeform\Events\Fields\ValidateEvent; use Solspace\Freeform\Fields\Interfaces\InputOnlyInterface; +use Solspace\Freeform\Fields\Interfaces\NoEncryptionInterface; use Solspace\Freeform\Fields\Interfaces\NoRenderInterface; use Solspace\Freeform\Fields\Interfaces\NoStorageInterface; use Solspace\Freeform\Fields\Parameters\Parameters; @@ -92,7 +93,7 @@ abstract class AbstractField implements FieldInterface, IdentificatorInterface handle: 'attributes', label: 'Attributes', icon: __DIR__.'/SectionIcons/list.svg', - order: 999, + order: 4, )] #[ValueTransformer(FieldAttributesTransformer::class)] #[Input\Attributes( @@ -127,6 +128,19 @@ abstract class AbstractField implements FieldInterface, IdentificatorInterface )] protected FieldAttributesCollection $attributes; + #[Section( + handle: 'advanced', + label: 'Advanced', + icon: __DIR__.'/SectionIcons/advanced.svg', + order: 5, + )] + #[Flag(Flag::PRO)] + #[Input\Boolean( + label: 'Encrypt field data', + order: 7 + )] + protected bool $encryption = false; + protected Parameters $parameters; protected ?int $id = null; @@ -536,6 +550,16 @@ public function implements(string ...$interfaces): bool return false; } + public function isUseEncryption(): bool + { + return $this->encryption; + } + + public function canUseEncryption(): bool + { + return !$this instanceof NoEncryptionInterface; + } + /** * Assemble the Label HTML string. */ diff --git a/packages/plugin/src/Fields/BaseGeneratedOptionsField.php b/packages/plugin/src/Fields/BaseGeneratedOptionsField.php index 7ac38a898..b302b027e 100644 --- a/packages/plugin/src/Fields/BaseGeneratedOptionsField.php +++ b/packages/plugin/src/Fields/BaseGeneratedOptionsField.php @@ -6,6 +6,7 @@ use Solspace\Freeform\Attributes\Property\Implementations\Options\OptionCollection; use Solspace\Freeform\Attributes\Property\Implementations\Options\OptionsTransformer; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Attributes\Property\ValueTransformer; use Solspace\Freeform\Fields\Interfaces\GeneratedOptionsInterface; use Solspace\Freeform\Fields\Properties\Options\OptionsConfigurationInterface; @@ -15,6 +16,7 @@ */ abstract class BaseGeneratedOptionsField extends BaseOptionsField implements GeneratedOptionsInterface { + #[Section('configuration')] #[ValueTransformer(OptionsTransformer::class)] #[Input\Options( label: 'Options Editor', diff --git a/packages/plugin/src/Fields/Implementations/CheckboxField.php b/packages/plugin/src/Fields/Implementations/CheckboxField.php index 98374d884..5cf5a2ae2 100644 --- a/packages/plugin/src/Fields/Implementations/CheckboxField.php +++ b/packages/plugin/src/Fields/Implementations/CheckboxField.php @@ -15,6 +15,7 @@ use GraphQL\Type\Definition\Type as GQLType; use Solspace\Freeform\Attributes\Field\Type; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Fields\AbstractField; use Solspace\Freeform\Fields\FieldInterface; use Solspace\Freeform\Fields\Interfaces\BooleanInterface; @@ -37,6 +38,7 @@ class CheckboxField extends AbstractField implements InputOnlyInterface, Boolean { use DefaultTextValueTrait; + #[Section('configuration')] #[Input\Boolean('Checked by default')] protected bool $checkedByDefault = false; diff --git a/packages/plugin/src/Fields/Implementations/FileUploadField.php b/packages/plugin/src/Fields/Implementations/FileUploadField.php index 52721df4a..5ceac3e78 100644 --- a/packages/plugin/src/Fields/Implementations/FileUploadField.php +++ b/packages/plugin/src/Fields/Implementations/FileUploadField.php @@ -18,6 +18,7 @@ use Solspace\Freeform\Attributes\Field\Type; use Solspace\Freeform\Attributes\Property\Implementations\Files\FileKindsOptionsGenerator; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Bundles\GraphQL\Types\FileUploadType; use Solspace\Freeform\Bundles\GraphQL\Types\Inputs\FileUploadInputType; use Solspace\Freeform\Fields\AbstractField; @@ -40,6 +41,7 @@ class FileUploadField extends AbstractField implements MultiValueInterface, File public const DEFAULT_MAX_FILESIZE_KB = 2048; public const DEFAULT_FILE_COUNT = 1; + #[Section('configuration')] #[Input\Checkboxes( label: 'File Kinds', instructions: 'Select the file kinds that are allowed to be uploaded.', @@ -50,6 +52,7 @@ class FileUploadField extends AbstractField implements MultiValueInterface, File )] protected array $fileKinds = ['image']; + #[Section('configuration')] #[Input\Integer( label: 'Maximum File Size', instructions: 'Specify the maximum file size, in KB.', @@ -57,6 +60,7 @@ class FileUploadField extends AbstractField implements MultiValueInterface, File )] protected int $maxFileSizeKB = self::DEFAULT_MAX_FILESIZE_KB; + #[Section('configuration')] #[Input\Integer( instructions: 'Specify the maximum uploadable file count.', )] diff --git a/packages/plugin/src/Fields/Implementations/HtmlField.php b/packages/plugin/src/Fields/Implementations/HtmlField.php index 0e7f5838c..a784459c9 100644 --- a/packages/plugin/src/Fields/Implementations/HtmlField.php +++ b/packages/plugin/src/Fields/Implementations/HtmlField.php @@ -14,6 +14,7 @@ use Solspace\Freeform\Attributes\Field\Type; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Fields\AbstractField; use Solspace\Freeform\Fields\Interfaces\InputOnlyInterface; use Solspace\Freeform\Fields\Interfaces\NoStorageInterface; @@ -31,12 +32,14 @@ class HtmlField extends AbstractField implements InputOnlyInterface, NoStorageIn protected string $instructions = ''; protected bool $required = false; + #[Section('configuration')] #[Input\Boolean( label: 'Allow Twig', instructions: 'Used to enable Twig in HTML blocks', )] protected bool $twig = false; + #[Section('configuration')] #[Input\CodeEditor( label: 'HTML', instructions: 'The HTML content to be rendered', diff --git a/packages/plugin/src/Fields/Implementations/NumberField.php b/packages/plugin/src/Fields/Implementations/NumberField.php index 3d8c474cb..b84a7fd08 100644 --- a/packages/plugin/src/Fields/Implementations/NumberField.php +++ b/packages/plugin/src/Fields/Implementations/NumberField.php @@ -6,6 +6,7 @@ use GraphQL\Type\Definition\Type as GQLType; use Solspace\Freeform\Attributes\Field\Type; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; #[Type( name: 'Number', @@ -15,15 +16,18 @@ )] class NumberField extends TextField { + #[Section('configuration')] #[Input\Boolean('Allow negative numbers')] protected bool $allowNegative = false; + #[Section('configuration')] #[Input\MinMax( label: 'Min/Max Values', instructions: 'The minimum and/or maximum numeric value this field is allowed to have (optional).', )] protected ?array $minMaxValues = [null, null]; + #[Section('configuration')] #[Input\Integer( instructions: 'The number of decimal places allowed.', placeholder: 'Leave blank for no decimals', @@ -31,6 +35,7 @@ class NumberField extends TextField )] protected int $decimalCount = 0; + #[Section('configuration')] #[Input\Integer( instructions: 'The step', min: 0, diff --git a/packages/plugin/src/Fields/Implementations/Pro/ConfirmationField.php b/packages/plugin/src/Fields/Implementations/Pro/ConfirmationField.php index e016b4a60..a7941353a 100644 --- a/packages/plugin/src/Fields/Implementations/Pro/ConfirmationField.php +++ b/packages/plugin/src/Fields/Implementations/Pro/ConfirmationField.php @@ -6,6 +6,7 @@ use Solspace\Freeform\Attributes\Field\Type; use Solspace\Freeform\Attributes\Property\Implementations\Field\FieldTransformer; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Attributes\Property\ValueTransformer; use Solspace\Freeform\Fields\AbstractField; use Solspace\Freeform\Fields\FieldInterface; @@ -26,6 +27,7 @@ class ConfirmationField extends AbstractField implements ExtraFieldInterface, Pl { use PlaceholderTrait; + #[Section('configuration')] #[ValueTransformer(FieldTransformer::class)] #[Input\Field( label: 'Target field', diff --git a/packages/plugin/src/Fields/Implementations/Pro/DatetimeField.php b/packages/plugin/src/Fields/Implementations/Pro/DatetimeField.php index 707a7d3e5..922e49990 100644 --- a/packages/plugin/src/Fields/Implementations/Pro/DatetimeField.php +++ b/packages/plugin/src/Fields/Implementations/Pro/DatetimeField.php @@ -28,7 +28,7 @@ class DatetimeField extends AbstractField implements PlaceholderInterface, Datet public const DATETIME_TYPE_TIME = 'time'; #[Section( - handle: null, + handle: 'configuration', label: 'Configuration', icon: __DIR__.'/../../SectionIcons/gears.svg', order: 1, @@ -45,12 +45,14 @@ class DatetimeField extends AbstractField implements PlaceholderInterface, Datet )] protected string $dateTimeType = self::DATETIME_TYPE_BOTH; + #[Section('configuration')] #[Input\Text( label: 'Initial value', instructions: "You can use 'now', 'today', '5 days ago', '2024-01-01 20:00:00', etc.", )] protected string $initialValue = ''; + #[Section('configuration')] #[Input\Text( label: 'Force a locale', instructions: "Uses the site's locale set in Craft by default. To force a different locale, specify a 2-digit language code, e.g. `fr`, `de`, etc.", @@ -58,18 +60,21 @@ class DatetimeField extends AbstractField implements PlaceholderInterface, Datet )] protected ?string $locale = null; + #[Section('configuration')] #[Input\Boolean( label: 'Use built-in datepicker', order: 2, )] protected bool $useDatepicker = true; + #[Section('configuration')] #[Input\Boolean( label: 'Use date format as placeholder', order: 3, )] protected bool $generatePlaceholder = true; + #[Section('configuration')] #[VisibilityFilter('properties.generatePlaceholder === false')] #[Input\Text( instructions: "The text that will be shown if the field doesn't have a value.", diff --git a/packages/plugin/src/Fields/Implementations/Pro/FileDragAndDropField.php b/packages/plugin/src/Fields/Implementations/Pro/FileDragAndDropField.php index 895ab9866..5c0fa86ee 100644 --- a/packages/plugin/src/Fields/Implementations/Pro/FileDragAndDropField.php +++ b/packages/plugin/src/Fields/Implementations/Pro/FileDragAndDropField.php @@ -5,6 +5,7 @@ use craft\helpers\UrlHelper; use Solspace\Freeform\Attributes\Field\Type; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Fields\Implementations\FileUploadField; use Solspace\Freeform\Fields\Interfaces\ExtraFieldInterface; use Solspace\Freeform\Fields\Interfaces\PlaceholderInterface; @@ -21,6 +22,7 @@ class FileDragAndDropField extends FileUploadField implements ExtraFieldInterfac public const DEFAULT_THEME = 'light'; public const DEFAULT_PLACEHOLDER = 'Drag and drop files here or click to upload'; + #[Section('configuration')] #[Input\ColorPicker( label: 'Accent Color', instructions: 'Select accent color', @@ -28,6 +30,7 @@ class FileDragAndDropField extends FileUploadField implements ExtraFieldInterfac )] protected string $accent = self::DEFAULT_ACCENT; + #[Section('configuration')] #[Input\Select( label: 'Accent Color', instructions: 'Select accent color', @@ -39,6 +42,7 @@ class FileDragAndDropField extends FileUploadField implements ExtraFieldInterfac )] protected string $theme = self::DEFAULT_THEME; + #[Section('configuration')] #[Input\Text( instructions: 'Field placeholder.', order: 8, diff --git a/packages/plugin/src/Fields/Implementations/Pro/GroupField.php b/packages/plugin/src/Fields/Implementations/Pro/GroupField.php index f2063da35..25cf18ba6 100644 --- a/packages/plugin/src/Fields/Implementations/Pro/GroupField.php +++ b/packages/plugin/src/Fields/Implementations/Pro/GroupField.php @@ -3,12 +3,14 @@ namespace Solspace\Freeform\Fields\Implementations\Pro; use Solspace\Freeform\Attributes\Field\Type; +use Solspace\Freeform\Attributes\Property\Flag; use Solspace\Freeform\Attributes\Property\Implementations\Layout\GroupFieldLayoutTransformer; use Solspace\Freeform\Attributes\Property\Input; use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Attributes\Property\ValueTransformer; use Solspace\Freeform\Fields\AbstractField; use Solspace\Freeform\Fields\Interfaces\ExtraFieldInterface; +use Solspace\Freeform\Fields\Interfaces\NoEncryptionInterface; use Solspace\Freeform\Fields\Interfaces\NoStorageInterface; use Solspace\Freeform\Form\Layout\Layout; @@ -17,10 +19,14 @@ typeShorthand: 'group', iconPath: __DIR__.'/../Icons/group.svg', )] -class GroupField extends AbstractField implements NoStorageInterface, ExtraFieldInterface +class GroupField extends AbstractField implements NoEncryptionInterface, NoStorageInterface, ExtraFieldInterface { protected bool $required = false; + // Hides option in Pro edition + #[Flag('')] + protected bool $encryption = false; + #[ValueTransformer(GroupFieldLayoutTransformer::class)] #[Section('advanced')] #[Input\Hidden] diff --git a/packages/plugin/src/Fields/Implementations/Pro/OpinionScaleField.php b/packages/plugin/src/Fields/Implementations/Pro/OpinionScaleField.php index 07c7f2273..e24c0321d 100644 --- a/packages/plugin/src/Fields/Implementations/Pro/OpinionScaleField.php +++ b/packages/plugin/src/Fields/Implementations/Pro/OpinionScaleField.php @@ -8,6 +8,7 @@ use Solspace\Freeform\Attributes\Property\Implementations\OpinionScale\ScalesTransformer; use Solspace\Freeform\Attributes\Property\Implementations\Options\OptionCollection; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Attributes\Property\ValueTransformer; use Solspace\Freeform\Fields\BaseOptionsField; use Solspace\Freeform\Fields\Interfaces\ExtraFieldInterface; @@ -23,6 +24,7 @@ )] class OpinionScaleField extends BaseOptionsField implements ExtraFieldInterface, OptionsInterface { + #[Section('configuration')] #[ValueTransformer(ScalesTransformer::class)] #[Input\TabularData( label: 'Scales', @@ -41,6 +43,7 @@ class OpinionScaleField extends BaseOptionsField implements ExtraFieldInterface, )] protected array $scales = []; + #[Section('configuration')] #[ValueTransformer(LegendsTransformer::class)] #[Input\TabularData( label: 'Legends', diff --git a/packages/plugin/src/Fields/Implementations/Pro/PhoneField.php b/packages/plugin/src/Fields/Implementations/Pro/PhoneField.php index bf98babc9..f21deae09 100644 --- a/packages/plugin/src/Fields/Implementations/Pro/PhoneField.php +++ b/packages/plugin/src/Fields/Implementations/Pro/PhoneField.php @@ -5,6 +5,7 @@ use GraphQL\Type\Definition\Type as GQLType; use Solspace\Freeform\Attributes\Field\Type; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Fields\Implementations\TextField; use Solspace\Freeform\Fields\Interfaces\ExtraFieldInterface; use Solspace\Freeform\Fields\Interfaces\PhoneMaskInterface; @@ -19,12 +20,14 @@ class PhoneField extends TextField implements PhoneMaskInterface, ExtraFieldInte { protected string $customInputType = 'tel'; + #[Section('configuration')] #[Input\Text( label: 'Pattern validation', instructions: "Use '0' (a digit between 0-9) and other characters, e.g. '(000) 000-0000' or '+0 0000 000000'.", )] protected ?string $pattern = null; + #[Section('configuration')] #[Input\Boolean( label: 'Use built-in javascript validation on pattern', )] diff --git a/packages/plugin/src/Fields/Implementations/Pro/RatingField.php b/packages/plugin/src/Fields/Implementations/Pro/RatingField.php index 8e7543a8e..93c2c7c2b 100644 --- a/packages/plugin/src/Fields/Implementations/Pro/RatingField.php +++ b/packages/plugin/src/Fields/Implementations/Pro/RatingField.php @@ -6,6 +6,7 @@ use Solspace\Freeform\Attributes\Field\Type; use Solspace\Freeform\Attributes\Property\Implementations\Options\OptionCollection; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Fields\BaseOptionsField; use Solspace\Freeform\Fields\FieldInterface; use Solspace\Freeform\Fields\Interfaces\ExtraFieldInterface; @@ -24,6 +25,7 @@ class RatingField extends BaseOptionsField implements ExtraFieldInterface, Optio public const MIN_VALUE = 3; public const MAX_VALUE = 10; + #[Section('configuration')] #[Input\Select( label: 'Maximum Number of Stars', options: [ @@ -41,12 +43,15 @@ class RatingField extends BaseOptionsField implements ExtraFieldInterface, Optio )] protected int $maxValue = 5; + #[Section('configuration')] #[Input\ColorPicker('Unselected Color')] protected string $colorIdle = '#DDDDDD'; + #[Section('configuration')] #[Input\ColorPicker('Hover Color')] protected string $colorHover = '#FFD700'; + #[Section('configuration')] #[Input\ColorPicker('Selected Color')] protected string $colorSelected = '#FF7700'; diff --git a/packages/plugin/src/Fields/Implementations/Pro/RegexField.php b/packages/plugin/src/Fields/Implementations/Pro/RegexField.php index c6bc7ca7d..cfab034e4 100644 --- a/packages/plugin/src/Fields/Implementations/Pro/RegexField.php +++ b/packages/plugin/src/Fields/Implementations/Pro/RegexField.php @@ -5,6 +5,7 @@ use GraphQL\Type\Definition\Type as GQLType; use Solspace\Freeform\Attributes\Field\Type; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Fields\Implementations\TextField; use Solspace\Freeform\Fields\Interfaces\ExtraFieldInterface; @@ -16,11 +17,13 @@ )] class RegexField extends TextField implements ExtraFieldInterface { + #[Section('configuration')] #[Input\Text( instructions: 'Enter any regex pattern here.', )] protected string $pattern = ''; + #[Section('configuration')] #[Input\TextArea( label: 'Error Message', instructions: "The message a user should receive if an incorrect value is given. It will replace any occurrences of '{{pattern}}' with the supplied regex pattern inside the message if any are found.", diff --git a/packages/plugin/src/Fields/Implementations/Pro/SignatureField.php b/packages/plugin/src/Fields/Implementations/Pro/SignatureField.php index 34ee4b54b..9d2e2b0df 100644 --- a/packages/plugin/src/Fields/Implementations/Pro/SignatureField.php +++ b/packages/plugin/src/Fields/Implementations/Pro/SignatureField.php @@ -5,6 +5,7 @@ use GraphQL\Type\Definition\Type as GQLType; use Solspace\Freeform\Attributes\Field\Type; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Fields\AbstractField; use Solspace\Freeform\Fields\Interfaces\ExtraFieldInterface; use Solspace\Freeform\Library\Attributes\Attributes; @@ -17,39 +18,46 @@ )] class SignatureField extends AbstractField implements ExtraFieldInterface { + #[Section('configuration')] #[Input\Integer( label: 'Width of Pad', instructions: 'Specify a value in pixels.', )] protected int $width = 400; + #[Section('configuration')] #[Input\Integer( label: 'Height of Pad', instructions: 'Specify a value in pixels.', )] protected int $height = 100; + #[Section('configuration')] #[Input\Boolean( label: "Show 'Clear' button", instructions: 'Allows user to erase and start over.', )] protected bool $showClearButton = true; + #[Section('configuration')] #[Input\ColorPicker( label: 'Border color of Pad', )] protected string $borderColor = '#999999'; + #[Section('configuration')] #[Input\ColorPicker( label: 'Background color of Pad', )] protected string $backgroundColor = 'rgba(0,0,0,0)'; + #[Section('configuration')] #[Input\ColorPicker( label: 'Pen color', )] protected string $penColor = '#000000'; + #[Section('configuration')] #[Input\Integer( label: 'Pen dot size', instructions: 'The size of the dot when drawing on the pad.', diff --git a/packages/plugin/src/Fields/Implementations/Pro/TableField.php b/packages/plugin/src/Fields/Implementations/Pro/TableField.php index d1413bba0..34b535644 100644 --- a/packages/plugin/src/Fields/Implementations/Pro/TableField.php +++ b/packages/plugin/src/Fields/Implementations/Pro/TableField.php @@ -36,6 +36,7 @@ class TableField extends AbstractField implements MultiValueInterface, MultiDime public array $columns = []; + #[Section('configuration')] #[ValueTransformer(TableTransformer::class)] #[Input\Table( label: 'Table Layout', @@ -58,33 +59,39 @@ class TableField extends AbstractField implements MultiValueInterface, MultiDime )] protected TableLayout $tableLayout; + #[Section('configuration')] #[Input\Boolean('Use built-in javascript for adding and removing rows')] protected bool $useScript = false; + #[Section('configuration')] #[Input\Integer( label: 'Maximum number of rows', instructions: 'Set the maximum number of rows that can be added to the table.', )] protected ?int $maxRows = null; + #[Section('configuration')] #[Input\Text( label: 'Add Button Label', instructions: 'Set the label for the add button.', )] protected string $addButtonLabel = 'Add'; + #[Section('configuration')] #[Input\Text( label: 'Add Button Markup', instructions: 'Set the markup for the add button.', )] protected ?string $addButtonMarkup; + #[Section('configuration')] #[Input\Text( label: 'Remove Button Label', instructions: 'Set the label for the remove button.', )] protected string $removeButtonLabel = 'Remove'; + #[Section('configuration')] #[Input\Text( label: 'Remove Button Markup', instructions: 'Set the markup for the remove button.', diff --git a/packages/plugin/src/Fields/Implementations/TextareaField.php b/packages/plugin/src/Fields/Implementations/TextareaField.php index 97127da13..a65f1ae2f 100644 --- a/packages/plugin/src/Fields/Implementations/TextareaField.php +++ b/packages/plugin/src/Fields/Implementations/TextareaField.php @@ -15,6 +15,7 @@ use GraphQL\Type\Definition\Type as GQLType; use Solspace\Freeform\Attributes\Field\Type; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Fields\AbstractField; use Solspace\Freeform\Fields\Interfaces\DefaultValueInterface; use Solspace\Freeform\Fields\Interfaces\PlaceholderInterface; @@ -32,11 +33,13 @@ class TextareaField extends AbstractField implements PlaceholderInterface, Defau use DefaultTextValueTrait; use PlaceholderTrait; + #[Section('configuration')] #[Input\TextArea( instructions: 'The default value of this field.', )] protected string $defaultValue = ''; + #[Section('configuration')] #[Input\Integer( instructions: 'The number of rows in height for this field.', min: 1, diff --git a/packages/plugin/src/Fields/Interfaces/NoEncryptionInterface.php b/packages/plugin/src/Fields/Interfaces/NoEncryptionInterface.php new file mode 100644 index 000000000..bad869f67 --- /dev/null +++ b/packages/plugin/src/Fields/Interfaces/NoEncryptionInterface.php @@ -0,0 +1,20 @@ + 'asc', 'label' => 'Ascending'], diff --git a/packages/plugin/src/Fields/Properties/Options/Elements/Types/Entries/Entries.php b/packages/plugin/src/Fields/Properties/Options/Elements/Types/Entries/Entries.php index 6f5a08d1d..ef9ad1fee 100644 --- a/packages/plugin/src/Fields/Properties/Options/Elements/Types/Entries/Entries.php +++ b/packages/plugin/src/Fields/Properties/Options/Elements/Types/Entries/Entries.php @@ -5,6 +5,7 @@ use craft\elements\Entry; use Solspace\Freeform\Attributes\Property\Implementations\Options\OptionCollection; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Attributes\Property\Validators\Required; use Solspace\Freeform\Attributes\Property\VisibilityFilter; use Solspace\Freeform\Fields\Properties\Options\Elements\Properties\OptionsGenerators\SiteIdOptionsGenerator; @@ -13,6 +14,7 @@ class Entries implements OptionTypeProviderInterface { + #[Section('configuration')] #[Input\Select( label: 'Site ID', emptyOption: 'All Sites', @@ -20,6 +22,7 @@ class Entries implements OptionTypeProviderInterface )] private ?string $siteId = null; + #[Section('configuration')] #[Input\Select( label: 'Section', emptyOption: 'All Sections', @@ -27,6 +30,7 @@ class Entries implements OptionTypeProviderInterface )] private ?int $sectionId = null; + #[Section('configuration')] #[VisibilityFilter('Boolean(properties.sectionId)')] #[Input\DynamicSelect( label: 'Entry Type', @@ -35,6 +39,7 @@ class Entries implements OptionTypeProviderInterface )] private ?int $entryTypeId = null; + #[Section('configuration')] #[Required] #[Input\DynamicSelect( label: 'Option Label', @@ -47,6 +52,7 @@ class Entries implements OptionTypeProviderInterface )] private string $label = 'title'; + #[Section('configuration')] #[Required] #[Input\DynamicSelect( label: 'Option Value', @@ -59,12 +65,14 @@ class Entries implements OptionTypeProviderInterface )] private string $value = 'id'; + #[Section('configuration')] #[Input\DynamicSelect( label: 'Order By', source: 'api/elements/entries/fields', )] private string $orderBy = 'id'; + #[Section('configuration')] #[Input\Select( options: [ ['value' => 'asc', 'label' => 'Ascending'], diff --git a/packages/plugin/src/Fields/Properties/Options/Elements/Types/Tags/Tags.php b/packages/plugin/src/Fields/Properties/Options/Elements/Types/Tags/Tags.php index f0d83b6f6..a079323a5 100644 --- a/packages/plugin/src/Fields/Properties/Options/Elements/Types/Tags/Tags.php +++ b/packages/plugin/src/Fields/Properties/Options/Elements/Types/Tags/Tags.php @@ -5,6 +5,7 @@ use craft\elements\Tag; use Solspace\Freeform\Attributes\Property\Implementations\Options\OptionCollection; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Attributes\Property\Validators\Required; use Solspace\Freeform\Fields\Properties\Options\Elements\Properties\OptionsGenerators\SiteIdOptionsGenerator; use Solspace\Freeform\Fields\Properties\Options\OptionTypeProviderInterface; @@ -12,6 +13,7 @@ class Tags implements OptionTypeProviderInterface { + #[Section('configuration')] #[Input\Select( label: 'Site ID', emptyOption: 'All Sites', @@ -19,6 +21,7 @@ class Tags implements OptionTypeProviderInterface )] private ?string $siteId = null; + #[Section('configuration')] #[Input\Select( label: 'Group', emptyOption: 'All Groups', @@ -26,6 +29,7 @@ class Tags implements OptionTypeProviderInterface )] private ?string $groupId = null; + #[Section('configuration')] #[Required] #[Input\DynamicSelect( label: 'Option Label', @@ -37,6 +41,7 @@ class Tags implements OptionTypeProviderInterface )] private string $label = 'title'; + #[Section('configuration')] #[Required] #[Input\DynamicSelect( label: 'Option Value', @@ -48,12 +53,14 @@ class Tags implements OptionTypeProviderInterface )] private string $value = 'id'; + #[Section('configuration')] #[Input\DynamicSelect( label: 'Order By', source: 'api/elements/tags/fields', )] private string $orderBy = 'id'; + #[Section('configuration')] #[Input\Select( options: [ ['value' => 'asc', 'label' => 'Ascending'], diff --git a/packages/plugin/src/Fields/Properties/Options/Elements/Types/Users/Users.php b/packages/plugin/src/Fields/Properties/Options/Elements/Types/Users/Users.php index ea334b1d0..7f4de4656 100644 --- a/packages/plugin/src/Fields/Properties/Options/Elements/Types/Users/Users.php +++ b/packages/plugin/src/Fields/Properties/Options/Elements/Types/Users/Users.php @@ -5,12 +5,14 @@ use craft\elements\User; use Solspace\Freeform\Attributes\Property\Implementations\Options\OptionCollection; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Attributes\Property\Validators\Required; use Solspace\Freeform\Fields\Properties\Options\OptionTypeProviderInterface; use Solspace\Freeform\Library\Helpers\ElementHelper; class Users implements OptionTypeProviderInterface { + #[Section('configuration')] #[Input\Select( label: 'Group', emptyOption: 'All Groups', @@ -18,6 +20,7 @@ class Users implements OptionTypeProviderInterface )] private ?string $groupId = null; + #[Section('configuration')] #[Required] #[Input\DynamicSelect( label: 'Option Label', @@ -25,6 +28,7 @@ class Users implements OptionTypeProviderInterface )] private string $label = 'fullName'; + #[Section('configuration')] #[Required] #[Input\DynamicSelect( label: 'Option Value', @@ -32,12 +36,14 @@ class Users implements OptionTypeProviderInterface )] private string $value = 'id'; + #[Section('configuration')] #[Input\DynamicSelect( label: 'Order By', source: 'api/elements/users/fields?order', )] private string $orderBy = 'id'; + #[Section('configuration')] #[Input\Select( options: [ ['value' => 'asc', 'label' => 'Ascending'], diff --git a/packages/plugin/src/Fields/SectionIcons/advanced.svg b/packages/plugin/src/Fields/SectionIcons/advanced.svg new file mode 100644 index 000000000..ad8247974 --- /dev/null +++ b/packages/plugin/src/Fields/SectionIcons/advanced.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/plugin/src/Fields/Traits/FileUploadTrait.php b/packages/plugin/src/Fields/Traits/FileUploadTrait.php index b14646cdc..af7108e00 100644 --- a/packages/plugin/src/Fields/Traits/FileUploadTrait.php +++ b/packages/plugin/src/Fields/Traits/FileUploadTrait.php @@ -14,6 +14,7 @@ use Solspace\Freeform\Attributes\Property\Flag; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; use Solspace\Freeform\Attributes\Property\ValueGenerator; use Solspace\Freeform\Fields\Implementations\Options\AssetSourceOptions; use Solspace\Freeform\Fields\Implementations\ValueGenerators\AssetSourceGenerator; @@ -21,6 +22,7 @@ trait FileUploadTrait { + #[Section('configuration')] #[Flag(FileUploadInterface::FLAG_GLOBAL_PROPERTY)] #[ValueGenerator(AssetSourceGenerator::class)] #[Input\Select( @@ -31,6 +33,7 @@ trait FileUploadTrait )] protected ?int $assetSourceId = null; + #[Section('configuration')] #[Flag(FileUploadInterface::FLAG_GLOBAL_PROPERTY)] #[Input\Text( label: 'Upload Location', diff --git a/packages/plugin/src/Fields/Traits/OneLineTrait.php b/packages/plugin/src/Fields/Traits/OneLineTrait.php index f44de03fa..7eb947bdf 100644 --- a/packages/plugin/src/Fields/Traits/OneLineTrait.php +++ b/packages/plugin/src/Fields/Traits/OneLineTrait.php @@ -3,9 +3,11 @@ namespace Solspace\Freeform\Fields\Traits; use Solspace\Freeform\Attributes\Property\Input; +use Solspace\Freeform\Attributes\Property\Section; trait OneLineTrait { + #[Section('configuration')] #[Input\Boolean('Show all options on one line')] protected bool $oneLine = false; diff --git a/packages/plugin/src/Library/Helpers/CipherHelper.php b/packages/plugin/src/Library/Helpers/CipherHelper.php new file mode 100644 index 000000000..73d4d9270 --- /dev/null +++ b/packages/plugin/src/Library/Helpers/CipherHelper.php @@ -0,0 +1,19 @@ +settings->getSettingsModel()->getSessionContextSecret(); + + $key = $secret ?: \Craft::$app->getConfig()->getGeneral()->securityKey; + $key .= $form->getUid(); + + return $key; + } +} diff --git a/packages/plugin/src/Resources/js/client/client.js b/packages/plugin/src/Resources/js/client/client.js index ca17330e1..21d82cbc5 100644 --- a/packages/plugin/src/Resources/js/client/client.js +++ b/packages/plugin/src/Resources/js/client/client.js @@ -1 +1 @@ -!function(){var e,t,n,r={90729:function(e,t,n){"use strict";n.r(t);var r,o=n(2784);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t=n},isAtMost:function(e){var t=a.editions.tiers,n=t.indexOf(e);if(-1===n)throw new Error("Unknown edition: ".concat(e));return t.indexOf(a.editions.edition)<=n}})});t.default=a},84307:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(75831)},59071:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.queryClient=void 0;var r=n(79634);t.queryClient=new r.QueryClient({defaultOptions:{queries:{cacheTime:6e5,retry:!1,refetchOnWindowFocus:!1}}})},25201:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AppWrapper=void 0;var i,a=o(n(55721));t.AppWrapper=a.default.div(i||(i=r([""],[""])))},85754:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(76034),a=n(21285),l=n(25201);n(90367);t.default=function(){return(0,a.useFreeformNavigation)(),o.default.createElement(l.AppWrapper,{id:"freeform-client-app"},o.default.createElement(i.Outlet,null))}},20811:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o10?"":"& > li {\n > label {\n padding-left: ".concat(10*e+20,"px;\n\n &.has-children {\n padding-left: ").concat(12*(e+1),"px;\n }\n }\n\n > ul {\n ").concat(p(e+1),"\n }\n }")};t.List=f.default.ul(i||(i=r(["\n margin: 0;\n padding: 0;\n\n ul {\n ","\n }\n"],["\n margin: 0;\n padding: 0;\n\n ul {\n ","\n }\n"])),p()),t.CheckMark=f.default.div(a||(a=r(["\n position: absolute;\n left: 8px;\n top: 7px;\n\n width: 16px;\n font-size: 18px;\n font-weight: bold;\n\n fill: ",";\n"],["\n position: absolute;\n left: 8px;\n top: 7px;\n\n width: 16px;\n font-size: 18px;\n font-weight: bold;\n\n fill: ",";\n"])),s.colors.gray500),t.LabelIcon=f.default.div(l||(l=r([""],[""]))),t.LabelContainer=f.default.div(u||(u=r(["\n display: inline-flex;\n justify-content: start;\n align-items: center;\n gap: ",";\n\n > svg {\n width: 16px;\n height: 16px;\n }\n"],["\n display: inline-flex;\n justify-content: start;\n align-items: center;\n gap: ",";\n\n > svg {\n width: 16px;\n height: 16px;\n }\n"])),s.spacings.sm),t.Label=f.default.label(c||(c=r(["\n display: block;\n padding: 5px 14px 5px 30px;\n\n user-select: none;\n\n &:hover {\n cursor: pointer;\n background-color: ",";\n color: ",";\n\n "," {\n fill: ",";\n }\n }\n\n &.has-children {\n position: relative;\n\n padding-left: 12px;\n\n text-transform: uppercase;\n font-weight: bold;\n\n font-size: 12px;\n\n color: #7d8c9d;\n fill: currentColor;\n\n > "," {\n position: relative;\n\n padding: 0 10px;\n background-color: ",";\n\n z-index: 1;\n }\n\n &:hover {\n cursor: default;\n background-color: transparent;\n }\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 13px;\n\n height: 1px;\n background-color: ",";\n }\n }\n"],["\n display: block;\n padding: 5px 14px 5px 30px;\n\n user-select: none;\n\n &:hover {\n cursor: pointer;\n background-color: ",";\n color: ",";\n\n "," {\n fill: ",";\n }\n }\n\n &.has-children {\n position: relative;\n\n padding-left: 12px;\n\n text-transform: uppercase;\n font-weight: bold;\n\n font-size: 12px;\n\n color: #7d8c9d;\n fill: currentColor;\n\n > "," {\n position: relative;\n\n padding: 0 10px;\n background-color: ",";\n\n z-index: 1;\n }\n\n &:hover {\n cursor: default;\n background-color: transparent;\n }\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 13px;\n\n height: 1px;\n background-color: ",";\n }\n }\n"])),s.colors.gray500,s.colors.white,t.CheckMark,s.colors.white,t.LabelContainer,s.colors.gray050,s.colors.gray200),t.Item=f.default.li(d||(d=r(["\n position: relative;\n\n &.focused {\n > "," {\n background-color: #cfd8e3;\n color: ",";\n\n > "," {\n fill: ",";\n }\n }\n }\n\n &.has-children {\n > "," {\n }\n }\n\n &.empty {\n > "," {\n color: ",";\n font-style: italic;\n\n &:hover {\n color: ",";\n }\n }\n\n &.focused {\n > "," {\n background-color: transparent;\n\n &:hover {\n background-color: ",";\n color: ",";\n }\n\n > "," {\n fill: transparent;\n }\n }\n }\n }\n"],["\n position: relative;\n\n &.focused {\n > "," {\n background-color: #cfd8e3;\n color: ",";\n\n > "," {\n fill: ",";\n }\n }\n }\n\n &.has-children {\n > "," {\n }\n }\n\n &.empty {\n > "," {\n color: ",";\n font-style: italic;\n\n &:hover {\n color: ",";\n }\n }\n\n &.focused {\n > "," {\n background-color: transparent;\n\n &:hover {\n background-color: ",";\n color: ",";\n }\n\n > "," {\n fill: transparent;\n }\n }\n }\n }\n"])),t.Label,s.colors.gray700,t.CheckMark,s.colors.gray700,t.Label,t.Label,s.colors.gray300,s.colors.white,t.Label,s.colors.gray500,s.colors.white,t.CheckMark)},29466:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Options=void 0;var l=i(n(2784)),u=a(n(26457)),c=a(n(90729)),d=n(41187);t.Options=function(e){var n=e.value,r=e.options,o=e.query,i=e.focusIndex,a=e.onChange,s=(0,l.useRef)([]);return(0,l.useEffect)((function(){s.current[i]&&s.current[i].scrollIntoView({behavior:"smooth",block:"nearest"})}),[i]),l.default.createElement(d.List,null,r&&r.map((function(e,r){var f,p,v;return"value"in e&&(f=e.value,p=e.shadowIndex),"children"in e&&(v=e.children),l.default.createElement(d.Item,{ref:function(e){void 0!==p&&(s.current[p]=e)},onClick:function(e){e.stopPropagation(),void 0!==f&&a&&a(f)},key:r,className:(0,u.default)(void 0!==v&&"has-children",f===n&&"selected",""===f&&"empty",p===i&&"focused")},l.default.createElement(d.Label,{className:(0,u.default)(void 0!==v&&"has-children")},!v&&n===f&&l.default.createElement(d.CheckMark,null,l.default.createElement(c.default,null)),l.default.createElement(d.LabelContainer,null,e.icon&&e.icon,e.label)),v&&l.default.createElement(t.Options,{options:v,value:n,query:o,focusIndex:i,onChange:a}))})))}},47022:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownWrapper=t.CloseButton=t.DropdownRollout=t.SpinnerWrapper=t.CurrentValue=t.ListWrapper=t.Search=void 0;var i,a,l,u,c,d,s,f=n(79066),p=n(80159),v=n(51362),m=o(n(55721));t.Search=m.default.input(i||(i=r(["\n width: 100%;\n padding: 7px 30px 7px 10px;\n\n border-bottom: 1px solid ",";\n\n &:focus,\n &:active,\n &:hover {\n box-shadow: none;\n outline: none;\n }\n"],["\n width: 100%;\n padding: 7px 30px 7px 10px;\n\n border-bottom: 1px solid ",";\n\n &:focus,\n &:active,\n &:hover {\n box-shadow: none;\n outline: none;\n }\n"])),v.colors.hairline),t.ListWrapper=m.default.div(a||(a=r(["\n max-height: 300px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ",";\n"],["\n max-height: 300px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ",";\n"])),p.scrollBar),t.CurrentValue=m.default.div(l||(l=r(["\n cursor: pointer;\n position: relative;\n\n display: flex;\n justify-content: start;\n gap: ",";\n\n background-color: #dfe5ec;\n border-radius: ",";\n\n padding: 7px 22px 7px 10px;\n\n > span {\n min-height: 20px;\n }\n\n &:hover {\n box-shadow: var(--focus-ring);\n outline-color: transparent;\n }\n\n &:after {\n content: '';\n position: absolute;\n top: calc(50% - 5px);\n right: 9px;\n\n display: block;\n width: 7px;\n height: 7px;\n\n opacity: 0.8;\n border: solid;\n border-width: 0 2px 2px 0;\n\n font-size: 0;\n\n transform: rotate(45deg);\n\n user-select: none;\n pointer-events: none;\n }\n"],["\n cursor: pointer;\n position: relative;\n\n display: flex;\n justify-content: start;\n gap: ",";\n\n background-color: #dfe5ec;\n border-radius: ",";\n\n padding: 7px 22px 7px 10px;\n\n > span {\n min-height: 20px;\n }\n\n &:hover {\n box-shadow: var(--focus-ring);\n outline-color: transparent;\n }\n\n &:after {\n content: '';\n position: absolute;\n top: calc(50% - 5px);\n right: 9px;\n\n display: block;\n width: 7px;\n height: 7px;\n\n opacity: 0.8;\n border: solid;\n border-width: 0 2px 2px 0;\n\n font-size: 0;\n\n transform: rotate(45deg);\n\n user-select: none;\n pointer-events: none;\n }\n"])),v.spacings.sm,v.borderRadius.lg),t.SpinnerWrapper=m.default.div(u||(u=r(["\n > svg {\n fill: currentColor;\n width: 20px;\n height: 20px;\n }\n"],["\n > svg {\n fill: currentColor;\n width: 20px;\n height: 20px;\n }\n"]))),t.DropdownRollout=(0,m.default)(f.animated.div)(c||(c=r(["\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n\n overflow: hidden;\n"],["\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n\n overflow: hidden;\n"])),v.colors.gray050,v.borderRadius.lg,v.shadows.container),t.CloseButton=m.default.button(d||(d=r(["\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 30px;\n height: 34px;\n\n cursor: pointer;\n\n &:hover {\n background-color: ",";\n }\n"],["\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 30px;\n height: 34px;\n\n cursor: pointer;\n\n &:hover {\n background-color: ",";\n }\n"])),v.colors.gray050),t.DropdownWrapper=m.default.div(s||(s=r(["\n position: relative;\n\n &.open {\n "," {\n display: block;\n }\n\n "," {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n\n &:hover {\n box-shadow: none;\n outline-color: transparent;\n }\n }\n }\n"],["\n position: relative;\n\n &.open {\n "," {\n display: block;\n }\n\n "," {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n\n &:hover {\n box-shadow: none;\n outline-color: transparent;\n }\n }\n }\n"])),t.DropdownRollout,t.CurrentValue)},4500:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Dropdown=void 0;var l=i(n(2784)),u=n(11863),c=a(n(81606)),d=n(31070),s=n(9726),f=n(22920),p=a(n(26457)),v=n(13596),m=a(n(75456)),h=n(71408),g=n(29466),b=n(47022);t.Dropdown=function(e){var t=e.emptyOption,n=e.value,r=e.options,o=e.onChange,i=e.loading,a=void 0!==i&&i,y=(0,l.useState)(!1),_=y[0],x=y[1],w=(0,l.useState)(""),O=w[0],E=w[1],P=(0,l.useState)(0),j=P[0],M=P[1],k=(0,l.useRef)(null),C=(0,l.useRef)(null),S=(0,s.useClickOutside)({callback:function(){return x(!1)},isEnabled:_,excludeClassNames:["dropdown-rollout"]}),D=(0,u.useEditorAnimations)({wrapper:S.current,editor:C.current,isEditing:_}).editorAnimation,F=(0,l.useCallback)((function(){a||x(!_)}),[a,_]),T=(0,h.useFilteredOptions)(r,O,t),R=T[0],L=T[1],A=(0,l.useMemo)((function(){return(0,h.findLabelByValue)(r,n)||t}),[r,n,a]),B=(0,l.useMemo)((function(){return(0,h.findShadowIndexByValue)(R,n)}),[r,n,a]);(0,d.useEscapeStack)((function(){return x(!1)}),_),(0,f.useOnKeypress)({meetsCondition:_,type:"keydown",callback:function(e){"ArrowDown"===e.key&&j0&&M((function(e){return e-1}))}},[j,L]),(0,f.useOnKeypress)({meetsCondition:_,type:"keyup",callback:function(e){if("Enter"===e.key){var t=(0,h.findValueByShadowIndex)(R,j);o&&o(t),x(!1)}}},[R,j]),(0,l.useEffect)((function(){a&&_&&x(!1)}),[a]),(0,l.useEffect)((function(){var e;_?(null===(e=k.current)||void 0===e||e.focus(),M(B||0)):E("")}),[_,O]);var W=(0,l.useCallback)((function(e){o&&o(e),x(!1)}),[o]);return l.default.createElement(b.DropdownWrapper,{ref:S,className:(0,p.default)(_&&"open"),onClick:F},l.default.createElement(b.CurrentValue,{className:(0,p.default)(a&&"disabled")},l.default.createElement("span",null,A),a&&l.default.createElement(b.SpinnerWrapper,null,l.default.createElement(c.default,null))),l.default.createElement(v.PopUpPortal,null,_&&l.default.createElement(b.DropdownRollout,{className:"dropdown-rollout",ref:C,style:D},l.default.createElement(b.CloseButton,null,l.default.createElement(m.default,null)),l.default.createElement(b.Search,{placeholder:"Search...",ref:k,value:O,onClick:function(e){return e.stopPropagation()},onKeyDown:function(e){"Escape"===e.key&&(e.preventDefault(),x(!1)),["ArrowUp","ArrowDown"].includes(e.key)&&e.preventDefault()},onChange:function(e){return E(e.target.value)}}),l.default.createElement(b.ListWrapper,null,l.default.createElement(g.Options,{options:R,value:n,focusIndex:j,onChange:W})))))}},39384:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HelpText=void 0;var i,a=o(n(2784)),l=n(51362),u=o(n(55721)).default.div(i||(i=r(["\n font-style: italic;\n font-size: 12px;\n line-height: 18px;\n padding-top: 6px;\n color: ",";\n"],["\n font-style: italic;\n font-size: 12px;\n line-height: 18px;\n padding-top: 6px;\n color: ",";\n"])),l.colors.gray300);t.HelpText=function(e){var t=e.children;return a.default.createElement(u,null,t)}},13596:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopUpPortal=void 0;var r=n(28316),o=n(53084);t.PopUpPortal=function(e){var t=e.children,n=(0,o.usePortal)().element;return n?(0,r.createPortal)(t,n):null}},65631:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRemoveAnimation=void 0;var r=n(79066),o=n(51362);t.useRemoveAnimation=function(e){var t=e.active,n=e.hovering;return(0,r.useSpring)({opacity:t?1:0,background:n?o.colors.error:"transparent",fill:n?"#fff":o.colors.gray300,scale:n?1.2:1,rotate:t?0:30,config:function(e){switch(e){case"background":case"color":return{tension:330,friction:20};default:return{tension:330,friction:15}}}})}},6403:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveButtonWrapper=void 0;var i,a=n(79066),l=o(n(55721));t.RemoveButtonWrapper=(0,l.default)(a.animated.button)(i||(i=r(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 20px;\n height: 20px;\n\n font-size: 16px;\n\n border-radius: 50%;\n padding: 3px;\n\n svg {\n color: currentColor;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 20px;\n height: 20px;\n\n font-size: 16px;\n\n border-radius: 50%;\n padding: 3px;\n\n svg {\n color: currentColor;\n }\n"])))},54509:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveButton=void 0;var l=i(n(2784)),u=n(23934),c=a(n(83247)),d=n(65631),s=n(6403);t.RemoveButton=function(e){var t=e.active,n=e.onClick,r=(0,l.useRef)(null),o=(0,u.useHover)(r),i=(0,d.useRemoveAnimation)({active:t,hovering:o});return l.default.createElement(s.RemoveButtonWrapper,{ref:r,style:i,onClick:function(e){e.stopPropagation(),n&&n()}},l.default.createElement(c.default,null))}},63005:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyBlockWrapper=t.Subtitle=t.Title=t.Icon=void 0;var i,a,l,u,c=n(51362),d=o(n(55721));t.Icon=d.default.div(i||(i=r(["\n font-size: 20rem;\n margin: 0 0 1.5rem;\n"],["\n font-size: 20rem;\n margin: 0 0 1.5rem;\n"]))),t.Title=d.default.h2(a||(a=r(["\n margin: 0;\n padding: 0;\n\n font-size: 2.8rem;\n color: ",";\n"],["\n margin: 0;\n padding: 0;\n\n font-size: 2.8rem;\n color: ",";\n"])),c.colors.gray500),t.Subtitle=d.default.p(l||(l=r(["\n margin: 0;\n padding: 0;\n\n font-size: 1rem;\n color: ",";\n\n &:not(:last-child) {\n padding-bottom: 1.5rem;\n }\n"],["\n margin: 0;\n padding: 0;\n\n font-size: 1rem;\n color: ",";\n\n &:not(:last-child) {\n padding-bottom: 1.5rem;\n }\n"])),c.colors.gray300),t.EmptyBlockWrapper=d.default.div(u||(u=r(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 5px;\n\n height: 100%;\n\n > * {\n position: relative;\n top: -40px;\n }\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 5px;\n\n height: 100%;\n\n > * {\n position: relative;\n top: -40px;\n }\n"])))},19002:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyBlock=void 0;var o=r(n(2784)),i=n(63005);t.EmptyBlock=function(e){var t=e.title,n=e.subtitle,r=e.icon,a=e.children;return o.default.createElement(i.EmptyBlockWrapper,null,r&&o.default.createElement(i.Icon,null,r),t&&o.default.createElement(i.Title,null,t),n&&o.default.createElement(i.Subtitle,null,n),a)}},12830:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiErrorsBlock=void 0;var o=r(n(2784));t.ApiErrorsBlock=function(e){var t,n,r=e.category,i=e.handle,a=null===(n=null===(t=e.error.errors)||void 0===t?void 0:t[r])||void 0===n?void 0:n[i];return a?o.default.createElement("ul",{className:"errors"},a.map((function(e,t){return o.default.createElement("li",{key:t},o.default.createElement("span",{className:"visually-hidden"},"Error:"),e)}))):null}},90163:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=void 0;var a=i(n(2784)),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hasError:!1},n}return o(t,e),t.getDerivedStateFromError=function(){return{hasError:!0}},t.prototype.componentDidCatch=function(e,t){console.error(e,t)},t.prototype.render=function(){return this.state.hasError?a.default.createElement("div",null,this.props.message):this.props.children},t}(a.default.Component);t.ErrorBoundary=l},79857:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useRenderContext=t.RenderContextProvider=void 0;var a=n(2784),l=i(n(2784)),u=(0,l.createContext)({size:"normal"});t.RenderContextProvider=function(e){var t=e.size,n=e.children;return l.default.createElement(u.Provider,{value:{size:null!=t?t:"normal"}},n)};t.useRenderContext=function(){return(0,a.useContext)(u)}},42954:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeContainer=t.AttributeTabContent=t.AttributeTypeTabs=t.AttributeEditorWrapper=void 0;var i,a,l,u,c=n(64316),d=n(51362),s=o(n(55721)),f=n(10042);t.AttributeEditorWrapper=(0,s.default)(f.PreviewEditor)(i||(i=r(["\n gap: 0;\n padding: 0;\n"],["\n gap: 0;\n padding: 0;\n"]))),t.AttributeTypeTabs=(0,s.default)(c.TabsWrapper)(a||(a=r(["\n width: 100%;\n overflow: hidden;\n align-self: flex-start;\n\n padding: "," "," 0;\n box-shadow: ",";\n"],["\n width: 100%;\n overflow: hidden;\n align-self: flex-start;\n\n padding: "," "," 0;\n box-shadow: ",";\n"])),d.spacings.md,d.spacings.md,d.shadows.bottom),t.AttributeTabContent=s.default.div(l||(l=r(["\n padding: ",";\n\n background: ",";\n"],["\n padding: ",";\n\n background: ",";\n"])),d.spacings.md,d.colors.white),t.AttributeContainer=(0,s.default)(f.PreviewEditorContainer)(u||(u=r([""],[""])))},64276:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributesEditor=void 0;var l=i(n(2784)),u=n(39384),c=a(n(52179)),d=a(n(26457)),s=a(n(2072)),f=n(57143),p=n(69412),v=n(42954),m=n(54243),h=n(35934);t.AttributesEditor=function(e){var t=e.property,n=e.attributes,r=e.updateValue,o=t.tabs||[],i=(0,l.useState)(o.at(0)),a=i[0],g=i[1],b=Object.entries(n).find((function(e){return e[0]===a.handle}))||[a.handle,[]],y=b[0],_=b[1],x=(0,f.useCellNavigation)(_.length,2),w=x.activeCell,O=x.setActiveCell,E=x.setCellRef,P=x.keyPressHandler;if((0,l.useEffect)((function(){O(0,0)}),[y]),!y||!_)return null;var j=function(e,t,o){O(void 0!==o?o+1:e,t),r((0,h.addAttribute)(y,n,void 0!==o?o:_.length-1))};return l.default.createElement(v.AttributeEditorWrapper,null,l.default.createElement(v.AttributeTypeTabs,null,t.tabs&&t.tabs.map((function(e){return l.default.createElement("a",{key:e.handle,className:(0,d.default)(e===a&&"active"),onClick:function(){return g(e)}},e.label)}))),l.default.createElement(v.AttributeTabContent,null,l.default.createElement(m.InputPreview,{tab:a,attributes:_}),l.default.createElement(v.AttributeContainer,null,l.default.createElement(p.TabularOptions,null,l.default.createElement("tbody",null,!_.length&&l.default.createElement(p.Row,null,l.default.createElement(p.Cell,null,l.default.createElement(p.Input,{type:"text",placeholder:(0,s.default)("Attribute"),onFocus:function(){j(0,0)}})),l.default.createElement(p.Cell,null,l.default.createElement(p.Input,{type:"text",placeholder:(0,s.default)("Value"),onFocus:function(){j(0,1)}}))),_.map((function(e,t){var o=e[0],i=e[1];return l.default.createElement(p.Row,{key:t},l.default.createElement(p.Cell,null,l.default.createElement(p.Input,{type:"text",value:String(o),placeholder:(0,s.default)("Attribute"),autoFocus:w==="".concat(t,":0"),ref:function(e){return E(e,t,0)},onFocus:function(){return O(t,0)},onKeyDown:P({onEnter:function(e){j(e.shiftKey?t:_.length,0,e.shiftKey?t:void 0)}}),onChange:function(e){r((0,h.updateAttribute)(t,y,[e.target.value,i],n))}})),l.default.createElement(p.Cell,null,l.default.createElement(p.Input,{type:"text",value:String(i),placeholder:(0,s.default)("Value"),autoFocus:w==="".concat(t,":1"),ref:function(e){return E(e,t,1)},onFocus:function(){return O(t,1)},onKeyDown:P({onEnter:function(e){j(e.shiftKey?t:_.length,1,e.shiftKey?t:void 0)}}),onChange:function(e){r((0,h.updateAttribute)(t,y,[o,e.target.value],n))}})),l.default.createElement(p.Cell,{$tiny:!0},l.default.createElement(p.Button,{tabIndex:-1,onClick:function(){r((0,h.deleteAttribute)(t,y,n)),O(Math.max(t-1,0),0)}},l.default.createElement(c.default,null))))}))))),l.default.createElement("br",null),l.default.createElement(u.HelpText,null,l.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,s.default)("Press enter while editing a cell to add a new row.")}}))))}},37562:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Value=t.Quote=t.Operator=t.Name=t.CodeBlock=void 0;var i,a,l,u,c,d=n(51362),s=o(n(55721));t.CodeBlock=s.default.div(i||(i=r(["\n position: relative;\n\n padding: "," ",";\n\n font-family: monospace;\n\n background: ",";\n border: 1px solid ",";\n border-bottom: none;\n border-radius: "," "," 0 0;\n"],["\n position: relative;\n\n padding: "," ",";\n\n font-family: monospace;\n\n background: ",";\n border: 1px solid ",";\n border-bottom: none;\n border-radius: "," "," 0 0;\n"])),d.spacings.sm,d.spacings.md,d.colors.gray050,d.colors.hairline,d.borderRadius.lg,d.borderRadius.lg),t.Name=s.default.span(a||(a=r(["\n color: ",";\n"],["\n color: ",";\n"])),d.colors.teal700),t.Operator=s.default.span(l||(l=r(["\n color: ",";\n"],["\n color: ",";\n"])),d.colors.gray300),t.Quote=s.default.span(u||(u=r(["\n &:before {\n content: '\"';\n color: ",";\n }\n"],["\n &:before {\n content: '\"';\n color: ",";\n }\n"])),d.colors.gray300),t.Value=s.default.span(c||(c=r(["\n color: ",";\n"],["\n color: ",";\n"])),d.colors.red300)},54243:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputPreview=void 0;var o=r(n(2784)),i=n(37562),a=n(35934);t.InputPreview=function(e){var t=e.tab,n=e.attributes;return o.default.createElement(i.CodeBlock,null,"<",t.previewTag,(0,a.attributesToArray)(n).map((function(e,t){var n=e[0],r=e[1];return o.default.createElement("span",{key:t},o.default.createElement(i.Name,null," ",n),!!r&&o.default.createElement(o.default.Fragment,null,o.default.createElement(i.Operator,null,"="),o.default.createElement(i.Quote,null),o.default.createElement(i.Value,null,r),o.default.createElement(i.Quote,null)))}))," />")}},35934:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n svg {\n width: 100%;\n height: 100%;\n\n color: ",";\n }\n"],["\n position: absolute;\n top: 0;\n right: -25px;\n\n opacity: 0;\n\n width: 20px;\n height: 20px;\n\n > svg {\n width: 100%;\n height: 100%;\n\n color: ",";\n }\n"])),d.colors.gray400),t.RemoveButton=(0,s.default)(c.animated.button)(l||(l=r(["\n position: absolute;\n top: 0;\n right: -50px;\n\n opacity: 0;\n\n width: 20px;\n height: 20px;\n\n > svg {\n width: 100%;\n height: 100%;\n\n color: ",";\n }\n"],["\n position: absolute;\n top: 0;\n right: -50px;\n\n opacity: 0;\n\n width: 20px;\n height: 20px;\n\n > svg {\n width: 100%;\n height: 100%;\n\n color: ",";\n }\n"])),d.colors.gray400),t.LabelElement=(0,s.default)(c.animated.h1)(u||(u=r(["\n cursor: pointer;\n\n min-height: 10px;\n\n margin: 0 0 0 -8px;\n padding: "," 40px "," ",";\n\n border: 0;\n border-radius: ",";\n\n > span {\n position: relative;\n display: inline-block;\n\n > span:empty:after {\n content: 'No Title';\n\n color: ",";\n font-style: italic;\n }\n }\n"],["\n cursor: pointer;\n\n min-height: 10px;\n\n margin: 0 0 0 -8px;\n padding: "," 40px "," ",";\n\n border: 0;\n border-radius: ",";\n\n > span {\n position: relative;\n display: inline-block;\n\n > span:empty:after {\n content: 'No Title';\n\n color: ",";\n font-style: italic;\n }\n }\n"])),d.spacings.sm,d.spacings.sm,d.spacings.sm,d.borderRadius.lg,d.colors.gray300)},9061:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=i(n(2784)),u=n(11767),c=a(n(26457)),d=a(n(71059)),s=n(88123),f=n(31175);t.default=function(e){var t=e.value,n=e.property,r=e.errors,o=e.updateValue,i=(0,l.useState)(!1),a=i[0],p=i[1],v=(0,l.useState)(!1),m=v[0],h=v[1],g=n.handle,b=(0,l.useRef)(null),y=(0,s.useLabelAnimation)(a),_=(0,s.useEditButtonAnimations)(a);return l.default.createElement(f.EditableLabelWrapper,{className:(0,c.default)((null==r?void 0:r.length)>0&&"errors")},m&&l.default.createElement("input",{id:g,ref:b,type:"text",className:"text fullwidth",value:t||"",onChange:function(e){return o(e.target.value)},onBlur:function(){return h(!1)},onKeyDown:function(e){"Enter"===e.key&&h(!1)}}),!m&&l.default.createElement(f.LabelElement,{style:y,onClick:function(){h(!0),p(!1),setTimeout((function(){var e;null===(e=b.current)||void 0===e||e.focus()}),3)},onMouseEnter:function(){return p(!0)},onMouseLeave:function(){return p(!1)}},l.default.createElement("span",null,l.default.createElement("span",null,t),l.default.createElement(f.EditButton,{style:_},l.default.createElement(d.default,null)))),l.default.createElement(u.FormErrorList,{errors:r}))}},78027:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MaxInput=t.MinInput=t.Wrapper=void 0;var i=o(n(55721));t.Wrapper=i.default.div(a||(a=r(["\n display: flex;\n"],["\n display: flex;\n"])));var a,l,u,c,d=i.default.input(l||(l=r(["\n width: 100%;\n --focus-ring: 0;\n"],["\n width: 100%;\n --focus-ring: 0;\n"])));t.MinInput=(0,i.default)(d)(u||(u=r(["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n"],["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n"]))),t.MaxInput=(0,i.default)(d)(c||(c=r(["\n border-left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n"],["\n border-left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n"])))},79174:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(46425),a=n(78027);t.default=function(e){var t,n=e.value,r=e.property,l=e.errors,u=e.updateValue,c=e.context,d=n||[null,null],s=d[0],f=d[1],p=(null===(t=c.properties)||void 0===t?void 0:t.allowNegative)?null:0;return o.default.createElement(i.Control,{property:r,errors:l},o.default.createElement(a.Wrapper,null,o.default.createElement("div",null,o.default.createElement(a.MinInput,{id:"min",value:null===s?"":s,type:"number",min:p,className:"text",placeholder:"Min",onChange:function(e){var t=e.target,n=""!==t.value?Number(t.value):null;u([n,f])}})),o.default.createElement("div",null,o.default.createElement(a.MaxInput,{id:"max",value:null===f?"":f,type:"number",min:p,className:"text",placeholder:"Max",onChange:function(e){var t=e.target,n=""!==t.value?Number(t.value):null;u([s,n])}}))))}},86082:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldSelect=void 0;var o=r(n(2784)),i=n(4500),a=n(68991),l=r(n(2072));t.FieldSelect=function(e){var t=e.value,n=e.onChange,r=(0,a.useFieldOptionCollection)();return o.default.createElement(i.Dropdown,{options:r,emptyOption:(0,l.default)("Do not map this field"),value:t,onChange:n})}},47815:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n svg {\n fill: ",";\n\n animation: "," 2s infinite;\n transform-origin: 50% 50%;\n }\n"],["\n position: absolute;\n top: 0;\n right: 0;\n\n font-size: 16px;\n\n &[disabled] > svg {\n fill: ",";\n\n animation: "," 2s infinite;\n transform-origin: 50% 50%;\n }\n"])),l.colors.gray300,i.animations.spinner),t.MappingWrapper=u.default.div(d||(d=r(["\n display: grid;\n align-items: center;\n gap: ",";\n\n grid-template-columns: 1.5fr min-content 1fr;\n\n padding: 2px 0;\n\n > div:first-child {\n flex-grow: 1;\n }\n\n > div:last-child {\n flex-basis: 300px;\n }\n"],["\n display: grid;\n align-items: center;\n gap: ",";\n\n grid-template-columns: 1.5fr min-content 1fr;\n\n padding: 2px 0;\n\n > div:first-child {\n flex-grow: 1;\n }\n\n > div:last-child {\n flex-basis: 300px;\n }\n"])),l.spacings.sm),t.MappingContainer=u.default.div(s||(s=r(["\n max-width: 1000px;\n max-height: 454px;\n\n overflow-y: auto;\n overflow-x: hidden;\n\n border: 1px solid rgb(205 216 228 / 50%);\n border-radius: 5px;\n\n padding: "," ",";\n\n ",";\n"],["\n max-width: 1000px;\n max-height: 454px;\n\n overflow-y: auto;\n overflow-x: hidden;\n\n border: 1px solid rgb(205 216 228 / 50%);\n border-radius: 5px;\n\n padding: "," ",";\n\n ",";\n"])),l.spacings.sm,l.spacings.lg,a.scrollBar),t.SourceField=u.default.div(f||(f=r(["\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 50%;\n\n display: block;\n\n width: 100%;\n height: 1px;\n\n background-color: ",";\n }\n\n > span {\n position: relative;\n z-index: 2;\n\n display: block;\n padding: 0 10px 0 0;\n width: fit-content;\n\n background-color: white;\n }\n\n &.required > span {\n &:after {\n content: '*';\n position: relative;\n right: -2px;\n\n color: ",";\n }\n }\n"],["\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 50%;\n\n display: block;\n\n width: 100%;\n height: 1px;\n\n background-color: ",";\n }\n\n > span {\n position: relative;\n z-index: 2;\n\n display: block;\n padding: 0 10px 0 0;\n width: fit-content;\n\n background-color: white;\n }\n\n &.required > span {\n &:after {\n content: '*';\n position: relative;\n right: -2px;\n\n color: ",";\n }\n }\n"])),l.colors.gray100,l.colors.error),t.TypeButtonGroup=u.default.div(p||(p=r(["\n display: flex;\n"],["\n display: flex;\n"])));var c,d,s,f,p,v,m="8px";t.TypeButton=u.default.button(v||(v=r(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 34px;\n height: 28px;\n\n fill: ",";\n background-color: ",";\n\n &.active {\n fill: ",";\n background-color: ",";\n }\n\n &:first-child {\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n }\n\n &:last-child {\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n }\n\n svg {\n width: 16px;\n height: 16px;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 34px;\n height: 28px;\n\n fill: ",";\n background-color: ",";\n\n &.active {\n fill: ",";\n background-color: ",";\n }\n\n &:first-child {\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n }\n\n &:last-child {\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n }\n\n svg {\n width: 16px;\n height: 16px;\n }\n"])),l.colors.gray550,l.colors.elements.dropdown,l.colors.gray050,l.colors.gray550,m,m,m,m)},49719:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=r(n(76257)),a=n(46425),l=n(79634),u=r(n(60014)),c=r(n(78376)),d=n(47815),s=n(37774),f=n(4562);t.default=function(e){var t=e.value,n=void 0===t?{}:t,r=e.property,p=e.errors,v=e.updateValue,m=e.context,h={};r.parameterFields&&Object.entries(r.parameterFields).forEach((function(e){var t=e[0],n=e[1];h[n]=(0,f.extractParameter)(m,t)}));var g=(0,l.useQuery)(["field-mapping",r.source,h],(function(){return u.default.get(r.source,{params:h}).then((function(e){return e.data}))}),{staleTime:1/0,cacheTime:1/0}),b=g.data,y=g.isFetching,_=g.refetch;return o.default.createElement(a.Control,{property:r,errors:p},o.default.createElement(s.RefreshButton,{className:"btn",disabled:y,onClick:function(){h.refresh="true",_(),delete h.refresh}},o.default.createElement(c.default,null)),b&&o.default.createElement(d.FieldMappingController,{sources:b,mapping:n,updateValue:v}),!b&&y&&o.default.createElement("div",null,o.default.createElement(i.default,{width:"40%"}),o.default.createElement(i.default,{width:"35%"}),o.default.createElement(i.default,{width:"42%"})))}},4562:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractParameter=void 0;t.extractParameter=function(e,t){for(var n=e,r=0,o=t.split(".");r svg {\n position: absolute;\n left: 0;\n top: 2px;\n\n width: 18px;\n height: 18px;\n }\n"],["\n position: relative;\n\n padding: 0 0 0 24px;\n\n font-size: 12px;\n color: ",";\n\n max-lines: 1;\n max-height: 60px;\n overflow: hidden;\n\n > svg {\n position: absolute;\n left: 0;\n top: 2px;\n\n width: 18px;\n height: 18px;\n }\n"])),d.colors.gray300),t.Id=s.default.div(u||(u=r(["\n padding: 2px 0 1px;\n font-size: 10px !important;\n color: ",";\n"],["\n padding: 2px 0 1px;\n font-size: 10px !important;\n color: ",";\n"])),d.colors.gray300)},74292:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSelectionAnimations=t.useEditorAnimations=void 0;var r=n(79066);t.useEditorAnimations=function(e,t){var n=210;return t>6?n=360:t>3&&(n=280),(0,r.useSpring)({height:e?n:36,config:{tension:500,friction:e?26:40}})};t.useSelectionAnimations=function(e){return(0,r.useSpring)({opacity:e?1:0,overflowY:e?"auto":"hidden",config:{tension:500}})}},26163:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useNotificationTemplates=void 0;var r=n(74740);t.useNotificationTemplates=function(e){var t,n,o,i=(0,r.useQueryNotificationTemplates)(),a=i.data,l=i.isFetching,u=(null==a?void 0:a.templates)||{database:[],files:[]},c="string"==typeof e;return"number"==typeof e?o=null===(t=null==u?void 0:u.database)||void 0===t?void 0:t.find((function(t){return t.id===e})):c&&(o=null===(n=null==u?void 0:u.files)||void 0===n?void 0:n.find((function(t){return t.id===e}))),{templates:u,isFetching:l,selectedTemplate:o}}},4002:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonRow=t.CategorySelectionWrapper=t.SelectedNotification=t.NotificationTemplateSelector=void 0;var i,a,l,u,c,d=n(79066),s=n(80159),f=n(51362),p=o(n(55721));t.NotificationTemplateSelector=(0,p.default)(d.animated.div)(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: 0;\n\n padding: 0;\n\n border: 1px solid ",";\n border-radius: ",";\n\n overflow: hidden;\n"],["\n display: flex;\n flex-direction: column;\n gap: 0;\n\n padding: 0;\n\n border: 1px solid ",";\n border-radius: ",";\n\n overflow: hidden;\n"])),f.colors.inputBorder,f.borderRadius.lg),t.SelectedNotification=p.default.div(a||(a=r(["\n position: relative;\n cursor: pointer;\n\n height: 36px;\n\n flex: 1 0 36px;\n padding: 7px 12px;\n\n overflow: hidden;\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n\n ","\n\n > span {\n &:empty {\n &:after {\n content: 'Please select...';\n color: ",";\n }\n }\n }\n\n > svg {\n position: absolute;\n right: 6px;\n top: calc(50% - 7px);\n\n display: block;\n width: 14px;\n height: 14px;\n stroke-width: 3px;\n fill: #e5e7eb;\n transition: transform 0.2s ease-in-out;\n }\n\n &.open {\n > svg {\n transform: rotate(-90deg);\n }\n }\n"],["\n position: relative;\n cursor: pointer;\n\n height: 36px;\n\n flex: 1 0 36px;\n padding: 7px 12px;\n\n overflow: hidden;\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n\n ","\n\n > span {\n &:empty {\n &:after {\n content: 'Please select...';\n color: ",";\n }\n }\n }\n\n > svg {\n position: absolute;\n right: 6px;\n top: calc(50% - 7px);\n\n display: block;\n width: 14px;\n height: 14px;\n stroke-width: 3px;\n fill: #e5e7eb;\n transition: transform 0.2s ease-in-out;\n }\n\n &.open {\n > svg {\n transform: rotate(-90deg);\n }\n }\n"])),(function(e){return e.empty&&"\n color: ".concat(f.colors.gray300,";\n font-style: italic;\n ")}),f.colors.gray600),t.CategorySelectionWrapper=(0,p.default)(d.animated.div)(l||(l=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n height: 100%;\n padding: "," "," "," ",";\n\n border-top: 1px solid ",";\n overflow-y: auto;\n overflow-x: hidden;\n\n ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n height: 100%;\n padding: "," "," "," ",";\n\n border-top: 1px solid ",";\n overflow-y: auto;\n overflow-x: hidden;\n\n ",";\n"])),f.spacings.lg,f.spacings.sm,f.spacings.lg,f.spacings.sm,f.spacings.sm,f.colors.inputBorder,s.scrollBar),t.ButtonRow=(0,p.default)(d.animated.div)(u||(u=r(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: start;\n gap: ",";\n\n border-top: 1px solid ",";\n\n padding: ",";\n background-color: ",";\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: start;\n gap: ",";\n\n border-top: 1px solid ",";\n\n padding: ",";\n background-color: ",";\n"])),f.spacings.sm,f.colors.inputBorder,f.spacings.sm,f.colors.gray100),t.Button=p.default.button(c||(c=r(["\n padding-top: 2px;\n padding-bottom: 3px;\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n\n &.submit {\n margin-left: auto;\n }\n"],["\n padding-top: 2px;\n padding-bottom: 3px;\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n\n &.submit {\n margin-left: auto;\n }\n"])))},50352:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(46425),a=n(11767),l=n(57092),u=n(96788),c=n(51362),d=n(88863),s=r(n(26457)),f=r(n(2072)),p=n(70006),v=r(n(54224)),m=n(74292),h=n(26163),g=n(4002);t.default=function(e){var t,n,r=e.value,b=e.property,y=e.errors,_=e.updateValue,x=o.default.useState(!1),w=x[0],O=x[1],E=(0,h.useNotificationTemplates)(r),P=E.templates,j=E.isFetching,M=E.selectedTemplate,k=(0,m.useEditorAnimations)(w,(null===(t=null==P?void 0:P.database)||void 0===t?void 0:t.length)+(null===(n=null==P?void 0:P.files)||void 0===n?void 0:n.length)),C=(0,m.useSelectionAnimations)(w),S=(0,u.useNewNotificationMutation)();if(j&&!P)return o.default.createElement(i.Control,{property:b,errors:y},o.default.createElement(g.NotificationTemplateSelector,{style:{height:36}},o.default.createElement(g.SelectedNotification,{empty:!0},o.default.createElement("span",null,o.default.createElement(l.LoadingText,{spinner:!0,loading:!0,instant:!0},(0,f.default)("Loading Templates"))),o.default.createElement(v.default,null))));var D=function(e){S.reset(),_(e.id),O(!1)};return o.default.createElement(i.Control,{property:b,errors:y},o.default.createElement(g.NotificationTemplateSelector,{style:k},o.default.createElement(g.SelectedNotification,{onClick:function(){return O(!w)},className:(0,s.default)(w&&"open")},o.default.createElement("span",null,null==M?void 0:M.name),o.default.createElement(v.default,null)),o.default.createElement(g.CategorySelectionWrapper,{style:C},o.default.createElement(p.Category,{value:r,category:d.TemplateType.Database,templates:P.database,onClick:D}),o.default.createElement(p.Category,{value:r,category:d.TemplateType.File,templates:P.files,onClick:D})),o.default.createElement(g.ButtonRow,{style:{opacity:C.opacity}},o.default.createElement(g.Button,{className:(0,s.default)("btn",S.isLoading&&"disabled"),disabled:S.isLoading,onClick:function(){S.reset(),O(!1)}},(0,f.default)("Close")),o.default.createElement(g.Button,{className:(0,s.default)("btn",S.isLoading&&"disabled"),disabled:S.isLoading,onClick:function(){S.reset(),_(void 0),O(!1)}},(0,f.default)("Clear choice")),o.default.createElement(g.Button,{className:(0,s.default)("btn","submit",!S.isLoading&&"add",!S.isLoading&&"icon",S.isLoading&&"disabled"),disabled:S.isLoading,onClick:function(){return S.mutate({name:"New Template"},{onSuccess:function(e){var t=e.data;D(t)}})}},S.isLoading&&o.default.createElement(l.LoadingText,null,(0,f.default)("Creating a template")),!S.isLoading&&(0,f.default)("New template"))),S.isError&&o.default.createElement(a.FormErrorList,{style:{margin:"0 ".concat(c.spacings.sm," ").concat(c.spacings.sm)},errors:S.error.errors})))}},79335:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockWrapper=void 0;var i,a=n(51362),l=o(n(55721));t.BlockWrapper=l.default.div(i||(i=r(["\n display: grid;\n align-items: center;\n gap: ",";\n\n grid-template-columns: 1.5fr 1fr 1.5fr;\n"],["\n display: grid;\n align-items: center;\n gap: ",";\n\n grid-template-columns: 1.5fr 1fr 1.5fr;\n"])),a.spacings.md)},11400:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nenter while focusing an input to add a new set of inputs.")}})))}},36856:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutBlock=t.Button=t.ButtonGroup=t.ButtonLayoutWrapper=void 0;var i,a,l,u,c=n(51362),d=o(n(55721));t.ButtonLayoutWrapper=d.default.ul(i||(i=r(["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: ",";\n\n margin-top: ",";\n"],["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: ",";\n\n margin-top: ",";\n"])),c.spacings.sm,c.spacings.sm),t.ButtonGroup=d.default.div(a||(a=r(["\n display: flex;\n gap: 2px;\n"],["\n display: flex;\n gap: 2px;\n"]))),t.Button=d.default.button(l||(l=r(["\n display: block;\n padding: 3px 5px;\n\n border-radius: ",";\n font-size: 16px;\n\n &:not(.enabled) {\n opacity: 0.2;\n }\n\n &.submit {\n background-color: "," !important;\n fill: "," !important;\n }\n"],["\n display: block;\n padding: 3px 5px;\n\n border-radius: ",";\n font-size: 16px;\n\n &:not(.enabled) {\n opacity: 0.2;\n }\n\n &.submit {\n background-color: "," !important;\n fill: "," !important;\n }\n"])),c.borderRadius.md,c.colors.red500,c.colors.white),t.LayoutBlock=d.default.li(u||(u=r(["\n cursor: pointer;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n padding: 3px;\n\n border: 1px solid ",";\n border-radius: ",";\n background-color: ",";\n\n transition: background-color 0.2s ease-in-out;\n\n "," {\n fill: ",";\n background: ",";\n }\n\n &.active {\n border-color: ",";\n background-color: ",";\n\n "," {\n background: ",";\n fill: ",";\n }\n }\n\n &:not(.active):hover {\n background-color: ",";\n }\n"],["\n cursor: pointer;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n padding: 3px;\n\n border: 1px solid ",";\n border-radius: ",";\n background-color: ",";\n\n transition: background-color 0.2s ease-in-out;\n\n "," {\n fill: ",";\n background: ",";\n }\n\n &.active {\n border-color: ",";\n background-color: ",";\n\n "," {\n background: ",";\n fill: ",";\n }\n }\n\n &:not(.active):hover {\n background-color: ",";\n }\n"])),c.colors.gray100,c.borderRadius.md,c.colors.gray100,t.Button,c.colors.white,c.colors.gray300,c.colors.gray500,c.colors.gray500,t.Button,c.colors.white,c.colors.gray500,c.colors.gray200)},15715:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(46425),a=r(n(26457)),l=r(n(70460)),u=r(n(56346)),c=r(n(88622)),d=n(36856),s={save:o.default.createElement(u.default,null),back:o.default.createElement(l.default,null),submit:o.default.createElement(c.default,null)};t.default=function(e){var t,n,r,l,u,c,f=e.value,p=e.property,v=e.errors,m=e.updateValue,h=e.context,g=p.layouts,b={save:null===(n=null===(t=null==h?void 0:h.buttons)||void 0===t?void 0:t.save)||void 0===n?void 0:n.enabled,back:null===(l=null===(r=null==h?void 0:h.buttons)||void 0===r?void 0:r.back)||void 0===l?void 0:l.enabled,submit:null===(c=null===(u=null==h?void 0:h.buttons)||void 0===u?void 0:u.submit)||void 0===c?void 0:c.enabled};return o.default.createElement(i.Control,{property:p,errors:v},o.default.createElement(d.ButtonLayoutWrapper,null,g.map((function(e,t){return o.default.createElement(d.LayoutBlock,{key:t,onClick:function(){return m(e)},className:(0,a.default)(f===e&&"active")},e.split(" ").map((function(e,t){return o.default.createElement(d.ButtonGroup,{key:t},e.split("|").filter(Boolean).map((function(e,t){return o.default.createElement(d.Button,{className:(0,a.default)(e,(null==b?void 0:b[e])&&"enabled"),key:t},s[e])})))})))}))))}},96923:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageButtonWrapper=void 0;var i,a=n(80286),l=o(n(55721));t.PageButtonWrapper=l.default.label(i||(i=r(["\n display: flex;\n justify-content: start;\n\n "," {\n margin-bottom: 2px;\n }\n"],["\n display: flex;\n justify-content: start;\n\n "," {\n margin-bottom: 2px;\n }\n"])),a.CheckboxWrapper)},42753:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&c.default.createElement(c.default.Fragment,null,c.default.createElement(f.Cell,{$tiny:!0},c.default.createElement(s.default,{property:{label:"",handle:"".concat(u,"-check"),type:b.PropertyType.Boolean},value:a?o.includes(e.value):e.value===o,updateValue:function(){if(a){var t=o;i(t.includes(e.value)?t.filter((function(t){return t!==e.value})):l(l([],t,!0),[e.value],!1))}else i(e.value===o?"":e.value)}})),c.default.createElement(f.Cell,{$tiny:!0},c.default.createElement(f.Button,{ref:E.current[u],className:"handle"},c.default.createElement(h.default,null))),c.default.createElement(f.Cell,{$tiny:!0},c.default.createElement(f.Button,{onClick:function(){n((0,_.deleteOption)(u,t)),M(Math.max(u-1,0),0)}},c.default.createElement(m.default,null)))))}))))),c.default.createElement(d.HelpText,null,c.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,y.default)("Press enter while editing a cell to add a new row.")}})))}},53585:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n div {\n &:first-child {\n flex-grow: 1;\n }\n\n &:nth-child(2) {\n flex-shrink: 0;\n flex-basis: 100px;\n }\n }\n"],["\n display: flex;\n\n > div {\n &:first-child {\n flex-grow: 1;\n }\n\n &:nth-child(2) {\n flex-shrink: 0;\n flex-basis: 100px;\n }\n }\n"])))},89726:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPreview=void 0;var o=r(n(2784)),i=n(97369),a=r(n(2072)),l=n(57482);t.CustomPreview=function(e){var t=e.value,n=t.options,r=void 0===n?[]:n,u=t.useCustomValues;return o.default.createElement(i.PreviewWrapper,{"data-edit":(0,a.default)("Click to edit data")},o.default.createElement(i.PreviewTable,null,!r.length&&o.default.createElement(i.NoContent,null,(0,a.default)("Not configured yet")),r.map((function(e,t){return o.default.createElement(l.PreviewRow,{key:t},o.default.createElement(i.PreviewData,{"data-empty":(0,a.default)("empty")},e.label),u&&o.default.createElement(i.PreviewData,{"data-empty":(0,a.default)("empty")},e.value))}))))}},1691:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(15738),a=n(33819),l=r(n(2072)),u=n(5355),c=n(53585),d=n(89726);t.default=function(e){var t=e.value,n=e.updateValue,r=e.defaultValue,s=e.updateDefaultValue,f=e.isMultiple;return o.default.createElement(o.default.Fragment,null,o.default.createElement(i.Label,null,(0,l.default)("Options")),o.default.createElement(a.PreviewableComponent,{preview:o.default.createElement(d.CustomPreview,{value:t,defaultValue:r,isMultiple:f}),onAfterEdit:function(){return n((0,c.cleanOptions)(t))},onEdit:function(){t.options.length||n((0,c.addOption)(t,0))}},o.default.createElement(u.CustomEditor,{value:t,updateValue:n,defaultValue:r,updateDefaultValue:s,isMultiple:f})))}},13866:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateDefaultValue=void 0;var r=n(69229);t.generateDefaultValue=function(e){switch(e){case r.Source.Elements:return{source:r.Source.Elements,typeClass:"",properties:{}};case r.Source.Predefined:return{source:r.Source.Predefined,typeClass:"",properties:{}};case r.Source.Custom:default:return{source:r.Source.Custom,useCustomValues:!1,options:[]}}}},78155:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.custom=t.predefined=t.elements=void 0;var o=n(39149);Object.defineProperty(t,"elements",{enumerable:!0,get:function(){return r(o).default}});var i=n(76238);Object.defineProperty(t,"predefined",{enumerable:!0,get:function(){return r(i).default}});var a=n(1691);Object.defineProperty(t,"custom",{enumerable:!0,get:function(){return r(a).default}})},23773:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SourceComponent=void 0;var a=i(n(2784)),l=n(90163),u=n(69229),c=i(n(78155));t.SourceComponent=function(e){var t=e.value,n=e.updateValue,r=e.defaultValue,o=e.updateDefaultValue,i=e.convertToCustomValues,d=e.isMultiple,s=t.source,f=void 0===s?u.Source.Custom:s,p=c[f];return void 0===p?a.default.createElement("div",null,f," not implemented..."):(p.displayName="Source <".concat(f,">"),a.default.createElement(l.ErrorBoundary,{message:"...".concat(f," not implemented")},a.default.createElement(a.Suspense,null,a.default.createElement(p,{value:t,updateValue:n,defaultValue:r,updateDefaultValue:o,convertToCustomValues:i,isMultiple:d}))))}},24658:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(4500),a=n(46425);t.default=function(e){var t=e.value,n=e.property,r=e.errors,l=e.updateValue,u=n.options,c=n.emptyOption;return o.default.createElement(a.Control,{property:n,errors:r},o.default.createElement(i.Dropdown,{value:null!=t?t:"",emptyOption:c,options:u,onChange:l}))}},60556:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(46425),a=r(n(26457));t.default=function(e){var t,n=e.value,r=e.property,l=e.errors,u=e.updateValue,c=e.autoFocus,d=r.handle;return o.default.createElement(i.Control,{property:r,errors:l},o.default.createElement("input",{id:d,type:"text",autoComplete:"off",autoFocus:c,"data-1p-ignore":!0,className:(0,a.default)("text","fullwidth",(null===(t=null==r?void 0:r.flags)||void 0===t?void 0:t.includes("code"))&&"code"),value:null!=n?n:"",placeholder:r.placeholder,onChange:function(e){return u(e.target.value)}}))}},69412:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.Select=t.Input=t.Cell=t.Row=t.TabularOptions=t.TableContainer=t.TableEditorWrapper=void 0;var i,a,l,u,c,d,s,f,p=n(51362),v=o(n(55721)),m=n(10042);t.TableEditorWrapper=(0,v.default)(m.PreviewEditor)(i||(i=r([""],[""]))),t.TableContainer=(0,v.default)(m.PreviewEditorContainer)(a||(a=r([""],[""]))),t.TabularOptions=v.default.table(l||(l=r(["\n width: 100%;\n"],["\n width: 100%;\n"]))),t.Row=v.default.tr(u||(u=r([""],[""]))),t.Cell=v.default.td(c||(c=r(["\n width: ",";\n\n padding: ",";\n\n border: 1px solid rgba(0, 0, 0, 0.1);\n\n label {\n display: none;\n }\n}\n"],["\n width: ",";\n\n padding: ",";\n\n border: 1px solid rgba(0, 0, 0, 0.1);\n\n label {\n display: none;\n }\n}\n"])),(function(e){var t=e.$tiny,n=e.$width;return t?"32px":n?"".concat(n,"px"):"auto"}),(function(e){return e.$tiny?"6px 9px !important":"0 !important"})),t.Input=v.default.input(d||(d=r(["\n width: 100%;\n height: 34px;\n\n padding: 6px 9px;\n\n background: ",";\n\n &:focus {\n box-shadow: var(--inner-focus-ring);\n }\n\n &::placeholder {\n color: ",";\n }\n"],["\n width: 100%;\n height: 34px;\n\n padding: 6px 9px;\n\n background: ",";\n\n &:focus {\n box-shadow: var(--inner-focus-ring);\n }\n\n &::placeholder {\n color: ",";\n }\n"])),p.colors.white,p.colors.gray200),t.Select=v.default.select(s||(s=r(["\n width: 100%;\n height: 34px;\n\n padding: 6px 9px;\n\n &:focus {\n box-shadow: var(--inner-focus-ring);\n }\n"],["\n width: 100%;\n height: 34px;\n\n padding: 6px 9px;\n\n &:focus {\n box-shadow: var(--inner-focus-ring);\n }\n"]))),t.Button=v.default.button(f||(f=r(["\n padding: 1px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n\n &.handle {\n cursor: move;\n }\n\n &:disabled {\n cursor: not-allowed;\n color: lightgray;\n }\n\n > svg {\n fill: currentColor;\n }\n"],["\n padding: 1px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n\n &.handle {\n cursor: move;\n }\n\n &:disabled {\n cursor: not-allowed;\n color: lightgray;\n }\n\n > svg {\n fill: currentColor;\n }\n"])))},42026:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&u.default.createElement(u.default.Fragment,null,u.default.createElement(d.Cell,{$tiny:!0},u.default.createElement(d.Button,{ref:i.current[a],className:"handle"},u.default.createElement(m.default,null))),u.default.createElement(d.Cell,{$tiny:!0},u.default.createElement(d.Button,{onClick:function(){o((0,s.deleteColumn)(a,n)),g(Math.max(a-1,0),0)}},u.default.createElement(v.default,null)))))}))))),u.default.createElement(c.HelpText,null,u.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,h.default)("Press enter while editing a cell to add a new row.")}})))}},48807:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o div {\n white-space: nowrap;\n overflow: hidden;\n\n padding: 7px "," 7px 0;\n\n &:last-child {\n padding-right: 0;\n }\n }\n"],["\n position: relative;\n\n display: grid;\n grid-template-columns: auto 100px;\n gap: 10px;\n\n justify-items: stretch;\n align-items: center;\n\n border-bottom: 1px solid ",";\n\n &:after {\n content: attr(data-title);\n\n position: absolute;\n left: calc(100% - 105px);\n bottom: -7px;\n\n padding: 0 5px;\n background: ",";\n\n ",";\n font-size: 8px;\n }\n\n > div {\n white-space: nowrap;\n overflow: hidden;\n\n padding: 7px "," 7px 0;\n\n &:last-child {\n padding-right: 0;\n }\n }\n"])),f.colors.gray100,f.colors.white,s.labelText,f.spacings.xs),t.PreviewData=p.default.div(d||(d=r(["\n &:empty {\n &:after {\n content: attr(data-empty);\n color: ",";\n font-size: 12px;\n font-style: italic;\n }\n }\n"],["\n &:empty {\n &:after {\n content: attr(data-empty);\n color: ",";\n font-size: 12px;\n font-style: italic;\n }\n }\n"])),f.colors.gray200)},98652:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TablePreview=void 0;var o=r(n(2784)),i=r(n(2072)),a=n(97369),l=function(e,t){var n;return(null===(n=e.find((function(e){return e.value===t})))||void 0===n?void 0:n.label)||t};t.TablePreview=function(e){var t=e.columnTypes,n=e.columns;return o.default.createElement(a.PreviewWrapper,{"data-edit":(0,i.default)("Click to edit data")},o.default.createElement(a.PreviewTable,null,!n.length&&o.default.createElement(a.NoContent,null,(0,i.default)("Not configured yet")),n.map((function(e,n){return o.default.createElement(a.PreviewRow,{key:n,"data-title":l(t,e.type)},o.default.createElement(a.PreviewData,{"data-empty":(0,i.default)("empty")},e.label),o.default.createElement(a.PreviewData,{"data-empty":(0,i.default)("empty")},e.value))}))))}},32346:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(46425),a=n(33819),l=n(42026),u=n(48807),c=n(98652);t.default=function(e){var t=e.value,n=e.property,r=e.errors,d=e.updateValue,s=n.options;return o.default.createElement(i.Control,{property:n,errors:r},o.default.createElement(a.PreviewableComponent,{preview:o.default.createElement(c.TablePreview,{columnTypes:s,columns:t}),onAfterEdit:function(){return d((0,u.cleanColumns)(t))},onEdit:function(){t.length||d((0,u.addColumn)(t,0))}},o.default.createElement(l.TableEditor,{columnTypes:s,columns:t,updateValue:d})))}},79250:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o1&&u.default.createElement(u.default.Fragment,null,u.default.createElement(d.Cell,{$tiny:!0},u.default.createElement(d.Button,{ref:o.current[i],className:"handle"},u.default.createElement(v.default,null))),u.default.createElement(d.Cell,{$tiny:!0},u.default.createElement(d.Button,{onClick:function(){r((0,h.deleteRow)(i,n)),g(Math.max(i-1,0),0)}},u.default.createElement(p.default,null)))))}))))),u.default.createElement(c.HelpText,null,u.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,m.default)("Press enter while editing a cell to add a new row.")}})))}},43219:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o div {\n white-space: nowrap;\n overflow: hidden;\n\n padding: 7px "," 7px 0;\n\n &:last-child {\n padding-right: 0;\n }\n }\n"],["\n position: relative;\n\n display: grid;\n grid-template-columns: auto 100px;\n gap: 10px;\n\n justify-items: stretch;\n align-items: center;\n\n border-bottom: 1px solid ",";\n\n &:after {\n content: attr(data-title);\n\n position: absolute;\n left: calc(100% - 105px);\n bottom: -7px;\n\n padding: 0 5px;\n background: ",";\n\n ",";\n font-size: 8px;\n }\n\n > div {\n white-space: nowrap;\n overflow: hidden;\n\n padding: 7px "," 7px 0;\n\n &:last-child {\n padding-right: 0;\n }\n }\n"])),f.colors.gray100,f.colors.white,s.labelText,f.spacings.xs),t.PreviewData=p.default.div(d||(d=r(["\n &:empty {\n &:after {\n content: attr(data-empty);\n color: ",";\n font-size: 12px;\n font-style: italic;\n }\n }\n"],["\n &:empty {\n &:after {\n content: attr(data-empty);\n color: ",";\n font-size: 12px;\n font-style: italic;\n }\n }\n"])),f.colors.gray200)},48190:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TabularDataPreview=void 0;var o=r(n(2784)),i=r(n(2072)),a=n(49982);t.TabularDataPreview=function(e){var t=e.configuration,n=e.values;return o.default.createElement(a.PreviewWrapper,{"data-edit":(0,i.default)("Click to edit data")},o.default.createElement(a.PreviewTable,null,!n.length&&o.default.createElement(a.NoContent,null,(0,i.default)("Not configured yet")),n.map((function(e,n){return o.default.createElement(a.PreviewRow,{key:n},t.map((function(t,n){return o.default.createElement(a.PreviewData,{key:n,"data-empty":(0,i.default)("empty"),"data-title":t.label},e[n])})))}))))}},66135:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(46425),a=n(33819),l=n(79250),u=n(43219),c=n(48190);t.default=function(e){var t=e.value,n=e.property,r=e.errors,d=e.updateValue,s=n.configuration;return o.default.createElement(i.Control,{property:n,errors:r},o.default.createElement(a.PreviewableComponent,{preview:o.default.createElement(c.TabularDataPreview,{configuration:s,values:t}),onAfterEdit:function(){return d((0,u.cleanRows)(t))},onEdit:function(){t.length||d((0,u.addRow)(t,s,0))}},o.default.createElement(l.TabularDataEditor,{configuration:s,values:t,updateValue:d})))}},27542:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(46425),a=r(n(26457));t.default=function(e){var t=e.value,n=e.property,r=e.errors,l=e.updateValue,u=e.autoFocus,c=n.handle,d=n.rows;return o.default.createElement(i.Control,{property:n,errors:r},o.default.createElement("textarea",{id:c,className:(0,a.default)("text","fullwidth",n.flags.includes("code")&&"code"),rows:d,value:null!=t?t:"",placeholder:n.placeholder,autoFocus:u,onChange:function(e){return l(e.target.value)}}))}},73966:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QuillEditorWrapper=void 0;var i,a=o(n(55721));t.QuillEditorWrapper=a.default.div(i||(i=r(["\n .ql-editor {\n min-height: 300px;\n }\n"],["\n .ql-editor {\n min-height: 300px;\n }\n"])))},6003:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WysiwygEditor=void 0;var o=r(n(2784)),i=r(n(8617)),a=n(10042),l=n(73966);n(61632);t.WysiwygEditor=function(e){var t=e.value,n=e.updateValue;return o.default.createElement(a.PreviewEditor,null,o.default.createElement(a.PreviewContainer,null,o.default.createElement(l.QuillEditorWrapper,null,o.default.createElement(i.default,{theme:"snow",value:t,onChange:n,style:{background:"white"}}))))}},85254:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewContainer=t.Pre=void 0;var i,a,l=n(51362),u=o(n(55721)),c=n(97369);t.Pre=u.default.pre(i||(i=r(["\n font-size: 10px;\n"],["\n font-size: 10px;\n"]))),t.PreviewContainer=(0,u.default)(c.PreviewTable)(a||(a=r(["\n padding: ",";\n"],["\n padding: ",";\n"])),l.spacings.sm)},87186:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WysiwygPreview=void 0;var o=r(n(2784)),i=r(n(2072)),a=n(97369),l=n(85254);t.WysiwygPreview=function(e){var t=e.value;return o.default.createElement(a.PreviewWrapper,{"data-edit":(0,i.default)("Click to edit data")},o.default.createElement(l.PreviewContainer,null,!t&&o.default.createElement(a.NoContent,null,(0,i.default)("Not configured yet")),o.default.createElement("div",{dangerouslySetInnerHTML:{__html:t}})))}},47939:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(46425),a=n(33819),l=n(6003),u=n(87186);t.default=function(e){var t=e.value,n=e.property,r=e.errors,c=e.updateValue;return o.default.createElement(i.Control,{property:n,errors:r},o.default.createElement(a.PreviewableComponent,{preview:o.default.createElement(u.WysiwygPreview,{value:t})},o.default.createElement(l.WysiwygEditor,{value:t,updateValue:c})))}},15738:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ControlWrapper=t.FormField=t.Instructions=t.Label=void 0;var i,a,l,u,c=n(51362),d=o(n(55721));t.Label=d.default.label(i||(i=r(["\n display: block;\n\n color: ",";\n font-weight: "," !important;\n\n &.is-required {\n &:after {\n content: '*';\n padding-left: 2px;\n\n color: ",";\n }\n }\n"],["\n display: block;\n\n color: ",";\n font-weight: "," !important;\n\n &.is-required {\n &:after {\n content: '*';\n padding-left: 2px;\n\n color: ",";\n }\n }\n"])),c.colors.gray550,(function(e){return e.$regular?"normal":"bold"}),c.colors.error),t.Instructions=d.default.span(a||(a=r(["\n display: block;\n\n color: ",";\n padding-top: 0;\n line-height: 16px;\n font-size: 12px;\n font-style: italic;\n\n &:not(:last-child) {\n padding-bottom: 6px;\n }\n"],["\n display: block;\n\n color: ",";\n padding-top: 0;\n line-height: 16px;\n font-size: 12px;\n font-style: italic;\n\n &:not(:last-child) {\n padding-bottom: 6px;\n }\n"])),c.colors.gray300),t.FormField=d.default.div(l||(l=r(["\n margin: 0;\n padding: 0;\n width: 100%;\n display: block;\n\n &.disabled {\n user-select: none;\n pointer-events: none;\n opacity: 0.5;\n }\n"],["\n margin: 0;\n padding: 0;\n width: 100%;\n display: block;\n\n &.disabled {\n user-select: none;\n pointer-events: none;\n opacity: 0.5;\n }\n"]))),t.ControlWrapper=d.default.div(u||(u=r(["\n display: flex;\n position: relative;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n\n width: ",";\n\n &.disabled {\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n }\n\n &.errors {\n "," {\n color: ",";\n }\n\n "," {\n input,\n textarea,\n select {\n border: 1px solid ",";\n }\n\n select {\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n }\n }\n }\n\n &.spacing-small {\n padding-top: 6px;\n }\n\n .btn {\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n }\n"],["\n display: flex;\n position: relative;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n\n width: ",";\n\n &.disabled {\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n }\n\n &.errors {\n "," {\n color: ",";\n }\n\n "," {\n input,\n textarea,\n select {\n border: 1px solid ",";\n }\n\n select {\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n }\n }\n }\n\n &.spacing-small {\n padding-top: 6px;\n }\n\n .btn {\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n }\n"])),(function(e){var t=e.$width;return t?"".concat(t,"%"):"100%"}),t.Label,c.colors.error,t.FormField,c.colors.error)},46425:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Control=void 0;var o=r(n(2784)),i=n(15738),a=r(n(37033)),l=r(n(22299)),u=r(n(26457)),c=n(11767);t.Control=function(e){var t=e.children,n=e.property,r=e.errors,d=n.label,s=n.handle,f=n.required,p=n.instructions,v=n.width,m=n.disabled;return o.default.createElement(i.ControlWrapper,{className:(0,u.default)(!!r&&"errors",m&&"disabled"),$width:v},o.default.createElement(l.default,{label:d,handle:s,required:f,title:p}),o.default.createElement(a.default,{instructions:p}),o.default.createElement(i.FormField,null,t),o.default.createElement(c.FormErrorList,{errors:r}))}},9256:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DraggableRow=void 0;var l=i(n(2784)),u=n(69412),c=n(25141),d=n(76930),s=a(n(26457));t.DraggableRow=function(e){var t=e.index,n=e.dragRef,r=e.onDrop,o=e.children,i=(0,l.useRef)(null),a=(0,d.useRowDrop)(t,i,r),f=a.handlerId,p=a.drop,v=(0,c.useRowDrag)(t),m=v.isDragging,h=v.drag,g=v.preview;return h(n),p(g(i)),l.default.createElement(u.Row,{ref:i,className:(0,s.default)(m&&"dragging"),"data-handler-id":f},o)}},11767:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&v--,"ArrowDown"===o.key&&i0&&g.start&&(p=!0,m--),"ArrowRight"===o.key&&ua&&d>c||(n(l,a),r.index=a)}}}}}),[t,n]);return{handlerId:i[0].handlerId,drop:i[1]}}},86837:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o")):(m.displayName="FormComponent: <".concat(p,">"),h?a.default.createElement(u.ErrorBoundary,{message:"...".concat(f," <").concat(p,">")},a.default.createElement(a.Suspense,null,a.default.createElement(m,{value:t,property:r,updateValue:n,errors:o,context:i,autoFocus:s}))):null)}},37033:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(15738);t.default=function(e){var t=e.instructions;return t?o.default.createElement(i.Instructions,null,t):null}},22299:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(86063),a=r(n(26457)),l=n(15738);t.default=function(e){var t=e.label,n=e.handle,r=e.required,u=e.title;return t?o.default.createElement(l.Label,{className:(0,a.default)(r&&"is-required"),htmlFor:n},!u&&t,u&&o.default.createElement(i.Tooltip,{title:u,position:"top",animation:"fade"},t)):null}},11863:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useEditorAnimations=void 0;var r=n(2784),o=n(79066),i=n(57305);t.useEditorAnimations=function(e){var t=e.wrapper,n=e.editor,a=e.isEditing,l=(0,i.usePosition)(t,n,a),u=l.top,c=l.left,d=null==t?void 0:t.offsetWidth,s=(0,r.useState)(!1),f=s[0],p=s[1];return{editorAnimation:(0,o.useSpring)({immediate:function(e){return["top","left","width","pointerEvents","transformOrigin"].includes(e)},to:{top:u,left:c,width:d,opacity:a?1:0,transformOrigin:"top left",transform:a?"scaleY(1)":"scaleY(0.5)",pointerEvents:a?"initial":"none"},config:{tension:700,friction:40}}),isVisible:f,setVisible:p}}},57305:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePosition=void 0;var r=n(2784),o=n(53084),i=n(71485),a=n(92853);t.usePosition=function(e,t,n){var l=(0,o.usePortal)().dimensions,u=(0,r.useState)(0),c=u[0],d=u[1],s=(0,r.useState)(0),f=s[0],p=s[1],v=function(){var n;d((0,a.calculateTopOffset)(e,t));var r=null===(n=null==e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.left;r&&p(r-l.left)};return(0,r.useEffect)((function(){v()}),[n]),(0,r.useEffect)((function(){var e=function(){v()};if(t){var n=document.querySelector(i.SectionWrapper.toString()),r=new ResizeObserver(e);return r.observe(t),window.addEventListener("resize",e),window.addEventListener("scroll",e),null==n||n.addEventListener("scroll",e),function(){r.disconnect(),window.removeEventListener("resize",e),window.removeEventListener("scroll",e),null==n||n.addEventListener("scroll",e)}}}),[t]),{top:c,left:f}}},92853:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateTopOffset=void 0;t.calculateTopOffset=function(e,t){var n=null==e?void 0:e.getBoundingClientRect().top,r=window.innerHeight,o=null==t?void 0:t.offsetHeight;return void 0===o?n:n&&o&&r?n+o>r-20?n-(n+o-r+20):n:0}},10042:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewEditorContainer=t.PreviewEditor=t.PreviewContainer=t.EditableContentWrapper=t.PreviewWrapper=void 0;var i,a,l,u,c,d=n(79066),s=n(80159),f=n(51362),p=o(n(55721));t.PreviewWrapper=p.default.div(i||(i=r(["\n position: relative;\n width: 100%;\n"],["\n position: relative;\n width: 100%;\n"]))),t.EditableContentWrapper=(0,p.default)(d.animated.div)(a||(a=r(["\n position: absolute;\n left: 0;\n top: 0;\n z-index: 3;\n\n box-shadow: ",";\n\n pointer-events: none;\n\n &.active {\n pointer-events: all;\n }\n"],["\n position: absolute;\n left: 0;\n top: 0;\n z-index: 3;\n\n box-shadow: ",";\n\n pointer-events: none;\n\n &.active {\n pointer-events: all;\n }\n"])),f.shadows.panel),t.PreviewContainer=p.default.div(l||(l=r(["\n cursor: pointer;\n\n input,\n select,\n textarea {\n pointer-events: none;\n }\n"],["\n cursor: pointer;\n\n input,\n select,\n textarea {\n pointer-events: none;\n }\n"]))),t.PreviewEditor=p.default.div(u||(u=r(["\n width: 100%;\n min-width: 800px;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: ",";\n\n box-shadow: ",";\n border-radius: ",";\n background: ",";\n"],["\n width: 100%;\n min-width: 800px;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: ",";\n\n box-shadow: ",";\n border-radius: ",";\n background: ",";\n"])),f.spacings.lg,f.spacings.lg,f.shadows.box,f.borderRadius.lg,f.colors.gray050),t.PreviewEditorContainer=p.default.div(c||(c=r(["\n max-height: 600px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ",";\n"],["\n max-height: 600px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ",";\n"])),s.scrollBar)},33819:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?document.body.style.overflow="hidden":document.body.style.overflow="auto"}),[r]);var l=(0,f.useAnimateOverlay)(r.length>0),m=(0,f.useAnimateModals)(r);return u.default.createElement(v.Provider,{value:{openModal:function(e){o(a(a([],r,!0),[e],!1))},closeModal:i}},t,(0,c.createPortal)(u.default.createElement(p.ModalHub,null,u.default.createElement(p.ModalOverlay,{style:l,className:(0,d.default)(!r.length&&"inactive")},m((function(e,t,n,r){return u.default.createElement(s.Modal,{key:r,closeModal:i,style:e},u.default.createElement(t,{closeModal:i}))})))),document.body))}},4679:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalFooter=t.ModalHeader=t.ModalContainer=t.ModalWrapper=t.ModalOverlay=t.ModalHub=void 0;var i,a,l,u,c,d,s=n(79066),f=n(51362),p=o(n(55721));t.ModalHub=p.default.div(i||(i=r([""],[""]))),t.ModalOverlay=(0,p.default)(s.animated.div)(a||(a=r(["\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 1000;\n\n background-color: rgba(123, 135, 147, 0);\n\n &.inactive {\n pointer-events: none;\n }\n"],["\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 1000;\n\n background-color: rgba(123, 135, 147, 0);\n\n &.inactive {\n pointer-events: none;\n }\n"]))),t.ModalWrapper=(0,p.default)(s.animated.div)(l||(l=r(["\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 1001;\n\n display: flex;\n justify-content: center;\n align-items: center;\n"],["\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 1001;\n\n display: flex;\n justify-content: center;\n align-items: center;\n"]))),t.ModalContainer=p.default.div(u||(u=r(["\n width: 100%;\n max-width: 500px;\n\n background-color: #fff;\n border-radius: ",";\n box-shadow: 0 25px 100px rgba(31, 41, 51, 0.5);\n"],["\n width: 100%;\n max-width: 500px;\n\n background-color: #fff;\n border-radius: ",";\n box-shadow: 0 25px 100px rgba(31, 41, 51, 0.5);\n"])),f.borderRadius.lg),t.ModalHeader=p.default.header(c||(c=r(["\n padding: "," ",";\n\n background-color: ",";\n box-shadow: inset 0 -1px 0 ",";\n\n border-radius: "," "," 0 0;\n"],["\n padding: "," ",";\n\n background-color: ",";\n box-shadow: inset 0 -1px 0 ",";\n\n border-radius: "," "," 0 0;\n"])),f.spacings.lg,f.spacings.xl,f.colors.gray100,f.colors.hairline,f.borderRadius.lg,f.borderRadius.lg),t.ModalFooter=p.default.footer(d||(d=r(["\n display: flex;\n justify-content: end;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n\n background-color: ",";\n box-shadow: inset 0 1px 0 ",";\n\n border-radius: 0 0 "," ",";\n"],["\n display: flex;\n justify-content: end;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n\n background-color: ",";\n box-shadow: inset 0 1px 0 ",";\n\n border-radius: 0 0 "," ",";\n"])),f.spacings.sm,f.spacings.sm,f.spacings.xl,f.colors.gray100,f.colors.hairline,f.borderRadius.lg,f.borderRadius.lg)},33134:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Modal=void 0;var o=r(n(2784)),i=n(31070),a=n(4679);t.Modal=function(e){var t=e.children,n=e.closeModal,r=e.style;return(0,i.useEscapeStack)(n),o.default.createElement(a.ModalWrapper,{style:r},t)}},50822:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=void 0;var i,a=o(n(55721));t.Wrapper=a.default.div(i||(i=r(["\n color: white;\n background: red;\n border: 1px solid darkred;\n"],["\n color: white;\n background: red;\n border: 1px solid darkred;\n"])))},27562:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBlock=void 0;var o=r(n(2784)),i=n(50822);t.ErrorBlock=function(e){var t=e.children;return o.default.createElement(i.Wrapper,null,t)}},12415:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1] a {\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border-radius: ",";\n\n color: ",";\n font-size: 12px;\n line-height: 12px;\n\n transition: background-color 0.2s ease-out;\n text-decoration: none;\n\n &.active {\n color: ",";\n background-color: ",";\n }\n\n &.active.inactive {\n .status-dot {\n border-color: ",";\n }\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n }\n"],["\n > a {\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border-radius: ",";\n\n color: ",";\n font-size: 12px;\n line-height: 12px;\n\n transition: background-color 0.2s ease-out;\n text-decoration: none;\n\n &.active {\n color: ",";\n background-color: ",";\n }\n\n &.active.inactive {\n .status-dot {\n border-color: ",";\n }\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n }\n"])),c.spacings.sm,c.spacings.sm,c.spacings.md,c.borderRadius.lg,c.colors.gray700,c.colors.white,c.colors.gray500,c.colors.white,c.colors.gray200),t.Icon=d.default.div(a||(a=r(["\n display: block;\n width: 20px;\n height: 20px;\n"],["\n display: block;\n width: 20px;\n height: 20px;\n"]))),t.Name=d.default.div(l||(l=r(["\n flex-grow: 1;\n max-width: 90%;\n\n padding: 1px 0;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n flex-grow: 1;\n max-width: 90%;\n\n padding: 1px 0;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]))),t.Status=d.default.div(u||(u=r(["\n content: '';\n\n flex-shrink: 0;\n justify-self: flex-end;\n\n width: 10px;\n height: 10px;\n\n border: 1px solid\n ",";\n border-radius: 100%;\n\n background-color: ",";\n\n transition: all 0.3s ease-out;\n"],["\n content: '';\n\n flex-shrink: 0;\n justify-self: flex-end;\n\n width: 10px;\n height: 10px;\n\n border: 1px solid\n ",";\n border-radius: 100%;\n\n background-color: ",";\n\n transition: all 0.3s ease-out;\n"])),(function(e){return e.$enabled?"transparent":c.colors.gray550}),(function(e){return e.$enabled?c.colors.teal550:"transparent"}))},70177:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Integration=void 0;var o=r(n(2784)),i=n(86993),a=n(76034),l=n(66583),u=r(n(26457)),c=r(n(83190)),d=n(87570);t.Integration=function(e){var t=e.id,n=e.name,r=e.handle,s=e.icon,f=(0,i.useSelector)(l.integrationSelectors.one(t));return f?o.default.createElement(d.Wrapper,null,o.default.createElement(a.NavLink,{to:"".concat(t,"/").concat(r),className:(0,u.default)(!f.enabled&&"inactive")},o.default.createElement(d.Icon,null,!!s&&o.default.createElement("img",{src:s}),!s&&o.default.createElement(c.default,null)),o.default.createElement(d.Name,null,n),o.default.createElement(d.Status,{$enabled:f.enabled,className:(0,u.default)("status-dot")}))):null}},40098:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=void 0;var i,a=n(51362),l=o(n(55721));t.Wrapper=l.default.ul(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n list-style: none;\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n list-style: none;\n"])),a.spacings.sm)},50058:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;no?on){if(d>=t&&t>n)return-r}else if(d<=t&&t span {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n\n &.active {\n color: ",";\n border-bottom-color: ",";\n }\n\n &.errors {\n color: ",";\n\n ",";\n }\n\n &.can-drop {\n box-shadow: 0 2px 12px ",";\n transform: scale(1.1);\n z-index: 2;\n }\n\n &.is-dragging {\n z-index: 1;\n }\n\n &.is-editing {\n padding: 4px 6px;\n }\n\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n\n max-width: 160px;\n height: 100%;\n padding: 10px 5px;\n margin: 0 5px;\n\n color: ",";\n border-bottom: 2px solid ",";\n\n overflow: hidden;\n\n > span {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n\n &.active {\n color: ",";\n border-bottom-color: ",";\n }\n\n &.errors {\n color: ",";\n\n ",";\n }\n\n &.can-drop {\n box-shadow: 0 2px 12px ",";\n transform: scale(1.1);\n z-index: 2;\n }\n\n &.is-dragging {\n z-index: 1;\n }\n\n &.is-editing {\n padding: 4px 6px;\n }\n\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n"])),f.colors.gray400,f.colors.gray100,f.colors.gray800,f.colors.blue600,f.colors.error,s.errorAlert,f.colors.gray500,t.RemoveTabButton),t.TabDrop=p.default.div(u||(u=r(["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n\n width: 100%;\n"],["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n\n width: 100%;\n"]))),t.Input=p.default.input(c||(c=r(["\n border: 0;\n padding: 0 !important;\n line-height: 1rem;\n font-size: 0.75rem;\n box-shadow: none !important;\n\n &:hover,\n &:active {\n box-shadow: none !important;\n }\n"],["\n border: 0;\n padding: 0 !important;\n line-height: 1rem;\n font-size: 0.75rem;\n box-shadow: none !important;\n\n &:hover,\n &:active {\n box-shadow: none !important;\n }\n"])))},33336:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Tab=void 0;var l=i(n(2784)),u=n(86993),c=n(36450),d=n(8697),s=n(72671),f=n(97240),p=n(60719),v=n(77209),m=n(9726),h=a(n(26457)),g=a(n(2072)),b=n(37430),y=n(36253),_=n(73680),x=n(13534),w=n(21573),O=a(n(87661));t.Tab=function(e){var t=e.page,n=e.index,r=(0,u.useSelector)(s.contextSelectors.currentPage),o=(0,u.useSelector)(p.pageSelecors.count),i=(0,c.useAppDispatch)(),a=(0,b.useDragContext)().dragType,E=(0,u.useSelector)(s.contextSelectors.hasErrors(t.uid)),P=(0,l.useRef)(null),j=(0,l.useRef)(null),M=(0,l.useState)(!1),k=M[0],C=M[1],S=(0,x.useTabDrop)(null==r?void 0:r.uid,t),D=S.canDrop,F=S.ref,T=(0,y.useTabDrag)(n,t),R=T.isDragging,L=T.ref,A=(0,x.useTabPageDrop)(P,t,n),B=A.ref,W=A.dragItemIndex,I=F(L(P)),N=(0,_.useTabDragAnimation)(P,n,W,R),z=function(){i(f.pageActions.updateLabel({uid:t.uid,label:j.current.value||t.label}))},V=(0,m.useClickOutside)({callback:function(){z(),C(!1)},isEnabled:k});return l.default.createElement(w.TabWrapper,{ref:I,className:"page-tab"},(!!a||R)&&l.default.createElement(w.TabDrop,{ref:B}),l.default.createElement(w.PageTab,{ref:V,className:(0,h.default)((null==r?void 0:r.uid)===t.uid&&"active",E&&"errors",D&&"can-drop",k&&"is-editing",R&&"is-dragging"),style:N,onClick:function(){C(!1),i(d.contextActions.setPage(t.uid))},onDoubleClick:function(){return C(!0)}},k?l.default.createElement(w.Input,{type:"text",ref:j,autoFocus:!0,className:"text small",placeholder:t.label,defaultValue:t.label,onKeyUp:function(e){"Enter"===e.key&&(z(),C(!1)),"Escape"===e.key&&C(!1)}}):l.default.createElement("span",null,t.label),o>1&&l.default.createElement(w.RemoveTabButton,{onClick:function(e){e.stopPropagation(),confirm((0,g.default)("Are you sure?"))&&i((0,v.deletePage)(t))}},l.default.createElement(O.default,null))))}},21976:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderPageButtons=void 0;var o=r(n(2784)),i=r(n(76257)),a=n(49023);t.LoaderPageButtons=function(){return o.default.createElement(a.ButtonGroupWrapper,null,o.default.createElement(a.ButtonGroup,null),o.default.createElement(a.ButtonGroup,null,o.default.createElement("button",{className:"btn submit"},o.default.createElement(i.default,{width:50,baseColor:"#e12d39"}))))}},49023:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonGroup=t.ButtonGroupWrapper=void 0;var i,a,l,u=n(51362),c=o(n(55721));t.ButtonGroupWrapper=c.default.div(i||(i=r(["\n display: flex;\n justify-content: space-between;\n\n padding: "," ",";\n\n border: 1px solid transparent;\n border-radius: ",";\n\n cursor: pointer;\n\n transition:\n border-color 0.2s ease-out,\n background-color 0.2s ease-out;\n\n &.active {\n border: 1px dashed #5782ef;\n }\n\n &:hover {\n background: #f3f7fd;\n\n &:not(.active) {\n border: 1px solid #cdd8e4;\n }\n }\n"],["\n display: flex;\n justify-content: space-between;\n\n padding: "," ",";\n\n border: 1px solid transparent;\n border-radius: ",";\n\n cursor: pointer;\n\n transition:\n border-color 0.2s ease-out,\n background-color 0.2s ease-out;\n\n &.active {\n border: 1px dashed #5782ef;\n }\n\n &:hover {\n background: #f3f7fd;\n\n &:not(.active) {\n border: 1px solid #cdd8e4;\n }\n }\n"])),u.spacings.sm,u.spacings.md,u.borderRadius.md),t.ButtonGroup=c.default.div(a||(a=r(["\n display: flex;\n gap: ",";\n"],["\n display: flex;\n gap: ",";\n"])),u.spacings.md),t.Button=c.default.button(l||(l=r([""],[""])))},65462:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0})):t}),[e])}},94657:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseFields=void 0;var o=r(n(2784)),i=n(27562),a=n(15443),l=r(n(2072)),u=n(51044),c=n(50417),d=n(36985),s=n(55383),f=(0,l.default)("Field Types");t.BaseFields=function(){var e=(0,d.useSelectSearchedFields)(),t=(0,a.useFetchFieldTypes)({select:e}),n=t.data,r=t.isFetching,l=t.isError,p=t.error;return!n&&r?o.default.createElement(c.LoaderFieldGroup,{words:[50,70],items:16}):l?o.default.createElement(i.ErrorBlock,null,p.message):n.length?o.default.createElement(u.FieldGroup,{title:f},n.map((function(e){return o.default.createElement(s.FieldItem,{key:e.typeClass,fieldType:e})}))):null}},58363:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useBaseFieldDrag=void 0;var r=n(2784),o=n(8134),i=n(35653),a=n(37430);t.useBaseFieldDrag=function(e){var t=(0,a.useDragContext)(),n=t.dragOn,l=t.dragOff,u=(0,o.useDrag)((function(){return{type:i.Drag.FieldType,collect:function(e){return{isDragging:e.isDragging()}},item:{type:i.Drag.FieldType,data:e}}})),c=u[0].isDragging,d=u[1];return(0,r.useEffect)((function(){c?n(i.Drag.FieldType):l()}),[c]),{ref:d}}},55383:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldItem=void 0;var o=r(n(2784)),i=n(36450),a=n(59305),l=n(20890),u=n(58363);t.FieldItem=function(e){var t=e.fieldType,n=t.icon,r=t.name,c=(0,i.useAppDispatch)(),d=(0,u.useBaseFieldDrag)(t).ref;return o.default.createElement(l.Field,{icon:n,label:r,onClick:function(){c(a.fieldThunks.move.newField.newRow({fieldType:t}))},dragRef:d})}},12379:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteFields=void 0;var o=r(n(2784)),i=n(27562),a=n(87087),l=r(n(2072)),u=n(51044),c=n(50417),d=n(36985),s=n(17454),f=r(n(24944)),p=n(19073),v=(0,l.default)("Favorites");t.FavoriteFields=function(){var e=(0,d.useSelectSearchedFavorites)(),t=(0,a.useFetchFavorites)({select:e}),n=t.data,r=t.isFetching,m=t.isError,h=t.error,g=(0,s.useCreateModal)();return!n&&r?o.default.createElement(c.LoaderFieldGroup,{words:[60],items:2}):m?o.default.createElement(i.ErrorBlock,null,h.message):n.length?o.default.createElement(u.FieldGroup,{title:v,button:{icon:o.default.createElement(f.default,null),title:(0,l.default)("Edit Favorites"),onClick:g}},n.map((function(e){return o.default.createElement(p.FieldItem,{key:e.uid,favorite:e})}))):null}},37699:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneFieldTypeFromFavorite=void 0;var o=r(n(9907));t.cloneFieldTypeFromFavorite=function(e,t){var n=(0,o.default)(t);return Object.entries(e.properties).map((function(e){var t,r=e[0],o=e[1],i=null===(t=null==n?void 0:n.properties)||void 0===t?void 0:t.find((function(e){return e.handle===r}));i&&(i.value=o)})),n}},19073:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldItem=void 0;var o=r(n(2784)),i=n(36450),a=n(59305),l=n(15443),u=n(20890),c=n(58363),d=n(37699);t.FieldItem=function(e){var t=e.favorite,n=t.typeClass,r=t.label,s=(0,l.useFieldType)(n),f=(0,d.cloneFieldTypeFromFavorite)(t,s),p=(0,i.useAppDispatch)(),v=(0,c.useBaseFieldDrag)(f).ref;if(!s)return null;var m=s.icon;return o.default.createElement(u.Field,{icon:m,label:r,onClick:function(){p(a.fieldThunks.move.newField.newRow({fieldType:f}))},dragRef:v})}},59348:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteFieldComponent=void 0;var o=r(n(2784)),i=n(94774),a=n(27487);t.FavoriteFieldComponent=function(e){var t=e.property,n=e.siblingProperties,r=e.state,l=e.errors,u=e.updateValueCallback,c=(0,a.useValueUpdateGenerator)(n,r,u);return o.default.createElement(i.FormComponent,{value:(null==r?void 0:r[t.handle])||"",property:t,updateValue:c(t),errors:l,context:{properties:r}})}},91768:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoritesEditor=void 0;var o=r(n(2784)),i=n(79857),a=n(59285),l=n(85227),u=n(77274),c=n(15443),d=n(59348);t.FavoritesEditor=function(e){var t=e.field,n=e.errors,r=e.values,s=e.updateValueCallback,f=(0,c.useFetchFieldPropertySections)().data,p=(0,c.useFieldType)(null==t?void 0:t.typeClass);if(!t||!p||!f)return null;var v=[];return f.sort((function(e,t){return e.order-t.order})).forEach((function(e){var t=e.handle,i=e.label,a=e.icon,l=p.properties.filter(function(e){return function(t){return t.section===e}}(t));l.length&&v.push(o.default.createElement(u.SectionBlock,{label:i,icon:a,key:t},l.map((function(e){return o.default.createElement(d.FavoriteFieldComponent,{key:e.handle,errors:null==n?void 0:n[e.handle],state:r,siblingProperties:p.properties,property:e,updateValueCallback:s})}))))})),o.default.createElement(o.default.Fragment,null,o.default.createElement(l.Title,null,o.default.createElement(l.Icon,{dangerouslySetInnerHTML:{__html:p.icon}}),o.default.createElement("span",null,(null==r?void 0:r.label)||p.name)),o.default.createElement(i.RenderContextProvider,{size:"small"},o.default.createElement(a.SectionWrapper,null,v)))}},41407:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteListItem=void 0;var l=i(n(2784)),u=n(54509),c=n(23934),d=n(15443),s=a(n(26457)),f=n(52271);t.FavoriteListItem=function(e){var t=e.favorite,n=e.label,r=e.errors,o=e.isActive,i=e.onClick,a=e.onDelete,p=(0,l.useRef)(null),v=(0,c.useHover)(p),m=(0,d.useFieldType)(t.typeClass);if(!m)return null;var h=void 0!==r&&r.length;return l.default.createElement(f.FieldListItem,{key:t.id,ref:p,onClick:i,className:(0,s.default)(o&&"active",h&&"errors")},l.default.createElement(f.Icon,{dangerouslySetInnerHTML:{__html:m.icon}}),l.default.createElement("span",null,n),l.default.createElement(u.RemoveButton,{active:v,onClick:a}))}},52271:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteButton=t.Icon=t.FieldListItem=t.FieldList=t.FavoritesEditorWrapper=t.FavoritesWrapper=void 0;var i=n(85227),a=n(71485),l=n(80159),u=n(51362),c=o(n(55721));t.FavoritesWrapper=c.default.div(d||(d=r(["\n display: flex;\n justify-content: space-between;\n\n height: 600px;\n"],["\n display: flex;\n justify-content: space-between;\n\n height: 600px;\n"])));var d,s,f,p,v,m;t.FavoritesEditorWrapper=c.default.div(s||(s=r(["\n flex: 1;\n\n height: 100%;\n padding: 0 ",";\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n\n "," {\n padding-left: 0;\n font-size: 18px;\n\n "," {\n width: ","px;\n height: ","px;\n\n svg {\n max-width: ","px;\n max-height: ","px;\n }\n }\n }\n\n "," {\n &:after {\n background-color: white;\n }\n }\n"],["\n flex: 1;\n\n height: 100%;\n padding: 0 ",";\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n\n "," {\n padding-left: 0;\n font-size: 18px;\n\n "," {\n width: ","px;\n height: ","px;\n\n svg {\n max-width: ","px;\n max-height: ","px;\n }\n }\n }\n\n "," {\n &:after {\n background-color: white;\n }\n }\n"])),u.spacings.lg,l.scrollBar,i.Title,i.Icon,22,22,22,22,a.SectionBlockContainer),t.FieldList=c.default.ul(f||(f=r(["\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n padding: ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n\n background: ",";\n box-shadow: ",";\n\n ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n padding: ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n\n background: ",";\n box-shadow: ",";\n\n ",";\n"])),u.spacings.sm,u.colors.gray050,u.shadows.right,l.scrollBar),t.FieldListItem=c.default.li(p||(p=r(["\n cursor: pointer;\n position: relative;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n\n width: 250px;\n padding: "," "," "," ",";\n\n border: 1px solid transparent;\n border-radius: ",";\n font-size: 13px;\n\n user-select: none;\n transition: all 0.2s ease-in-out;\n\n > span {\n flex: 1;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &.active {\n background: ",";\n color: ",";\n fill: currentColor;\n }\n\n &.errors {\n color: ",";\n fill: currentColor;\n\n ",";\n }\n"],["\n cursor: pointer;\n position: relative;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n\n width: 250px;\n padding: "," "," "," ",";\n\n border: 1px solid transparent;\n border-radius: ",";\n font-size: 13px;\n\n user-select: none;\n transition: all 0.2s ease-in-out;\n\n > span {\n flex: 1;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &.active {\n background: ",";\n color: ",";\n fill: currentColor;\n }\n\n &.errors {\n color: ",";\n fill: currentColor;\n\n ",";\n }\n"])),u.spacings.xs,u.spacings.xs,u.spacings.xs,u.spacings.md,u.borderRadius.lg,u.colors.gray200,u.colors.gray500,u.colors.white,u.colors.error,l.errorAlert),t.Icon=c.default.div(v||(v=r(["\n font-size: 10px;\n\n &,\n svg {\n height: 20px;\n width: 20px;\n }\n"],["\n font-size: 10px;\n\n &,\n svg {\n height: 20px;\n width: 20px;\n }\n"]))),t.DeleteButton=c.default.button(m||(m=r(["\n position: absolute;\n top: 0;\n right: 0;\n"],["\n position: absolute;\n top: 0;\n right: 0;\n"])))},53318:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0,g=(0,m.useFormBlockAnimations)(a);return t.fields.length?l.default.createElement(h.FormBlockWrapper,{className:(0,s.default)(a&&"open")},l.default.createElement(h.FormTitle,{onClick:function(){return o(!r)}},t.name,l.default.createElement(h.ExpandedState,null,l.default.createElement(p.default,null))),l.default.createElement(h.FieldListContainer,{style:g},l.default.createElement(f.List,null,t.fields.map((function(e){return l.default.createElement(v.FieldItem,{key:e.uid,field:e})}))))):null}},1801:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormFieldsWrapper=void 0;var i,a=n(51362),l=o(n(55721));t.FormFieldsWrapper=l.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),a.spacings.sm)},97708:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormsFields=void 0;var o=r(n(2784)),i=n(86993),a=n(27562),l=n(35382),u=n(64725),c=r(n(2072)),d=n(21218),s=n(36985),f=n(82183),p=n(1801);t.FormsFields=function(){var e=(0,i.useSelector)(l.formSelectors.current).uid,t=(0,s.useSelectSearchedForms)(),n=(0,u.useFetchForms)({select:t}),r=n.data,v=n.isFetching,m=n.isError,h=n.error;if(!r&&v)return null;if(m)return o.default.createElement(a.ErrorBlock,null,h.message);if(!r.length)return null;var g=r.filter((function(t){return t.uid!==e}));return g.length?o.default.createElement(p.FormFieldsWrapper,null,o.default.createElement(d.GroupTitle,null,(0,c.default)("Fields from other Forms")),g.map((function(e){return o.default.createElement(f.FormBlock,{key:e.uid,form:e})}))):null}},88786:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useFieldSearch=void 0;var r=n(2784),o=n(86993),i=n(96636),a=n(88901);t.useFieldSearch=function(){var e=(0,o.useDispatch)(),t=(0,r.useState)(""),n=t[0],l=t[1],u=(0,a.useDebounce)(n,1e3);return(0,r.useEffect)((function(){e(i.searchActions.update({type:i.Search.Fields,query:u}))}),[u]),[n,l]}},82866:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderSearch=void 0;var o=r(n(2784)),i=r(n(2072)),a=n(64e3),l=r(n(17218));t.LoaderSearch=function(){return o.default.createElement(a.Wrapper,null,o.default.createElement(a.SearchBlock,null,o.default.createElement(a.SearchIcon,null,o.default.createElement(l.default,null)),o.default.createElement(a.SearchBar,{disabled:!0,className:"fullwidth text",placeholder:(0,i.default)("Search")})))}},64e3:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SearchIcon=t.IconStyle=t.SearchBar=t.SearchBlock=t.Wrapper=void 0;var l=n(51362),u=a(n(55721));t.Wrapper=u.default.div(c||(c=r(["\n position: relative;\n z-index: 1;\n\n margin-bottom: ",";\n"],["\n position: relative;\n z-index: 1;\n\n margin-bottom: ",";\n"])),l.spacings.lg),t.SearchBlock=u.default.div(d||(d=r(["\n display: flex;\n"],["\n display: flex;\n"]))),t.SearchBar=u.default.input(s||(s=r(["\n padding: 6px 38px 6px 30px !important;\n\n border-radius: 5px;\n\n &::placeholder {\n font-style: italic;\n color: ",";\n }\n"],["\n padding: 6px 38px 6px 30px !important;\n\n border-radius: 5px;\n\n &::placeholder {\n font-style: italic;\n color: ",";\n }\n"])),l.colors.gray200);var c,d,s,f,p,v="14px";t.IconStyle=(0,u.css)(f||(f=r(["\n position: absolute;\n top: 1px;\n bottom: 1px;\n z-index: 2;\n\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n padding: 0 8px;\n\n box-sizing: border-box;\n user-select: none;\n\n > svg {\n width: ",";\n height: ",";\n }\n"],["\n position: absolute;\n top: 1px;\n bottom: 1px;\n z-index: 2;\n\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n padding: 0 8px;\n\n box-sizing: border-box;\n user-select: none;\n\n > svg {\n width: ",";\n height: ",";\n }\n"])),v,v),t.SearchIcon=u.default.div(p||(p=r(["\n left: 1px;\n\n ","\n\n color: ",";\n"],["\n left: 1px;\n\n ","\n\n color: ",";\n"])),t.IconStyle,l.colors.gray400)},7002:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Search=void 0;var o=r(n(2784)),i=r(n(2072)),a=n(88786),l=n(64e3),u=r(n(17218));t.Search=function(){var e=(0,a.useFieldSearch)(),t=e[0],n=e[1];return o.default.createElement(l.Wrapper,null,o.default.createElement(l.SearchBlock,null,o.default.createElement(l.SearchIcon,null,o.default.createElement(u.default,null)),o.default.createElement(l.SearchBar,{type:"text",placeholder:(0,i.default)("Search"),className:"fullwidth text",value:t,onChange:function(e){n(e.target.value)}})))}},50202:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderFormLayout=void 0;var o=r(n(2784)),i=n(95802),a=n(33810);t.LoaderFormLayout=function(){return o.default.createElement(o.default.Fragment,null,o.default.createElement(a.LoaderFieldList,null),o.default.createElement(i.LoaderFieldLayout,null))}},28733:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Grid=void 0;var i,a=o(n(55721));t.Grid=a.default.div(i||(i=r(["\n position: relative;\n display: flex;\n gap: 0;\n\n height: 100%;\n overflow: hidden;\n\n background: #fff;\n"],["\n position: relative;\n display: flex;\n gap: 0;\n\n height: 100%;\n overflow: hidden;\n\n background: #fff;\n"])))},89888:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutEditor=void 0;var o=r(n(2784)),i=n(76034),a=n(11455),l=n(32165),u=r(n(2072)),c=n(62873),d=n(88041),s=n(84054),f=n(37430),p=n(28733);t.LayoutEditor=function(){var e=(0,i.useResolvedPath)("");return o.default.createElement(f.DragContextProvider,null,o.default.createElement(a.Breadcrumb,{label:(0,u.default)("Layout"),url:e.pathname}),o.default.createElement(p.Grid,null,o.default.createElement(l.Sidebar,{$noPadding:!0},o.default.createElement(s.PropertyEditor,null),o.default.createElement(d.FieldList,null)),o.default.createElement(c.FieldLayout,null)))}},76305:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteButton=void 0;var l=i(n(2784)),u=n(79066),c=n(31070),d=n(9726),s=n(15443),f=a(n(26457)),p=a(n(33424)),v=a(n(19772)),m=n(93748),h=n(91123),g=n(27312);t.FavoriteButton=function(e){var t=e.field,n=(0,s.useFieldType)(null==t?void 0:t.typeClass),r=(0,h.useFavoritesMutation)(),o=(0,l.useState)(!1),i=o[0],a=o[1],b=(0,l.useState)(!1),y=b[0],_=b[1];(0,l.useEffect)((function(){a(!1),_(!1),r.reset()}),[null==t?void 0:t.uid]);var x=(0,u.useSpring)({to:{opacity:i?1:0,scale:i?1:1.1,rotate:i?0:-10},config:{tension:700}}),w=(0,u.useSpring)({to:{scale:y?1.2:1},config:{tension:600,mass:3}}),O=(0,d.useClickOutside)({callback:function(){a(!1),_(!1)},isEnabled:i});return(0,c.useEscapeStack)((function(){a(!1),_(!1)}),i),(null==t?void 0:t.uid)?l.default.createElement(g.FavoriteButtonWrapper,{className:(0,f.default)(i&&"active"),ref:O},l.default.createElement(g.Button,{style:w,onClick:function(){return a(!i)},onMouseOver:function(){return _(!0)},onMouseOut:function(){return _(!1)}},r.isSuccess&&l.default.createElement(p.default,null),!r.isSuccess&&l.default.createElement(v.default,null)),l.default.createElement(g.PopUpWrapper,{style:x},l.default.createElement(g.IconBox,null),l.default.createElement(g.InfoBlock,null,l.default.createElement(m.FavoriteForm,{field:t,type:n,mutation:r})))):null}},69588:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonContainer=t.FavoriteFormWrapper=void 0;var i,a,l=n(51362),u=o(n(55721));t.FavoriteFormWrapper=u.default.div(i||(i=r(["\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n gap: ",";\n"])),l.spacings.lg),t.ButtonContainer=u.default.div(a||(a=r(["\n display: flex;\n justify-content: center;\n"],["\n display: flex;\n justify-content: center;\n"])))},93748:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteForm=void 0;var l=i(n(2784)),u=n(12830),c=n(15738),d=a(n(60556)),s=n(57092),f=n(83287),p=a(n(26457)),v=a(n(2072)),m=n(69588);t.FavoriteForm=function(e){var t,n,r=e.field,o=e.type,i=e.mutation,a=(0,l.useState)(""),h=a[0],g=a[1];return(0,l.useEffect)((function(){g(r.properties.label||(null==o?void 0:o.name)),i.reset()}),[r.uid]),l.default.createElement(m.FavoriteFormWrapper,null,l.default.createElement(c.ControlWrapper,null,l.default.createElement(d.default,{property:{label:(0,v.default)("Create a favorite"),handle:null===(t=r.properties)||void 0===t?void 0:t.handle,flags:[],placeholder:null===(n=r.properties)||void 0===n?void 0:n.label,type:f.PropertyType.String},value:h,updateValue:function(e){return g(e)}})),l.default.createElement(m.ButtonContainer,null,l.default.createElement("button",{onClick:function(){i.mutate({label:h,field:r,type:o})},disabled:i.isLoading,className:(0,p.default)("btn fullwidth",!i.isSuccess&&"submit",i.isLoading&&"disabled")},l.default.createElement(s.LoadingText,{spinner:!0,loading:i.isLoading,loadingText:"Saving..."},(0,v.default)(i.isSuccess?"Saved!":"Favorite")))),i.isError&&l.default.createElement(u.ApiErrorsBlock,{category:"favorites",handle:"name",error:i.error}))}},91123:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFavoritesDeleteMutation=t.useFavoritesUpdateMutation=t.useFavoritesMutation=void 0;var o=n(87087),i=n(79634),a=n(79634),l=r(n(60014)),u=function(e){var t=e.label,n=e.field,r=e.type,o={label:t,properties:n.properties,typeClass:r.typeClass};return l.default.post("/api/fields/favorites",o)};t.useFavoritesMutation=function(){var e=(0,i.useQueryClient)();return(0,a.useMutation)(u,{onSuccess:function(){e.invalidateQueries({queryKey:o.QKFavorites.all})}})};t.useFavoritesUpdateMutation=function(e){void 0===e&&(e={});var t=(0,i.useQueryClient)(),n=null==e?void 0:e.onSuccess;return e.onSuccess=function(e,r,i){n&&n(e,r,i),t.invalidateQueries(o.QKFavorites.all)},(0,a.useMutation)((function(e){return l.default.put("/api/fields/favorites",e)}),e)};t.useFavoritesDeleteMutation=function(e){void 0===e&&(e={});var t=(0,i.useQueryClient)(),n=null==e?void 0:e.onSuccess;return e.onSuccess=function(e,r,i){n&&n(e,r,i);var a=r;t.setQueryData(o.QKFavorites.all,(function(e){return e.filter((function(e){return e.id!==a}))}))},(0,a.useMutation)((function(e){return l.default.delete("/api/fields/favorites/".concat(e))}),e)}},27312:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteButtonWrapper=t.Button=t.InfoBlock=t.IconBox=t.PopUpWrapper=void 0;var i,a,l,u,c,d=n(79066),s=n(51362),f=o(n(55721));t.PopUpWrapper=(0,f.default)(d.animated.div)(i||(i=r(["\n position: absolute;\n top: 24px;\n right: -16px;\n\n transform-origin: 90% -20%;\n"],["\n position: absolute;\n top: 24px;\n right: -16px;\n\n transform-origin: 90% -20%;\n"]))),t.IconBox=f.default.div(a||(a=r(["\n position: absolute;\n top: -30px;\n right: 10px;\n z-index: 2;\n\n display: flex;\n justify-content: center;\n align-content: center;\n\n width: 32px;\n height: 32px;\n\n padding: 5px;\n\n background: ",";\n\n border-style: solid;\n border-width: 1px;\n border-color: ",";\n border-bottom-color: transparent;\n border-radius: "," "," 0 0;\n\n transform-origin: center bottom;\n"],["\n position: absolute;\n top: -30px;\n right: 10px;\n z-index: 2;\n\n display: flex;\n justify-content: center;\n align-content: center;\n\n width: 32px;\n height: 32px;\n\n padding: 5px;\n\n background: ",";\n\n border-style: solid;\n border-width: 1px;\n border-color: ",";\n border-bottom-color: transparent;\n border-radius: "," "," 0 0;\n\n transform-origin: center bottom;\n"])),s.colors.gray050,s.colors.barelyVisible,s.borderRadius.md,s.borderRadius.md),t.InfoBlock=f.default.div(l||(l=r(["\n position: relative;\n z-index: 1;\n\n width: 240px;\n padding: ",";\n\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n box-shadow: 4px 12px 8px rgb(205 216 228 / 80%);\n"],["\n position: relative;\n z-index: 1;\n\n width: 240px;\n padding: ",";\n\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n box-shadow: 4px 12px 8px rgb(205 216 228 / 80%);\n"])),s.spacings.lg,s.colors.gray050,s.colors.barelyVisible,s.borderRadius.md),t.Button=(0,f.default)(d.animated.button)(u||(u=r(["\n position: relative;\n z-index: 5;\n\n width: 20px;\n height: 20px;\n\n svg {\n fill: ",";\n }\n"],["\n position: relative;\n z-index: 5;\n\n width: 20px;\n height: 20px;\n\n svg {\n fill: ",";\n }\n"])),s.colors.barelyVisible),t.FavoriteButtonWrapper=f.default.div(c||(c=r(["\n position: absolute;\n top: 17px;\n right: 40px;\n z-index: 3;\n\n background: none;\n border: none;\n\n display: flex;\n justify-content: center;\n align-content: center;\n\n &:not(.active) {\n "," {\n pointer-events: none;\n }\n }\n"],["\n position: absolute;\n top: 17px;\n right: 40px;\n z-index: 3;\n\n background: none;\n border: none;\n\n display: flex;\n justify-content: center;\n align-content: center;\n\n &:not(.active) {\n "," {\n pointer-events: none;\n }\n }\n"])),t.PopUpWrapper)},60440:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldComponent=void 0;var o=r(n(2784)),i=n(86993),a=n(94774),l=n(36450),u=n(27487),c=n(9202),d=n(4165),s=n(15443);t.FieldComponent=function(e){var t,n,r,f=e.property,p=e.field,v=(0,l.useAppDispatch)(),m=(0,s.useFieldType)(p.typeClass),h=(null===(t=(0,i.useSelector)(d.fieldSelectors.one(p.uid)))||void 0===t?void 0:t.properties)||{},g=(0,u.useValueUpdateGenerator)(m.properties,h,(function(e,t){v(c.fieldActions.edit({uid:p.uid,handle:e,value:t}))})),b=null===(n=p.properties)||void 0===n?void 0:n[f.handle];return o.default.createElement(a.FormComponent,{value:b,property:f,updateValue:g(f),errors:null===(r=p.errors)||void 0===r?void 0:r[f.handle],context:p})}},69707:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldPropertiesWrapper=void 0;var i,a=n(51362),l=o(n(55721));t.FieldPropertiesWrapper=l.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n\n height: 100%;\n background: ",";\n"],["\n display: flex;\n flex-direction: column;\n\n height: 100%;\n background: ",";\n"])),a.colors.gray050)},77309:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldProperties=void 0;var o=r(n(2784)),i=r(n(76257)),a=n(86993),l=n(94774),u=n(36450),c=n(8697),d=n(4165),s=n(59305),f=r(n(86022)),p=n(15443),v=n(83287),m=r(n(2072)),h=n(85227),g=n(77274),b=n(71485),y=n(76305),_=r(n(17561)),x=n(60440),w=n(69707);t.FieldProperties=function(e){var t=e.uid,n=(0,u.useAppDispatch)(),r=(0,p.useFetchFieldPropertySections)(),O=r.data,E=r.isFetching,P=(0,p.useFetchFieldTypes)().data,j=(0,a.useSelector)(d.fieldSelectors.one(t)),M=(0,p.useFieldType)(null==j?void 0:j.typeClass),k=(0,p.useFieldTypeSearch)();if(!j||!M)return o.default.createElement(w.FieldPropertiesWrapper,null);if(!O&&E)return o.default.createElement(w.FieldPropertiesWrapper,null,o.default.createElement(h.Title,null,o.default.createElement(h.Icon,{dangerouslySetInnerHTML:{__html:M.icon}}),o.default.createElement("span",null,M.name)),o.default.createElement(b.SectionWrapper,null,o.default.createElement(i.default,null)));var C=[];return O.sort((function(e,t){return e.order-t.order})).forEach((function(e){var t=e.handle,n=e.label,r=e.icon,i=M.properties.filter(function(e){return function(t){return t.section===e}}(t));i.length&&C.push(o.default.createElement(g.SectionBlock,{label:n,icon:r,key:t},i.map((function(e){return o.default.createElement(x.FieldComponent,{key:e.handle,field:j,property:e})}))))})),o.default.createElement(w.FieldPropertiesWrapper,null,o.default.createElement(h.CloseLink,{onClick:function(){return n(c.contextActions.unfocus())}},o.default.createElement(f.default,null)),o.default.createElement(y.FavoriteButton,{field:j}),o.default.createElement(h.Title,null,o.default.createElement(h.Icon,{dangerouslySetInnerHTML:{__html:M.icon}}),o.default.createElement("span",null,M.name)),o.default.createElement(b.SectionWrapper,null,C,o.default.createElement(g.SectionBlock,{label:(0,m.default)("Advanced"),icon:o.default.createElement(_.default,null)},o.default.createElement(l.FormComponent,{value:j.typeClass,property:{type:v.PropertyType.Select,handle:"typeClass",label:(0,m.default)("Field type"),instructions:(0,m.default)("Change the type of this field."),options:P.map((function(e){return{label:e.name,value:e.typeClass}}))},updateValue:function(e){confirm((0,m.default)("Are you sure? You might potentially lose important data."))&&n(s.fieldThunks.change.type(j,k(e)))}}))))}},85189:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageComponent=void 0;var o=r(n(2784)),i=n(94774),a=n(36450),l=n(97240);t.PageComponent=function(e){var t,n=e.property,r=e.page,u=(0,a.useAppDispatch)(),c=null===(t=r.buttons)||void 0===t?void 0:t[n.handle];return o.default.createElement(i.FormComponent,{value:c,property:n,updateValue:function(e){u(l.pageActions.editButtons({uid:r.uid,key:n.handle,value:e}))},context:r})}},85747:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PagePropertiesWrapper=void 0;var i,a=n(51362),l=o(n(55721));t.PagePropertiesWrapper=l.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n\n height: 100%;\n background: ",";\n"],["\n display: flex;\n flex-direction: column;\n\n height: 100%;\n background: ",";\n"])),a.colors.gray050)},94362:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageProperties=void 0;var o=r(n(2784)),i=r(n(76257)),a=n(86993),l=n(36450),u=n(8697),c=n(60719),d=r(n(86022)),s=n(56790),f=n(85227),p=n(77274),v=n(71485),m=n(85189),h=n(85747);t.PageProperties=function(e){var t=e.uid,n=(0,l.useAppDispatch)(),r=(0,a.useSelector)(c.pageSelecors.one(t)),g=(0,s.useFetchPageButtonType)(),b=g.data,y=g.isFetching;if(!b&&y)return o.default.createElement(h.PagePropertiesWrapper,null,o.default.createElement(f.CloseLink,{onClick:function(){return n(u.contextActions.unfocus())}},o.default.createElement(d.default,null)),o.default.createElement(f.Title,null,o.default.createElement("span",null,r.label)),o.default.createElement(v.SectionWrapper,{style:{paddingTop:20}},o.default.createElement(i.default,{height:30}),o.default.createElement(i.default,{height:30}),o.default.createElement(i.default,{height:30})));if(!r)return null;var _=[];return b.sections.forEach((function(e){var t=e.handle,n=e.label,i=e.icon,a=b.properties.filter(function(e){return function(t){return t.section===e}}(t));a.length&&_.push(o.default.createElement(p.SectionBlock,{label:n,icon:i,key:t},a.map((function(e){return o.default.createElement(m.PageComponent,{key:e.handle,page:r,property:e})}))))})),o.default.createElement(h.PagePropertiesWrapper,null,o.default.createElement(f.CloseLink,{onClick:function(){return n(u.contextActions.unfocus())}},o.default.createElement(d.default,null)),o.default.createElement(f.Title,null,o.default.createElement("span",null,r.label)),o.default.createElement(v.SectionWrapper,null,_))}},85227:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=t.Title=t.CloseLink=t.AnimatedBlock=t.PropertyEditorWrapper=void 0;var i,a,l,u,c,d=n(79066),s=n(51362),f=o(n(55721));t.PropertyEditorWrapper=f.default.div(i||(i=r(["\n position: absolute;\n\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n\n z-index: 2;\n\n overflow: hidden;\n border-right: 1px solid rgb(154 165 177 / 25%);\n\n pointer-events: ",";\n background: ",";\n\n transition: background-color 0.2s ease-in-out;\n"],["\n position: absolute;\n\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n\n z-index: 2;\n\n overflow: hidden;\n border-right: 1px solid rgb(154 165 177 / 25%);\n\n pointer-events: ",";\n background: ",";\n\n transition: background-color 0.2s ease-in-out;\n"])),(function(e){return e.$active?"auto":"none"}),(function(e){return e.$active?s.colors.gray050:"transparent"})),t.AnimatedBlock=(0,f.default)(d.animated.div)(a||(a=r(["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n\n z-index: 2;\n"],["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n\n z-index: 2;\n"]))),t.CloseLink=f.default.a(l||(l=r(["\n position: absolute;\n right: 10px;\n top: 17px;\n\n z-index: 5;\n\n display: block;\n width: 20px;\n height: 20px;\n"],["\n position: absolute;\n right: 10px;\n top: 17px;\n\n z-index: 5;\n\n display: block;\n width: 20px;\n height: 20px;\n"]))),t.Title=f.default.h3(u||(u=r(["\n position: relative;\n\n display: flex;\n justify-content: flex-start;\n align-items: end;\n gap: ",";\n\n margin: 0;\n padding: ",";\n\n font-size: 16px;\n box-shadow: ",";\n\n > span {\n display: block;\n }\n"],["\n position: relative;\n\n display: flex;\n justify-content: flex-start;\n align-items: end;\n gap: ",";\n\n margin: 0;\n padding: ",";\n\n font-size: 16px;\n box-shadow: ",";\n\n > span {\n display: block;\n }\n"])),s.spacings.sm,s.spacings.lg,s.shadows.bottom),t.Icon=f.default.div(c||(c=r(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 20px;\n height: 20px;\n\n svg {\n max-width: 20px;\n max-height: 20px;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 20px;\n height: 20px;\n\n svg {\n max-width: 20px;\n max-height: 20px;\n }\n"])))},84054:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyEditor=void 0;var o=r(n(2784)),i=n(86993),a=n(79066),l=n(90163),u=n(79857),c=n(36450),d=n(8697),s=n(72671),f=n(31070),p=n(9726),v=n(77309),m=n(94362),h=n(85227);t.PropertyEditor=function(){var e=(0,c.useAppDispatch)(),t=(0,i.useSelector)(s.contextSelectors.focus),n=t.active,r=t.type;(0,f.useEscapeStack)((function(){return e(d.contextActions.unfocus())}),n);var g=(0,p.useClickOutside)({callback:function(){e(d.contextActions.unfocus())},isEnabled:n,excludeClassNames:["field-layout","page-buttons","page-tab","save-button","main-tabs","editable-content","dropdown-rollout"]}),b=(0,a.useTransition)(n?[t]:null,{from:{transform:"translate3d(100%, 0, 0)",opacity:1},enter:{transform:"translate3d(0%, 0, 0)",opacity:1,zIndex:2},leave:{transform:"translate3d(-100%, 0, 0)"},config:{tension:500,friction:50}});return o.default.createElement(u.RenderContextProvider,{size:"small"},o.default.createElement(h.PropertyEditorWrapper,{$active:n,ref:g},o.default.createElement(l.ErrorBoundary,{message:'Could not load property editor for "'.concat(r,'" type')},b((function(e,t){return o.default.createElement(h.AnimatedBlock,{style:e},!!t&&"field"===t.type&&o.default.createElement(v.FieldProperties,{uid:t.uid}),!!t&&"page"===t.type&&o.default.createElement(m.PageProperties,{uid:t.uid}))})))))}},71485:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SectionBlockWrapper=t.SectionBlockContainer=t.SectionBlockIcon=t.SectionWrapper=void 0;var i,a,l,u,c=n(80159),d=n(51362),s=o(n(55721)),f=n(85227);t.SectionWrapper=s.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n\n padding: 0 "," ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n ",";\n"],["\n display: flex;\n flex-direction: column;\n\n padding: 0 "," ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n ",";\n"])),d.spacings.lg,d.spacings.lg,c.scrollBar),t.SectionBlockIcon=(0,s.default)(f.Icon)(a||(a=r(["\n position: absolute;\n left: 2px;\n top: 12px;\n z-index: 1;\n\n width: 14px;\n height: 14px;\n\n fill: rgb(154 165 177 / 75%);\n"],["\n position: absolute;\n left: 2px;\n top: 12px;\n z-index: 1;\n\n width: 14px;\n height: 14px;\n\n fill: rgb(154 165 177 / 75%);\n"]))),t.SectionBlockContainer=s.default.section(l||(l=r(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n margin-top: ",";\n padding-top: ",";\n padding-bottom: ",";\n\n &:empty {\n display: none;\n\n & + "," {\n display: none;\n }\n }\n\n &:before {\n content: '';\n\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n\n display: block;\n height: 1px;\n\n margin: 0 -18px;\n\n box-shadow: ",";\n }\n\n &:after {\n content: attr(data-label);\n\n position: absolute;\n left: -5px;\n top: -7px;\n\n display: block;\n padding: 0 5px 0 26px;\n\n background-color: ",";\n\n ",";\n font-size: 11px;\n }\n"],["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n margin-top: ",";\n padding-top: ",";\n padding-bottom: ",";\n\n &:empty {\n display: none;\n\n & + "," {\n display: none;\n }\n }\n\n &:before {\n content: '';\n\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n\n display: block;\n height: 1px;\n\n margin: 0 -18px;\n\n box-shadow: ",";\n }\n\n &:after {\n content: attr(data-label);\n\n position: absolute;\n left: -5px;\n top: -7px;\n\n display: block;\n padding: 0 5px 0 26px;\n\n background-color: ",";\n\n ",";\n font-size: 11px;\n }\n"])),d.spacings.md,d.spacings.lg,d.spacings.lg,d.spacings.lg,t.SectionBlockIcon,d.shadows.bottom,d.colors.gray050,c.labelText),t.SectionBlockWrapper=s.default.div(u||(u=r(["\n position: relative;\n\n &:first-child {\n "," {\n margin-top: 0;\n\n &:before,\n &:after {\n display: none;\n }\n }\n\n "," {\n display: none;\n }\n }\n"],["\n position: relative;\n\n &:first-child {\n "," {\n margin-top: 0;\n\n &:before,\n &:after {\n display: none;\n }\n }\n\n "," {\n display: none;\n }\n }\n"])),t.SectionBlockContainer,t.SectionBlockIcon)},77274:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SectionBlock=void 0;var o=r(n(2784)),i=n(71485);t.SectionBlock=function(e){var t=e.label,n=e.icon,r=e.children;return o.default.createElement(i.SectionBlockWrapper,null,o.default.createElement(i.SectionBlockContainer,{"data-label":t},r),function(e){return e?"string"==typeof e?o.default.createElement(i.SectionBlockIcon,{dangerouslySetInnerHTML:{__html:e}}):o.default.createElement(i.SectionBlockIcon,null,e):null}(n))}},39977:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationsWrapper=void 0;var i,a=o(n(55721));t.NotificationsWrapper=a.default.div(i||(i=r(["\n display: flex;\n height: 100%;\n"],["\n display: flex;\n height: 100%;\n"])))},84085:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Notifications=void 0;var o=r(n(2784)),i=n(76034),a=n(11455),l=r(n(2072)),u=n(78177),c=n(39977);t.Notifications=function(){var e=(0,i.useResolvedPath)("");return o.default.createElement(c.NotificationsWrapper,null,o.default.createElement(a.Breadcrumb,{label:(0,l.default)("Notifications"),url:e.pathname}),o.default.createElement(u.List,null),o.default.createElement(i.Outlet,null))}},33255:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldComponent=void 0;var o=r(n(2784)),i=n(94774),a=n(36450),l=n(12163);t.FieldComponent=function(e){var t,n=e.notification,r=e.property,u=(0,a.useAppDispatch)(),c=n.uid,d=r.handle,s=null==n?void 0:n[r.handle];return o.default.createElement(i.FormComponent,{value:s,property:r,updateValue:function(e){u(l.notificationActions.modify({uid:c,key:d,value:e}))},errors:null===(t=n.errors)||void 0===t?void 0:t[r.handle],context:n})}},80407:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyEditor=t.Inline=void 0;var i=o(n(2784)),a=n(19002),l=n(51362),u=o(n(2072)),c=o(n(55721)),d=o(n(90622)),s=n(91326);t.Inline=c.default.div(f||(f=r(["\n display: flex;\n gap: ",";\n"],["\n display: flex;\n gap: ",";\n"])),l.spacings.md);var f;t.EmptyEditor=function(){return i.default.createElement(s.PropertyEditorWrapper,null,i.default.createElement(a.EmptyBlock,{title:(0,u.default)("No notifications found"),subtitle:(0,u.default)("To add a notification, use the sidebar on the left"),icon:i.default.createElement(d.default,null)}))}},13919:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingEditor=t.Inline=void 0;var i=o(n(2784)),a=o(n(76257)),l=n(91176),u=n(51362),c=o(n(55721)),d=n(91326);t.Inline=c.default.div(s||(s=r(["\n display: flex;\n gap: ",";\n"],["\n display: flex;\n gap: ",";\n"])),u.spacings.md);var s;t.LoadingEditor=function(){return i.default.createElement(d.PropertyEditorWrapper,null,i.default.createElement(l.ThemedSkeleton,null,i.default.createElement(a.default,{width:120,height:20}),i.default.createElement("br",null),i.default.createElement(a.default,{width:100,height:10}),i.default.createElement(a.default,{width:50,height:20}),i.default.createElement("br",null),i.default.createElement(a.default,{width:200,height:10}),i.default.createElement(a.default,{width:500,height:10}),i.default.createElement(a.default,{height:30}),i.default.createElement("br",null),i.default.createElement(a.default,{width:150,height:10}),i.default.createElement(a.default,{width:300,height:10}),i.default.createElement(a.default,{height:30})))}},91326:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsWrapper=t.PropertyEditorWrapper=void 0;var i,a,l=n(80159),u=n(51362),c=o(n(55721));t.PropertyEditorWrapper=c.default.div(i||(i=r(["\n position: relative;\n flex: 1;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n background: ",";\n padding: ",";\n\n overflow-y: auto;\n\n ",";\n"],["\n position: relative;\n flex: 1;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n background: ",";\n padding: ",";\n\n overflow-y: auto;\n\n ",";\n"])),u.spacings.xl,u.colors.white,u.spacings.xl,l.scrollBar),t.SettingsWrapper=c.default.div(a||(a=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),u.spacings.md)},42820:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyEditor=void 0;var o=r(n(2784)),i=n(86993),a=n(76034),l=n(90022),u=n(74740),c=n(69397),d=n(33255),s=n(80407),f=n(13919),p=n(91326);t.PropertyEditor=function(){var e,t=(0,a.useParams)(),n=t.formId,r=t.uid,v=(0,u.useQueryNotificationTypes)().data,m=(0,u.useQueryFormNotifications)(n?Number(n):void 0),h=m.data,g=m.isFetching,b=(0,i.useSelector)(l.notificationSelectors.one(r));if(!h&&g)return o.default.createElement(f.LoadingEditor,null);if(!b)return o.default.createElement(s.EmptyEditor,null);var y=(null===(e=null==v?void 0:v.find((function(e){return e.className===b.className})))||void 0===e?void 0:e.properties)||[];return o.default.createElement(p.PropertyEditorWrapper,null,o.default.createElement(c.Remove,{notification:b}),o.default.createElement(p.SettingsWrapper,null,y.map((function(e){return o.default.createElement(d.FieldComponent,{key:e.handle,notification:b,property:e})}))))}},79811:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRemoveAnimation=void 0;var r=n(79066),o=n(51362);t.useRemoveAnimation=function(e){var t=e.hovering;return(0,r.useSpring)({opacity:1,background:t?o.colors.error:"transparent",color:t?"#fff":o.colors.gray300,scale:t?1.2:1,config:function(e){switch(e){case"background":case"color":return{tension:330,friction:20};default:return{tension:330,friction:15}}}})}},6325:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveButtonWrapper=void 0;var i,a=n(79066),l=o(n(55721));t.RemoveButtonWrapper=(0,l.default)(a.animated.button)(i||(i=r(["\n position: absolute;\n top: 15px;\n right: 20px;\n z-index: 2;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n border-radius: 50%;\n padding: 3px;\n\n svg {\n width: 20px;\n height: 20px;\n\n color: currentColor;\n }\n"],["\n position: absolute;\n top: 15px;\n right: 20px;\n z-index: 2;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n border-radius: 50%;\n padding: 3px;\n\n svg {\n width: 20px;\n height: 20px;\n\n color: currentColor;\n }\n"])))},69397:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Remove=void 0;var l=i(n(2784)),u=n(76034),c=n(36450),d=n(19007),s=a(n(11411)),f=n(79811),p=n(6325);t.Remove=function(e){var t=e.notification,n=(0,u.useNavigate)(),r=(0,c.useAppDispatch)(),o=(0,l.useState)(!1),i=o[0],a=o[1],v=(0,f.useRemoveAnimation)({hovering:i});return l.default.createElement(p.RemoveButtonWrapper,{style:v,onMouseEnter:function(){return a(!0)},onMouseLeave:function(){return a(!1)},onClick:function(e){e.stopPropagation(),r((0,d.removeNotification)(t)),n("..")}},l.default.createElement(s.default,null))}},19056:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Status=t.Name=t.Icon=t.Link=void 0;var i=n(76034),a=n(51362),l=o(n(55721));t.Link=(0,l.default)(i.NavLink)(u||(u=r(["\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border-radius: ",";\n\n color: ",";\n font-size: 12px;\n line-height: 12px;\n\n transition: background-color 0.2s ease-out;\n text-decoration: none;\n\n &.active {\n color: ",";\n background-color: ",";\n }\n\n &.active.inactive {\n .status-dot {\n border-color: ",";\n }\n }\n\n &:hover {\n text-decoration: none;\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n\n &.errors {\n color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border-radius: ",";\n\n color: ",";\n font-size: 12px;\n line-height: 12px;\n\n transition: background-color 0.2s ease-out;\n text-decoration: none;\n\n &.active {\n color: ",";\n background-color: ",";\n }\n\n &.active.inactive {\n .status-dot {\n border-color: ",";\n }\n }\n\n &:hover {\n text-decoration: none;\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n\n &.errors {\n color: ",";\n }\n"])),a.spacings.sm,a.spacings.sm,a.spacings.md,a.borderRadius.lg,a.colors.gray700,a.colors.white,a.colors.gray500,a.colors.white,a.colors.gray200,a.colors.error);var u,c,d,s;t.Icon=l.default.div(c||(c=r(["\n display: block;\n width: ","px;\n height: ","px;\n fill: ",";\n"],["\n display: block;\n width: ","px;\n height: ","px;\n fill: ",";\n"])),20,20,a.colors.gray550),t.Name=l.default.div(d||(d=r(["\n flex-grow: 1;\n max-width: 90%;\n overflow: hidden;\n\n &:empty:after {\n content: 'No Title';\n color: ",";\n font-style: italic;\n }\n"],["\n flex-grow: 1;\n max-width: 90%;\n overflow: hidden;\n\n &:empty:after {\n content: 'No Title';\n color: ",";\n font-style: italic;\n }\n"])),a.colors.gray400),t.Status=l.default.div(s||(s=r(["\n content: '';\n\n flex-shrink: 0;\n justify-self: flex-end;\n\n width: 10px;\n height: 10px;\n\n border: 1px solid\n ",";\n border-radius: 100%;\n\n background-color: ",";\n\n transition: all 0.3s ease-out;\n"],["\n content: '';\n\n flex-shrink: 0;\n justify-self: flex-end;\n\n width: 10px;\n height: 10px;\n\n border: 1px solid\n ",";\n border-radius: 100%;\n\n background-color: ",";\n\n transition: all 0.3s ease-out;\n"])),(function(e){return e.$enabled?"transparent":a.colors.gray550}),(function(e){return e.$enabled?a.colors.teal550:"transparent"}))},67584:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationItem=void 0;var o=r(n(2784)),i=n(86993),a=n(90022),l=r(n(26457)),u=n(75482),c=n(19056);t.NotificationItem=function(e){var t=e.icon,n=e.notification.uid,r=(0,i.useSelector)(a.notificationSelectors.one(n)),d=r.name,s=r.enabled,f=r.errors;return o.default.createElement(c.Link,{to:"".concat(n),className:(0,l.default)((0,u.hasErrors)(f)&&"errors",!s&&"inactive")},t&&o.default.createElement(c.Icon,{dangerouslySetInnerHTML:{__html:t}}),o.default.createElement(c.Name,null,d),o.default.createElement(c.Status,{$enabled:s,className:(0,l.default)("status-dot")}))}},53846:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CategorySkeleton=void 0;var o=r(n(2784)),i=r(n(76257)),a=n(91176),l=n(91560);t.CategorySkeleton=function(){return o.default.createElement(a.ThemedSkeleton,null,o.default.createElement(l.Wrapper,null,o.default.createElement(l.LabelWrapper,null,o.default.createElement(i.default,{width:50})),o.default.createElement(l.NotificationItemWrapper,{style:{padding:14}},[0,1,2].map((function(e){return o.default.createElement("div",{key:e,style:{display:"flex",gap:10,alignItems:"center"}},o.default.createElement(i.default,{width:20,height:20,circle:!0}),o.default.createElement("div",{style:{flexGrow:2}},o.default.createElement(i.default,{width:100,style:{top:2}})),o.default.createElement(i.default,{width:10,height:10,circle:!0,style:{top:6}}))})))))}},91560:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationItemWrapper=t.Button=t.Label=t.LabelWrapper=t.Wrapper=void 0;var i,a,l,u,c,d=n(51362),s=o(n(55721));t.Wrapper=s.default.div(i||(i=r([""],[""]))),t.LabelWrapper=s.default.div(a||(a=r(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 5px;\n line-height: 22px;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 5px;\n line-height: 22px;\n"]))),t.Label=s.default.span(l||(l=r(["\n padding-left: ",";\n font-weight: 700;\n font-size: 11px;\n color: ",";\n text-transform: uppercase;\n"],["\n padding-left: ",";\n font-weight: 700;\n font-size: 11px;\n color: ",";\n text-transform: uppercase;\n"])),d.spacings.md,d.colors.gray550),t.Button=s.default.button(u||(u=r(["\n align-self: end;\n\n &:hover {\n background-color: ",";\n }\n"],["\n align-self: end;\n\n &:hover {\n background-color: ",";\n }\n"])),d.colors.gray200),t.NotificationItemWrapper=s.default.div(c||(c=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," 0;\n\n &:empty {\n &:after {\n content: 'None configured';\n\n padding: 2px};\n margin-left: 12px;\n\n font-style: italic;\n font-size: 12px;\n\n color: ",";\n }\n }\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," 0;\n\n &:empty {\n &:after {\n content: 'None configured';\n\n padding: 2px};\n margin-left: 12px;\n\n font-style: italic;\n font-size: 12px;\n\n color: ",";\n }\n }\n"])),d.spacings.xs,d.spacings.xs,d.colors.gray300)},41200:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationTypeItem=void 0;var o=r(n(2784)),i=n(76034),a=n(36450),l=n(19007),u=r(n(26457)),c=r(n(2072)),d=n(60130),s=n(91560);t.NotificationTypeItem=function(e){var t=e.type,n=e.children,r=(0,i.useNavigate)(),f=(0,a.useAppDispatch)(),p=t.name;return o.default.createElement(s.Wrapper,null,o.default.createElement(s.LabelWrapper,null,o.default.createElement(s.Label,null,p),o.default.createElement(s.Button,{className:(0,u.default)("btn","add","icon","small","dashed"),onClick:function(){var e=(0,d.v4)();f((0,l.addNewNotification)(t,e)),r(e)}},(0,c.default)("New"))),o.default.createElement(s.NotificationItemWrapper,null,n))}},17458:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollableList=void 0;var i,a=n(80159),l=n(51362),u=o(n(55721));t.ScrollableList=u.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n height: 100%;\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n height: 100%;\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n"])),l.spacings.sm,a.scrollBar)},78177:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.List=void 0;var a=i(n(2784)),l=n(86993),u=n(76034),c=n(32165),d=n(41200),s=n(53846),f=n(90022),p=n(74740),v=n(67584),m=n(17458);t.List=function(){var e=(0,u.useParams)(),t=e.formId,n=e.uid,r=(0,u.useNavigate)(),o=(0,p.useQueryNotificationTypes)(),i=o.data,h=o.isFetching;(0,p.useQueryFormNotifications)(t?Number(t):void 0);var g=(0,l.useSelector)(f.notificationSelectors.all);return(0,a.useEffect)((function(){if(!n&&i&&g){var e=g.find(Boolean);e&&r(e.uid)}}),[n,i,g]),!i&&h?a.default.createElement(c.Sidebar,null,a.default.createElement(s.CategorySkeleton,null)):i||h?a.default.createElement(c.Sidebar,{$lean:!0},a.default.createElement(m.ScrollableList,null,i.map((function(e){return a.default.createElement(d.NotificationTypeItem,{key:e.className,type:e},g&&(null==g?void 0:g.filter((function(t){return t.className===e.className})).map((function(t){return a.default.createElement(v.NotificationItem,{key:t.uid,icon:e.icon,notification:t})}))))})))):a.default.createElement(a.default.Fragment,null,"Empty")}},83837:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CombinatorSelect=void 0;var o=r(n(2784)),i=n(75094),a=r(n(2072));t.CombinatorSelect=function(e){var t=e.value,n=e.onChange;return o.default.createElement("div",{className:"select"},o.default.createElement("select",{value:t,onChange:function(e){return n&&n(e.target.value)}},o.default.createElement("option",{value:i.Combinator.Or},(0,a.default)("any")),o.default.createElement("option",{value:i.Combinator.And},(0,a.default)("all"))))}},86804:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DisplaySelect=void 0;var o=r(n(2784)),i=n(75094),a=r(n(2072));t.DisplaySelect=function(e){var t=e.value,n=e.onChange;return o.default.createElement("div",{className:"select"},o.default.createElement("select",{value:t,onChange:function(e){return n&&n(e.target.value)}},o.default.createElement("option",{value:i.Display.Show},(0,a.default)("show")),o.default.createElement("option",{value:i.Display.Hide},(0,a.default)("hide"))))}},18273:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DisplaySend=void 0;var o,i=r(n(2784)),a=r(n(2072));!function(e){e.Send="send",e.NotSend="not-send"}(o||(o={}));t.DisplaySend=function(e){var t=e.value,n=e.onChange;return i.default.createElement("div",{className:"select"},i.default.createElement("select",{value:t?o.Send:o.NotSend,onChange:function(e){return n&&n(e.target.value===o.Send)}},i.default.createElement("option",{value:o.Send},(0,a.default)("Send")),i.default.createElement("option",{value:o.NotSend},(0,a.default)("Don't send"))))}},36394:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Action=t.Table=void 0;var i,a,l=n(51362),u=o(n(55721));t.Table=u.default.table(i||(i=r(["\n width: 100%;\n\n margin: 0;\n border-spacing: 0;\n border-collapse: separate;\n\n td {\n &:nth-child(1) {\n width: 25%;\n }\n\n &:nth-child(2) {\n width: 20%;\n }\n\n &:last-child {\n width: 20px;\n }\n }\n\n tbody {\n tr {\n td {\n padding: 0 !important;\n padding-top: 7px !important;\n padding-right: 7px !important;\n padding-bottom: 7px !important;\n border-bottom: 1px solid ",";\n background-color: ",";\n }\n\n td:first-child {\n padding-left: 7px !important;\n border-left: 1px solid ",";\n }\n\n td:last-child {\n border-right: 1px solid ",";\n }\n }\n\n tr:first-child {\n td {\n border-top: 1px solid ",";\n }\n\n td:first-child {\n border-top-left-radius: ",";\n border-top: 1px solid ",";\n }\n\n td:last-child {\n border-top: 1px solid ",";\n border-top-right-radius: ",";\n }\n }\n\n tr:last-child {\n td {\n padding: 0 !important;\n background-color: ",";\n\n .btn {\n border: 0 !important;\n border-radius: 0 !important;\n background-color: transparent !important;\n }\n }\n\n td:last-child {\n border-left: 1px dashed ",";\n border-right: 1px dashed ",";\n border-bottom: 1px dashed ",";\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n }\n }\n\n tr:first-child:last-child {\n td {\n border-top: 1px dashed ",";\n }\n }\n }\n"],["\n width: 100%;\n\n margin: 0;\n border-spacing: 0;\n border-collapse: separate;\n\n td {\n &:nth-child(1) {\n width: 25%;\n }\n\n &:nth-child(2) {\n width: 20%;\n }\n\n &:last-child {\n width: 20px;\n }\n }\n\n tbody {\n tr {\n td {\n padding: 0 !important;\n padding-top: 7px !important;\n padding-right: 7px !important;\n padding-bottom: 7px !important;\n border-bottom: 1px solid ",";\n background-color: ",";\n }\n\n td:first-child {\n padding-left: 7px !important;\n border-left: 1px solid ",";\n }\n\n td:last-child {\n border-right: 1px solid ",";\n }\n }\n\n tr:first-child {\n td {\n border-top: 1px solid ",";\n }\n\n td:first-child {\n border-top-left-radius: ",";\n border-top: 1px solid ",";\n }\n\n td:last-child {\n border-top: 1px solid ",";\n border-top-right-radius: ",";\n }\n }\n\n tr:last-child {\n td {\n padding: 0 !important;\n background-color: ",";\n\n .btn {\n border: 0 !important;\n border-radius: 0 !important;\n background-color: transparent !important;\n }\n }\n\n td:last-child {\n border-left: 1px dashed ",";\n border-right: 1px dashed ",";\n border-bottom: 1px dashed ",";\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n }\n }\n\n tr:first-child:last-child {\n td {\n border-top: 1px dashed ",";\n }\n }\n }\n"])),l.colors.inputBorder,l.colors.gray050,l.colors.inputBorder,l.colors.inputBorder,l.colors.inputBorder,l.borderRadius.lg,l.colors.inputBorder,l.colors.inputBorder,l.borderRadius.lg,l.colors.white,l.colors.inputBorder,l.colors.inputBorder,l.colors.inputBorder,l.borderRadius.lg,l.borderRadius.lg,l.colors.inputBorder),t.Action=u.default.button(a||(a=r(["\n margin: 0;\n padding: 0;\n border: none;\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n width: 16px;\n height: 16px;\n stroke-width: 3px;\n fill: #e5e7eb;\n }\n"],["\n margin: 0;\n padding: 0;\n border: none;\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n width: 16px;\n height: 16px;\n stroke-width: 3px;\n fill: #e5e7eb;\n }\n"])))},12804:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n "," "," {\n display: none;\n }\n\n "," {\n color: ",";\n }\n }\n\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n\n &.active {\n background-color: #5b6573;\n border-color: #5b6573;\n color: white;\n }\n\n &.is-in-condition {\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n\n width: 0;\n border-left: 10px solid transparent;\n border-bottom: 10px solid transparent;\n border-left: 10px solid ",";\n }\n\n &-active:after {\n border-left-color: ",";\n }\n }\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: ",";\n\n flex: 1;\n\n overflow: hidden;\n padding: 5px 7px;\n\n width: 100%;\n height: 100%;\n\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n transition: all 0.2s ease-out;\n\n &,\n * {\n cursor: pointer;\n }\n\n &.has-rule:not(.active) {\n border-color: ",";\n background-color: ",";\n }\n\n &.group {\n background-color: ",";\n border-color: ",";\n\n > "," "," {\n display: none;\n }\n\n "," {\n color: ",";\n }\n }\n\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n\n &.active {\n background-color: #5b6573;\n border-color: #5b6573;\n color: white;\n }\n\n &.is-in-condition {\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n\n width: 0;\n border-left: 10px solid transparent;\n border-bottom: 10px solid transparent;\n border-left: 10px solid ",";\n }\n\n &-active:after {\n border-left-color: ",";\n }\n }\n"])),s.spacings.sm,s.colors.gray100,s.colors.gray100,s.borderRadius.md,s.colors.teal550,s.colors.teal050,s.colors.white,s.colors.gray100,t.FieldInfo,t.Icon,t.GroupWrapper,s.colors.gray800,s.colors.gray200,s.colors.gray200,s.colors.gray200,s.colors.teal550)},95800:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Field=void 0;var o=r(n(2784)),i=n(86993),a=n(76034),l=n(18884),u=n(40790),c=n(15443),d=n(75094),s=r(n(26457)),f=n(72757),p=n(7178);t.Field=function(e){var t=e.field,n=(0,a.useParams)().uid,r=(0,a.useNavigate)(),v=(0,c.useFieldType)(null==t?void 0:t.typeClass),m=n===t.uid,h=(0,i.useSelector)(l.fieldRuleSelectors.one(n)),g=(0,i.useSelector)(u.pageRuleSelectors.one(n)),b=(0,i.useSelector)(l.fieldRuleSelectors.hasRule(t.uid)),y=(0,i.useSelector)(u.pageRuleSelectors.hasRule(t.uid)),_=(0,i.useSelector)(l.fieldRuleSelectors.isInCondition(t.uid)),x=(null==h?void 0:h.conditions.find((function(e){return e.field===t.uid})))||(null==g?void 0:g.conditions.find((function(e){return e.field===t.uid})));return void 0===(null==t?void 0:t.properties)?null:o.default.createElement(p.FieldWrapper,{onClick:function(e){e.stopPropagation(),r(n===t.uid?"":"field/".concat(t.uid))},className:(0,s.default)("group"===(null==v?void 0:v.type)&&"group",m&&"active",(b||y)&&"has-rule",_&&"is-in-condition",x&&"is-in-condition-active",d.operatorTypes.negative.includes(null==x?void 0:x.operator)&&"not-equals")},o.default.createElement(p.FieldInfo,null,o.default.createElement(p.Icon,{dangerouslySetInnerHTML:{__html:null==v?void 0:v.icon}}),o.default.createElement(p.Label,null,t.properties.label||(null==v?void 0:v.name))),"group"===(null==v?void 0:v.type)&&o.default.createElement(p.GroupWrapper,null,o.default.createElement(f.Layout,{layoutUid:t.properties.layout})))}},49862:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldLayoutWrapper=void 0;var i,a=n(51362),l=o(n(55721));t.FieldLayoutWrapper=l.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),a.spacings.xs)},72757:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Layout=void 0;var o=r(n(2784)),i=n(36450),a=n(44271),l=n(41294),u=n(74899),c=n(49862);t.Layout=function(e){var t=e.layoutUid,n=(0,i.useAppSelector)((function(e){return a.layoutSelectors.one(e,t)})),r=(0,i.useAppSelector)((function(e){return l.rowSelectors.inLayout(e,null==n?void 0:n.uid)}));return n&&r.length?o.default.createElement(c.FieldLayoutWrapper,null,r.map((function(e){return o.default.createElement(u.Row,{row:e,key:e.uid})}))):null}},88889:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderMiniMap=void 0;var o=r(n(2784)),i=r(n(76257)),a=n(86993),l=n(91176),u=n(44271),c=n(24496);t.LoaderMiniMap=function(){var e=(0,a.useSelector)(u.layoutSelectors.cartographed.fullLayoutList);return o.default.createElement(l.ThemedSkeleton,null,e.map((function(e,t){return o.default.createElement("div",{key:t},o.default.createElement("div",{style:{marginBottom:14}},o.default.createElement(i.default,{width:"100%",height:30})),e.map((function(e,t){return o.default.createElement(c.LoadingRow,{key:t,style:{display:"flex"}},e.map((function(e,t){return o.default.createElement(i.default,{key:t,width:"100%",height:28})})))})))})))}},24496:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingRow=t.MiniMapWrapper=void 0;var i,a,l=n(51362),u=o(n(55721)),c=n(79681);t.MiniMapWrapper=u.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),l.spacings.xl),t.LoadingRow=(0,u.default)(c.RowWrapper)(a||(a=r(["\n > span {\n width: 100%;\n }\n"],["\n > span {\n width: 100%;\n }\n"])))},19438:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MiniMap=void 0;var o=r(n(2784)),i=n(86993),a=n(76034),l=n(32165),u=n(60719),c=n(34837),d=n(58328),s=n(88889),f=n(24496);t.MiniMap=function(){var e=(0,a.useParams)().formId,t=(0,c.useQueryFormRules)(Number(e||0)).isFetching,n=(0,i.useSelector)(u.pageSelecors.all);return o.default.createElement(l.Sidebar,null,o.default.createElement(f.MiniMapWrapper,null,t&&o.default.createElement(s.LoaderMiniMap,null),!t&&n.map((function(e){return o.default.createElement(d.Page,{key:e.uid,page:e})}))))}},58328:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var o=r(n(2784)),i=n(86993),a=n(76034),l=n(40790),u=r(n(26457)),c=n(72757),d=r(n(94399)),s=n(93713);t.Page=function(e){var t=e.page,n=(0,a.useParams)().uid,r=(0,a.useNavigate)(),f=(0,i.useSelector)(l.pageRuleSelectors.hasRule(t.uid)),p=t.label,v=t.uid,m=n===v;return o.default.createElement(s.PageWrapper,null,o.default.createElement(s.PageButton,{onClick:function(){return r(n===v?"":"page/".concat(v))},className:(0,u.default)(m&&"active",f&&"has-rule")},o.default.createElement(s.PageIcon,null,o.default.createElement(d.default,null)),o.default.createElement(s.PageLabel,null,p)),o.default.createElement(s.PageBody,{className:(0,u.default)(m&&"active",f&&"has-rule")},o.default.createElement(c.Layout,{layoutUid:t.layoutUid})))}},93713:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageLabel=t.PageIcon=t.PageBody=t.PageButton=t.PageWrapper=void 0;var i,a,l,u,c,d=n(51362),s=o(n(55721));t.PageWrapper=s.default.div(i||(i=r(["\n display: flex;\n flex: 1;\n flex-direction: column;\n"],["\n display: flex;\n flex: 1;\n flex-direction: column;\n"]))),t.PageButton=s.default.button(a||(a=r(["\n position: relative;\n bottom: -1px;\n\n display: inline-flex;\n justify-content: start;\n align-items: center;\n flex-wrap: nowrap;\n gap: ",";\n\n max-width: 150px;\n padding: "," ",";\n\n background-color: ",";\n\n border: 1px solid #cdd8e4;\n border-bottom: none;\n border-radius: "," "," 0 0;\n\n text-align: left;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n\n &.active {\n border-right-color: ",";\n }\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n color: ",";\n }\n\n &,\n &:active,\n &:focus {\n outline: none;\n }\n\n svg {\n width: 18px;\n height: 18px;\n fill: currentColor;\n }\n"],["\n position: relative;\n bottom: -1px;\n\n display: inline-flex;\n justify-content: start;\n align-items: center;\n flex-wrap: nowrap;\n gap: ",";\n\n max-width: 150px;\n padding: "," ",";\n\n background-color: ",";\n\n border: 1px solid #cdd8e4;\n border-bottom: none;\n border-radius: "," "," 0 0;\n\n text-align: left;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n\n &.active {\n border-right-color: ",";\n }\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n color: ",";\n }\n\n &,\n &:active,\n &:focus {\n outline: none;\n }\n\n svg {\n width: 18px;\n height: 18px;\n fill: currentColor;\n }\n"])),d.spacings.sm,d.spacings.xs,d.spacings.sm,d.colors.white,d.borderRadius.md,d.borderRadius.md,d.colors.teal550,d.colors.teal050,d.colors.teal700,d.colors.gray500,d.colors.gray700,d.colors.white),t.PageBody=s.default.div(l||(l=r(["\n padding: ",";\n border: 1px solid #cdd8e4;\n background-color: ",";\n\n border-radius: 0 "," "," ",";\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n }\n"],["\n padding: ",";\n border: 1px solid #cdd8e4;\n background-color: ",";\n\n border-radius: 0 "," "," ",";\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n }\n"])),d.spacings.sm,d.colors.white,d.borderRadius.md,d.borderRadius.md,d.borderRadius.md,d.colors.teal550,d.colors.teal050,d.colors.gray500,d.colors.gray700),t.PageIcon=s.default.div(u||(u=r([""],[""]))),t.PageLabel=s.default.label(c||(c=r(["\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])))},79681:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RowWrapper=void 0;var i,a=n(51362),l=o(n(55721));t.RowWrapper=l.default.div(i||(i=r(["\n display: flex;\n flex-direction: row;\n justify-content: stretch;\n align-items: stretch;\n gap: ",";\n"],["\n display: flex;\n flex-direction: row;\n justify-content: stretch;\n align-items: stretch;\n gap: ",";\n"])),a.spacings.xs)},74899:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Row=void 0;var o=r(n(2784)),i=n(86993),a=n(4165),l=n(95800),u=n(79681);t.Row=function(e){var t=e.row,n=(0,i.useSelector)(a.fieldSelectors.inRow(t));return o.default.createElement(u.RowWrapper,null,n.map((function(e){return o.default.createElement(l.Field,{key:e.uid,field:e})})))}},72089:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderTabs=void 0;var l=a(n(2784)),u=i(n(76257)),c=i(n(65884)),d=n(51362),s=n(64316);t.LoaderTabs=function(){return l.default.createElement(u.SkeletonTheme,{baseColor:d.colors.gray300,highlightColor:d.colors.gray200,height:10},l.default.createElement(s.TabWrapper,null,l.default.createElement(s.Heading,null,l.default.createElement(s.FormName,null,l.default.createElement(u.default,{width:"50%",height:20}))),l.default.createElement(s.TabsWrapper,null,l.default.createElement("a",{className:"active"},l.default.createElement("span",null,l.default.createElement(u.default,{width:43}))),l.default.createElement("a",null,l.default.createElement("span",null,l.default.createElement(u.default,{width:82}))),c.default.editions.is(c.Edition.Pro)&&l.default.createElement("a",null,l.default.createElement("span",null,l.default.createElement(u.default,{width:36}))),l.default.createElement("a",null,l.default.createElement("span",null,l.default.createElement(u.default,{width:77}))),l.default.createElement("a",null,l.default.createElement("span",null,l.default.createElement(u.default,{width:54})))),l.default.createElement(s.SaveButtonWrapper,null,l.default.createElement(u.default,null))))}},64316:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SaveButton=t.SaveButtonWrapper=t.TabsWrapper=t.FormName=t.Heading=t.TabWrapper=void 0;var i,a,l,u,c,d,s=n(80159),f=n(51362),p=o(n(55721));t.TabWrapper=p.default.nav(i||(i=r(["\n position: relative;\n\n display: grid;\n grid-template-columns: 300px min-content auto;\n align-items: center;\n\n height: 50px;\n flex: 0 0 50px;\n\n box-sizing: border-box;\n overflow-x: hidden;\n"],["\n position: relative;\n\n display: grid;\n grid-template-columns: 300px min-content auto;\n align-items: center;\n\n height: 50px;\n flex: 0 0 50px;\n\n box-sizing: border-box;\n overflow-x: hidden;\n"]))),t.Heading=p.default.h1(a||(a=r(["\n position: relative;\n margin: 0;\n"],["\n position: relative;\n margin: 0;\n"]))),t.FormName=p.default.span(l||(l=r(["\n font-size: 18px;\n font-weight: 700;\n line-height: 1.2;\n color: ",";\n"],["\n font-size: 18px;\n font-weight: 700;\n line-height: 1.2;\n color: ",";\n"])),f.colors.gray700),t.TabsWrapper=p.default.div(u||(u=r(["\n display: flex;\n align-self: flex-end;\n\n background-color: ",";\n border-radius: "," "," 0 0;\n box-shadow:\n inset 0 -1px 0 0 rgba(154, 165, 177, 0.25),\n 0 0 0 1px rgba(154, 165, 177, 0.25);\n\n a {\n display: flex;\n align-items: center;\n\n height: 49px;\n padding: 0 ",";\n\n white-space: nowrap;\n\n color: var(--light-text-color);\n border-radius: "," "," 0 0;\n\n &:hover {\n text-decoration: none;\n background-color: rgba(154, 165, 177, 0.15);\n\n &:not(.active) {\n &:not(:first-child) {\n border-top-left-radius: 0;\n }\n\n &:not(:last-child) {\n border-top-right-radius: 0;\n }\n }\n }\n\n &.active {\n background: ",";\n color: ",";\n box-shadow:\n inset 0 2px 0 ",",\n 0 0 0 1px rgba(51, 64, 77, 0.1),\n 0 2px 12px rgba(205, 216, 228, 0.5) !important;\n }\n\n &.errors {\n position: relative;\n color: ",";\n\n ",";\n }\n\n > span[data-icon] {\n position: relative;\n left: 5px;\n }\n }\n"],["\n display: flex;\n align-self: flex-end;\n\n background-color: ",";\n border-radius: "," "," 0 0;\n box-shadow:\n inset 0 -1px 0 0 rgba(154, 165, 177, 0.25),\n 0 0 0 1px rgba(154, 165, 177, 0.25);\n\n a {\n display: flex;\n align-items: center;\n\n height: 49px;\n padding: 0 ",";\n\n white-space: nowrap;\n\n color: var(--light-text-color);\n border-radius: "," "," 0 0;\n\n &:hover {\n text-decoration: none;\n background-color: rgba(154, 165, 177, 0.15);\n\n &:not(.active) {\n &:not(:first-child) {\n border-top-left-radius: 0;\n }\n\n &:not(:last-child) {\n border-top-right-radius: 0;\n }\n }\n }\n\n &.active {\n background: ",";\n color: ",";\n box-shadow:\n inset 0 2px 0 ",",\n 0 0 0 1px rgba(51, 64, 77, 0.1),\n 0 2px 12px rgba(205, 216, 228, 0.5) !important;\n }\n\n &.errors {\n position: relative;\n color: ",";\n\n ",";\n }\n\n > span[data-icon] {\n position: relative;\n left: 5px;\n }\n }\n"])),f.colors.gray050,f.borderRadius.lg,f.borderRadius.lg,f.spacings.xl,f.borderRadius.md,f.borderRadius.md,f.colors.white,f.colors.gray700,f.colors.gray500,f.colors.error,s.errorAlert),t.SaveButtonWrapper=p.default.div(c||(c=r(["\n display: flex;\n justify-content: end;\n"],["\n display: flex;\n justify-content: end;\n"]))),t.SaveButton=p.default.button(d||(d=r([""],[""])))},45470:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Tabs=void 0;var l=a(n(2784)),u=n(86993),c=n(76034),d=n(11455),s=n(57092),f=i(n(65884)),p=n(36450),v=n(35701),m=n(8697),h=n(72671),g=n(35382),b=n(4165),y=n(90022),_=n(22920),x=n(40319),w=a(n(26457)),O=n(75482),E=a(n(2072)),P=n(64316);t.Tabs=function(){var e=(0,p.useAppDispatch)(),t=(0,u.useSelector)(g.formSelectors.current),n=(0,u.useSelector)(h.contextSelectors.state),r=(0,u.useSelector)(g.formSelectors.errors),o=(0,u.useSelector)(b.fieldSelectors.hasErrors),i=(0,u.useSelector)(y.notificationSelectors.errors.any),a=(0,x.useQueryFormSettings)().data,j=function(){e((0,v.save)())};return(0,_.useOnKeypress)({callback:function(e){if("s"===e.key){var t=window.navigator.platform.match(/Mac/);if(t&&!e.metaKey)return;if(!t&&!e.ctrlKey)return;return e.preventDefault(),j(),!1}},type:"keydown"}),l.default.createElement(P.TabWrapper,null,l.default.createElement(d.Breadcrumb,{label:t.name||"New Form",url:"/forms/".concat(t.id)}),l.default.createElement(P.Heading,null,l.default.createElement(P.FormName,null,t.name||(0,E.default)("New Form"))),l.default.createElement(P.TabsWrapper,{className:"main-tabs"},l.default.createElement(c.NavLink,{to:"",end:!0,className:(0,w.default)(o&&"errors")},l.default.createElement("span",null,(0,E.default)("Layout"))),l.default.createElement(c.NavLink,{to:"notifications",className:(0,w.default)(i&&"errors")},l.default.createElement("span",null,(0,E.default)("Notifications"))),f.default.editions.is(f.Edition.Pro)&&l.default.createElement(c.NavLink,{to:"rules"},l.default.createElement("span",null,(0,E.default)("Rules"))),l.default.createElement(c.NavLink,{to:"integrations"},l.default.createElement("span",null,(0,E.default)("Integrations"))),a&&l.default.createElement(c.NavLink,{to:"settings",className:(0,w.default)(((0,O.hasErrors)(null==r?void 0:r.general)||(0,O.hasErrors)(null==r?void 0:r.behavior))&&"errors")},l.default.createElement("span",null,(0,E.default)("Settings")))),l.default.createElement(P.SaveButtonWrapper,null,l.default.createElement(P.SaveButton,{onClick:j,disabled:n===m.State.Processing,className:(0,w.default)("btn","submit","save-button")},l.default.createElement(s.LoadingText,{loadingText:(0,E.default)("Saving"),loading:n===m.State.Processing,spinner:!0},(0,E.default)("Save")))))}},35653:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Drag=void 0,function(e){e.FieldType="field-type",e.FavoriteField="favorite-field",e.Field="field",e.Row="row",e.OptionRow="option-row",e.Page="page"}(n||(t.Drag=n={}))},37796:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorGlobalStyles=void 0;var o,i=n(55721);t.EditorGlobalStyles=(0,i.createGlobalStyle)(o||(o=r(["\n #freeform-client-app {\n height: calc(100vh - 100px);\n }\n"],["\n #freeform-client-app {\n height: calc(100vh - 100px);\n }\n"])))},85898:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Edit=void 0;var a=i(n(2784)),l=n(76034),u=n(8697),c=n(35430),d=n(9202),s=n(41533),f=n(40319),p=n(28924),v=n(58604),m=n(9363),h=n(97240),g=n(76064),b=n(12163),y=n(77209),_=n(36450);t.Edit=function(){var e=(0,l.useParams)().formId,t=(0,_.useAppDispatch)();(0,f.useQueryFormSettings)();var n=(0,f.useQuerySingleForm)(e&&Number(e)),r=n.data,o=n.isFetching,i=n.isError,x=n.error;return(0,a.useEffect)((function(){var n;if(void 0!==e&&r){var o=r.layout,i=o.fields,a=o.pages,l=o.layouts,f=o.rows;t(c.formActions.update(r)),t(d.fieldActions.set(i)),t(h.pageActions.set(a)),t(s.layoutActions.set(l)),t(g.rowActions.set(f)),t(b.notificationActions.set([])),t(m.integrationActions.emptyIntegrations()),0===a.length?t((0,y.addNewPage)()):t(u.contextActions.setPage(null===(n=a.find(Boolean))||void 0===n?void 0:n.uid))}}),[r,e]),o?a.default.createElement(v.LoaderBuilder,null):i?a.default.createElement("div",null,"ERROR: ",x.message):a.default.createElement(p.Builder,null)}},70988:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EditProvider=void 0;var o=r(n(2784)),i=n(86993),a=n(85797),l=n(85898),u=n(37796),c=n(36450);t.EditProvider=function(){return o.default.createElement(i.Provider,{store:c.store},o.default.createElement(u.EditorGlobalStyles,null),o.default.createElement(a.ModalProvider,null,o.default.createElement(l.Edit,null)))}},35701:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.save=void 0;var r=n(410);t.save=(0,r.createAction)("form/save")},27487:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useValueUpdateGenerator=void 0;var r=n(2784),o=n(11692);t.useValueUpdateGenerator=function(e,t,n){return(0,r.useCallback)((function(r){if(!r.disabled)return function(i){n(r.handle,(0,o.applyMiddleware)(i,r.middleware,t,(function(r,i){var a=e.find((function(e){return e.handle===r}));a&&!a.disabled&&n(a.handle,(0,o.applyMiddleware)(i,a.middleware,t))})))}}),[e,t,n])}},36450:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useAppStore=t.useAppSelector=t.useAppDispatch=t.store=void 0;var o=n(86993),i=n(410),a=r(n(43292)),l=n(50489),u=r(n(8697)),c=r(n(35430)),d=r(n(9363)),s=r(n(56169)),f=r(n(12163)),p=r(n(82919)),v=r(n(96636));t.store=(0,i.configureStore)({middleware:[a.default,l.statePersistMiddleware],reducer:{form:c.default,layout:s.default,integrations:d.default,notifications:f.default,rules:p.default,context:u.default,search:v.default}});t.useAppDispatch=function(){return(0,o.useDispatch)()},t.useAppSelector=o.useSelector;t.useAppStore=function(){return(0,o.useStore)()}},50489:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.statePersistMiddleware=t.TOPIC_UPSERTED=t.TOPIC_UPDATED=t.TOPIC_CREATED=t.TOPIC_ERRORS=t.TOPIC_SAVE=void 0;var o=r(n(60014)),i=r(n(98641)),a=n(35701),l=n(8697);t.TOPIC_SAVE=Symbol("form.save"),t.TOPIC_ERRORS=Symbol("form.save.errors"),t.TOPIC_CREATED=Symbol("form.save.crated"),t.TOPIC_UPDATED=Symbol("form.save.updated"),t.TOPIC_UPSERTED=Symbol("form.save.upserted"),i.default.clearAllSubscriptions();var u=function(e,n){i.default.publish(t.TOPIC_ERRORS,{dispatch:e,response:n}),e(l.contextActions.setState(l.State.Idle))};t.statePersistMiddleware=function(e){return function(n){return function(r){if(r&&(n(r),r.type===String(a.save))){var c=e.dispatch;c(l.contextActions.setState(l.State.Processing));var d={dispatch:c,state:e.getState(),persist:{}};i.default.publishSync(t.TOPIC_SAVE,d);var s=d.state.form.id;s?o.default.put("/api/forms/".concat(s),d.persist).then((function(e){return function(e,n){i.default.publish(t.TOPIC_UPDATED,{dispatch:e,response:n}),i.default.publish(t.TOPIC_UPSERTED,{dispatch:e,response:n}),e(l.contextActions.setState(l.State.Idle))}(c,e)})).catch((function(e){return u(c,e)})):o.default.post("/api/forms",d.persist).then((function(e){return function(e,n){i.default.publish(t.TOPIC_CREATED,{dispatch:e,response:n}),i.default.publish(t.TOPIC_UPSERTED,{dispatch:e,response:n}),e(l.contextActions.setState(l.State.Idle))}(c,e)})).catch((function(e){return u(c,e)}))}}}}},72671:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contextSelectors=void 0;var r=n(75482);t.contextSelectors={currentPage:function(e){var t=e.context.page;return t?e.layout.pages.find((function(e){return e.uid===t})):e.layout.pages.find(Boolean)},hasErrors:function(e){return function(t){var n=t.layout.pages.find((function(t){return t.uid===e})).layoutUid;return t.layout.rows.filter((function(e){return e.layoutUid===n})).some((function(e){return t.layout.fields.filter((function(t){return t.rowUid===e.uid})).some((function(e){return(0,r.hasErrors)(e.errors)}))})),!1}},focus:function(e){return e.context.focus},state:function(e){return e.context.state}}},8697:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)){for(var n=0,r=t.payload;n=u&&(e.order+=1)}))},remove:function(e,t){var n=t.payload;e.splice(e.findIndex((function(e){return e.uid===n})),1)},removeBatch:function(e,t){t.payload.forEach((function(t){e.splice(e.findIndex((function(e){return e.uid===t})),1)}))},edit:function(e,t){var n=t.payload,r=n.uid,o=n.handle,i=n.value;e.find((function(e){return e.uid===r})).properties[o]=i},batchEdit:function(e,t){var n=t.payload,r=n.uid,o=n.typeClass,i=n.properties,a=e.find((function(e){return e.uid===r}));a.typeClass=o,a.properties=i},clearErrors:function(e){for(var t=0,n=e;t=u;e.order-=t?1:0})),e.filter((function(e){return e.rowUid===o})).filter((function(e){return e.uid!==a.uid})).forEach((function(e){var t=e.order>=a.order;e.order+=t?1:0}))),c&&e.filter((function(e){return e.rowUid===o})).filter((function(e){return e.uid!==a.uid})).forEach((function(e){e.order>u&&e.order<=i&&(e.order-=1),e.order=i&&(e.order+=1)})))}}});var l=t.fieldsSlice.actions;t.fieldActions=l,t.default=t.fieldsSlice.reducer},56169:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(74081),i=r(n(9202)),a=r(n(41533)),l=r(n(97240)),u=r(n(76064)),c=(0,o.combineReducers)({fields:i.default,pages:l.default,rows:u.default,layouts:a.default});t.default=c},41533:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;oa&&(e.order-=1),o=a&&(t+=1),e.order=t}))},remove:function(e,t){var n=e.findIndex((function(e){return e.uid===t.payload}));e.splice(n,1)},swap:function(e,t){var n=e.find((function(e){return e.uid===t.payload.currentUid})),r=e.find((function(e){return e.uid===t.payload.targetUid})),o=n.order;n.order=r.order,r.order=o}}});var i=t.rowsSlice.actions;t.rowActions=i,t.default=t.rowsSlice.reducer},41294:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o.9?8:4,Math.floor(Math.random()*(t-e+1))+e)};var e,t}));return o.default.createElement(l.CardWrapper,null,o.default.createElement(l.CardBody,null,o.default.createElement(i.default,{height:20,width:"50%"}),o.default.createElement(i.default,{height:10,width:"80%"}),o.default.createElement(l.LinkList,null,o.default.createElement("li",null,o.default.createElement(i.default,{height:8,width:90})),o.default.createElement("li",null,o.default.createElement(i.default,{height:8,width:50})))),o.default.createElement(a.ResponsiveContainer,{width:"100%",height:40},o.default.createElement(a.AreaChart,{data:t,margin:{top:10,bottom:3,left:0,right:0}},o.default.createElement("defs",null,o.default.createElement("linearGradient",{id:"colorGradient",x1:0,y1:0,x2:0,y2:1},o.default.createElement("stop",{offset:"5%",stopColor:e,stopOpacity:.4}),o.default.createElement("stop",{offset:"95%",stopColor:e,stopOpacity:.3}))),o.default.createElement(a.Area,{type:"monotone",dataKey:"value",stroke:e,strokeWidth:1,strokeOpacity:1,fillOpacity:1,fill:"url(#colorGradient)",isAnimationActive:!1}))),o.default.createElement(l.PaddedChartFooter,{$color:e}))}},78303:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PaddedChartFooter=t.CardWrapper=t.LinkList=t.ControlButton=t.Controls=t.Subtitle=t.Title=t.CardBody=void 0;var i,a,l,u,c,d,s,f,p=n(51362),v=o(n(55721));t.CardBody=v.default.div(i||(i=r(["\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n padding: "," "," 0;\n"],["\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n padding: "," "," 0;\n"])),p.spacings.xl,p.spacings.xl),t.Title=v.default.h2(a||(a=r(["\n cursor: pointer;\n\n margin: 0;\n\n color: #3d464e;\n\n font-size: 20px;\n font-weight: 700;\n text-align: left;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n transition: all 0.2s ease-out;\n"],["\n cursor: pointer;\n\n margin: 0;\n\n color: #3d464e;\n\n font-size: 20px;\n font-weight: 700;\n text-align: left;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n transition: all 0.2s ease-out;\n"]))),t.Subtitle=v.default.span(l||(l=r(["\n display: inline-block;\n\n color: #868f96;\n font-size: 14px;\n\n max-width: 100%;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"],["\n display: inline-block;\n\n color: #868f96;\n font-size: 14px;\n\n max-width: 100%;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"]))),t.Controls=v.default.div(u||(u=r(["\n position: absolute;\n right: ",";\n top: ",";\n z-index: 2;\n\n display: flex;\n justify-content: end;\n align-items: stretch;\n gap: ",";\n\n opacity: 0;\n transform: translateY(-20px);\n transition: all 0.2s ease-out;\n"],["\n position: absolute;\n right: ",";\n top: ",";\n z-index: 2;\n\n display: flex;\n justify-content: end;\n align-items: stretch;\n gap: ",";\n\n opacity: 0;\n transform: translateY(-20px);\n transition: all 0.2s ease-out;\n"])),p.spacings.sm,p.spacings.sm,p.spacings.sm),t.ControlButton=v.default.button(c||(c=r(["\n font-size: 14px;\n color: #868f96;\n\n > svg {\n fill: currentColor;\n }\n"],["\n font-size: 14px;\n color: #868f96;\n\n > svg {\n fill: currentColor;\n }\n"]))),t.LinkList=v.default.ul(d||(d=r(["\n margin: "," 0 0;\n padding: 0;\n"],["\n margin: "," 0 0;\n padding: 0;\n"])),p.spacings.sm),t.CardWrapper=v.default.li(s||(s=r(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n overflow: hidden;\n\n background-color: #fcfdff;\n border: 1px solid #e7eef7;\n border-radius: var(--large-border-radius);\n\n opacity: 1;\n pointer-events: auto;\n\n transition:\n background-color 0.2s ease-out,\n border-color 0.2s ease-out;\n\n &.disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n\n &:not(.dragging):hover {\n background-color: #f3f7fd;\n border-color: #9eb0c5;\n\n "," {\n color: #0161f3;\n }\n\n "," {\n opacity: 1;\n transform: translateY(0);\n }\n }\n"],["\n position: relative;\n\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n overflow: hidden;\n\n background-color: #fcfdff;\n border: 1px solid #e7eef7;\n border-radius: var(--large-border-radius);\n\n opacity: 1;\n pointer-events: auto;\n\n transition:\n background-color 0.2s ease-out,\n border-color 0.2s ease-out;\n\n &.disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n\n &:not(.dragging):hover {\n background-color: #f3f7fd;\n border-color: #9eb0c5;\n\n "," {\n color: #0161f3;\n }\n\n "," {\n opacity: 1;\n transform: translateY(0);\n }\n }\n"])),t.Title,t.Controls),t.PaddedChartFooter=v.default.div(f||(f=r(["\n margin-top: -3px;\n\n background-color: ",";\n opacity: 0.3;\n\n height: 5px;\n\n font-size: 1px;\n line-height: 1px;\n\n overflow: hidden;\n"],["\n margin-top: -3px;\n\n background-color: ",";\n opacity: 0.3;\n\n height: 5px;\n\n font-size: 1px;\n line-height: 1px;\n\n overflow: hidden;\n"])),(function(e){return e.$color}))},72003:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n.9?50:20,Math.floor(Math.random()*(t-e+1))+e)};var e,t})),D=t.id,F=t.name,T=t.settings.general,R=T.color,L=T.description,A=o.isLoading&&o.context===D,B=x.isLoading&&x.context===D,W=A||B,I=function(){O.invalidateQueries(c.QKForms.single(Number(D))),w("".concat(D))};return i.default.createElement(y.CardWrapper,{"data-id":t.id,className:(0,d.default)(W&&"disabled",n&&"dragging")},i.default.createElement(y.Controls,null,i.default.createElement(l.Tooltip,r({title:(0,s.default)("Move")},_),i.default.createElement(y.ControlButton,{className:"handle"},i.default.createElement(b.default,null))),i.default.createElement(l.Tooltip,r({title:(0,s.default)("Duplicate this Form")},_),i.default.createElement(y.ControlButton,{onClick:function(){x.mutate(D)}},i.default.createElement(h.default,null))),i.default.createElement(l.Tooltip,r({title:(0,s.default)("Delete this Form")},_),i.default.createElement(y.ControlButton,{onClick:function(){confirm((0,s.default)("Are you sure you want to delete this form?"))&&o.mutate(D)}},i.default.createElement(g.default,null)))),i.default.createElement(y.CardBody,null,j?i.default.createElement(l.Tooltip,r({title:F},_),i.default.createElement(y.Title,{ref:P,onClick:I},F)):i.default.createElement(y.Title,{ref:P,onClick:I},F),!!L&&(C?i.default.createElement(l.Tooltip,r({title:L},_),i.default.createElement(y.Subtitle,{ref:k},L)):i.default.createElement(y.Subtitle,{ref:k,title:L},L)),i.default.createElement(y.LinkList,null,i.default.createElement("li",null,i.default.createElement("a",{href:(0,f.generateUrl)("submissions/".concat(t.handle),!1)},t.counters.submissions," ",(0,s.default)("Submissions"))),i.default.createElement("li",null,i.default.createElement("a",{href:(0,f.generateUrl)("spam/".concat(t.handle),!1)},t.counters.spam," ",(0,s.default)("Spam"))))),i.default.createElement(v.ResponsiveContainer,{width:"100%",height:40},i.default.createElement(v.AreaChart,{data:t.chartData||S,margin:{top:10,bottom:3,left:0,right:0}},i.default.createElement("defs",null,i.default.createElement("linearGradient",{id:"color".concat(t.id),x1:0,y1:0,x2:0,y2:1},i.default.createElement("stop",{offset:"5%",stopColor:R,stopOpacity:.4}),i.default.createElement("stop",{offset:"95%",stopColor:R,stopOpacity:.3}))),i.default.createElement(v.Area,{type:"monotone",dataKey:"uv",stroke:R,strokeWidth:1,strokeOpacity:1,fillOpacity:1,fill:"url(#color".concat(t.id,")"),isAnimationActive:!1}))),i.default.createElement(y.PaddedChartFooter,{$color:R}))}},80992:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ListProvider=void 0;var o=r(n(2784)),i=n(86993),a=n(85797),l=n(15443),u=n(79634),c=n(51567),d=n(59977);t.ListProvider=function(){var e=(0,u.useQueryClient)();return e.prefetchQuery(l.QKFieldTypes.all,l.fetchFieldTypes),e.prefetchQuery(l.QKFieldTypes.propertySections(),l.fetchFieldPropertySections),o.default.createElement(i.Provider,{store:d.store},o.default.createElement(a.ModalProvider,null,o.default.createElement(c.List,null)))}},54552:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chartDataset=void 0,t.chartDataset=[[{uv:0},{uv:2},{uv:0},{uv:6},{uv:0},{uv:0},{uv:1},{uv:0},{uv:0},{uv:4},{uv:0},{uv:3}],[{uv:9},{uv:6},{uv:3},{uv:4},{uv:0},{uv:6},{uv:1}],[{uv:0},{uv:25},{uv:0},{uv:32},{uv:0},{uv:0}]]},17794:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MutedWrapper=void 0;var i,a=n(51362),l=o(n(55721)),u=n(78303),c=n(3489);t.MutedWrapper=(0,l.default)(c.Wrapper)(i||(i=r(["\n position: relative;\n margin-top: ",";\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n\n z-index: 2;\n\n background: linear-gradient(\n to right,\n transparent 0%,\n transparent 40%,\n white 65%,\n white 100%\n );\n }\n\n &,\n * {\n pointer-events: none;\n user-select: none;\n }\n\n "," {\n border-color: #fbfcfd;\n background: #fefeff;\n }\n\n ",", "," a {\n color: #cfd1d2;\n }\n\n "," {\n color: #e2e4e5;\n }\n"],["\n position: relative;\n margin-top: ",";\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n\n z-index: 2;\n\n background: linear-gradient(\n to right,\n transparent 0%,\n transparent 40%,\n white 65%,\n white 100%\n );\n }\n\n &,\n * {\n pointer-events: none;\n user-select: none;\n }\n\n "," {\n border-color: #fbfcfd;\n background: #fefeff;\n }\n\n ",", "," a {\n color: #cfd1d2;\n }\n\n "," {\n color: #e2e4e5;\n }\n"])),a.spacings.xl,u.CardWrapper,u.Title,u.LinkList,u.Subtitle)},93633:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyList=void 0;var o=r(n(2784)),i=r(n(2072)),a=n(72003),l=n(16817),u=n(54552),c=n(17794),d=function(e,t,n,r,o){return{uid:"",type:"",name:e,handle:"",chartData:n,counters:{submissions:r,spam:o},settings:{general:{description:t,color:"#e0e0e0"}}}};t.EmptyList=function(){var e=(0,l.useCreateFormModal)();return o.default.createElement(o.default.Fragment,null,o.default.createElement("p",null,(0,i.default)("You don't have any forms yet. Create your first form now...")),o.default.createElement("button",{className:"btn submit add icon",onClick:e},(0,i.default)("New Form")),o.default.createElement(c.MutedWrapper,null,o.default.createElement(a.Card,{form:d("Contact Form","Main contact form.",u.chartDataset[0],14,5)}),o.default.createElement(a.Card,{form:d("Customer Survey","Customer satisfaction survey.",u.chartDataset[1],72,18)}),o.default.createElement(a.Card,{form:d("Newsletter","Newsletter signup form.",u.chartDataset[2],138,7)})))}},48962:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useCloneFormMutation=t.useDeleteFormMutation=void 0;var o=n(40319),i=n(79634),a=n(79634),l=r(n(60014));t.useDeleteFormMutation=function(){var e=(0,i.useQueryClient)();return(0,a.useMutation)((function(e){return l.default.delete("/api/forms/".concat(e))}),{onMutate:function(e){return e},onSuccess:function(t,n){e.setQueryData(o.QKForms.all,(function(e){return e.filter((function(e){return e.id!==n}))}))}})};t.useCloneFormMutation=function(){var e=(0,i.useQueryClient)();return(0,a.useMutation)((function(e){return l.default.post("/api/forms/".concat(e,"/clone"))}),{onMutate:function(e){return e},onSuccess:function(){e.invalidateQueries(o.QKForms.all)}})}},3489:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Title=t.Header=t.Wrapper=void 0;var i,a,l,u=n(51362),c=o(n(55721));t.Wrapper=c.default.ul(i||(i=r(["\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: ",";\n"],["\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: ",";\n"])),u.spacings.lg),t.Header=c.default.header(a||(a=r(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),t.Title=c.default.h1(l||(l=r(["\n padding: "," 0;\n margin: 0;\n\n font-size: 18px;\n font-weight: 700;\n line-height: 34px;\n"],["\n padding: "," 0;\n margin: 0;\n\n font-size: 18px;\n font-weight: 700;\n line-height: 34px;\n"])),u.spacings.sm)},51567:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.List=void 0;var l=i(n(2784)),u=n(40319),c=a(n(26457)),d=a(n(2072)),s=a(n(60014)),f=a(n(10324)),p=n(72003),v=n(20511),m=n(16817),h=n(93633),g=n(3489);t.List=function(){var e=(0,u.useQueryFormsWithStats)(),t=e.data,n=e.isFetching,r=(0,m.useCreateFormModal)(),o=!n&&t&&!t.length,i=(0,l.useRef)(null),a=(0,l.useRef)(null),b=(0,l.useState)(!1),y=b[0],_=b[1],x=function(){var e=a.current.toArray();s.default.post("/api/forms/sort",{orderedFormIds:e}),_(!1)};return(0,l.useEffect)((function(){a.current=new f.default(i.current,{animation:150,onEnd:x,handle:".handle",onStart:function(){_(!0)}})}),[]),l.default.createElement(l.default.Fragment,null,l.default.createElement(g.Header,null,l.default.createElement(g.Title,null,(0,d.default)("Forms")),l.default.createElement("button",{className:"btn submit add icon",onClick:r},(0,d.default)("Add new Form"))),l.default.createElement("div",{id:"content-container"},l.default.createElement("div",{id:"content",className:"content-pane"},o&&l.default.createElement(h.EmptyList,null),!o&&l.default.createElement(g.Wrapper,{ref:i,className:(0,c.default)(y&&"dragging")},t&&t.map((function(e){return l.default.createElement(p.Card,{key:e.id,form:e,isDraggingInProgress:y})})),!t&&n&&l.default.createElement(l.default.Fragment,null,l.default.createElement(v.CardLoading,null),l.default.createElement(v.CardLoading,null),l.default.createElement(v.CardLoading,null))))))}},88214:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormModalLoading=void 0;var o=r(n(2784)),i=r(n(76257));t.FormModalLoading=function(){return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",null,o.default.createElement(i.default,{height:10,width:50}),o.default.createElement(i.default,{height:24})),o.default.createElement("div",null,o.default.createElement(i.default,{height:10,width:150}),o.default.createElement(i.default,{height:24})),o.default.createElement("div",{style:{display:"flex",alignItems:"center",gap:10}},o.default.createElement(i.default,{height:24,width:38,borderRadius:12}),o.default.createElement("div",{style:{flex:1}},o.default.createElement(i.default,{height:10,width:80}),o.default.createElement(i.default,{height:8,width:"60%"}))))}},64457:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]t.clientWidth)};return window.addEventListener("resize",t),t(),function(){return window.removeEventListener("resize",t)}}),[e]),[e,n]}},9726:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useClickOutside=void 0;var r=n(2784),o=n(26457);t.useClickOutside=function(e){var t=e.callback,n=e.isEnabled,i=e.refObject,a=e.excludeClassNames,l=(0,r.useRef)(),u=i||l;return(0,r.useEffect)((function(){var e=function(e){n&&n&&u.current&&!u.current.contains(e.target)&&!(0,o.elementTreeHasClass)(e.target,a)&&"function"==typeof t&&t()};return document.addEventListener("click",e,!0),function(){document.removeEventListener("click",e,!0)}}),[u,n]),u}},88901:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDebounce=void 0;var r=n(2784);t.useDebounce=function(e,t){void 0===t&&(t=500);var n=(0,r.useState)(e),o=n[0],i=n[1];return(0,r.useEffect)((function(){var n=setTimeout((function(){return i(e)}),t);return function(){return clearTimeout(n)}}),[e,t]),o}},21285:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useFreeformNavigation=void 0;var r=n(2784),o=n(76034),i=n(40319),a=n(91423),l=n(74740),u=n(79634);t.useFreeformNavigation=function(){var e=(0,o.useParams)().formId,t=(0,o.useNavigate)(),n=(0,u.useQueryClient)();(0,r.useEffect)((function(){var r=document.querySelector('ul.subnav li a[href*="/freeform/forms"]'),o=function(r){return r.preventDefault(),e&&(n.invalidateQueries(i.QKForms.single(Number(e))),n.invalidateQueries(l.QKNotifications.single(Number(e))),n.invalidateQueries(a.QKIntegrations.single(Number(e)))),t("/forms"),!1};return r.addEventListener("click",o),function(){r.removeEventListener("click",o)}}))}},19136:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDimensionsObserver=void 0;var r=n(2784);t.useDimensionsObserver=function(){var e=(0,r.useRef)(null),t=(0,r.useState)({height:0,width:0,x:0,y:0}),n=t[0],o=t[1],i=(0,r.useState)((function(){return new ResizeObserver((function(e){var t=e[0].target.getBoundingClientRect(),n=t.width,r=t.height,i=t.x,a=t.y;o({width:n,height:r,x:i,y:a})}))}))[0];return(0,r.useEffect)((function(){return e.current&&i.observe(e.current),function(){return i.disconnect()}}),[i]),{ref:e,dimensions:n}}},23934:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useHover=void 0;var r=n(2784);t.useHover=function(e){var t,n,o=(0,r.useState)(!1),i=o[0],a=o[1];return null===(t=e.current)||void 0===t||t.addEventListener("mouseenter",(function(){return a(!0)})),null===(n=e.current)||void 0===n||n.addEventListener("mouseleave",(function(){return a(!1)})),i}},22920:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o * {\n > label {\n display: block;\n padding: 6px 12px;\n margin: 0 0 5px;\n\n border: 1px solid ",";\n border-left: none;\n\n white-space: nowrap;\n text-align: center;\n color: black !important;\n cursor: pointer;\n }\n\n input {\n position: absolute;\n left: -9999px;\n top: -9999px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n visibility: hidden;\n\n &:checked ~ label {\n background: #e6e6e6;\n }\n }\n\n &:first-child {\n > label {\n border-left: 1px solid ",";\n\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n }\n }\n\n &:last-child {\n > label {\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n }\n }\n }\n }\n\n ul.opinion-scale-legends {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));\n grid-gap: 0;\n\n li {\n text-align: center;\n }\n\n li:first-child {\n text-align: left;\n }\n\n li:last-child {\n text-align: right;\n }\n }\n}\n\n"],["\n\n.opinion-scale {\n ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n .opinion-scale-scales {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));\n grid-gap: 0;\n\n > * {\n > label {\n display: block;\n padding: 6px 12px;\n margin: 0 0 5px;\n\n border: 1px solid ",";\n border-left: none;\n\n white-space: nowrap;\n text-align: center;\n color: black !important;\n cursor: pointer;\n }\n\n input {\n position: absolute;\n left: -9999px;\n top: -9999px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n visibility: hidden;\n\n &:checked ~ label {\n background: #e6e6e6;\n }\n }\n\n &:first-child {\n > label {\n border-left: 1px solid ",";\n\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n }\n }\n\n &:last-child {\n > label {\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n }\n }\n }\n }\n\n ul.opinion-scale-legends {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));\n grid-gap: 0;\n\n li {\n text-align: center;\n }\n\n li:first-child {\n text-align: left;\n }\n\n li:last-child {\n text-align: right;\n }\n }\n}\n\n"])),i,i,a,a,a,a);t.default=l},80159:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0}),t.errorAlert=t.labelText=t.scrollBar=void 0;var o,i,a,l=n(55721),u=n(51362),c=u.colors.gray100,d=u.colors.gray300;t.scrollBar=(0,l.css)(o||(o=r(["\n scrollbar-width: thin;\n scrollbar-color: "," ",";\n -webkit-overflow-scrolling: touch;\n\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background-color: ",";\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ",";\n }\n"],["\n scrollbar-width: thin;\n scrollbar-color: "," ",";\n -webkit-overflow-scrolling: touch;\n\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background-color: ",";\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ",";\n }\n"])),d,c,c,d),t.labelText=(0,l.css)(i||(i=r(["\n font-family:\n system-ui,\n BlinkMacSystemFont,\n -apple-system,\n Segoe UI,\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n Fira Sans,\n Droid Sans,\n Helvetica Neue,\n sans-serif;\n font-weight: bold;\n text-transform: uppercase;\n color: rgb(154 165 177 / 75%);\n"],["\n font-family:\n system-ui,\n BlinkMacSystemFont,\n -apple-system,\n Segoe UI,\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n Fira Sans,\n Droid Sans,\n Helvetica Neue,\n sans-serif;\n font-weight: bold;\n text-transform: uppercase;\n color: rgb(154 165 177 / 75%);\n"]))),t.errorAlert=(0,l.css)(a||(a=r(["\n span:after {\n content: 'alert';\n\n position: relative;\n top: 1px;\n\n padding-left: 5px;\n\n -webkit-font-smoothing: antialiased;\n font-feature-settings: 'liga', 'dlig';\n font-family: Craft;\n }\n"],["\n span:after {\n content: 'alert';\n\n position: relative;\n top: 1px;\n\n padding-left: 5px;\n\n -webkit-font-smoothing: antialiased;\n font-feature-settings: 'liga', 'dlig';\n font-family: Craft;\n }\n"])))},51362:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.colors=t.beziers=t.shadows=t.borderRadius=t.spacings=t.BoxShadow=void 0;var i,a=o(n(55721));t.BoxShadow=a.default.div(i||(i=r(["\n box-shadow:\n 0 0 0 1px #cdd8e4,\n 0 2px 12px rgb(205 216 228 / 50%);\n"],["\n box-shadow:\n 0 0 0 1px #cdd8e4,\n 0 2px 12px rgb(205 216 228 / 50%);\n"]))),t.spacings={xs:"var(--xs)",sm:"var(--s)",md:"var(--m)",lg:"var(--l)",xl:"var(--xl)"},t.borderRadius={sm:"var(--small-border-radius)",md:"var(--medium-border-radius)",lg:"var(--large-border-radius)"},t.shadows={panel:"0 0 20px 10px rgb(205 216 228 / 50%)",box:"0 0 0 1px #cdd8e4, 0 2px 12px rgb(205 216 228 / 50%)",bottom:"inset 0 -1px 0 0 rgb(154 165 177 / 25%)",top:"inset 0 1px 0 0 rgb(154 165 177 / 25%)",left:"inset 1px 0 0 0 rgb(154 165 177 / 25%)",right:"inset -1px 0 0 0 rgb(154 165 177 / 25%)",container:"0 0 0 1px rgba(31, 41, 51, 0.1), 0 5px 20px rgba(31, 41, 51, 0.25)"},t.beziers={easeOut:"cubic-bezier(0.25, 0.1, 0.25, 1)",easeIn:"cubic-bezier(0.42, 0, 1, 1)",easeInOut:"cubic-bezier(0.42, 0, 0.58, 1)",bounce:{easeOut:"cubic-bezier(0.175, 0.885, 0.32, 1.275)"}},t.colors={hairline:"rgba(51,64,77,.1)",inputBorder:"rgba(96,125,159,0.25)",barelyVisible:"rgb(154 165 177 / 75%)",elements:{dropdown:"#dfe5ec"},error:"#cf1124",warning:"var(--warning-color)",success:"var(--success-color)",notice:"var(--notice-color)",enabled:"var(--enabled-color)",pending:"var(--pending-color)",disabled:"var(--disabled-color)",white:"var(--white)",black:"var(--black)",gray050:"var(--gray-050)",gray100:"var(--gray-100)",gray200:"var(--gray-200)",gray300:"var(--gray-300)",gray350:"var(--gray-350)",gray400:"var(--gray-400)",gray500:"var(--gray-500)",gray550:"var(--gray-550)",gray600:"var(--gray-600)",gray700:"var(--gray-700)",gray800:"var(--gray-800)",gray900:"var(--gray-900)",gray1000:"var(--gray-1000)",blue050:"var(--blue-050)",blue100:"var(--blue-100)",blue200:"var(--blue-200)",blue300:"var(--blue-300)",blue400:"var(--blue-400)",blue500:"var(--blue-500)",blue600:"var(--blue-600)",blue700:"var(--blue-700)",blue800:"var(--blue-800)",blue900:"var(--blue-900)",cyan050:"var(--cyan-050)",cyan100:"var(--cyan-100)",cyan200:"var(--cyan-200)",cyan300:"var(--cyan-300)",cyan400:"var(--cyan-400)",cyan500:"var(--cyan-500)",cyan600:"var(--cyan-600)",cyan700:"var(--cyan-700)",cyan800:"var(--cyan-800)",cyan900:"var(--cyan-900)",pink050:"var(--pink-050)",pink100:"var(--pink-100)",pink200:"var(--pink-200)",pink300:"var(--pink-300)",pink400:"var(--pink-400)",pink500:"var(--pink-500)",pink600:"var(--pink-600)",pink700:"var(--pink-700)",pink800:"var(--pink-800)",pink900:"var(--pink-900)",red050:"var(--red-050)",red100:"var(--red-100)",red200:"var(--red-200)",red300:"var(--red-300)",red400:"var(--red-400)",red500:"var(--red-500)",red600:"var(--red-600)",red700:"var(--red-700)",red800:"var(--red-800)",red900:"var(--red-900)",yellow050:"var(--yellow-050)",yellow100:"var(--yellow-100)",yellow200:"var(--yellow-200)",yellow300:"var(--yellow-300)",yellow400:"var(--yellow-400)",yellow500:"var(--yellow-500)",yellow600:"var(--yellow-600)",yellow700:"var(--yellow-700)",yellow800:"var(--yellow-800)",yellow900:"var(--yellow-900)",teal050:"var(--teal-050)",teal100:"var(--teal-100)",teal200:"var(--teal-200)",teal300:"var(--teal-300)",teal400:"var(--teal-400)",teal500:"var(--teal-500)",teal550:"var(--teal-550)",teal600:"var(--teal-600)",teal700:"var(--teal-700)",teal800:"var(--teal-800)",teal900:"var(--teal-900)"}},36260:function(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.APIError=t.API_ERROR=void 0,t.API_ERROR="api_error";var o=function(e){function n(n,r){var o=e.call(this,n)||this;return o.errors={},o.name=t.API_ERROR,o.errors=r,o}return r(n,e),n}(Error);t.APIError=o},94234:function(e,t){"use strict";var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.Type=t.Implementation=void 0,function(e){e.Options="options",e.GeneratedOptions="generatedOptions"}(n||(t.Implementation=n={})),function(e){e.Group="group",e.Rating="rating",e.OpinionScale="opinion-scale"}(r||(t.Type=r={})),function(e){e[e.NewField=0]="NewField",e[e.ExistingField=1]="ExistingField"}(o||(o={}))},39319:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TargetFieldType=void 0,function(e){e.Relation="relation",e.Custom="custom"}(n||(t.TargetFieldType=n={}))},88863:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateType=void 0,function(e){e.Database="database",e.File="file"}(n||(t.TemplateType=n={}))},83287:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyType=void 0,function(e){e.Attributes="attributes",e.Boolean="bool",e.Checkboxes="checkboxes",e.Color="color",e.ConditionalRules="conditionalRules",e.DateTime="dateTime",e.Field="field",e.FieldMapping="fieldMapping",e.Hidden="hidden",e.Integer="int",e.Label="label",e.MinMax="minMax",e.NotificationTemplate="notificationTemplate",e.Options="options",e.PageButton="pageButton",e.PageButtonsLayout="pageButtonsLayout",e.RecipientMapping="recipientMapping",e.Recipients="recipients",e.Select="select",e.DynamicSelect="dynamicSelect",e.String="string",e.Table="table",e.TabularData="tabularData",e.Textarea="textarea",e.WYSIWYG="wysiwyg",e.CodeEditor="codeEditor"}(n||(t.PropertyType=n={})),function(e){e[e.NewField=0]="NewField",e[e.ExistingField=1]="ExistingField"}(r||(r={}))},75094:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.Combinator=t.Display=t.operatorTypes=void 0,t.operatorTypes={boolean:["equals","notEquals"],numeric:["greaterThan","greaterThanOrEquals","lessThan","lessThanOrEquals"],string:["equals","notEquals","contains","notContains","startsWith","endsWith"],negative:["notEquals","notContains"]},function(e){e.Show="show",e.Hide="hide"}(n||(t.Display=n={})),function(e){e.And="and",e.Or="or"}(r||(t.Combinator=r={}))},8454:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0;t.range=function(e,t){void 0===t&&(e>1?(t=e,e=1):(t=e,e=0));for(var n=[],r=e;r<=t;r++)n.push(r);return n}},26457:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classes=t.elementTreeHasClass=void 0;t.elementTreeHasClass=function(e,t){if(void 0===t)return!1;if("string"==typeof t&&(t=t.split(" ")),!e||!e.classList)return!1;for(;e;){for(var n=0,r=t;no?o:e}},82538:function(){Number.prototype.inRange=function(e,t,n){void 0===n&&(n=!0);var r=Math.min(e,t),o=Math.max(e,t);return n?this>=r&&this<=o:this>r&&this=o)&&Object.keys(i.O).every((function(e){return i.O[e](n[u])}))?n.splice(u--,1):(l=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[n,r,o]},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);i.r(o);var a={};t=t||[null,n({}),n([]),n(n)];for(var l=2&r&&e;"object"==typeof l&&!~t.indexOf(l);l=n(l))Object.getOwnPropertyNames(l).forEach((function(t){a[t]=function(){return e[t]}}));return a.default=function(){return e},i.d(o,a),o},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={47:0};i.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,o,a=n[0],l=n[1],u=n[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(r in l)i.o(l,r)&&(i.m[r]=l[r]);if(u)var d=u(i)}for(t&&t(n);c=n},isAtMost:function(e){var t=a.editions.tiers,n=t.indexOf(e);if(-1===n)throw new Error("Unknown edition: ".concat(e));return t.indexOf(a.editions.edition)<=n}})});t.default=a},84307:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(75831)},59071:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.queryClient=void 0;var r=n(79634);t.queryClient=new r.QueryClient({defaultOptions:{queries:{cacheTime:6e5,retry:!1,refetchOnWindowFocus:!1}}})},25201:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AppWrapper=void 0;var i,a=o(n(55721));t.AppWrapper=a.default.div(i||(i=r([""],[""])))},85754:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(76034),a=n(21285),l=n(25201);n(90367);t.default=function(){return(0,a.useFreeformNavigation)(),o.default.createElement(l.AppWrapper,{id:"freeform-client-app"},o.default.createElement(i.Outlet,null))}},20811:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o10?"":"& > li {\n > label {\n padding-left: ".concat(10*e+20,"px;\n\n &.has-children {\n padding-left: ").concat(12*(e+1),"px;\n }\n }\n\n > ul {\n ").concat(p(e+1),"\n }\n }")};t.List=f.default.ul(i||(i=r(["\n margin: 0;\n padding: 0;\n\n ul {\n ","\n }\n"],["\n margin: 0;\n padding: 0;\n\n ul {\n ","\n }\n"])),p()),t.CheckMark=f.default.div(a||(a=r(["\n position: absolute;\n left: 8px;\n top: 7px;\n\n width: 16px;\n font-size: 18px;\n font-weight: bold;\n\n fill: ",";\n"],["\n position: absolute;\n left: 8px;\n top: 7px;\n\n width: 16px;\n font-size: 18px;\n font-weight: bold;\n\n fill: ",";\n"])),s.colors.gray500),t.LabelIcon=f.default.div(l||(l=r([""],[""]))),t.LabelContainer=f.default.div(u||(u=r(["\n display: inline-flex;\n justify-content: start;\n align-items: center;\n gap: ",";\n\n > svg {\n width: 16px;\n height: 16px;\n }\n"],["\n display: inline-flex;\n justify-content: start;\n align-items: center;\n gap: ",";\n\n > svg {\n width: 16px;\n height: 16px;\n }\n"])),s.spacings.sm),t.Label=f.default.label(c||(c=r(["\n display: block;\n padding: 5px 14px 5px 30px;\n\n user-select: none;\n\n &:hover {\n cursor: pointer;\n background-color: ",";\n color: ",";\n\n "," {\n fill: ",";\n }\n }\n\n &.has-children {\n position: relative;\n\n padding-left: 12px;\n\n text-transform: uppercase;\n font-weight: bold;\n\n font-size: 12px;\n\n color: #7d8c9d;\n fill: currentColor;\n\n > "," {\n position: relative;\n\n padding: 0 10px;\n background-color: ",";\n\n z-index: 1;\n }\n\n &:hover {\n cursor: default;\n background-color: transparent;\n }\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 13px;\n\n height: 1px;\n background-color: ",";\n }\n }\n"],["\n display: block;\n padding: 5px 14px 5px 30px;\n\n user-select: none;\n\n &:hover {\n cursor: pointer;\n background-color: ",";\n color: ",";\n\n "," {\n fill: ",";\n }\n }\n\n &.has-children {\n position: relative;\n\n padding-left: 12px;\n\n text-transform: uppercase;\n font-weight: bold;\n\n font-size: 12px;\n\n color: #7d8c9d;\n fill: currentColor;\n\n > "," {\n position: relative;\n\n padding: 0 10px;\n background-color: ",";\n\n z-index: 1;\n }\n\n &:hover {\n cursor: default;\n background-color: transparent;\n }\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 13px;\n\n height: 1px;\n background-color: ",";\n }\n }\n"])),s.colors.gray500,s.colors.white,t.CheckMark,s.colors.white,t.LabelContainer,s.colors.gray050,s.colors.gray200),t.Item=f.default.li(d||(d=r(["\n position: relative;\n\n &.focused {\n > "," {\n background-color: #cfd8e3;\n color: ",";\n\n > "," {\n fill: ",";\n }\n }\n }\n\n &.has-children {\n > "," {\n }\n }\n\n &.empty {\n > "," {\n color: ",";\n font-style: italic;\n\n &:hover {\n color: ",";\n }\n }\n\n &.focused {\n > "," {\n background-color: transparent;\n\n &:hover {\n background-color: ",";\n color: ",";\n }\n\n > "," {\n fill: transparent;\n }\n }\n }\n }\n"],["\n position: relative;\n\n &.focused {\n > "," {\n background-color: #cfd8e3;\n color: ",";\n\n > "," {\n fill: ",";\n }\n }\n }\n\n &.has-children {\n > "," {\n }\n }\n\n &.empty {\n > "," {\n color: ",";\n font-style: italic;\n\n &:hover {\n color: ",";\n }\n }\n\n &.focused {\n > "," {\n background-color: transparent;\n\n &:hover {\n background-color: ",";\n color: ",";\n }\n\n > "," {\n fill: transparent;\n }\n }\n }\n }\n"])),t.Label,s.colors.gray700,t.CheckMark,s.colors.gray700,t.Label,t.Label,s.colors.gray300,s.colors.white,t.Label,s.colors.gray500,s.colors.white,t.CheckMark)},29466:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Options=void 0;var l=i(n(2784)),u=a(n(26457)),c=a(n(90729)),d=n(41187);t.Options=function(e){var n=e.value,r=e.options,o=e.query,i=e.focusIndex,a=e.onChange,s=(0,l.useRef)([]);return(0,l.useEffect)((function(){s.current[i]&&s.current[i].scrollIntoView({behavior:"smooth",block:"nearest"})}),[i]),l.default.createElement(d.List,null,r&&r.map((function(e,r){var f,p,v;return"value"in e&&(f=e.value,p=e.shadowIndex),"children"in e&&(v=e.children),l.default.createElement(d.Item,{ref:function(e){void 0!==p&&(s.current[p]=e)},onClick:function(e){e.stopPropagation(),void 0!==f&&a&&a(f)},key:r,className:(0,u.default)(void 0!==v&&"has-children",f===n&&"selected",""===f&&"empty",p===i&&"focused")},l.default.createElement(d.Label,{className:(0,u.default)(void 0!==v&&"has-children")},!v&&n===f&&l.default.createElement(d.CheckMark,null,l.default.createElement(c.default,null)),l.default.createElement(d.LabelContainer,null,e.icon&&e.icon,e.label)),v&&l.default.createElement(t.Options,{options:v,value:n,query:o,focusIndex:i,onChange:a}))})))}},47022:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownWrapper=t.CloseButton=t.DropdownRollout=t.SpinnerWrapper=t.CurrentValue=t.ListWrapper=t.Search=void 0;var i,a,l,u,c,d,s,f=n(79066),p=n(80159),v=n(51362),m=o(n(55721));t.Search=m.default.input(i||(i=r(["\n width: 100%;\n padding: 7px 30px 7px 10px;\n\n border-bottom: 1px solid ",";\n\n &:focus,\n &:active,\n &:hover {\n box-shadow: none;\n outline: none;\n }\n"],["\n width: 100%;\n padding: 7px 30px 7px 10px;\n\n border-bottom: 1px solid ",";\n\n &:focus,\n &:active,\n &:hover {\n box-shadow: none;\n outline: none;\n }\n"])),v.colors.hairline),t.ListWrapper=m.default.div(a||(a=r(["\n max-height: 300px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ",";\n"],["\n max-height: 300px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ",";\n"])),p.scrollBar),t.CurrentValue=m.default.div(l||(l=r(["\n cursor: pointer;\n position: relative;\n\n display: flex;\n justify-content: start;\n gap: ",";\n\n background-color: #dfe5ec;\n border-radius: ",";\n\n padding: 7px 22px 7px 10px;\n\n > span {\n min-height: 20px;\n }\n\n &:hover {\n box-shadow: var(--focus-ring);\n outline-color: transparent;\n }\n\n &:after {\n content: '';\n position: absolute;\n top: calc(50% - 5px);\n right: 9px;\n\n display: block;\n width: 7px;\n height: 7px;\n\n opacity: 0.8;\n border: solid;\n border-width: 0 2px 2px 0;\n\n font-size: 0;\n\n transform: rotate(45deg);\n\n user-select: none;\n pointer-events: none;\n }\n"],["\n cursor: pointer;\n position: relative;\n\n display: flex;\n justify-content: start;\n gap: ",";\n\n background-color: #dfe5ec;\n border-radius: ",";\n\n padding: 7px 22px 7px 10px;\n\n > span {\n min-height: 20px;\n }\n\n &:hover {\n box-shadow: var(--focus-ring);\n outline-color: transparent;\n }\n\n &:after {\n content: '';\n position: absolute;\n top: calc(50% - 5px);\n right: 9px;\n\n display: block;\n width: 7px;\n height: 7px;\n\n opacity: 0.8;\n border: solid;\n border-width: 0 2px 2px 0;\n\n font-size: 0;\n\n transform: rotate(45deg);\n\n user-select: none;\n pointer-events: none;\n }\n"])),v.spacings.sm,v.borderRadius.lg),t.SpinnerWrapper=m.default.div(u||(u=r(["\n > svg {\n fill: currentColor;\n width: 20px;\n height: 20px;\n }\n"],["\n > svg {\n fill: currentColor;\n width: 20px;\n height: 20px;\n }\n"]))),t.DropdownRollout=(0,m.default)(f.animated.div)(c||(c=r(["\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n\n overflow: hidden;\n"],["\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n\n overflow: hidden;\n"])),v.colors.gray050,v.borderRadius.lg,v.shadows.container),t.CloseButton=m.default.button(d||(d=r(["\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 30px;\n height: 34px;\n\n cursor: pointer;\n\n &:hover {\n background-color: ",";\n }\n"],["\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 30px;\n height: 34px;\n\n cursor: pointer;\n\n &:hover {\n background-color: ",";\n }\n"])),v.colors.gray050),t.DropdownWrapper=m.default.div(s||(s=r(["\n position: relative;\n\n &.open {\n "," {\n display: block;\n }\n\n "," {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n\n &:hover {\n box-shadow: none;\n outline-color: transparent;\n }\n }\n }\n"],["\n position: relative;\n\n &.open {\n "," {\n display: block;\n }\n\n "," {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n\n &:hover {\n box-shadow: none;\n outline-color: transparent;\n }\n }\n }\n"])),t.DropdownRollout,t.CurrentValue)},4500:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Dropdown=void 0;var l=i(n(2784)),u=n(11863),c=a(n(81606)),d=n(31070),s=n(9726),f=n(22920),p=a(n(26457)),v=n(13596),m=a(n(75456)),h=n(71408),g=n(29466),b=n(47022);t.Dropdown=function(e){var t=e.emptyOption,n=e.value,r=e.options,o=e.onChange,i=e.loading,a=void 0!==i&&i,y=(0,l.useState)(!1),_=y[0],x=y[1],w=(0,l.useState)(""),O=w[0],E=w[1],P=(0,l.useState)(0),j=P[0],M=P[1],k=(0,l.useRef)(null),C=(0,l.useRef)(null),S=(0,s.useClickOutside)({callback:function(){return x(!1)},isEnabled:_,excludeClassNames:["dropdown-rollout"]}),D=(0,u.useEditorAnimations)({wrapper:S.current,editor:C.current,isEditing:_}).editorAnimation,F=(0,l.useCallback)((function(){a||x(!_)}),[a,_]),T=(0,h.useFilteredOptions)(r,O,t),R=T[0],L=T[1],A=(0,l.useMemo)((function(){return(0,h.findLabelByValue)(r,n)||t}),[r,n,a]),B=(0,l.useMemo)((function(){return(0,h.findShadowIndexByValue)(R,n)}),[r,n,a]);(0,d.useEscapeStack)((function(){return x(!1)}),_),(0,f.useOnKeypress)({meetsCondition:_,type:"keydown",callback:function(e){"ArrowDown"===e.key&&j0&&M((function(e){return e-1}))}},[j,L]),(0,f.useOnKeypress)({meetsCondition:_,type:"keyup",callback:function(e){if("Enter"===e.key){var t=(0,h.findValueByShadowIndex)(R,j);o&&o(t),x(!1)}}},[R,j]),(0,l.useEffect)((function(){a&&_&&x(!1)}),[a]),(0,l.useEffect)((function(){var e;_?(null===(e=k.current)||void 0===e||e.focus(),M(B||0)):E("")}),[_,O]);var W=(0,l.useCallback)((function(e){o&&o(e),x(!1)}),[o]);return l.default.createElement(b.DropdownWrapper,{ref:S,className:(0,p.default)(_&&"open"),onClick:F},l.default.createElement(b.CurrentValue,{className:(0,p.default)(a&&"disabled")},l.default.createElement("span",null,A),a&&l.default.createElement(b.SpinnerWrapper,null,l.default.createElement(c.default,null))),l.default.createElement(v.PopUpPortal,null,_&&l.default.createElement(b.DropdownRollout,{className:"dropdown-rollout",ref:C,style:D},l.default.createElement(b.CloseButton,null,l.default.createElement(m.default,null)),l.default.createElement(b.Search,{placeholder:"Search...",ref:k,value:O,onClick:function(e){return e.stopPropagation()},onKeyDown:function(e){"Escape"===e.key&&(e.preventDefault(),x(!1)),["ArrowUp","ArrowDown"].includes(e.key)&&e.preventDefault()},onChange:function(e){return E(e.target.value)}}),l.default.createElement(b.ListWrapper,null,l.default.createElement(g.Options,{options:R,value:n,focusIndex:j,onChange:W})))))}},39384:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HelpText=void 0;var i,a=o(n(2784)),l=n(51362),u=o(n(55721)).default.div(i||(i=r(["\n font-style: italic;\n font-size: 12px;\n line-height: 18px;\n padding-top: 6px;\n color: ",";\n"],["\n font-style: italic;\n font-size: 12px;\n line-height: 18px;\n padding-top: 6px;\n color: ",";\n"])),l.colors.gray300);t.HelpText=function(e){var t=e.children;return a.default.createElement(u,null,t)}},13596:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopUpPortal=void 0;var r=n(28316),o=n(53084);t.PopUpPortal=function(e){var t=e.children,n=(0,o.usePortal)().element;return n?(0,r.createPortal)(t,n):null}},65631:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRemoveAnimation=void 0;var r=n(79066),o=n(51362);t.useRemoveAnimation=function(e){var t=e.active,n=e.hovering;return(0,r.useSpring)({opacity:t?1:0,background:n?o.colors.error:"transparent",fill:n?"#fff":o.colors.gray300,scale:n?1.2:1,rotate:t?0:30,config:function(e){switch(e){case"background":case"color":return{tension:330,friction:20};default:return{tension:330,friction:15}}}})}},6403:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveButtonWrapper=void 0;var i,a=n(79066),l=o(n(55721));t.RemoveButtonWrapper=(0,l.default)(a.animated.button)(i||(i=r(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 20px;\n height: 20px;\n\n font-size: 16px;\n\n border-radius: 50%;\n padding: 3px;\n\n svg {\n color: currentColor;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 20px;\n height: 20px;\n\n font-size: 16px;\n\n border-radius: 50%;\n padding: 3px;\n\n svg {\n color: currentColor;\n }\n"])))},54509:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveButton=void 0;var l=i(n(2784)),u=n(23934),c=a(n(83247)),d=n(65631),s=n(6403);t.RemoveButton=function(e){var t=e.active,n=e.onClick,r=(0,l.useRef)(null),o=(0,u.useHover)(r),i=(0,d.useRemoveAnimation)({active:t,hovering:o});return l.default.createElement(s.RemoveButtonWrapper,{ref:r,style:i,onClick:function(e){e.stopPropagation(),n&&n()}},l.default.createElement(c.default,null))}},63005:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyBlockWrapper=t.Subtitle=t.Title=t.Icon=void 0;var i,a,l,u,c=n(51362),d=o(n(55721));t.Icon=d.default.div(i||(i=r(["\n font-size: 20rem;\n margin: 0 0 1.5rem;\n"],["\n font-size: 20rem;\n margin: 0 0 1.5rem;\n"]))),t.Title=d.default.h2(a||(a=r(["\n margin: 0;\n padding: 0;\n\n font-size: 2.8rem;\n color: ",";\n"],["\n margin: 0;\n padding: 0;\n\n font-size: 2.8rem;\n color: ",";\n"])),c.colors.gray500),t.Subtitle=d.default.p(l||(l=r(["\n margin: 0;\n padding: 0;\n\n font-size: 1rem;\n color: ",";\n\n &:not(:last-child) {\n padding-bottom: 1.5rem;\n }\n"],["\n margin: 0;\n padding: 0;\n\n font-size: 1rem;\n color: ",";\n\n &:not(:last-child) {\n padding-bottom: 1.5rem;\n }\n"])),c.colors.gray300),t.EmptyBlockWrapper=d.default.div(u||(u=r(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 5px;\n\n height: 100%;\n\n > * {\n position: relative;\n top: -40px;\n }\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 5px;\n\n height: 100%;\n\n > * {\n position: relative;\n top: -40px;\n }\n"])))},19002:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyBlock=void 0;var o=r(n(2784)),i=n(63005);t.EmptyBlock=function(e){var t=e.title,n=e.subtitle,r=e.icon,a=e.children;return o.default.createElement(i.EmptyBlockWrapper,null,r&&o.default.createElement(i.Icon,null,r),t&&o.default.createElement(i.Title,null,t),n&&o.default.createElement(i.Subtitle,null,n),a)}},12830:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiErrorsBlock=void 0;var o=r(n(2784));t.ApiErrorsBlock=function(e){var t,n,r=e.category,i=e.handle,a=null===(n=null===(t=e.error.errors)||void 0===t?void 0:t[r])||void 0===n?void 0:n[i];return a?o.default.createElement("ul",{className:"errors"},a.map((function(e,t){return o.default.createElement("li",{key:t},o.default.createElement("span",{className:"visually-hidden"},"Error:"),e)}))):null}},90163:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=void 0;var a=i(n(2784)),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={hasError:!1},n}return o(t,e),t.getDerivedStateFromError=function(){return{hasError:!0}},t.prototype.componentDidCatch=function(e,t){console.error(e,t)},t.prototype.render=function(){return this.state.hasError?a.default.createElement("div",null,this.props.message):this.props.children},t}(a.default.Component);t.ErrorBoundary=l},79857:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useRenderContext=t.RenderContextProvider=void 0;var a=n(2784),l=i(n(2784)),u=(0,l.createContext)({size:"normal"});t.RenderContextProvider=function(e){var t=e.size,n=e.children;return l.default.createElement(u.Provider,{value:{size:null!=t?t:"normal"}},n)};t.useRenderContext=function(){return(0,a.useContext)(u)}},42954:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeContainer=t.AttributeTabContent=t.AttributeTypeTabs=t.AttributeEditorWrapper=void 0;var i,a,l,u,c=n(64316),d=n(51362),s=o(n(55721)),f=n(10042);t.AttributeEditorWrapper=(0,s.default)(f.PreviewEditor)(i||(i=r(["\n gap: 0;\n padding: 0;\n"],["\n gap: 0;\n padding: 0;\n"]))),t.AttributeTypeTabs=(0,s.default)(c.TabsWrapper)(a||(a=r(["\n width: 100%;\n overflow: hidden;\n align-self: flex-start;\n\n padding: "," "," 0;\n box-shadow: ",";\n"],["\n width: 100%;\n overflow: hidden;\n align-self: flex-start;\n\n padding: "," "," 0;\n box-shadow: ",";\n"])),d.spacings.md,d.spacings.md,d.shadows.bottom),t.AttributeTabContent=s.default.div(l||(l=r(["\n padding: ",";\n\n background: ",";\n"],["\n padding: ",";\n\n background: ",";\n"])),d.spacings.md,d.colors.white),t.AttributeContainer=(0,s.default)(f.PreviewEditorContainer)(u||(u=r([""],[""])))},64276:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributesEditor=void 0;var l=i(n(2784)),u=n(39384),c=a(n(52179)),d=a(n(26457)),s=a(n(2072)),f=n(57143),p=n(69412),v=n(42954),m=n(54243),h=n(35934);t.AttributesEditor=function(e){var t=e.property,n=e.attributes,r=e.updateValue,o=t.tabs||[],i=(0,l.useState)(o.at(0)),a=i[0],g=i[1],b=Object.entries(n).find((function(e){return e[0]===a.handle}))||[a.handle,[]],y=b[0],_=b[1],x=(0,f.useCellNavigation)(_.length,2),w=x.activeCell,O=x.setActiveCell,E=x.setCellRef,P=x.keyPressHandler;if((0,l.useEffect)((function(){O(0,0)}),[y]),!y||!_)return null;var j=function(e,t,o){O(void 0!==o?o+1:e,t),r((0,h.addAttribute)(y,n,void 0!==o?o:_.length-1))};return l.default.createElement(v.AttributeEditorWrapper,null,l.default.createElement(v.AttributeTypeTabs,null,t.tabs&&t.tabs.map((function(e){return l.default.createElement("a",{key:e.handle,className:(0,d.default)(e===a&&"active"),onClick:function(){return g(e)}},e.label)}))),l.default.createElement(v.AttributeTabContent,null,l.default.createElement(m.InputPreview,{tab:a,attributes:_}),l.default.createElement(v.AttributeContainer,null,l.default.createElement(p.TabularOptions,null,l.default.createElement("tbody",null,!_.length&&l.default.createElement(p.Row,null,l.default.createElement(p.Cell,null,l.default.createElement(p.Input,{type:"text",placeholder:(0,s.default)("Attribute"),onFocus:function(){j(0,0)}})),l.default.createElement(p.Cell,null,l.default.createElement(p.Input,{type:"text",placeholder:(0,s.default)("Value"),onFocus:function(){j(0,1)}}))),_.map((function(e,t){var o=e[0],i=e[1];return l.default.createElement(p.Row,{key:t},l.default.createElement(p.Cell,null,l.default.createElement(p.Input,{type:"text",value:String(o),placeholder:(0,s.default)("Attribute"),autoFocus:w==="".concat(t,":0"),ref:function(e){return E(e,t,0)},onFocus:function(){return O(t,0)},onKeyDown:P({onEnter:function(e){j(e.shiftKey?t:_.length,0,e.shiftKey?t:void 0)}}),onChange:function(e){r((0,h.updateAttribute)(t,y,[e.target.value,i],n))}})),l.default.createElement(p.Cell,null,l.default.createElement(p.Input,{type:"text",value:String(i),placeholder:(0,s.default)("Value"),autoFocus:w==="".concat(t,":1"),ref:function(e){return E(e,t,1)},onFocus:function(){return O(t,1)},onKeyDown:P({onEnter:function(e){j(e.shiftKey?t:_.length,1,e.shiftKey?t:void 0)}}),onChange:function(e){r((0,h.updateAttribute)(t,y,[o,e.target.value],n))}})),l.default.createElement(p.Cell,{$tiny:!0},l.default.createElement(p.Button,{tabIndex:-1,onClick:function(){r((0,h.deleteAttribute)(t,y,n)),O(Math.max(t-1,0),0)}},l.default.createElement(c.default,null))))}))))),l.default.createElement("br",null),l.default.createElement(u.HelpText,null,l.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,s.default)("Press enter while editing a cell to add a new row.")}}))))}},37562:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Value=t.Quote=t.Operator=t.Name=t.CodeBlock=void 0;var i,a,l,u,c,d=n(51362),s=o(n(55721));t.CodeBlock=s.default.div(i||(i=r(["\n position: relative;\n\n padding: "," ",";\n\n font-family: monospace;\n\n background: ",";\n border: 1px solid ",";\n border-bottom: none;\n border-radius: "," "," 0 0;\n"],["\n position: relative;\n\n padding: "," ",";\n\n font-family: monospace;\n\n background: ",";\n border: 1px solid ",";\n border-bottom: none;\n border-radius: "," "," 0 0;\n"])),d.spacings.sm,d.spacings.md,d.colors.gray050,d.colors.hairline,d.borderRadius.lg,d.borderRadius.lg),t.Name=s.default.span(a||(a=r(["\n color: ",";\n"],["\n color: ",";\n"])),d.colors.teal700),t.Operator=s.default.span(l||(l=r(["\n color: ",";\n"],["\n color: ",";\n"])),d.colors.gray300),t.Quote=s.default.span(u||(u=r(["\n &:before {\n content: '\"';\n color: ",";\n }\n"],["\n &:before {\n content: '\"';\n color: ",";\n }\n"])),d.colors.gray300),t.Value=s.default.span(c||(c=r(["\n color: ",";\n"],["\n color: ",";\n"])),d.colors.red300)},54243:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputPreview=void 0;var o=r(n(2784)),i=n(37562),a=n(35934);t.InputPreview=function(e){var t=e.tab,n=e.attributes;return o.default.createElement(i.CodeBlock,null,"<",t.previewTag,(0,a.attributesToArray)(n).map((function(e,t){var n=e[0],r=e[1];return o.default.createElement("span",{key:t},o.default.createElement(i.Name,null," ",n),!!r&&o.default.createElement(o.default.Fragment,null,o.default.createElement(i.Operator,null,"="),o.default.createElement(i.Quote,null),o.default.createElement(i.Value,null,r),o.default.createElement(i.Quote,null)))}))," />")}},35934:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n svg {\n width: 100%;\n height: 100%;\n\n color: ",";\n }\n"],["\n position: absolute;\n top: 0;\n right: -25px;\n\n opacity: 0;\n\n width: 20px;\n height: 20px;\n\n > svg {\n width: 100%;\n height: 100%;\n\n color: ",";\n }\n"])),d.colors.gray400),t.RemoveButton=(0,s.default)(c.animated.button)(l||(l=r(["\n position: absolute;\n top: 0;\n right: -50px;\n\n opacity: 0;\n\n width: 20px;\n height: 20px;\n\n > svg {\n width: 100%;\n height: 100%;\n\n color: ",";\n }\n"],["\n position: absolute;\n top: 0;\n right: -50px;\n\n opacity: 0;\n\n width: 20px;\n height: 20px;\n\n > svg {\n width: 100%;\n height: 100%;\n\n color: ",";\n }\n"])),d.colors.gray400),t.LabelElement=(0,s.default)(c.animated.h1)(u||(u=r(["\n cursor: pointer;\n\n min-height: 10px;\n\n margin: 0 0 0 -8px;\n padding: "," 40px "," ",";\n\n border: 0;\n border-radius: ",";\n\n > span {\n position: relative;\n display: inline-block;\n\n > span:empty:after {\n content: 'No Title';\n\n color: ",";\n font-style: italic;\n }\n }\n"],["\n cursor: pointer;\n\n min-height: 10px;\n\n margin: 0 0 0 -8px;\n padding: "," 40px "," ",";\n\n border: 0;\n border-radius: ",";\n\n > span {\n position: relative;\n display: inline-block;\n\n > span:empty:after {\n content: 'No Title';\n\n color: ",";\n font-style: italic;\n }\n }\n"])),d.spacings.sm,d.spacings.sm,d.spacings.sm,d.borderRadius.lg,d.colors.gray300)},9061:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=i(n(2784)),u=n(11767),c=a(n(26457)),d=a(n(71059)),s=n(88123),f=n(31175);t.default=function(e){var t=e.value,n=e.property,r=e.errors,o=e.updateValue,i=(0,l.useState)(!1),a=i[0],p=i[1],v=(0,l.useState)(!1),m=v[0],h=v[1],g=n.handle,b=(0,l.useRef)(null),y=(0,s.useLabelAnimation)(a),_=(0,s.useEditButtonAnimations)(a);return l.default.createElement(f.EditableLabelWrapper,{className:(0,c.default)((null==r?void 0:r.length)>0&&"errors")},m&&l.default.createElement("input",{id:g,ref:b,type:"text",className:"text fullwidth",value:t||"",onChange:function(e){return o(e.target.value)},onBlur:function(){return h(!1)},onKeyDown:function(e){"Enter"===e.key&&h(!1)}}),!m&&l.default.createElement(f.LabelElement,{style:y,onClick:function(){h(!0),p(!1),setTimeout((function(){var e;null===(e=b.current)||void 0===e||e.focus()}),3)},onMouseEnter:function(){return p(!0)},onMouseLeave:function(){return p(!1)}},l.default.createElement("span",null,l.default.createElement("span",null,t),l.default.createElement(f.EditButton,{style:_},l.default.createElement(d.default,null)))),l.default.createElement(u.FormErrorList,{errors:r}))}},78027:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MaxInput=t.MinInput=t.Wrapper=void 0;var i=o(n(55721));t.Wrapper=i.default.div(a||(a=r(["\n display: flex;\n"],["\n display: flex;\n"])));var a,l,u,c,d=i.default.input(l||(l=r(["\n width: 100%;\n --focus-ring: 0;\n"],["\n width: 100%;\n --focus-ring: 0;\n"])));t.MinInput=(0,i.default)(d)(u||(u=r(["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n"],["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n"]))),t.MaxInput=(0,i.default)(d)(c||(c=r(["\n border-left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n"],["\n border-left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n"])))},79174:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(46425),a=n(78027);t.default=function(e){var t,n=e.value,r=e.property,l=e.errors,u=e.updateValue,c=e.context,d=n||[null,null],s=d[0],f=d[1],p=(null===(t=c.properties)||void 0===t?void 0:t.allowNegative)?null:0;return o.default.createElement(i.Control,{property:r,errors:l},o.default.createElement(a.Wrapper,null,o.default.createElement("div",null,o.default.createElement(a.MinInput,{id:"min",value:null===s?"":s,type:"number",min:p,className:"text",placeholder:"Min",onChange:function(e){var t=e.target,n=""!==t.value?Number(t.value):null;u([n,f])}})),o.default.createElement("div",null,o.default.createElement(a.MaxInput,{id:"max",value:null===f?"":f,type:"number",min:p,className:"text",placeholder:"Max",onChange:function(e){var t=e.target,n=""!==t.value?Number(t.value):null;u([s,n])}}))))}},86082:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldSelect=void 0;var o=r(n(2784)),i=n(4500),a=n(68991),l=r(n(2072));t.FieldSelect=function(e){var t=e.value,n=e.onChange,r=(0,a.useFieldOptionCollection)();return o.default.createElement(i.Dropdown,{options:r,emptyOption:(0,l.default)("Do not map this field"),value:t,onChange:n})}},47815:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n svg {\n fill: ",";\n\n animation: "," 2s infinite;\n transform-origin: 50% 50%;\n }\n"],["\n position: absolute;\n top: 0;\n right: 0;\n\n font-size: 16px;\n\n &[disabled] > svg {\n fill: ",";\n\n animation: "," 2s infinite;\n transform-origin: 50% 50%;\n }\n"])),l.colors.gray300,i.animations.spinner),t.MappingWrapper=u.default.div(d||(d=r(["\n display: grid;\n align-items: center;\n gap: ",";\n\n grid-template-columns: 1.5fr min-content 1fr;\n\n padding: 2px 0;\n\n > div:first-child {\n flex-grow: 1;\n }\n\n > div:last-child {\n flex-basis: 300px;\n }\n"],["\n display: grid;\n align-items: center;\n gap: ",";\n\n grid-template-columns: 1.5fr min-content 1fr;\n\n padding: 2px 0;\n\n > div:first-child {\n flex-grow: 1;\n }\n\n > div:last-child {\n flex-basis: 300px;\n }\n"])),l.spacings.sm),t.MappingContainer=u.default.div(s||(s=r(["\n max-width: 1000px;\n max-height: 454px;\n\n overflow-y: auto;\n overflow-x: hidden;\n\n border: 1px solid rgb(205 216 228 / 50%);\n border-radius: 5px;\n\n padding: "," ",";\n\n ",";\n"],["\n max-width: 1000px;\n max-height: 454px;\n\n overflow-y: auto;\n overflow-x: hidden;\n\n border: 1px solid rgb(205 216 228 / 50%);\n border-radius: 5px;\n\n padding: "," ",";\n\n ",";\n"])),l.spacings.sm,l.spacings.lg,a.scrollBar),t.SourceField=u.default.div(f||(f=r(["\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 50%;\n\n display: block;\n\n width: 100%;\n height: 1px;\n\n background-color: ",";\n }\n\n > span {\n position: relative;\n z-index: 2;\n\n display: block;\n padding: 0 10px 0 0;\n width: fit-content;\n\n background-color: white;\n }\n\n &.required > span {\n &:after {\n content: '*';\n position: relative;\n right: -2px;\n\n color: ",";\n }\n }\n"],["\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 50%;\n\n display: block;\n\n width: 100%;\n height: 1px;\n\n background-color: ",";\n }\n\n > span {\n position: relative;\n z-index: 2;\n\n display: block;\n padding: 0 10px 0 0;\n width: fit-content;\n\n background-color: white;\n }\n\n &.required > span {\n &:after {\n content: '*';\n position: relative;\n right: -2px;\n\n color: ",";\n }\n }\n"])),l.colors.gray100,l.colors.error),t.TypeButtonGroup=u.default.div(p||(p=r(["\n display: flex;\n"],["\n display: flex;\n"])));var c,d,s,f,p,v,m="8px";t.TypeButton=u.default.button(v||(v=r(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 34px;\n height: 28px;\n\n fill: ",";\n background-color: ",";\n\n &.active {\n fill: ",";\n background-color: ",";\n }\n\n &:first-child {\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n }\n\n &:last-child {\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n }\n\n svg {\n width: 16px;\n height: 16px;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 34px;\n height: 28px;\n\n fill: ",";\n background-color: ",";\n\n &.active {\n fill: ",";\n background-color: ",";\n }\n\n &:first-child {\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n }\n\n &:last-child {\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n }\n\n svg {\n width: 16px;\n height: 16px;\n }\n"])),l.colors.gray550,l.colors.elements.dropdown,l.colors.gray050,l.colors.gray550,m,m,m,m)},49719:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=r(n(76257)),a=n(46425),l=n(79634),u=r(n(60014)),c=r(n(78376)),d=n(47815),s=n(37774),f=n(4562);t.default=function(e){var t=e.value,n=void 0===t?{}:t,r=e.property,p=e.errors,v=e.updateValue,m=e.context,h={};r.parameterFields&&Object.entries(r.parameterFields).forEach((function(e){var t=e[0],n=e[1];h[n]=(0,f.extractParameter)(m,t)}));var g=(0,l.useQuery)(["field-mapping",r.source,h],(function(){return u.default.get(r.source,{params:h}).then((function(e){return e.data}))}),{staleTime:1/0,cacheTime:1/0}),b=g.data,y=g.isFetching,_=g.refetch;return o.default.createElement(a.Control,{property:r,errors:p},o.default.createElement(s.RefreshButton,{className:"btn",disabled:y,onClick:function(){h.refresh="true",_(),delete h.refresh}},o.default.createElement(c.default,null)),b&&o.default.createElement(d.FieldMappingController,{sources:b,mapping:n,updateValue:v}),!b&&y&&o.default.createElement("div",null,o.default.createElement(i.default,{width:"40%"}),o.default.createElement(i.default,{width:"35%"}),o.default.createElement(i.default,{width:"42%"})))}},4562:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractParameter=void 0;t.extractParameter=function(e,t){for(var n=e,r=0,o=t.split(".");r svg {\n position: absolute;\n left: 0;\n top: 2px;\n\n width: 18px;\n height: 18px;\n }\n"],["\n position: relative;\n\n padding: 0 0 0 24px;\n\n font-size: 12px;\n color: ",";\n\n max-lines: 1;\n max-height: 60px;\n overflow: hidden;\n\n > svg {\n position: absolute;\n left: 0;\n top: 2px;\n\n width: 18px;\n height: 18px;\n }\n"])),d.colors.gray300),t.Id=s.default.div(u||(u=r(["\n padding: 2px 0 1px;\n font-size: 10px !important;\n color: ",";\n"],["\n padding: 2px 0 1px;\n font-size: 10px !important;\n color: ",";\n"])),d.colors.gray300)},74292:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSelectionAnimations=t.useEditorAnimations=void 0;var r=n(79066);t.useEditorAnimations=function(e,t){var n=210;return t>6?n=360:t>3&&(n=280),(0,r.useSpring)({height:e?n:36,config:{tension:500,friction:e?26:40}})};t.useSelectionAnimations=function(e){return(0,r.useSpring)({opacity:e?1:0,overflowY:e?"auto":"hidden",config:{tension:500}})}},26163:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useNotificationTemplates=void 0;var r=n(74740);t.useNotificationTemplates=function(e){var t,n,o,i=(0,r.useQueryNotificationTemplates)(),a=i.data,l=i.isFetching,u=(null==a?void 0:a.templates)||{database:[],files:[]},c="string"==typeof e;return"number"==typeof e?o=null===(t=null==u?void 0:u.database)||void 0===t?void 0:t.find((function(t){return t.id===e})):c&&(o=null===(n=null==u?void 0:u.files)||void 0===n?void 0:n.find((function(t){return t.id===e}))),{templates:u,isFetching:l,selectedTemplate:o}}},4002:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonRow=t.CategorySelectionWrapper=t.SelectedNotification=t.NotificationTemplateSelector=void 0;var i,a,l,u,c,d=n(79066),s=n(80159),f=n(51362),p=o(n(55721));t.NotificationTemplateSelector=(0,p.default)(d.animated.div)(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: 0;\n\n padding: 0;\n\n border: 1px solid ",";\n border-radius: ",";\n\n overflow: hidden;\n"],["\n display: flex;\n flex-direction: column;\n gap: 0;\n\n padding: 0;\n\n border: 1px solid ",";\n border-radius: ",";\n\n overflow: hidden;\n"])),f.colors.inputBorder,f.borderRadius.lg),t.SelectedNotification=p.default.div(a||(a=r(["\n position: relative;\n cursor: pointer;\n\n height: 36px;\n\n flex: 1 0 36px;\n padding: 7px 12px;\n\n overflow: hidden;\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n\n ","\n\n > span {\n &:empty {\n &:after {\n content: 'Please select...';\n color: ",";\n }\n }\n }\n\n > svg {\n position: absolute;\n right: 6px;\n top: calc(50% - 7px);\n\n display: block;\n width: 14px;\n height: 14px;\n stroke-width: 3px;\n fill: #e5e7eb;\n transition: transform 0.2s ease-in-out;\n }\n\n &.open {\n > svg {\n transform: rotate(-90deg);\n }\n }\n"],["\n position: relative;\n cursor: pointer;\n\n height: 36px;\n\n flex: 1 0 36px;\n padding: 7px 12px;\n\n overflow: hidden;\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n\n ","\n\n > span {\n &:empty {\n &:after {\n content: 'Please select...';\n color: ",";\n }\n }\n }\n\n > svg {\n position: absolute;\n right: 6px;\n top: calc(50% - 7px);\n\n display: block;\n width: 14px;\n height: 14px;\n stroke-width: 3px;\n fill: #e5e7eb;\n transition: transform 0.2s ease-in-out;\n }\n\n &.open {\n > svg {\n transform: rotate(-90deg);\n }\n }\n"])),(function(e){return e.empty&&"\n color: ".concat(f.colors.gray300,";\n font-style: italic;\n ")}),f.colors.gray600),t.CategorySelectionWrapper=(0,p.default)(d.animated.div)(l||(l=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n height: 100%;\n padding: "," "," "," ",";\n\n border-top: 1px solid ",";\n overflow-y: auto;\n overflow-x: hidden;\n\n ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n height: 100%;\n padding: "," "," "," ",";\n\n border-top: 1px solid ",";\n overflow-y: auto;\n overflow-x: hidden;\n\n ",";\n"])),f.spacings.lg,f.spacings.sm,f.spacings.lg,f.spacings.sm,f.spacings.sm,f.colors.inputBorder,s.scrollBar),t.ButtonRow=(0,p.default)(d.animated.div)(u||(u=r(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: start;\n gap: ",";\n\n border-top: 1px solid ",";\n\n padding: ",";\n background-color: ",";\n"],["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: start;\n gap: ",";\n\n border-top: 1px solid ",";\n\n padding: ",";\n background-color: ",";\n"])),f.spacings.sm,f.colors.inputBorder,f.spacings.sm,f.colors.gray100),t.Button=p.default.button(c||(c=r(["\n padding-top: 2px;\n padding-bottom: 3px;\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n\n &.submit {\n margin-left: auto;\n }\n"],["\n padding-top: 2px;\n padding-bottom: 3px;\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n\n &.submit {\n margin-left: auto;\n }\n"])))},50352:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(46425),a=n(11767),l=n(57092),u=n(96788),c=n(51362),d=n(88863),s=r(n(26457)),f=r(n(2072)),p=n(70006),v=r(n(54224)),m=n(74292),h=n(26163),g=n(4002);t.default=function(e){var t,n,r=e.value,b=e.property,y=e.errors,_=e.updateValue,x=o.default.useState(!1),w=x[0],O=x[1],E=(0,h.useNotificationTemplates)(r),P=E.templates,j=E.isFetching,M=E.selectedTemplate,k=(0,m.useEditorAnimations)(w,(null===(t=null==P?void 0:P.database)||void 0===t?void 0:t.length)+(null===(n=null==P?void 0:P.files)||void 0===n?void 0:n.length)),C=(0,m.useSelectionAnimations)(w),S=(0,u.useNewNotificationMutation)();if(j&&!P)return o.default.createElement(i.Control,{property:b,errors:y},o.default.createElement(g.NotificationTemplateSelector,{style:{height:36}},o.default.createElement(g.SelectedNotification,{empty:!0},o.default.createElement("span",null,o.default.createElement(l.LoadingText,{spinner:!0,loading:!0,instant:!0},(0,f.default)("Loading Templates"))),o.default.createElement(v.default,null))));var D=function(e){S.reset(),_(e.id),O(!1)};return o.default.createElement(i.Control,{property:b,errors:y},o.default.createElement(g.NotificationTemplateSelector,{style:k},o.default.createElement(g.SelectedNotification,{onClick:function(){return O(!w)},className:(0,s.default)(w&&"open")},o.default.createElement("span",null,null==M?void 0:M.name),o.default.createElement(v.default,null)),o.default.createElement(g.CategorySelectionWrapper,{style:C},o.default.createElement(p.Category,{value:r,category:d.TemplateType.Database,templates:P.database,onClick:D}),o.default.createElement(p.Category,{value:r,category:d.TemplateType.File,templates:P.files,onClick:D})),o.default.createElement(g.ButtonRow,{style:{opacity:C.opacity}},o.default.createElement(g.Button,{className:(0,s.default)("btn",S.isLoading&&"disabled"),disabled:S.isLoading,onClick:function(){S.reset(),O(!1)}},(0,f.default)("Close")),o.default.createElement(g.Button,{className:(0,s.default)("btn",S.isLoading&&"disabled"),disabled:S.isLoading,onClick:function(){S.reset(),_(void 0),O(!1)}},(0,f.default)("Clear choice")),o.default.createElement(g.Button,{className:(0,s.default)("btn","submit",!S.isLoading&&"add",!S.isLoading&&"icon",S.isLoading&&"disabled"),disabled:S.isLoading,onClick:function(){return S.mutate({name:"New Template"},{onSuccess:function(e){var t=e.data;D(t)}})}},S.isLoading&&o.default.createElement(l.LoadingText,null,(0,f.default)("Creating a template")),!S.isLoading&&(0,f.default)("New template"))),S.isError&&o.default.createElement(a.FormErrorList,{style:{margin:"0 ".concat(c.spacings.sm," ").concat(c.spacings.sm)},errors:S.error.errors})))}},79335:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockWrapper=void 0;var i,a=n(51362),l=o(n(55721));t.BlockWrapper=l.default.div(i||(i=r(["\n display: grid;\n align-items: center;\n gap: ",";\n\n grid-template-columns: 1.5fr 1fr 1.5fr;\n"],["\n display: grid;\n align-items: center;\n gap: ",";\n\n grid-template-columns: 1.5fr 1fr 1.5fr;\n"])),a.spacings.md)},11400:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nenter while focusing an input to add a new set of inputs.")}})))}},36856:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutBlock=t.Button=t.ButtonGroup=t.ButtonLayoutWrapper=void 0;var i,a,l,u,c=n(51362),d=o(n(55721));t.ButtonLayoutWrapper=d.default.ul(i||(i=r(["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: ",";\n\n margin-top: ",";\n"],["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: ",";\n\n margin-top: ",";\n"])),c.spacings.sm,c.spacings.sm),t.ButtonGroup=d.default.div(a||(a=r(["\n display: flex;\n gap: 2px;\n"],["\n display: flex;\n gap: 2px;\n"]))),t.Button=d.default.button(l||(l=r(["\n display: block;\n padding: 3px 5px;\n\n border-radius: ",";\n font-size: 16px;\n\n &:not(.enabled) {\n opacity: 0.2;\n }\n\n &.submit {\n background-color: "," !important;\n fill: "," !important;\n }\n"],["\n display: block;\n padding: 3px 5px;\n\n border-radius: ",";\n font-size: 16px;\n\n &:not(.enabled) {\n opacity: 0.2;\n }\n\n &.submit {\n background-color: "," !important;\n fill: "," !important;\n }\n"])),c.borderRadius.md,c.colors.red500,c.colors.white),t.LayoutBlock=d.default.li(u||(u=r(["\n cursor: pointer;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n padding: 3px;\n\n border: 1px solid ",";\n border-radius: ",";\n background-color: ",";\n\n transition: background-color 0.2s ease-in-out;\n\n "," {\n fill: ",";\n background: ",";\n }\n\n &.active {\n border-color: ",";\n background-color: ",";\n\n "," {\n background: ",";\n fill: ",";\n }\n }\n\n &:not(.active):hover {\n background-color: ",";\n }\n"],["\n cursor: pointer;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n padding: 3px;\n\n border: 1px solid ",";\n border-radius: ",";\n background-color: ",";\n\n transition: background-color 0.2s ease-in-out;\n\n "," {\n fill: ",";\n background: ",";\n }\n\n &.active {\n border-color: ",";\n background-color: ",";\n\n "," {\n background: ",";\n fill: ",";\n }\n }\n\n &:not(.active):hover {\n background-color: ",";\n }\n"])),c.colors.gray100,c.borderRadius.md,c.colors.gray100,t.Button,c.colors.white,c.colors.gray300,c.colors.gray500,c.colors.gray500,t.Button,c.colors.white,c.colors.gray500,c.colors.gray200)},15715:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(46425),a=r(n(26457)),l=r(n(70460)),u=r(n(56346)),c=r(n(88622)),d=n(36856),s={save:o.default.createElement(u.default,null),back:o.default.createElement(l.default,null),submit:o.default.createElement(c.default,null)};t.default=function(e){var t,n,r,l,u,c,f=e.value,p=e.property,v=e.errors,m=e.updateValue,h=e.context,g=p.layouts,b={save:null===(n=null===(t=null==h?void 0:h.buttons)||void 0===t?void 0:t.save)||void 0===n?void 0:n.enabled,back:null===(l=null===(r=null==h?void 0:h.buttons)||void 0===r?void 0:r.back)||void 0===l?void 0:l.enabled,submit:null===(c=null===(u=null==h?void 0:h.buttons)||void 0===u?void 0:u.submit)||void 0===c?void 0:c.enabled};return o.default.createElement(i.Control,{property:p,errors:v},o.default.createElement(d.ButtonLayoutWrapper,null,g.map((function(e,t){return o.default.createElement(d.LayoutBlock,{key:t,onClick:function(){return m(e)},className:(0,a.default)(f===e&&"active")},e.split(" ").map((function(e,t){return o.default.createElement(d.ButtonGroup,{key:t},e.split("|").filter(Boolean).map((function(e,t){return o.default.createElement(d.Button,{className:(0,a.default)(e,(null==b?void 0:b[e])&&"enabled"),key:t},s[e])})))})))}))))}},96923:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageButtonWrapper=void 0;var i,a=n(80286),l=o(n(55721));t.PageButtonWrapper=l.default.label(i||(i=r(["\n display: flex;\n justify-content: start;\n\n "," {\n margin-bottom: 2px;\n }\n"],["\n display: flex;\n justify-content: start;\n\n "," {\n margin-bottom: 2px;\n }\n"])),a.CheckboxWrapper)},42753:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&c.default.createElement(c.default.Fragment,null,c.default.createElement(f.Cell,{$tiny:!0},c.default.createElement(s.default,{property:{label:"",handle:"".concat(u,"-check"),type:b.PropertyType.Boolean},value:a?o.includes(e.value):e.value===o,updateValue:function(){if(a){var t=o;i(t.includes(e.value)?t.filter((function(t){return t!==e.value})):l(l([],t,!0),[e.value],!1))}else i(e.value===o?"":e.value)}})),c.default.createElement(f.Cell,{$tiny:!0},c.default.createElement(f.Button,{ref:E.current[u],className:"handle"},c.default.createElement(h.default,null))),c.default.createElement(f.Cell,{$tiny:!0},c.default.createElement(f.Button,{onClick:function(){n((0,_.deleteOption)(u,t)),M(Math.max(u-1,0),0)}},c.default.createElement(m.default,null)))))}))))),c.default.createElement(d.HelpText,null,c.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,y.default)("Press enter while editing a cell to add a new row.")}})))}},53585:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n div {\n &:first-child {\n flex-grow: 1;\n }\n\n &:nth-child(2) {\n flex-shrink: 0;\n flex-basis: 100px;\n }\n }\n"],["\n display: flex;\n\n > div {\n &:first-child {\n flex-grow: 1;\n }\n\n &:nth-child(2) {\n flex-shrink: 0;\n flex-basis: 100px;\n }\n }\n"])))},89726:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPreview=void 0;var o=r(n(2784)),i=n(97369),a=r(n(2072)),l=n(57482);t.CustomPreview=function(e){var t=e.value,n=t.options,r=void 0===n?[]:n,u=t.useCustomValues;return o.default.createElement(i.PreviewWrapper,{"data-edit":(0,a.default)("Click to edit data")},o.default.createElement(i.PreviewTable,null,!r.length&&o.default.createElement(i.NoContent,null,(0,a.default)("Not configured yet")),r.map((function(e,t){return o.default.createElement(l.PreviewRow,{key:t},o.default.createElement(i.PreviewData,{"data-empty":(0,a.default)("empty")},e.label),u&&o.default.createElement(i.PreviewData,{"data-empty":(0,a.default)("empty")},e.value))}))))}},1691:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(15738),a=n(33819),l=r(n(2072)),u=n(5355),c=n(53585),d=n(89726);t.default=function(e){var t=e.value,n=e.updateValue,r=e.defaultValue,s=e.updateDefaultValue,f=e.isMultiple;return o.default.createElement(o.default.Fragment,null,o.default.createElement(i.Label,null,(0,l.default)("Options")),o.default.createElement(a.PreviewableComponent,{preview:o.default.createElement(d.CustomPreview,{value:t,defaultValue:r,isMultiple:f}),onAfterEdit:function(){return n((0,c.cleanOptions)(t))},onEdit:function(){t.options.length||n((0,c.addOption)(t,0))}},o.default.createElement(u.CustomEditor,{value:t,updateValue:n,defaultValue:r,updateDefaultValue:s,isMultiple:f})))}},13866:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateDefaultValue=void 0;var r=n(69229);t.generateDefaultValue=function(e){switch(e){case r.Source.Elements:return{source:r.Source.Elements,typeClass:"",properties:{}};case r.Source.Predefined:return{source:r.Source.Predefined,typeClass:"",properties:{}};case r.Source.Custom:default:return{source:r.Source.Custom,useCustomValues:!1,options:[]}}}},78155:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.custom=t.predefined=t.elements=void 0;var o=n(39149);Object.defineProperty(t,"elements",{enumerable:!0,get:function(){return r(o).default}});var i=n(76238);Object.defineProperty(t,"predefined",{enumerable:!0,get:function(){return r(i).default}});var a=n(1691);Object.defineProperty(t,"custom",{enumerable:!0,get:function(){return r(a).default}})},23773:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SourceComponent=void 0;var a=i(n(2784)),l=n(90163),u=n(69229),c=i(n(78155));t.SourceComponent=function(e){var t=e.value,n=e.updateValue,r=e.defaultValue,o=e.updateDefaultValue,i=e.convertToCustomValues,d=e.isMultiple,s=t.source,f=void 0===s?u.Source.Custom:s,p=c[f];return void 0===p?a.default.createElement("div",null,f," not implemented..."):(p.displayName="Source <".concat(f,">"),a.default.createElement(l.ErrorBoundary,{message:"...".concat(f," not implemented")},a.default.createElement(a.Suspense,null,a.default.createElement(p,{value:t,updateValue:n,defaultValue:r,updateDefaultValue:o,convertToCustomValues:i,isMultiple:d}))))}},24658:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(4500),a=n(46425);t.default=function(e){var t=e.value,n=e.property,r=e.errors,l=e.updateValue,u=n.options,c=n.emptyOption;return o.default.createElement(a.Control,{property:n,errors:r},o.default.createElement(i.Dropdown,{value:null!=t?t:"",emptyOption:c,options:u,onChange:l}))}},60556:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(46425),a=r(n(26457));t.default=function(e){var t,n=e.value,r=e.property,l=e.errors,u=e.updateValue,c=e.autoFocus,d=r.handle;return o.default.createElement(i.Control,{property:r,errors:l},o.default.createElement("input",{id:d,type:"text",autoComplete:"off",autoFocus:c,"data-1p-ignore":!0,className:(0,a.default)("text","fullwidth",(null===(t=null==r?void 0:r.flags)||void 0===t?void 0:t.includes("code"))&&"code"),value:null!=n?n:"",placeholder:r.placeholder,onChange:function(e){return u(e.target.value)}}))}},69412:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.Select=t.Input=t.Cell=t.Row=t.TabularOptions=t.TableContainer=t.TableEditorWrapper=void 0;var i,a,l,u,c,d,s,f,p=n(51362),v=o(n(55721)),m=n(10042);t.TableEditorWrapper=(0,v.default)(m.PreviewEditor)(i||(i=r([""],[""]))),t.TableContainer=(0,v.default)(m.PreviewEditorContainer)(a||(a=r([""],[""]))),t.TabularOptions=v.default.table(l||(l=r(["\n width: 100%;\n"],["\n width: 100%;\n"]))),t.Row=v.default.tr(u||(u=r([""],[""]))),t.Cell=v.default.td(c||(c=r(["\n width: ",";\n\n padding: ",";\n\n border: 1px solid rgba(0, 0, 0, 0.1);\n\n label {\n display: none;\n }\n}\n"],["\n width: ",";\n\n padding: ",";\n\n border: 1px solid rgba(0, 0, 0, 0.1);\n\n label {\n display: none;\n }\n}\n"])),(function(e){var t=e.$tiny,n=e.$width;return t?"32px":n?"".concat(n,"px"):"auto"}),(function(e){return e.$tiny?"6px 9px !important":"0 !important"})),t.Input=v.default.input(d||(d=r(["\n width: 100%;\n height: 34px;\n\n padding: 6px 9px;\n\n background: ",";\n\n &:focus {\n box-shadow: var(--inner-focus-ring);\n }\n\n &::placeholder {\n color: ",";\n }\n"],["\n width: 100%;\n height: 34px;\n\n padding: 6px 9px;\n\n background: ",";\n\n &:focus {\n box-shadow: var(--inner-focus-ring);\n }\n\n &::placeholder {\n color: ",";\n }\n"])),p.colors.white,p.colors.gray200),t.Select=v.default.select(s||(s=r(["\n width: 100%;\n height: 34px;\n\n padding: 6px 9px;\n\n &:focus {\n box-shadow: var(--inner-focus-ring);\n }\n"],["\n width: 100%;\n height: 34px;\n\n padding: 6px 9px;\n\n &:focus {\n box-shadow: var(--inner-focus-ring);\n }\n"]))),t.Button=v.default.button(f||(f=r(["\n padding: 1px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n\n &.handle {\n cursor: move;\n }\n\n &:disabled {\n cursor: not-allowed;\n color: lightgray;\n }\n\n > svg {\n fill: currentColor;\n }\n"],["\n padding: 1px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n\n &.handle {\n cursor: move;\n }\n\n &:disabled {\n cursor: not-allowed;\n color: lightgray;\n }\n\n > svg {\n fill: currentColor;\n }\n"])))},42026:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&u.default.createElement(u.default.Fragment,null,u.default.createElement(d.Cell,{$tiny:!0},u.default.createElement(d.Button,{ref:i.current[a],className:"handle"},u.default.createElement(m.default,null))),u.default.createElement(d.Cell,{$tiny:!0},u.default.createElement(d.Button,{onClick:function(){o((0,s.deleteColumn)(a,n)),g(Math.max(a-1,0),0)}},u.default.createElement(v.default,null)))))}))))),u.default.createElement(c.HelpText,null,u.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,h.default)("Press enter while editing a cell to add a new row.")}})))}},48807:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o div {\n white-space: nowrap;\n overflow: hidden;\n\n padding: 7px "," 7px 0;\n\n &:last-child {\n padding-right: 0;\n }\n }\n"],["\n position: relative;\n\n display: grid;\n grid-template-columns: auto 100px;\n gap: 10px;\n\n justify-items: stretch;\n align-items: center;\n\n border-bottom: 1px solid ",";\n\n &:after {\n content: attr(data-title);\n\n position: absolute;\n left: calc(100% - 105px);\n bottom: -7px;\n\n padding: 0 5px;\n background: ",";\n\n ",";\n font-size: 8px;\n }\n\n > div {\n white-space: nowrap;\n overflow: hidden;\n\n padding: 7px "," 7px 0;\n\n &:last-child {\n padding-right: 0;\n }\n }\n"])),f.colors.gray100,f.colors.white,s.labelText,f.spacings.xs),t.PreviewData=p.default.div(d||(d=r(["\n &:empty {\n &:after {\n content: attr(data-empty);\n color: ",";\n font-size: 12px;\n font-style: italic;\n }\n }\n"],["\n &:empty {\n &:after {\n content: attr(data-empty);\n color: ",";\n font-size: 12px;\n font-style: italic;\n }\n }\n"])),f.colors.gray200)},98652:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TablePreview=void 0;var o=r(n(2784)),i=r(n(2072)),a=n(97369),l=function(e,t){var n;return(null===(n=e.find((function(e){return e.value===t})))||void 0===n?void 0:n.label)||t};t.TablePreview=function(e){var t=e.columnTypes,n=e.columns;return o.default.createElement(a.PreviewWrapper,{"data-edit":(0,i.default)("Click to edit data")},o.default.createElement(a.PreviewTable,null,!n.length&&o.default.createElement(a.NoContent,null,(0,i.default)("Not configured yet")),n.map((function(e,n){return o.default.createElement(a.PreviewRow,{key:n,"data-title":l(t,e.type)},o.default.createElement(a.PreviewData,{"data-empty":(0,i.default)("empty")},e.label),o.default.createElement(a.PreviewData,{"data-empty":(0,i.default)("empty")},e.value))}))))}},32346:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(46425),a=n(33819),l=n(42026),u=n(48807),c=n(98652);t.default=function(e){var t=e.value,n=e.property,r=e.errors,d=e.updateValue,s=n.options;return o.default.createElement(i.Control,{property:n,errors:r},o.default.createElement(a.PreviewableComponent,{preview:o.default.createElement(c.TablePreview,{columnTypes:s,columns:t}),onAfterEdit:function(){return d((0,u.cleanColumns)(t))},onEdit:function(){t.length||d((0,u.addColumn)(t,0))}},o.default.createElement(l.TableEditor,{columnTypes:s,columns:t,updateValue:d})))}},79250:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o1&&u.default.createElement(u.default.Fragment,null,u.default.createElement(d.Cell,{$tiny:!0},u.default.createElement(d.Button,{ref:o.current[i],className:"handle"},u.default.createElement(v.default,null))),u.default.createElement(d.Cell,{$tiny:!0},u.default.createElement(d.Button,{onClick:function(){r((0,h.deleteRow)(i,n)),g(Math.max(i-1,0),0)}},u.default.createElement(p.default,null)))))}))))),u.default.createElement(c.HelpText,null,u.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,m.default)("Press enter while editing a cell to add a new row.")}})))}},43219:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o div {\n white-space: nowrap;\n overflow: hidden;\n\n padding: 7px "," 7px 0;\n\n &:last-child {\n padding-right: 0;\n }\n }\n"],["\n position: relative;\n\n display: grid;\n grid-template-columns: auto 100px;\n gap: 10px;\n\n justify-items: stretch;\n align-items: center;\n\n border-bottom: 1px solid ",";\n\n &:after {\n content: attr(data-title);\n\n position: absolute;\n left: calc(100% - 105px);\n bottom: -7px;\n\n padding: 0 5px;\n background: ",";\n\n ",";\n font-size: 8px;\n }\n\n > div {\n white-space: nowrap;\n overflow: hidden;\n\n padding: 7px "," 7px 0;\n\n &:last-child {\n padding-right: 0;\n }\n }\n"])),f.colors.gray100,f.colors.white,s.labelText,f.spacings.xs),t.PreviewData=p.default.div(d||(d=r(["\n &:empty {\n &:after {\n content: attr(data-empty);\n color: ",";\n font-size: 12px;\n font-style: italic;\n }\n }\n"],["\n &:empty {\n &:after {\n content: attr(data-empty);\n color: ",";\n font-size: 12px;\n font-style: italic;\n }\n }\n"])),f.colors.gray200)},48190:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TabularDataPreview=void 0;var o=r(n(2784)),i=r(n(2072)),a=n(49982);t.TabularDataPreview=function(e){var t=e.configuration,n=e.values;return o.default.createElement(a.PreviewWrapper,{"data-edit":(0,i.default)("Click to edit data")},o.default.createElement(a.PreviewTable,null,!n.length&&o.default.createElement(a.NoContent,null,(0,i.default)("Not configured yet")),n.map((function(e,n){return o.default.createElement(a.PreviewRow,{key:n},t.map((function(t,n){return o.default.createElement(a.PreviewData,{key:n,"data-empty":(0,i.default)("empty"),"data-title":t.label},e[n])})))}))))}},66135:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(46425),a=n(33819),l=n(79250),u=n(43219),c=n(48190);t.default=function(e){var t=e.value,n=e.property,r=e.errors,d=e.updateValue,s=n.configuration;return o.default.createElement(i.Control,{property:n,errors:r},o.default.createElement(a.PreviewableComponent,{preview:o.default.createElement(c.TabularDataPreview,{configuration:s,values:t}),onAfterEdit:function(){return d((0,u.cleanRows)(t))},onEdit:function(){t.length||d((0,u.addRow)(t,s,0))}},o.default.createElement(l.TabularDataEditor,{configuration:s,values:t,updateValue:d})))}},27542:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(46425),a=r(n(26457));t.default=function(e){var t=e.value,n=e.property,r=e.errors,l=e.updateValue,u=e.autoFocus,c=n.handle,d=n.rows;return o.default.createElement(i.Control,{property:n,errors:r},o.default.createElement("textarea",{id:c,className:(0,a.default)("text","fullwidth",n.flags.includes("code")&&"code"),rows:d,value:null!=t?t:"",placeholder:n.placeholder,autoFocus:u,onChange:function(e){return l(e.target.value)}}))}},73966:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QuillEditorWrapper=void 0;var i,a=o(n(55721));t.QuillEditorWrapper=a.default.div(i||(i=r(["\n .ql-editor {\n min-height: 300px;\n }\n"],["\n .ql-editor {\n min-height: 300px;\n }\n"])))},6003:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WysiwygEditor=void 0;var o=r(n(2784)),i=r(n(8617)),a=n(10042),l=n(73966);n(61632);t.WysiwygEditor=function(e){var t=e.value,n=e.updateValue;return o.default.createElement(a.PreviewEditor,null,o.default.createElement(a.PreviewContainer,null,o.default.createElement(l.QuillEditorWrapper,null,o.default.createElement(i.default,{theme:"snow",value:t,onChange:n,style:{background:"white"}}))))}},85254:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewContainer=t.Pre=void 0;var i,a,l=n(51362),u=o(n(55721)),c=n(97369);t.Pre=u.default.pre(i||(i=r(["\n font-size: 10px;\n"],["\n font-size: 10px;\n"]))),t.PreviewContainer=(0,u.default)(c.PreviewTable)(a||(a=r(["\n padding: ",";\n"],["\n padding: ",";\n"])),l.spacings.sm)},87186:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WysiwygPreview=void 0;var o=r(n(2784)),i=r(n(2072)),a=n(97369),l=n(85254);t.WysiwygPreview=function(e){var t=e.value;return o.default.createElement(a.PreviewWrapper,{"data-edit":(0,i.default)("Click to edit data")},o.default.createElement(l.PreviewContainer,null,!t&&o.default.createElement(a.NoContent,null,(0,i.default)("Not configured yet")),o.default.createElement("div",{dangerouslySetInnerHTML:{__html:t}})))}},47939:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(46425),a=n(33819),l=n(6003),u=n(87186);t.default=function(e){var t=e.value,n=e.property,r=e.errors,c=e.updateValue;return o.default.createElement(i.Control,{property:n,errors:r},o.default.createElement(a.PreviewableComponent,{preview:o.default.createElement(u.WysiwygPreview,{value:t})},o.default.createElement(l.WysiwygEditor,{value:t,updateValue:c})))}},15738:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ControlWrapper=t.FormField=t.Instructions=t.Label=void 0;var i,a,l,u,c=n(51362),d=o(n(55721));t.Label=d.default.label(i||(i=r(["\n display: block;\n\n color: ",";\n font-weight: "," !important;\n\n &.is-required {\n &:after {\n content: '*';\n padding-left: 2px;\n\n color: ",";\n }\n }\n"],["\n display: block;\n\n color: ",";\n font-weight: "," !important;\n\n &.is-required {\n &:after {\n content: '*';\n padding-left: 2px;\n\n color: ",";\n }\n }\n"])),c.colors.gray550,(function(e){return e.$regular?"normal":"bold"}),c.colors.error),t.Instructions=d.default.span(a||(a=r(["\n display: block;\n\n color: ",";\n padding-top: 0;\n line-height: 16px;\n font-size: 12px;\n font-style: italic;\n\n &:not(:last-child) {\n padding-bottom: 6px;\n }\n"],["\n display: block;\n\n color: ",";\n padding-top: 0;\n line-height: 16px;\n font-size: 12px;\n font-style: italic;\n\n &:not(:last-child) {\n padding-bottom: 6px;\n }\n"])),c.colors.gray300),t.FormField=d.default.div(l||(l=r(["\n margin: 0;\n padding: 0;\n width: 100%;\n display: block;\n\n &.disabled {\n user-select: none;\n pointer-events: none;\n opacity: 0.5;\n }\n"],["\n margin: 0;\n padding: 0;\n width: 100%;\n display: block;\n\n &.disabled {\n user-select: none;\n pointer-events: none;\n opacity: 0.5;\n }\n"]))),t.ControlWrapper=d.default.div(u||(u=r(["\n display: flex;\n position: relative;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n\n width: ",";\n\n &.disabled {\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n }\n\n &.errors {\n "," {\n color: ",";\n }\n\n "," {\n input,\n textarea,\n select {\n border: 1px solid ",";\n }\n\n select {\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n }\n }\n }\n\n &.spacing-small {\n padding-top: 6px;\n }\n\n .btn {\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n }\n"],["\n display: flex;\n position: relative;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n\n width: ",";\n\n &.disabled {\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n }\n\n &.errors {\n "," {\n color: ",";\n }\n\n "," {\n input,\n textarea,\n select {\n border: 1px solid ",";\n }\n\n select {\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n }\n }\n }\n\n &.spacing-small {\n padding-top: 6px;\n }\n\n .btn {\n background-color: var(--ui-control-bg-color);\n\n &:hover {\n background-color: var(--ui-control-hover-bg-color);\n }\n }\n"])),(function(e){var t=e.$width;return t?"".concat(t,"%"):"100%"}),t.Label,c.colors.error,t.FormField,c.colors.error)},46425:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Control=void 0;var o=r(n(2784)),i=n(15738),a=r(n(37033)),l=r(n(22299)),u=r(n(26457)),c=n(11767);t.Control=function(e){var t=e.children,n=e.property,r=e.errors,d=n.label,s=n.handle,f=n.required,p=n.instructions,v=n.width,m=n.disabled;return o.default.createElement(i.ControlWrapper,{className:(0,u.default)(!!r&&"errors",m&&"disabled"),$width:v},o.default.createElement(l.default,{label:d,handle:s,required:f,title:p}),o.default.createElement(a.default,{instructions:p}),o.default.createElement(i.FormField,null,t),o.default.createElement(c.FormErrorList,{errors:r}))}},9256:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DraggableRow=void 0;var l=i(n(2784)),u=n(69412),c=n(25141),d=n(76930),s=a(n(26457));t.DraggableRow=function(e){var t=e.index,n=e.dragRef,r=e.onDrop,o=e.children,i=(0,l.useRef)(null),a=(0,d.useRowDrop)(t,i,r),f=a.handlerId,p=a.drop,v=(0,c.useRowDrag)(t),m=v.isDragging,h=v.drag,g=v.preview;return h(n),p(g(i)),l.default.createElement(u.Row,{ref:i,className:(0,s.default)(m&&"dragging"),"data-handler-id":f},o)}},11767:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&v--,"ArrowDown"===o.key&&i0&&g.start&&(p=!0,m--),"ArrowRight"===o.key&&ua&&d>c||(n(l,a),r.index=a)}}}}}),[t,n]);return{handlerId:i[0].handlerId,drop:i[1]}}},86837:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o")):(g.displayName="FormComponent: <".concat(v,">"),b?!u.default.editions.is(u.Edition.Pro)&&(null==h?void 0:h.includes(u.Edition.Pro))?null:a.default.createElement(c.ErrorBoundary,{message:"...".concat(p," <").concat(v,">")},a.default.createElement(a.Suspense,null,a.default.createElement(g,{value:t,property:r,updateValue:n,errors:o,context:i,autoFocus:f}))):null)}},37033:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(15738);t.default=function(e){var t=e.instructions;return t?o.default.createElement(i.Instructions,null,t):null}},22299:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784)),i=n(86063),a=r(n(26457)),l=n(15738);t.default=function(e){var t=e.label,n=e.handle,r=e.required,u=e.title;return t?o.default.createElement(l.Label,{className:(0,a.default)(r&&"is-required"),htmlFor:n},!u&&t,u&&o.default.createElement(i.Tooltip,{title:u,position:"top",animation:"fade"},t)):null}},11863:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useEditorAnimations=void 0;var r=n(2784),o=n(79066),i=n(57305);t.useEditorAnimations=function(e){var t=e.wrapper,n=e.editor,a=e.isEditing,l=(0,i.usePosition)(t,n,a),u=l.top,c=l.left,d=null==t?void 0:t.offsetWidth,s=(0,r.useState)(!1),f=s[0],p=s[1];return{editorAnimation:(0,o.useSpring)({immediate:function(e){return["top","left","width","pointerEvents","transformOrigin"].includes(e)},to:{top:u,left:c,width:d,opacity:a?1:0,transformOrigin:"top left",transform:a?"scaleY(1)":"scaleY(0.5)",pointerEvents:a?"initial":"none"},config:{tension:700,friction:40}}),isVisible:f,setVisible:p}}},57305:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePosition=void 0;var r=n(2784),o=n(53084),i=n(71485),a=n(92853);t.usePosition=function(e,t,n){var l=(0,o.usePortal)().dimensions,u=(0,r.useState)(0),c=u[0],d=u[1],s=(0,r.useState)(0),f=s[0],p=s[1],v=function(){var n;d((0,a.calculateTopOffset)(e,t));var r=null===(n=null==e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.left;r&&p(r-l.left)};return(0,r.useEffect)((function(){v()}),[n]),(0,r.useEffect)((function(){var e=function(){v()};if(t){var n=document.querySelector(i.SectionWrapper.toString()),r=new ResizeObserver(e);return r.observe(t),window.addEventListener("resize",e),window.addEventListener("scroll",e),null==n||n.addEventListener("scroll",e),function(){r.disconnect(),window.removeEventListener("resize",e),window.removeEventListener("scroll",e),null==n||n.addEventListener("scroll",e)}}}),[t]),{top:c,left:f}}},92853:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateTopOffset=void 0;t.calculateTopOffset=function(e,t){var n=null==e?void 0:e.getBoundingClientRect().top,r=window.innerHeight,o=null==t?void 0:t.offsetHeight;return void 0===o?n:n&&o&&r?n+o>r-20?n-(n+o-r+20):n:0}},10042:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewEditorContainer=t.PreviewEditor=t.PreviewContainer=t.EditableContentWrapper=t.PreviewWrapper=void 0;var i,a,l,u,c,d=n(79066),s=n(80159),f=n(51362),p=o(n(55721));t.PreviewWrapper=p.default.div(i||(i=r(["\n position: relative;\n width: 100%;\n"],["\n position: relative;\n width: 100%;\n"]))),t.EditableContentWrapper=(0,p.default)(d.animated.div)(a||(a=r(["\n position: absolute;\n left: 0;\n top: 0;\n z-index: 3;\n\n box-shadow: ",";\n\n pointer-events: none;\n\n &.active {\n pointer-events: all;\n }\n"],["\n position: absolute;\n left: 0;\n top: 0;\n z-index: 3;\n\n box-shadow: ",";\n\n pointer-events: none;\n\n &.active {\n pointer-events: all;\n }\n"])),f.shadows.panel),t.PreviewContainer=p.default.div(l||(l=r(["\n cursor: pointer;\n\n input,\n select,\n textarea {\n pointer-events: none;\n }\n"],["\n cursor: pointer;\n\n input,\n select,\n textarea {\n pointer-events: none;\n }\n"]))),t.PreviewEditor=p.default.div(u||(u=r(["\n width: 100%;\n min-width: 800px;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: ",";\n\n box-shadow: ",";\n border-radius: ",";\n background: ",";\n"],["\n width: 100%;\n min-width: 800px;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n padding: ",";\n\n box-shadow: ",";\n border-radius: ",";\n background: ",";\n"])),f.spacings.lg,f.spacings.lg,f.shadows.box,f.borderRadius.lg,f.colors.gray050),t.PreviewEditorContainer=p.default.div(c||(c=r(["\n max-height: 600px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ",";\n"],["\n max-height: 600px;\n overflow-x: hidden;\n overflow-y: auto;\n\n ",";\n"])),s.scrollBar)},33819:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?document.body.style.overflow="hidden":document.body.style.overflow="auto"}),[r]);var l=(0,f.useAnimateOverlay)(r.length>0),m=(0,f.useAnimateModals)(r);return u.default.createElement(v.Provider,{value:{openModal:function(e){o(a(a([],r,!0),[e],!1))},closeModal:i}},t,(0,c.createPortal)(u.default.createElement(p.ModalHub,null,u.default.createElement(p.ModalOverlay,{style:l,className:(0,d.default)(!r.length&&"inactive")},m((function(e,t,n,r){return u.default.createElement(s.Modal,{key:r,closeModal:i,style:e},u.default.createElement(t,{closeModal:i}))})))),document.body))}},4679:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalFooter=t.ModalHeader=t.ModalContainer=t.ModalWrapper=t.ModalOverlay=t.ModalHub=void 0;var i,a,l,u,c,d,s=n(79066),f=n(51362),p=o(n(55721));t.ModalHub=p.default.div(i||(i=r([""],[""]))),t.ModalOverlay=(0,p.default)(s.animated.div)(a||(a=r(["\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 1000;\n\n background-color: rgba(123, 135, 147, 0);\n\n &.inactive {\n pointer-events: none;\n }\n"],["\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 1000;\n\n background-color: rgba(123, 135, 147, 0);\n\n &.inactive {\n pointer-events: none;\n }\n"]))),t.ModalWrapper=(0,p.default)(s.animated.div)(l||(l=r(["\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 1001;\n\n display: flex;\n justify-content: center;\n align-items: center;\n"],["\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 1001;\n\n display: flex;\n justify-content: center;\n align-items: center;\n"]))),t.ModalContainer=p.default.div(u||(u=r(["\n width: 100%;\n max-width: 500px;\n\n background-color: #fff;\n border-radius: ",";\n box-shadow: 0 25px 100px rgba(31, 41, 51, 0.5);\n"],["\n width: 100%;\n max-width: 500px;\n\n background-color: #fff;\n border-radius: ",";\n box-shadow: 0 25px 100px rgba(31, 41, 51, 0.5);\n"])),f.borderRadius.lg),t.ModalHeader=p.default.header(c||(c=r(["\n padding: "," ",";\n\n background-color: ",";\n box-shadow: inset 0 -1px 0 ",";\n\n border-radius: "," "," 0 0;\n"],["\n padding: "," ",";\n\n background-color: ",";\n box-shadow: inset 0 -1px 0 ",";\n\n border-radius: "," "," 0 0;\n"])),f.spacings.lg,f.spacings.xl,f.colors.gray100,f.colors.hairline,f.borderRadius.lg,f.borderRadius.lg),t.ModalFooter=p.default.footer(d||(d=r(["\n display: flex;\n justify-content: end;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n\n background-color: ",";\n box-shadow: inset 0 1px 0 ",";\n\n border-radius: 0 0 "," ",";\n"],["\n display: flex;\n justify-content: end;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n\n background-color: ",";\n box-shadow: inset 0 1px 0 ",";\n\n border-radius: 0 0 "," ",";\n"])),f.spacings.sm,f.spacings.sm,f.spacings.xl,f.colors.gray100,f.colors.hairline,f.borderRadius.lg,f.borderRadius.lg)},33134:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Modal=void 0;var o=r(n(2784)),i=n(31070),a=n(4679);t.Modal=function(e){var t=e.children,n=e.closeModal,r=e.style;return(0,i.useEscapeStack)(n),o.default.createElement(a.ModalWrapper,{style:r},t)}},50822:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=void 0;var i,a=o(n(55721));t.Wrapper=a.default.div(i||(i=r(["\n color: white;\n background: red;\n border: 1px solid darkred;\n"],["\n color: white;\n background: red;\n border: 1px solid darkred;\n"])))},27562:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBlock=void 0;var o=r(n(2784)),i=n(50822);t.ErrorBlock=function(e){var t=e.children;return o.default.createElement(i.Wrapper,null,t)}},12415:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1] a {\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border-radius: ",";\n\n color: ",";\n font-size: 12px;\n line-height: 12px;\n\n transition: background-color 0.2s ease-out;\n text-decoration: none;\n\n &.active {\n color: ",";\n background-color: ",";\n }\n\n &.active.inactive {\n .status-dot {\n border-color: ",";\n }\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n }\n"],["\n > a {\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border-radius: ",";\n\n color: ",";\n font-size: 12px;\n line-height: 12px;\n\n transition: background-color 0.2s ease-out;\n text-decoration: none;\n\n &.active {\n color: ",";\n background-color: ",";\n }\n\n &.active.inactive {\n .status-dot {\n border-color: ",";\n }\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n }\n"])),c.spacings.sm,c.spacings.sm,c.spacings.md,c.borderRadius.lg,c.colors.gray700,c.colors.white,c.colors.gray500,c.colors.white,c.colors.gray200),t.Icon=d.default.div(a||(a=r(["\n display: block;\n width: 20px;\n height: 20px;\n"],["\n display: block;\n width: 20px;\n height: 20px;\n"]))),t.Name=d.default.div(l||(l=r(["\n flex-grow: 1;\n max-width: 90%;\n\n padding: 1px 0;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n flex-grow: 1;\n max-width: 90%;\n\n padding: 1px 0;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]))),t.Status=d.default.div(u||(u=r(["\n content: '';\n\n flex-shrink: 0;\n justify-self: flex-end;\n\n width: 10px;\n height: 10px;\n\n border: 1px solid\n ",";\n border-radius: 100%;\n\n background-color: ",";\n\n transition: all 0.3s ease-out;\n"],["\n content: '';\n\n flex-shrink: 0;\n justify-self: flex-end;\n\n width: 10px;\n height: 10px;\n\n border: 1px solid\n ",";\n border-radius: 100%;\n\n background-color: ",";\n\n transition: all 0.3s ease-out;\n"])),(function(e){return e.$enabled?"transparent":c.colors.gray550}),(function(e){return e.$enabled?c.colors.teal550:"transparent"}))},70177:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Integration=void 0;var o=r(n(2784)),i=n(86993),a=n(76034),l=n(66583),u=r(n(26457)),c=r(n(83190)),d=n(87570);t.Integration=function(e){var t=e.id,n=e.name,r=e.handle,s=e.icon,f=(0,i.useSelector)(l.integrationSelectors.one(t));return f?o.default.createElement(d.Wrapper,null,o.default.createElement(a.NavLink,{to:"".concat(t,"/").concat(r),className:(0,u.default)(!f.enabled&&"inactive")},o.default.createElement(d.Icon,null,!!s&&o.default.createElement("img",{src:s}),!s&&o.default.createElement(c.default,null)),o.default.createElement(d.Name,null,n),o.default.createElement(d.Status,{$enabled:f.enabled,className:(0,u.default)("status-dot")}))):null}},40098:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Wrapper=void 0;var i,a=n(51362),l=o(n(55721));t.Wrapper=l.default.ul(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n list-style: none;\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n\n list-style: none;\n"])),a.spacings.sm)},50058:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;no?on){if(d>=t&&t>n)return-r}else if(d<=t&&t span {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n\n &.active {\n color: ",";\n border-bottom-color: ",";\n }\n\n &.errors {\n color: ",";\n\n ",";\n }\n\n &.can-drop {\n box-shadow: 0 2px 12px ",";\n transform: scale(1.1);\n z-index: 2;\n }\n\n &.is-dragging {\n z-index: 1;\n }\n\n &.is-editing {\n padding: 4px 6px;\n }\n\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n\n max-width: 160px;\n height: 100%;\n padding: 10px 5px;\n margin: 0 5px;\n\n color: ",";\n border-bottom: 2px solid ",";\n\n overflow: hidden;\n\n > span {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n\n &.active {\n color: ",";\n border-bottom-color: ",";\n }\n\n &.errors {\n color: ",";\n\n ",";\n }\n\n &.can-drop {\n box-shadow: 0 2px 12px ",";\n transform: scale(1.1);\n z-index: 2;\n }\n\n &.is-dragging {\n z-index: 1;\n }\n\n &.is-editing {\n padding: 4px 6px;\n }\n\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n"])),f.colors.gray400,f.colors.gray100,f.colors.gray800,f.colors.blue600,f.colors.error,s.errorAlert,f.colors.gray500,t.RemoveTabButton),t.TabDrop=p.default.div(u||(u=r(["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n\n width: 100%;\n"],["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n\n width: 100%;\n"]))),t.Input=p.default.input(c||(c=r(["\n border: 0;\n padding: 0 !important;\n line-height: 1rem;\n font-size: 0.75rem;\n box-shadow: none !important;\n\n &:hover,\n &:active {\n box-shadow: none !important;\n }\n"],["\n border: 0;\n padding: 0 !important;\n line-height: 1rem;\n font-size: 0.75rem;\n box-shadow: none !important;\n\n &:hover,\n &:active {\n box-shadow: none !important;\n }\n"])))},33336:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Tab=void 0;var l=i(n(2784)),u=n(86993),c=n(36450),d=n(8697),s=n(72671),f=n(97240),p=n(60719),v=n(77209),m=n(9726),h=a(n(26457)),g=a(n(2072)),b=n(37430),y=n(36253),_=n(73680),x=n(13534),w=n(21573),O=a(n(87661));t.Tab=function(e){var t=e.page,n=e.index,r=(0,u.useSelector)(s.contextSelectors.currentPage),o=(0,u.useSelector)(p.pageSelecors.count),i=(0,c.useAppDispatch)(),a=(0,b.useDragContext)().dragType,E=(0,u.useSelector)(s.contextSelectors.hasErrors(t.uid)),P=(0,l.useRef)(null),j=(0,l.useRef)(null),M=(0,l.useState)(!1),k=M[0],C=M[1],S=(0,x.useTabDrop)(null==r?void 0:r.uid,t),D=S.canDrop,F=S.ref,T=(0,y.useTabDrag)(n,t),R=T.isDragging,L=T.ref,A=(0,x.useTabPageDrop)(P,t,n),B=A.ref,W=A.dragItemIndex,I=F(L(P)),N=(0,_.useTabDragAnimation)(P,n,W,R),z=function(){i(f.pageActions.updateLabel({uid:t.uid,label:j.current.value||t.label}))},V=(0,m.useClickOutside)({callback:function(){z(),C(!1)},isEnabled:k});return l.default.createElement(w.TabWrapper,{ref:I,className:"page-tab"},(!!a||R)&&l.default.createElement(w.TabDrop,{ref:B}),l.default.createElement(w.PageTab,{ref:V,className:(0,h.default)((null==r?void 0:r.uid)===t.uid&&"active",E&&"errors",D&&"can-drop",k&&"is-editing",R&&"is-dragging"),style:N,onClick:function(){C(!1),i(d.contextActions.setPage(t.uid))},onDoubleClick:function(){return C(!0)}},k?l.default.createElement(w.Input,{type:"text",ref:j,autoFocus:!0,className:"text small",placeholder:t.label,defaultValue:t.label,onKeyUp:function(e){"Enter"===e.key&&(z(),C(!1)),"Escape"===e.key&&C(!1)}}):l.default.createElement("span",null,t.label),o>1&&l.default.createElement(w.RemoveTabButton,{onClick:function(e){e.stopPropagation(),confirm((0,g.default)("Are you sure?"))&&i((0,v.deletePage)(t))}},l.default.createElement(O.default,null))))}},21976:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderPageButtons=void 0;var o=r(n(2784)),i=r(n(76257)),a=n(49023);t.LoaderPageButtons=function(){return o.default.createElement(a.ButtonGroupWrapper,null,o.default.createElement(a.ButtonGroup,null),o.default.createElement(a.ButtonGroup,null,o.default.createElement("button",{className:"btn submit"},o.default.createElement(i.default,{width:50,baseColor:"#e12d39"}))))}},49023:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonGroup=t.ButtonGroupWrapper=void 0;var i,a,l,u=n(51362),c=o(n(55721));t.ButtonGroupWrapper=c.default.div(i||(i=r(["\n display: flex;\n justify-content: space-between;\n\n padding: "," ",";\n\n border: 1px solid transparent;\n border-radius: ",";\n\n cursor: pointer;\n\n transition:\n border-color 0.2s ease-out,\n background-color 0.2s ease-out;\n\n &.active {\n border: 1px dashed #5782ef;\n }\n\n &:hover {\n background: #f3f7fd;\n\n &:not(.active) {\n border: 1px solid #cdd8e4;\n }\n }\n"],["\n display: flex;\n justify-content: space-between;\n\n padding: "," ",";\n\n border: 1px solid transparent;\n border-radius: ",";\n\n cursor: pointer;\n\n transition:\n border-color 0.2s ease-out,\n background-color 0.2s ease-out;\n\n &.active {\n border: 1px dashed #5782ef;\n }\n\n &:hover {\n background: #f3f7fd;\n\n &:not(.active) {\n border: 1px solid #cdd8e4;\n }\n }\n"])),u.spacings.sm,u.spacings.md,u.borderRadius.md),t.ButtonGroup=c.default.div(a||(a=r(["\n display: flex;\n gap: ",";\n"],["\n display: flex;\n gap: ",";\n"])),u.spacings.md),t.Button=c.default.button(l||(l=r([""],[""])))},65462:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0})):t}),[e])}},94657:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseFields=void 0;var o=r(n(2784)),i=n(27562),a=n(15443),l=r(n(2072)),u=n(51044),c=n(50417),d=n(36985),s=n(55383),f=(0,l.default)("Field Types");t.BaseFields=function(){var e=(0,d.useSelectSearchedFields)(),t=(0,a.useFetchFieldTypes)({select:e}),n=t.data,r=t.isFetching,l=t.isError,p=t.error;return!n&&r?o.default.createElement(c.LoaderFieldGroup,{words:[50,70],items:16}):l?o.default.createElement(i.ErrorBlock,null,p.message):n.length?o.default.createElement(u.FieldGroup,{title:f},n.map((function(e){return o.default.createElement(s.FieldItem,{key:e.typeClass,fieldType:e})}))):null}},58363:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useBaseFieldDrag=void 0;var r=n(2784),o=n(8134),i=n(35653),a=n(37430);t.useBaseFieldDrag=function(e){var t=(0,a.useDragContext)(),n=t.dragOn,l=t.dragOff,u=(0,o.useDrag)((function(){return{type:i.Drag.FieldType,collect:function(e){return{isDragging:e.isDragging()}},item:{type:i.Drag.FieldType,data:e}}})),c=u[0].isDragging,d=u[1];return(0,r.useEffect)((function(){c?n(i.Drag.FieldType):l()}),[c]),{ref:d}}},55383:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldItem=void 0;var o=r(n(2784)),i=n(36450),a=n(59305),l=n(20890),u=n(58363);t.FieldItem=function(e){var t=e.fieldType,n=t.icon,r=t.name,c=(0,i.useAppDispatch)(),d=(0,u.useBaseFieldDrag)(t).ref;return o.default.createElement(l.Field,{icon:n,label:r,onClick:function(){c(a.fieldThunks.move.newField.newRow({fieldType:t}))},dragRef:d})}},12379:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteFields=void 0;var o=r(n(2784)),i=n(27562),a=n(87087),l=r(n(2072)),u=n(51044),c=n(50417),d=n(36985),s=n(17454),f=r(n(24944)),p=n(19073),v=(0,l.default)("Favorites");t.FavoriteFields=function(){var e=(0,d.useSelectSearchedFavorites)(),t=(0,a.useFetchFavorites)({select:e}),n=t.data,r=t.isFetching,m=t.isError,h=t.error,g=(0,s.useCreateModal)();return!n&&r?o.default.createElement(c.LoaderFieldGroup,{words:[60],items:2}):m?o.default.createElement(i.ErrorBlock,null,h.message):n.length?o.default.createElement(u.FieldGroup,{title:v,button:{icon:o.default.createElement(f.default,null),title:(0,l.default)("Edit Favorites"),onClick:g}},n.map((function(e){return o.default.createElement(p.FieldItem,{key:e.uid,favorite:e})}))):null}},37699:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneFieldTypeFromFavorite=void 0;var o=r(n(9907));t.cloneFieldTypeFromFavorite=function(e,t){var n=(0,o.default)(t);return Object.entries(e.properties).map((function(e){var t,r=e[0],o=e[1],i=null===(t=null==n?void 0:n.properties)||void 0===t?void 0:t.find((function(e){return e.handle===r}));i&&(i.value=o)})),n}},19073:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldItem=void 0;var o=r(n(2784)),i=n(36450),a=n(59305),l=n(15443),u=n(20890),c=n(58363),d=n(37699);t.FieldItem=function(e){var t=e.favorite,n=t.typeClass,r=t.label,s=(0,l.useFieldType)(n),f=(0,d.cloneFieldTypeFromFavorite)(t,s),p=(0,i.useAppDispatch)(),v=(0,c.useBaseFieldDrag)(f).ref;if(!s)return null;var m=s.icon;return o.default.createElement(u.Field,{icon:m,label:r,onClick:function(){p(a.fieldThunks.move.newField.newRow({fieldType:f}))},dragRef:v})}},59348:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteFieldComponent=void 0;var o=r(n(2784)),i=n(94774),a=n(27487);t.FavoriteFieldComponent=function(e){var t=e.property,n=e.siblingProperties,r=e.state,l=e.errors,u=e.updateValueCallback,c=(0,a.useValueUpdateGenerator)(n,r,u);return o.default.createElement(i.FormComponent,{value:(null==r?void 0:r[t.handle])||"",property:t,updateValue:c(t),errors:l,context:{properties:r}})}},91768:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoritesEditor=void 0;var o=r(n(2784)),i=n(79857),a=n(59285),l=n(85227),u=n(77274),c=n(15443),d=n(59348);t.FavoritesEditor=function(e){var t=e.field,n=e.errors,r=e.values,s=e.updateValueCallback,f=(0,c.useFetchFieldPropertySections)().data,p=(0,c.useFieldType)(null==t?void 0:t.typeClass);if(!t||!p||!f)return null;var v=[];return f.sort((function(e,t){return e.order-t.order})).forEach((function(e){var t=e.handle,i=e.label,a=e.icon,l=p.properties.filter(function(e){return function(t){return t.section===e}}(t));l.length&&v.push(o.default.createElement(u.SectionBlock,{label:i,icon:a,key:t},l.map((function(e){return o.default.createElement(d.FavoriteFieldComponent,{key:e.handle,errors:null==n?void 0:n[e.handle],state:r,siblingProperties:p.properties,property:e,updateValueCallback:s})}))))})),o.default.createElement(o.default.Fragment,null,o.default.createElement(l.Title,null,o.default.createElement(l.Icon,{dangerouslySetInnerHTML:{__html:p.icon}}),o.default.createElement("span",null,(null==r?void 0:r.label)||p.name)),o.default.createElement(i.RenderContextProvider,{size:"small"},o.default.createElement(a.SectionWrapper,null,v)))}},41407:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteListItem=void 0;var l=i(n(2784)),u=n(54509),c=n(23934),d=n(15443),s=a(n(26457)),f=n(52271);t.FavoriteListItem=function(e){var t=e.favorite,n=e.label,r=e.errors,o=e.isActive,i=e.onClick,a=e.onDelete,p=(0,l.useRef)(null),v=(0,c.useHover)(p),m=(0,d.useFieldType)(t.typeClass);if(!m)return null;var h=void 0!==r&&r.length;return l.default.createElement(f.FieldListItem,{key:t.id,ref:p,onClick:i,className:(0,s.default)(o&&"active",h&&"errors")},l.default.createElement(f.Icon,{dangerouslySetInnerHTML:{__html:m.icon}}),l.default.createElement("span",null,n),l.default.createElement(u.RemoveButton,{active:v,onClick:a}))}},52271:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteButton=t.Icon=t.FieldListItem=t.FieldList=t.FavoritesEditorWrapper=t.FavoritesWrapper=void 0;var i=n(85227),a=n(71485),l=n(80159),u=n(51362),c=o(n(55721));t.FavoritesWrapper=c.default.div(d||(d=r(["\n display: flex;\n justify-content: space-between;\n\n height: 600px;\n"],["\n display: flex;\n justify-content: space-between;\n\n height: 600px;\n"])));var d,s,f,p,v,m;t.FavoritesEditorWrapper=c.default.div(s||(s=r(["\n flex: 1;\n\n height: 100%;\n padding: 0 ",";\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n\n "," {\n padding-left: 0;\n font-size: 18px;\n\n "," {\n width: ","px;\n height: ","px;\n\n svg {\n max-width: ","px;\n max-height: ","px;\n }\n }\n }\n\n "," {\n &:after {\n background-color: white;\n }\n }\n"],["\n flex: 1;\n\n height: 100%;\n padding: 0 ",";\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n\n "," {\n padding-left: 0;\n font-size: 18px;\n\n "," {\n width: ","px;\n height: ","px;\n\n svg {\n max-width: ","px;\n max-height: ","px;\n }\n }\n }\n\n "," {\n &:after {\n background-color: white;\n }\n }\n"])),u.spacings.lg,l.scrollBar,i.Title,i.Icon,22,22,22,22,a.SectionBlockContainer),t.FieldList=c.default.ul(f||(f=r(["\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n padding: ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n\n background: ",";\n box-shadow: ",";\n\n ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n padding: ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n\n background: ",";\n box-shadow: ",";\n\n ",";\n"])),u.spacings.sm,u.colors.gray050,u.shadows.right,l.scrollBar),t.FieldListItem=c.default.li(p||(p=r(["\n cursor: pointer;\n position: relative;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n\n width: 250px;\n padding: "," "," "," ",";\n\n border: 1px solid transparent;\n border-radius: ",";\n font-size: 13px;\n\n user-select: none;\n transition: all 0.2s ease-in-out;\n\n > span {\n flex: 1;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &.active {\n background: ",";\n color: ",";\n fill: currentColor;\n }\n\n &.errors {\n color: ",";\n fill: currentColor;\n\n ",";\n }\n"],["\n cursor: pointer;\n position: relative;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n\n width: 250px;\n padding: "," "," "," ",";\n\n border: 1px solid transparent;\n border-radius: ",";\n font-size: 13px;\n\n user-select: none;\n transition: all 0.2s ease-in-out;\n\n > span {\n flex: 1;\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &.active {\n background: ",";\n color: ",";\n fill: currentColor;\n }\n\n &.errors {\n color: ",";\n fill: currentColor;\n\n ",";\n }\n"])),u.spacings.xs,u.spacings.xs,u.spacings.xs,u.spacings.md,u.borderRadius.lg,u.colors.gray200,u.colors.gray500,u.colors.white,u.colors.error,l.errorAlert),t.Icon=c.default.div(v||(v=r(["\n font-size: 10px;\n\n &,\n svg {\n height: 20px;\n width: 20px;\n }\n"],["\n font-size: 10px;\n\n &,\n svg {\n height: 20px;\n width: 20px;\n }\n"]))),t.DeleteButton=c.default.button(m||(m=r(["\n position: absolute;\n top: 0;\n right: 0;\n"],["\n position: absolute;\n top: 0;\n right: 0;\n"])))},53318:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0,g=(0,m.useFormBlockAnimations)(a);return t.fields.length?l.default.createElement(h.FormBlockWrapper,{className:(0,s.default)(a&&"open")},l.default.createElement(h.FormTitle,{onClick:function(){return o(!r)}},t.name,l.default.createElement(h.ExpandedState,null,l.default.createElement(p.default,null))),l.default.createElement(h.FieldListContainer,{style:g},l.default.createElement(f.List,null,t.fields.map((function(e){return l.default.createElement(v.FieldItem,{key:e.uid,field:e})}))))):null}},1801:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormFieldsWrapper=void 0;var i,a=n(51362),l=o(n(55721));t.FormFieldsWrapper=l.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),a.spacings.sm)},97708:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormsFields=void 0;var o=r(n(2784)),i=n(86993),a=n(27562),l=n(35382),u=n(64725),c=r(n(2072)),d=n(21218),s=n(36985),f=n(82183),p=n(1801);t.FormsFields=function(){var e=(0,i.useSelector)(l.formSelectors.current).uid,t=(0,s.useSelectSearchedForms)(),n=(0,u.useFetchForms)({select:t}),r=n.data,v=n.isFetching,m=n.isError,h=n.error;if(!r&&v)return null;if(m)return o.default.createElement(a.ErrorBlock,null,h.message);if(!r.length)return null;var g=r.filter((function(t){return t.uid!==e}));return g.length?o.default.createElement(p.FormFieldsWrapper,null,o.default.createElement(d.GroupTitle,null,(0,c.default)("Fields from other Forms")),g.map((function(e){return o.default.createElement(f.FormBlock,{key:e.uid,form:e})}))):null}},88786:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useFieldSearch=void 0;var r=n(2784),o=n(86993),i=n(96636),a=n(88901);t.useFieldSearch=function(){var e=(0,o.useDispatch)(),t=(0,r.useState)(""),n=t[0],l=t[1],u=(0,a.useDebounce)(n,1e3);return(0,r.useEffect)((function(){e(i.searchActions.update({type:i.Search.Fields,query:u}))}),[u]),[n,l]}},82866:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderSearch=void 0;var o=r(n(2784)),i=r(n(2072)),a=n(64e3),l=r(n(17218));t.LoaderSearch=function(){return o.default.createElement(a.Wrapper,null,o.default.createElement(a.SearchBlock,null,o.default.createElement(a.SearchIcon,null,o.default.createElement(l.default,null)),o.default.createElement(a.SearchBar,{disabled:!0,className:"fullwidth text",placeholder:(0,i.default)("Search")})))}},64e3:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SearchIcon=t.IconStyle=t.SearchBar=t.SearchBlock=t.Wrapper=void 0;var l=n(51362),u=a(n(55721));t.Wrapper=u.default.div(c||(c=r(["\n position: relative;\n z-index: 1;\n\n margin-bottom: ",";\n"],["\n position: relative;\n z-index: 1;\n\n margin-bottom: ",";\n"])),l.spacings.lg),t.SearchBlock=u.default.div(d||(d=r(["\n display: flex;\n"],["\n display: flex;\n"]))),t.SearchBar=u.default.input(s||(s=r(["\n padding: 6px 38px 6px 30px !important;\n\n border-radius: 5px;\n\n &::placeholder {\n font-style: italic;\n color: ",";\n }\n"],["\n padding: 6px 38px 6px 30px !important;\n\n border-radius: 5px;\n\n &::placeholder {\n font-style: italic;\n color: ",";\n }\n"])),l.colors.gray200);var c,d,s,f,p,v="14px";t.IconStyle=(0,u.css)(f||(f=r(["\n position: absolute;\n top: 1px;\n bottom: 1px;\n z-index: 2;\n\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n padding: 0 8px;\n\n box-sizing: border-box;\n user-select: none;\n\n > svg {\n width: ",";\n height: ",";\n }\n"],["\n position: absolute;\n top: 1px;\n bottom: 1px;\n z-index: 2;\n\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n padding: 0 8px;\n\n box-sizing: border-box;\n user-select: none;\n\n > svg {\n width: ",";\n height: ",";\n }\n"])),v,v),t.SearchIcon=u.default.div(p||(p=r(["\n left: 1px;\n\n ","\n\n color: ",";\n"],["\n left: 1px;\n\n ","\n\n color: ",";\n"])),t.IconStyle,l.colors.gray400)},7002:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Search=void 0;var o=r(n(2784)),i=r(n(2072)),a=n(88786),l=n(64e3),u=r(n(17218));t.Search=function(){var e=(0,a.useFieldSearch)(),t=e[0],n=e[1];return o.default.createElement(l.Wrapper,null,o.default.createElement(l.SearchBlock,null,o.default.createElement(l.SearchIcon,null,o.default.createElement(u.default,null)),o.default.createElement(l.SearchBar,{type:"text",placeholder:(0,i.default)("Search"),className:"fullwidth text",value:t,onChange:function(e){n(e.target.value)}})))}},50202:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderFormLayout=void 0;var o=r(n(2784)),i=n(95802),a=n(33810);t.LoaderFormLayout=function(){return o.default.createElement(o.default.Fragment,null,o.default.createElement(a.LoaderFieldList,null),o.default.createElement(i.LoaderFieldLayout,null))}},28733:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Grid=void 0;var i,a=o(n(55721));t.Grid=a.default.div(i||(i=r(["\n position: relative;\n display: flex;\n gap: 0;\n\n height: 100%;\n overflow: hidden;\n\n background: #fff;\n"],["\n position: relative;\n display: flex;\n gap: 0;\n\n height: 100%;\n overflow: hidden;\n\n background: #fff;\n"])))},89888:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutEditor=void 0;var o=r(n(2784)),i=n(76034),a=n(11455),l=n(32165),u=r(n(2072)),c=n(62873),d=n(88041),s=n(84054),f=n(37430),p=n(28733);t.LayoutEditor=function(){var e=(0,i.useResolvedPath)("");return o.default.createElement(f.DragContextProvider,null,o.default.createElement(a.Breadcrumb,{label:(0,u.default)("Layout"),url:e.pathname}),o.default.createElement(p.Grid,null,o.default.createElement(l.Sidebar,{$noPadding:!0},o.default.createElement(s.PropertyEditor,null),o.default.createElement(d.FieldList,null)),o.default.createElement(c.FieldLayout,null)))}},76305:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteButton=void 0;var l=i(n(2784)),u=n(79066),c=n(31070),d=n(9726),s=n(15443),f=a(n(26457)),p=a(n(33424)),v=a(n(19772)),m=n(93748),h=n(91123),g=n(27312);t.FavoriteButton=function(e){var t=e.field,n=(0,s.useFieldType)(null==t?void 0:t.typeClass),r=(0,h.useFavoritesMutation)(),o=(0,l.useState)(!1),i=o[0],a=o[1],b=(0,l.useState)(!1),y=b[0],_=b[1];(0,l.useEffect)((function(){a(!1),_(!1),r.reset()}),[null==t?void 0:t.uid]);var x=(0,u.useSpring)({to:{opacity:i?1:0,scale:i?1:1.1,rotate:i?0:-10},config:{tension:700}}),w=(0,u.useSpring)({to:{scale:y?1.2:1},config:{tension:600,mass:3}}),O=(0,d.useClickOutside)({callback:function(){a(!1),_(!1)},isEnabled:i});return(0,c.useEscapeStack)((function(){a(!1),_(!1)}),i),(null==t?void 0:t.uid)?l.default.createElement(g.FavoriteButtonWrapper,{className:(0,f.default)(i&&"active"),ref:O},l.default.createElement(g.Button,{style:w,onClick:function(){return a(!i)},onMouseOver:function(){return _(!0)},onMouseOut:function(){return _(!1)}},r.isSuccess&&l.default.createElement(p.default,null),!r.isSuccess&&l.default.createElement(v.default,null)),l.default.createElement(g.PopUpWrapper,{style:x},l.default.createElement(g.IconBox,null),l.default.createElement(g.InfoBlock,null,l.default.createElement(m.FavoriteForm,{field:t,type:n,mutation:r})))):null}},69588:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonContainer=t.FavoriteFormWrapper=void 0;var i,a,l=n(51362),u=o(n(55721));t.FavoriteFormWrapper=u.default.div(i||(i=r(["\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n gap: ",";\n"])),l.spacings.lg),t.ButtonContainer=u.default.div(a||(a=r(["\n display: flex;\n justify-content: center;\n"],["\n display: flex;\n justify-content: center;\n"])))},93748:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteForm=void 0;var l=i(n(2784)),u=n(12830),c=n(15738),d=a(n(60556)),s=n(57092),f=n(83287),p=a(n(26457)),v=a(n(2072)),m=n(69588);t.FavoriteForm=function(e){var t,n,r=e.field,o=e.type,i=e.mutation,a=(0,l.useState)(""),h=a[0],g=a[1];return(0,l.useEffect)((function(){g(r.properties.label||(null==o?void 0:o.name)),i.reset()}),[r.uid]),l.default.createElement(m.FavoriteFormWrapper,null,l.default.createElement(c.ControlWrapper,null,l.default.createElement(d.default,{property:{label:(0,v.default)("Create a favorite"),handle:null===(t=r.properties)||void 0===t?void 0:t.handle,flags:[],placeholder:null===(n=r.properties)||void 0===n?void 0:n.label,type:f.PropertyType.String},value:h,updateValue:function(e){return g(e)}})),l.default.createElement(m.ButtonContainer,null,l.default.createElement("button",{onClick:function(){i.mutate({label:h,field:r,type:o})},disabled:i.isLoading,className:(0,p.default)("btn fullwidth",!i.isSuccess&&"submit",i.isLoading&&"disabled")},l.default.createElement(s.LoadingText,{spinner:!0,loading:i.isLoading,loadingText:"Saving..."},(0,v.default)(i.isSuccess?"Saved!":"Favorite")))),i.isError&&l.default.createElement(u.ApiErrorsBlock,{category:"favorites",handle:"name",error:i.error}))}},91123:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFavoritesDeleteMutation=t.useFavoritesUpdateMutation=t.useFavoritesMutation=void 0;var o=n(87087),i=n(79634),a=n(79634),l=r(n(60014)),u=function(e){var t=e.label,n=e.field,r=e.type,o={label:t,properties:n.properties,typeClass:r.typeClass};return l.default.post("/api/fields/favorites",o)};t.useFavoritesMutation=function(){var e=(0,i.useQueryClient)();return(0,a.useMutation)(u,{onSuccess:function(){e.invalidateQueries({queryKey:o.QKFavorites.all})}})};t.useFavoritesUpdateMutation=function(e){void 0===e&&(e={});var t=(0,i.useQueryClient)(),n=null==e?void 0:e.onSuccess;return e.onSuccess=function(e,r,i){n&&n(e,r,i),t.invalidateQueries(o.QKFavorites.all)},(0,a.useMutation)((function(e){return l.default.put("/api/fields/favorites",e)}),e)};t.useFavoritesDeleteMutation=function(e){void 0===e&&(e={});var t=(0,i.useQueryClient)(),n=null==e?void 0:e.onSuccess;return e.onSuccess=function(e,r,i){n&&n(e,r,i);var a=r;t.setQueryData(o.QKFavorites.all,(function(e){return e.filter((function(e){return e.id!==a}))}))},(0,a.useMutation)((function(e){return l.default.delete("/api/fields/favorites/".concat(e))}),e)}},27312:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FavoriteButtonWrapper=t.Button=t.InfoBlock=t.IconBox=t.PopUpWrapper=void 0;var i,a,l,u,c,d=n(79066),s=n(51362),f=o(n(55721));t.PopUpWrapper=(0,f.default)(d.animated.div)(i||(i=r(["\n position: absolute;\n top: 24px;\n right: -16px;\n\n transform-origin: 90% -20%;\n"],["\n position: absolute;\n top: 24px;\n right: -16px;\n\n transform-origin: 90% -20%;\n"]))),t.IconBox=f.default.div(a||(a=r(["\n position: absolute;\n top: -30px;\n right: 10px;\n z-index: 2;\n\n display: flex;\n justify-content: center;\n align-content: center;\n\n width: 32px;\n height: 32px;\n\n padding: 5px;\n\n background: ",";\n\n border-style: solid;\n border-width: 1px;\n border-color: ",";\n border-bottom-color: transparent;\n border-radius: "," "," 0 0;\n\n transform-origin: center bottom;\n"],["\n position: absolute;\n top: -30px;\n right: 10px;\n z-index: 2;\n\n display: flex;\n justify-content: center;\n align-content: center;\n\n width: 32px;\n height: 32px;\n\n padding: 5px;\n\n background: ",";\n\n border-style: solid;\n border-width: 1px;\n border-color: ",";\n border-bottom-color: transparent;\n border-radius: "," "," 0 0;\n\n transform-origin: center bottom;\n"])),s.colors.gray050,s.colors.barelyVisible,s.borderRadius.md,s.borderRadius.md),t.InfoBlock=f.default.div(l||(l=r(["\n position: relative;\n z-index: 1;\n\n width: 240px;\n padding: ",";\n\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n box-shadow: 4px 12px 8px rgb(205 216 228 / 80%);\n"],["\n position: relative;\n z-index: 1;\n\n width: 240px;\n padding: ",";\n\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n box-shadow: 4px 12px 8px rgb(205 216 228 / 80%);\n"])),s.spacings.lg,s.colors.gray050,s.colors.barelyVisible,s.borderRadius.md),t.Button=(0,f.default)(d.animated.button)(u||(u=r(["\n position: relative;\n z-index: 5;\n\n width: 20px;\n height: 20px;\n\n svg {\n fill: ",";\n }\n"],["\n position: relative;\n z-index: 5;\n\n width: 20px;\n height: 20px;\n\n svg {\n fill: ",";\n }\n"])),s.colors.barelyVisible),t.FavoriteButtonWrapper=f.default.div(c||(c=r(["\n position: absolute;\n top: 17px;\n right: 40px;\n z-index: 3;\n\n background: none;\n border: none;\n\n display: flex;\n justify-content: center;\n align-content: center;\n\n &:not(.active) {\n "," {\n pointer-events: none;\n }\n }\n"],["\n position: absolute;\n top: 17px;\n right: 40px;\n z-index: 3;\n\n background: none;\n border: none;\n\n display: flex;\n justify-content: center;\n align-content: center;\n\n &:not(.active) {\n "," {\n pointer-events: none;\n }\n }\n"])),t.PopUpWrapper)},60440:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldComponent=void 0;var o=r(n(2784)),i=n(86993),a=n(94774),l=n(36450),u=n(27487),c=n(9202),d=n(4165),s=n(15443);t.FieldComponent=function(e){var t,n,r,f=e.property,p=e.field,v=(0,l.useAppDispatch)(),m=(0,s.useFieldType)(p.typeClass),h=(null===(t=(0,i.useSelector)(d.fieldSelectors.one(p.uid)))||void 0===t?void 0:t.properties)||{},g=(0,u.useValueUpdateGenerator)(m.properties,h,(function(e,t){v(c.fieldActions.edit({uid:p.uid,handle:e,value:t}))})),b=null===(n=p.properties)||void 0===n?void 0:n[f.handle];return o.default.createElement(a.FormComponent,{value:b,property:f,updateValue:g(f),errors:null===(r=p.errors)||void 0===r?void 0:r[f.handle],context:p})}},69707:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldPropertiesWrapper=void 0;var i,a=n(51362),l=o(n(55721));t.FieldPropertiesWrapper=l.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n\n height: 100%;\n background: ",";\n"],["\n display: flex;\n flex-direction: column;\n\n height: 100%;\n background: ",";\n"])),a.colors.gray050)},77309:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldProperties=void 0;var o=r(n(2784)),i=r(n(76257)),a=n(86993),l=n(94774),u=n(36450),c=n(8697),d=n(4165),s=n(59305),f=r(n(86022)),p=n(15443),v=n(83287),m=r(n(2072)),h=n(85227),g=n(77274),b=n(71485),y=n(76305),_=n(60440),x=n(69707);t.FieldProperties=function(e){var t=e.uid,n=(0,u.useAppDispatch)(),r=(0,p.useFetchFieldPropertySections)(),w=r.data,O=r.isFetching,E=(0,p.useFetchFieldTypes)().data,P=(0,a.useSelector)(d.fieldSelectors.one(t)),j=(0,p.useFieldType)(null==P?void 0:P.typeClass),M=(0,p.useFieldTypeSearch)();if(!P||!j)return o.default.createElement(x.FieldPropertiesWrapper,null);if(!w&&O)return o.default.createElement(x.FieldPropertiesWrapper,null,o.default.createElement(h.Title,null,o.default.createElement(h.Icon,{dangerouslySetInnerHTML:{__html:j.icon}}),o.default.createElement("span",null,j.name)),o.default.createElement(b.SectionWrapper,null,o.default.createElement(i.default,null)));var k=[];return w.sort((function(e,t){return e.order-t.order})).forEach((function(e){var t=e.handle,r=e.label,i=e.icon,a=j.properties.filter(function(e){return function(t){return t.section===e}}(t));a.length&&k.push(o.default.createElement(g.SectionBlock,{label:r,icon:i,key:t},a.map((function(e){return o.default.createElement(_.FieldComponent,{key:e.handle,field:P,property:e})})),"advanced"===t&&o.default.createElement(l.FormComponent,{value:P.typeClass,property:{type:v.PropertyType.Select,handle:"typeClass",label:(0,m.default)("Field type"),instructions:(0,m.default)("Change the type of this field."),options:E.map((function(e){return{label:e.name,value:e.typeClass}}))},updateValue:function(e){confirm((0,m.default)("Are you sure? You might potentially lose important data."))&&n(s.fieldThunks.change.type(P,M(e)))}})))})),o.default.createElement(x.FieldPropertiesWrapper,null,o.default.createElement(h.CloseLink,{onClick:function(){return n(c.contextActions.unfocus())}},o.default.createElement(f.default,null)),o.default.createElement(y.FavoriteButton,{field:P}),o.default.createElement(h.Title,null,o.default.createElement(h.Icon,{dangerouslySetInnerHTML:{__html:j.icon}}),o.default.createElement("span",null,j.name)),o.default.createElement(b.SectionWrapper,null,k))}},85189:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageComponent=void 0;var o=r(n(2784)),i=n(94774),a=n(36450),l=n(97240);t.PageComponent=function(e){var t,n=e.property,r=e.page,u=(0,a.useAppDispatch)(),c=null===(t=r.buttons)||void 0===t?void 0:t[n.handle];return o.default.createElement(i.FormComponent,{value:c,property:n,updateValue:function(e){u(l.pageActions.editButtons({uid:r.uid,key:n.handle,value:e}))},context:r})}},85747:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PagePropertiesWrapper=void 0;var i,a=n(51362),l=o(n(55721));t.PagePropertiesWrapper=l.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n\n height: 100%;\n background: ",";\n"],["\n display: flex;\n flex-direction: column;\n\n height: 100%;\n background: ",";\n"])),a.colors.gray050)},94362:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageProperties=void 0;var o=r(n(2784)),i=r(n(76257)),a=n(86993),l=n(36450),u=n(8697),c=n(60719),d=r(n(86022)),s=n(56790),f=n(85227),p=n(77274),v=n(71485),m=n(85189),h=n(85747);t.PageProperties=function(e){var t=e.uid,n=(0,l.useAppDispatch)(),r=(0,a.useSelector)(c.pageSelecors.one(t)),g=(0,s.useFetchPageButtonType)(),b=g.data,y=g.isFetching;if(!b&&y)return o.default.createElement(h.PagePropertiesWrapper,null,o.default.createElement(f.CloseLink,{onClick:function(){return n(u.contextActions.unfocus())}},o.default.createElement(d.default,null)),o.default.createElement(f.Title,null,o.default.createElement("span",null,r.label)),o.default.createElement(v.SectionWrapper,{style:{paddingTop:20}},o.default.createElement(i.default,{height:30}),o.default.createElement(i.default,{height:30}),o.default.createElement(i.default,{height:30})));if(!r)return null;var _=[];return b.sections.forEach((function(e){var t=e.handle,n=e.label,i=e.icon,a=b.properties.filter(function(e){return function(t){return t.section===e}}(t));a.length&&_.push(o.default.createElement(p.SectionBlock,{label:n,icon:i,key:t},a.map((function(e){return o.default.createElement(m.PageComponent,{key:e.handle,page:r,property:e})}))))})),o.default.createElement(h.PagePropertiesWrapper,null,o.default.createElement(f.CloseLink,{onClick:function(){return n(u.contextActions.unfocus())}},o.default.createElement(d.default,null)),o.default.createElement(f.Title,null,o.default.createElement("span",null,r.label)),o.default.createElement(v.SectionWrapper,null,_))}},85227:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=t.Title=t.CloseLink=t.AnimatedBlock=t.PropertyEditorWrapper=void 0;var i,a,l,u,c,d=n(79066),s=n(51362),f=o(n(55721));t.PropertyEditorWrapper=f.default.div(i||(i=r(["\n position: absolute;\n\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n\n z-index: 2;\n\n overflow: hidden;\n border-right: 1px solid rgb(154 165 177 / 25%);\n\n pointer-events: ",";\n background: ",";\n\n transition: background-color 0.2s ease-in-out;\n"],["\n position: absolute;\n\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n\n z-index: 2;\n\n overflow: hidden;\n border-right: 1px solid rgb(154 165 177 / 25%);\n\n pointer-events: ",";\n background: ",";\n\n transition: background-color 0.2s ease-in-out;\n"])),(function(e){return e.$active?"auto":"none"}),(function(e){return e.$active?s.colors.gray050:"transparent"})),t.AnimatedBlock=(0,f.default)(d.animated.div)(a||(a=r(["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n\n z-index: 2;\n"],["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n\n z-index: 2;\n"]))),t.CloseLink=f.default.a(l||(l=r(["\n position: absolute;\n right: 10px;\n top: 17px;\n\n z-index: 5;\n\n display: block;\n width: 20px;\n height: 20px;\n"],["\n position: absolute;\n right: 10px;\n top: 17px;\n\n z-index: 5;\n\n display: block;\n width: 20px;\n height: 20px;\n"]))),t.Title=f.default.h3(u||(u=r(["\n position: relative;\n\n display: flex;\n justify-content: flex-start;\n align-items: end;\n gap: ",";\n\n margin: 0;\n padding: ",";\n\n font-size: 16px;\n box-shadow: ",";\n\n > span {\n display: block;\n }\n"],["\n position: relative;\n\n display: flex;\n justify-content: flex-start;\n align-items: end;\n gap: ",";\n\n margin: 0;\n padding: ",";\n\n font-size: 16px;\n box-shadow: ",";\n\n > span {\n display: block;\n }\n"])),s.spacings.sm,s.spacings.lg,s.shadows.bottom),t.Icon=f.default.div(c||(c=r(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 20px;\n height: 20px;\n\n svg {\n max-width: 20px;\n max-height: 20px;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 20px;\n height: 20px;\n\n svg {\n max-width: 20px;\n max-height: 20px;\n }\n"])))},84054:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyEditor=void 0;var o=r(n(2784)),i=n(86993),a=n(79066),l=n(90163),u=n(79857),c=n(36450),d=n(8697),s=n(72671),f=n(31070),p=n(9726),v=n(77309),m=n(94362),h=n(85227);t.PropertyEditor=function(){var e=(0,c.useAppDispatch)(),t=(0,i.useSelector)(s.contextSelectors.focus),n=t.active,r=t.type;(0,f.useEscapeStack)((function(){return e(d.contextActions.unfocus())}),n);var g=(0,p.useClickOutside)({callback:function(){e(d.contextActions.unfocus())},isEnabled:n,excludeClassNames:["field-layout","page-buttons","page-tab","save-button","main-tabs","editable-content","dropdown-rollout"]}),b=(0,a.useTransition)(n?[t]:null,{from:{transform:"translate3d(100%, 0, 0)",opacity:1},enter:{transform:"translate3d(0%, 0, 0)",opacity:1,zIndex:2},leave:{transform:"translate3d(-100%, 0, 0)"},config:{tension:500,friction:50}});return o.default.createElement(u.RenderContextProvider,{size:"small"},o.default.createElement(h.PropertyEditorWrapper,{$active:n,ref:g},o.default.createElement(l.ErrorBoundary,{message:'Could not load property editor for "'.concat(r,'" type')},b((function(e,t){return o.default.createElement(h.AnimatedBlock,{style:e},!!t&&"field"===t.type&&o.default.createElement(v.FieldProperties,{uid:t.uid}),!!t&&"page"===t.type&&o.default.createElement(m.PageProperties,{uid:t.uid}))})))))}},71485:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SectionBlockWrapper=t.SectionBlockContainer=t.SectionBlockIcon=t.SectionWrapper=void 0;var i,a,l,u,c=n(80159),d=n(51362),s=o(n(55721)),f=n(85227);t.SectionWrapper=s.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n\n padding: 0 "," ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n ",";\n"],["\n display: flex;\n flex-direction: column;\n\n padding: 0 "," ",";\n\n overflow-y: auto;\n overflow-x: hidden;\n ",";\n"])),d.spacings.lg,d.spacings.lg,c.scrollBar),t.SectionBlockIcon=(0,s.default)(f.Icon)(a||(a=r(["\n position: absolute;\n left: 2px;\n top: 12px;\n z-index: 1;\n\n width: 14px;\n height: 14px;\n\n fill: rgb(154 165 177 / 75%);\n"],["\n position: absolute;\n left: 2px;\n top: 12px;\n z-index: 1;\n\n width: 14px;\n height: 14px;\n\n fill: rgb(154 165 177 / 75%);\n"]))),t.SectionBlockContainer=s.default.section(l||(l=r(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n margin-top: ",";\n padding-top: ",";\n padding-bottom: ",";\n\n &:empty {\n display: none;\n\n & + "," {\n display: none;\n }\n }\n\n &:before {\n content: '';\n\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n\n display: block;\n height: 1px;\n\n margin: 0 -18px;\n\n box-shadow: ",";\n }\n\n &:after {\n content: attr(data-label);\n\n position: absolute;\n left: -5px;\n top: -7px;\n\n display: block;\n padding: 0 5px 0 26px;\n\n background-color: ",";\n\n ",";\n font-size: 11px;\n }\n"],["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n margin-top: ",";\n padding-top: ",";\n padding-bottom: ",";\n\n &:empty {\n display: none;\n\n & + "," {\n display: none;\n }\n }\n\n &:before {\n content: '';\n\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n\n display: block;\n height: 1px;\n\n margin: 0 -18px;\n\n box-shadow: ",";\n }\n\n &:after {\n content: attr(data-label);\n\n position: absolute;\n left: -5px;\n top: -7px;\n\n display: block;\n padding: 0 5px 0 26px;\n\n background-color: ",";\n\n ",";\n font-size: 11px;\n }\n"])),d.spacings.md,d.spacings.lg,d.spacings.lg,d.spacings.lg,t.SectionBlockIcon,d.shadows.bottom,d.colors.gray050,c.labelText),t.SectionBlockWrapper=s.default.div(u||(u=r(["\n position: relative;\n\n &:first-child {\n "," {\n margin-top: 0;\n\n &:before,\n &:after {\n display: none;\n }\n }\n\n "," {\n display: none;\n }\n }\n"],["\n position: relative;\n\n &:first-child {\n "," {\n margin-top: 0;\n\n &:before,\n &:after {\n display: none;\n }\n }\n\n "," {\n display: none;\n }\n }\n"])),t.SectionBlockContainer,t.SectionBlockIcon)},77274:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SectionBlock=void 0;var o=r(n(2784)),i=n(71485);t.SectionBlock=function(e){var t=e.label,n=e.icon,r=e.children;return o.default.createElement(i.SectionBlockWrapper,null,o.default.createElement(i.SectionBlockContainer,{"data-label":t},r),function(e){return e?"string"==typeof e?o.default.createElement(i.SectionBlockIcon,{dangerouslySetInnerHTML:{__html:e}}):o.default.createElement(i.SectionBlockIcon,null,e):null}(n))}},39977:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationsWrapper=void 0;var i,a=o(n(55721));t.NotificationsWrapper=a.default.div(i||(i=r(["\n display: flex;\n height: 100%;\n"],["\n display: flex;\n height: 100%;\n"])))},84085:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Notifications=void 0;var o=r(n(2784)),i=n(76034),a=n(11455),l=r(n(2072)),u=n(78177),c=n(39977);t.Notifications=function(){var e=(0,i.useResolvedPath)("");return o.default.createElement(c.NotificationsWrapper,null,o.default.createElement(a.Breadcrumb,{label:(0,l.default)("Notifications"),url:e.pathname}),o.default.createElement(u.List,null),o.default.createElement(i.Outlet,null))}},33255:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldComponent=void 0;var o=r(n(2784)),i=n(94774),a=n(36450),l=n(12163);t.FieldComponent=function(e){var t,n=e.notification,r=e.property,u=(0,a.useAppDispatch)(),c=n.uid,d=r.handle,s=null==n?void 0:n[r.handle];return o.default.createElement(i.FormComponent,{value:s,property:r,updateValue:function(e){u(l.notificationActions.modify({uid:c,key:d,value:e}))},errors:null===(t=n.errors)||void 0===t?void 0:t[r.handle],context:n})}},80407:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyEditor=t.Inline=void 0;var i=o(n(2784)),a=n(19002),l=n(51362),u=o(n(2072)),c=o(n(55721)),d=o(n(90622)),s=n(91326);t.Inline=c.default.div(f||(f=r(["\n display: flex;\n gap: ",";\n"],["\n display: flex;\n gap: ",";\n"])),l.spacings.md);var f;t.EmptyEditor=function(){return i.default.createElement(s.PropertyEditorWrapper,null,i.default.createElement(a.EmptyBlock,{title:(0,u.default)("No notifications found"),subtitle:(0,u.default)("To add a notification, use the sidebar on the left"),icon:i.default.createElement(d.default,null)}))}},13919:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingEditor=t.Inline=void 0;var i=o(n(2784)),a=o(n(76257)),l=n(91176),u=n(51362),c=o(n(55721)),d=n(91326);t.Inline=c.default.div(s||(s=r(["\n display: flex;\n gap: ",";\n"],["\n display: flex;\n gap: ",";\n"])),u.spacings.md);var s;t.LoadingEditor=function(){return i.default.createElement(d.PropertyEditorWrapper,null,i.default.createElement(l.ThemedSkeleton,null,i.default.createElement(a.default,{width:120,height:20}),i.default.createElement("br",null),i.default.createElement(a.default,{width:100,height:10}),i.default.createElement(a.default,{width:50,height:20}),i.default.createElement("br",null),i.default.createElement(a.default,{width:200,height:10}),i.default.createElement(a.default,{width:500,height:10}),i.default.createElement(a.default,{height:30}),i.default.createElement("br",null),i.default.createElement(a.default,{width:150,height:10}),i.default.createElement(a.default,{width:300,height:10}),i.default.createElement(a.default,{height:30})))}},91326:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsWrapper=t.PropertyEditorWrapper=void 0;var i,a,l=n(80159),u=n(51362),c=o(n(55721));t.PropertyEditorWrapper=c.default.div(i||(i=r(["\n position: relative;\n flex: 1;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n background: ",";\n padding: ",";\n\n overflow-y: auto;\n\n ",";\n"],["\n position: relative;\n flex: 1;\n\n display: flex;\n flex-direction: column;\n gap: ",";\n\n background: ",";\n padding: ",";\n\n overflow-y: auto;\n\n ",";\n"])),u.spacings.xl,u.colors.white,u.spacings.xl,l.scrollBar),t.SettingsWrapper=c.default.div(a||(a=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),u.spacings.md)},42820:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyEditor=void 0;var o=r(n(2784)),i=n(86993),a=n(76034),l=n(90022),u=n(74740),c=n(69397),d=n(33255),s=n(80407),f=n(13919),p=n(91326);t.PropertyEditor=function(){var e,t=(0,a.useParams)(),n=t.formId,r=t.uid,v=(0,u.useQueryNotificationTypes)().data,m=(0,u.useQueryFormNotifications)(n?Number(n):void 0),h=m.data,g=m.isFetching,b=(0,i.useSelector)(l.notificationSelectors.one(r));if(!h&&g)return o.default.createElement(f.LoadingEditor,null);if(!b)return o.default.createElement(s.EmptyEditor,null);var y=(null===(e=null==v?void 0:v.find((function(e){return e.className===b.className})))||void 0===e?void 0:e.properties)||[];return o.default.createElement(p.PropertyEditorWrapper,null,o.default.createElement(c.Remove,{notification:b}),o.default.createElement(p.SettingsWrapper,null,y.map((function(e){return o.default.createElement(d.FieldComponent,{key:e.handle,notification:b,property:e})}))))}},79811:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRemoveAnimation=void 0;var r=n(79066),o=n(51362);t.useRemoveAnimation=function(e){var t=e.hovering;return(0,r.useSpring)({opacity:1,background:t?o.colors.error:"transparent",color:t?"#fff":o.colors.gray300,scale:t?1.2:1,config:function(e){switch(e){case"background":case"color":return{tension:330,friction:20};default:return{tension:330,friction:15}}}})}},6325:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveButtonWrapper=void 0;var i,a=n(79066),l=o(n(55721));t.RemoveButtonWrapper=(0,l.default)(a.animated.button)(i||(i=r(["\n position: absolute;\n top: 15px;\n right: 20px;\n z-index: 2;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n border-radius: 50%;\n padding: 3px;\n\n svg {\n width: 20px;\n height: 20px;\n\n color: currentColor;\n }\n"],["\n position: absolute;\n top: 15px;\n right: 20px;\n z-index: 2;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n border-radius: 50%;\n padding: 3px;\n\n svg {\n width: 20px;\n height: 20px;\n\n color: currentColor;\n }\n"])))},69397:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Remove=void 0;var l=i(n(2784)),u=n(76034),c=n(36450),d=n(19007),s=a(n(11411)),f=n(79811),p=n(6325);t.Remove=function(e){var t=e.notification,n=(0,u.useNavigate)(),r=(0,c.useAppDispatch)(),o=(0,l.useState)(!1),i=o[0],a=o[1],v=(0,f.useRemoveAnimation)({hovering:i});return l.default.createElement(p.RemoveButtonWrapper,{style:v,onMouseEnter:function(){return a(!0)},onMouseLeave:function(){return a(!1)},onClick:function(e){e.stopPropagation(),r((0,d.removeNotification)(t)),n("..")}},l.default.createElement(s.default,null))}},19056:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Status=t.Name=t.Icon=t.Link=void 0;var i=n(76034),a=n(51362),l=o(n(55721));t.Link=(0,l.default)(i.NavLink)(u||(u=r(["\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border-radius: ",";\n\n color: ",";\n font-size: 12px;\n line-height: 12px;\n\n transition: background-color 0.2s ease-out;\n text-decoration: none;\n\n &.active {\n color: ",";\n background-color: ",";\n }\n\n &.active.inactive {\n .status-dot {\n border-color: ",";\n }\n }\n\n &:hover {\n text-decoration: none;\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n\n &.errors {\n color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n gap: ",";\n\n padding: "," ",";\n border-radius: ",";\n\n color: ",";\n font-size: 12px;\n line-height: 12px;\n\n transition: background-color 0.2s ease-out;\n text-decoration: none;\n\n &.active {\n color: ",";\n background-color: ",";\n }\n\n &.active.inactive {\n .status-dot {\n border-color: ",";\n }\n }\n\n &:hover {\n text-decoration: none;\n }\n\n &:hover:not(.active) {\n background-color: ",";\n }\n\n &.errors {\n color: ",";\n }\n"])),a.spacings.sm,a.spacings.sm,a.spacings.md,a.borderRadius.lg,a.colors.gray700,a.colors.white,a.colors.gray500,a.colors.white,a.colors.gray200,a.colors.error);var u,c,d,s;t.Icon=l.default.div(c||(c=r(["\n display: block;\n width: ","px;\n height: ","px;\n fill: ",";\n"],["\n display: block;\n width: ","px;\n height: ","px;\n fill: ",";\n"])),20,20,a.colors.gray550),t.Name=l.default.div(d||(d=r(["\n flex-grow: 1;\n max-width: 90%;\n overflow: hidden;\n\n &:empty:after {\n content: 'No Title';\n color: ",";\n font-style: italic;\n }\n"],["\n flex-grow: 1;\n max-width: 90%;\n overflow: hidden;\n\n &:empty:after {\n content: 'No Title';\n color: ",";\n font-style: italic;\n }\n"])),a.colors.gray400),t.Status=l.default.div(s||(s=r(["\n content: '';\n\n flex-shrink: 0;\n justify-self: flex-end;\n\n width: 10px;\n height: 10px;\n\n border: 1px solid\n ",";\n border-radius: 100%;\n\n background-color: ",";\n\n transition: all 0.3s ease-out;\n"],["\n content: '';\n\n flex-shrink: 0;\n justify-self: flex-end;\n\n width: 10px;\n height: 10px;\n\n border: 1px solid\n ",";\n border-radius: 100%;\n\n background-color: ",";\n\n transition: all 0.3s ease-out;\n"])),(function(e){return e.$enabled?"transparent":a.colors.gray550}),(function(e){return e.$enabled?a.colors.teal550:"transparent"}))},67584:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationItem=void 0;var o=r(n(2784)),i=n(86993),a=n(90022),l=r(n(26457)),u=n(75482),c=n(19056);t.NotificationItem=function(e){var t=e.icon,n=e.notification.uid,r=(0,i.useSelector)(a.notificationSelectors.one(n)),d=r.name,s=r.enabled,f=r.errors;return o.default.createElement(c.Link,{to:"".concat(n),className:(0,l.default)((0,u.hasErrors)(f)&&"errors",!s&&"inactive")},t&&o.default.createElement(c.Icon,{dangerouslySetInnerHTML:{__html:t}}),o.default.createElement(c.Name,null,d),o.default.createElement(c.Status,{$enabled:s,className:(0,l.default)("status-dot")}))}},53846:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CategorySkeleton=void 0;var o=r(n(2784)),i=r(n(76257)),a=n(91176),l=n(91560);t.CategorySkeleton=function(){return o.default.createElement(a.ThemedSkeleton,null,o.default.createElement(l.Wrapper,null,o.default.createElement(l.LabelWrapper,null,o.default.createElement(i.default,{width:50})),o.default.createElement(l.NotificationItemWrapper,{style:{padding:14}},[0,1,2].map((function(e){return o.default.createElement("div",{key:e,style:{display:"flex",gap:10,alignItems:"center"}},o.default.createElement(i.default,{width:20,height:20,circle:!0}),o.default.createElement("div",{style:{flexGrow:2}},o.default.createElement(i.default,{width:100,style:{top:2}})),o.default.createElement(i.default,{width:10,height:10,circle:!0,style:{top:6}}))})))))}},91560:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationItemWrapper=t.Button=t.Label=t.LabelWrapper=t.Wrapper=void 0;var i,a,l,u,c,d=n(51362),s=o(n(55721));t.Wrapper=s.default.div(i||(i=r([""],[""]))),t.LabelWrapper=s.default.div(a||(a=r(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 5px;\n line-height: 22px;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 5px;\n line-height: 22px;\n"]))),t.Label=s.default.span(l||(l=r(["\n padding-left: ",";\n font-weight: 700;\n font-size: 11px;\n color: ",";\n text-transform: uppercase;\n"],["\n padding-left: ",";\n font-weight: 700;\n font-size: 11px;\n color: ",";\n text-transform: uppercase;\n"])),d.spacings.md,d.colors.gray550),t.Button=s.default.button(u||(u=r(["\n align-self: end;\n\n &:hover {\n background-color: ",";\n }\n"],["\n align-self: end;\n\n &:hover {\n background-color: ",";\n }\n"])),d.colors.gray200),t.NotificationItemWrapper=s.default.div(c||(c=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," 0;\n\n &:empty {\n &:after {\n content: 'None configured';\n\n padding: 2px};\n margin-left: 12px;\n\n font-style: italic;\n font-size: 12px;\n\n color: ",";\n }\n }\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: "," 0;\n\n &:empty {\n &:after {\n content: 'None configured';\n\n padding: 2px};\n margin-left: 12px;\n\n font-style: italic;\n font-size: 12px;\n\n color: ",";\n }\n }\n"])),d.spacings.xs,d.spacings.xs,d.colors.gray300)},41200:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationTypeItem=void 0;var o=r(n(2784)),i=n(76034),a=n(36450),l=n(19007),u=r(n(26457)),c=r(n(2072)),d=n(60130),s=n(91560);t.NotificationTypeItem=function(e){var t=e.type,n=e.children,r=(0,i.useNavigate)(),f=(0,a.useAppDispatch)(),p=t.name;return o.default.createElement(s.Wrapper,null,o.default.createElement(s.LabelWrapper,null,o.default.createElement(s.Label,null,p),o.default.createElement(s.Button,{className:(0,u.default)("btn","add","icon","small","dashed"),onClick:function(){var e=(0,d.v4)();f((0,l.addNewNotification)(t,e)),r(e)}},(0,c.default)("New"))),o.default.createElement(s.NotificationItemWrapper,null,n))}},17458:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollableList=void 0;var i,a=n(80159),l=n(51362),u=o(n(55721));t.ScrollableList=u.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n height: 100%;\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n height: 100%;\n\n overflow-x: hidden;\n overflow-y: auto;\n ",";\n"])),l.spacings.sm,a.scrollBar)},78177:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.List=void 0;var a=i(n(2784)),l=n(86993),u=n(76034),c=n(32165),d=n(41200),s=n(53846),f=n(90022),p=n(74740),v=n(67584),m=n(17458);t.List=function(){var e=(0,u.useParams)(),t=e.formId,n=e.uid,r=(0,u.useNavigate)(),o=(0,p.useQueryNotificationTypes)(),i=o.data,h=o.isFetching;(0,p.useQueryFormNotifications)(t?Number(t):void 0);var g=(0,l.useSelector)(f.notificationSelectors.all);return(0,a.useEffect)((function(){if(!n&&i&&g){var e=g.find(Boolean);e&&r(e.uid)}}),[n,i,g]),!i&&h?a.default.createElement(c.Sidebar,null,a.default.createElement(s.CategorySkeleton,null)):i||h?a.default.createElement(c.Sidebar,{$lean:!0},a.default.createElement(m.ScrollableList,null,i.map((function(e){return a.default.createElement(d.NotificationTypeItem,{key:e.className,type:e},g&&(null==g?void 0:g.filter((function(t){return t.className===e.className})).map((function(t){return a.default.createElement(v.NotificationItem,{key:t.uid,icon:e.icon,notification:t})}))))})))):a.default.createElement(a.default.Fragment,null,"Empty")}},83837:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CombinatorSelect=void 0;var o=r(n(2784)),i=n(75094),a=r(n(2072));t.CombinatorSelect=function(e){var t=e.value,n=e.onChange;return o.default.createElement("div",{className:"select"},o.default.createElement("select",{value:t,onChange:function(e){return n&&n(e.target.value)}},o.default.createElement("option",{value:i.Combinator.Or},(0,a.default)("any")),o.default.createElement("option",{value:i.Combinator.And},(0,a.default)("all"))))}},86804:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DisplaySelect=void 0;var o=r(n(2784)),i=n(75094),a=r(n(2072));t.DisplaySelect=function(e){var t=e.value,n=e.onChange;return o.default.createElement("div",{className:"select"},o.default.createElement("select",{value:t,onChange:function(e){return n&&n(e.target.value)}},o.default.createElement("option",{value:i.Display.Show},(0,a.default)("show")),o.default.createElement("option",{value:i.Display.Hide},(0,a.default)("hide"))))}},18273:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DisplaySend=void 0;var o,i=r(n(2784)),a=r(n(2072));!function(e){e.Send="send",e.NotSend="not-send"}(o||(o={}));t.DisplaySend=function(e){var t=e.value,n=e.onChange;return i.default.createElement("div",{className:"select"},i.default.createElement("select",{value:t?o.Send:o.NotSend,onChange:function(e){return n&&n(e.target.value===o.Send)}},i.default.createElement("option",{value:o.Send},(0,a.default)("Send")),i.default.createElement("option",{value:o.NotSend},(0,a.default)("Don't send"))))}},36394:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Action=t.Table=void 0;var i,a,l=n(51362),u=o(n(55721));t.Table=u.default.table(i||(i=r(["\n width: 100%;\n\n margin: 0;\n border-spacing: 0;\n border-collapse: separate;\n\n td {\n &:nth-child(1) {\n width: 25%;\n }\n\n &:nth-child(2) {\n width: 20%;\n }\n\n &:last-child {\n width: 20px;\n }\n }\n\n tbody {\n tr {\n td {\n padding: 0 !important;\n padding-top: 7px !important;\n padding-right: 7px !important;\n padding-bottom: 7px !important;\n border-bottom: 1px solid ",";\n background-color: ",";\n }\n\n td:first-child {\n padding-left: 7px !important;\n border-left: 1px solid ",";\n }\n\n td:last-child {\n border-right: 1px solid ",";\n }\n }\n\n tr:first-child {\n td {\n border-top: 1px solid ",";\n }\n\n td:first-child {\n border-top-left-radius: ",";\n border-top: 1px solid ",";\n }\n\n td:last-child {\n border-top: 1px solid ",";\n border-top-right-radius: ",";\n }\n }\n\n tr:last-child {\n td {\n padding: 0 !important;\n background-color: ",";\n\n .btn {\n border: 0 !important;\n border-radius: 0 !important;\n background-color: transparent !important;\n }\n }\n\n td:last-child {\n border-left: 1px dashed ",";\n border-right: 1px dashed ",";\n border-bottom: 1px dashed ",";\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n }\n }\n\n tr:first-child:last-child {\n td {\n border-top: 1px dashed ",";\n }\n }\n }\n"],["\n width: 100%;\n\n margin: 0;\n border-spacing: 0;\n border-collapse: separate;\n\n td {\n &:nth-child(1) {\n width: 25%;\n }\n\n &:nth-child(2) {\n width: 20%;\n }\n\n &:last-child {\n width: 20px;\n }\n }\n\n tbody {\n tr {\n td {\n padding: 0 !important;\n padding-top: 7px !important;\n padding-right: 7px !important;\n padding-bottom: 7px !important;\n border-bottom: 1px solid ",";\n background-color: ",";\n }\n\n td:first-child {\n padding-left: 7px !important;\n border-left: 1px solid ",";\n }\n\n td:last-child {\n border-right: 1px solid ",";\n }\n }\n\n tr:first-child {\n td {\n border-top: 1px solid ",";\n }\n\n td:first-child {\n border-top-left-radius: ",";\n border-top: 1px solid ",";\n }\n\n td:last-child {\n border-top: 1px solid ",";\n border-top-right-radius: ",";\n }\n }\n\n tr:last-child {\n td {\n padding: 0 !important;\n background-color: ",";\n\n .btn {\n border: 0 !important;\n border-radius: 0 !important;\n background-color: transparent !important;\n }\n }\n\n td:last-child {\n border-left: 1px dashed ",";\n border-right: 1px dashed ",";\n border-bottom: 1px dashed ",";\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n }\n }\n\n tr:first-child:last-child {\n td {\n border-top: 1px dashed ",";\n }\n }\n }\n"])),l.colors.inputBorder,l.colors.gray050,l.colors.inputBorder,l.colors.inputBorder,l.colors.inputBorder,l.borderRadius.lg,l.colors.inputBorder,l.colors.inputBorder,l.borderRadius.lg,l.colors.white,l.colors.inputBorder,l.colors.inputBorder,l.colors.inputBorder,l.borderRadius.lg,l.borderRadius.lg,l.colors.inputBorder),t.Action=u.default.button(a||(a=r(["\n margin: 0;\n padding: 0;\n border: none;\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n width: 16px;\n height: 16px;\n stroke-width: 3px;\n fill: #e5e7eb;\n }\n"],["\n margin: 0;\n padding: 0;\n border: none;\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n width: 16px;\n height: 16px;\n stroke-width: 3px;\n fill: #e5e7eb;\n }\n"])))},12804:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n "," "," {\n display: none;\n }\n\n "," {\n color: ",";\n }\n }\n\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n\n &.active {\n background-color: #5b6573;\n border-color: #5b6573;\n color: white;\n }\n\n &.is-in-condition {\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n\n width: 0;\n border-left: 10px solid transparent;\n border-bottom: 10px solid transparent;\n border-left: 10px solid ",";\n }\n\n &-active:after {\n border-left-color: ",";\n }\n }\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: ",";\n\n flex: 1;\n\n overflow: hidden;\n padding: 5px 7px;\n\n width: 100%;\n height: 100%;\n\n background: ",";\n border: 1px solid ",";\n border-radius: ",";\n\n transition: all 0.2s ease-out;\n\n &,\n * {\n cursor: pointer;\n }\n\n &.has-rule:not(.active) {\n border-color: ",";\n background-color: ",";\n }\n\n &.group {\n background-color: ",";\n border-color: ",";\n\n > "," "," {\n display: none;\n }\n\n "," {\n color: ",";\n }\n }\n\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n\n &.active {\n background-color: #5b6573;\n border-color: #5b6573;\n color: white;\n }\n\n &.is-in-condition {\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n z-index: 2;\n\n width: 0;\n border-left: 10px solid transparent;\n border-bottom: 10px solid transparent;\n border-left: 10px solid ",";\n }\n\n &-active:after {\n border-left-color: ",";\n }\n }\n"])),s.spacings.sm,s.colors.gray100,s.colors.gray100,s.borderRadius.md,s.colors.teal550,s.colors.teal050,s.colors.white,s.colors.gray100,t.FieldInfo,t.Icon,t.GroupWrapper,s.colors.gray800,s.colors.gray200,s.colors.gray200,s.colors.gray200,s.colors.teal550)},95800:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Field=void 0;var o=r(n(2784)),i=n(86993),a=n(76034),l=n(18884),u=n(40790),c=n(15443),d=n(75094),s=r(n(26457)),f=n(72757),p=n(7178);t.Field=function(e){var t=e.field,n=(0,a.useParams)().uid,r=(0,a.useNavigate)(),v=(0,c.useFieldType)(null==t?void 0:t.typeClass),m=n===t.uid,h=(0,i.useSelector)(l.fieldRuleSelectors.one(n)),g=(0,i.useSelector)(u.pageRuleSelectors.one(n)),b=(0,i.useSelector)(l.fieldRuleSelectors.hasRule(t.uid)),y=(0,i.useSelector)(u.pageRuleSelectors.hasRule(t.uid)),_=(0,i.useSelector)(l.fieldRuleSelectors.isInCondition(t.uid)),x=(null==h?void 0:h.conditions.find((function(e){return e.field===t.uid})))||(null==g?void 0:g.conditions.find((function(e){return e.field===t.uid})));return void 0===(null==t?void 0:t.properties)?null:o.default.createElement(p.FieldWrapper,{onClick:function(e){e.stopPropagation(),r(n===t.uid?"":"field/".concat(t.uid))},className:(0,s.default)("group"===(null==v?void 0:v.type)&&"group",m&&"active",(b||y)&&"has-rule",_&&"is-in-condition",x&&"is-in-condition-active",d.operatorTypes.negative.includes(null==x?void 0:x.operator)&&"not-equals")},o.default.createElement(p.FieldInfo,null,o.default.createElement(p.Icon,{dangerouslySetInnerHTML:{__html:null==v?void 0:v.icon}}),o.default.createElement(p.Label,null,t.properties.label||(null==v?void 0:v.name))),"group"===(null==v?void 0:v.type)&&o.default.createElement(p.GroupWrapper,null,o.default.createElement(f.Layout,{layoutUid:t.properties.layout})))}},49862:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldLayoutWrapper=void 0;var i,a=n(51362),l=o(n(55721));t.FieldLayoutWrapper=l.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),a.spacings.xs)},72757:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Layout=void 0;var o=r(n(2784)),i=n(36450),a=n(44271),l=n(41294),u=n(74899),c=n(49862);t.Layout=function(e){var t=e.layoutUid,n=(0,i.useAppSelector)((function(e){return a.layoutSelectors.one(e,t)})),r=(0,i.useAppSelector)((function(e){return l.rowSelectors.inLayout(e,null==n?void 0:n.uid)}));return n&&r.length?o.default.createElement(c.FieldLayoutWrapper,null,r.map((function(e){return o.default.createElement(u.Row,{row:e,key:e.uid})}))):null}},88889:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderMiniMap=void 0;var o=r(n(2784)),i=r(n(76257)),a=n(86993),l=n(91176),u=n(44271),c=n(24496);t.LoaderMiniMap=function(){var e=(0,a.useSelector)(u.layoutSelectors.cartographed.fullLayoutList);return o.default.createElement(l.ThemedSkeleton,null,e.map((function(e,t){return o.default.createElement("div",{key:t},o.default.createElement("div",{style:{marginBottom:14}},o.default.createElement(i.default,{width:"100%",height:30})),e.map((function(e,t){return o.default.createElement(c.LoadingRow,{key:t,style:{display:"flex"}},e.map((function(e,t){return o.default.createElement(i.default,{key:t,width:"100%",height:28})})))})))})))}},24496:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingRow=t.MiniMapWrapper=void 0;var i,a,l=n(51362),u=o(n(55721)),c=n(79681);t.MiniMapWrapper=u.default.div(i||(i=r(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: ",";\n"])),l.spacings.xl),t.LoadingRow=(0,u.default)(c.RowWrapper)(a||(a=r(["\n > span {\n width: 100%;\n }\n"],["\n > span {\n width: 100%;\n }\n"])))},19438:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MiniMap=void 0;var o=r(n(2784)),i=n(86993),a=n(76034),l=n(32165),u=n(60719),c=n(34837),d=n(58328),s=n(88889),f=n(24496);t.MiniMap=function(){var e=(0,a.useParams)().formId,t=(0,c.useQueryFormRules)(Number(e||0)).isFetching,n=(0,i.useSelector)(u.pageSelecors.all);return o.default.createElement(l.Sidebar,null,o.default.createElement(f.MiniMapWrapper,null,t&&o.default.createElement(s.LoaderMiniMap,null),!t&&n.map((function(e){return o.default.createElement(d.Page,{key:e.uid,page:e})}))))}},58328:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var o=r(n(2784)),i=n(86993),a=n(76034),l=n(40790),u=r(n(26457)),c=n(72757),d=r(n(94399)),s=n(93713);t.Page=function(e){var t=e.page,n=(0,a.useParams)().uid,r=(0,a.useNavigate)(),f=(0,i.useSelector)(l.pageRuleSelectors.hasRule(t.uid)),p=t.label,v=t.uid,m=n===v;return o.default.createElement(s.PageWrapper,null,o.default.createElement(s.PageButton,{onClick:function(){return r(n===v?"":"page/".concat(v))},className:(0,u.default)(m&&"active",f&&"has-rule")},o.default.createElement(s.PageIcon,null,o.default.createElement(d.default,null)),o.default.createElement(s.PageLabel,null,p)),o.default.createElement(s.PageBody,{className:(0,u.default)(m&&"active",f&&"has-rule")},o.default.createElement(c.Layout,{layoutUid:t.layoutUid})))}},93713:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PageLabel=t.PageIcon=t.PageBody=t.PageButton=t.PageWrapper=void 0;var i,a,l,u,c,d=n(51362),s=o(n(55721));t.PageWrapper=s.default.div(i||(i=r(["\n display: flex;\n flex: 1;\n flex-direction: column;\n"],["\n display: flex;\n flex: 1;\n flex-direction: column;\n"]))),t.PageButton=s.default.button(a||(a=r(["\n position: relative;\n bottom: -1px;\n\n display: inline-flex;\n justify-content: start;\n align-items: center;\n flex-wrap: nowrap;\n gap: ",";\n\n max-width: 150px;\n padding: "," ",";\n\n background-color: ",";\n\n border: 1px solid #cdd8e4;\n border-bottom: none;\n border-radius: "," "," 0 0;\n\n text-align: left;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n\n &.active {\n border-right-color: ",";\n }\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n color: ",";\n }\n\n &,\n &:active,\n &:focus {\n outline: none;\n }\n\n svg {\n width: 18px;\n height: 18px;\n fill: currentColor;\n }\n"],["\n position: relative;\n bottom: -1px;\n\n display: inline-flex;\n justify-content: start;\n align-items: center;\n flex-wrap: nowrap;\n gap: ",";\n\n max-width: 150px;\n padding: "," ",";\n\n background-color: ",";\n\n border: 1px solid #cdd8e4;\n border-bottom: none;\n border-radius: "," "," 0 0;\n\n text-align: left;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n\n &.active {\n border-right-color: ",";\n }\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n color: ",";\n }\n\n &,\n &:active,\n &:focus {\n outline: none;\n }\n\n svg {\n width: 18px;\n height: 18px;\n fill: currentColor;\n }\n"])),d.spacings.sm,d.spacings.xs,d.spacings.sm,d.colors.white,d.borderRadius.md,d.borderRadius.md,d.colors.teal550,d.colors.teal050,d.colors.teal700,d.colors.gray500,d.colors.gray700,d.colors.white),t.PageBody=s.default.div(l||(l=r(["\n padding: ",";\n border: 1px solid #cdd8e4;\n background-color: ",";\n\n border-radius: 0 "," "," ",";\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n }\n"],["\n padding: ",";\n border: 1px solid #cdd8e4;\n background-color: ",";\n\n border-radius: 0 "," "," ",";\n\n transition: all 0.2s ease-out;\n\n &.has-rule {\n border-color: ",";\n background-color: ",";\n }\n\n &.active {\n background-color: ",";\n border-color: ",";\n }\n"])),d.spacings.sm,d.colors.white,d.borderRadius.md,d.borderRadius.md,d.borderRadius.md,d.colors.teal550,d.colors.teal050,d.colors.gray500,d.colors.gray700),t.PageIcon=s.default.div(u||(u=r([""],[""]))),t.PageLabel=s.default.label(c||(c=r(["\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])))},79681:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RowWrapper=void 0;var i,a=n(51362),l=o(n(55721));t.RowWrapper=l.default.div(i||(i=r(["\n display: flex;\n flex-direction: row;\n justify-content: stretch;\n align-items: stretch;\n gap: ",";\n"],["\n display: flex;\n flex-direction: row;\n justify-content: stretch;\n align-items: stretch;\n gap: ",";\n"])),a.spacings.xs)},74899:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Row=void 0;var o=r(n(2784)),i=n(86993),a=n(4165),l=n(95800),u=n(79681);t.Row=function(e){var t=e.row,n=(0,i.useSelector)(a.fieldSelectors.inRow(t));return o.default.createElement(u.RowWrapper,null,n.map((function(e){return o.default.createElement(l.Field,{key:e.uid,field:e})})))}},72089:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderTabs=void 0;var l=a(n(2784)),u=i(n(76257)),c=i(n(65884)),d=n(51362),s=n(64316);t.LoaderTabs=function(){return l.default.createElement(u.SkeletonTheme,{baseColor:d.colors.gray300,highlightColor:d.colors.gray200,height:10},l.default.createElement(s.TabWrapper,null,l.default.createElement(s.Heading,null,l.default.createElement(s.FormName,null,l.default.createElement(u.default,{width:"50%",height:20}))),l.default.createElement(s.TabsWrapper,null,l.default.createElement("a",{className:"active"},l.default.createElement("span",null,l.default.createElement(u.default,{width:43}))),l.default.createElement("a",null,l.default.createElement("span",null,l.default.createElement(u.default,{width:82}))),c.default.editions.is(c.Edition.Pro)&&l.default.createElement("a",null,l.default.createElement("span",null,l.default.createElement(u.default,{width:36}))),l.default.createElement("a",null,l.default.createElement("span",null,l.default.createElement(u.default,{width:77}))),l.default.createElement("a",null,l.default.createElement("span",null,l.default.createElement(u.default,{width:54})))),l.default.createElement(s.SaveButtonWrapper,null,l.default.createElement(u.default,null))))}},64316:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SaveButton=t.SaveButtonWrapper=t.TabsWrapper=t.FormName=t.Heading=t.TabWrapper=void 0;var i,a,l,u,c,d,s=n(80159),f=n(51362),p=o(n(55721));t.TabWrapper=p.default.nav(i||(i=r(["\n position: relative;\n\n display: grid;\n grid-template-columns: 300px min-content auto;\n align-items: center;\n\n height: 50px;\n flex: 0 0 50px;\n\n box-sizing: border-box;\n overflow-x: hidden;\n"],["\n position: relative;\n\n display: grid;\n grid-template-columns: 300px min-content auto;\n align-items: center;\n\n height: 50px;\n flex: 0 0 50px;\n\n box-sizing: border-box;\n overflow-x: hidden;\n"]))),t.Heading=p.default.h1(a||(a=r(["\n position: relative;\n margin: 0;\n"],["\n position: relative;\n margin: 0;\n"]))),t.FormName=p.default.span(l||(l=r(["\n font-size: 18px;\n font-weight: 700;\n line-height: 1.2;\n color: ",";\n"],["\n font-size: 18px;\n font-weight: 700;\n line-height: 1.2;\n color: ",";\n"])),f.colors.gray700),t.TabsWrapper=p.default.div(u||(u=r(["\n display: flex;\n align-self: flex-end;\n\n background-color: ",";\n border-radius: "," "," 0 0;\n box-shadow:\n inset 0 -1px 0 0 rgba(154, 165, 177, 0.25),\n 0 0 0 1px rgba(154, 165, 177, 0.25);\n\n a {\n display: flex;\n align-items: center;\n\n height: 49px;\n padding: 0 ",";\n\n white-space: nowrap;\n\n color: var(--light-text-color);\n border-radius: "," "," 0 0;\n\n &:hover {\n text-decoration: none;\n background-color: rgba(154, 165, 177, 0.15);\n\n &:not(.active) {\n &:not(:first-child) {\n border-top-left-radius: 0;\n }\n\n &:not(:last-child) {\n border-top-right-radius: 0;\n }\n }\n }\n\n &.active {\n background: ",";\n color: ",";\n box-shadow:\n inset 0 2px 0 ",",\n 0 0 0 1px rgba(51, 64, 77, 0.1),\n 0 2px 12px rgba(205, 216, 228, 0.5) !important;\n }\n\n &.errors {\n position: relative;\n color: ",";\n\n ",";\n }\n\n > span[data-icon] {\n position: relative;\n left: 5px;\n }\n }\n"],["\n display: flex;\n align-self: flex-end;\n\n background-color: ",";\n border-radius: "," "," 0 0;\n box-shadow:\n inset 0 -1px 0 0 rgba(154, 165, 177, 0.25),\n 0 0 0 1px rgba(154, 165, 177, 0.25);\n\n a {\n display: flex;\n align-items: center;\n\n height: 49px;\n padding: 0 ",";\n\n white-space: nowrap;\n\n color: var(--light-text-color);\n border-radius: "," "," 0 0;\n\n &:hover {\n text-decoration: none;\n background-color: rgba(154, 165, 177, 0.15);\n\n &:not(.active) {\n &:not(:first-child) {\n border-top-left-radius: 0;\n }\n\n &:not(:last-child) {\n border-top-right-radius: 0;\n }\n }\n }\n\n &.active {\n background: ",";\n color: ",";\n box-shadow:\n inset 0 2px 0 ",",\n 0 0 0 1px rgba(51, 64, 77, 0.1),\n 0 2px 12px rgba(205, 216, 228, 0.5) !important;\n }\n\n &.errors {\n position: relative;\n color: ",";\n\n ",";\n }\n\n > span[data-icon] {\n position: relative;\n left: 5px;\n }\n }\n"])),f.colors.gray050,f.borderRadius.lg,f.borderRadius.lg,f.spacings.xl,f.borderRadius.md,f.borderRadius.md,f.colors.white,f.colors.gray700,f.colors.gray500,f.colors.error,s.errorAlert),t.SaveButtonWrapper=p.default.div(c||(c=r(["\n display: flex;\n justify-content: end;\n"],["\n display: flex;\n justify-content: end;\n"]))),t.SaveButton=p.default.button(d||(d=r([""],[""])))},45470:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Tabs=void 0;var l=a(n(2784)),u=n(86993),c=n(76034),d=n(11455),s=n(57092),f=i(n(65884)),p=n(36450),v=n(35701),m=n(8697),h=n(72671),g=n(35382),b=n(4165),y=n(90022),_=n(22920),x=n(40319),w=a(n(26457)),O=n(75482),E=a(n(2072)),P=n(64316);t.Tabs=function(){var e=(0,p.useAppDispatch)(),t=(0,u.useSelector)(g.formSelectors.current),n=(0,u.useSelector)(h.contextSelectors.state),r=(0,u.useSelector)(g.formSelectors.errors),o=(0,u.useSelector)(b.fieldSelectors.hasErrors),i=(0,u.useSelector)(y.notificationSelectors.errors.any),a=(0,x.useQueryFormSettings)().data,j=function(){e((0,v.save)())};return(0,_.useOnKeypress)({callback:function(e){if("s"===e.key){var t=window.navigator.platform.match(/Mac/);if(t&&!e.metaKey)return;if(!t&&!e.ctrlKey)return;return e.preventDefault(),j(),!1}},type:"keydown"}),l.default.createElement(P.TabWrapper,null,l.default.createElement(d.Breadcrumb,{label:t.name||"New Form",url:"/forms/".concat(t.id)}),l.default.createElement(P.Heading,null,l.default.createElement(P.FormName,null,t.name||(0,E.default)("New Form"))),l.default.createElement(P.TabsWrapper,{className:"main-tabs"},l.default.createElement(c.NavLink,{to:"",end:!0,className:(0,w.default)(o&&"errors")},l.default.createElement("span",null,(0,E.default)("Layout"))),l.default.createElement(c.NavLink,{to:"notifications",className:(0,w.default)(i&&"errors")},l.default.createElement("span",null,(0,E.default)("Notifications"))),f.default.editions.is(f.Edition.Pro)&&l.default.createElement(c.NavLink,{to:"rules"},l.default.createElement("span",null,(0,E.default)("Rules"))),l.default.createElement(c.NavLink,{to:"integrations"},l.default.createElement("span",null,(0,E.default)("Integrations"))),a&&l.default.createElement(c.NavLink,{to:"settings",className:(0,w.default)(((0,O.hasErrors)(null==r?void 0:r.general)||(0,O.hasErrors)(null==r?void 0:r.behavior))&&"errors")},l.default.createElement("span",null,(0,E.default)("Settings")))),l.default.createElement(P.SaveButtonWrapper,null,l.default.createElement(P.SaveButton,{onClick:j,disabled:n===m.State.Processing,className:(0,w.default)("btn","submit","save-button")},l.default.createElement(s.LoadingText,{loadingText:(0,E.default)("Saving"),loading:n===m.State.Processing,spinner:!0},(0,E.default)("Save")))))}},35653:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Drag=void 0,function(e){e.FieldType="field-type",e.FavoriteField="favorite-field",e.Field="field",e.Row="row",e.OptionRow="option-row",e.Page="page"}(n||(t.Drag=n={}))},37796:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorGlobalStyles=void 0;var o,i=n(55721);t.EditorGlobalStyles=(0,i.createGlobalStyle)(o||(o=r(["\n #freeform-client-app {\n height: calc(100vh - 100px);\n }\n"],["\n #freeform-client-app {\n height: calc(100vh - 100px);\n }\n"])))},85898:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Edit=void 0;var a=i(n(2784)),l=n(76034),u=n(8697),c=n(35430),d=n(9202),s=n(41533),f=n(40319),p=n(28924),v=n(58604),m=n(9363),h=n(97240),g=n(76064),b=n(12163),y=n(77209),_=n(36450);t.Edit=function(){var e=(0,l.useParams)().formId,t=(0,_.useAppDispatch)();(0,f.useQueryFormSettings)();var n=(0,f.useQuerySingleForm)(e&&Number(e)),r=n.data,o=n.isFetching,i=n.isError,x=n.error;return(0,a.useEffect)((function(){var n;if(void 0!==e&&r){var o=r.layout,i=o.fields,a=o.pages,l=o.layouts,f=o.rows;t(c.formActions.update(r)),t(d.fieldActions.set(i)),t(h.pageActions.set(a)),t(s.layoutActions.set(l)),t(g.rowActions.set(f)),t(b.notificationActions.set([])),t(m.integrationActions.emptyIntegrations()),0===a.length?t((0,y.addNewPage)()):t(u.contextActions.setPage(null===(n=a.find(Boolean))||void 0===n?void 0:n.uid))}}),[r,e]),o?a.default.createElement(v.LoaderBuilder,null):i?a.default.createElement("div",null,"ERROR: ",x.message):a.default.createElement(p.Builder,null)}},70988:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EditProvider=void 0;var o=r(n(2784)),i=n(86993),a=n(85797),l=n(85898),u=n(37796),c=n(36450);t.EditProvider=function(){return o.default.createElement(i.Provider,{store:c.store},o.default.createElement(u.EditorGlobalStyles,null),o.default.createElement(a.ModalProvider,null,o.default.createElement(l.Edit,null)))}},35701:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.save=void 0;var r=n(410);t.save=(0,r.createAction)("form/save")},27487:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useValueUpdateGenerator=void 0;var r=n(2784),o=n(11692);t.useValueUpdateGenerator=function(e,t,n){return(0,r.useCallback)((function(r){if(!r.disabled)return function(i){n(r.handle,(0,o.applyMiddleware)(i,r.middleware,t,(function(r,i){var a=e.find((function(e){return e.handle===r}));a&&!a.disabled&&n(a.handle,(0,o.applyMiddleware)(i,a.middleware,t))})))}}),[e,t,n])}},36450:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useAppStore=t.useAppSelector=t.useAppDispatch=t.store=void 0;var o=n(86993),i=n(410),a=r(n(43292)),l=n(50489),u=r(n(8697)),c=r(n(35430)),d=r(n(9363)),s=r(n(56169)),f=r(n(12163)),p=r(n(82919)),v=r(n(96636));t.store=(0,i.configureStore)({middleware:[a.default,l.statePersistMiddleware],reducer:{form:c.default,layout:s.default,integrations:d.default,notifications:f.default,rules:p.default,context:u.default,search:v.default}});t.useAppDispatch=function(){return(0,o.useDispatch)()},t.useAppSelector=o.useSelector;t.useAppStore=function(){return(0,o.useStore)()}},50489:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.statePersistMiddleware=t.TOPIC_UPSERTED=t.TOPIC_UPDATED=t.TOPIC_CREATED=t.TOPIC_ERRORS=t.TOPIC_SAVE=void 0;var o=r(n(60014)),i=r(n(98641)),a=n(35701),l=n(8697);t.TOPIC_SAVE=Symbol("form.save"),t.TOPIC_ERRORS=Symbol("form.save.errors"),t.TOPIC_CREATED=Symbol("form.save.crated"),t.TOPIC_UPDATED=Symbol("form.save.updated"),t.TOPIC_UPSERTED=Symbol("form.save.upserted"),i.default.clearAllSubscriptions();var u=function(e,n){i.default.publish(t.TOPIC_ERRORS,{dispatch:e,response:n}),e(l.contextActions.setState(l.State.Idle))};t.statePersistMiddleware=function(e){return function(n){return function(r){if(r&&(n(r),r.type===String(a.save))){var c=e.dispatch;c(l.contextActions.setState(l.State.Processing));var d={dispatch:c,state:e.getState(),persist:{}};i.default.publishSync(t.TOPIC_SAVE,d);var s=d.state.form.id;s?o.default.put("/api/forms/".concat(s),d.persist).then((function(e){return function(e,n){i.default.publish(t.TOPIC_UPDATED,{dispatch:e,response:n}),i.default.publish(t.TOPIC_UPSERTED,{dispatch:e,response:n}),e(l.contextActions.setState(l.State.Idle))}(c,e)})).catch((function(e){return u(c,e)})):o.default.post("/api/forms",d.persist).then((function(e){return function(e,n){i.default.publish(t.TOPIC_CREATED,{dispatch:e,response:n}),i.default.publish(t.TOPIC_UPSERTED,{dispatch:e,response:n}),e(l.contextActions.setState(l.State.Idle))}(c,e)})).catch((function(e){return u(c,e)}))}}}}},72671:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contextSelectors=void 0;var r=n(75482);t.contextSelectors={currentPage:function(e){var t=e.context.page;return t?e.layout.pages.find((function(e){return e.uid===t})):e.layout.pages.find(Boolean)},hasErrors:function(e){return function(t){var n=t.layout.pages.find((function(t){return t.uid===e})).layoutUid;return t.layout.rows.filter((function(e){return e.layoutUid===n})).some((function(e){return t.layout.fields.filter((function(t){return t.rowUid===e.uid})).some((function(e){return(0,r.hasErrors)(e.errors)}))})),!1}},focus:function(e){return e.context.focus},state:function(e){return e.context.state}}},8697:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)){for(var n=0,r=t.payload;n=u&&(e.order+=1)}))},remove:function(e,t){var n=t.payload;e.splice(e.findIndex((function(e){return e.uid===n})),1)},removeBatch:function(e,t){t.payload.forEach((function(t){e.splice(e.findIndex((function(e){return e.uid===t})),1)}))},edit:function(e,t){var n=t.payload,r=n.uid,o=n.handle,i=n.value;e.find((function(e){return e.uid===r})).properties[o]=i},batchEdit:function(e,t){var n=t.payload,r=n.uid,o=n.typeClass,i=n.properties,a=e.find((function(e){return e.uid===r}));a.typeClass=o,a.properties=i},clearErrors:function(e){for(var t=0,n=e;t=u;e.order-=t?1:0})),e.filter((function(e){return e.rowUid===o})).filter((function(e){return e.uid!==a.uid})).forEach((function(e){var t=e.order>=a.order;e.order+=t?1:0}))),c&&e.filter((function(e){return e.rowUid===o})).filter((function(e){return e.uid!==a.uid})).forEach((function(e){e.order>u&&e.order<=i&&(e.order-=1),e.order=i&&(e.order+=1)})))}}});var l=t.fieldsSlice.actions;t.fieldActions=l,t.default=t.fieldsSlice.reducer},56169:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(74081),i=r(n(9202)),a=r(n(41533)),l=r(n(97240)),u=r(n(76064)),c=(0,o.combineReducers)({fields:i.default,pages:l.default,rows:u.default,layouts:a.default});t.default=c},41533:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;oa&&(e.order-=1),o=a&&(t+=1),e.order=t}))},remove:function(e,t){var n=e.findIndex((function(e){return e.uid===t.payload}));e.splice(n,1)},swap:function(e,t){var n=e.find((function(e){return e.uid===t.payload.currentUid})),r=e.find((function(e){return e.uid===t.payload.targetUid})),o=n.order;n.order=r.order,r.order=o}}});var i=t.rowsSlice.actions;t.rowActions=i,t.default=t.rowsSlice.reducer},41294:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o.9?8:4,Math.floor(Math.random()*(t-e+1))+e)};var e,t}));return o.default.createElement(l.CardWrapper,null,o.default.createElement(l.CardBody,null,o.default.createElement(i.default,{height:20,width:"50%"}),o.default.createElement(i.default,{height:10,width:"80%"}),o.default.createElement(l.LinkList,null,o.default.createElement("li",null,o.default.createElement(i.default,{height:8,width:90})),o.default.createElement("li",null,o.default.createElement(i.default,{height:8,width:50})))),o.default.createElement(a.ResponsiveContainer,{width:"100%",height:40},o.default.createElement(a.AreaChart,{data:t,margin:{top:10,bottom:3,left:0,right:0}},o.default.createElement("defs",null,o.default.createElement("linearGradient",{id:"colorGradient",x1:0,y1:0,x2:0,y2:1},o.default.createElement("stop",{offset:"5%",stopColor:e,stopOpacity:.4}),o.default.createElement("stop",{offset:"95%",stopColor:e,stopOpacity:.3}))),o.default.createElement(a.Area,{type:"monotone",dataKey:"value",stroke:e,strokeWidth:1,strokeOpacity:1,fillOpacity:1,fill:"url(#colorGradient)",isAnimationActive:!1}))),o.default.createElement(l.PaddedChartFooter,{$color:e}))}},78303:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PaddedChartFooter=t.CardWrapper=t.LinkList=t.ControlButton=t.Controls=t.Subtitle=t.Title=t.CardBody=void 0;var i,a,l,u,c,d,s,f,p=n(51362),v=o(n(55721));t.CardBody=v.default.div(i||(i=r(["\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n padding: "," "," 0;\n"],["\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n padding: "," "," 0;\n"])),p.spacings.xl,p.spacings.xl),t.Title=v.default.h2(a||(a=r(["\n cursor: pointer;\n\n margin: 0;\n\n color: #3d464e;\n\n font-size: 20px;\n font-weight: 700;\n text-align: left;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n transition: all 0.2s ease-out;\n"],["\n cursor: pointer;\n\n margin: 0;\n\n color: #3d464e;\n\n font-size: 20px;\n font-weight: 700;\n text-align: left;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n transition: all 0.2s ease-out;\n"]))),t.Subtitle=v.default.span(l||(l=r(["\n display: inline-block;\n\n color: #868f96;\n font-size: 14px;\n\n max-width: 100%;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"],["\n display: inline-block;\n\n color: #868f96;\n font-size: 14px;\n\n max-width: 100%;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"]))),t.Controls=v.default.div(u||(u=r(["\n position: absolute;\n right: ",";\n top: ",";\n z-index: 2;\n\n display: flex;\n justify-content: end;\n align-items: stretch;\n gap: ",";\n\n opacity: 0;\n transform: translateY(-20px);\n transition: all 0.2s ease-out;\n"],["\n position: absolute;\n right: ",";\n top: ",";\n z-index: 2;\n\n display: flex;\n justify-content: end;\n align-items: stretch;\n gap: ",";\n\n opacity: 0;\n transform: translateY(-20px);\n transition: all 0.2s ease-out;\n"])),p.spacings.sm,p.spacings.sm,p.spacings.sm),t.ControlButton=v.default.button(c||(c=r(["\n font-size: 14px;\n color: #868f96;\n\n > svg {\n fill: currentColor;\n }\n"],["\n font-size: 14px;\n color: #868f96;\n\n > svg {\n fill: currentColor;\n }\n"]))),t.LinkList=v.default.ul(d||(d=r(["\n margin: "," 0 0;\n padding: 0;\n"],["\n margin: "," 0 0;\n padding: 0;\n"])),p.spacings.sm),t.CardWrapper=v.default.li(s||(s=r(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n overflow: hidden;\n\n background-color: #fcfdff;\n border: 1px solid #e7eef7;\n border-radius: var(--large-border-radius);\n\n opacity: 1;\n pointer-events: auto;\n\n transition:\n background-color 0.2s ease-out,\n border-color 0.2s ease-out;\n\n &.disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n\n &:not(.dragging):hover {\n background-color: #f3f7fd;\n border-color: #9eb0c5;\n\n "," {\n color: #0161f3;\n }\n\n "," {\n opacity: 1;\n transform: translateY(0);\n }\n }\n"],["\n position: relative;\n\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n overflow: hidden;\n\n background-color: #fcfdff;\n border: 1px solid #e7eef7;\n border-radius: var(--large-border-radius);\n\n opacity: 1;\n pointer-events: auto;\n\n transition:\n background-color 0.2s ease-out,\n border-color 0.2s ease-out;\n\n &.disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n\n &:not(.dragging):hover {\n background-color: #f3f7fd;\n border-color: #9eb0c5;\n\n "," {\n color: #0161f3;\n }\n\n "," {\n opacity: 1;\n transform: translateY(0);\n }\n }\n"])),t.Title,t.Controls),t.PaddedChartFooter=v.default.div(f||(f=r(["\n margin-top: -3px;\n\n background-color: ",";\n opacity: 0.3;\n\n height: 5px;\n\n font-size: 1px;\n line-height: 1px;\n\n overflow: hidden;\n"],["\n margin-top: -3px;\n\n background-color: ",";\n opacity: 0.3;\n\n height: 5px;\n\n font-size: 1px;\n line-height: 1px;\n\n overflow: hidden;\n"])),(function(e){return e.$color}))},72003:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n.9?50:20,Math.floor(Math.random()*(t-e+1))+e)};var e,t})),D=t.id,F=t.name,T=t.settings.general,R=T.color,L=T.description,A=o.isLoading&&o.context===D,B=x.isLoading&&x.context===D,W=A||B,I=function(){O.invalidateQueries(c.QKForms.single(Number(D))),w("".concat(D))};return i.default.createElement(y.CardWrapper,{"data-id":t.id,className:(0,d.default)(W&&"disabled",n&&"dragging")},i.default.createElement(y.Controls,null,i.default.createElement(l.Tooltip,r({title:(0,s.default)("Move")},_),i.default.createElement(y.ControlButton,{className:"handle"},i.default.createElement(b.default,null))),i.default.createElement(l.Tooltip,r({title:(0,s.default)("Duplicate this Form")},_),i.default.createElement(y.ControlButton,{onClick:function(){x.mutate(D)}},i.default.createElement(h.default,null))),i.default.createElement(l.Tooltip,r({title:(0,s.default)("Delete this Form")},_),i.default.createElement(y.ControlButton,{onClick:function(){confirm((0,s.default)("Are you sure you want to delete this form?"))&&o.mutate(D)}},i.default.createElement(g.default,null)))),i.default.createElement(y.CardBody,null,j?i.default.createElement(l.Tooltip,r({title:F},_),i.default.createElement(y.Title,{ref:P,onClick:I},F)):i.default.createElement(y.Title,{ref:P,onClick:I},F),!!L&&(C?i.default.createElement(l.Tooltip,r({title:L},_),i.default.createElement(y.Subtitle,{ref:k},L)):i.default.createElement(y.Subtitle,{ref:k,title:L},L)),i.default.createElement(y.LinkList,null,i.default.createElement("li",null,i.default.createElement("a",{href:(0,f.generateUrl)("submissions/".concat(t.handle),!1)},t.counters.submissions," ",(0,s.default)("Submissions"))),i.default.createElement("li",null,i.default.createElement("a",{href:(0,f.generateUrl)("spam/".concat(t.handle),!1)},t.counters.spam," ",(0,s.default)("Spam"))))),i.default.createElement(v.ResponsiveContainer,{width:"100%",height:40},i.default.createElement(v.AreaChart,{data:t.chartData||S,margin:{top:10,bottom:3,left:0,right:0}},i.default.createElement("defs",null,i.default.createElement("linearGradient",{id:"color".concat(t.id),x1:0,y1:0,x2:0,y2:1},i.default.createElement("stop",{offset:"5%",stopColor:R,stopOpacity:.4}),i.default.createElement("stop",{offset:"95%",stopColor:R,stopOpacity:.3}))),i.default.createElement(v.Area,{type:"monotone",dataKey:"uv",stroke:R,strokeWidth:1,strokeOpacity:1,fillOpacity:1,fill:"url(#color".concat(t.id,")"),isAnimationActive:!1}))),i.default.createElement(y.PaddedChartFooter,{$color:R}))}},80992:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ListProvider=void 0;var o=r(n(2784)),i=n(86993),a=n(85797),l=n(15443),u=n(79634),c=n(51567),d=n(59977);t.ListProvider=function(){var e=(0,u.useQueryClient)();return e.prefetchQuery(l.QKFieldTypes.all,l.fetchFieldTypes),e.prefetchQuery(l.QKFieldTypes.propertySections(),l.fetchFieldPropertySections),o.default.createElement(i.Provider,{store:d.store},o.default.createElement(a.ModalProvider,null,o.default.createElement(c.List,null)))}},54552:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chartDataset=void 0,t.chartDataset=[[{uv:0},{uv:2},{uv:0},{uv:6},{uv:0},{uv:0},{uv:1},{uv:0},{uv:0},{uv:4},{uv:0},{uv:3}],[{uv:9},{uv:6},{uv:3},{uv:4},{uv:0},{uv:6},{uv:1}],[{uv:0},{uv:25},{uv:0},{uv:32},{uv:0},{uv:0}]]},17794:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MutedWrapper=void 0;var i,a=n(51362),l=o(n(55721)),u=n(78303),c=n(3489);t.MutedWrapper=(0,l.default)(c.Wrapper)(i||(i=r(["\n position: relative;\n margin-top: ",";\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n\n z-index: 2;\n\n background: linear-gradient(\n to right,\n transparent 0%,\n transparent 40%,\n white 65%,\n white 100%\n );\n }\n\n &,\n * {\n pointer-events: none;\n user-select: none;\n }\n\n "," {\n border-color: #fbfcfd;\n background: #fefeff;\n }\n\n ",", "," a {\n color: #cfd1d2;\n }\n\n "," {\n color: #e2e4e5;\n }\n"],["\n position: relative;\n margin-top: ",";\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n\n z-index: 2;\n\n background: linear-gradient(\n to right,\n transparent 0%,\n transparent 40%,\n white 65%,\n white 100%\n );\n }\n\n &,\n * {\n pointer-events: none;\n user-select: none;\n }\n\n "," {\n border-color: #fbfcfd;\n background: #fefeff;\n }\n\n ",", "," a {\n color: #cfd1d2;\n }\n\n "," {\n color: #e2e4e5;\n }\n"])),a.spacings.xl,u.CardWrapper,u.Title,u.LinkList,u.Subtitle)},93633:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyList=void 0;var o=r(n(2784)),i=r(n(2072)),a=n(72003),l=n(16817),u=n(54552),c=n(17794),d=function(e,t,n,r,o){return{uid:"",type:"",name:e,handle:"",chartData:n,counters:{submissions:r,spam:o},settings:{general:{description:t,color:"#e0e0e0"}}}};t.EmptyList=function(){var e=(0,l.useCreateFormModal)();return o.default.createElement(o.default.Fragment,null,o.default.createElement("p",null,(0,i.default)("You don't have any forms yet. Create your first form now...")),o.default.createElement("button",{className:"btn submit add icon",onClick:e},(0,i.default)("New Form")),o.default.createElement(c.MutedWrapper,null,o.default.createElement(a.Card,{form:d("Contact Form","Main contact form.",u.chartDataset[0],14,5)}),o.default.createElement(a.Card,{form:d("Customer Survey","Customer satisfaction survey.",u.chartDataset[1],72,18)}),o.default.createElement(a.Card,{form:d("Newsletter","Newsletter signup form.",u.chartDataset[2],138,7)})))}},48962:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useCloneFormMutation=t.useDeleteFormMutation=void 0;var o=n(40319),i=n(79634),a=n(79634),l=r(n(60014));t.useDeleteFormMutation=function(){var e=(0,i.useQueryClient)();return(0,a.useMutation)((function(e){return l.default.delete("/api/forms/".concat(e))}),{onMutate:function(e){return e},onSuccess:function(t,n){e.setQueryData(o.QKForms.all,(function(e){return e.filter((function(e){return e.id!==n}))}))}})};t.useCloneFormMutation=function(){var e=(0,i.useQueryClient)();return(0,a.useMutation)((function(e){return l.default.post("/api/forms/".concat(e,"/clone"))}),{onMutate:function(e){return e},onSuccess:function(){e.invalidateQueries(o.QKForms.all)}})}},3489:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Title=t.Header=t.Wrapper=void 0;var i,a,l,u=n(51362),c=o(n(55721));t.Wrapper=c.default.ul(i||(i=r(["\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: ",";\n"],["\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: ",";\n"])),u.spacings.lg),t.Header=c.default.header(a||(a=r(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),t.Title=c.default.h1(l||(l=r(["\n padding: "," 0;\n margin: 0;\n\n font-size: 18px;\n font-weight: 700;\n line-height: 34px;\n"],["\n padding: "," 0;\n margin: 0;\n\n font-size: 18px;\n font-weight: 700;\n line-height: 34px;\n"])),u.spacings.sm)},51567:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.List=void 0;var l=i(n(2784)),u=n(40319),c=a(n(26457)),d=a(n(2072)),s=a(n(60014)),f=a(n(10324)),p=n(72003),v=n(20511),m=n(16817),h=n(93633),g=n(3489);t.List=function(){var e=(0,u.useQueryFormsWithStats)(),t=e.data,n=e.isFetching,r=(0,m.useCreateFormModal)(),o=!n&&t&&!t.length,i=(0,l.useRef)(null),a=(0,l.useRef)(null),b=(0,l.useState)(!1),y=b[0],_=b[1],x=function(){var e=a.current.toArray();s.default.post("/api/forms/sort",{orderedFormIds:e}),_(!1)};return(0,l.useEffect)((function(){a.current=new f.default(i.current,{animation:150,onEnd:x,handle:".handle",onStart:function(){_(!0)}})}),[]),l.default.createElement(l.default.Fragment,null,l.default.createElement(g.Header,null,l.default.createElement(g.Title,null,(0,d.default)("Forms")),l.default.createElement("button",{className:"btn submit add icon",onClick:r},(0,d.default)("Add new Form"))),l.default.createElement("div",{id:"content-container"},l.default.createElement("div",{id:"content",className:"content-pane"},o&&l.default.createElement(h.EmptyList,null),!o&&l.default.createElement(g.Wrapper,{ref:i,className:(0,c.default)(y&&"dragging")},t&&t.map((function(e){return l.default.createElement(p.Card,{key:e.id,form:e,isDraggingInProgress:y})})),!t&&n&&l.default.createElement(l.default.Fragment,null,l.default.createElement(v.CardLoading,null),l.default.createElement(v.CardLoading,null),l.default.createElement(v.CardLoading,null))))))}},88214:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormModalLoading=void 0;var o=r(n(2784)),i=r(n(76257));t.FormModalLoading=function(){return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",null,o.default.createElement(i.default,{height:10,width:50}),o.default.createElement(i.default,{height:24})),o.default.createElement("div",null,o.default.createElement(i.default,{height:10,width:150}),o.default.createElement(i.default,{height:24})),o.default.createElement("div",{style:{display:"flex",alignItems:"center",gap:10}},o.default.createElement(i.default,{height:24,width:38,borderRadius:12}),o.default.createElement("div",{style:{flex:1}},o.default.createElement(i.default,{height:10,width:80}),o.default.createElement(i.default,{height:8,width:"60%"}))))}},64457:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]t.clientWidth)};return window.addEventListener("resize",t),t(),function(){return window.removeEventListener("resize",t)}}),[e]),[e,n]}},9726:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useClickOutside=void 0;var r=n(2784),o=n(26457);t.useClickOutside=function(e){var t=e.callback,n=e.isEnabled,i=e.refObject,a=e.excludeClassNames,l=(0,r.useRef)(),u=i||l;return(0,r.useEffect)((function(){var e=function(e){n&&n&&u.current&&!u.current.contains(e.target)&&!(0,o.elementTreeHasClass)(e.target,a)&&"function"==typeof t&&t()};return document.addEventListener("click",e,!0),function(){document.removeEventListener("click",e,!0)}}),[u,n]),u}},88901:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDebounce=void 0;var r=n(2784);t.useDebounce=function(e,t){void 0===t&&(t=500);var n=(0,r.useState)(e),o=n[0],i=n[1];return(0,r.useEffect)((function(){var n=setTimeout((function(){return i(e)}),t);return function(){return clearTimeout(n)}}),[e,t]),o}},21285:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useFreeformNavigation=void 0;var r=n(2784),o=n(76034),i=n(40319),a=n(91423),l=n(74740),u=n(79634);t.useFreeformNavigation=function(){var e=(0,o.useParams)().formId,t=(0,o.useNavigate)(),n=(0,u.useQueryClient)();(0,r.useEffect)((function(){var r=document.querySelector('ul.subnav li a[href*="/freeform/forms"]'),o=function(r){return r.preventDefault(),e&&(n.invalidateQueries(i.QKForms.single(Number(e))),n.invalidateQueries(l.QKNotifications.single(Number(e))),n.invalidateQueries(a.QKIntegrations.single(Number(e)))),t("/forms"),!1};return r.addEventListener("click",o),function(){r.removeEventListener("click",o)}}))}},19136:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDimensionsObserver=void 0;var r=n(2784);t.useDimensionsObserver=function(){var e=(0,r.useRef)(null),t=(0,r.useState)({height:0,width:0,x:0,y:0}),n=t[0],o=t[1],i=(0,r.useState)((function(){return new ResizeObserver((function(e){var t=e[0].target.getBoundingClientRect(),n=t.width,r=t.height,i=t.x,a=t.y;o({width:n,height:r,x:i,y:a})}))}))[0];return(0,r.useEffect)((function(){return e.current&&i.observe(e.current),function(){return i.disconnect()}}),[i]),{ref:e,dimensions:n}}},23934:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useHover=void 0;var r=n(2784);t.useHover=function(e){var t,n,o=(0,r.useState)(!1),i=o[0],a=o[1];return null===(t=e.current)||void 0===t||t.addEventListener("mouseenter",(function(){return a(!0)})),null===(n=e.current)||void 0===n||n.addEventListener("mouseleave",(function(){return a(!1)})),i}},22920:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o * {\n > label {\n display: block;\n padding: 6px 12px;\n margin: 0 0 5px;\n\n border: 1px solid ",";\n border-left: none;\n\n white-space: nowrap;\n text-align: center;\n color: black !important;\n cursor: pointer;\n }\n\n input {\n position: absolute;\n left: -9999px;\n top: -9999px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n visibility: hidden;\n\n &:checked ~ label {\n background: #e6e6e6;\n }\n }\n\n &:first-child {\n > label {\n border-left: 1px solid ",";\n\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n }\n }\n\n &:last-child {\n > label {\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n }\n }\n }\n }\n\n ul.opinion-scale-legends {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));\n grid-gap: 0;\n\n li {\n text-align: center;\n }\n\n li:first-child {\n text-align: left;\n }\n\n li:last-child {\n text-align: right;\n }\n }\n}\n\n"],["\n\n.opinion-scale {\n ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n .opinion-scale-scales {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));\n grid-gap: 0;\n\n > * {\n > label {\n display: block;\n padding: 6px 12px;\n margin: 0 0 5px;\n\n border: 1px solid ",";\n border-left: none;\n\n white-space: nowrap;\n text-align: center;\n color: black !important;\n cursor: pointer;\n }\n\n input {\n position: absolute;\n left: -9999px;\n top: -9999px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n visibility: hidden;\n\n &:checked ~ label {\n background: #e6e6e6;\n }\n }\n\n &:first-child {\n > label {\n border-left: 1px solid ",";\n\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n }\n }\n\n &:last-child {\n > label {\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n }\n }\n }\n }\n\n ul.opinion-scale-legends {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));\n grid-gap: 0;\n\n li {\n text-align: center;\n }\n\n li:first-child {\n text-align: left;\n }\n\n li:last-child {\n text-align: right;\n }\n }\n}\n\n"])),i,i,a,a,a,a);t.default=l},80159:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(t,"__esModule",{value:!0}),t.errorAlert=t.labelText=t.scrollBar=void 0;var o,i,a,l=n(55721),u=n(51362),c=u.colors.gray100,d=u.colors.gray300;t.scrollBar=(0,l.css)(o||(o=r(["\n scrollbar-width: thin;\n scrollbar-color: "," ",";\n -webkit-overflow-scrolling: touch;\n\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background-color: ",";\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ",";\n }\n"],["\n scrollbar-width: thin;\n scrollbar-color: "," ",";\n -webkit-overflow-scrolling: touch;\n\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background-color: ",";\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ",";\n }\n"])),d,c,c,d),t.labelText=(0,l.css)(i||(i=r(["\n font-family:\n system-ui,\n BlinkMacSystemFont,\n -apple-system,\n Segoe UI,\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n Fira Sans,\n Droid Sans,\n Helvetica Neue,\n sans-serif;\n font-weight: bold;\n text-transform: uppercase;\n color: rgb(154 165 177 / 75%);\n"],["\n font-family:\n system-ui,\n BlinkMacSystemFont,\n -apple-system,\n Segoe UI,\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n Fira Sans,\n Droid Sans,\n Helvetica Neue,\n sans-serif;\n font-weight: bold;\n text-transform: uppercase;\n color: rgb(154 165 177 / 75%);\n"]))),t.errorAlert=(0,l.css)(a||(a=r(["\n span:after {\n content: 'alert';\n\n position: relative;\n top: 1px;\n\n padding-left: 5px;\n\n -webkit-font-smoothing: antialiased;\n font-feature-settings: 'liga', 'dlig';\n font-family: Craft;\n }\n"],["\n span:after {\n content: 'alert';\n\n position: relative;\n top: 1px;\n\n padding-left: 5px;\n\n -webkit-font-smoothing: antialiased;\n font-feature-settings: 'liga', 'dlig';\n font-family: Craft;\n }\n"])))},51362:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.colors=t.beziers=t.shadows=t.borderRadius=t.spacings=t.BoxShadow=void 0;var i,a=o(n(55721));t.BoxShadow=a.default.div(i||(i=r(["\n box-shadow:\n 0 0 0 1px #cdd8e4,\n 0 2px 12px rgb(205 216 228 / 50%);\n"],["\n box-shadow:\n 0 0 0 1px #cdd8e4,\n 0 2px 12px rgb(205 216 228 / 50%);\n"]))),t.spacings={xs:"var(--xs)",sm:"var(--s)",md:"var(--m)",lg:"var(--l)",xl:"var(--xl)"},t.borderRadius={sm:"var(--small-border-radius)",md:"var(--medium-border-radius)",lg:"var(--large-border-radius)"},t.shadows={panel:"0 0 20px 10px rgb(205 216 228 / 50%)",box:"0 0 0 1px #cdd8e4, 0 2px 12px rgb(205 216 228 / 50%)",bottom:"inset 0 -1px 0 0 rgb(154 165 177 / 25%)",top:"inset 0 1px 0 0 rgb(154 165 177 / 25%)",left:"inset 1px 0 0 0 rgb(154 165 177 / 25%)",right:"inset -1px 0 0 0 rgb(154 165 177 / 25%)",container:"0 0 0 1px rgba(31, 41, 51, 0.1), 0 5px 20px rgba(31, 41, 51, 0.25)"},t.beziers={easeOut:"cubic-bezier(0.25, 0.1, 0.25, 1)",easeIn:"cubic-bezier(0.42, 0, 1, 1)",easeInOut:"cubic-bezier(0.42, 0, 0.58, 1)",bounce:{easeOut:"cubic-bezier(0.175, 0.885, 0.32, 1.275)"}},t.colors={hairline:"rgba(51,64,77,.1)",inputBorder:"rgba(96,125,159,0.25)",barelyVisible:"rgb(154 165 177 / 75%)",elements:{dropdown:"#dfe5ec"},error:"#cf1124",warning:"var(--warning-color)",success:"var(--success-color)",notice:"var(--notice-color)",enabled:"var(--enabled-color)",pending:"var(--pending-color)",disabled:"var(--disabled-color)",white:"var(--white)",black:"var(--black)",gray050:"var(--gray-050)",gray100:"var(--gray-100)",gray200:"var(--gray-200)",gray300:"var(--gray-300)",gray350:"var(--gray-350)",gray400:"var(--gray-400)",gray500:"var(--gray-500)",gray550:"var(--gray-550)",gray600:"var(--gray-600)",gray700:"var(--gray-700)",gray800:"var(--gray-800)",gray900:"var(--gray-900)",gray1000:"var(--gray-1000)",blue050:"var(--blue-050)",blue100:"var(--blue-100)",blue200:"var(--blue-200)",blue300:"var(--blue-300)",blue400:"var(--blue-400)",blue500:"var(--blue-500)",blue600:"var(--blue-600)",blue700:"var(--blue-700)",blue800:"var(--blue-800)",blue900:"var(--blue-900)",cyan050:"var(--cyan-050)",cyan100:"var(--cyan-100)",cyan200:"var(--cyan-200)",cyan300:"var(--cyan-300)",cyan400:"var(--cyan-400)",cyan500:"var(--cyan-500)",cyan600:"var(--cyan-600)",cyan700:"var(--cyan-700)",cyan800:"var(--cyan-800)",cyan900:"var(--cyan-900)",pink050:"var(--pink-050)",pink100:"var(--pink-100)",pink200:"var(--pink-200)",pink300:"var(--pink-300)",pink400:"var(--pink-400)",pink500:"var(--pink-500)",pink600:"var(--pink-600)",pink700:"var(--pink-700)",pink800:"var(--pink-800)",pink900:"var(--pink-900)",red050:"var(--red-050)",red100:"var(--red-100)",red200:"var(--red-200)",red300:"var(--red-300)",red400:"var(--red-400)",red500:"var(--red-500)",red600:"var(--red-600)",red700:"var(--red-700)",red800:"var(--red-800)",red900:"var(--red-900)",yellow050:"var(--yellow-050)",yellow100:"var(--yellow-100)",yellow200:"var(--yellow-200)",yellow300:"var(--yellow-300)",yellow400:"var(--yellow-400)",yellow500:"var(--yellow-500)",yellow600:"var(--yellow-600)",yellow700:"var(--yellow-700)",yellow800:"var(--yellow-800)",yellow900:"var(--yellow-900)",teal050:"var(--teal-050)",teal100:"var(--teal-100)",teal200:"var(--teal-200)",teal300:"var(--teal-300)",teal400:"var(--teal-400)",teal500:"var(--teal-500)",teal550:"var(--teal-550)",teal600:"var(--teal-600)",teal700:"var(--teal-700)",teal800:"var(--teal-800)",teal900:"var(--teal-900)"}},36260:function(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.APIError=t.API_ERROR=void 0,t.API_ERROR="api_error";var o=function(e){function n(n,r){var o=e.call(this,n)||this;return o.errors={},o.name=t.API_ERROR,o.errors=r,o}return r(n,e),n}(Error);t.APIError=o},94234:function(e,t){"use strict";var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.Type=t.Implementation=void 0,function(e){e.Options="options",e.GeneratedOptions="generatedOptions"}(n||(t.Implementation=n={})),function(e){e.Group="group",e.Rating="rating",e.OpinionScale="opinion-scale"}(r||(t.Type=r={})),function(e){e[e.NewField=0]="NewField",e[e.ExistingField=1]="ExistingField"}(o||(o={}))},39319:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TargetFieldType=void 0,function(e){e.Relation="relation",e.Custom="custom"}(n||(t.TargetFieldType=n={}))},88863:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateType=void 0,function(e){e.Database="database",e.File="file"}(n||(t.TemplateType=n={}))},83287:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyType=void 0,function(e){e.Attributes="attributes",e.Boolean="bool",e.Checkboxes="checkboxes",e.Color="color",e.ConditionalRules="conditionalRules",e.DateTime="dateTime",e.Field="field",e.FieldMapping="fieldMapping",e.Hidden="hidden",e.Integer="int",e.Label="label",e.MinMax="minMax",e.NotificationTemplate="notificationTemplate",e.Options="options",e.PageButton="pageButton",e.PageButtonsLayout="pageButtonsLayout",e.RecipientMapping="recipientMapping",e.Recipients="recipients",e.Select="select",e.DynamicSelect="dynamicSelect",e.String="string",e.Table="table",e.TabularData="tabularData",e.Textarea="textarea",e.WYSIWYG="wysiwyg",e.CodeEditor="codeEditor"}(n||(t.PropertyType=n={})),function(e){e[e.NewField=0]="NewField",e[e.ExistingField=1]="ExistingField"}(r||(r={}))},75094:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.Combinator=t.Display=t.operatorTypes=void 0,t.operatorTypes={boolean:["equals","notEquals"],numeric:["greaterThan","greaterThanOrEquals","lessThan","lessThanOrEquals"],string:["equals","notEquals","contains","notContains","startsWith","endsWith"],negative:["notEquals","notContains"]},function(e){e.Show="show",e.Hide="hide"}(n||(t.Display=n={})),function(e){e.And="and",e.Or="or"}(r||(t.Combinator=r={}))},8454:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0;t.range=function(e,t){void 0===t&&(e>1?(t=e,e=1):(t=e,e=0));for(var n=[],r=e;r<=t;r++)n.push(r);return n}},26457:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classes=t.elementTreeHasClass=void 0;t.elementTreeHasClass=function(e,t){if(void 0===t)return!1;if("string"==typeof t&&(t=t.split(" ")),!e||!e.classList)return!1;for(;e;){for(var n=0,r=t;no?o:e}},82538:function(){Number.prototype.inRange=function(e,t,n){void 0===n&&(n=!0);var r=Math.min(e,t),o=Math.max(e,t);return n?this>=r&&this<=o:this>r&&this=o)&&Object.keys(i.O).every((function(e){return i.O[e](n[u])}))?n.splice(u--,1):(l=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[n,r,o]},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);i.r(o);var a={};t=t||[null,n({}),n([]),n(n)];for(var l=2&r&&e;"object"==typeof l&&!~t.indexOf(l);l=n(l))Object.getOwnPropertyNames(l).forEach((function(t){a[t]=function(){return e[t]}}));return a.default=function(){return e},i.d(o,a),o},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={47:0};i.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,o,a=n[0],l=n[1],u=n[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(r in l)i.o(l,r)&&(i.m[r]=l[r]);if(u)var d=u(i)}for(t&&t(n);c=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:s},c)},f),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},16331:function(e,t,n){"use strict";var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:s},c)},f),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},25447:function(e,t,n){"use strict";e.exports=n(44868)},99550:function(e,t,n){"use strict";e.exports=n(22360)},6901:function(e,t,n){"use strict";e.exports=n(78476)},8669:function(e,t,n){"use strict";e.exports=n(19455)},53609:function(e,t,n){"use strict";e.exports=n(96721)},410:function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:p(e)?2:h(e)?3:0}function l(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){return 2===s(e)?e.get(t):e[t]}function f(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){return H&&e instanceof Map}function h(e){return J&&e instanceof Set}function g(e){return e.o||e.t}function y(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=K(e);delete t[W];for(var n=G(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=b),Object.freeze(e),t&&u(e,(function(e,t){return m(t,!0)}),!0)),e}function b(){r(2)}function v(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function w(e){var t=V[e];return t||r(18,e),t}function x(e,t){V[e]||(V[e]=t)}function k(){return F}function S(e,t){t&&(w("Patches"),e.u=[],e.s=[],e.v=t)}function j(e){O(e),e.p.forEach(_),e.p=null}function O(e){e===F&&(F=e.l)}function E(e){return F={p:[],l:F,h:e,m:!0,_:0}}function _(e){var t=e[W];0===t.i||1===t.i?t.j():t.g=!0}function C(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||w("ES5").S(t,e,o),o?(n[W].P&&(j(t),r(4)),i(e)&&(e=P(t,e),t.l||T(t,e)),t.u&&w("Patches").M(n[W].t,e,t.u,t.s)):e=P(t,n,[]),j(t),t.u&&t.v(t.u,t.s),e!==Q?e:void 0}function P(e,t,n){if(v(t))return t;var r=t[W];if(!r)return u(t,(function(o,i){return D(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return T(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=y(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),u(i,(function(t,i){return D(e,r,o,t,i,n,a)})),T(e,o,!1),n&&e.u&&w("Patches").N(r,n,e.u,e.s)}return r.o}function D(e,t,n,r,a,u,s){if(o(a)){var c=P(e,a,u&&t&&3!==t.i&&!l(t.R,r)?u.concat(r):void 0);if(f(n,r,c),!o(c))return;e.m=!1}else s&&n.add(a);if(i(a)&&!v(a)){if(!e.h.D&&e._<1)return;P(e,a),t&&t.A.l||T(e,a)}}function T(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&m(t,n)}function M(e,t){var n=e[W];return(n?g(n):e)[t]}function A(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function L(e){e.P||(e.P=!0,e.l&&L(e.l))}function N(e){e.o||(e.o=y(e.t))}function R(e,t,n){var r=p(t)?w("MapSet").F(t,n):h(t)?w("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:k(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=$;n&&(o=[r],i=ee);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):w("ES5").J(t,n);return(n?n.A:k()).p.push(r),r}function Y(e){return o(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[W],o=s(t);if(r){if(!r.P&&(r.i<4||!w("ES5").K(r)))return r.t;r.I=!0,n=I(t,o),r.I=!1}else n=I(t,o);return u(n,(function(t,o){r&&c(r.t,t)===o||f(n,t,e(o))})),3===o?new Set(n):n}(e)}function I(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return y(e)}function Z(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[W];return $.get(t,e)},set:function(t){var n=this[W];$.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][W];if(!o.P)switch(o.i){case 5:r(o)&&L(o);break;case 4:n(o)&&L(o)}}}function n(e){for(var t=e.t,n=e.k,r=G(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==W){var a=t[i];if(void 0===a&&!l(t,i))return!0;var u=n[i],s=u&&u[W];if(s?s.t!==a:!d(u,a))return!0}}var c=!!t[W];return r.length!==G(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=w("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),ne=new te,re=ne.produce,oe=(ne.produceWithPatches.bind(ne),ne.setAutoFreeze.bind(ne),ne.setUseProxies.bind(ne),ne.applyPatches.bind(ne),ne.createDraft.bind(ne),ne.finishDraft.bind(ne),re),ie=n(74081),ae="NOT_FOUND";var ue=function(e,t){return e===t};function se(e,t){var n,r,o="object"==typeof t?t:{equalityCheck:t},i=o.equalityCheck,a=void 0===i?ue:i,u=o.maxSize,s=void 0===u?1:u,l=o.resultEqualityCheck,c=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o-1){var o=n[r];return r>0&&(n.splice(r,1),n.unshift(o)),o.value}return ae}return{get:r,put:function(t,o){r(t)===ae&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(s,c);function d(){var t=f.get(arguments);if(t===ae){if(t=e.apply(null,arguments),l){var n=f.getEntries().find((function(e){return l(e.value,t)}));n&&(t=n.value)}f.put(arguments,t)}return t}return d.clearCache=function(){return f.clear()},d}function le(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]-1}function Ne(e){return""+e}function Re(e){return void 0===e&&(e={}),function(){return function(e){return function(t){return e(t)}}}}var Ye=function(e){function t(){for(var n=[],r=0;r",value:e};if("object"!=typeof e||null===e)return!1;if(null==i?void 0:i.has(e))return!1;for(var u=null!=r?r(e):Object.entries(e),s=o.length>0,l=function(e,u){var l=t?t+"."+e:e;if(s&&o.some((function(e){return e instanceof RegExp?e.test(l):l===e})))return"continue";return n(u)?"object"==typeof u&&(a=He(u,l,n,r,o,i))?{value:a}:void 0:{value:{keyPath:l,value:u}}},c=0,f=u;c0){var i=t.filter((function(t){return function(t,n,r){var o=r.entities[n.id],i=Object.assign({},o,n.changes),a=$e(i,e),u=a!==n.id;return u&&(t[n.id]=a,delete r.entities[n.id]),r.entities[a]=i,u}(r,t,n)})).length>0;i&&(n.ids=Object.keys(n.entities))}}function a(t,r){var o=tt(t,e,r),a=o[0];i(o[1],r),n(a,r)}return{removeAll:(u=function(e){Object.assign(e,{ids:[],entities:{}})},s=Ve((function(e,t){return u(t)})),function(e){return s(e,void 0)}),addOne:Ve(t),addMany:Ve(n),setOne:Ve(r),setMany:Ve((function(e,t){for(var n=0,o=e=et(e);n-1;return n&&r}function gt(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function yt(){for(var e=[],t=0;t0)for(var d=e.getState(),p=Array.from(n.values()),h=0,g=p;he.length?o.NO_MATCH:e===t?o.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?o.EQUAL:e.startsWith(t)?o.STARTS_WITH:e.includes(` ${t}`)?o.WORD_STARTS_WITH:e.includes(t)?o.CONTAINS:1===t.length?o.NO_MATCH:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?o.ACRONYM:function(e,t){let n=0,r=0;function i(e,t,r){for(let o=r,i=t.length;o-1))return o.NO_MATCH}return a(r-u)}(e,t)}function a(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=r.removeAccents(e)),e}function u(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const r=n(e);return null==r?[]:Array.isArray(r)?r:[String(r)]}const s={maxRanking:1/0,minRanking:-1/0};function l(e){return"function"==typeof e?s:{...s,...e}}t.compareItems=function(e,t){return e.rank===t.rank?0:e.rank>t.rank?-1:1},t.rankItem=function(e,t,n){var r;if((n=n||{}).threshold=null!=(r=n.threshold)?r:o.MATCHES,!n.accessors){const r=i(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}const a=function(e,t){const n=[];for(let r=0,o=t.length;r=o.MATCHES?u=l:u>c&&(u=c),u=Math.min(u,c),u>=f&&u>s.rank&&(s.rank=u,s.passed=!0,s.accessorIndex=e,s.accessorThreshold=f,s.rankedValue=r.itemValue)}return s},t.rankings=o},64864:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},r=Object.keys(n).join("|"),o=new RegExp(r,"g");t.removeAccents=function(e){return e.replace(o,(e=>n[e]))}},71143:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(48254),o=n(84492);class i extends r.Subscribable{constructor(){super(),this.setup=e=>{if(!o.isServer&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}const a=new i;t.FocusManager=i,t.focusManager=a},85246:function(e,t){"use strict";function n(e){return e.state.isPaused}function r(e){return"success"===e.state.status}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultShouldDehydrateMutation=n,t.defaultShouldDehydrateQuery=r,t.dehydrate=function(e,t={}){const o=[],i=[];if(!1!==t.dehydrateMutations){const r=t.shouldDehydrateMutation||n;e.getMutationCache().getAll().forEach((e=>{r(e)&&o.push(function(e){return{mutationKey:e.options.mutationKey,state:e.state}}(e))}))}if(!1!==t.dehydrateQueries){const n=t.shouldDehydrateQuery||r;e.getQueryCache().getAll().forEach((e=>{n(e)&&i.push(function(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}(e))}))}return{mutations:o,queries:i}},t.hydrate=function(e,t,n){if("object"!=typeof t||null===t)return;const r=e.getMutationCache(),o=e.getQueryCache(),i=t.mutations||[],a=t.queries||[];i.forEach((t=>{var o;r.build(e,{...null==n||null==(o=n.defaultOptions)?void 0:o.mutations,mutationKey:t.mutationKey},t.state)})),a.forEach((({queryKey:t,state:r,queryHash:i})=>{var a;const u=o.get(i);if(u){if(u.state.dataUpdatedAt{e.fetchFn=()=>{var t,o,i,a,u,s;const l=null==(t=e.fetchOptions)||null==(o=t.meta)?void 0:o.refetchPage,c=null==(i=e.fetchOptions)||null==(a=i.meta)?void 0:a.fetchMore,f=null==c?void 0:c.pageParam,d="forward"===(null==c?void 0:c.direction),p="backward"===(null==c?void 0:c.direction),h=(null==(u=e.state.data)?void 0:u.pages)||[],g=(null==(s=e.state.data)?void 0:s.pageParams)||[];let y=g,m=!1;const b=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(e,t,n,r)=>(y=r?[t,...y]:[...y,t],r?[n,...e]:[...e,n]),w=(t,n,r,o)=>{if(m)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const i={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var a;a=i,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{m=!0})),e.signal}});const u=b(i);return Promise.resolve(u).then((e=>v(t,r,e,o)))};let x;if(h.length)if(d){const t=void 0!==f,r=t?f:n(e.options,h);x=w(h,t,r)}else if(p){const t=void 0!==f,n=t?f:r(e.options,h);x=w(h,t,n,!0)}else{y=[];const t=void 0===e.options.getNextPageParam;x=!l||!h[0]||l(h[0],0,h)?w([],t,g[0]):Promise.resolve(v([],g[0],h[0]));for(let r=1;r{if(!l||!h[r]||l(h[r],r,h)){const i=t?g[r]:n(e.options,o);return w(o,t,i)}return Promise.resolve(v(o,g[r],h[r]))}))}else x=w([]);return x.then((e=>({pages:e,pageParams:y})))}}}}},56784:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(22849),o=n(71415);class i extends r.QueryObserver{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:o.infiniteQueryBehavior()},t)}getOptimisticResult(e){return e.behavior=o.infiniteQueryBehavior(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var n,r,i,a,u,s;const{state:l}=e,c=super.createResult(e,t),{isFetching:f,isRefetching:d}=c,p=f&&"forward"===(null==(n=l.fetchMeta)||null==(r=n.fetchMore)?void 0:r.direction),h=f&&"backward"===(null==(i=l.fetchMeta)||null==(a=i.fetchMore)?void 0:a.direction);return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:o.hasNextPage(t,null==(u=l.data)?void 0:u.pages),hasPreviousPage:o.hasPreviousPage(t,null==(s=l.data)?void 0:s.pages),isFetchingNextPage:p,isFetchingPreviousPage:h,isRefetching:d&&!p&&!h}}}t.InfiniteQueryObserver=i},46727:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=console;t.defaultLogger=n},58968:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(46727),o=n(73349),i=n(39849),a=n(12268);class u extends i.Removable{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||r.defaultLogger,this.observers=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=a.createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,o,i,u,s,l,c;if(!t){var f,d,p,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(f=(d=this.mutationCache.config).onMutate)?void 0:f.call(d,this.state.variables,this));const e=await(null==(p=(h=this.options).onMutate)?void 0:p.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const a=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,a,this.state.variables,this.state.context,this)),await(null==(o=(i=this.options).onSuccess)?void 0:o.call(i,a,this.state.variables,this.state.context)),await(null==(u=(s=this.mutationCache.config).onSettled)?void 0:u.call(s,a,null,this.state.variables,this.state.context,this)),await(null==(l=(c=this.options).onSettled)?void 0:l.call(c,a,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:a}),a}catch(e){try{var g,y,m,b,v,w,x,k;throw await(null==(g=(y=this.mutationCache.config).onError)?void 0:g.call(y,e,this.state.variables,this.state.context,this)),await(null==(m=(b=this.options).onError)?void 0:m.call(b,e,this.state.variables,this.state.context)),await(null==(v=(w=this.mutationCache.config).onSettled)?void 0:v.call(w,void 0,e,this.state.variables,this.state.context,this)),await(null==(x=(k=this.options).onSettled)?void 0:x.call(k,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!a.canFetch(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),o.notifyManager.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}t.Mutation=u,t.getDefaultState=s},18684:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73349),o=n(58968),i=n(84492),a=n(48254);class u extends a.Subscribable{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new o.Mutation({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){r.notifyManager.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>i.matchMutation(e,t)))}findAll(e){return this.mutations.filter((t=>i.matchMutation(e,t)))}notify(e){r.notifyManager.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return r.notifyManager.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(i.noop)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}t.MutationCache=u},28442:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(58968),o=n(73349),i=n(48254),a=n(84492);class u extends i.Subscribable{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),a.shallowEqualObjects(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:r.getDefaultState(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){o.notifyManager.batch((()=>{var t,n,r,o;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(o=this.mutateOptions).onSettled)||r.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var i,a,u,s;null==(i=(a=this.mutateOptions).onError)||i.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(u=(s=this.mutateOptions).onSettled)||u.call(s,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}}t.MutationObserver=u},73349:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84492);function o(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const i=o=>{t?e.push(o):r.scheduleMicrotask((()=>{n(o)}))},a=()=>{const t=e;e=[],t.length&&r.scheduleMicrotask((()=>{o((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||a()}return n},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}const i=o();t.createNotifyManager=o,t.notifyManager=i},59357:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(48254),o=n(84492);const i=["online","offline"];class a extends r.Subscribable{constructor(){super(),this.setup=e=>{if(!o.isServer&&window.addEventListener){const t=()=>e();return i.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{i.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}const u=new a;t.OnlineManager=a,t.onlineManager=u},74844:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84492),o=n(73349),i=n(22849),a=n(48254);class u extends a.Subscribable{constructor(e,t){super(),this.client=e,this.queries=[],this.result=[],this.observers=[],this.observersMap={},t&&this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.observers.forEach((e=>{e.subscribe((t=>{this.onUpdate(e,t)}))}))}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach((e=>{e.destroy()}))}setQueries(e,t){this.queries=e,o.notifyManager.batch((()=>{const e=this.observers,n=this.findMatchingObservers(this.queries);n.forEach((e=>e.observer.setOptions(e.defaultedQueryOptions,t)));const o=n.map((e=>e.observer)),i=Object.fromEntries(o.map((e=>[e.options.queryHash,e]))),a=o.map((e=>e.getCurrentResult())),u=o.some(((t,n)=>t!==e[n]));(e.length!==o.length||u)&&(this.observers=o,this.observersMap=i,this.result=a,this.hasListeners()&&(r.difference(e,o).forEach((e=>{e.destroy()})),r.difference(o,e).forEach((e=>{e.subscribe((t=>{this.onUpdate(e,t)}))})),this.notify()))}))}getCurrentResult(){return this.result}getQueries(){return this.observers.map((e=>e.getCurrentQuery()))}getObservers(){return this.observers}getOptimisticResult(e){return this.findMatchingObservers(e).map((e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)))}findMatchingObservers(e){const t=this.observers,n=new Map(t.map((e=>[e.options.queryHash,e]))),r=e.map((e=>this.client.defaultQueryOptions(e))),o=r.flatMap((e=>{const t=n.get(e.queryHash);return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]})),a=new Set(o.map((e=>e.defaultedQueryOptions.queryHash))),u=r.filter((e=>!a.has(e.queryHash))),s=new Set(o.map((e=>e.observer))),l=t.filter((e=>!s.has(e))),c=e=>{const t=this.client.defaultQueryOptions(e),n=this.observersMap[t.queryHash];return null!=n?n:new i.QueryObserver(this.client,t)},f=u.map(((e,t)=>{if(e.keepPreviousData){const n=l[t];if(void 0!==n)return{defaultedQueryOptions:e,observer:n}}return{defaultedQueryOptions:e,observer:c(e)}}));return o.concat(f).sort(((e,t)=>r.indexOf(e.defaultedQueryOptions)-r.indexOf(t.defaultedQueryOptions)))}onUpdate(e,t){const n=this.observers.indexOf(e);-1!==n&&(this.result=r.replaceAt(this.result,n,t),this.notify())}notify(){o.notifyManager.batch((()=>{this.listeners.forEach((({listener:e})=>{e(this.result)}))}))}}t.QueriesObserver=u},54728:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84492),o=n(46727),i=n(73349),a=n(12268),u=n(39849);class s extends u.Removable{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||o.defaultLogger,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=r.replaceData(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(r.noop).catch(r.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!r.timeUntilStale(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,o;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const u=r.getAbortController(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(u)return this.abortSignalConsumed=!0,u.signal}})};l(s);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var f;(l(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(o=c.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(f=c.fetchOptions)?void 0:f.meta});const d=e=>{var t,n,r,o;(a.isCancelledError(e)&&e.silent||this.dispatch({type:"error",error:e}),a.isCancelledError(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=a.createRetryer({fn:c.fetchFn,abort:null==u?void 0:u.abort.bind(u),onSuccess:e=>{var t,n,r,o;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):d(new Error(this.queryHash+" data is undefined"))},onError:d,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:a.canFetch(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return a.isCancelledError(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.notifyManager.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}t.Query=s},5416:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84492),o=n(54728),i=n(73349),a=n(48254);class u extends a.Subscribable{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var i;const a=t.queryKey,u=null!=(i=t.queryHash)?i:r.hashQueryKeyByOptions(a,t);let s=this.get(u);return s||(s=new o.Query({cache:this,logger:e.getLogger(),queryKey:a,queryHash:u,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){i.notifyManager.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=r.parseFilterArgs(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>r.matchQuery(n,e)))}findAll(e,t){const[n]=r.parseFilterArgs(e,t);return Object.keys(n).length>0?this.queries.filter((e=>r.matchQuery(n,e))):this.queries}notify(e){i.notifyManager.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){i.notifyManager.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){i.notifyManager.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}t.QueryCache=u},3170:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84492),o=n(5416),i=n(18684),a=n(71143),u=n(59357),s=n(73349),l=n(71415),c=n(46727);t.QueryClient=class{constructor(e={}){this.queryCache=e.queryCache||new o.QueryCache,this.mutationCache=e.mutationCache||new i.MutationCache,this.logger=e.logger||c.defaultLogger,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=a.focusManager.subscribe((()=>{a.focusManager.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=u.onlineManager.subscribe((()=>{u.onlineManager.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=r.parseFilterArgs(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const o=r.parseQueryArgs(e,t,n),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),i=null==o?void 0:o.state.data,a=r.functionalUpdate(t,i);if(void 0===a)return;const u=r.parseQueryArgs(e),s=this.defaultQueryOptions(u);return this.queryCache.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return s.notifyManager.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=r.parseFilterArgs(e,t),o=this.queryCache;s.notifyManager.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,i]=r.parseFilterArgs(e,t,n),a=this.queryCache,u={type:"active",...o};return s.notifyManager.batch((()=>(a.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(u,i))))}cancelQueries(e,t,n){const[o,i={}]=r.parseFilterArgs(e,t,n);void 0===i.revert&&(i.revert=!0);const a=s.notifyManager.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(i)))));return Promise.all(a).then(r.noop).catch(r.noop)}invalidateQueries(e,t,n){const[o,i]=r.parseFilterArgs(e,t,n);return s.notifyManager.batch((()=>{var e,t;if(this.queryCache.findAll(o).forEach((e=>{e.invalidate()})),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,i)}))}refetchQueries(e,t,n){const[o,i]=r.parseFilterArgs(e,t,n),a=s.notifyManager.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let u=Promise.all(a).then(r.noop);return null!=i&&i.throwOnError||(u=u.catch(r.noop)),u}fetchQuery(e,t,n){const o=r.parseQueryArgs(e,t,n),i=this.defaultQueryOptions(o);void 0===i.retry&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(r.noop).catch(r.noop)}fetchInfiniteQuery(e,t,n){const o=r.parseQueryArgs(e,t,n);return o.behavior=l.infiniteQueryBehavior(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(r.noop).catch(r.noop)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>r.hashQueryKey(e)===r.hashQueryKey(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>r.partialMatchKey(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>r.hashQueryKey(e)===r.hashQueryKey(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>r.partialMatchKey(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=r.hashQueryKeyByOptions(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}},22849:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84492),o=n(73349),i=n(71143),a=n(48254),u=n(12268);class s extends a.Subscribable{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),l(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return c(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return c(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),r.shallowEqualObjects(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&f(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const a=this.computeRefetchInterval();!i||this.currentQuery===o&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!r.shallowEqualObjects(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(r.noop)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),r.isServer||this.currentResult.isStale||!r.isValidTimeout(this.options.staleTime))return;const e=r.timeUntilStale(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!r.isServer&&!1!==this.options.enabled&&r.isValidTimeout(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||i.focusManager.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,s=this.currentResultOptions,c=e!==n,p=c?e.state:this.currentQueryInitialState,h=c?this.currentResult:this.previousQueryResult,{state:g}=e;let y,{dataUpdatedAt:m,error:b,errorUpdatedAt:v,fetchStatus:w,status:x}=g,k=!1,S=!1;if(t._optimisticResults){const r=this.hasListeners(),i=!r&&l(e,t),a=r&&f(e,n,t,o);(i||a)&&(w=u.canFetch(e.options.networkMode)?"fetching":"paused",m||(x="loading")),"isRestoring"===t._optimisticResults&&(w="idle")}if(t.keepPreviousData&&!g.dataUpdatedAt&&null!=h&&h.isSuccess&&"error"!==x)y=h.data,m=h.dataUpdatedAt,x=h.status,k=!0;else if(t.select&&void 0!==g.data)if(i&&g.data===(null==a?void 0:a.data)&&t.select===this.selectFn)y=this.selectResult;else try{this.selectFn=t.select,y=t.select(g.data),y=r.replaceData(null==i?void 0:i.data,y,t),this.selectResult=y,this.selectError=null}catch(e){0,this.selectError=e}else y=g.data;if(void 0!==t.placeholderData&&void 0===y&&"loading"===x){let e;if(null!=i&&i.isPlaceholderData&&t.placeholderData===(null==s?void 0:s.placeholderData))e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){0,this.selectError=e}void 0!==e&&(x="success",y=r.replaceData(null==i?void 0:i.data,e,t),S=!0)}this.selectError&&(b=this.selectError,y=this.selectResult,v=Date.now(),x="error");const j="fetching"===w,O="loading"===x,E="error"===x;return{status:x,fetchStatus:w,isLoading:O,isSuccess:"success"===x,isError:E,isInitialLoading:O&&j,data:y,dataUpdatedAt:m,error:b,errorUpdatedAt:v,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:j,isRefetching:j&&!O,isLoadingError:E&&0===g.dataUpdatedAt,isPaused:"paused"===w,isPlaceholderData:S,isPreviousData:k,isRefetchError:E&&0!==g.dataUpdatedAt,isStale:d(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,r.shallowEqualObjects(n,t))return;this.currentResult=n;const o={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(o.listeners=!0),this.notify({...o,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||u.isCancelledError(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){o.notifyManager.batch((()=>{var t,n,r,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(o=this.options).onSettled)||r.call(o,this.currentResult.data,null);else if(e.onError){var i,a,u,s;null==(i=(a=this.options).onError)||i.call(a,this.currentResult.error),null==(u=(s=this.options).onSettled)||u.call(s,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function l(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&c(e,t,t.refetchOnMount)}function c(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&d(e,t)}return!1}function f(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&d(e,n)}function d(e,t){return e.isStaleByTime(t.staleTime)}t.QueryObserver=s},39849:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84492);t.Removable=class{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),r.isValidTimeout(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:r.isServer?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},12268:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(71143),o=n(59357),i=n(84492);function a(e){return Math.min(1e3*2**e,3e4)}function u(e){return"online"!==(null!=e?e:"online")||o.onlineManager.isOnline()}class s{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}t.CancelledError=s,t.canFetch=u,t.createRetryer=function(e){let t,n,l,c=!1,f=0,d=!1;const p=new Promise(((e,t)=>{n=e,l=t})),h=()=>!r.focusManager.isFocused()||"always"!==e.networkMode&&!o.onlineManager.isOnline(),g=r=>{d||(d=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},y=n=>{d||(d=!0,null==e.onError||e.onError(n),null==t||t(),l(n))},m=()=>new Promise((n=>{t=e=>{const t=d||!h();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,d||null==e.onContinue||e.onContinue()})),b=()=>{if(d)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(g).catch((t=>{var n,r;if(d)return;const o=null!=(n=e.retry)?n:3,u=null!=(r=e.retryDelay)?r:a,s="function"==typeof u?u(f,t):u,l=!0===o||"number"==typeof o&&f{if(h())return m()})).then((()=>{c?y(t):b()}))):y(t)}))};return u(e.networkMode)?b():m().then(b),{promise:p,cancel:t=>{d||(y(new s(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?p:Promise.resolve(),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1}}},t.isCancelledError=function(e){return e instanceof s}},48254:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},84492:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n="undefined"==typeof window||"Deno"in window;function r(e,t){return((null==t?void 0:t.queryKeyHashFn)||o)(e)}function o(e){return JSON.stringify(e,((e,t)=>l(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function i(e,t){return a(e,t)}function a(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!a(e[n],t[n]))))}function u(e,t){if(e===t)return e;const n=s(e)&&s(t);if(n||l(e)&&l(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let r=0;r{setTimeout(t,e)}))}t.difference=function(e,t){return e.filter((e=>!t.includes(e)))},t.functionalUpdate=function(e,t){return"function"==typeof e?e(t):e},t.getAbortController=function(){if("function"==typeof AbortController)return new AbortController},t.hashQueryKey=o,t.hashQueryKeyByOptions=r,t.isError=function(e){return e instanceof Error},t.isPlainArray=s,t.isPlainObject=l,t.isQueryKey=f,t.isServer=n,t.isValidTimeout=function(e){return"number"==typeof e&&e>=0&&e!==1/0},t.matchMutation=function(e,t){const{exact:n,fetching:r,predicate:a,mutationKey:u}=e;if(f(u)){if(!t.options.mutationKey)return!1;if(n){if(o(t.options.mutationKey)!==o(u))return!1}else if(!i(t.options.mutationKey,u))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(a&&!a(t))},t.matchQuery=function(e,t){const{type:n="all",exact:o,fetchStatus:a,predicate:u,queryKey:s,stale:l}=e;if(f(s))if(o){if(t.queryHash!==r(s,t.options))return!1}else if(!i(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof l||t.isStale()===l)&&((void 0===a||a===t.state.fetchStatus)&&!(u&&!u(t)))},t.noop=function(){},t.parseFilterArgs=function(e,t,n){return f(e)?[{...t,queryKey:e},n]:[e||{},t]},t.parseMutationArgs=function(e,t,n){return f(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}},t.parseMutationFilterArgs=function(e,t,n){return f(e)?[{...t,mutationKey:e},n]:[e||{},t]},t.parseQueryArgs=function(e,t,n){return f(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e},t.partialDeepEqual=a,t.partialMatchKey=i,t.replaceAt=function(e,t,n){const r=e.slice(0);return r[t]=n,r},t.replaceData=function(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?u(e,t):t},t.replaceEqualDeep=u,t.scheduleMicrotask=function(e){d(0).then(e)},t.shallowEqualObjects=function(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0},t.sleep=d,t.timeUntilStale=function(e,t){return Math.max(e+(t||0)-Date.now(),0)}},49904:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3196),o=n(2784),i=n(36131),a=n(36339);function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var l=s(o),c=u(i);const f=a.styled("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),d=a.styled("span",{color:"white"}),p=a.styled("button",{cursor:"pointer",color:"white"}),h=a.styled("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),g=({value:e})=>{const[t,n]=l.useState("NoCopy");return l.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(c.default.stringify(e)).then((()=>{n("SuccessCopy"),setTimeout((()=>{n("NoCopy")}),1500)}),(e=>{console.error("Failed to copy: ",e),n("ErrorCopy"),setTimeout((()=>{n("NoCopy")}),1500)}))}:void 0,style:{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}},"NoCopy"===t?l.createElement(w,null):"SuccessCopy"===t?l.createElement(k,null):l.createElement(x,null))},y=a.styled("span",((e,t)=>({color:t.danger}))),m=a.styled("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),b=a.styled("span",{color:"grey",fontSize:".7em"}),v=({expanded:e,style:t={}})=>l.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),w=()=>l.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},l.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},l.createElement("path",{fill:"currentColor",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"}),l.createElement("path",{fill:"currentColor",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"}))),x=()=>l.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},l.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},l.createElement("path",{fill:"red",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),l.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),k=()=>l.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},l.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},l.createElement("path",{fill:"green",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})));function S(e,t){if(t<1)return[];let n=0;const r=[];for(;n{const[x,k]=l.useState([]);return l.createElement(f,{key:t},o.length?l.createElement(l.Fragment,null,l.createElement(h,{onClick:()=>c()},l.createElement(v,{expanded:u})," ",t," ",l.createElement(b,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),s?l.createElement(g,{value:n}):null,u?1===o.length?l.createElement(m,null,r.map(e)):l.createElement(m,null,o.map(((t,n)=>l.createElement("div",{key:n},l.createElement(f,null,l.createElement(p,{onClick:()=>k((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},l.createElement(v,{expanded:u})," [",n*w," ..."," ",n*w+w-1,"]"),x.includes(n)?l.createElement(m,null,t.map(e)):null))))):null):l.createElement(l.Fragment,null,l.createElement(d,null,t,":")," ",l.createElement(y,null,a.displayValue(n))))};t.CopyButton=g,t.DefaultRenderer=j,t.Entry=f,t.ExpandButton=h,t.Expander=v,t.Info=b,t.Label=d,t.LabelButton=p,t.SubEntries=m,t.Value=y,t.chunkArray=S,t.default=function e({value:t,defaultExpanded:n,renderer:o=j,pageSize:i=100,copyable:a=!1,...u}){const[s,c]=l.useState(Boolean(n)),f=l.useCallback((()=>c((e=>!e))),[]);let d=typeof t,p=[];const h=e=>{const t=!0===n?{[e.label]:!0}:null==n?void 0:n[e.label];return{...e,defaultExpanded:t}};var g;Array.isArray(t)?(d="array",p=t.map(((e,t)=>h({label:t.toString(),value:e})))):null!==t&&"object"==typeof t&&(g=t,Symbol.iterator in g)&&"function"==typeof t[Symbol.iterator]?(d="Iterable",p=Array.from(t,((e,t)=>h({label:t.toString(),value:e})))):"object"==typeof t&&null!==t&&(d="object",p=Object.entries(t).map((([e,t])=>h({label:e,value:t}))));const y=S(p,i);return o({handleEntry:n=>l.createElement(e,r.extends({key:n.label,value:t,renderer:o,copyable:a},u,n)),type:d,subEntries:p,subEntryPages:y,value:t,expanded:s,copyable:a,toggleExpanded:f,pageSize:i,...u})}},86769:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3196);function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var i=o(n(2784));t.default=function(e){return i.createElement("svg",r.extends({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-33.000000, 0.000000)"},i.createElement("path",{d:"M72.7239712,61.3436237 C69.631224,46.362877 68.9675112,34.8727722 70.9666331,26.5293551 C72.1555965,21.5671678 74.3293088,17.5190846 77.6346064,14.5984631 C81.1241394,11.5150478 85.5360327,10.0020122 90.493257,10.0020122 C98.6712013,10.0020122 107.26826,13.7273214 116.455725,20.8044264 C120.20312,23.6910458 124.092437,27.170411 128.131651,31.2444746 C128.45314,30.8310265 128.816542,30.4410453 129.22143,30.0806152 C140.64098,19.9149716 150.255245,13.5989272 158.478408,11.1636507 C163.367899,9.715636 167.958526,9.57768202 172.138936,10.983031 C176.551631,12.4664684 180.06766,15.5329489 182.548314,19.8281091 C186.642288,26.9166735 187.721918,36.2310983 186.195595,47.7320243 C185.573451,52.4199112 184.50985,57.5263831 183.007094,63.0593153 C183.574045,63.1277086 184.142416,63.2532808 184.705041,63.4395297 C199.193932,68.2358678 209.453582,73.3937462 215.665021,79.2882839 C219.360669,82.7953831 221.773972,86.6998434 222.646365,91.0218204 C223.567176,95.5836746 222.669313,100.159332 220.191548,104.451297 C216.105211,111.529614 208.591643,117.11221 197.887587,121.534031 C193.589552,123.309539 188.726579,124.917559 183.293259,126.363748 C183.541176,126.92292 183.733521,127.516759 183.862138,128.139758 C186.954886,143.120505 187.618598,154.61061 185.619477,162.954027 C184.430513,167.916214 182.256801,171.964297 178.951503,174.884919 C175.46197,177.968334 171.050077,179.48137 166.092853,179.48137 C157.914908,179.48137 149.31785,175.756061 140.130385,168.678956 C136.343104,165.761613 132.410866,162.238839 128.325434,158.108619 C127.905075,158.765474 127.388968,159.376011 126.77857,159.919385 C115.35902,170.085028 105.744755,176.401073 97.5215915,178.836349 C92.6321009,180.284364 88.0414736,180.422318 83.8610636,179.016969 C79.4483686,177.533532 75.9323404,174.467051 73.4516862,170.171891 C69.3577116,163.083327 68.2780823,153.768902 69.8044053,142.267976 C70.449038,137.410634 71.56762,132.103898 73.1575891,126.339009 C72.5361041,126.276104 71.9120754,126.144816 71.2949591,125.940529 C56.8060684,121.144191 46.5464184,115.986312 40.3349789,110.091775 C36.6393312,106.584675 34.2260275,102.680215 33.3536352,98.3582381 C32.4328237,93.7963839 33.3306866,89.2207269 35.8084524,84.9287618 C39.8947886,77.8504443 47.4083565,72.2678481 58.1124133,67.8460273 C62.5385143,66.0176154 67.5637208,64.366822 73.1939394,62.8874674 C72.9933393,62.3969171 72.8349374,61.8811235 72.7239712,61.3436237 Z",fill:"#002C4B",fillRule:"nonzero",transform:"translate(128.000000, 95.000000) scale(-1, 1) translate(-128.000000, -95.000000) "}),i.createElement("path",{d:"M113.396882,64 L142.608177,64 C144.399254,64 146.053521,64.958025 146.944933,66.5115174 L161.577138,92.0115174 C162.461464,93.5526583 162.461464,95.4473417 161.577138,96.9884826 L146.944933,122.488483 C146.053521,124.041975 144.399254,125 142.608177,125 L113.396882,125 C111.605806,125 109.951539,124.041975 109.060126,122.488483 L94.4279211,96.9884826 C93.543596,95.4473417 93.543596,93.5526583 94.4279211,92.0115174 L109.060126,66.5115174 C109.951539,64.958025 111.605806,64 113.396882,64 Z M138.987827,70.2765273 C140.779849,70.2765273 142.434839,71.2355558 143.325899,72.7903404 L154.343038,92.0138131 C155.225607,93.5537825 155.225607,95.4462175 154.343038,96.9861869 L143.325899,116.20966 C142.434839,117.764444 140.779849,118.723473 138.987827,118.723473 L117.017233,118.723473 C115.225211,118.723473 113.570221,117.764444 112.67916,116.20966 L101.662022,96.9861869 C100.779452,95.4462175 100.779452,93.5537825 101.662022,92.0138131 L112.67916,72.7903404 C113.570221,71.2355558 115.225211,70.2765273 117.017233,70.2765273 L138.987827,70.2765273 Z M135.080648,77.1414791 L120.924411,77.1414791 C119.134228,77.1414791 117.480644,78.0985567 116.5889,79.6508285 L116.5889,79.6508285 L109.489217,92.0093494 C108.603232,93.5515958 108.603232,95.4484042 109.489217,96.9906506 L109.489217,96.9906506 L116.5889,109.349172 C117.480644,110.901443 119.134228,111.858521 120.924411,111.858521 L120.924411,111.858521 L135.080648,111.858521 C136.870831,111.858521 138.524416,110.901443 139.41616,109.349172 L139.41616,109.349172 L146.515843,96.9906506 C147.401828,95.4484042 147.401828,93.5515958 146.515843,92.0093494 L146.515843,92.0093494 L139.41616,79.6508285 C138.524416,78.0985567 136.870831,77.1414791 135.080648,77.1414791 L135.080648,77.1414791 Z M131.319186,83.7122186 C133.108028,83.7122186 134.760587,84.6678753 135.652827,86.2183156 L138.983552,92.0060969 C139.87203,93.5500005 139.87203,95.4499995 138.983552,96.9939031 L135.652827,102.781684 C134.760587,104.332125 133.108028,105.287781 131.319186,105.287781 L124.685874,105.287781 C122.897032,105.287781 121.244473,104.332125 120.352233,102.781684 L117.021508,96.9939031 C116.13303,95.4499995 116.13303,93.5500005 117.021508,92.0060969 L120.352233,86.2183156 C121.244473,84.6678753 122.897032,83.7122186 124.685874,83.7122186 L131.319186,83.7122186 Z M128.003794,90.1848875 C126.459294,90.1848875 125.034382,91.0072828 124.263005,92.3424437 C123.491732,93.6774232 123.491732,95.3225768 124.263005,96.6575563 C125.034382,97.9927172 126.459294,98.8151125 128.001266,98.8151125 L128.001266,98.8151125 C129.545766,98.8151125 130.970678,97.9927172 131.742055,96.6575563 C132.513327,95.3225768 132.513327,93.6774232 131.742055,92.3424437 C130.970678,91.0072828 129.545766,90.1848875 128.003794,90.1848875 L128.003794,90.1848875 Z M93,94.5009646 L100.767764,94.5009646",fill:"#FFD94C"}),i.createElement("path",{d:"M87.8601729,108.357758 C89.1715224,107.608286 90.8360246,108.074601 91.5779424,109.399303 L91.5779424,109.399303 L92.0525843,110.24352 C95.8563392,116.982993 99.8190116,123.380176 103.940602,129.435068 C108.807881,136.585427 114.28184,143.82411 120.362479,151.151115 C121.316878,152.30114 121.184944,154.011176 120.065686,154.997937 L120.065686,154.997937 L119.454208,155.534625 C99.3465389,173.103314 86.2778188,176.612552 80.2480482,166.062341 C74.3500652,155.742717 76.4844915,136.982888 86.6513274,109.782853 C86.876818,109.179582 87.3045861,108.675291 87.8601729,108.357758 Z M173.534177,129.041504 C174.986131,128.785177 176.375496,129.742138 176.65963,131.194242 L176.65963,131.194242 L176.812815,131.986376 C181.782365,157.995459 178.283348,171 166.315764,171 C154.609745,171 139.708724,159.909007 121.612702,137.727022 C121.211349,137.235047 120.994572,136.617371 121,135.981509 C121.013158,134.480686 122.235785,133.274651 123.730918,133.287756 L123.730918,133.287756 L124.684654,133.294531 C132.305698,133.335994 139.714387,133.071591 146.910723,132.501323 C155.409039,131.82788 164.283523,130.674607 173.534177,129.041504 Z M180.408726,73.8119663 C180.932139,72.4026903 182.508386,71.6634537 183.954581,72.149012 L183.954581,72.149012 L184.742552,72.4154854 C210.583763,81.217922 220.402356,90.8916805 214.198332,101.436761 C208.129904,111.751366 190.484347,119.260339 161.26166,123.963678 C160.613529,124.067994 159.948643,123.945969 159.382735,123.618843 C158.047025,122.846729 157.602046,121.158214 158.388848,119.847438 L158.388848,119.847438 L158.889328,119.0105 C162.877183,112.31633 166.481358,105.654262 169.701854,99.0242957 C173.50501,91.1948179 177.073967,82.7907081 180.408726,73.8119663 Z M94.7383398,66.0363218 C95.3864708,65.9320063 96.0513565,66.0540315 96.6172646,66.3811573 C97.9529754,67.153271 98.3979538,68.8417862 97.6111517,70.1525615 L97.6111517,70.1525615 L97.1106718,70.9895001 C93.1228168,77.6836699 89.5186416,84.3457379 86.2981462,90.9757043 C82.49499,98.8051821 78.9260328,107.209292 75.5912744,116.188034 C75.0678608,117.59731 73.4916142,118.336546 72.045419,117.850988 L72.045419,117.850988 L71.2574475,117.584515 C45.4162372,108.782078 35.597644,99.1083195 41.8016679,88.5632391 C47.8700957,78.2486335 65.515653,70.7396611 94.7383398,66.0363218 Z M136.545792,34.4653746 C156.653461,16.8966864 169.722181,13.3874478 175.751952,23.9376587 C181.649935,34.2572826 179.515508,53.0171122 169.348673,80.2171474 C169.123182,80.8204179 168.695414,81.324709 168.139827,81.6422422 C166.828478,82.3917144 165.163975,81.9253986 164.422058,80.6006966 L164.422058,80.6006966 L163.947416,79.7564798 C160.143661,73.0170065 156.180988,66.6198239 152.059398,60.564932 C147.192119,53.4145727 141.71816,46.1758903 135.637521,38.8488847 C134.683122,37.6988602 134.815056,35.9888243 135.934314,35.0020629 L135.934314,35.0020629 Z M90.6842361,18 C102.390255,18 117.291276,29.0909926 135.387298,51.2729777 C135.788651,51.7649527 136.005428,52.3826288 136,53.0184911 C135.986842,54.5193144 134.764215,55.7253489 133.269082,55.7122445 L133.269082,55.7122445 L132.315346,55.7054689 C124.694302,55.6640063 117.285613,55.9284091 110.089277,56.4986773 C101.590961,57.17212 92.7164767,58.325393 83.4658235,59.9584962 C82.0138691,60.2148231 80.6245044,59.2578618 80.3403697,57.805758 L80.3403697,57.805758 L80.1871846,57.0136235 C75.2176347,31.0045412 78.7166519,18 90.6842361,18 Z",fill:"#FF4154"}))))}},3196:function(e,t){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;th.useSyncExternalStore(y.useCallback((t=>n?()=>{}:e.subscribe(i.notifyManager.batchCalls(t))),[e,n]),t,t),b=y.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:d,context:h,onDragStart:g,onPositionChange:b,showCloseButton:k,position:S,closeButtonProps:j={},errorTypes:O=[],...E}=e,{onClick:_,...C}=j,P=i.useQueryClient({context:h}),D=P.getQueryCache(),[T,M]=u.default("reactQueryDevtoolsSortFn",Object.keys(s.sortFns)[0]),[A,L]=u.default("reactQueryDevtoolsFilter",""),[N,R]=u.default("reactQueryDevtoolsBaseSort",1),Y=y.useMemo((()=>s.sortFns[T]),[T]),I=m(D,(()=>D.getAll().length),!n),[Z,q]=u.default("reactQueryDevtoolsActiveQueryHash",""),F=y.useMemo((()=>{const e=D.getAll();if(0===I)return[];const t=A?e.filter((e=>a.rankItem(e.queryHash,A).passed)):[...e];return Y?t.sort(((e,t)=>Y(e,t)*N)):t}),[N,Y,A,I,D]),[B,H]=y.useState(!1);return y.createElement(f.ThemeProvider,{theme:f.defaultTheme},y.createElement(l.Panel,r.extends({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},E,{style:{height:s.defaultPanelSize,position:"relative",...E.style}}),y.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+f.defaultTheme.backgroundAlt+" "+f.defaultTheme.gray+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar, .ReactQueryDevtoolsPanel scrollbar {\n width: 1em;\n height: 1em;\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-track, .ReactQueryDevtoolsPanel scrollbar-track {\n background: "+f.defaultTheme.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+f.defaultTheme.gray+";\n border-radius: .5em;\n border: 3px solid "+f.defaultTheme.backgroundAlt+";\n }\n "}}),y.createElement("div",{style:s.getResizeHandleStyle(S),onMouseDown:g}),n&&y.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+f.defaultTheme.grayAlt,display:"flex",flexDirection:"column"}},y.createElement("div",{style:{padding:".5em",background:f.defaultTheme.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},y.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>d(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},y.createElement(p.default,{"aria-hidden":!0}),y.createElement(c.default,{text:"Close React Query Devtools"})),y.createElement("div",{style:{display:"flex",flexDirection:"column"}},y.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},y.createElement(w,{queryCache:D}),S&&b?y.createElement(l.Select,{"aria-label":"Panel position",value:S,style:{marginInlineStart:".5em"},onChange:e=>b(e.target.value)},y.createElement("option",{value:"left"},"Left"),y.createElement("option",{value:"right"},"Right"),y.createElement("option",{value:"top"},"Top"),y.createElement("option",{value:"bottom"},"Bottom")):null),y.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},y.createElement(l.Input,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=A?A:"",onChange:e=>L(e.target.value),onKeyDown:e=>{"Escape"===e.key&&L("")},style:{flex:"1",width:"100%"}}),y.createElement(l.Select,{"aria-label":"Sort queries",value:T,onChange:e=>M(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(s.sortFns).map((e=>y.createElement("option",{key:e,value:e},"Sort by ",e)))),y.createElement(l.Button,{type:"button",onClick:()=>R((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===N?"⬆ Asc":"⬇ Desc"),y.createElement(l.Button,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>D.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),y.createElement(l.Button,{type:"button",onClick:()=>{B?(i.onlineManager.setOnline(void 0),H(!1),window.dispatchEvent(new Event("online"))):(i.onlineManager.setOnline(!1),H(!0))},"aria-label":B?"Restore offline mock":"Mock offline behavior",title:B?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:B?f.defaultTheme.danger:"currentColor",fill:"none"},B?y.createElement(y.Fragment,null,y.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),y.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),y.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),y.createElement("path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2"}),y.createElement("path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374"}),y.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):y.createElement(y.Fragment,null,y.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),y.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),y.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),y.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),y.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),y.createElement(c.default,{text:B?"Restore offline mock":"Mock offline behavior"}))))),y.createElement("div",{style:{overflowY:"auto",flex:"1"}},F.map((e=>y.createElement(x,{queryKey:e.queryKey,activeQueryHash:Z,setActiveQueryHash:q,key:e.queryHash,queryCache:D}))))),Z&&n?y.createElement(v,{activeQueryHash:Z,queryCache:D,queryClient:P,errorTypes:O}):null,k?y.createElement(l.Button,r.extends({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},C,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...C.style},onClick:e=>{d(!1),null==_||_(e)}}),"Close"):null))})),v=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:r})=>{var i,a;const u=m(e,(()=>e.getAll().find((e=>e.queryHash===t)))),c=m(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.state})),p=null!=(i=m(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.isStale()})))&&i,h=null!=(a=m(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.getObserversCount()})))?a:0,g=o.useMemo((()=>{if(u&&null!=c&&c.error){const e=r.find((e=>{var t;return e.initializer(u).toString()===(null==(t=c.error)?void 0:t.toString())}));return null==e?void 0:e.name}}),[u,null==c?void 0:c.error,r]);if(!u||!c)return null;const b=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(u))?t:new Error("Unknown error from devtools"),r=u.options;u.setState({status:"error",error:n,fetchMeta:{...u.state.fetchMeta,__previousQueryOptions:r}})};return y.createElement(l.ActiveQueryPanel,null,y.createElement("div",{style:{padding:".5em",background:f.defaultTheme.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),y.createElement("div",{style:{padding:".5em"}},y.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},y.createElement(l.Code,{style:{lineHeight:"1.8em"}},y.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},s.displayValue(u.queryKey,!0))),y.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:s.getQueryStatusColor({queryState:c,isStale:p,observerCount:h,theme:f.defaultTheme}),flexShrink:0}},s.getQueryStatusLabel(u))),y.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",y.createElement(l.Code,null,h)),y.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",y.createElement(l.Code,null,new Date(c.dataUpdatedAt).toLocaleTimeString()))),y.createElement("div",{style:{background:f.defaultTheme.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),y.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},y.createElement(l.Button,{type:"button",onClick:()=>{const e=null==u?void 0:u.fetch();null==e||e.catch(k)},disabled:"fetching"===c.fetchStatus,style:{background:f.defaultTheme.active}},"Refetch")," ",y.createElement(l.Button,{type:"button",onClick:()=>n.invalidateQueries(u),style:{background:f.defaultTheme.warning,color:f.defaultTheme.inputTextColor}},"Invalidate")," ",y.createElement(l.Button,{type:"button",onClick:()=>n.resetQueries(u),style:{background:f.defaultTheme.gray}},"Reset")," ",y.createElement(l.Button,{type:"button",onClick:()=>n.removeQueries(u),style:{background:f.defaultTheme.danger}},"Remove")," ",y.createElement(l.Button,{type:"button",onClick:()=>{var e;if("fetching"!==u.state.fetchStatus||void 0!==(null==(e=u.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===u.state.data)u.fetch(u.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=u.options;u.fetch({...e,queryFn:()=>new Promise((()=>{})),cacheTime:-1}),u.setState({data:void 0,status:"loading",fetchMeta:{...u.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:f.defaultTheme.paused}},"loading"===u.state.status?"Restore":"Trigger"," ","loading")," ",0===r.length||"error"===u.state.status?y.createElement(l.Button,{type:"button",onClick:()=>{u.state.error?n.resetQueries(u):b()},style:{background:f.defaultTheme.danger}},"error"===u.state.status?"Restore":"Trigger"," error"):y.createElement("label",null,"Trigger error:",y.createElement(l.Select,{value:null!=g?g:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=r.find((t=>t.name===e.target.value));b(t)}},y.createElement("option",{key:"",value:""}),r.map((e=>y.createElement("option",{key:e.name,value:e.name},e.name)))))),y.createElement("div",{style:{background:f.defaultTheme.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),y.createElement("div",{style:{padding:".5em"}},y.createElement(d.default,{label:"Data",value:c.data,defaultExpanded:{},copyable:!0})),y.createElement("div",{style:{background:f.defaultTheme.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),y.createElement("div",{style:{padding:".5em"}},y.createElement(d.default,{label:"Query",value:u,defaultExpanded:{queryKey:!0}})))},w=({queryCache:e})=>{const t=m(e,(()=>e.getAll().filter((e=>"fresh"===s.getQueryStatusLabel(e))).length)),n=m(e,(()=>e.getAll().filter((e=>"fetching"===s.getQueryStatusLabel(e))).length)),r=m(e,(()=>e.getAll().filter((e=>"paused"===s.getQueryStatusLabel(e))).length)),o=m(e,(()=>e.getAll().filter((e=>"stale"===s.getQueryStatusLabel(e))).length)),i=m(e,(()=>e.getAll().filter((e=>"inactive"===s.getQueryStatusLabel(e))).length));return y.createElement(l.QueryKeys,null,y.createElement(l.QueryKey,{style:{background:f.defaultTheme.success,opacity:t?1:.3}},"fresh ",y.createElement(l.Code,null,"(",t,")"))," ",y.createElement(l.QueryKey,{style:{background:f.defaultTheme.active,opacity:n?1:.3}},"fetching ",y.createElement(l.Code,null,"(",n,")"))," ",y.createElement(l.QueryKey,{style:{background:f.defaultTheme.paused,opacity:r?1:.3}},"paused ",y.createElement(l.Code,null,"(",r,")"))," ",y.createElement(l.QueryKey,{style:{background:f.defaultTheme.warning,color:"black",textShadow:"0",opacity:o?1:.3}},"stale ",y.createElement(l.Code,null,"(",o,")"))," ",y.createElement(l.QueryKey,{style:{background:f.defaultTheme.gray,opacity:i?1:.3}},"inactive ",y.createElement(l.Code,null,"(",i,")")))},x=y.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:r})=>{var o,i,a,u;const c=null!=(o=m(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.queryHash})))?o:"",d=m(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.state})),p=null!=(i=m(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.isStale()})))&&i,h=null!=(a=m(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.isDisabled()})))&&a,g=null!=(u=m(r,(()=>{var t;return null==(t=r.find(e))?void 0:t.getObserversCount()})))?u:0;return d?y.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+f.defaultTheme.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},y.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:s.getQueryStatusColor({queryState:d,isStale:p,observerCount:g,theme:f.defaultTheme}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:p?"0":"0 0 10px black",color:p?"black":"white"}},g),h?y.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:f.defaultTheme.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,y.createElement(l.Code,{style:{padding:".5em"}},""+c)):null}));function k(){}x.displayName="QueryRow",t.ReactQueryDevtools=function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:o={},position:i="bottom-left",containerElement:a="aside",context:l,styleNonce:d,panelPosition:h="bottom",errorTypes:g=[]}){const m=y.useRef(null),v=y.useRef(null),[w,x]=u.default("reactQueryDevtoolsOpen",e),[k,S]=u.default("reactQueryDevtoolsHeight",s.defaultPanelSize),[j,O]=u.default("reactQueryDevtoolsWidth",s.defaultPanelSize),[E="bottom",_]=u.default("reactQueryDevtoolsPanelPosition",h),[C,P]=y.useState(!1),[D,T]=y.useState(!1),M=s.useIsMounted();y.useEffect((()=>{P(null!=w&&w)}),[w,C,P]),y.useEffect((()=>{const e=v.current;if(e){const t=()=>{C&&(e.style.visibility="visible")},n=()=>{C||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[C]),y.useEffect((()=>{var e;if(C&&null!=(e=m.current)&&e.parentElement){const{parentElement:e}=m.current,t=s.getSidedProp("padding",E),n=s.isVerticalSide(E),r=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o}))(e.style),o=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?j:k)+"px"};if(o(),"undefined"!=typeof window)return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),Object.entries(r).forEach((([t,n])=>{e.style[t]=n}))}}}),[C,E,k,j]);const{style:A={},...L}=t,{style:N={},onClick:R,...Y}=o,I=s.getSidePanelStyle({position:E,devtoolsTheme:f.defaultTheme,isOpen:C,height:k,width:j,isResizing:D,panelStyle:A});return M()?y.createElement(a,{ref:m,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},y.createElement(f.ThemeProvider,{theme:f.defaultTheme},y.createElement(b,r.extends({ref:v,context:l,styleNonce:d,position:E,onPositionChange:_,showCloseButton:!0,closeButtonProps:n},L,{style:I,isOpen:C,setIsOpen:x,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=s.isVerticalSide(E);T(!0);const{height:r,width:o}=e.getBoundingClientRect(),i=t.clientX,a=t.clientY;let u=0;const l=e=>{e.preventDefault(),n?(u=o+("right"===E?i-e.clientX:e.clientX-i),O(u)):(u=r+("bottom"===E?a-e.clientY:e.clientY-a),S(u)),u{D&&T(!1),document.removeEventListener("mousemove",l,!1),document.removeEventListener("mouseUp",c,!1)};document.addEventListener("mousemove",l,!1),document.addEventListener("mouseup",c,!1)})(v.current,e),errorTypes:g}))),C?null:y.createElement("button",r.extends({type:"button"},Y,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{x(!0),null==R||R(e)},style:{background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===i?{top:"0",right:"0"}:"top-left"===i?{top:"0",left:"0"}:"bottom-right"===i?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...N}}),y.createElement(p.default,{"aria-hidden":!0}),y.createElement(c.default,{text:"Open React Query Devtools"}))):null},t.ReactQueryDevtoolsPanel=b},78600:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(55238);const r=function(){return null},o=function(){return null};t.ReactQueryDevtools=r,t.ReactQueryDevtoolsPanel=o},91673:function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784));t.default=function({text:e}){return o.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}},84450:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(36339);const o=r.styled("div",((e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground})),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}}),i=r.styled("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),a=r.styled("button",((e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"}))),u=r.styled("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),s=r.styled("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),l=r.styled("code",{fontSize:".9em",color:"inherit",background:"inherit"}),c=r.styled("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),f=r.styled("select",((e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:"url(\"data:image/svg+xml;utf8,\")",backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor})),{"(max-width: 500px)":{display:"none"}});t.ActiveQueryPanel=i,t.Button=a,t.Code=l,t.Input=c,t.Panel=o,t.QueryKey=s,t.QueryKeys=u,t.Select=f},26823:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3196);function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var i=o(n(2784));const a={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},u=i.createContext(a);t.ThemeProvider=function({theme:e,...t}){return i.createElement(u.Provider,r.extends({value:e},t))},t.defaultTheme=a,t.useTheme=function(){return i.useContext(u)}},63100:function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784));t.default=function(e,t){const[n,r]=o.useState();return o.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);r(null==n?"function"==typeof t?t():t:n)}),[t,e]),[n,o.useCallback((t=>{r((n=>{let r=t;"function"==typeof t&&(r=t(n));try{localStorage.setItem(e,JSON.stringify(r))}catch{}return r}))}),[e])]}},7594:function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784));t.default=function(e){const[t,n]=o.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return o.useEffect((()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),r=({matches:e})=>n(e);return t.addListener(r),()=>{t.removeListener(r)}}}),[t,e,n]),t}},36339:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2784),o=n(36131),i=n(26823),a=n(7594);function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var l=s(r),c=u(o);const f=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,d=(e,t)=>e.state.dataUpdatedAt Last Updated":(e,t)=>f(e)===f(t)?d(e,t):f(e)>f(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":d},h={top:"bottom",bottom:"top",left:"right",right:"left"};function g(e){return["left","right"].includes(e)}function y(e){return h[e]}function m(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}t.defaultPanelSize=500,t.displayValue=(e,t=!1)=>{const{json:n}=c.default.serialize(e);return JSON.stringify(n,null,t?2:void 0)},t.getOppositeSide=y,t.getQueryStatusColor=function({queryState:e,observerCount:t,isStale:n,theme:r}){return"fetching"===e.fetchStatus?r.active:t?"paused"===e.fetchStatus?r.paused:n?r.warning:r.success:r.gray},t.getQueryStatusLabel=function(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"},t.getResizeHandleStyle=function(e="bottom"){const t=g(e),n=y(e);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[m("margin",n)]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}},t.getSidePanelStyle=function({position:e="bottom",height:t,width:n,devtoolsTheme:r,isOpen:o,isResizing:i,panelStyle:a}){const u=y(e),s=m("border",u),l=g(e);return{...a,direction:"ltr",position:"fixed",[e]:0,[s]:"1px solid "+r.gray,transformOrigin:u,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:o?"visible":"hidden",...i?{transition:"none"}:{transition:"all .2s ease"},...o?{opacity:1,pointerEvents:"all",transform:l?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:l?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...l?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:500}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:500}}},t.getSidedProp=m,t.isVerticalSide=g,t.minPanelSize=70,t.sides=h,t.sortFns=p,t.styled=function(e,t,n={}){return l.forwardRef((({style:r,...o},u)=>{const s=i.useTheme(),c=Object.entries(n).reduce(((e,[t,n])=>a.default(t)?{...e,..."function"==typeof n?n(o,s):n}:e),{});return l.createElement(e,{...o,style:{..."function"==typeof t?t(o,s):t,...r,...c},ref:u})}))},t.useIsMounted=function(){const e=l.useRef(!1),t=l.useCallback((()=>e.current),[]);return l.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}},19828:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2784),o=n(75630),i=n(47171);function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var u=a(r);function s(e,t={}){const n=i.useQueryClient({context:t.context}),r=u.useRef(t);r.current=t,u.useMemo((()=>{e&&o.hydrate(n,e,r.current)}),[n,e])}t.Hydrate=({children:e,options:t,state:n})=>(s(n,t),e),t.useHydrate=s},47171:function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784));const i=o.createContext(void 0),a=o.createContext(!1);function u(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=i),window.ReactQueryClientContext):i)}t.QueryClientProvider=({client:e,children:t,context:n,contextSharing:r=!1})=>{o.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]);const i=u(n,r);return o.createElement(a.Provider,{value:!n&&r},o.createElement(i.Provider,{value:e},t))},t.defaultContext=i,t.useQueryClient=({context:e}={})=>{const t=o.useContext(u(e,o.useContext(a)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t}},77835:function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784));function i(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const a=o.createContext(i());t.QueryErrorResetBoundary=({children:e})=>{const[t]=o.useState((()=>i()));return o.createElement(a.Provider,{value:t},"function"==typeof e?e(t):e)},t.useQueryErrorResetBoundary=()=>o.useContext(a)},73288:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2784),o=n(78186);function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=i(r);t.ensurePreventErrorBoundaryRetry=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},t.getHasError=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&o.shouldThrowError(n,[e.error,r]),t.useClearResetErrorBoundary=e=>{a.useEffect((()=>{e.clearReset()}),[e])}},79634:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(32993);var r=n(75630),o=n(45677),i=n(70963),a=n(47171),u=n(19828),s=n(77835),l=n(82349),c=n(7171),f=n(82711),d=n(47005),p=n(1909);t.useQueries=o.useQueries,t.useQuery=i.useQuery,t.QueryClientProvider=a.QueryClientProvider,t.defaultContext=a.defaultContext,t.useQueryClient=a.useQueryClient,t.Hydrate=u.Hydrate,t.useHydrate=u.useHydrate,t.QueryErrorResetBoundary=s.QueryErrorResetBoundary,t.useQueryErrorResetBoundary=s.useQueryErrorResetBoundary,t.useIsFetching=l.useIsFetching,t.useIsMutating=c.useIsMutating,t.useMutation=f.useMutation,t.useInfiniteQuery=d.useInfiniteQuery,t.IsRestoringProvider=p.IsRestoringProvider,t.useIsRestoring=p.useIsRestoring,Object.keys(r).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}))},1909:function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2784));const i=o.createContext(!1),a=i.Provider;t.IsRestoringProvider=a,t.useIsRestoring=()=>o.useContext(i)},34596:function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(28316)).unstable_batchedUpdates;t.unstable_batchedUpdates=o},32993:function(e,t,n){"use strict";var r=n(75630),o=n(34596);r.notifyManager.setBatchNotifyFunction(o.unstable_batchedUpdates)},10870:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=(e,t)=>e.isLoading&&e.isFetching&&!t;t.ensureStaleTime=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},t.fetchOptimistic=(e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)})),t.shouldSuspend=(e,t,r)=>(null==e?void 0:e.suspense)&&n(t,r),t.willFetch=n},34145:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2784),o=n(75630),i=n(39964),a=n(77835),u=n(47171),s=n(1909),l=n(73288),c=n(10870);function f(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var d=f(r);t.useBaseQuery=function(e,t){const n=u.useQueryClient({context:e.context}),r=s.useIsRestoring(),f=a.useQueryErrorResetBoundary(),p=n.defaultQueryOptions(e);p._optimisticResults=r?"isRestoring":"optimistic",p.onError&&(p.onError=o.notifyManager.batchCalls(p.onError)),p.onSuccess&&(p.onSuccess=o.notifyManager.batchCalls(p.onSuccess)),p.onSettled&&(p.onSettled=o.notifyManager.batchCalls(p.onSettled)),c.ensureStaleTime(p),l.ensurePreventErrorBoundaryRetry(p,f),l.useClearResetErrorBoundary(f);const[h]=d.useState((()=>new t(n,p))),g=h.getOptimisticResult(p);if(i.useSyncExternalStore(d.useCallback((e=>{const t=r?()=>{}:h.subscribe(o.notifyManager.batchCalls(e));return h.updateResult(),t}),[h,r]),(()=>h.getCurrentResult()),(()=>h.getCurrentResult())),d.useEffect((()=>{h.setOptions(p,{listeners:!1})}),[p,h]),c.shouldSuspend(p,g,r))throw c.fetchOptimistic(p,h,f);if(l.getHasError({result:g,errorResetBoundary:f,useErrorBoundary:p.useErrorBoundary,query:h.getCurrentQuery()}))throw g.error;return p.notifyOnChangeProps?g:h.trackResult(g)}},47005:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(75630),o=n(34145);t.useInfiniteQuery=function(e,t,n){const i=r.parseQueryArgs(e,t,n);return o.useBaseQuery(i,r.InfiniteQueryObserver)}},82349:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2784),o=n(75630),i=n(39964),a=n(47171);function u(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var s=u(r);t.useIsFetching=function(e,t,n){const[r,u={}]=o.parseFilterArgs(e,t,n),l=a.useQueryClient({context:u.context}),c=l.getQueryCache();return i.useSyncExternalStore(s.useCallback((e=>c.subscribe(o.notifyManager.batchCalls(e))),[c]),(()=>l.isFetching(r)),(()=>l.isFetching(r)))}},7171:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2784),o=n(75630),i=n(39964),a=n(47171);function u(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var s=u(r);t.useIsMutating=function(e,t,n){const[r,u={}]=o.parseMutationFilterArgs(e,t,n),l=a.useQueryClient({context:u.context}),c=l.getMutationCache();return i.useSyncExternalStore(s.useCallback((e=>c.subscribe(o.notifyManager.batchCalls(e))),[c]),(()=>l.isMutating(r)),(()=>l.isMutating(r)))}},82711:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2784),o=n(75630),i=n(39964),a=n(47171),u=n(78186);function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var l=s(r);function c(){}t.useMutation=function(e,t,n){const r=o.parseMutationArgs(e,t,n),s=a.useQueryClient({context:r.context}),[f]=l.useState((()=>new o.MutationObserver(s,r)));l.useEffect((()=>{f.setOptions(r)}),[f,r]);const d=i.useSyncExternalStore(l.useCallback((e=>f.subscribe(o.notifyManager.batchCalls(e))),[f]),(()=>f.getCurrentResult()),(()=>f.getCurrentResult())),p=l.useCallback(((e,t)=>{f.mutate(e,t).catch(c)}),[f]);if(d.error&&u.shouldThrowError(f.options.useErrorBoundary,[d.error]))throw d.error;return{...d,mutate:p,mutateAsync:d.mutate}}},45677:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2784),o=n(75630),i=n(39964),a=n(47171),u=n(1909),s=n(77835),l=n(73288),c=n(10870);function f(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var d=f(r);t.useQueries=function({queries:e,context:t}){const n=a.useQueryClient({context:t}),r=u.useIsRestoring(),f=s.useQueryErrorResetBoundary(),p=d.useMemo((()=>e.map((e=>{const t=n.defaultQueryOptions(e);return t._optimisticResults=r?"isRestoring":"optimistic",t}))),[e,n,r]);p.forEach((e=>{c.ensureStaleTime(e),l.ensurePreventErrorBoundaryRetry(e,f)})),l.useClearResetErrorBoundary(f);const[h]=d.useState((()=>new o.QueriesObserver(n,p))),g=h.getOptimisticResult(p);i.useSyncExternalStore(d.useCallback((e=>r?()=>{}:h.subscribe(o.notifyManager.batchCalls(e))),[h,r]),(()=>h.getCurrentResult()),(()=>h.getCurrentResult())),d.useEffect((()=>{h.setQueries(p,{listeners:!1})}),[p,h]);const y=g.some(((e,t)=>c.shouldSuspend(p[t],e,r)))?g.flatMap(((e,t)=>{const n=p[t],o=h.getObservers()[t];if(n&&o){if(c.shouldSuspend(n,e,r))return c.fetchOptimistic(n,o,f);c.willFetch(e,r)&&c.fetchOptimistic(n,o,f)}return[]})):[];if(y.length>0)throw Promise.all(y);const m=h.getQueries(),b=g.find(((e,t)=>{var n,r;return l.getHasError({result:e,errorResetBoundary:f,useErrorBoundary:null!=(n=null==(r=p[t])?void 0:r.useErrorBoundary)&&n,query:m[t]})}));if(null!=b&&b.error)throw b.error;return g}},70963:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(75630),o=n(34145);t.useQuery=function(e,t,n){const i=r.parseQueryArgs(e,t,n);return o.useBaseQuery(i,r.QueryObserver)}},39964:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(43100).useSyncExternalStore;t.useSyncExternalStore=r},78186:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldThrowError=function(e,t){return"function"==typeof e?e(...t):!!e}},72779:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t