diff --git a/changelog.txt b/changelog.txt index a33ab93660..9862126efd 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,61 @@ == Changelog == += 7.1 = +* Security: Additional protection has been added to prevent unauthenticated shortcode execution. +* Security: Additional validation has been added to PayPal Commerce orders and subscriptions to help prevent payment tampering. +* New: The form builder now loads long forms with AJAX automatically. The "Load and save form builder page with AJAX" setting has been removed. +* New: Large forms now load previews and field settings in smaller batches. Previews below the screen wait until you scroll near them. +* New: The builder now blocks fields that don't work in a Repeater or Section, such as CAPTCHA, Submit, GDPR, Summary, Page Break, and embedded forms. +* New: The style editor now uses a new color picker. Colors save in the format you pick: RGB, HSL, or Hex. +* New: Style changes in the visual styler now show in the preview right away, without waiting for the server. +* New: Phone fields now have an Autocomplete setting. +* New: A new CAPTCHA service unavailable spam setting saves a submission as a spam entry when the CAPTCHA can't be verified because the service is down or its response can't be read. +* New: Boosts now show in their own section on the Add-Ons page. +* New: Stripe Link elements now share additional form styling to closer match other inputs. +* New: Formidable AI has a new get-ai-status ability so AI tools can see how to turn on access, and a new mark-entry-spam ability. +* New: Forms created with the create-form ability now start with anti-spam on and an email action, like forms made in the builder. +* New: The list-entries ability can now list spam entries, and the update-form ability can turn entry editing on or off. +* New: New frm_no_save_fields, frm_embed_modal_options, frm_field_created, frm_field_updated, frm_field_destroyed, and frm_field_order_updated hooks, plus a new hook that runs before a form is destroyed. +* New: The frm_add_entry_meta filter now receives the original value as a second argument. +* Performance: Moving a field in a large form now saves only the new field order. The builder uses fewer database queries when creating, updating, or reordering many fields. +* Performance: Form dropdowns, the next-field-order lookup, and form field cache clearing now use faster queries. +* Performance: The Stripe Link check no longer runs a query on admin pages. +* Fix: PayPal Commerce now checks the capture status before marking an order as paid. Declined cards no longer create a payment, and pending captures create a pending payment. +* Fix: PayPal Commerce card fields could stay empty on multi-page forms when the script loaded late. +* Fix: PayPal Commerce validation failed for products inside repeaters. +* Fix: PayPal Commerce Apple Pay failed when the page title had a non-ASCII character. +* Fix: PayPal Commerce rejected cards when the Address field was on an earlier page, because the billing country code was missing. +* Fix: Going to the previous page on a multi-page PayPal Commerce form no longer tries to submit the empty card. +* Fix: Square rejected a different card entered after a declined card. +* Fix: Deleting a multisite site now also removes the payments, subscriptions, and gated tokens tables. +* Fix: The Denylist check no longer marks accented text, like "Máster", as spam. +* Fix: The submit button could ignore the first click after fixing a field error. +* Fix: The "Disable submit button styling" toggle always loaded as off. +* Fix: A form lost its styling when the style it used was deleted. It now falls back to the default style. +* Fix: The inline Submit button sat below the inputs when using the default submit HTML. +* Fix: Primary labels did not line up with inputs in themes that set a label line height, like Hello Elementor. +* Fix: Long style names could push the dropdown out of the style card. +* Fix: Test mode controls now look the same in any theme. +* Fix: Admin dropdowns and tooltips broke when another plugin loaded Popper 1. +* Fix: Field Size now shows in the builder preview. +* Fix: Builder previews kept the field label markup and the required indicator when drawn in the browser. +* Fix: Errors with deferred field settings panels in the builder. A dropdown posted the wrong type, and a failed load could silently drop settings on save. +* Fix: Duplicating a field no longer fails on forms saved with the older field placement format. +* Fix: Dragging a Repeater into a Section was allowed in the builder. +* Fix: Form and field keys longer than 60 characters could collide when duplicated. +* Fix: An empty Number Step rendered step="any" instead of step="1" and rejected decimals. +* Fix: Dropdown, radio, and checkbox fields filled by setup hooks could reject valid values. +* Fix: Hex colors like #ffffff caused a PHP deprecation notice when brightness was calculated. +* Fix: Style Reset and the live preview now keep the # on hex colors, and an invalid typed hex no longer becomes #000000. +* Fix: The Entry Key typed on an earlier page was lost on multi-page Entries > Add New forms. +* Fix: Form Templates > Create Template opened a copy of the new template instead of the template itself. +* Fix: Inserting Default HTML in the Message editor's Code tab added escaped markup. +* Fix: JS-built search boxes, like Applications > Search Templates, showed no magnifier icon. +* Fix: Payment status hooks ran on the wrong payment because trigger_payment_status_change ignored the payment passed in. +* Fix: Duplicate-entry errors now show in the error summary when submitting with AJAX. +* Fix: The Square script no longer shows a Missing Dependencies warning in the visual styler. +* Fix: The list-entries, list-forms, list-fields, list-payments, and list-subscriptions abilities now return correct defaults and no longer error on star rating or scale fields, spam entries, or a missing payments table. +* Fix: The create-field and update-field abilities skipped the settings clean-up that the builder runs. + = 7.0 = * Security: Additional permission checks have been added to prevent unauthorized plugin installations. * Security: Download URL validation has been hardened to prevent downloads from untrusted sources. diff --git a/classes/controllers/FrmAbilitiesEntriesController.php b/classes/controllers/FrmAbilitiesEntriesController.php index 760604f66d..ca6ca8429b 100644 --- a/classes/controllers/FrmAbilitiesEntriesController.php +++ b/classes/controllers/FrmAbilitiesEntriesController.php @@ -56,7 +56,7 @@ private static function register_list_entries_ability() { * The search term is only applied when Pro is active, so it is only * advertised then. Without Pro an agent would send it and get every entry. * - * @since x.x + * @since 7.1 * * @return array */ @@ -245,7 +245,7 @@ private static function register_get_entry_ability() { /** * Register the mark entry as spam ability. * - * @since x.x + * @since 7.1 * * @return void */ @@ -416,7 +416,7 @@ public static function execute_get_entry( $input ) { /** * Mark a submitted entry as spam. * - * @since x.x + * @since 7.1 * * @param array $input Ability input parameters. * @@ -839,7 +839,7 @@ private static function get_invalid_entry_error() { /** * Build the error returned when an entry cannot be moved to spam. * - * @since x.x + * @since 7.1 * * @return WP_Error */ @@ -882,7 +882,7 @@ public static function can_get_entry( $input ) { /** * Permission callback for mark entry as spam. * - * @since x.x + * @since 7.1 * * @param array $input Ability input parameters. * diff --git a/classes/controllers/FrmAbilitiesFieldsController.php b/classes/controllers/FrmAbilitiesFieldsController.php index 8de4c4e644..c715f9d734 100644 --- a/classes/controllers/FrmAbilitiesFieldsController.php +++ b/classes/controllers/FrmAbilitiesFieldsController.php @@ -85,8 +85,8 @@ private static function register_list_fields_ability() { 'Field choices: strings, numbers (star rating, scale), or {"label", "value"} objects for separate values, or an object keyed by option key.', 'formidable' ), - 'items' => array( 'type' => array( 'string', 'number', 'object' ) ), - 'additionalProperties' => array( 'type' => array( 'string', 'number', 'object' ) ), + 'items' => array( 'type' => array( 'string', 'integer', 'number', 'object' ) ), + 'additionalProperties' => array( 'type' => array( 'string', 'integer', 'number', 'object' ) ), ), 'field_order' => array( 'type' => 'integer', @@ -177,10 +177,10 @@ private static function register_create_field_ability() { 'formidable' ), 'items' => array( - 'type' => array( 'string', 'number', 'object' ), + 'type' => array( 'string', 'integer', 'number', 'object' ), ), 'additionalProperties' => array( - 'type' => array( 'string', 'number', 'object' ), + 'type' => array( 'string', 'integer', 'number', 'object' ), ), ), 'default_value' => array( @@ -567,7 +567,7 @@ public static function prepare_new_field( $field, $form ) { * such hook, so without this a new field keeps its options exactly as sent. * The field ID is 0 because the field does not exist yet. * - * @since x.x + * @since 7.1 * * @param array $prepared Prepared field data. * @@ -833,7 +833,7 @@ private static function merge_field_options_with_existing( $field, $field_data ) * unfiltered_html, so re-saving it everywhere would strip markup an admin authored * from a label the request did not change. * - * @since x.x + * @since 7.1 * * @param stdClass $field The stored field object. * @param array $field_data Non-empty field data to update. diff --git a/classes/controllers/FrmAbilitiesSetupController.php b/classes/controllers/FrmAbilitiesSetupController.php index 79f8b6fd9b..ecda1ff607 100644 --- a/classes/controllers/FrmAbilitiesSetupController.php +++ b/classes/controllers/FrmAbilitiesSetupController.php @@ -6,14 +6,14 @@ /** * Exposes setup discovery even while Formidable AI access is disabled. * - * @since x.x + * @since 7.1 */ class FrmAbilitiesSetupController { /** * Register the read-only setup ability independently of the operational gate. * - * @since x.x + * @since 7.1 * * @return void */ @@ -70,7 +70,7 @@ public static function register_abilities() { /** * Allow users who can view forms to discover setup, like the other read abilities. * - * @since x.x + * @since 7.1 * * @return bool */ @@ -82,7 +82,7 @@ public static function can_get_ai_status() { /** * Describe availability without enabling access or booting the MCP adapter. * - * @since x.x + * @since 7.1 * * @return array */ diff --git a/classes/controllers/FrmAddonsController.php b/classes/controllers/FrmAddonsController.php index 30ee0e244b..459dfdf113 100644 --- a/classes/controllers/FrmAddonsController.php +++ b/classes/controllers/FrmAddonsController.php @@ -1201,7 +1201,7 @@ protected static function prepare_addons( &$addons ) { * it is installed in. When it does not, match the installed copy by its * updater download id (active Boosts), then by its plugin name (inactive Boosts). * - * @since x.x + * @since 7.1 * * @param array $addon The Boost data from the API. * @param string $file_name The plugin file the API sends for the Boost. diff --git a/classes/controllers/FrmAddressesController.php b/classes/controllers/FrmAddressesController.php index 54fa9b6155..638d4c616f 100644 --- a/classes/controllers/FrmAddressesController.php +++ b/classes/controllers/FrmAddressesController.php @@ -203,7 +203,7 @@ public static function get_country_code( $country ) { /** * Gets the country name to country code mapping. * - * @since x.x + * @since 7.1 * * @return array */ diff --git a/classes/controllers/FrmAppController.php b/classes/controllers/FrmAppController.php index af41fcad44..d174ea4b3c 100644 --- a/classes/controllers/FrmAppController.php +++ b/classes/controllers/FrmAppController.php @@ -836,7 +836,7 @@ public static function admin_js() { * The picker CSS ships in frm_admin.css, so the style handle has no file of its own. * Enqueue the formidable-color-picker style with the script on any page that uses the picker. * - * @since x.x + * @since 7.1 * * @param string $plugin_url Plugin asset URL. * @param string $version Plugin asset version. @@ -1050,7 +1050,7 @@ private static function enqueue_legacy_views_assets() { * Check the popper handle again after other plugins have enqueued their scripts. * Most plugins register scripts on admin_enqueue_scripts, after admin_js() has run. * - * @since x.x + * @since 7.1 * * @return void */ diff --git a/classes/controllers/FrmEntriesController.php b/classes/controllers/FrmEntriesController.php index e68c5a7a9a..1cbd1a979c 100644 --- a/classes/controllers/FrmEntriesController.php +++ b/classes/controllers/FrmEntriesController.php @@ -947,6 +947,7 @@ public static function show_entry_shortcode( $atts ) { 'child_array' => false, 'line_breaks' => true, 'array_separator' => ', ', + 'esc_shortcodes' => false, ); $defaults = apply_filters( 'frm_show_entry_defaults', $defaults ); $atts = shortcode_atts( $defaults, $atts ); diff --git a/classes/controllers/FrmFieldsController.php b/classes/controllers/FrmFieldsController.php index 7d7281028f..5efc854283 100644 --- a/classes/controllers/FrmFieldsController.php +++ b/classes/controllers/FrmFieldsController.php @@ -92,7 +92,7 @@ public static function load_field() { * * The previews are already on the page, so only the settings are sent back, keyed by field id. * - * @since x.x + * @since 7.1 * * @return void */ @@ -324,7 +324,7 @@ public static function load_single_field( $field_object, $values, $form_id = 0 ) /** * Filters deferred loading for a builder field. * - * @since x.x + * @since 7.1 * * @param bool $ajax_this_field Whether to defer rendering the field. * @param object $field_object The builder field. @@ -384,7 +384,7 @@ public static function load_single_field( $field_object, $values, $form_id = 0 ) * * The classes and attributes still come from the same filters as a preview rendered here. * - * @since x.x + * @since 7.1 * * @param object $field_object The field being added to the form builder. * @param FrmFieldType $field_obj The field type object. diff --git a/classes/controllers/FrmFormsController.php b/classes/controllers/FrmFormsController.php index d830ff8a0e..ca8b99b0a5 100644 --- a/classes/controllers/FrmFormsController.php +++ b/classes/controllers/FrmFormsController.php @@ -120,7 +120,7 @@ public static function list_form() { * Create the default email action * * @since 2.02.11 - * @since x.x Changed from private to public. + * @since 7.1 Changed from private to public. * * @param int|object $form * @@ -444,7 +444,7 @@ public static function update( $values = array() ) { * An AJAX save gets a 500 response with the X-Frm-Form-Saved: 0 header, and the builder keeps * the unsaved field order to send again. * - * @since x.x + * @since 7.1 * * @param int $id Form ID. * @@ -2791,7 +2791,7 @@ private static function is_hidden_draft_form( $form ) { * The preview page adds a nonce to the draft form, so this does not depend on the Referer header, * which a Referrer-Policy can strip. Only a visitor who could already open the preview has the nonce. * - * @since x.x + * @since 7.1 * * @param object $form The form being shown. * @@ -2811,7 +2811,7 @@ public static function is_ajax_submit_from_preview_page( $form ) { * Add a preview nonce so AJAX responses can display draft forms, including embedded drafts. * Published preview forms need it too when they contain an embedded draft. * - * @since x.x + * @since 7.1 * * @param object $form The form being rendered. * @@ -2829,7 +2829,7 @@ public static function maybe_add_draft_preview_nonce( $form ) { /** * Get the nonce action and field name used to show a draft form again after an AJAX submit from the preview page. * - * @since x.x + * @since 7.1 * * @param object $form The draft form. * diff --git a/classes/helpers/FrmAddonsHelper.php b/classes/helpers/FrmAddonsHelper.php index e80ef5c8d2..5532bb6f9f 100644 --- a/classes/helpers/FrmAddonsHelper.php +++ b/classes/helpers/FrmAddonsHelper.php @@ -32,7 +32,7 @@ class FrmAddonsHelper { /** * Whether the current Boost needs to be purchased. * - * @since x.x + * @since 7.1 * * @var bool */ @@ -41,7 +41,7 @@ class FrmAddonsHelper { /** * Whether the add-on being rendered is a Boost. * - * @since x.x + * @since 7.1 * * @var bool */ @@ -300,7 +300,7 @@ public static function is_locked() { /** * Check whether an add-on belongs to the Boosts category. * - * @since x.x + * @since 7.1 * * @param array $addon The add-on data from the API or prepared for display. * diff --git a/classes/helpers/FrmAppHelper.php b/classes/helpers/FrmAppHelper.php index 0417ba1752..a2e0e432c2 100644 --- a/classes/helpers/FrmAppHelper.php +++ b/classes/helpers/FrmAppHelper.php @@ -29,7 +29,7 @@ class FrmAppHelper { * * @var string */ - public static $plug_version = '7.0'; + public static $plug_version = '7.1'; /** * @var bool diff --git a/classes/helpers/FrmBuilderPreviewHelper.php b/classes/helpers/FrmBuilderPreviewHelper.php index b881a05c3b..62e78497e1 100644 --- a/classes/helpers/FrmBuilderPreviewHelper.php +++ b/classes/helpers/FrmBuilderPreviewHelper.php @@ -10,7 +10,7 @@ * Only the values a preview shows are printed with the page. The settings panels, which are most * of the cost of rendering a field, are requested separately once the previews are on screen. * - * @since x.x + * @since 7.1 */ class FrmBuilderPreviewHelper { @@ -44,7 +44,7 @@ class FrmBuilderPreviewHelper { * * This runs before the field settings are prepared, so it only looks at the saved field. * - * @since x.x + * @since 7.1 * * @param object $field The field being added to the form builder. * @param FrmFieldType $field_obj The field type object for the field. @@ -60,7 +60,7 @@ public static function supports( $field, $field_obj, $display ) { * * Register a matching renderer with the frm_builder_preview_inputs JavaScript filter. * - * @since x.x + * @since 7.1 * * @param array $field_classes Supported classes keyed by field type. */ @@ -89,7 +89,7 @@ public static function supports( $field, $field_obj, $display ) { * Return false for a field whose preview is changed on the server, so it keeps * the preview rendered by PHP. * - * @since x.x + * @since 7.1 * * @param bool $supported Whether the preview can be drawn in the browser. * @param object $field The field being added to the form builder. @@ -100,7 +100,7 @@ public static function supports( $field, $field_obj, $display ) { /** * Pro wraps an input in a prefix and suffix group, which the browser does not draw. * - * @since x.x + * @since 7.1 * * @param object $field The field being added to the form builder. * @@ -119,7 +119,7 @@ private static function has_input_group( $field ) { /** * Record a field preview and print the empty list item it will be drawn into. * - * @since x.x + * @since 7.1 * * @param array{field: array, saved_field: object, field_obj: FrmFieldType, display: array, li_classes: string, extra_field_attributes: array} $atts The field settings from FrmFieldsHelper::setup_edit_vars(), the saved field, its type object, display settings, and list item classes and attributes. * @param object{definitions: array, fields: array}&\stdClass $manifest The previews printed with the form builder. @@ -143,7 +143,7 @@ public static function add_to_manifest( $atts, $manifest ) { /** * Reserve the builder card's label, input and spacing before its preview is drawn. * - * @since x.x + * @since 7.1 * * @param array|object $field The saved field and its display options. * @@ -189,7 +189,7 @@ public static function get_placeholder_height( $field ) { /** * Print the previews and the text they share for the browser to draw. * - * @since x.x + * @since 7.1 * * @param object{definitions: array, fields: array}&\stdClass $manifest The previews collected while the fields were listed. * @@ -226,7 +226,7 @@ public static function print_manifest( $manifest ) { * value the browser would read from the escaped attribute, so they match the PHP preview. * Empty values are left out to keep the page small. * - * @since x.x + * @since 7.1 * * @param array{field: array, saved_field: object, field_obj: FrmFieldType, display: array, li_classes: string, extra_field_attributes: array} $atts The prepared field. See add_to_manifest(). * @param object{definitions: array, fields: array}&\stdClass $manifest The previews printed with the form builder. @@ -273,7 +273,7 @@ private static function get_preview_data( $atts, $manifest ) { /** * Filters the data used to draw a field's inputs in the browser. * - * @since x.x + * @since 7.1 * * @param array $data Preview data. * @param array $field Prepared field settings. @@ -312,7 +312,7 @@ static function ( $value ) { /** * Share the classes, form and type of a list item between the fields that use the same ones. * - * @since x.x + * @since 7.1 * * @param array $definition The list item classes, form id, field type and display type. * @param object{definitions: array, fields: array}&\stdClass $manifest The previews printed with the form builder. @@ -333,7 +333,7 @@ private static function get_definition_index( $definition, $manifest ) { /** * Add the values shown in the field input. * - * @since x.x + * @since 7.1 * * @param array $data The preview data. * @param FrmFieldType $field_obj The field type object. @@ -382,7 +382,7 @@ private static function add_input_data( &$data, $field_obj, $field, $saved_field /** * Add the markup printed by actions inside the field preview. * - * @since x.x + * @since 7.1 * * @param array $data The preview data. * @param array $field The field settings. @@ -420,7 +420,7 @@ private static function add_hook_html( &$data, $field, $display ) { /** * Get the value the browser reads from an attribute escaped with esc_attr(). * - * @since x.x + * @since 7.1 * * @param mixed $value The attribute value. * diff --git a/classes/helpers/FrmEntriesHelper.php b/classes/helpers/FrmEntriesHelper.php index 34abcb0930..5d3668d4e9 100644 --- a/classes/helpers/FrmEntriesHelper.php +++ b/classes/helpers/FrmEntriesHelper.php @@ -199,15 +199,15 @@ public static function replace_default_message( $message, $atts ) { return $message; } - if ( ! $message ) { - $message = '[default-message]'; - } - + $message = $message ? $message : '[default-message]'; preg_match_all( "/\[(default-message|default_message)\b(.*?)(?:(\/))?\]/s", $message, $shortcodes, PREG_PATTERN_ORDER ); foreach ( $shortcodes[0] as $short_key => $tag ) { + // Array and json values are read by code, so they are only escaped when the caller asks, like FrmEmail does. $add_atts = FrmShortcodeHelper::get_shortcode_attribute_array( $shortcodes[2][ $short_key ] ); - $this_atts = $add_atts ? array_merge( $atts, $add_atts ) : $atts; + $format = $add_atts['format'] ?? $atts['format'] ?? ''; + $escape = $atts['esc_shortcodes'] ?? ( empty( $atts['plain_text'] ) && ! in_array( $format, array( 'array', 'json' ), true ) ); + $this_atts = array_merge( $atts, $add_atts, array( 'esc_shortcodes' => $escape ) ); $default = FrmEntriesController::show_entry_shortcode( $this_atts ); // Add the default message. diff --git a/classes/helpers/FrmFieldGridHelper.php b/classes/helpers/FrmFieldGridHelper.php index a5d6c98887..037cfda065 100644 --- a/classes/helpers/FrmFieldGridHelper.php +++ b/classes/helpers/FrmFieldGridHelper.php @@ -8,7 +8,7 @@ class FrmFieldGridHelper { /** * Get the builder grid provider, with the original helper as a fallback. * - * @since x.x + * @since 7.1 * * @return FrmFieldGridHelper */ @@ -16,7 +16,7 @@ public static function get_instance() { /** * Filters the helper used to arrange fields in the builder. * - * @since x.x + * @since 7.1 * * @param FrmFieldGridHelper|null $helper The optional helper supplied by a field provider. */ diff --git a/classes/helpers/FrmFieldPlacementHelper.php b/classes/helpers/FrmFieldPlacementHelper.php index c70c01a376..03c0ff7b11 100644 --- a/classes/helpers/FrmFieldPlacementHelper.php +++ b/classes/helpers/FrmFieldPlacementHelper.php @@ -6,14 +6,14 @@ /** * Shared placement rules for the builder and programmatic field writes. * - * @since x.x + * @since 7.1 */ class FrmFieldPlacementHelper { /** * Check placement using stored values for columns omitted by an update. * - * @since x.x + * @since 7.1 * * @param int $id Field ID being updated. * @param array $values New field columns and options. @@ -49,7 +49,7 @@ public static function is_allowed_update( $id, $values ) { /** * Check the destination before writing a field or running creation hooks. * - * @since x.x + * @since 7.1 * * @param string $type Field type, including palette variants. * @param int $form_id Destination form ID. diff --git a/classes/helpers/FrmFieldsHelper.php b/classes/helpers/FrmFieldsHelper.php index 9e50a11fe0..7dddebd917 100644 --- a/classes/helpers/FrmFieldsHelper.php +++ b/classes/helpers/FrmFieldsHelper.php @@ -15,7 +15,7 @@ class FrmFieldsHelper { /** * Prepared field arrays shared only while their builder markup is being rendered. * - * @since x.x + * @since 7.1 * * @var array */ @@ -73,7 +73,7 @@ public static function setup_new_vars( $type = '', $form_id = '' ) { /** * Check if a form is the child form of a repeater. * - * @since x.x + * @since 7.1 * * @param int|string $form_id The ID of the form the field is added to. * @@ -115,7 +115,7 @@ public static function setup_edit_vars( $field, $doing_ajax = false ) { /** * Share prepared values during a builder render, returning the previous values to restore. * - * @since x.x + * @since 7.1 * * @param object $field The field object used by the builder and its field type handler. * @param array|null $values Prepared field values, or null to stop sharing them. diff --git a/classes/helpers/FrmFormsHelper.php b/classes/helpers/FrmFormsHelper.php index 69340fbc9e..91e8a36b77 100644 --- a/classes/helpers/FrmFormsHelper.php +++ b/classes/helpers/FrmFormsHelper.php @@ -8,7 +8,7 @@ class FrmFormsHelper { /** * Forms with more fields than this load and save in the builder with AJAX. * - * @since x.x + * @since 7.1 * * @var int */ @@ -761,7 +761,7 @@ public static function get_default_opts() { * Rendering every field on page load slows down exponentially as a form grows, * so long forms always use AJAX. * - * @since x.x + * @since 7.1 * * @param int $field_count The number of fields in the form. * @param int $form_id The id of the form being edited. @@ -773,7 +773,7 @@ public static function should_ajax_load_builder( $field_count, $form_id ) { * Allows turning AJAX loading in the form builder on or off. * Use __return_false to always load every field with the page. * - * @since x.x + * @since 7.1 * * @param bool $ajax_load True when the form has more than AJAX_BUILDER_FIELD_THRESHOLD fields. * @param array $args Contains `field_count` and `form_id`. @@ -788,7 +788,7 @@ public static function should_ajax_load_builder( $field_count, $form_id ) { /** * Count the fields in a form the way a user sees them, without the Submit field. * - * @since x.x + * @since 7.1 * * @param array $fields Field objects or arrays. * diff --git a/classes/helpers/FrmSpamEntriesHelper.php b/classes/helpers/FrmSpamEntriesHelper.php index fe6f27fb6a..0f4147f5a7 100644 --- a/classes/helpers/FrmSpamEntriesHelper.php +++ b/classes/helpers/FrmSpamEntriesHelper.php @@ -135,15 +135,19 @@ public static function can_store_spam() { * * Bot checks are rejected by default because bots can send a high volume of submissions. * Content checks are saved by default so a false positive can be recovered from the Spam tab. + * A CAPTCHA that could not be verified because the service failed is saved too, so an outage + * does not lose real submissions. * This runs while the global settings load, so it must not translate anything. * * @since 7.0 + * @since 7.1 Added captcha_unavailable. * * @return array */ public static function get_default_handling() { return array( 'captcha' => self::BLOCK, + 'captcha_unavailable' => self::SAVE, 'honeypot' => self::BLOCK, 'antispam' => self::BLOCK, 'no_ip' => self::BLOCK, @@ -182,6 +186,7 @@ public static function get_optional_sources() { public static function get_sources() { $labels = array( 'captcha' => __( 'CAPTCHA errors', 'formidable' ), + 'captcha_unavailable' => __( 'CAPTCHA service unavailable', 'formidable' ), 'honeypot' => __( 'Honeypot', 'formidable' ), 'antispam' => __( 'JavaScript anti-spam check', 'formidable' ), 'no_ip' => __( 'Missing IP address', 'formidable' ), diff --git a/classes/helpers/FrmStylesHelper.php b/classes/helpers/FrmStylesHelper.php index f0a782b6e8..941cf8dda3 100644 --- a/classes/helpers/FrmStylesHelper.php +++ b/classes/helpers/FrmStylesHelper.php @@ -243,7 +243,7 @@ public static function hex2rgb( $color ) { /** * Parse the color formats supported by the styler. * - * @since x.x + * @since 7.1 * * @param string $color Hex, RGB or HSL color value. * @@ -323,7 +323,7 @@ private static function get_color_channels( $color ) { /** * Expand a validated hex color into numeric channels. * - * @since x.x + * @since 7.1 * * @param string $color Hex color with an optional hash. * @@ -344,7 +344,7 @@ private static function get_hex_color_channels( $color ) { /** * Check whether a value is a supported color without accepting CSS declarations. * - * @since x.x + * @since 7.1 * * @param string $color Hex, RGB or HSL color value. * @@ -357,7 +357,7 @@ public static function is_valid_color( $color ) { /** * Read opacity consistently across the supported color formats. * - * @since x.x + * @since 7.1 * * @param string $color Hex, RGB or HSL color value. * @@ -371,7 +371,7 @@ public static function get_color_alpha( $color ) { /** * Restore the hash only for a bare hexadecimal color setting. * - * @since x.x + * @since 7.1 * * @param string $color Saved color value. * @@ -828,7 +828,7 @@ function ( $key ) use ( $defaults, $font_size, $base_font_size, &$settings ) { /** * Get the font size settings that are scaled from the "Base Font Size" value. * - * @since x.x + * @since 7.1 * * @return array */ @@ -854,7 +854,7 @@ public static function get_base_font_size_settings() { * Settings used directly in a CSS template (in a condition, a calculation, or a raw value) need the server. * This includes the templates from Pro versions that are still supported, so those settings are left out until Pro outputs them only as CSS variables. * - * @since x.x + * @since 7.1 * * @return array */ @@ -920,7 +920,7 @@ public static function get_live_preview_settings() { * Remove any setting that a frm_output_single_style callback uses directly, so it still gets new CSS from the server. * Add a setting only when every template outputs it as a CSS variable and nothing else. * - * @since x.x + * @since 7.1 * * @param array $settings Style setting keys. */ diff --git a/classes/models/FrmAntiSpam.php b/classes/models/FrmAntiSpam.php index f78ef2f477..8e335e5ad6 100644 --- a/classes/models/FrmAntiSpam.php +++ b/classes/models/FrmAntiSpam.php @@ -239,7 +239,7 @@ public function validate() { // If the antispam setting is enabled and we don't have a token, bail. if ( ! $token ) { - if ( FrmAppHelper::is_admin_page( 'formidable-entries' ) ) { + if ( $this->is_admin_entry_submission() ) { // Add an exception for the entries page. return true; } @@ -255,6 +255,21 @@ public function validate() { return $this->process_antispam_filter( true ); } + /** + * Check if a user who may manage entries is submitting from the admin entries page. + * + * @since 7.1 + * + * @return bool + */ + private function is_admin_entry_submission() { + if ( ! FrmAppHelper::is_admin_page( 'formidable-entries' ) ) { + return false; + } + + return current_user_can( 'frm_create_entries' ) || current_user_can( 'frm_edit_entries' ); + } + /** * Helper to run our filter on all the responses for the antispam checks. * diff --git a/classes/models/FrmEmail.php b/classes/models/FrmEmail.php index 1db14bd07d..209f97020e 100644 --- a/classes/models/FrmEmail.php +++ b/classes/models/FrmEmail.php @@ -376,6 +376,7 @@ private function set_subject() { ); $this->subject = apply_filters( 'frm_email_subject', $this->subject, $args ); $this->subject = wp_specialchars_decode( strip_tags( stripslashes( $this->subject ) ), ENT_QUOTES ); + $this->subject = self::decode_brackets( $this->subject ); } /** @@ -401,11 +402,13 @@ private function set_message() { $mail_body = FrmEntriesHelper::replace_default_message( $prev_mail_body, array( - 'id' => $this->entry->id, - 'entry' => $pass_entry, - 'plain_text' => $this->is_plain_text, - 'user_info' => $this->include_user_info, - 'table_style' => $this->settings['email_style'], + 'id' => $this->entry->id, + 'entry' => $pass_entry, + 'plain_text' => $this->is_plain_text, + 'user_info' => $this->include_user_info, + 'table_style' => $this->settings['email_style'], + // Keep submitted shortcodes inert for frm_email_message filters. Plain text is decoded after them. + 'esc_shortcodes' => true, ) ); @@ -415,7 +418,7 @@ private function set_message() { $mail_body .= "\r\n\r\n" . __( 'User Information', 'formidable' ) . "\r\n"; $this->maybe_add_ip( $mail_body ); $mail_body .= __( 'User-Agent (Browser/OS)', 'formidable' ) . ': ' . FrmEntriesHelper::get_browser( $data['browser'] ) . "\r\n"; - $mail_body .= __( 'Referrer', 'formidable' ) . ': ' . $data['referrer'] . "\r\n"; + $mail_body .= __( 'Referrer', 'formidable' ) . ': ' . $this->prepare_user_info_value( $data['referrer'] ) . "\r\n"; } $this->message = $mail_body; @@ -428,6 +431,25 @@ private function set_message() { } $this->message = apply_filters( 'frm_email_message', $this->message, $this->package_atts() ); + + if ( $this->is_plain_text ) { + $this->message = self::decode_brackets( $this->message ); + } + } + + /** + * Show square brackets that were encoded in field values as plain characters in plain text. + * This must run after every filter that could process shortcodes. + * wp_kses_post() pads the entity, so [ is decoded too. + * + * @since 7.1 + * + * @param string $text The plain text subject or message. + * + * @return string + */ + private static function decode_brackets( $text ) { + return (string) preg_replace( '/�*91;/', '[', $text ); } /** @@ -453,10 +475,28 @@ private function add_autop() { */ private function maybe_add_ip( &$mail_body ) { if ( ! empty( $this->entry->ip ) ) { - $mail_body .= __( 'IP Address', 'formidable' ) . ': ' . $this->entry->ip . "\r\n"; + $mail_body .= __( 'IP Address', 'formidable' ) . ': ' . $this->prepare_user_info_value( $this->entry->ip ) . "\r\n"; } } + /** + * Prepare a user information value for the email message. + * + * @since 7.1 + * + * @param mixed $value The user information value from the entry. + * + * @return string + */ + private function prepare_user_info_value( $value ) { + $value = (string) $value; + + // Plain text brackets are decoded after the frm_email_message filter. + FrmFieldsHelper::sanitize_embedded_shortcodes( array( 'entry' => $this->entry ), $value ); + + return (string) $value; + } + /** * Set the attachments for an email message * diff --git a/classes/models/FrmEntry.php b/classes/models/FrmEntry.php index bb86e42b6a..602a085c6f 100644 --- a/classes/models/FrmEntry.php +++ b/classes/models/FrmEntry.php @@ -866,18 +866,19 @@ private static function package_entry_data( &$values, $type = 'standard' ) { $values['item_key'] = ''; } - $item_name = self::get_new_entry_name( $values, $values['item_key'] ); - $new_values = array( + $item_name = self::get_new_entry_name( $values, $values['item_key'] ); + $column_values = self::remove_posted_columns( $values, $type, array( 'frm_create_entries', 'frm_edit_entries' ) ); + $new_values = array( 'item_key' => FrmAppHelper::get_unique_key( $values['item_key'], $wpdb->prefix . 'frm_items', 'item_key' ), 'name' => FrmAppHelper::truncate( $item_name, 255, 1, '', true ), 'ip' => self::get_ip( $values ), - 'is_draft' => self::get_is_draft_value( $values, $type ), + 'is_draft' => self::get_is_draft_value( $column_values, $type ), 'form_id' => (int) self::get_entry_value( $values, 'form_id', null ), - 'post_id' => (int) self::get_entry_value( $values, 'post_id', 0 ), - 'parent_item_id' => (int) self::get_entry_value( $values, 'parent_item_id', 0 ), - 'created_at' => self::get_created_at( $values ), - 'updated_at' => self::get_updated_at( $values ), - 'description' => self::get_entry_description( $values ), + 'post_id' => (int) self::get_entry_value( $column_values, 'post_id', 0 ), + 'parent_item_id' => (int) self::get_entry_value( $column_values, 'parent_item_id', 0 ), + 'created_at' => self::get_created_at( $column_values ), + 'updated_at' => self::get_updated_at( $column_values ), + 'description' => self::get_entry_description( $column_values ), 'user_id' => self::get_entry_user_id( $values, $type ), ); @@ -886,6 +887,33 @@ private static function package_entry_data( &$values, $type = 'standard' ) { return $new_values; } + /** + * Remove entry columns that were included in the posted form data. + * + * @since 7.1 + * + * @param array $values The entry values. + * @param string $type The create/update type. 'xml' for an import. + * @param array $capabilities Any of these capabilities allows the request to set the columns. + * + * @return array + */ + private static function remove_posted_columns( $values, $type, $capabilities ) { + if ( self::is_trusted_import( $type ) || FrmAppHelper::user_has_permission( array_merge( $capabilities, array( 'administrator' ) ) ) ) { + return $values; + } + + $columns = array( 'post_id', 'parent_item_id', 'created_at', 'updated_at', 'is_draft', 'description' ); + + foreach ( $columns as $column ) { + if ( null !== FrmAppHelper::get_post_param( $column, null, '' ) ) { + unset( $values[ $column ] ); + } + } + + return $values; + } + /** * @param array $values * @param string $name @@ -1316,6 +1344,7 @@ private static function before_update_entry( $id, &$values, $update_type ) { private static function package_entry_to_update( $id, $values, $update_type = 'standard' ) { global $wpdb; + $values = self::remove_posted_columns( $values, $update_type, array( 'frm_edit_entries' ) ); $new_values = array( 'name' => FrmAppHelper::truncate( self::get_new_entry_name( $values ), 255, 1, '', true ), 'form_id' => (int) self::get_entry_value( $values, 'form_id', null ), diff --git a/classes/models/FrmEntryFormatter.php b/classes/models/FrmEntryFormatter.php index d9695c41fd..25e08c684a 100644 --- a/classes/models/FrmEntryFormatter.php +++ b/classes/models/FrmEntryFormatter.php @@ -416,9 +416,9 @@ public function get_formatted_entry_values() { } if ( $this->format === 'json' ) { - $content = json_encode( $this->prepare_array() ); + $content = json_encode( $this->maybe_sanitize_shortcodes_in_array( $this->prepare_array() ) ); } elseif ( $this->format === 'array' ) { - $content = $this->prepare_array(); + $content = $this->maybe_sanitize_shortcodes_in_array( $this->prepare_array() ); } elseif ( $this->format === 'table' ) { $content = $this->prepare_html_table(); } elseif ( $this->format === 'plain_text_block' ) { @@ -945,6 +945,10 @@ protected function prepare_display_value_for_array( $value ) { protected function prepare_display_value_for_html_table( $display_value, $field_type = '' ) { $display_value = $this->flatten_array( $display_value ); + if ( '' !== $field_type && $this->should_sanitize_shortcodes() && is_string( $display_value ) ) { + FrmFieldsHelper::sanitize_embedded_shortcodes( array( 'entry' => $this->entry ), $display_value ); + } + if ( ! isset( $this->atts['line_breaks'] ) || ! empty( $this->atts['line_breaks'] ) ) { return str_replace( array( "\r\n", "\n" ), '
', $display_value ); } @@ -963,7 +967,51 @@ protected function prepare_display_value_for_html_table( $display_value, $field_ */ protected function prepare_display_value_for_plain_text_content( $display_value ) { $display_value = $this->flatten_array( $display_value ); - return $this->strip_html( $display_value ); + $display_value = $this->strip_html( $display_value ); + + if ( $this->should_sanitize_shortcodes() && is_string( $display_value ) ) { + FrmFieldsHelper::sanitize_embedded_shortcodes( array( 'entry' => $this->entry ), $display_value ); + } + + return $display_value; + } + + /** + * Check if shortcodes in the entry values should be escaped. + * + * @since 7.1 + * + * @return bool + */ + private function should_sanitize_shortcodes() { + return ! empty( $this->atts['esc_shortcodes'] ); + } + + /** + * Escape shortcodes in the submitted values of an array or json output. + * Keys are field keys or ids, so only the values are changed. + * + * @since 7.1 + * + * @param array $values The prepared entry values. + * + * @return array + */ + private function maybe_sanitize_shortcodes_in_array( $values ) { + if ( ! $this->should_sanitize_shortcodes() ) { + return $values; + } + + foreach ( $values as $key => $value ) { + if ( is_array( $value ) ) { + $values[ $key ] = $this->maybe_sanitize_shortcodes_in_array( $value ); + } elseif ( is_string( $value ) ) { + FrmFieldsHelper::sanitize_embedded_shortcodes( array( 'entry' => $this->entry ), $value ); + $values[ $key ] = $value; + } + } + + return $values; } /** diff --git a/classes/models/FrmEntryMeta.php b/classes/models/FrmEntryMeta.php index f944402e40..8bdc91c255 100644 --- a/classes/models/FrmEntryMeta.php +++ b/classes/models/FrmEntryMeta.php @@ -61,7 +61,7 @@ public static function add_entry_meta( $entry_id, $field_id, $meta_key, $meta_va /** * Filter entry metadata before insertion. * - * @since x.x Added the original value parameter for fields that preserve whitespace. + * @since 7.1 Added the original value parameter for fields that preserve whitespace. * * @param array $new_values Prepared metadata columns. * @param mixed $meta_value Original value before trimming or serialization. diff --git a/classes/models/FrmEntryValidate.php b/classes/models/FrmEntryValidate.php index 3b474b6651..8ef2d7307f 100644 --- a/classes/models/FrmEntryValidate.php +++ b/classes/models/FrmEntryValidate.php @@ -252,7 +252,7 @@ private static function validate_options( &$errors, $posted_field, $value, $args * Validate that value matches one of the options for the field. * * @since 6.21 - * @since x.x Added the $entry_id parameter. + * @since 7.1 Added the $entry_id parameter. * * @param stdClass $field * @param array|string $value @@ -323,7 +323,7 @@ private static function option_is_valid( $field, $value, $options, $entry_id = 0 /** * Check a value that is missing from the saved options against the setup hooks. * - * @since x.x + * @since 7.1 * * @param stdClass $field The field being validated. * @param array|string $value The value to validate. @@ -343,7 +343,7 @@ private static function setup_hooks_allow_value( $field, $value, $entry_id ) { /** * Check if a posted value matches a single option value. * - * @since x.x + * @since 7.1 * * @param string $current_value The posted value. * @param string $option_value The option value to compare against. @@ -370,7 +370,7 @@ private static function value_matches_option( $current_value, $option_value ) { * Compare two values as integers only when both are whole numbers, so "01" matches "1" * but a decimal like "101.9" does not match "101". * - * @since x.x + * @since 7.1 * * @param string $current_value The posted value. * @param string $option_value The option value to compare against. @@ -421,7 +421,7 @@ private static function is_filtered_match( $value, $option_value ) { * Accept options produced by setup hooks and preserve the bypass for changed option lists. * * @since 6.21 - * @since x.x Added the $entry_id parameter and renamed from options_are_dynamic_based_on_hook. + * @since 7.1 Added the $entry_id parameter and renamed from options_are_dynamic_based_on_hook. * * @param object $field_object The field object. * @param array|string $value The value to validate. @@ -465,7 +465,7 @@ private static function hook_options_allow_value( $field_object, $value, $entry_ * By default any value is accepted for that field. Return false to require the posted * value to match one of the options the setup hooks return at submission time. * - * @since x.x + * @since 7.1 * * @param bool $skip_validation Whether to accept any value for this field. * @param stdClass $field The field being validated. @@ -479,7 +479,7 @@ private static function hook_options_allow_value( $field_object, $value, $entry_ * Check if the new-entry setup hook has a callback that did not already run through * the edit setup hook. Only those callbacks can make a value valid on the fallback check. * - * @since x.x + * @since 7.1 * * @return bool */ @@ -515,7 +515,7 @@ private static function has_new_entry_only_setup_callbacks() { * same option values the field renders with. This includes the option key when a * hook sets use_key, which does not change the option list itself. * - * @since x.x + * @since 7.1 * * @param array|string $value The value to validate. * @param array $values The field array after the setup hooks run. @@ -537,7 +537,7 @@ private static function value_matches_prepared_options( $value, $values ) { } /** - * @since x.x + * @since 7.1 * * @param string $current_value The posted value. * @param array $values The field array after the setup hooks run. @@ -629,7 +629,7 @@ public static function validate_field_types( &$errors, $posted_field, $value, $a $reason = $new_errors[ $error_key ] ?? ''; } - if ( isset( $new_errors[ $error_key ] ) && FrmSpamEntriesHelper::maybe_flag_submission( $posted_field->form_id, 'captcha', $reason ) ) { + if ( isset( $new_errors[ $error_key ] ) && FrmSpamEntriesHelper::maybe_flag_submission( $posted_field->form_id, $field_obj->get_spam_source(), $reason ) ) { unset( $new_errors[ $error_key ] ); } } diff --git a/classes/models/FrmField.php b/classes/models/FrmField.php index 591523b7a5..2ea52ebe8d 100644 --- a/classes/models/FrmField.php +++ b/classes/models/FrmField.php @@ -11,7 +11,7 @@ class FrmField { * Version 1 covers frm_field_created and frm_field_updated, plus frm_field_order_updated for * builder saves that write the field order of many fields in one query without frm_field_updated. * - * @since x.x + * @since 7.1 */ const WRITE_HOOKS_VERSION = 1; @@ -28,7 +28,7 @@ class FrmField { /** * Set by create_copy() so the next create() keeps the source placement. * - * @since x.x + * @since 7.1 * * @var bool */ @@ -549,7 +549,7 @@ public static function create( $values, $return = true ) { /** * Fires after a field is saved to the database. * - * @since x.x + * @since 7.1 * * @param int $new_id Created field ID. */ @@ -573,7 +573,7 @@ public static function create( $values, $return = true ) { * field there, so forms saved before a rule existed keep their layout. Callers that build a new * field from user input must use create() so the placement rules apply. * - * @since x.x + * @since 7.1 * * @param array $values Field values, as passed to create(). * @param bool $return Whether to return the new field ID. @@ -879,7 +879,7 @@ public static function update( $id, $values ) { /** * Fires after a field update succeeds, including updates with unchanged values. * - * @since x.x + * @since 7.1 * * @param int $id Updated field ID. */ @@ -931,7 +931,7 @@ public static function destroy( $id ) { /** * Fires after a field is deleted from the database. * - * @since x.x + * @since 7.1 * * @param int $id Deleted field ID. */ @@ -975,7 +975,7 @@ public static function delete_form_transient( $form_id ) { * The LIKE prefixes are escaped so the underscores are matched literally. * Unescaped, the leading underscore is a wildcard and MySQL scans the whole options table. * - * @since x.x + * @since 7.1 * * @param int $form_id Form ID. * @@ -1522,7 +1522,7 @@ public static function no_save_fields() { /** * Filters the field types that do not store entry metadata. * - * @since x.x + * @since 7.1 * * @param string[] $field_types Display-only field types. */ diff --git a/classes/models/FrmForm.php b/classes/models/FrmForm.php index 4822f8cbbe..a1cc2aaac4 100644 --- a/classes/models/FrmForm.php +++ b/classes/models/FrmForm.php @@ -308,7 +308,7 @@ public static function update( $id, $values, $create_link = false ) { /** * Save builder order changes after active field settings have been updated. * - * @since x.x + * @since 7.1 * * @param int|string $form_id Form being saved. * @param array $values Form values including the JSON field ID to order map. @@ -370,7 +370,7 @@ private static function update_field_order( $form_id, $values ) { * * This write does not fire frm_field_updated for each field. * - * @since x.x + * @since 7.1 * * @param int[] $ids IDs of the fields whose order was sent. Fields outside the form are skipped by the query. * @param int $form_id The form being saved. @@ -808,7 +808,7 @@ public static function destroy( $id ) { /** * Fires before a form and its children are permanently deleted. * - * @since x.x + * @since 7.1 * * @param int $id The form ID being deleted. */ diff --git a/classes/models/FrmFormApi.php b/classes/models/FrmFormApi.php index e0d7822b72..7bd7b93e57 100644 --- a/classes/models/FrmFormApi.php +++ b/classes/models/FrmFormApi.php @@ -276,7 +276,7 @@ protected function api_url() { * This checks the cache rather than the class, so a subclass that reads the add-ons feed, * like FrmAILicense in Formidable AI, caches the same Boosts as this class. * - * @since x.x + * @since 7.1 * * @return bool */ diff --git a/classes/models/FrmSettings.php b/classes/models/FrmSettings.php index 906c35e9f3..1986d6083e 100644 --- a/classes/models/FrmSettings.php +++ b/classes/models/FrmSettings.php @@ -510,7 +510,7 @@ private function fill_captcha_settings() { /** * Use a configured provider when the saved CAPTCHA type is unsupported. * - * @since x.x + * @since 7.1 * * @return void */ diff --git a/classes/models/fields/FrmFieldCaptcha.php b/classes/models/fields/FrmFieldCaptcha.php index 3ff7c7e906..2ef0bf68d8 100644 --- a/classes/models/fields/FrmFieldCaptcha.php +++ b/classes/models/fields/FrmFieldCaptcha.php @@ -24,6 +24,15 @@ class FrmFieldCaptcha extends FrmFieldType { */ private $validation_failure_reason = ''; + /** + * The spam source for the most recent CAPTCHA validation failure. + * + * @since 7.1 + * + * @var string + */ + private $spam_source = 'captcha'; + /** * Get the service explanation and error codes for the validation failure. * @@ -35,6 +44,19 @@ public function get_validation_failure_reason() { return $this->validation_failure_reason; } + /** + * Get the spam source that decides how the most recent validation failure is handled. + * A CAPTCHA that could not be verified because of the service is handled separately + * from a CAPTCHA the visitor failed. + * + * @since 7.1 + * + * @return string + */ + public function get_spam_source() { + return $this->spam_source; + } + /** * @return string */ @@ -328,7 +350,10 @@ protected function validate_against_api( $args ) { $resp = $this->send_api_check(); $response = json_decode( wp_remote_retrieve_body( $resp ), true ); + $this->spam_source = 'captcha'; + if ( is_wp_error( $resp ) ) { + $this->spam_source = 'captcha_unavailable'; $error_string = $resp->get_error_message(); $errors[ 'field' . $args['id'] ] = __( 'There was a problem verifying your captcha', 'formidable' ); $errors[ 'field' . $args['id'] ] .= ' ' . $error_string; @@ -338,13 +363,21 @@ protected function validate_against_api( $args ) { return $errors; } - if ( ! is_array( $response ) ) { + if ( ! is_array( $response ) || ! array_key_exists( 'success', $response ) ) { + $reason = __( 'The CAPTCHA service response could not be read, so the CAPTCHA could not be verified.', 'formidable' ); + $this->spam_source = 'captcha_unavailable'; + + $this->record_validation_failure( $reason, array() ); + + $errors[ 'field' . $args['id'] ] = $this->get_invalid_message( array(), $reason ); + return $errors; } - $reason = ''; + $reason = ''; + $is_recaptcha_v3 = $frm_settings->active_captcha === 'recaptcha' && 'v3' === $frm_settings->re_type; - if ( $frm_settings->active_captcha === 'recaptcha' && 'v3' === $frm_settings->re_type && array_key_exists( 'score', $response ) ) { + if ( $is_recaptcha_v3 && array_key_exists( 'score', $response ) ) { $threshold = floatval( $frm_settings->re_threshold ); $score = floatval( $response['score'] ); @@ -361,7 +394,7 @@ protected function validate_against_api( $args ) { } } - if ( ! isset( $response['success'] ) || $response['success'] ) { + if ( true === $response['success'] ) { return $errors; } diff --git a/classes/models/fields/FrmFieldPhone.php b/classes/models/fields/FrmFieldPhone.php index bc91f3b78d..52db998865 100644 --- a/classes/models/fields/FrmFieldPhone.php +++ b/classes/models/fields/FrmFieldPhone.php @@ -40,7 +40,7 @@ protected function field_settings_for_type() { } /** - * @since x.x + * @since 7.1 * * @return array */ @@ -52,7 +52,7 @@ protected function get_autocomplete_filter_keys() { * Default new phone fields to tel autocomplete. Saved fields without the * setting keep the empty parent default so their output does not change. * - * @since x.x + * @since 7.1 * * @return array */ diff --git a/classes/models/fields/FrmFieldSubmit.php b/classes/models/fields/FrmFieldSubmit.php index 629dae21fd..4cce7d2680 100644 --- a/classes/models/fields/FrmFieldSubmit.php +++ b/classes/models/fields/FrmFieldSubmit.php @@ -100,7 +100,7 @@ public function front_field_input( $args, $shortcode_atts ) { $submit = $this->field['name']; $form_action = FrmSubmitHelper::get_current_action_from_global_var( $form->id ); - $values = FrmAppHelper::setup_edit_vars( $form, 'forms' ); + $values = FrmAppHelper::setup_edit_vars( $form, 'forms', '', false, self::get_stored_form_values( $form ) ); ob_start(); @@ -118,4 +118,21 @@ public function front_field_input( $args, $shortcode_atts ) { return ob_get_clean(); } + + /** + * Builds the values used to render the submit button from the saved form. + * + * @since 7.1 + * + * @param object $form The form being rendered. + * + * @return array + */ + private static function get_stored_form_values( $form ) { + return array( + 'form_key' => $form->form_key, + 'is_template' => $form->is_template, + 'options' => is_array( $form->options ) ? $form->options : array(), + ); + } } diff --git a/classes/models/fields/FrmFieldType.php b/classes/models/fields/FrmFieldType.php index 17675fd875..6122a84392 100644 --- a/classes/models/fields/FrmFieldType.php +++ b/classes/models/fields/FrmFieldType.php @@ -32,7 +32,7 @@ abstract class FrmFieldType { /** * Whether this field can be placed in a repeater. * - * @since x.x + * @since 7.1 * * @var bool */ @@ -41,7 +41,7 @@ abstract class FrmFieldType { /** * Get the repeater placement policy, including declarations from add-ons. * - * @since x.x + * @since 7.1 * * @return bool */ @@ -375,7 +375,7 @@ protected function include_on_form_builder( $name, $field ) { /** * Keep only displayed choices in a dropdown preview. Settings retain every choice. * - * @since x.x + * @since 7.1 * * @param array $field The prepared builder field. * @@ -485,7 +485,7 @@ protected function builder_text_field( $name = '' ) { * The width is printed with the field so the preview renders at its final size, with no * resize after the builder scripts load. The builder updates it live as the setting changes. * - * @since x.x + * @since 7.1 * * @return string The style attribute value, or an empty string when no size applies. */ @@ -512,7 +512,7 @@ protected function get_builder_size_style() { /** * Whether the field settings panel offers a width control. * - * @since x.x + * @since 7.1 * * @param array $display Display options for the field settings panel. * diff --git a/classes/models/fields/FrmFieldUserID.php b/classes/models/fields/FrmFieldUserID.php index e7a7f38fb5..83023eeb11 100644 --- a/classes/models/fields/FrmFieldUserID.php +++ b/classes/models/fields/FrmFieldUserID.php @@ -80,6 +80,16 @@ protected function get_field_value( $args ) { * @return array */ public function validate( $args ) { + // A blank value can't point at another user. Registration posts one when a logged-in user creates a new user. + if ( ! empty( $args['value'] ) && ! self::can_set_other_user_id() ) { + $value = $this->get_value_for_current_submitter( (int) ( $args['entry_id'] ?? 0 ) ); + + if ( (string) $value !== (string) $args['value'] ) { + $args['value'] = $value; + FrmEntriesHelper::set_posted_value( $this->field, $args['value'], $args ); + } + } + // phpcs:ignore Universal.Operators.StrictComparisons if ( '' == $args['value'] ) { return array(); @@ -97,6 +107,47 @@ public function validate( $args ) { return array(); } + /** + * Whether the current user may save another user's ID in this field. + * + * Matches the check FrmEntry uses before it accepts a submitted entry owner. + * + * @since 7.1 + * + * @return bool + */ + private static function can_set_other_user_id() { + return current_user_can( 'frm_edit_entries' ) || current_user_can( 'administrator' ); + } + + /** + * Gets the value to save for a user without entry management access. + * + * @since 7.1 + * + * @param int $entry_id The entry being edited, or 0 for a new entry. + * + * @return int|string + */ + private function get_value_for_current_submitter( $entry_id ) { + if ( $entry_id ) { + $saved_value = FrmEntryMeta::get_entry_meta_by_field( $entry_id, $this->get_field_column( 'id' ) ); + + if ( is_numeric( $saved_value ) ) { + return (int) $saved_value; + } + + $entry = FrmEntry::getOne( $entry_id ); + + if ( $entry && $entry->user_id ) { + return (int) $entry->user_id; + } + } + + $user_id = get_current_user_id(); + return $user_id ? $user_id : ''; + } + /** * @param array|string $value * @param array $atts diff --git a/classes/views/frm-forms/add_field.php b/classes/views/frm-forms/add_field.php index 9eda6b6f57..6b55d16234 100644 --- a/classes/views/frm-forms/add_field.php +++ b/classes/views/frm-forms/add_field.php @@ -5,7 +5,7 @@ /** * Filters the builder container presentation. Defaults preserve section markup. * - * @since x.x + * @since 7.1 * * @param string $container_type The presentation type. * @param array $field The builder field. @@ -19,7 +19,7 @@ /** * Filters the icon shown at the start of a builder container. * - * @since x.x + * @since 7.1 * * @param string $icon_class The icon class without the frmfont marker. * @param array $field The builder field. @@ -146,7 +146,7 @@ /** * Lets field providers render their builder child list, retaining the legacy fallback. * - * @since x.x + * @since 7.1 * * @param bool $handled Whether a provider rendered the child list boundary. * @param array $field The builder field. diff --git a/classes/views/frm-settings/captcha/captcha.php b/classes/views/frm-settings/captcha/captcha.php index fe0eb6e741..29970d3dc3 100644 --- a/classes/views/frm-settings/captcha/captcha.php +++ b/classes/views/frm-settings/captcha/captcha.php @@ -159,6 +159,7 @@ $optional_sources = FrmSpamEntriesHelper::get_optional_sources(); $spam_source_tooltips = array( 'captcha' => __( 'Choose whether CAPTCHA failures prevent submission or allow the form to be submitted as a spam entry. Saved spam entries include the CAPTCHA error details.', 'formidable' ), + 'captcha_unavailable' => __( 'Choose how to handle submissions when the CAPTCHA could not be verified because the CAPTCHA service could not be reached or sent back a response that could not be read.', 'formidable' ), 'honeypot' => __( 'Detect bots that fill out an invisible field meant to stay empty.', 'formidable' ), 'antispam' => __( 'Detect submissions that fail the JavaScript anti-spam check, such as bots that do not run JavaScript.', 'formidable' ), 'no_ip' => __( 'Choose how to handle submissions when the submitter IP address cannot be detected.', 'formidable' ), diff --git a/classes/views/styles/_buttons.php b/classes/views/styles/_buttons.php index 6187514299..5b668a33fd 100644 --- a/classes/views/styles/_buttons.php +++ b/classes/views/styles/_buttons.php @@ -23,7 +23,7 @@ $frm_style->get_field_name( 'submit_bg_color' ), $style->post_content['submit_bg_color'], array( - 'title' => __( 'Background Image', 'formidable' ), + 'title' => __( 'Background', 'formidable' ), 'id' => 'frm_submit_bg_color', 'frm_style' => $frm_style, 'style' => $style, diff --git a/classes/views/styles/components/templates/colorpicker-input.php b/classes/views/styles/components/templates/colorpicker-input.php index 38880f83ae..389e727767 100644 --- a/classes/views/styles/components/templates/colorpicker-input.php +++ b/classes/views/styles/components/templates/colorpicker-input.php @@ -4,7 +4,7 @@ * * @package Formidable * - * @since x.x + * @since 7.1 */ if ( ! defined( 'ABSPATH' ) ) { diff --git a/css/admin/frm-settings-components.css b/css/admin/frm-settings-components.css index d47582ccc8..4fd4c33853 100644 --- a/css/admin/frm-settings-components.css +++ b/css/admin/frm-settings-components.css @@ -1 +1 @@ -.formidable_page_formidable-styles.js .control-section .accordion-section-title:focus{background:none}.formidable_page_formidable-styles .frm-right-panel h3.accordion-section-title:hover>svg:last-child,.formidable_page_formidable-styles .frm-right-panel .open h3.accordion-section-title>svg:first-child,.formidable_page_formidable-styles .frm-right-panel .open h3.accordion-section-title>svg:last-child{color:var(--grey-900)}.formidable_page_formidable-styles .frm-right-panel .frm-style-component{align-self:center}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component>div{max-width:216px}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm-block-color-picker{max-width:calc(100% - 44px);position:relative}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component button.frm_choose_image_box{width:36px;height:36px;padding:0;background:#fff;overflow:hidden;text-indent:-999px;flex-wrap:wrap;border:none}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_image_styling_frame{margin-left:0}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_image_preview_wrapper{position:relative;width:36px;height:36px;margin:0;border:1px solid var(--grey-300);border-radius:var(--small-radius);overflow:hidden;box-sizing:border-box}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_image_preview_wrapper .frm_image_preview_frame{max-width:120%;height:120%;margin:-10%;position:relative}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_image_data{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;margin:0;border-radius:var(--small-radius)}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_remove_image_option{width:100%;height:100%;border:1px solid var(--red-500);text-indent:-9999px;position:absolute;top:0;left:0}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_remove_image_option::before{opacity:0;content:"";display:block;position:absolute;width:100%;height:100%;z-index:1;top:0;left:0;background:rgba(255,255,255,.8)}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_remove_image_option::after{opacity:0;content:"";display:block;position:absolute;width:100%;height:100%;z-index:1;top:0;left:0;background:url("../../images/style/close.svg") no-repeat;background-position:center}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_remove_image_option:hover::before,.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_remove_image_option:hover::after{opacity:1}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_image_preview_wrapper .frm_image_preview_frame .frm_image_styling_frame,.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_image_preview_wrapper .frm_image_preview_frame .frm_image_styling_frame img{width:100%;height:100%}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_image_preview_wrapper+*,.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_image_preview_wrapper .frm_image_preview_title,.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_bg_image_additional_settings,.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_remove_image_option *{display:none}.frm-style-component .frm-radio-container{max-width:216px;height:36px;background:#f2f4f7;gap:var(--small-gap);padding:var(--gap-2xs);box-sizing:border-box;border-radius:var(--small-radius);position:relative}.frm-style-component.frm-field-shape .frm-radio-container{max-width:unset}.frm-style-component.frm-direction-component .frm-radio-container{gap:var(--gap-xs)}.frm-style-component .frm-radio-container svg{width:16px}.frm-style-component .frm-radio-container .frm-radio-active-tracker{display:block;width:28%;height:calc(100% - 8px);background:#fff;border-radius:var(--small-radius);box-shadow:var(--button-shadow);position:absolute;top:var(--gap-2xs);bottom:0;left:var(--gap-2xs);z-index:1;transition:.35s transform cubic-bezier(0.075, 0.82, 0.165, 1)}.frm-style-component.frm-field-shape .frm-radio-container .frm-radio-active-tracker{width:23%}.frm-style-component.frm-align-component.frm-2-options .frm-radio-container .frm-radio-active-tracker,.frm-style-component.frm-direction-component .frm-radio-container .frm-radio-active-tracker,.frm-style-component.frm-text-toggle-component .frm-radio-container .frm-radio-active-tracker{width:calc(50% - var(--gap-xs))}.frm-style-component .frm-radio-container>label{width:30%;height:100%;margin:0;cursor:pointer;position:relative;display:flex;z-index:2}.frm-style-component.frm-field-shape .frm-radio-container>label{width:23%}.frm-style-component.frm-align-component.frm-2-options .frm-radio-container>label,.frm-style-component.frm-direction-component .frm-radio-container>label,.frm-style-component.frm-text-toggle-component .frm-radio-container>label{width:50%}.frm-style-component.frm-text-toggle-component .frm-radio-container{height:44px;max-width:unset;gap:var(--gap-xs);padding:var(--gap-xs)}.frm-style-component.frm-text-toggle-component .frm-radio-container .frm-radio-active-tracker{height:calc(100% - var(--gap-sm));top:var(--gap-xs)}.frm-style-tabs-wrapper .frm-tabs-navs ul>li:not(.frm-active):hover,.frm-style-component .frm-radio-container input:not(:checked)+label:hover{background:#eaecf0;border-radius:var(--small-radius);box-shadow:var(--button-shadow)}.frm-style-component .frm-radio-container input{display:none}.frm-style-component .frm-slider-container{width:calc(100% - 91px);display:flex;align-items:center;color:#1d2939}.frm-style-component .frm-slider-container svg.frmsvg{color:currentColor;margin-right:8px;margin-left:-5px;position:relative;z-index:15}.frm-style-component .frm-group-sliders .frm-slider-container svg.frmsvg:hover{color:var(--primary-500);cursor:pointer}.frm-style-component .frm-slider-value{width:86px;height:36px;display:flex;justify-content:center;box-sizing:border-box;background:#fff;border-radius:var(--small-radius);border:1px solid var(--grey-300)}.frm-style-component .frm-slider-value>*{border:none}.frm-style-component .frm-slider-value input{width:40px;height:100%;min-height:34px;padding:0;font-size:var(--text-sm);color:#101828;padding-left:12px;box-sizing:border-box}.frm-style-component .frm-slider-value select{text-align:right;min-height:0;padding:0;font-size:var(--text-sm);color:#667085;width:44px;background:url("../../images/style/small-arrow.svg") no-repeat;background-position:center right 12px;padding-right:24px !important}.frm-style-component .frm-slider-value select.frm-single-unit{pointer-events:none;background-image:none;padding-right:12px !important}.frm-style-component input[type=range].frm-slider{--frm-fill: 0;--frm-thumb-size: 16px;--frm-track-size: 4px;--frm-fill-position: calc(var(--frm-thumb-size) / 2 + var(--frm-fill) * (100% - var(--frm-thumb-size)));appearance:none;-webkit-appearance:none;display:block;width:calc(100% - 5px);height:24px;margin:0;padding:0;cursor:pointer;background-color:rgba(0,0,0,0);background-image:linear-gradient(to right, var(--primary-500) var(--frm-fill-position), var(--grey-200) var(--frm-fill-position));background-repeat:no-repeat;background-size:100% var(--frm-track-size);background-position:center}.frm-style-component input[type=range].frm-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:var(--frm-thumb-size);height:var(--frm-thumb-size);border-radius:50%;background:var(--primary-500);cursor:grab;box-shadow:0 1.88px 4px -1px rgba(16,24,40,.03),0 6px 8px -2px rgba(16,24,40,.08)}.frm-style-component input[type=range].frm-slider::-moz-range-thumb{width:var(--frm-thumb-size);height:var(--frm-thumb-size);border-radius:50%;background:var(--primary-500);cursor:grab;border:none;box-shadow:0 1.88px 4px -1px rgba(16,24,40,.03),0 6px 8px -2px rgba(16,24,40,.08)}.frm-style-component input[type=range].frm-slider::-moz-range-track{height:var(--frm-track-size);background:rgba(0,0,0,0)}.frm-style-component input[type=range].frm-slider::-moz-range-progress{height:var(--frm-track-size);background:rgba(0,0,0,0)}.frm-style-component input[type=range].frm-slider:focus-visible{outline:2px solid var(--primary-500);outline-offset:2px;border-radius:var(--small-radius)}.frm-style-component input[type=range].frm-slider:disabled{cursor:default}@media(forced-colors: active){.frm-style-component input[type=range].frm-slider{appearance:auto;-webkit-appearance:auto;background-image:none}.frm-style-component input[type=range].frm-slider::-webkit-slider-thumb{-webkit-appearance:auto;appearance:auto}}.frm-slider-component .frm-independent-slider-field{margin-top:10px}.frm-slider-component.frm-disabled .frm-slider-container{pointer-events:none;opacity:.5}.frm-slider-component.frm-disabled .frm-slider-value input[type=text]{width:28px;opacity:.5}.frm-slider-component.frm-disabled .frm-slider-value select{width:56px}.frm-slider-component.frm-disabled.frm-empty .frm-slider-value input[type=text]{width:56px}.frm-slider-component.frm-disabled.frm-empty .frm-slider-value select{width:28px}.frm-style-component .frm-slider-component.frm-has-multiple-values{margin-bottom:10px}.frm-tabs-wrapper{position:relative;overflow:hidden}.frm-tabs-wrapper .frm-tabs-navigator{margin:0;padding:0;display:flex;gap:var(--gap-xs);justify-content:space-between;align-items:center;background:#f2f4f7;border-radius:var(--small-radius);box-sizing:border-box;height:44px;position:relative;z-index:2}.frm-tabs-wrapper .frm-tabs-navigator .frm-tab-item{flex:1;text-align:center;cursor:pointer}.frm-tabs-wrapper .frm-tabs-navigator .frm-active-background{display:block;height:100%;background:#fff;position:absolute;top:0;left:0;z-index:1}.frm-style-tabs-wrapper{position:relative}.frm-style-tabs-wrapper .frm-tabs-navs{padding:0;min-height:44px}.frm-style-tabs-wrapper .frm-tabs-navs ul{margin:0;height:var(--h-md);position:relative;justify-content:space-between}.frm-style-tabs-wrapper .frm-tabs-navs ul li,.frm-style-tabs-wrapper .frm-tabs-navs ul li a{color:var(--grey-500);font-weight:500;font-size:var(--text-sm);line-height:28px}.frm-style-tabs-wrapper .frm-tabs-navs ul li{flex:1;height:28px;text-align:center;margin-top:var(--gap-xs);margin-bottom:0;cursor:pointer;white-space:nowrap}.frm-style-tabs-wrapper .frm-tabs-navs ul li.frm-active,.frm-style-tabs-wrapper .frm-tabs-navs ul li.frm-active a{color:var(--grey-900)}.frm-style-tabs-wrapper .frm-tabs-navs ul li:first-child{margin-left:var(--gap-xs)}.frm-style-tabs-wrapper .frm-tabs-navs ul li:last-child{margin-right:var(--gap-xs)}.frm-style-tabs-wrapper .frm-tabs-delimiter{position:absolute;top:0;left:0;width:100%;background:#f2f4f7;height:44px;margin:0;border-radius:var(--small-radius)}.frm-style-tabs-wrapper .frm-tabs-delimiter .frm-tabs-active-underline{height:28px;background:#fff;position:absolute;left:0;bottom:8px;transition:.4s transform cubic-bezier(0.25, 0.46, 0.45, 0.94);border-radius:var(--small-radius);box-shadow:var(--button-shadow);display:none}.frm-tabs-container{position:relative;overflow:hidden;margin-top:var(--gap-md);height:100%}.frm-style-tabs-wrapper .frm-tabs-container .frm-tabs-slide-track{transition:.32s transform cubic-bezier(0.25, 0.46, 0.45, 0.94)}.frm-style-tabs-wrapper .frm-tabs-slide-track>div{flex:0 0 100%;opacity:0;transition:.25s opacity linear;position:relative;height:auto;max-height:unset;overflow:hidden;box-sizing:border-box}.frm-style-tabs-wrapper .frm-tabs-slide-track>div>div{overflow:auto;position:relative;width:100%;padding:0;box-sizing:border-box}.frm-tabs-slide-track>div>div:first-child{height:100%}.frm-tabs-slide-track>div.frm-active{opacity:1;transition:.35s opacity linear}.frm-style-class-component .frm-style-class-editor{display:flex;align-items:center;height:36px;padding-left:12px;box-sizing:border-box;background:#fff;border:1px solid var(--grey-300);border-radius:var(--small-radius)}.frm-style-class-component .frm-style-class-editor:focus-within{border-color:var(--primary-500)}.frm-style-class-component .frm-style-class-prefix{font-size:var(--text-sm);color:var(--grey-400);white-space:nowrap}.frm-style-class-component .frm-style-class-editor input.frm-style-class-input[type=text]{flex:1;min-width:0;height:100%;min-height:0;margin:0;padding:0;font-size:var(--text-sm);color:var(--grey-900);background:rgba(0,0,0,0);border:0;box-shadow:none}.frm-style-class-component .frm-style-class-editor input.frm-style-class-input[type=text]:focus{outline:none;box-shadow:none}.frm-style-class-component .frm-style-class-copy{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:34px;height:100%;padding:0;border:0;border-radius:0 var(--small-radius) var(--small-radius) 0;background:rgba(0,0,0,0);color:var(--grey-500);cursor:pointer}.frm-style-class-component .frm-style-class-copy:hover,.frm-style-class-component .frm-style-class-copy:focus-visible{color:var(--grey-900)}.frm-style-class-component .frm-style-class-copy svg{width:16px;height:16px}.frm-style-class-component .frm-style-class-description{margin:var(--gap-xs) 0 0;font-size:var(--text-xs);color:var(--grey-500)}.frm-style-component .CodeMirror{min-height:unset !important;height:350px !important}.frm-style-component .CodeMirror .CodeMirror-placeholder{color:var(--grey-400)}.formidable_page_formidable-styles .accordion-section-content .frm-style-item-heading{font-weight:500;font-size:var(--text-md);color:var(--grey-900)}.frm-unit-input{position:relative;display:flex;align-items:center}.frm-unit-input input[type=number]::-webkit-outer-spin-button,.frm-unit-input input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none}.frm-unit-input .frm-input-group-suffix{position:absolute;top:1px;right:1px;display:flex;align-items:center;height:calc(100% - 2px);padding-right:var(--gap-xs)}.frm-unit-input .frm-input-group-suffix select{width:fit-content;height:100%;min-height:unset;font-size:var(--text-sm);text-align:right;color:var(--grey-500) !important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath stroke='%23667085' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M12.708 8.959 10 11.875 7.292 8.96'/%3E%3C/svg%3E") no-repeat right 0 top 50%;padding-left:var(--gap-2xs);padding-right:21px !important;border:rgba(0,0,0,0)}.frm-unit-input .frm-input-group-suffix select:focus-visible{outline:1px solid var(--primary-500);outline-offset:-2px} +.formidable_page_formidable-styles.js .control-section .accordion-section-title:focus{background:none}.formidable_page_formidable-styles .frm-right-panel h3.accordion-section-title:hover>svg:last-child,.formidable_page_formidable-styles .frm-right-panel .open h3.accordion-section-title>svg:first-child,.formidable_page_formidable-styles .frm-right-panel .open h3.accordion-section-title>svg:last-child{color:var(--grey-900)}.formidable_page_formidable-styles .frm-right-panel .frm-style-component{align-self:center}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component>div{width:100%}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component button.frm_choose_image_box{width:36px;height:36px;padding:0;background:#fff;overflow:hidden;text-indent:-999px;flex-wrap:wrap;border:none}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_image_styling_frame{margin-left:0}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_image_preview_wrapper{position:relative;width:36px;height:36px;margin:0;border:1px solid var(--grey-300);border-radius:var(--small-radius);overflow:hidden;box-sizing:border-box}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_image_preview_wrapper .frm_image_preview_frame{max-width:120%;height:120%;margin:-10%;position:relative}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_image_data{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;margin:0;border-radius:var(--small-radius)}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_remove_image_option{width:100%;height:100%;border:1px solid var(--red-500);text-indent:-9999px;position:absolute;top:0;left:0}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_remove_image_option::before{opacity:0;content:"";display:block;position:absolute;width:100%;height:100%;z-index:1;top:0;left:0;background:rgba(255,255,255,.8)}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_remove_image_option::after{opacity:0;content:"";display:block;position:absolute;width:100%;height:100%;z-index:1;top:0;left:0;background:url("../../images/style/close.svg") no-repeat;background-position:center}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_remove_image_option:hover::before,.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_remove_image_option:hover::after{opacity:1}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_image_preview_wrapper .frm_image_preview_frame .frm_image_styling_frame,.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_image_preview_wrapper .frm_image_preview_frame .frm_image_styling_frame img{width:100%;height:100%}.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_image_preview_wrapper+*,.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_image_preview_wrapper .frm_image_preview_title,.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_bg_image_additional_settings,.formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component .frm_remove_image_option *{display:none}.frm-style-component .frm-radio-container{max-width:216px;height:36px;background:#f2f4f7;gap:var(--small-gap);padding:var(--gap-2xs);box-sizing:border-box;border-radius:var(--small-radius);position:relative}.frm-style-component.frm-field-shape .frm-radio-container{max-width:unset}.frm-style-component.frm-direction-component .frm-radio-container{gap:var(--gap-xs)}.frm-style-component .frm-radio-container svg{width:16px}.frm-style-component .frm-radio-container .frm-radio-active-tracker{display:block;width:28%;height:calc(100% - 8px);background:#fff;border-radius:var(--small-radius);box-shadow:var(--button-shadow);position:absolute;top:var(--gap-2xs);bottom:0;left:var(--gap-2xs);z-index:1;transition:.35s transform cubic-bezier(0.075, 0.82, 0.165, 1)}.frm-style-component.frm-field-shape .frm-radio-container .frm-radio-active-tracker{width:23%}.frm-style-component.frm-align-component.frm-2-options .frm-radio-container .frm-radio-active-tracker,.frm-style-component.frm-direction-component .frm-radio-container .frm-radio-active-tracker,.frm-style-component.frm-text-toggle-component .frm-radio-container .frm-radio-active-tracker{width:calc(50% - var(--gap-xs))}.frm-style-component .frm-radio-container>label{width:30%;height:100%;margin:0;cursor:pointer;position:relative;display:flex;z-index:2}.frm-style-component.frm-field-shape .frm-radio-container>label{width:23%}.frm-style-component.frm-align-component.frm-2-options .frm-radio-container>label,.frm-style-component.frm-direction-component .frm-radio-container>label,.frm-style-component.frm-text-toggle-component .frm-radio-container>label{width:50%}.frm-style-component.frm-text-toggle-component .frm-radio-container{height:44px;max-width:unset;gap:var(--gap-xs);padding:var(--gap-xs)}.frm-style-component.frm-text-toggle-component .frm-radio-container .frm-radio-active-tracker{height:calc(100% - var(--gap-sm));top:var(--gap-xs)}.frm-style-tabs-wrapper .frm-tabs-navs ul>li:not(.frm-active):hover,.frm-style-component .frm-radio-container input:not(:checked)+label:hover{background:#eaecf0;border-radius:var(--small-radius);box-shadow:var(--button-shadow)}.frm-style-component .frm-radio-container input{display:none}.frm-style-component .frm-slider-container{width:calc(100% - 91px);display:flex;align-items:center;color:#1d2939}.frm-style-component .frm-slider-container svg.frmsvg{color:currentColor;margin-right:8px;margin-left:-5px;position:relative;z-index:15}.frm-style-component .frm-group-sliders .frm-slider-container svg.frmsvg:hover{color:var(--primary-500);cursor:pointer}.frm-style-component .frm-slider-value{width:86px;height:36px;display:flex;justify-content:center;box-sizing:border-box;background:#fff;border-radius:var(--small-radius);border:1px solid var(--grey-300)}.frm-style-component .frm-slider-value>*{border:none}.frm-style-component .frm-slider-value input{width:40px;height:100%;min-height:34px;padding:0;font-size:var(--text-sm);color:#101828;padding-left:12px;box-sizing:border-box}.frm-style-component .frm-slider-value select{text-align:right;min-height:0;padding:0;font-size:var(--text-sm);color:#667085;width:44px;background:url("../../images/style/small-arrow.svg") no-repeat;background-position:center right 12px;padding-right:24px !important}.frm-style-component .frm-slider-value select.frm-single-unit{pointer-events:none;background-image:none;padding-right:12px !important}.frm-style-component input[type=range].frm-slider{--frm-fill: 0;--frm-thumb-size: 16px;--frm-track-size: 4px;--frm-fill-position: calc(var(--frm-thumb-size) / 2 + var(--frm-fill) * (100% - var(--frm-thumb-size)));appearance:none;-webkit-appearance:none;display:block;width:calc(100% - 5px);height:24px;margin:0;padding:0;cursor:pointer;background-color:rgba(0,0,0,0);background-image:linear-gradient(to right, var(--primary-500) var(--frm-fill-position), var(--grey-200) var(--frm-fill-position));background-repeat:no-repeat;background-size:100% var(--frm-track-size);background-position:center}.frm-style-component input[type=range].frm-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:var(--frm-thumb-size);height:var(--frm-thumb-size);border-radius:50%;background:var(--primary-500);cursor:grab;box-shadow:0 1.88px 4px -1px rgba(16,24,40,.03),0 6px 8px -2px rgba(16,24,40,.08)}.frm-style-component input[type=range].frm-slider::-moz-range-thumb{width:var(--frm-thumb-size);height:var(--frm-thumb-size);border-radius:50%;background:var(--primary-500);cursor:grab;border:none;box-shadow:0 1.88px 4px -1px rgba(16,24,40,.03),0 6px 8px -2px rgba(16,24,40,.08)}.frm-style-component input[type=range].frm-slider::-moz-range-track{height:var(--frm-track-size);background:rgba(0,0,0,0)}.frm-style-component input[type=range].frm-slider::-moz-range-progress{height:var(--frm-track-size);background:rgba(0,0,0,0)}.frm-style-component input[type=range].frm-slider:focus-visible{outline:2px solid var(--primary-500);outline-offset:2px;border-radius:var(--small-radius)}.frm-style-component input[type=range].frm-slider:disabled{cursor:default}@media(forced-colors: active){.frm-style-component input[type=range].frm-slider{appearance:auto;-webkit-appearance:auto;background-image:none}.frm-style-component input[type=range].frm-slider::-webkit-slider-thumb{-webkit-appearance:auto;appearance:auto}}.frm-slider-component .frm-independent-slider-field{margin-top:10px}.frm-slider-component.frm-disabled .frm-slider-container{pointer-events:none;opacity:.5}.frm-slider-component.frm-disabled .frm-slider-value input[type=text]{width:28px;opacity:.5}.frm-slider-component.frm-disabled .frm-slider-value select{width:56px}.frm-slider-component.frm-disabled.frm-empty .frm-slider-value input[type=text]{width:56px}.frm-slider-component.frm-disabled.frm-empty .frm-slider-value select{width:28px}.frm-style-component .frm-slider-component.frm-has-multiple-values{margin-bottom:10px}.frm-tabs-wrapper{position:relative;overflow:hidden}.frm-tabs-wrapper .frm-tabs-navigator{margin:0;padding:0;display:flex;gap:var(--gap-xs);justify-content:space-between;align-items:center;background:#f2f4f7;border-radius:var(--small-radius);box-sizing:border-box;height:44px;position:relative;z-index:2}.frm-tabs-wrapper .frm-tabs-navigator .frm-tab-item{flex:1;text-align:center;cursor:pointer}.frm-tabs-wrapper .frm-tabs-navigator .frm-active-background{display:block;height:100%;background:#fff;position:absolute;top:0;left:0;z-index:1}.frm-style-tabs-wrapper{position:relative}.frm-style-tabs-wrapper .frm-tabs-navs{padding:0;min-height:44px}.frm-style-tabs-wrapper .frm-tabs-navs ul{margin:0;height:var(--h-md);position:relative;justify-content:space-between}.frm-style-tabs-wrapper .frm-tabs-navs ul li,.frm-style-tabs-wrapper .frm-tabs-navs ul li a{color:var(--grey-500);font-weight:500;font-size:var(--text-sm);line-height:28px}.frm-style-tabs-wrapper .frm-tabs-navs ul li{flex:1;height:28px;text-align:center;margin-top:var(--gap-xs);margin-bottom:0;cursor:pointer;white-space:nowrap}.frm-style-tabs-wrapper .frm-tabs-navs ul li.frm-active,.frm-style-tabs-wrapper .frm-tabs-navs ul li.frm-active a{color:var(--grey-900)}.frm-style-tabs-wrapper .frm-tabs-navs ul li:first-child{margin-left:var(--gap-xs)}.frm-style-tabs-wrapper .frm-tabs-navs ul li:last-child{margin-right:var(--gap-xs)}.frm-style-tabs-wrapper .frm-tabs-delimiter{position:absolute;top:0;left:0;width:100%;background:#f2f4f7;height:44px;margin:0;border-radius:var(--small-radius)}.frm-style-tabs-wrapper .frm-tabs-delimiter .frm-tabs-active-underline{height:28px;background:#fff;position:absolute;left:0;bottom:8px;transition:.4s transform cubic-bezier(0.25, 0.46, 0.45, 0.94);border-radius:var(--small-radius);box-shadow:var(--button-shadow);display:none}.frm-tabs-container{position:relative;overflow:hidden;margin-top:var(--gap-md);height:100%}.frm-style-tabs-wrapper .frm-tabs-container .frm-tabs-slide-track{transition:.32s transform cubic-bezier(0.25, 0.46, 0.45, 0.94)}.frm-style-tabs-wrapper .frm-tabs-slide-track>div{flex:0 0 100%;opacity:0;transition:.25s opacity linear;position:relative;height:auto;max-height:unset;overflow:hidden;box-sizing:border-box}.frm-style-tabs-wrapper .frm-tabs-slide-track>div>div{overflow:auto;position:relative;width:100%;padding:0;box-sizing:border-box}.frm-tabs-slide-track>div>div:first-child{height:100%}.frm-tabs-slide-track>div.frm-active{opacity:1;transition:.35s opacity linear}.frm-style-class-component .frm-style-class-editor{display:flex;align-items:center;height:36px;padding-left:12px;box-sizing:border-box;background:#fff;border:1px solid var(--grey-300);border-radius:var(--small-radius)}.frm-style-class-component .frm-style-class-editor:focus-within{border-color:var(--primary-500)}.frm-style-class-component .frm-style-class-prefix{font-size:var(--text-sm);color:var(--grey-400);white-space:nowrap}.frm-style-class-component .frm-style-class-editor input.frm-style-class-input[type=text]{flex:1;min-width:0;height:100%;min-height:0;margin:0;padding:0;font-size:var(--text-sm);color:var(--grey-900);background:rgba(0,0,0,0);border:0;box-shadow:none}.frm-style-class-component .frm-style-class-editor input.frm-style-class-input[type=text]:focus{outline:none;box-shadow:none}.frm-style-class-component .frm-style-class-copy{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:34px;height:100%;padding:0;border:0;border-radius:0 var(--small-radius) var(--small-radius) 0;background:rgba(0,0,0,0);color:var(--grey-500);cursor:pointer}.frm-style-class-component .frm-style-class-copy:hover,.frm-style-class-component .frm-style-class-copy:focus-visible{color:var(--grey-900)}.frm-style-class-component .frm-style-class-copy svg{width:16px;height:16px}.frm-style-class-component .frm-style-class-description{margin:var(--gap-xs) 0 0;font-size:var(--text-xs);color:var(--grey-500)}.frm-style-component .CodeMirror{min-height:unset !important;height:350px !important}.frm-style-component .CodeMirror .CodeMirror-placeholder{color:var(--grey-400)}.formidable_page_formidable-styles .accordion-section-content .frm-style-item-heading{font-weight:500;font-size:var(--text-md);color:var(--grey-900)}.frm-unit-input{position:relative;display:flex;align-items:center}.frm-unit-input input[type=number]::-webkit-outer-spin-button,.frm-unit-input input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none}.frm-unit-input .frm-input-group-suffix{position:absolute;top:1px;right:1px;display:flex;align-items:center;height:calc(100% - 2px);padding-right:var(--gap-xs)}.frm-unit-input .frm-input-group-suffix select{width:fit-content;height:100%;min-height:unset;font-size:var(--text-sm);text-align:right;color:var(--grey-500) !important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath stroke='%23667085' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M12.708 8.959 10 11.875 7.292 8.96'/%3E%3C/svg%3E") no-repeat right 0 top 50%;padding-left:var(--gap-2xs);padding-right:21px !important;border:rgba(0,0,0,0)}.frm-unit-input .frm-input-group-suffix select:focus-visible{outline:1px solid var(--primary-500);outline-offset:-2px} diff --git a/denylist/splorp-wp-comment.txt b/denylist/splorp-wp-comment.txt index 21a5c49774..74a375f9d4 100644 --- a/denylist/splorp-wp-comment.txt +++ b/denylist/splorp-wp-comment.txt @@ -961,6 +961,7 @@ _москве -income- -income. -income/ +-info.fun/ -info.pl/ -infotain -insurance-coverage- @@ -1643,6 +1644,8 @@ _москве -x- -x.site -xchang +-xnxx- +-xnxx/ -xr.online -you-win- -you-win. @@ -3038,6 +3041,7 @@ _москве .wssblog. .wssblogs. .xblog.in/ +.xnxx. .xsl.pt/ .xyz/blog/ .xyz/new/ @@ -5935,6 +5939,9 @@ _москве /xe/ /xml/ /xmlrpc/ +/xnxx- +/xnxx. +/xnxx/ /xoop /xor.tw/ /xtl.jp/ @@ -5943,6 +5950,7 @@ _москве /xy2.eu/ /xzy.cz/ /yaplink +/yaw.gg/ /ylink /yoo.rs/ /yotube @@ -6973,6 +6981,7 @@ $sixty 30mgcheap 30折 30歳 +33login 33ru. 40% 40$ @@ -7974,6 +7983,8 @@ ada ulasan ada-ulasan adanahaber adananabzi +adaptive npc +adaptive-npc adbeat distrib adbeat expert adbeat trial @@ -8027,6 +8038,7 @@ additionally fly additionally usually additionay additiuonal +adenofrin adenosyl adhd 引き adhd引き @@ -8556,9 +8568,11 @@ agencyonline agent denim agent direct agent marbella +agent solution agent-denim agent-direct agent-marbella +agent-solution agentdenim agente apuesta agente de apuesta @@ -8588,7 +8602,9 @@ ahttp ai boyfriend ai document process ai doll +ai gaming ai girlfriend +ai implement ai module ai porn ai remover @@ -8603,7 +8619,9 @@ ai-development-service ai-document-process ai-doll ai-engineer +ai-gaming ai-girlfriend +ai-implement ai-module ai-porn ai-remover @@ -8632,9 +8650,12 @@ airmaix airmaxoutlet airporn airport car serv +airport sugar airport-- airport-car-serv +airport-sugar airportcarserv +airportsugar aitaiwan ai予 ajaibslots @@ -8796,6 +8817,7 @@ all thhe all typically all-about-the all-ahout +all-bookmark all-camiseta all-craigs-list all-craigslist @@ -8810,6 +8832,7 @@ all-the-earbud all4web allbestedmed allbestmed +allbookmark allcamiseta allcars.ee allcraigslist @@ -9306,6 +9329,9 @@ anonymous-download anonymous-service anonymous-upload anonymousvpn +anotado para mas +anotado para más +anotado-para-mas another chernobyl another-chernobyl ansehen -> @@ -9848,6 +9874,8 @@ articolo interes articolo-interes articolos interes articolos-interes +articulated discuss +articulated-discuss articulo como este articulo-como-este articulos como este @@ -10008,6 +10036,7 @@ ass naked ass nude ass porn ass small +ass well ass ass-lick ass-naked ass-nude @@ -10411,6 +10440,7 @@ avtosubmiss avtosubmit avvessorie avvessory +avซั awakening hack awakening-hack away too do @@ -10437,9 +10467,7 @@ awesome web site awesome weblog awesome webpage awesome website -awesome write up -awesome write-up -awesome writeup +awesome write awesome-article awesome-blog awesome-designed @@ -10457,8 +10485,7 @@ awesome-weblog awesome-webpage awesome-webpost awesome-website -awesome-write-up -awesome-writeup +awesome-write awesomee awesoome awning repair near @@ -10477,6 +10504,8 @@ ayamonline ayinda piyasaya ayinda-piyasaya az +azerbaijan play +azerbaijan-play azria out azria-out azriaout @@ -10888,7 +10917,6 @@ bandartogel bandeira politica bandeira política bandeira-politica -bandeira-política bảng báo giá bang bros bang buddy @@ -11061,6 +11089,8 @@ basement_reno_tip basement_renovation_tip basement-reno-tip basement-renovation-tip +basic moving insurance +basic-moving-insurance basically also numerous basinda haber basinda-haber @@ -11362,6 +11392,7 @@ befizetes nelku befizetés nélkü befizetes-nelku before long find +before_you_register before-purchas begeni hilesi begeni satin @@ -11834,6 +11865,7 @@ besty promo besty-promo bestypromo bet 365 +bet 777 bet casino bet cazino bet kasino @@ -11842,6 +11874,7 @@ bet tip bet win pro bet-88 bet-365 +bet-777 bet-casino bet-cazino bet-guru @@ -11856,6 +11889,8 @@ bet-win-pro bet-winner bet88 bet365 +bet777 +betalingsmet betcasino betcazino betcio giri @@ -13012,6 +13047,8 @@ bonus kasino bonus kodu bonus money bonus powital +bonus round see +bonus rounds see bonus salon bonus selamat bonus setiap @@ -13033,8 +13070,10 @@ bonus-salon bonus-selamat bonus-setia bonus-site +bonus-top bonus-za-rejestra bonus-zu-beginnen +bonus.best bonus.online bonus.site bonuscasino @@ -13047,6 +13086,7 @@ bonushunter bonuskasino bonusmoney bonussite +bonustop bonusy boobs tumblr boobs-tumblr @@ -13120,6 +13160,8 @@ bookmark-you bookmark.top bookmarkadd bookmarkboom +bookmarkeasi +bookmarkeasy bookmarked :) bookmarked it bookmarked me @@ -13161,6 +13203,7 @@ bookmarks thank bookmarks web bookmarks-thank bookmarks-web +bookmarkstime bookmarksweb bookmarkweb bookmarkyou @@ -13251,6 +13294,8 @@ bootugg bootuk booty galler booty-galler +borderline example +borderline-example borrowed as invest borrowed for invest borrowed-as-invest @@ -13447,6 +13492,7 @@ boypanty boys-fuck boysfuck bpog post +br8betbr bracelet manchette bracelet replic bracelet shop @@ -13606,14 +13652,12 @@ brilliant post brilliant site brilliant thank brilliant web -brilliant write up -brilliant write-up -brilliant writeup +brilliant write brilliant-article brilliant-blog brilliant-content brilliant-thank -brilliant-writeup +brilliant-write brimging bring in the bucks bring your blog @@ -13673,7 +13717,9 @@ browsed that web browsed your web browser situs browser-situs +browsing mindless browsing online more +browsing-mindless brrip brugte mulberry brugte-mulberry @@ -13802,7 +13848,10 @@ budtrad budujace do paznokci budynku wybrac budynku-wybrac +buen articulo +buen artículo buen contenido +buen-articulo buen-contenido buffedhub buffet near me @@ -13825,6 +13874,7 @@ built bby buisingess buisness bukmacher +bukmeker bukmekerskaya bulgari bague bulgari bijoux @@ -14631,6 +14681,7 @@ cabins it cabins lithu cabins-it cabins-lithu +cable supplier build cách đọc cách trị cach-doc @@ -15519,6 +15570,7 @@ casino inicia casino ios casino jager casino kenya +casino legal casino levant casino list casino malay @@ -15590,6 +15642,7 @@ casino-inicia casino-ios casino-jager casino-kenya +casino-legal casino-levant casino-line casino-list @@ -15840,6 +15893,8 @@ cecha talentu cechą talentu cees recomm ceicag.org +ceiling renovation +ceiling-renovation cekici hizmeti çekici hizmeti cekici-hizmeti @@ -15855,9 +15910,10 @@ celeb-nude celebdiet celebhair celebnude -celebrate blogging -celebrate-blogging -celebration screener +celebrate blog +celebrate-blog +celebration screen +celebration-screen celebrex celebrities diet celebrities hair @@ -16133,6 +16189,7 @@ changing-jackpot channel for uncut channel obtain channel-operator +channelfanbase channels obtain chantix chapa shoe @@ -16166,6 +16223,8 @@ charlescave charms thomas charms-thomas charmsthomas +chasing sport bonus +chasing sports bonus chat met vrouwen chat porn chat roulette @@ -17335,6 +17394,7 @@ clear clear clear your mortgage clear-clarif clear-clear +clear, fast, and authoritative clearance mbt clearance michael clearance out @@ -18266,7 +18326,9 @@ complementing its grace complementing the grace complete evaluate complete large amount +complete moving service complete-evaluate +complete-moving-service completo y accesible compliance compan compliance-compan @@ -19885,17 +19947,24 @@ cursos-webinar curvy shapewear curvy-shapewear cushion sofa +custom celebrat +custom ecommerce custom essay custom jers custom nike +custom opposite end +custom opposite-end custom portrait serv custom rim custom wheel +custom-celebrat custom-control +custom-ecommerce custom-essay custom-jers custom-mom custom-nike +custom-opposite-end custom-portrait-serv custom-rim custom-term-paper @@ -20191,6 +20260,8 @@ darmowy darrellbox darrellwire darvocet +das krautersalz +das-krautersalz dashboard commun dashboard point dashboard-commun @@ -20554,6 +20625,7 @@ deliver innovat deliver noticeable result deliver overtly deliver premier +deliver real value deliver relia deliver result deliver smooth access @@ -20570,6 +20642,7 @@ deliver-smooth-access deliver.ifeng.co/ deliver.ifeng.com/ delivering innovat +delivering real value delivering-innovat deliverresult delivers effic @@ -20697,6 +20770,8 @@ depart your blog depart your page depart your site depart your web +depend du gout +depend-du-gout dependable plumbing serv dependable tailor dependable-tailor @@ -20761,7 +20836,9 @@ derun-eskort derunescort deruneskort derypt +des jeton des services web +des-jeton des-services-web desain dinding desain eksterior @@ -21248,6 +21325,7 @@ directlone directmailsupport directory submit directory-submit +directoryforever directorysubmit directt diretta cam @@ -21448,6 +21526,9 @@ distinctive adv distinctive gift idea distinctive-adv distinctive-gift-idea +distinguish high qualit +distinguish high-qualit +distinguish-high-qualit disulfiram dit me toc địt mẹ tóc @@ -21861,6 +21942,7 @@ downloadsfree downloadsonline downlowd downlown +downpdf downtown quintessence doxycycline dp=http @@ -22339,6 +22421,15 @@ e.nd.o.rse e.ndo.r.se e.ndo.rs.e e.ndo.rse +e.s.e.q.a.g +e.s.e.q.ag +e.s.e.qag +e.s.eq.a.g +e.s.eq.ag +e.se.q.ag +e.se.qa.g +e.se.qag +e.seq.ag e2bet game e2bet today e2bet-game @@ -23332,6 +23423,11 @@ eryaman-escort eryaman-eskort es es,this +es.e.q.a.g +es.e.q.ag +es.e.qag +es.eq.a.g +es.eq.ag es.iodress es.this es/content @@ -23430,6 +23526,9 @@ escortz escot izmit escot-izmit escotizmit +ese.q.a.g +ese.q.ag +ese.qa.g eshop.co/ eshop.com/ esk istanbul @@ -23826,9 +23925,7 @@ excellent submit excellent task excellent topic excellent web -excellent write up -excellent write-up -excellent writeup +excellent write excellent written excellent-article excellent-blog @@ -23846,8 +23943,7 @@ excellent-site excellent-task excellent-topic excellent-web -excellent-write-up -excellent-writeup +excellent-write excellent-written excellentarticle excellentblog @@ -24017,6 +24113,7 @@ explanations are indulgent exploded extensive exploded-extensive explore an affordable +explore bookmark explore the affordable explore the blog explore the site @@ -24032,8 +24129,10 @@ explore your site explore your weblog explore your website explore-an-affordable +explore-bookmark explore-the-affordable explore-this-affordable +explorebookmark explosive growth explosive-growth exportador e import @@ -24240,6 +24339,11 @@ f.u.q.o.s.o f.u.q.os.o f.u.qo.s.o f.u.qos.o +f.u.t.a.q.u +f.u.t.a.qu +f.u.t.aq.u +f.u.ta.q.u +f.u.taq.u f.u.z.i.n f.u.z.in f.u.zi.n @@ -24248,6 +24352,11 @@ f.uq.o.s.o f.uq.os.o f.uqo.s.o f.uqos.o +f.ut.a.q.u +f.ut.aq.u +f.uta.q.u +f.uta.qu +f.utaq.u f.uz.i.n f.uz.in f.uzi.n @@ -24348,13 +24457,17 @@ faceout facepook faceraise facesale +faceshapecalc facestore faceterra facevest fachmaennisch und werter fachmaennisch-und-werter facial location +facial outline facial-hair +facial-location +facial-outline facialhair facility and effic fact amazing piece @@ -24371,7 +24484,9 @@ fact thankful fact-awesome fact-excellent fact-fastidious +fact-fruitful fact-remarkable +fact-thankful factory coach factory on china factory out @@ -24395,6 +24510,8 @@ fail drug fail-drug faildrug fair affordable price +fair counterexample +fair-counterexample fairity fairlaunch fairly affordable price @@ -24526,9 +24643,7 @@ fantastic treatment fantastic understand fantastic weblog fantastic website -fantastic write up -fantastic write-up -fantastic writeup +fantastic write fantastic-article fantastic-blog fantastic-content @@ -24546,8 +24661,7 @@ fantastic-treatment fantastic-understand fantastic-weblog fantastic-website -fantastic-write-up -fantastic-writeup +fantastic-write fantasticblog fantasticentire fantasticjob @@ -24714,6 +24828,7 @@ fast-money fast-payout fast-prox fast-quick +fast, free shipping! fast.biz/ fast|quick fastbiz @@ -26607,6 +26722,9 @@ fu.q.os.o fu.q.oso fu.qo.s.o fu.qos.o +fu.t.a.q.u +fu.ta.q.u +fu.ta.qu fu.z.i.n fu.z.in fu.zi.n @@ -26780,13 +26898,16 @@ furniture repair near furniture-decoration furniture-repair-near furnituresale +furnnun furosemide further former further-former furthermore remember furthermore-remember -furworld.ru/ -furworld.su/ +furworld. +fut.aq.u +futa.q.u +futaq.u futbol barata fútbol barata futbol barcelona @@ -26978,6 +27099,8 @@ game prowess game status system game terbaik game torrent +game update keep +game updates keep game wiki game-bong game-casino @@ -27531,6 +27654,7 @@ getpokego getreadybeauty getridof getrobux +getrting gets fuck gets-fuck getsex @@ -27556,7 +27680,9 @@ getyou.asp gezichtsbehand gfband gg poker +gg unblocked gg-poker +gg-unblocked gget set gginza ggpoker @@ -28206,6 +28332,8 @@ good items! good jon admin good jon bro good jon mate +good luck ; +good luck : good morning dear good page good para @@ -28247,9 +28375,7 @@ good webmaster good website and good website you good work fellow -good write up -good write-up -good writeup +good write good writing comp good writing serv good written @@ -28272,6 +28398,7 @@ good-template good-web good-webmaster good-work-fellow +good-write good-written good} goodbye.asp @@ -28345,6 +28472,7 @@ googlejava googlemarket googleporn googlerank +googleslo googlesolu googleus googmail @@ -28815,6 +28943,7 @@ great site, you great submit great trailer program great trailer strat +great value bag great web log great web page great web post @@ -28853,6 +28982,8 @@ great-publish great-sex-party great-site-you great-submit +great-value bag +great-value-bag great-weblog great-website-you great-written @@ -29983,6 +30114,8 @@ helpful page overall helpful pages overall helpful para helpful post +helpful stuff, +helpful stuff! helpful weblog helpful-blog helpful-content @@ -30067,6 +30200,7 @@ here your aspiration here-different here-mcpe here-methotrex +here. xnxx heremethotrex heren timber heren-timber @@ -30171,6 +30305,8 @@ hesap premium hesap-premium hesaplama prog hesaplama-prog +hesitez pas a +hésitez pas à hete meid hete vrouw hete-meid @@ -30303,6 +30439,7 @@ high need venture high payoff high pidel high professional top +high quality represent high volume user high winning high-blog @@ -30322,6 +30459,8 @@ high-need venture high-need-business high-need-venture high-payoff +high-quality represent +high-quality-represent high-volume-user high-winning high.cc/ @@ -30772,6 +30911,8 @@ hommesac hommescanadagoose homwpage hondavtx +honest gameplay +honest-gameplay honestly, the content hong kong pool hong-kong-pool @@ -31082,6 +31223,7 @@ how ong do how rv collision how to choose you how to negotiate +how to restrictive how would certain how_do how-does-it-work @@ -31112,6 +31254,9 @@ howsleep hppp hqsteroid hqve the +hrani znamen +hraní znamen +hrani-znamen href%3dhttp href=http htaccrss @@ -31172,6 +31317,7 @@ huay-today huaytoday hub online hub-online +hubs.click huge 100% huge cock huge great @@ -31767,6 +31913,7 @@ increasing their holding increasing your holding increasing-internet incredibble +incredibl quest incredible allows me incredible allows you incredible article @@ -31848,6 +31995,7 @@ individual to a location individual-friendly individual-pleasant individual-stuffs +individualki individuals their indo blackjack indo casino @@ -32502,6 +32650,7 @@ interested? click interestijg interesting blog interesting post +interesting read! interesting subject, thank interesting-blog interesting-post @@ -33496,6 +33645,8 @@ jobs-mom jobs-usa jobsearchengine jobsearchsite +jock habit +jock-habit jocuri comp jocuri online jocuri pe comp @@ -33509,11 +33660,9 @@ jocurile-online jogadore assiduos jogadore assíduos jogadore-assiduos -jogadore-assíduos jogadores assiduos jogadores assíduos jogadores-assiduos -jogadores-assíduos jogando agora jogando-agora jogar loteria @@ -33959,12 +34108,21 @@ kasinoapp kasinovip kassino kasyday +kasyno bonus kasyno crypto kasyno online +kasyno z bonus +kasyno-bonus kasyno-crypto kasyno-online +kasyno-z-bonus +kasynobonus +kasynowe bonus kasynowe online +kasynowe z bonus +kasynowe-bonus kasynowe-online +kasynowe-z-bonus kaszino 24 kaszinó 24 kaszino bonus @@ -34116,7 +34274,6 @@ kibo-code-review kich duc kích dục kich-duc -kích-dục kichducnam kickass you kickass-you @@ -34448,6 +34605,9 @@ kontraktor booth kontraktor pameran kontraktor-booth kontraktor-pameran +kontrolovane hrani +kontrolované hraní +kontrolovane-hrani kontroversial konusu cok faydali konwencjonalnych olej @@ -34622,6 +34782,10 @@ kratom sale kratom-legal kratom-sale kratomsale +krautersalz mit bio +krautersalz zu erhalten +krautersalz-mit-bio +krautersalz-zu-erhalten kreatif membuat kreatif-membuat kreddit @@ -35556,8 +35720,9 @@ lindo-post line poker line 予 line-poker +lineas de pago líneas de pago -líneas-de-pago +lineas-de-pago linebet bang linebet in linebet-bang @@ -36279,6 +36444,7 @@ lotteries are lotteries is lottery are lottery expert +lottery game lottery is lottery kerala lottery play @@ -36290,6 +36456,7 @@ lottery tip lottery vip lottery_ lottery-expert +lottery-game lottery-kerala lottery-play lottery-power @@ -36423,6 +36590,7 @@ love makes an excellent love master love mastur love perfect +love placing wager love simulat love spell cast love this article! @@ -36489,6 +36657,7 @@ lovemyhair lover tshirt lover-tshirt lovert.ru/ +loves placing wager loveshop-1 loveshop1 lovesite @@ -36716,6 +36885,14 @@ m.e.g.a.s m.e.g.as m.e.ga.s m.eg.a.s +m.o.r.r.i.s +m.o.r.r.is +m.o.r.ris +m.o.rris +m.or.ris +m.orr.is +m.orri.s +m.orris m᧐ m3ga_ m4a converter free @@ -36869,6 +37046,8 @@ magnificentpoint magnificentpost magnificentweb magnificsnt +mahadevbook +mahadevsupp mai bun folie mai bun pret mai buna folie @@ -37109,6 +37288,7 @@ man ejuice man fetish man gaga man in uk +man krautersalz man mastur man of capacity man online @@ -37121,6 +37301,7 @@ man-ejuice man-fetish man-gaga man-in-uk +man-krautersalz man-mastur man-online man-porn @@ -37285,6 +37466,8 @@ marijuana-shop marijuana-strain marijuanabene marijuanafact +marina aviator +marina-aviator marine disel marine gay marine-disel @@ -38278,6 +38461,8 @@ memerangi keragu memerangi-keragu memetoken memevioro +memorable ritual +memorable-ritual memoria javit memória javit memoria teszt @@ -38667,6 +38852,8 @@ mindfulness you mindset activ mindset-activ mine day +mine lives here; +mine lives here: mine-day minecraft bedrocks minecraft eklenti @@ -38688,6 +38875,7 @@ minh-thu-nhap mini credit mini-credit minicredit +minimum bet of minimum insurance minimum-insurance mining cash @@ -38742,6 +38930,7 @@ mirapex mirror femme mirror-femme mirrorfemme +mis en favori mishapen misplace me person misplaced me person @@ -38827,10 +39016,17 @@ mlsp suit mlsp-suit mlspweapon mmm i really +mmubett mmy blog mmy nnew mmy page mmy web +mo.r.r.i.s +mo.r.r.is +mo.r.ris +mo.rr.is +mo.rri.s +mo.rris mobi/news mobil odeme mobil-odeme @@ -38897,6 +39093,7 @@ modern bathroom modern casino modern conceal modern management princ +modern practical local modern-bathroom modern-casino modern-conceal @@ -39315,6 +39512,10 @@ moonrock weed moonrock-weed moore about moore-about +mor.r.i.s +mor.r.is +mor.ri.s +mor.ris more >> more 24/7 more 24x7 @@ -39704,10 +39905,13 @@ multimediynykh_sistem multimediynykh-integ multimediynykh-osnas multimediynykh-sistem +multiple prize oppor multiplier experience multiplier-experience multiply your win multiply-your-win +multitudinous special +multitudinous-special multiversal topic mumps provider munch measure @@ -39779,7 +39983,6 @@ muži boty muzi modry muži modrý muzi-bily -muži-bílý muzi-boty muži-boty muzi-modry @@ -39879,6 +40082,7 @@ my personal own my post is! my ppage my presentation subject +my primary meal my profile link my pussy get my pzge @@ -39994,6 +40198,7 @@ my-most-favourite my-my my-new-ip my-online +my-primary-meal my-promo my-pzge my-shisha @@ -40062,6 +40267,7 @@ myself know what myself logged myself-have myself-logged +mysocialquiz myspacee myssite mystake @@ -40247,6 +40453,7 @@ nato apostando nato-apostando natura.it/ natural beautiful +natural bookmark natural cure natural estimulant natural fuel energ @@ -40255,6 +40462,7 @@ natural supplies natural tits natural to website natural-beautiful +natural-bookmark natural-cure natural-estimulant natural-fuel-energ @@ -40263,6 +40471,7 @@ natural-supplies natural-tits natural-to-website natural-way +naturalbookmark naturalcure naturales y calidad naturally gain @@ -40618,6 +40827,9 @@ next-articles next>> nextspin skill nextspin-skill +nezdraveho hrani +nezdravého hraní +nezdraveho-hrani nfc.lol nfl apparel nfl austr @@ -40735,9 +40947,7 @@ nice share nice site nice understand nice web -nice write up -nice write-up -nice writeup +nice write nice written nice your blog nice your page @@ -40756,8 +40966,7 @@ nice-share nice-site nice-understand nice-web -nice-write-up -nice-writeup +nice-write nice-written nicearticle niceblog @@ -40961,6 +41170,7 @@ noinght noir homme noir-homme noirhomme +nolettersbox nolvadex non-meat fill non-meat-fill @@ -40985,6 +41195,8 @@ norgecanad norme anti spam norme anti-spam norme-anti-spam +norsk casino +norsk-casino north_face north+face northface pascher @@ -41123,6 +41335,7 @@ nowe-zdjecia nowe-zdjęcia nowinterstitial nozhi.ru/ +npcs procedural nqed ntc 33 ntc-33 @@ -41472,6 +41685,8 @@ ocrvlux ocrvmotor ocrvpart oculosfeminino +ocurred after +ocurred before oczyszczalnia przydomow oczyszczalnia-przydomow odbierz bonus @@ -42263,6 +42478,7 @@ openers monetiz openers-monetiz openlink? openning +openpagenote opensea opensea opensea-opensea opera el siti @@ -42276,8 +42492,11 @@ operationms opiniones exodermin opportunity growth opportunity-growth +opposite end term opposite expert opposite specialist +opposite-end term +opposite-end-term opposite-specialist oprawki ray oprawki-ray @@ -42440,6 +42659,9 @@ osobistosci osobistości osobisty kolek osobisty-kolek +osobnich hrani +osobních hrani +osobnich-hrani ostaddbank ostopaikka oszczedne @@ -42966,6 +43188,7 @@ paling-bagus pallet display pallet-display palm muting +palmslots palmy day palmy-day paltrox rx @@ -43282,6 +43505,8 @@ parrainage boursor parrainage-banque parrainage-boursor parrt of +parsing venereal +parsing-venereal part mariage part of content part online @@ -43578,6 +43803,7 @@ pdf-precyzyjne pdf-website pdf.cyou pdf.site +pdf.store pdf.top pdfcompleto pdfebook @@ -44226,11 +44452,13 @@ picks from anal pics-expensive pics, expensive picture blog +picture in a theater picture in theater picture on-line picture-blog picture-on-line pictures blog +pictures in a theater pictures in theater pictures on-line pictures-blog @@ -44295,6 +44523,11 @@ pin-up-ozbek pin-up-parol pin-up-win pin, dump +pinco azerb +pinco yukle +pinco yükle +pinco-azerb +pinco-yukle pine-and-onyx ping your self pink dining room @@ -44398,10 +44631,12 @@ place botox place for naughty place in the wet place really deliver +place your order place-botox place-for-naughty place-in-the-wet place-really-deliver +place-your-order place,100 place.100 placement crypto @@ -44456,6 +44691,7 @@ platform focus platform hiburan platform permainan platform share +platform that treat platform-about-corp platform-deliver platform-focus @@ -44518,12 +44754,14 @@ playcurso playdash playedd player is in interface +player multiple prize player radio alarm player spesso player to spin player-radio-alarm player-spesso playerblock +players multiple prize players spesso players to spin players-spesso @@ -44617,10 +44855,14 @@ pliagebag pliagecuir pliageshop plinko app +plinko click +plinko idle plinko online plinko slot plinko_ plinko-app +plinko-click +plinko-idle plinko-online plinko-slot plinkoapp @@ -45335,8 +45577,11 @@ pornwatch pornwyna pornyou pornyoung +porr model porr online +porr-model porr-online +porrmodel portage salarial portage-salarial portal berita @@ -45514,6 +45759,7 @@ potngsi poto therap poto-therap potolki_ +potolok-pinsk pototherap pound demise pounds demise @@ -46093,6 +46339,7 @@ probllem proc opport proc-opport procasino +procedural npc procedure of printing proceed travel in proceed your writing @@ -46126,6 +46373,7 @@ product cbd product for global product hermes product name list +product pages you product thc product with bitcoin product-cbd @@ -46425,6 +46673,7 @@ promotion bag promotion code promotion offer promotion right now +promotion rule promotion shop promotion store promotion team @@ -46432,6 +46681,7 @@ promotion-bag promotion-code promotion-offer promotion-right-now +promotion-rule promotion-shop promotion-store promotion-team @@ -46627,8 +46877,11 @@ psorinano psych-clinic psychclinic psychedelic parent +psychedelic top psychedelic-parent +psychedelic-top psychedelicparent +psychedelictop psychic chat psychic today psychic-chat @@ -46832,12 +47085,18 @@ pussylick pussyporn pussywet pusulabet +put mine here; +put mine here: put this content put tth putaran free putaran kemujuran putaran-free putaran-kemujuran +putting this article +putting this blog +putting this page +putting this post putuskan permainan putuskan-permainan puzzel band @@ -47020,9 +47279,11 @@ quiasaid quicckly quick fast quick loan +quick payout quick-clean-pro quick-fast quick-loan +quick-payout quick|fast quickbookk quickfast @@ -47066,6 +47327,12 @@ qᥙ r?f?rence r.@ r.all +r.e.y.e.z.i +r.e.y.e.zi +r.e.y.ez.i +r.e.y.ezi +r.e.yezi +r.ey.ez.i r.for r.the r.two @@ -47350,6 +47617,9 @@ rdr=http re re-upload this re-upload-this +re.y.ezi +re.ye.zi +re.yez.i reach profit reach their pursuit reach your income @@ -47821,6 +48091,7 @@ registration-strat registrator registratsiya online registratsiya-online +registrer registry-clean registry-fix registry-repair @@ -47884,9 +48155,10 @@ relationship stor relationship-coach relationship-stor relativa media +relativa midia relativa mídia relativa-media -relativa-mídia +relativa-midia relax private relax-private relaxation massage @@ -48011,14 +48283,17 @@ remodeling service remodeling-contractor-near remodeling-contractors-near remodeling-service +remont akpp remont avtomat remont bosch remont dvigate remont vorot +remont-akpp remont-avtomat remont-bosch remont-dvigate remont-vorot +remontakpp remontbosch remontu tehnik remontu-tehnik @@ -48149,6 +48424,7 @@ repair-shops-brisbane repair-shops-near repair-store-near repair-stores-near +repair-suno repair-supplies-near repair-supply-near repair-trailer-roof @@ -48160,6 +48436,7 @@ repairs near me repairs near you repairs-near-me repairs-near-you +repairsuno repairvirgin reparacion aire reparacion calenta @@ -48390,6 +48667,8 @@ resmi rekomend resmi web resmi-rekomend resmi-web +resort aviator +resort-aviator resource of motivation resource the resource resource this resource @@ -48417,6 +48696,7 @@ restoremen restoril restricted web restricted-web +restrictive efficient result choquant résult choquant result hong @@ -48614,6 +48894,9 @@ reward exchang reward-exchang rewiew rewriter also +rey.e.z.i +rey.e.zi +rey.ez.i reyting_ rhapsody full rhapsody-full @@ -49943,6 +50226,8 @@ scraper software scraper-free scraper-software scraperfree +scraping venereal +scraping-venereal screampdf screener seek script auto redeem @@ -51211,6 +51496,7 @@ share. with thank shared across the internet shared across the net shared across the web +shared audience environment shared on this blog shared on this page shared on this site @@ -51526,6 +51812,9 @@ shop makeup shop near me shop near you shop now - +shop now -> +shop now → +shop now > shop now alive shop online shop our collection @@ -51960,6 +52249,7 @@ site is pricel site is really pract site is truly site is very useful +site keeps delivering site laman site link site load speed @@ -52384,6 +52674,8 @@ slotsplatinum slotsresource slotsrtp slottoto +sloty online +sloty-online slug.ru/ slugi elektrek slugi otdeloch @@ -52507,6 +52799,7 @@ smoking-news smokingnews smooth and satisf smooth delivery process +smooth experience across smooth-and-satisf smooth-delivery-process sms grupp @@ -52650,6 +52943,7 @@ soccerjerseysclub soccerwager socengineer sociable worker +social affluent social butler social buzz social market @@ -52668,6 +52962,7 @@ social video market social weblog social website social_media +social-affluent social-bookmark social-butler social-buzz @@ -52685,6 +52980,7 @@ social-trello social-weblog social-website social.social +socialaffluent socialbookmark socialbutler socialbuzz @@ -52799,10 +53095,8 @@ solicitors near me solicitors-near-me solicitous afternoon solid human cancer -solid write up -solid write-up -solid writeup -solid-write-up +solid write +solid-write solidcord german solidcord philip solidcord platform @@ -53196,6 +53490,7 @@ sport workforce sport-akcesoria sport-analysis sport-body-shop +sport-bonus sport-detik sport-ditik sport-interaction @@ -53207,6 +53502,7 @@ sport-workforce sportareal sportbase sportbikepart +sportbonus sportbook sportfoot sporthockey @@ -53593,6 +53889,7 @@ stone-jp stonejap stonejp stoner of +stop akpp stop by my blog stop by my page stop by my sire @@ -53602,8 +53899,10 @@ stop by my web stop smok stop snor stop-addi +stop-akpp stop-smok stop-snor +stopakpp stopsmok stopsnor stor punkt @@ -54074,6 +54373,9 @@ suffer support those suffer-support-those sufferer affect sufferer-affect +sugar marina +sugar-marina +sugarmarina suggest article suggest blog suggest i appear @@ -54212,6 +54514,8 @@ sunishne sunmuseum.ru/ suno ai art suno ai song +suno fix +suno-fix sunrize sunsetthe sunshine facet @@ -54450,6 +54754,7 @@ suvwithbest suwa³ki svelte figure svelte-figure +svenska porr svente enligne svente-enligne sventeenligne @@ -54467,6 +54772,9 @@ svetainės pardavimas svetaines-pardavimas svetilniki_ svetzen +svym hrani +svým hraní +svym-hrani swamp your body swan vibra swan-vibra @@ -54673,6 +54981,7 @@ takako ajasin takako-ajasin take a appear take a in the +take a look ; take a look : take an expense take angry @@ -55383,6 +55692,7 @@ thank you bro thank you for share thanks , thanks admin +thanks alot ; thanks alot : thanks considerably thanks designed @@ -55398,17 +55708,21 @@ thanks for share thanks for sharing thanks for the article thanks for the blog +thanks for the write thanks for this article thanks for this blog thanks for web thanks regarding thanks to web +thanks xnxx thanks xo thanks you ... thanks you: thanks you... thanks-admin thanks-designed +thanks! xnxx +thanks. xnxx thanks.i thankyou alot thankyou for @@ -55444,6 +55758,7 @@ that thhis that waas that which you sell that will uses +that yoou that youre that-gia-re that-i-may-subscribe @@ -55530,6 +55845,7 @@ the chain change the consulting firm the contents present the cruise trip +the detailed write the e book the eating expert the enjoying future @@ -55638,6 +55954,7 @@ the-carfiac the-consulting-firm the-contents-present the-cost-of-the +the-detailed-write the-fact-about the-feed-back the-flashboard @@ -55671,6 +55988,8 @@ the-top-site the-top-ten the-very-best the-youtuber +theaters viewer +theaters-viewer theattempt theaverage thebest @@ -55828,6 +56147,11 @@ thhe info thhe the thhe time thhis +thi article +thi blog +thi page +thi post +thi web thi, i thick movie thick-movie @@ -56633,7 +56957,9 @@ today4u todayblog todaynews todays gambl +todays internet todays-gambl +todays-internet todella hyödyllinen todescribe tods jap @@ -56662,8 +56988,10 @@ togel-singapore togel77 togelhk togelhong +together concise together like as together with her household +together—concise tohnwdouc toile vanessa toile-vanessa @@ -56833,6 +57161,7 @@ top-available top-best top-biz top-blog +top-bonus top-bulgar top-business top-buzz @@ -56900,6 +57229,7 @@ toparticle topbest topbiz topblog +topbonus topbulgar topbusiness topbuzz @@ -57028,14 +57358,18 @@ tote hand tote-hand totehand toterminate +toto 4d toto login toto macau toto online toto site +toto togel +toto-4d toto-login toto-macau toto-online toto-site +toto-togel toto88 totomacau totosite @@ -57607,6 +57941,8 @@ trusted-on-the-net trusted-website trusting website trusting-website +trustworthy vibe +trustworthy-vibe truth however truth teaching article truth-however @@ -58776,6 +59112,8 @@ uustore uutofo uvelichit podpisc uvelichit-podpisc +uwielbiam sloty +uwielbiam-sloty uy/image uygun fiyatl uygun-fiyatl @@ -58808,6 +59146,13 @@ v bucks win v minecraft v-i-s-a-r-t v.@ +v.e.l.d.a +v.e.l.da +v.e.ld.a +v.e.lda +v.el.d.a +v.el.da +v.eld.a v3ry best va va ballgown @@ -59112,6 +59457,9 @@ vd casino vd-casino vdcasino ve +ve.l.d.a +ve.l.da +ve.ld.a vecaro lifestyle vecaro_ vecaro-lifestyle @@ -59147,6 +59495,7 @@ vehicle insurance near vehicle-insurance-near veja mais veja-mais +vel.d.a velocita e compet vendida separadamente vendida-separadamente @@ -59154,6 +59503,8 @@ vendita vendor lock vendor-lock vendorlock +venereal media +venereal-media veneta bors veneta out veneta port @@ -59194,8 +59545,10 @@ venusfactor vergin porn vergin-porn verginporn +verification casino verification pending verification temporar +verification-casino verification-pending verification-temporar verification/index @@ -59285,6 +59638,7 @@ very strong post very strong site very strong web very superb +very useful content very v3ry very valid very-best-gain @@ -59402,7 +59756,6 @@ vida beneficios vida benefícios vida goog vida-beneficios -vida-benefícios vida-goog videncia charme videncia gratis @@ -59997,7 +60350,9 @@ von-ysl vonysl vote trump vote-trump +votre article votre site +votre-article votre-site votresite vouch copies @@ -61082,6 +61437,7 @@ wewe are wewe have wewe will wewewe +whaat ocur what assets is what blog does what does turn @@ -61244,6 +61600,7 @@ wholesale north wholesale offer wholesale oud wholesale polo +wholesale prices! wholesale ralph wholesale sex wholesale soccer @@ -61275,6 +61632,7 @@ wholesale-north wholesale-offer wholesale-oud wholesale-polo +wholesale-price wholesale-ralph wholesale-sex wholesale-soccer @@ -61504,6 +61862,8 @@ winter jassen winter marriage ceremony winter-jassen winterjassen +wird es aromatischer +wird-es-aromatischer wirh you wise notice wise quote @@ -61906,6 +62266,7 @@ work claim web work comp case work comp claim work doer +work on this topic! work service provider work you have here work you write @@ -62448,6 +62809,7 @@ xx-page xx.co/ xx.com/ xx.in/ +xx.online xx.page xx.pl/ xx.ro/ @@ -62638,6 +63000,7 @@ yolur blog yolur business yolur info yolur web +yoou are yoou can yoou could yoou have @@ -62833,11 +63196,11 @@ your amazing useful your article can your article is one your article kept -your article seem +your article see your articles always your articles can your articles kept -your articles seem +your articles see your asthma so your audience need your bblog @@ -62855,7 +63218,7 @@ your blog post your blog prior your blog pro your blog real -your blog seem +your blog see your blog was your blogs always your blogs real @@ -62924,7 +63287,7 @@ your own stuffs your owwn your page is one your page prior -your page seem +your page see your penis your personal brand your personal doctor @@ -62934,17 +63297,19 @@ your positions continual your post can your post is useful your post is! -your post seem +your post see your posting your posts is your power waste your presentation subject +your primary meal your publish your rest room your sales effort your self from your self inside your seo +your shaft dimension your short article your sijte your site is one @@ -62953,12 +63318,12 @@ your site platform your site prior your site pro your site really -your site seem +your site see your site.. your site… your sites prior your sites really -your sites seem +your sites see your skin layer your submit your subsequent put @@ -62990,7 +63355,7 @@ your weblog kept your weblog on your weblog prior your weblog pro -your weblog seem +your weblog see your website home your website is one your website is useful @@ -63001,7 +63366,7 @@ your website on your website prior your website pro your website provid -your website seem +your website see your website the your wii game your wii will @@ -63054,6 +63419,7 @@ your-phone-regular your-porn your-posting your-posts-is +your-primary-meal your-profile your-publish your-rest-room @@ -63242,10 +63608,33 @@ yе yо yօ z.@ +z.a.c.h.a.r.y +z.a.chary +z.ac.h.a.r.y +z.ac.hary +z.ach.a.r.y +z.ach.ary +z.acha.ry +z.achar.y +za.c.h.a.r.y +za.c.hary +za.ch.a.r.y +za.ch.ary +za.cha.ry +za.char.y zaa-bet zaa.bet zaabet zabaw +zac.h.a.r.y +zac.h.ary +zac.ha.r.y +zac.ha.ry +zac.har.y +zac.hary +zach.a.ry +zach.ar.y +zach.ary zaden kopen zaden-kopen zafar islamov @@ -63418,6 +63807,8 @@ zeru blog zerű blog zeru-blog zerublog +zestawienie kasyno +zestawienie-kasyno zfilm-hd zfilm.hd zfilmhd @@ -63598,6 +63989,7 @@ zyvox администратор админу азартные +акпп активировать счет акции алкобарьер @@ -63715,7 +64107,8 @@ zyvox взрослых россиян виагра видео анальной -видео о времени +видео врем +видео о врем видео чат визиток сайт винтовой нас @@ -63951,6 +64344,7 @@ zyvox изучение франц икс игра имплантах +индивидуалка инете инновации обору инстаграм @@ -63991,6 +64385,7 @@ zyvox каким признакам карниз для штор карниз моторизованный +картинки офиге каталог kra каталог фабер качест @@ -64291,12 +64686,14 @@ zyvox от ожирения ответственная игра отделка балкона +отдельные зоны отдыха отзывы отказов! открыть сайт отличная иде отличное мест отыгрыш бонус +офигенных дам официальную гидру официальный сайт официальных @@ -64802,6 +65199,7 @@ zyvox шкаф в парк шкуры животных шлюхи +шное видео щ† щ€ щѓ @@ -65197,6 +65595,7 @@ zyvox ดอกไม้ deliver ดอกไม้ใกล้ฉัน ดูซีรีย์ +ดูอนิเมะ เดรส ราคาถูก เดรสราคาถูก ต่างหู diff --git a/eslint.config.mjs b/eslint.config.mjs index c2bacf42f4..0e1c956204 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -445,7 +445,7 @@ export default [ }, }, { - files: [ 'tests/js/style-live-preview.test.mjs', 'tests/js/paypalBootstrap.test.mjs', 'tests/js/inlineSubmitAlignment.test.mjs' ], + files: [ 'tests/js/style-live-preview.test.mjs', 'tests/js/paypalBootstrap.test.mjs', 'tests/js/inlineSubmitAlignment.test.mjs', 'tests/js/squareVerifyBuyer.test.mjs' ], rules: { // The harnesses execute only checked-in scripts. 'sonarjs/code-eval': 'off', diff --git a/formidable.php b/formidable.php index f6d259f52e..d83cfdbbfe 100644 --- a/formidable.php +++ b/formidable.php @@ -2,7 +2,7 @@ /** * Plugin Name: Formidable Forms * Description: Quickly and easily create drag-and-drop forms - * Version: 7.0 + * Version: 7.1 * Plugin URI: https://formidableforms.com/ * Author URI: https://formidableforms.com/ * Author: Strategy11 Form Builder Team diff --git a/js/admin/embed.js b/js/admin/embed.js index dd5f152d64..1b53e040b0 100644 --- a/js/admin/embed.js +++ b/js/admin/embed.js @@ -332,7 +332,7 @@ /** * Add embed choices with access to the panel they render into. * - * @since x.x + * @since 7.1 */ wp.hooks.applyFilters( 'frm_embed_modal_options', options, { type: state.type, diff --git a/js/admin/settings.js b/js/admin/settings.js index 1d72c14324..f95437d18c 100644 --- a/js/admin/settings.js +++ b/js/admin/settings.js @@ -283,7 +283,7 @@ * Pro 7.0.1 and older call wpColorPicker() on the email style color inputs. Lite now renders * its own disabled toggle with a hidden input, so remove the toggle and show the input instead. * - * @since x.x + * @since 7.1 * * @return {void} */ diff --git a/js/admin/style.js b/js/admin/style.js index 3cf75130ca..30b26aff44 100644 --- a/js/admin/style.js +++ b/js/admin/style.js @@ -1359,7 +1359,7 @@ /** * Prepend '#' to a hex color saved without it. This matches FrmStylesHelper::add_color_hash_if_needed. * - * @since x.x + * @since 7.1 * * @param {string} value The color value. * @return {string} The color, with a '#' when it is a hex color without one. @@ -1494,7 +1494,7 @@ * When every changed setting only feeds a CSS variable, the variables are updated right away with JavaScript. * Anything else requests new CSS from the server. * - * @since x.x + * @since 7.1 * * @param {boolean} isRecheck True when called again after a change event that did not change any values yet. * @param {boolean} isTyping True when called from an input event, while a value may still be incomplete. @@ -1556,7 +1556,7 @@ /** * Check for a color setting that holds part of a hex color, like #1 or #1234. * - * @since x.x + * @since 7.1 * * @param {string} key The setting key. * @param {string|undefined} value The setting value. @@ -1573,7 +1573,7 @@ } /** - * @since x.x + * @since 7.1 * * @return {HTMLElement[]} The inputs that are sent to the server when requesting new CSS. */ @@ -1584,7 +1584,7 @@ } /** - * @since x.x + * @since 7.1 * * @return {Object} Style setting values keyed by setting name, plus the style_name value. */ @@ -1600,7 +1600,7 @@ /** * Check if a setting can be updated without new CSS from the server. * - * @since x.x + * @since 7.1 * * @param {string} key The setting key. * @param {Object} values All current setting values. @@ -1618,7 +1618,7 @@ /** * This matches the check in FrmStylesHelper::update_base_font_size. * - * @since x.x + * @since 7.1 * * @param {Object} values All current setting values. * @return {boolean} True if font sizes are scaled from the base font size. @@ -1631,7 +1631,7 @@ /** * Values that the server would sanitize or skip are left to the server, so both ways of updating the preview always match. * - * @since x.x + * @since 7.1 * * @param {string|undefined} value The setting value. It is undefined when the input is not submitted, like an unchecked checkbox. * @return {boolean} True if the value can be used as is. @@ -1652,7 +1652,7 @@ /** * This matches the formatting in FrmStylesHelper::get_color_output. * - * @since x.x + * @since 7.1 * * @param {string} key The setting key. * @param {string} value The setting value. @@ -1665,7 +1665,7 @@ /** * This matches the variable names from FrmStylesHelper::output_vars. * - * @since x.x + * @since 7.1 * * @param {string} key The setting key. * @return {string} The CSS variable name. @@ -1677,7 +1677,7 @@ /** * Write the CSS variables set with JavaScript to a style tag after #this_css, so they take priority over the last server response. * - * @since x.x + * @since 7.1 * * @return {void} */ diff --git a/js/formidable-settings-components.js b/js/formidable-settings-components.js index 0da67df20c..b064500537 100644 --- a/js/formidable-settings-components.js +++ b/js/formidable-settings-components.js @@ -1 +1 @@ -(()=>{var e={8616:e=>{e.exports=function(e,t){var n,r,i=0;function a(){var a,o,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(o=0;o{var r;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(e){return function(e,t){var n,r,o,s,l,c,u,f,d,p=1,v=e.length,h="";for(r=0;r=0),s.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,s.width?parseInt(s.width):0);break;case"e":n=s.precision?parseFloat(n).toExponential(s.precision):parseFloat(n).toExponential();break;case"f":n=s.precision?parseFloat(n).toFixed(s.precision):parseFloat(n);break;case"g":n=s.precision?String(Number(n.toPrecision(s.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=s.precision?n.substring(0,s.precision):n;break;case"t":n=String(!!n),n=s.precision?n.substring(0,s.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s.precision?n.substring(0,s.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=s.precision?n.substring(0,s.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?h+=n:(!i.number.test(s.type)||f&&!s.sign?d="":(d=f?"+":"-",n=n.toString().replace(i.sign,"")),c=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",u=s.width-(d+n).length,l=s.width&&u>0?c.repeat(u):"",h+=s.align?d+n+l:"0"===c?d+l+n:l+d+n)}return h}(function(e){if(s[e])return s[e];for(var t,n=e,r=[],a=0;n;){if(null!==(t=i.text.exec(n)))r.push(t[0]);else if(null!==(t=i.modulo.exec(n)))r.push("%");else{if(null===(t=i.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){a|=1;var o=[],l=t[2],c=[];if(null===(c=i.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(c[1]);""!==(l=l.substring(c[0].length));)if(null!==(c=i.key_access.exec(l)))o.push(c[1]);else{if(null===(c=i.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(c[1])}t[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return s[e]=r}(e),arguments)}function o(e,t){return a.apply(null,[e].concat(t||[]))}var s=Object.create(null);"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=o,void 0===(r=function(){return{sprintf:a,vsprintf:o}}.call(t,n,t,e))||(e.exports=r))}()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=window.frmGlobal,t=(e.url,e.nonce,"frm_hidden"),r="frm_disabled",i="frmShowedFieldSettings",a=(Promise.resolve(),frmDom),o=(a.div,a.span,a.tag,a.a,a.img,a.svg,frmDom.modal),s=(o.maybeCreateModal,o.footerButton,frmDom.util),l=(s.onClickPreventDefault,s.documentOn);frmDom.ajax.doJsonPost;var c=(new URL(window.location.href).searchParams,function(e){return null==e?void 0:e.classList.remove(t)});function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function f(e,t){for(var n=0;n":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},g=["(","?"],b={")":["("],":":["?","?:"]},S=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var _={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};var L={contextDelimiter:"",onMissingKey:null};function F(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},L)this.options[n]=void 0!==t&&n in t?t[n]:L[n]}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T(e){for(var t=1;t=0||y[i]3&&void 0!==arguments[3]?arguments[3]:10,o=e[t];if(j(n)&&R(r))if("function"==typeof i)if("number"==typeof a){var s={callback:i,priority:a,namespace:r};if(o[n]){var l,c=o[n].handlers;for(l=c.length;l>0&&!(a>=c[l-1].priority);l--);l===c.length?c[l]=s:c.splice(l,0,s),o.__current.forEach(function(e){e.name===n&&e.currentIndex>=l&&e.currentIndex++})}else o[n]={handlers:[s],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,i,a)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},P=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r,i){var a=e[t];if(j(r)&&(n||R(i))){if(!a[r])return 0;var o=0;if(n)o=a[r].handlers.length,a[r]={runs:a[r].runs,handlers:[]};else for(var s=a[r].handlers,l=function(e){s[e].namespace===i&&(s.splice(e,1),o++,a.__current.forEach(function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--}))},c=s.length-1;c>=0;c--)l(c);return"hookRemoved"!==r&&e.doAction("hookRemoved",r,i),o}}},V=function(e,t){return function(n,r){var i=e[t];return void 0!==r?n in i&&i[n].handlers.some(function(e){return e.namespace===r}):n in i}},D=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var i=e[t];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;for(var a=i[r].handlers,o=arguments.length,s=new Array(o>1?o-1:0),l=1;l1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=T(T(T({},O),r.data[t]),e),r.data[t][""]=T(T({},O[""]),r.data[t][""])},s=function(e,t){o(e,t),a()},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return r.data[e]||o(void 0,e),r.dcnpgettext(e,t,n,i,a)},c=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},u=function(e,t,r){var i=l(r,t,e);return n?(i=n.applyFilters("i18n.gettext_with_context",i,e,t,r),n.applyFilters("i18n.gettext_with_context_"+c(r),i,e,t,r)):i};if(n){var f=function(e){C.test(e)&&a()};n.addAction("hookAdded","core/i18n",f),n.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:s,resetLocaleData:function(e,t){r.data={},r.pluralForms={},s(e,t)},subscribe:function(e){return i.add(e),function(){return i.delete(e)}},__:function(e,t){var r=l(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+c(t),r,e,t)):r},_x:u,_n:function(e,t,r,i){var a=l(i,void 0,e,t,r);return n?(a=n.applyFilters("i18n.ngettext",a,e,t,r,i),n.applyFilters("i18n.ngettext_"+c(i),a,e,t,r,i)):a},_nx:function(e,t,r,i,a){var o=l(a,i,e,t,r);return n?(o=n.applyFilters("i18n.ngettext_with_context",o,e,t,r,i,a),n.applyFilters("i18n.ngettext_with_context_"+c(a),o,e,t,r,i,a)):o},isRTL:function(){return"rtl"===u("ltr","text direction")},hasTranslation:function(e,t,i){var a,o,s=t?t+""+e:e,l=!(null===(a=r.data)||void 0===a||null===(o=a[null!=i?i:"default"])||void 0===o||!o[s]);return n&&(l=n.applyFilters("i18n.has_translation",l,e,t,i),l=n.applyFilters("i18n.has_translation_"+c(i),l,e,t,i)),l}}}(0,0,M));B.getLocaleData.bind(B),B.setLocaleData.bind(B),B.resetLocaleData.bind(B),B.subscribe.bind(B);var W=B.__.bind(B);function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function K(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.loadedByWebComponent=t.length>0,this.sliderElements=t.length>0?t:document.querySelectorAll(".frm-slider-component"),this.settings=n,0!==this.sliderElements.length&&(this.eventsChange=[],this.initOptions(),this.init())}return n=e,r=[{key:"initOptions",value:function(){var e=this;this.options=[],this.sliderElements.forEach(function(t,n){var r=t.classList.contains("frm-has-multiple-values")?t.closest(".frm-style-component"):t,i=e.settings.steps||(t.dataset.steps?JSON.parse(t.dataset.steps):null);e.options.push({maxValue:parseInt(t.dataset.maxValue,10),element:t,index:n,steps:i,dependentUpdater:r.classList.contains("frm-style-dependent-updater-component")?new k(r):null})})}},{key:"init",value:function(){this.initListeners(),this.initFill()}},{key:"initListeners",value:function(){var t=this;this.sliderElements.forEach(function(n,r){t.eventsChange[r]=new Event("change",{bubbles:!0,cancelable:!0});var i=n.querySelector(".frm-slider"),a=n.querySelector('.frm-slider-value input[type="text"]');if(i&&a){t.initSteps(i,r),i.addEventListener("input",function(){var o=t.getRangeValue(i,r);a.value=o,e.refreshRange(i,n,o),t.syncGroupSliders(n,o),t.options[r].fullValue=t.updateValue(n,o+e.getUnit(n)),t.triggerValueChange(r)}),i.addEventListener("change",function(){var a=t.getRangeValue(i,r);t.options[r].fullValue=t.updateValue(n,a+e.getUnit(n)),t.triggerValueChange(r)});var o=function(o){var s=e.getUnit(n),l=parseFloat(o.target.value),c=t.options[r].steps,u=c&&c.length>0?c.map(Number).includes(l):l>=parseFloat(i.min||0)&&parseFloat(i.max)>=l;!isNaN(l)&&u?(t.setRangeValue(i,r,l),e.refreshRange(i,n,l),t.options[r].fullValue=t.updateValue(n,l+s),t.triggerValueChange(r)):"change"===o.type&&(a.value=t.getRangeValue(i,r))};a.addEventListener("input",o),a.addEventListener("change",o),e.expandSliderGroup(n),t.updateOnUnitChange(n,i,a,r),e.maybeDisableUnitDropdown(n)}})}},{key:"initFill",value:function(){var t=this;this.sliderElements.forEach(function(n,r){var i=n.querySelector(".frm-slider");if(i){var a=t.getRangeValue(i,r);t.options[r].fullValue=a+e.getUnit(n),e.refreshRange(i,n,a)}})}},{key:"initSteps",value:function(t,n){var r=this.options[n].steps;if(r&&0!==r.length){var i=parseFloat(t.value);t.min="0",t.max=String(r.length-1),t.step="1",t.value=String(e.getClosestStepIndex(i,r))}}},{key:"getRangeValue",value:function(e,t){var n=this.options[t].steps;return n&&n.length>0?n[parseInt(e.value,10)]:parseFloat(e.value)}},{key:"setRangeValue",value:function(t,n,r){var i=this.options[n].steps;i&&i.length>0?t.value=String(e.getClosestStepIndex(parseFloat(r),i)):(e.applyStep(t,r),t.value=r)}},{key:"syncGroupSliders",value:function(t,n){var r=this;(t.classList.contains("frm-has-multiple-values")||t.classList.contains("frm-has-independent-fields"))&&(t.classList.contains("frm-has-independent-fields")?t.querySelectorAll(".frm-independent-slider-field"):e.getSliderGroupItems(t)).forEach(function(t){var i=t.querySelector(".frm-slider"),a=t.querySelector('.frm-slider-value input[type="text"]'),o=r.getSliderIndex(t);i&&-1!==o&&(r.setRangeValue(i,o,n),e.refreshRange(i,t,n)),a&&(a.value=n)})}},{key:"updateOnUnitChange",value:function(t,n,r,i){var a=this,o=t.querySelector("select");o&&o.addEventListener("change",function(o){var s=o.target.value.toLowerCase();if(""===s)return t.classList.add("frm-disabled","frm-empty"),n.disabled=!0,r.value="",r.disabled=!0,e.updateLabelFocusTarget(r,!1),e.refreshRange(n,t,a.getRangeValue(n,i)),a.options[i].fullValue=a.updateValue(t,""),void a.triggerValueChange(i);if("auto"===s)return t.classList.add("frm-disabled"),n.disabled=!0,r.value="",r.disabled=!0,e.updateLabelFocusTarget(r,!1),n.setAttribute("aria-valuetext",s),a.options[i].fullValue=a.updateValue(t,"auto"),void a.triggerValueChange(i);t.classList.remove("frm-disabled","frm-empty"),n.disabled=!1,r.disabled=!1,e.updateLabelFocusTarget(r,!0),a.options[i].steps||(n.max=a.getMaxValue(s,i,a.getRangeValue(n,i)));var l=a.getRangeValue(n,i);r.value=l,a.options[i].fullValue=l+s,a.updateValue(t,a.options[i].fullValue),e.refreshRange(n,t,l),a.triggerValueChange(i)})}},{key:"getSliderIndex",value:function(e){var t=this.options.find(function(t){return t.element===e});return t?t.index:-1}},{key:"getMaxValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="%"===e?100:this.options[t].maxValue;return null!==n&&n>r?Math.ceil(n):r}},{key:"triggerValueChange",value:function(e){var t=this;if(null===this.options[e].dependentUpdater){var n=this.sliderElements[e].classList.contains("frm-has-multiple-values")?this.sliderElements[e].closest(".frm-style-component").querySelector('input[type="hidden"]'):this.sliderElements[e].querySelectorAll('.frm-slider-value input[type="hidden"]');n instanceof NodeList?n.forEach(function(n){n.dispatchEvent(t.eventsChange[e])}):n.dispatchEvent(this.eventsChange[e])}else this.options[e].dependentUpdater.updateAllDependentElements(this.options[e].fullValue)}},{key:"updateValue",value:function(t,n){var r=this;if(t.classList.contains("frm-base-font-size")){var i=document.querySelector('input[name="frm_style_setting[post_content][use_base_font_size]"]');i&&(i.value="true")}if(t.classList.contains("frm-has-multiple-values")){var a=t.closest(".frm-style-component").querySelector('input[type="hidden"]'),o=a.value.split(" "),s=t.dataset.type;switch(o[2]||(o[2]="0px"),o[3]||(o[3]="0px"),s){case"vertical":o[0]=n,o[2]=n;break;case"horizontal":o[1]=n,o[3]=n;break;case"top":o[0]=n;break;case"bottom":o[2]=n;break;case"left":o[3]=n;break;case"right":o[1]=n}var l=o.join(" ");return a.value=l,e.getSliderGroupItems(t).forEach(function(e){var t=r.getUnitMeasureFromValue(n);e.querySelector('.frm-slider-value input[type="text"]').value=parseFloat(n),e.querySelector("select").value=t}),l}if(t.classList.contains("frm-has-independent-fields")){var c=t.querySelectorAll('.frm-slider-value input[type="hidden"]'),u=t.querySelectorAll('.frm-slider-value input[type="text"]');return c.forEach(function(e,t){e.value=n,u[t+1].value=parseFloat(n)}),n}return t.querySelector('.frm-slider-value input[type="hidden"]').value=n,n}},{key:"getUnitMeasureFromValue",value:function(e){return $.find(function(t){return e.includes(t)})||""}}],i=[{key:"getUnit",value:function(e){var t=e.querySelector("select");return t?t.value:""}},{key:"getClosestStepIndex",value:function(e,t){for(var n=0,r=Math.abs(e-t[0]),i=1;i0?"0.".concat("0".repeat(n-1),"1"):"1"}},{key:"refreshRange",value:function(t,n,r){e.updateFill(t);var i=e.getUnit(n);if("auto"!==i)if(""!==i){var a=$.includes(i)?i:"";t.setAttribute("aria-valuetext","".concat(r).concat(a))}else t.setAttribute("aria-valuetext",W("Not set","formidable"));else t.setAttribute("aria-valuetext",i)}},{key:"updateFill",value:function(e){var t=parseFloat(e.min)||0,n=parseFloat(e.max),r=parseFloat(e.value),i=n-t,a=i>0?Math.min(Math.max((r-t)/i,0),1):0;e.style.setProperty("--frm-fill",a)}},{key:"expandSliderGroup",value:function(n){var r=n.querySelector(".frmsvg");if(void 0!==n.dataset.displaySliders&&null!==r){var i=e.getSliderGroupItems(n);r.addEventListener("click",function(){i.forEach(function(e){e.classList.toggle(t)})})}}},{key:"updateLabelFocusTarget",value:function(e,t){if(e.id){var n=document.querySelector('[data-slider-label-for="'.concat(e.id,'"]'));n&&(t?n.setAttribute("for",e.id):n.removeAttribute("for"))}}},{key:"maybeDisableUnitDropdown",value:function(e){var t=e.querySelector("select");t&&1>=Array.from(t.options).filter(function(e){return""!==e.value}).length&&(t.classList.add("frm-single-unit"),t.addEventListener("mousedown",function(e){return e.preventDefault()}))}},{key:"getSliderGroupItems",value:function(e){if(Z.has(e))return Z.get(e);if(void 0===e.dataset.displaySliders)return[];var t=e.closest(".frm-style-component");if(!t)return[];var n=e.dataset.displaySliders.split(",").map(function(e){return'.frm-slider-component[data-type="'.concat(e,'"]')}).join(", "),r=t.querySelectorAll(n);return Z.set(e,r),r}}],r&&K(n.prototype,r),i&&K(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}();function Q(e){if(J){J.dataset.activeFilter=e,J.querySelectorAll("[data-group]").forEach(function(t){"all"===e&&"my_actions"===t.dataset.group?t.classList.add("frm_hidden"):t.classList.toggle("frm_hidden","all"!==e&&t.dataset.group!==e)});var t=J.querySelector('[data-group="my_actions"]');t&&t.querySelectorAll("[data-section] .frm-group-heading").forEach(function(t){t.style.display="all"===e?"none":""})}}var Y=null;function ee(){Y&&(Y.disconnect(),Y=null)}function te(e){return te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(e)}function ne(e,t){for(var n=0;n li"),this.slideTrackLine=this.wrapper.querySelector(".frm-tabs-active-underline"),this.slideTrack=this.wrapper.querySelector(".frm-tabs-slide-track"),this.slides=this.wrapper.querySelectorAll(".frm-tabs-slide-track > div"),this.isRTL="rtl"===document.documentElement.dir||"rtl"===document.body.dir,this.resizeObserver=null,this.filterTarget=function(e){var t;J=null;var n=null==e||null===(t=e.dataset)||void 0===t?void 0:t.filterTarget;if(n){var r=document.querySelector(n);(function(e){return e.querySelectorAll("[data-group]").length>0})(r)&&(J=r)}return J}(this.wrapper),this.init()))},(t=[{key:"init",value:function(){var e,t=this,n=!this.filterTarget&&(null===this.slideTrack||0===this.slides.length);if(null!==this.wrapper&&this.navs.length&&null!==this.slideTrackLine&&!n){var r=null===(e=this.navs[0])||void 0===e?void 0:e.parentElement;r&&(r.setAttribute("role",this.filterTarget?"group":"tablist"),r.hasAttribute("aria-label")||r.hasAttribute("aria-labelledby")||r.setAttribute("aria-label",this.filterTarget?W("Filters","formidable"):W("Sections","formidable")));var i,a=Array.from(this.navs).findIndex(function(e){return e.classList.contains("frm-active")}),o=Math.max(a,0),s=this.wrapper.getRootNode();do{i="frm-tablist-".concat(++ie)}while(s.getElementById("".concat(i,"-tab-0"))||s.getElementById("".concat(i,"-panel-0")));this.navs.forEach(function(e,n){var r=n===o;if(e.classList.toggle("frm-active",r),e.setAttribute("tabindex",t.filterTarget||r?"0":"-1"),e.setAttribute("role",t.filterTarget?"button":"tab"),e.setAttribute(t.filterTarget?"aria-pressed":"aria-selected",String(r)),e.querySelectorAll("a").forEach(function(e){return e.setAttribute("tabindex","-1")}),!t.filterTarget&&t.slides[n]){var a=t.slides[n];e.id=e.id||"".concat(i,"-tab-").concat(n),a.id=a.id||"".concat(i,"-panel-").concat(n),e.setAttribute("aria-controls",a.id),a.setAttribute("role","tabpanel"),a.setAttribute("aria-labelledby",e.id),a.setAttribute("tabindex","0")}e.addEventListener("click",function(e){return t.onNavClick(e,n)}),e.addEventListener("keydown",function(e){return t.onNavKeydown(e,n)}),e.classList.contains("frm-active")&&(t.initSlideTrackUnderline(e),t.filterTarget&&Q(e.dataset.filter||"all"))}),this.filterTarget||this.changeSlide(o),this.slideTrackLine.style.display="block",this.setupScrollbarObserver(),this.setupVisibilityObserver(),window.addEventListener("beforeunload",this.cleanupObservers)}}},{key:"onNavClick",value:function(e,t){var n=this,r=e.currentTarget;if(e.preventDefault(),this.removeActiveClassnameFromNavs(),r.classList.add("frm-active"),this.navs.forEach(function(e){e.setAttribute(n.filterTarget?"aria-pressed":"aria-selected",String(e===r)),n.filterTarget||e.setAttribute("tabindex",e===r?"0":"-1")}),this.initSlideTrackUnderline(r),this.filterTarget)Q(r.dataset.filter||"all");else{this.changeSlide(t),this.keepFocusOnTab(r);var i,a,o=r.querySelector("a");o&&"frm_insert_fields_tab"===o.id&&!o.closest("#frm_adv_info")&&(null===(i=window.frmAdminBuild)||void 0===i||null===(a=i.clearSettingsBox)||void 0===a||a.call(i))}}},{key:"onNavKeydown",value:function(e,t){if("Enter"===e.key||" "===e.key)return e.preventDefault(),void this.onNavClick(e,t);if(!this.filterTarget){var n=this.navs.length-1,r={ArrowLeft:(t+(this.isRTL?1:n))%this.navs.length,ArrowRight:(t+(this.isRTL?n:1))%this.navs.length,Home:0,End:n}[e.key];void 0!==r&&(e.preventDefault(),this.navs.forEach(function(e,t){return e.setAttribute("tabindex",t===r?"0":"-1")}),this.navs[r].focus())}}},{key:"keepFocusOnTab",value:function(e){var t,n=null!==(t=this.wrapper.getRootNode().activeElement)&&void 0!==t?t:document.activeElement,r=!n||n===document.body||null!==n.closest("[inert]"),i=Array.from(this.navs).some(function(e){return e.contains(n)});n!==e&&(r||i)&&e.focus({preventScroll:!0})}},{key:"initSlideTrackUnderline",value:function(e){var t=void 0!==e?e:this.navs.filter(function(e){return e.classList.contains("frm-active")});this.positionUnderlineIndicator(t)}},{key:"setupVisibilityObserver",value:function(){var e=this;!function(e,t){"IntersectionObserver"in window&&e instanceof Element&&"function"==typeof t&&(Y=new IntersectionObserver(function(e){e[0].isIntersecting&&(t(),ee())})).observe(e)}(this.wrapper,function(){var t=e.wrapper.querySelector(".frm-tabs-navs ul > li.frm-active");t&&e.positionUnderlineIndicator(t)})}},{key:"setupScrollbarObserver",value:function(){var e=this,t=document.querySelector(".frm-scrollbar-wrapper, .styling_settings")||document.body;t&&"ResizeObserver"in window&&(this.resizeObserver=new ResizeObserver(function(){var t=e.wrapper.querySelector(".frm-tabs-navs ul > li.frm-active");t&&e.positionUnderlineIndicator(t)}),this.resizeObserver.observe(t))}},{key:"cleanupObservers",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),ee()}},{key:"positionUnderlineIndicator",value:function(e){var t=this;requestAnimationFrame(function(){var n=t.isRTL?-(e.parentElement.offsetWidth-e.offsetLeft-e.offsetWidth):e.offsetLeft;t.slideTrackLine.style.transform="translateX(".concat(n,"px)"),t.slideTrackLine.style.width="".concat(e.clientWidth,"px")})}},{key:"changeSlide",value:function(e){this.removeActiveClassnameFromSlides(),this.slides.forEach(function(t,n){var r=n!==e;t.toggleAttribute("inert",r),t.setAttribute("aria-hidden",String(r))});var t=0==e?"0px":"calc( ( ".concat(100*e,"% + ").concat(parseInt(this.flexboxSlidesGap,10)*e,"px ) * ").concat(this.isRTL?1:-1," )");"0px"!==t?this.slideTrack.style.transform="translateX(".concat(t,")"):this.slideTrack.style.removeProperty("transform"),e in this.slides&&this.slides[e].classList.add("frm-active")}},{key:"removeActiveClassnameFromSlides",value:function(){this.slides.forEach(function(e){return e.classList.remove("frm-active")})}},{key:"removeActiveClassnameFromNavs",value:function(){this.navs.forEach(function(e){return e.classList.remove("frm-active")})}}])&&ne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function se(e,t){for(var n=0;n0))return e.style.paddingLeft="",e.style.paddingTop="",void(e.style.height="");var r=t.offsetHeight;if(Math.max(1,Math.ceil(r/36))>1){var i=function(e){if(!e.length)return 0;var t=0;return e.forEach(function(e){t+=e.offsetWidth}),(t+=4*(e.length-1))+4}(function(e){if(!e.length)return[];var t=Array.from(e),n=-1;t.forEach(function(e){var t=e.getBoundingClientRect().bottom;t>n&&(n=t)});return t.filter(function(e){var t=e.getBoundingClientRect();return Math.abs(t.bottom-n)<=2})}(n));e.style.height="".concat(r,"px"),e.style.paddingTop="".concat(r-36+4,"px"),e.style.paddingLeft=i?"".concat(i+8,"px"):""}else e.style.height="",e.style.paddingTop="",e.style.paddingLeft="".concat(t.offsetWidth-4,"px")}}function ke(e,t,n){e&&n&&t&&(n.innerHTML="",xe(e).forEach(function(e){return function(e,t){var n=ye({className:de,children:[ye({text:e,className:pe}),ye({className:ve,child:ge({href:"#frm_close_icon"})})]});t.append(n)}(e,n)}),Se(t,n),t.focus())}function we(e,t,n){if(!e||!t||!n)return!1;var r=xe(t.value);return r.includes(e)?(_e(n),!1):(r.push(e),Ae(t,r),_e(n),!0)}function Ee(e,t,n){if(e&&t&&n){var r=e.querySelector(".".concat(pe)).textContent;Ae(t,xe(t.value).filter(function(e){return e!==r})),e.remove(),n.focus()}}function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(e=e.trim())?e.split(/\s+/).filter(Boolean):[]}function Ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e&&(e.value=t.join(" "),jQuery(e).trigger("change"))}function _e(e){e&&(e.value="",e.focus())}function Le(e){var n=(e?document.getElementById("frm-single-settings-".concat(e)):document.body).querySelectorAll(".".concat("frm-token-input-field"));if(n.length){var r=new Set;n.forEach(function(e){r.has(e.id)||(function(e){var n=function(e){var n=e.closest(".".concat("frm-with-right-icon"));if(n.querySelector(".".concat(fe)))return null;n.classList.add(ue);var r=ye({className:fe});n.insertBefore(r,n.firstChild);var i=be("input",{className:he,id:"".concat(e.id,"-proxy-input")});return i.type="text",e.parentNode.insertBefore(i,e.nextSibling),e.classList.add(t),n}(e);if(n){var r=n.querySelector(".".concat(he)),i=n.querySelector(".".concat(fe));ke(e.value,r,i),function(e,t,n){jQuery(e).on("change",function(){return ke(e.value,t,n)}),t.addEventListener("keydown",function(r){return function(e,t,n,r){var i=e.key,a=n.value.trim();switch(i){case"Backspace":a||(e.preventDefault(),Ee(r.querySelector(".".concat(de,":last-child")),t,n));break;case" ":case",":case"Enter":e.preventDefault(),we(a,t,n)}Se(n,r)}(r,e,t,n)}),t.addEventListener("blur",function(){return we(t.value.trim(),e,t)}),n.addEventListener("click",function(n){return function(e,t,n){var r=e.target.closest(".".concat(ve));if(r){var i=r.closest(".".concat(de));if(i){var a=i.parentElement;Ee(i,t,n),Se(n,a)}}}(n,e,t)})}(e,r,i)}}(e),r.add(e.id))})}}var Fe="frm-toggle-group",qe="frm_toggle_block",Te="data-group-name";function Oe(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).querySelectorAll(".".concat(Fe));e.length&&e.forEach(function(e){var t=e.querySelector("[".concat(Te,"]:checked"));t&&Re(t,e)})}function Ce(e){var t=e.target,n=t.closest(".".concat(Fe));n&&Re(t,n)}function Re(e,n){var i,a=(null===(i=n.closest(".".concat("frm-single-settings")))||void 0===i?void 0:i.dataset.fid)||n.dataset.fid,o=e.checked,s=e.getAttribute("data-show");s&&document.querySelectorAll(je(s,a)).forEach(function(e){return e.classList.toggle(t,!o)});var l=e.getAttribute("data-disable");l&&document.querySelectorAll(je(l,a)).forEach(function(e){e.classList.toggle(r,o),e.querySelectorAll("input, select, textarea").forEach(function(e){return e.disabled=o}),e.querySelectorAll(".frm-show-inline-modal[tabindex]").forEach(function(e){return e.tabIndex=o?-1:0})});var c=e.getAttribute("data-enable");c&&document.querySelectorAll(je(c,a)).forEach(function(e){return e.classList.toggle(r,!o)});var u=e.closest(".".concat(qe));Array.from(n.querySelectorAll(".".concat(qe))).filter(function(e){return e!==u}).forEach(function(e){e.classList.toggle(r,o);var t=e.querySelector(".frm_toggle");t.tabIndex=o?-1:0,t.setAttribute("aria-disabled",o)})}function je(e,t){return e.replace(/{id}/g,t)}function Ie(e){var t=e.target.closest(".frm-unit-input"),n=t.querySelector(".frm-unit-input-control"),r=t.querySelector("select").value;e.target.matches("select")&&(n.type=""===r?"text":"number");var i=n.value.trim(),a=t.querySelector('input[type="hidden"]');a.value=""!==i?i+r:"",a.dispatchEvent(new Event("input",{bubbles:!0}))}var Pe,Ve=function(e){var t=e.querySelector('li[data-filter="all"]');t.classList.contains("frm-active")||t.click()},De=function(e){e.querySelectorAll("[data-group]").forEach(function(e){var t=e.querySelector(".frm-group-heading");if(t){var n=e.querySelectorAll(".frm-action"),r=n.length>0&&Array.from(n).every(function(e){return e.classList.contains("frm_hidden")});t.classList.toggle("frm-force-hidden",r)}})};Pe=function(){var e;new p,new H,new ce,null===(e=document.getElementById("frm-form-add-field"))||void 0===e||e.addEventListener("click",function(e){var t;e.preventDefault(),null===(t=document.querySelector(".frm-settings-panel .frm-tabs-navs ul > li:first-child"))||void 0===t||t.click()}),document.addEventListener("frm_added_field",function(e){return Le(e.frmField.dataset.fid)}),wp.hooks.addAction(i,"formidable-token-input",function(e,t){Le(t.id.replace("frm-single-settings-","")),function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).querySelectorAll(".".concat(ue)).forEach(function(e){return Se(e.querySelector(".".concat(he)),e.querySelector(".".concat(fe)))})}(t)}),Oe(),l("change",".".concat(Fe," [").concat(Te,"]"),Ce),wp.hooks.addAction("frm_field_settings_loaded","formidable-toggle-group",Oe),wp.hooks.addAction("frmShowedFieldSettings","formidable-toggle-group",function(e,t){return Oe(t)}),document.addEventListener("frm_added_field",function(e){return Oe(e.frmField)}),l("input",".frm-unit-input .frm-unit-input-control",Ie),l("change",".frm-unit-input .frm-unit-input-control",Ie),l("change",".frm-unit-input select",Ie),function(){var e=document.getElementById("frm_email_addon_menu");if(e){var t=e.querySelector(".frm-auto-search");if(t){var n=document.getElementById("frm-actions-filter-content"),r=function(){return function(e,t,n){e.value.trim()&&Ve(t),n&&requestAnimationFrame(function(){return De(n)})}(t,e,n)};t.addEventListener("input",r),t.addEventListener("search",r)}}}()},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",Pe):Pe())})()})(); \ No newline at end of file +(()=>{var e={8616:e=>{e.exports=function(e,t){var n,r,i=0;function a(){var a,o,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(o=0;o{var r;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(e){return function(e,t){var n,r,o,s,l,c,u,f,d,p=1,v=e.length,h="";for(r=0;r=0),s.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,s.width?parseInt(s.width):0);break;case"e":n=s.precision?parseFloat(n).toExponential(s.precision):parseFloat(n).toExponential();break;case"f":n=s.precision?parseFloat(n).toFixed(s.precision):parseFloat(n);break;case"g":n=s.precision?String(Number(n.toPrecision(s.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=s.precision?n.substring(0,s.precision):n;break;case"t":n=String(!!n),n=s.precision?n.substring(0,s.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s.precision?n.substring(0,s.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=s.precision?n.substring(0,s.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?h+=n:(!i.number.test(s.type)||f&&!s.sign?d="":(d=f?"+":"-",n=n.toString().replace(i.sign,"")),c=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",u=s.width-(d+n).length,l=s.width&&u>0?c.repeat(u):"",h+=s.align?d+n+l:"0"===c?d+l+n:l+d+n)}return h}(function(e){if(s[e])return s[e];for(var t,n=e,r=[],a=0;n;){if(null!==(t=i.text.exec(n)))r.push(t[0]);else if(null!==(t=i.modulo.exec(n)))r.push("%");else{if(null===(t=i.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){a|=1;var o=[],l=t[2],c=[];if(null===(c=i.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(c[1]);""!==(l=l.substring(c[0].length));)if(null!==(c=i.key_access.exec(l)))o.push(c[1]);else{if(null===(c=i.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(c[1])}t[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return s[e]=r}(e),arguments)}function o(e,t){return a.apply(null,[e].concat(t||[]))}var s=Object.create(null);"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=o,void 0===(r=function(){return{sprintf:a,vsprintf:o}}.call(t,n,t,e))||(e.exports=r))}()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=window.frmGlobal,t=(e.url,e.nonce,"frm_hidden"),r="frm_disabled",i="frmShowedFieldSettings",a=(Promise.resolve(),frmDom),o=(a.div,a.span,a.tag,a.a,a.img,a.svg,frmDom.modal),s=(o.maybeCreateModal,o.footerButton,frmDom.util),l=(s.onClickPreventDefault,s.documentOn);frmDom.ajax.doJsonPost;var c=(new URL(window.location.href).searchParams,function(e){return null==e?void 0:e.classList.remove(t)});function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function f(e,t){for(var n=0;n":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},g=["(","?"],b={")":["("],":":["?","?:"]},S=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var _={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};var L={contextDelimiter:"",onMissingKey:null};function F(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},L)this.options[n]=void 0!==t&&n in t?t[n]:L[n]}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t=0||y[i]3&&void 0!==arguments[3]?arguments[3]:10,o=e[t];if(j(n)&&R(r))if("function"==typeof i)if("number"==typeof a){var s={callback:i,priority:a,namespace:r};if(o[n]){var l,c=o[n].handlers;for(l=c.length;l>0&&!(a>=c[l-1].priority);l--);l===c.length?c[l]=s:c.splice(l,0,s),o.__current.forEach(function(e){e.name===n&&e.currentIndex>=l&&e.currentIndex++})}else o[n]={handlers:[s],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,i,a)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},V=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r,i){var a=e[t];if(j(r)&&(n||R(i))){if(!a[r])return 0;var o=0;if(n)o=a[r].handlers.length,a[r]={runs:a[r].runs,handlers:[]};else for(var s=a[r].handlers,l=function(e){s[e].namespace===i&&(s.splice(e,1),o++,a.__current.forEach(function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--}))},c=s.length-1;c>=0;c--)l(c);return"hookRemoved"!==r&&e.doAction("hookRemoved",r,i),o}}},P=function(e,t){return function(n,r){var i=e[t];return void 0!==r?n in i&&i[n].handlers.some(function(e){return e.namespace===r}):n in i}},D=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var i=e[t];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;for(var a=i[r].handlers,o=arguments.length,s=new Array(o>1?o-1:0),l=1;l1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=q(q(q({},O),r.data[t]),e),r.data[t][""]=q(q({},O[""]),r.data[t][""])},s=function(e,t){o(e,t),a()},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return r.data[e]||o(void 0,e),r.dcnpgettext(e,t,n,i,a)},c=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},u=function(e,t,r){var i=l(r,t,e);return n?(i=n.applyFilters("i18n.gettext_with_context",i,e,t,r),n.applyFilters("i18n.gettext_with_context_"+c(r),i,e,t,r)):i};if(n){var f=function(e){C.test(e)&&a()};n.addAction("hookAdded","core/i18n",f),n.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:s,resetLocaleData:function(e,t){r.data={},r.pluralForms={},s(e,t)},subscribe:function(e){return i.add(e),function(){return i.delete(e)}},__:function(e,t){var r=l(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+c(t),r,e,t)):r},_x:u,_n:function(e,t,r,i){var a=l(i,void 0,e,t,r);return n?(a=n.applyFilters("i18n.ngettext",a,e,t,r,i),n.applyFilters("i18n.ngettext_"+c(i),a,e,t,r,i)):a},_nx:function(e,t,r,i,a){var o=l(a,i,e,t,r);return n?(o=n.applyFilters("i18n.ngettext_with_context",o,e,t,r,i,a),n.applyFilters("i18n.ngettext_with_context_"+c(a),o,e,t,r,i,a)):o},isRTL:function(){return"rtl"===u("ltr","text direction")},hasTranslation:function(e,t,i){var a,o,s=t?t+""+e:e,l=!(null===(a=r.data)||void 0===a||null===(o=a[null!=i?i:"default"])||void 0===o||!o[s]);return n&&(l=n.applyFilters("i18n.has_translation",l,e,t,i),l=n.applyFilters("i18n.has_translation_"+c(i),l,e,t,i)),l}}}(0,0,M));B.getLocaleData.bind(B),B.setLocaleData.bind(B),B.resetLocaleData.bind(B),B.subscribe.bind(B);var W=B.__.bind(B);function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function K(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.loadedByWebComponent=t.length>0,this.sliderElements=t.length>0?t:document.querySelectorAll(".frm-slider-component"),this.settings=n,0!==this.sliderElements.length&&(this.eventsChange=[],this.initOptions(),this.init())}return n=e,r=[{key:"initOptions",value:function(){var e=this;this.options=[],this.sliderElements.forEach(function(t,n){var r=t.classList.contains("frm-has-multiple-values")?t.closest(".frm-style-component"):t,i=e.settings.steps||(t.dataset.steps?JSON.parse(t.dataset.steps):null);e.options.push({maxValue:parseInt(t.dataset.maxValue,10),element:t,index:n,steps:i,dependentUpdater:r.classList.contains("frm-style-dependent-updater-component")?new k(r):null})})}},{key:"init",value:function(){this.initListeners(),this.initFill()}},{key:"initListeners",value:function(){var t=this;this.sliderElements.forEach(function(n,r){t.eventsChange[r]=new Event("change",{bubbles:!0,cancelable:!0});var i=n.querySelector(".frm-slider"),a=n.querySelector('.frm-slider-value input[type="text"]');if(i&&a){t.initSteps(i,r),i.addEventListener("input",function(){var o=t.getRangeValue(i,r);a.value=o,e.refreshRange(i,n,o),t.syncGroupSliders(n,o),t.options[r].fullValue=t.updateValue(n,o+e.getUnit(n)),t.triggerValueChange(r)}),i.addEventListener("change",function(){var a=t.getRangeValue(i,r);t.options[r].fullValue=t.updateValue(n,a+e.getUnit(n)),t.triggerValueChange(r)});var o=null;a.addEventListener("focus",function(){o=t.getRangeValue(i,r)});var s=function(s){var l=e.getUnit(n),c=parseFloat(s.target.value),u=t.options[r].steps,f=u&&u.length>0?u.map(Number).includes(c):c>=parseFloat(i.min||0)&&parseFloat(i.max)>=c;if(isNaN(c)||!f){if("change"!==s.type)return;return null!==o&&String(o)!==String(t.getRangeValue(i,r))&&t.applyTextValue(n,i,r,o,l),void(a.value=t.getRangeValue(i,r))}t.applyTextValue(n,i,r,c,l),"change"===s.type&&(o=c)};a.addEventListener("input",s),a.addEventListener("change",s),e.expandSliderGroup(n),t.updateOnUnitChange(n,i,a,r),e.maybeDisableUnitDropdown(n)}})}},{key:"initFill",value:function(){var t=this;this.sliderElements.forEach(function(n,r){var i=n.querySelector(".frm-slider");if(i){var a=t.getRangeValue(i,r);t.options[r].fullValue=a+e.getUnit(n),e.refreshRange(i,n,a)}})}},{key:"initSteps",value:function(t,n){var r=this.options[n].steps;if(r&&0!==r.length){var i=parseFloat(t.value);t.min="0",t.max=String(r.length-1),t.step="1",t.value=String(e.getClosestStepIndex(i,r))}}},{key:"getRangeValue",value:function(e,t){var n=this.options[t].steps;return n&&n.length>0?n[parseInt(e.value,10)]:parseFloat(e.value)}},{key:"setRangeValue",value:function(t,n,r){var i=this.options[n].steps;i&&i.length>0?t.value=String(e.getClosestStepIndex(parseFloat(r),i)):(e.applyStep(t,r),t.value=r)}},{key:"applyTextValue",value:function(t,n,r,i,a){this.setRangeValue(n,r,i),e.refreshRange(n,t,i),this.options[r].fullValue=this.updateValue(t,i+a),this.triggerValueChange(r)}},{key:"syncGroupSliders",value:function(t,n){var r=this;(t.classList.contains("frm-has-multiple-values")||t.classList.contains("frm-has-independent-fields"))&&(t.classList.contains("frm-has-independent-fields")?t.querySelectorAll(".frm-independent-slider-field"):e.getSliderGroupItems(t)).forEach(function(t){var i=t.querySelector(".frm-slider"),a=t.querySelector('.frm-slider-value input[type="text"]'),o=r.getSliderIndex(t);i&&-1!==o&&(r.setRangeValue(i,o,n),e.refreshRange(i,t,n)),a&&(a.value=n)})}},{key:"updateOnUnitChange",value:function(t,n,r,i){var a=this,o=t.querySelector("select");o&&o.addEventListener("change",function(o){var s=o.target.value.toLowerCase();if(""===s)return t.classList.add("frm-disabled","frm-empty"),n.disabled=!0,r.value="",r.disabled=!0,e.updateLabelFocusTarget(r,!1),e.refreshRange(n,t,a.getRangeValue(n,i)),a.options[i].fullValue=a.updateValue(t,""),void a.triggerValueChange(i);if("auto"===s)return t.classList.add("frm-disabled"),n.disabled=!0,r.value="",r.disabled=!0,e.updateLabelFocusTarget(r,!1),n.setAttribute("aria-valuetext",s),a.options[i].fullValue=a.updateValue(t,"auto"),void a.triggerValueChange(i);t.classList.remove("frm-disabled","frm-empty"),n.disabled=!1,r.disabled=!1,e.updateLabelFocusTarget(r,!0),a.options[i].steps||(n.max=a.getMaxValue(s,i,a.getRangeValue(n,i)));var l=a.getRangeValue(n,i);r.value=l,a.options[i].fullValue=l+s,a.updateValue(t,a.options[i].fullValue),e.refreshRange(n,t,l),a.triggerValueChange(i)})}},{key:"getSliderIndex",value:function(e){var t=this.options.find(function(t){return t.element===e});return t?t.index:-1}},{key:"getMaxValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="%"===e?100:this.options[t].maxValue;return null!==n&&n>r?Math.ceil(n):r}},{key:"triggerValueChange",value:function(e){var t=this;if(null===this.options[e].dependentUpdater){var n=this.sliderElements[e].classList.contains("frm-has-multiple-values")?this.sliderElements[e].closest(".frm-style-component").querySelector('input[type="hidden"]'):this.sliderElements[e].querySelectorAll('.frm-slider-value input[type="hidden"]');n instanceof NodeList?n.forEach(function(n){n.dispatchEvent(t.eventsChange[e])}):n.dispatchEvent(this.eventsChange[e])}else this.options[e].dependentUpdater.updateAllDependentElements(this.options[e].fullValue)}},{key:"updateValue",value:function(t,n){var r=this;if(t.classList.contains("frm-base-font-size")){var i=document.querySelector('input[name="frm_style_setting[post_content][use_base_font_size]"]');i&&(i.value="true")}if(t.classList.contains("frm-has-multiple-values")){var a=t.closest(".frm-style-component").querySelector('input[type="hidden"]'),o=a.value.split(" "),s=t.dataset.type;switch(o[2]||(o[2]="0px"),o[3]||(o[3]="0px"),s){case"vertical":o[0]=n,o[2]=n;break;case"horizontal":o[1]=n,o[3]=n;break;case"top":o[0]=n;break;case"bottom":o[2]=n;break;case"left":o[3]=n;break;case"right":o[1]=n}var l=o.join(" ");return a.value=l,e.getSliderGroupItems(t).forEach(function(e){var t=r.getUnitMeasureFromValue(n);e.querySelector('.frm-slider-value input[type="text"]').value=parseFloat(n),e.querySelector("select").value=t}),l}if(t.classList.contains("frm-has-independent-fields")){var c=t.querySelectorAll('.frm-slider-value input[type="hidden"]'),u=t.querySelectorAll('.frm-slider-value input[type="text"]');return c.forEach(function(e,t){e.value=n,u[t+1].value=parseFloat(n)}),n}return t.querySelector('.frm-slider-value input[type="hidden"]').value=n,n}},{key:"getUnitMeasureFromValue",value:function(e){return $.find(function(t){return e.includes(t)})||""}}],i=[{key:"getUnit",value:function(e){var t=e.querySelector("select");return t?t.value:""}},{key:"getClosestStepIndex",value:function(e,t){for(var n=0,r=Math.abs(e-t[0]),i=1;i0?"0.".concat("0".repeat(n-1),"1"):"1"}},{key:"refreshRange",value:function(t,n,r){e.updateFill(t);var i=e.getUnit(n);if("auto"!==i)if(""!==i){var a=$.includes(i)?i:"";t.setAttribute("aria-valuetext","".concat(r).concat(a))}else t.setAttribute("aria-valuetext",W("Not set","formidable"));else t.setAttribute("aria-valuetext",i)}},{key:"updateFill",value:function(e){var t=parseFloat(e.min)||0,n=parseFloat(e.max),r=parseFloat(e.value),i=n-t,a=i>0?Math.min(Math.max((r-t)/i,0),1):0;e.style.setProperty("--frm-fill",a)}},{key:"expandSliderGroup",value:function(n){var r=n.querySelector(".frmsvg");if(void 0!==n.dataset.displaySliders&&null!==r){var i=e.getSliderGroupItems(n);r.addEventListener("click",function(){i.forEach(function(e){e.classList.toggle(t)})})}}},{key:"updateLabelFocusTarget",value:function(e,t){if(e.id){var n=document.querySelector('[data-slider-label-for="'.concat(e.id,'"]'));n&&(t?n.setAttribute("for",e.id):n.removeAttribute("for"))}}},{key:"maybeDisableUnitDropdown",value:function(e){var t=e.querySelector("select");t&&1>=Array.from(t.options).filter(function(e){return""!==e.value}).length&&(t.classList.add("frm-single-unit"),t.addEventListener("mousedown",function(e){return e.preventDefault()}))}},{key:"getSliderGroupItems",value:function(e){if(Z.has(e))return Z.get(e);if(void 0===e.dataset.displaySliders)return[];var t=e.closest(".frm-style-component");if(!t)return[];var n=e.dataset.displaySliders.split(",").map(function(e){return'.frm-slider-component[data-type="'.concat(e,'"]')}).join(", "),r=t.querySelectorAll(n);return Z.set(e,r),r}}],r&&K(n.prototype,r),i&&K(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}();function Q(e){if(J){J.dataset.activeFilter=e,J.querySelectorAll("[data-group]").forEach(function(t){"all"===e&&"my_actions"===t.dataset.group?t.classList.add("frm_hidden"):t.classList.toggle("frm_hidden","all"!==e&&t.dataset.group!==e)});var t=J.querySelector('[data-group="my_actions"]');t&&t.querySelectorAll("[data-section] .frm-group-heading").forEach(function(t){t.style.display="all"===e?"none":""})}}var Y=null;function ee(){Y&&(Y.disconnect(),Y=null)}function te(e){return te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(e)}function ne(e,t){for(var n=0;n li"),this.slideTrackLine=this.wrapper.querySelector(".frm-tabs-active-underline"),this.slideTrack=this.wrapper.querySelector(".frm-tabs-slide-track"),this.slides=this.wrapper.querySelectorAll(".frm-tabs-slide-track > div"),this.isRTL="rtl"===document.documentElement.dir||"rtl"===document.body.dir,this.resizeObserver=null,this.filterTarget=function(e){var t;J=null;var n=null==e||null===(t=e.dataset)||void 0===t?void 0:t.filterTarget;if(n){var r=document.querySelector(n);(function(e){return e.querySelectorAll("[data-group]").length>0})(r)&&(J=r)}return J}(this.wrapper),this.init()))},(t=[{key:"init",value:function(){var e,t=this,n=!this.filterTarget&&(null===this.slideTrack||0===this.slides.length);if(null!==this.wrapper&&this.navs.length&&null!==this.slideTrackLine&&!n){var r=null===(e=this.navs[0])||void 0===e?void 0:e.parentElement;r&&(r.setAttribute("role",this.filterTarget?"group":"tablist"),r.hasAttribute("aria-label")||r.hasAttribute("aria-labelledby")||r.setAttribute("aria-label",this.filterTarget?W("Filters","formidable"):W("Sections","formidable")));var i,a=Array.from(this.navs).findIndex(function(e){return e.classList.contains("frm-active")}),o=Math.max(a,0),s=this.wrapper.getRootNode();do{i="frm-tablist-".concat(++ie)}while(s.getElementById("".concat(i,"-tab-0"))||s.getElementById("".concat(i,"-panel-0")));this.navs.forEach(function(e,n){var r=n===o;if(e.classList.toggle("frm-active",r),e.setAttribute("tabindex",t.filterTarget||r?"0":"-1"),e.setAttribute("role",t.filterTarget?"button":"tab"),e.setAttribute(t.filterTarget?"aria-pressed":"aria-selected",String(r)),e.querySelectorAll("a").forEach(function(e){return e.setAttribute("tabindex","-1")}),!t.filterTarget&&t.slides[n]){var a=t.slides[n];e.id=e.id||"".concat(i,"-tab-").concat(n),a.id=a.id||"".concat(i,"-panel-").concat(n),e.setAttribute("aria-controls",a.id),a.setAttribute("role","tabpanel"),a.setAttribute("aria-labelledby",e.id),a.setAttribute("tabindex","0")}e.addEventListener("click",function(e){return t.onNavClick(e,n)}),e.addEventListener("keydown",function(e){return t.onNavKeydown(e,n)}),e.classList.contains("frm-active")&&(t.initSlideTrackUnderline(e),t.filterTarget&&Q(e.dataset.filter||"all"))}),this.filterTarget||this.changeSlide(o),this.slideTrackLine.style.display="block",this.setupScrollbarObserver(),this.setupVisibilityObserver(),window.addEventListener("beforeunload",this.cleanupObservers)}}},{key:"onNavClick",value:function(e,t){var n=this,r=e.currentTarget;if(e.preventDefault(),this.removeActiveClassnameFromNavs(),r.classList.add("frm-active"),this.navs.forEach(function(e){e.setAttribute(n.filterTarget?"aria-pressed":"aria-selected",String(e===r)),n.filterTarget||e.setAttribute("tabindex",e===r?"0":"-1")}),this.initSlideTrackUnderline(r),this.filterTarget)Q(r.dataset.filter||"all");else{this.changeSlide(t),this.keepFocusOnTab(r);var i,a,o=r.querySelector("a");o&&"frm_insert_fields_tab"===o.id&&!o.closest("#frm_adv_info")&&(null===(i=window.frmAdminBuild)||void 0===i||null===(a=i.clearSettingsBox)||void 0===a||a.call(i))}}},{key:"onNavKeydown",value:function(e,t){if("Enter"===e.key||" "===e.key)return e.preventDefault(),void this.onNavClick(e,t);if(!this.filterTarget){var n=this.navs.length-1,r={ArrowLeft:(t+(this.isRTL?1:n))%this.navs.length,ArrowRight:(t+(this.isRTL?n:1))%this.navs.length,Home:0,End:n}[e.key];void 0!==r&&(e.preventDefault(),this.navs.forEach(function(e,t){return e.setAttribute("tabindex",t===r?"0":"-1")}),this.navs[r].focus())}}},{key:"keepFocusOnTab",value:function(e){var t,n=null!==(t=this.wrapper.getRootNode().activeElement)&&void 0!==t?t:document.activeElement,r=!n||n===document.body||null!==n.closest("[inert]"),i=Array.from(this.navs).some(function(e){return e.contains(n)});n!==e&&(r||i)&&e.focus({preventScroll:!0})}},{key:"initSlideTrackUnderline",value:function(e){var t=void 0!==e?e:this.navs.filter(function(e){return e.classList.contains("frm-active")});this.positionUnderlineIndicator(t)}},{key:"setupVisibilityObserver",value:function(){var e=this;!function(e,t){"IntersectionObserver"in window&&e instanceof Element&&"function"==typeof t&&(Y=new IntersectionObserver(function(e){e[0].isIntersecting&&(t(),ee())})).observe(e)}(this.wrapper,function(){var t=e.wrapper.querySelector(".frm-tabs-navs ul > li.frm-active");t&&e.positionUnderlineIndicator(t)})}},{key:"setupScrollbarObserver",value:function(){var e=this,t=document.querySelector(".frm-scrollbar-wrapper, .styling_settings")||document.body;t&&"ResizeObserver"in window&&(this.resizeObserver=new ResizeObserver(function(){var t=e.wrapper.querySelector(".frm-tabs-navs ul > li.frm-active");t&&e.positionUnderlineIndicator(t)}),this.resizeObserver.observe(t))}},{key:"cleanupObservers",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),ee()}},{key:"positionUnderlineIndicator",value:function(e){var t=this;requestAnimationFrame(function(){var n=t.isRTL?-(e.parentElement.offsetWidth-e.offsetLeft-e.offsetWidth):e.offsetLeft;t.slideTrackLine.style.transform="translateX(".concat(n,"px)"),t.slideTrackLine.style.width="".concat(e.clientWidth,"px")})}},{key:"changeSlide",value:function(e){this.removeActiveClassnameFromSlides(),this.slides.forEach(function(t,n){var r=n!==e;t.toggleAttribute("inert",r),t.setAttribute("aria-hidden",String(r))});var t=0==e?"0px":"calc( ( ".concat(100*e,"% + ").concat(parseInt(this.flexboxSlidesGap,10)*e,"px ) * ").concat(this.isRTL?1:-1," )");"0px"!==t?this.slideTrack.style.transform="translateX(".concat(t,")"):this.slideTrack.style.removeProperty("transform"),e in this.slides&&this.slides[e].classList.add("frm-active")}},{key:"removeActiveClassnameFromSlides",value:function(){this.slides.forEach(function(e){return e.classList.remove("frm-active")})}},{key:"removeActiveClassnameFromNavs",value:function(){this.navs.forEach(function(e){return e.classList.remove("frm-active")})}}])&&ne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function se(e,t){for(var n=0;n0))return e.style.paddingLeft="",e.style.paddingTop="",void(e.style.height="");var r=t.offsetHeight;if(Math.max(1,Math.ceil(r/36))>1){var i=function(e){if(!e.length)return 0;var t=0;return e.forEach(function(e){t+=e.offsetWidth}),(t+=4*(e.length-1))+4}(function(e){if(!e.length)return[];var t=Array.from(e),n=-1;t.forEach(function(e){var t=e.getBoundingClientRect().bottom;t>n&&(n=t)});return t.filter(function(e){var t=e.getBoundingClientRect();return Math.abs(t.bottom-n)<=2})}(n));e.style.height="".concat(r,"px"),e.style.paddingTop="".concat(r-36+4,"px"),e.style.paddingLeft=i?"".concat(i+8,"px"):""}else e.style.height="",e.style.paddingTop="",e.style.paddingLeft="".concat(t.offsetWidth-4,"px")}}function ke(e,t,n){e&&n&&t&&(n.innerHTML="",xe(e).forEach(function(e){return function(e,t){var n=ye({className:de,children:[ye({text:e,className:pe}),ye({className:ve,child:ge({href:"#frm_close_icon"})})]});t.append(n)}(e,n)}),Se(t,n),t.focus())}function we(e,t,n){if(!e||!t||!n)return!1;var r=xe(t.value);return r.includes(e)?(_e(n),!1):(r.push(e),Ae(t,r),_e(n),!0)}function Ee(e,t,n){if(e&&t&&n){var r=e.querySelector(".".concat(pe)).textContent;Ae(t,xe(t.value).filter(function(e){return e!==r})),e.remove(),n.focus()}}function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(e=e.trim())?e.split(/\s+/).filter(Boolean):[]}function Ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e&&(e.value=t.join(" "),jQuery(e).trigger("change"))}function _e(e){e&&(e.value="",e.focus())}function Le(e){var n=(e?document.getElementById("frm-single-settings-".concat(e)):document.body).querySelectorAll(".".concat("frm-token-input-field"));if(n.length){var r=new Set;n.forEach(function(e){r.has(e.id)||(function(e){var n=function(e){var n=e.closest(".".concat("frm-with-right-icon"));if(n.querySelector(".".concat(fe)))return null;n.classList.add(ue);var r=ye({className:fe});n.insertBefore(r,n.firstChild);var i=be("input",{className:he,id:"".concat(e.id,"-proxy-input")});return i.type="text",e.parentNode.insertBefore(i,e.nextSibling),e.classList.add(t),n}(e);if(n){var r=n.querySelector(".".concat(he)),i=n.querySelector(".".concat(fe));ke(e.value,r,i),function(e,t,n){jQuery(e).on("change",function(){return ke(e.value,t,n)}),t.addEventListener("keydown",function(r){return function(e,t,n,r){var i=e.key,a=n.value.trim();switch(i){case"Backspace":a||(e.preventDefault(),Ee(r.querySelector(".".concat(de,":last-child")),t,n));break;case" ":case",":case"Enter":e.preventDefault(),we(a,t,n)}Se(n,r)}(r,e,t,n)}),t.addEventListener("blur",function(){return we(t.value.trim(),e,t)}),n.addEventListener("click",function(n){return function(e,t,n){var r=e.target.closest(".".concat(ve));if(r){var i=r.closest(".".concat(de));if(i){var a=i.parentElement;Ee(i,t,n),Se(n,a)}}}(n,e,t)})}(e,r,i)}}(e),r.add(e.id))})}}var Fe="frm-toggle-group",Te="frm_toggle_block",qe="data-group-name";function Oe(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).querySelectorAll(".".concat(Fe));e.length&&e.forEach(function(e){var t=e.querySelector("[".concat(qe,"]:checked"));t&&Re(t,e)})}function Ce(e){var t=e.target,n=t.closest(".".concat(Fe));n&&Re(t,n)}function Re(e,n){var i,a=(null===(i=n.closest(".".concat("frm-single-settings")))||void 0===i?void 0:i.dataset.fid)||n.dataset.fid,o=e.checked,s=e.getAttribute("data-show");s&&document.querySelectorAll(je(s,a)).forEach(function(e){return e.classList.toggle(t,!o)});var l=e.getAttribute("data-disable");l&&document.querySelectorAll(je(l,a)).forEach(function(e){e.classList.toggle(r,o),e.querySelectorAll("input, select, textarea").forEach(function(e){return e.disabled=o}),e.querySelectorAll(".frm-show-inline-modal[tabindex]").forEach(function(e){return e.tabIndex=o?-1:0})});var c=e.getAttribute("data-enable");c&&document.querySelectorAll(je(c,a)).forEach(function(e){return e.classList.toggle(r,!o)});var u=e.closest(".".concat(Te));Array.from(n.querySelectorAll(".".concat(Te))).filter(function(e){return e!==u}).forEach(function(e){e.classList.toggle(r,o);var t=e.querySelector(".frm_toggle");t.tabIndex=o?-1:0,t.setAttribute("aria-disabled",o)})}function je(e,t){return e.replace(/{id}/g,t)}function Ie(e){var t=e.target.closest(".frm-unit-input"),n=t.querySelector(".frm-unit-input-control"),r=t.querySelector("select").value;e.target.matches("select")&&(n.type=""===r?"text":"number");var i=n.value.trim(),a=t.querySelector('input[type="hidden"]');a.value=""!==i?i+r:"",a.dispatchEvent(new Event("input",{bubbles:!0}))}var Ve,Pe=function(e){var t=e.querySelector('li[data-filter="all"]');t.classList.contains("frm-active")||t.click()},De=function(e){e.querySelectorAll("[data-group]").forEach(function(e){var t=e.querySelector(".frm-group-heading");if(t){var n=e.querySelectorAll(".frm-action"),r=n.length>0&&Array.from(n).every(function(e){return e.classList.contains("frm_hidden")});t.classList.toggle("frm-force-hidden",r)}})};Ve=function(){var e;new p,new H,new ce,null===(e=document.getElementById("frm-form-add-field"))||void 0===e||e.addEventListener("click",function(e){var t;e.preventDefault(),null===(t=document.querySelector(".frm-settings-panel .frm-tabs-navs ul > li:first-child"))||void 0===t||t.click()}),document.addEventListener("frm_added_field",function(e){return Le(e.frmField.dataset.fid)}),wp.hooks.addAction(i,"formidable-token-input",function(e,t){Le(t.id.replace("frm-single-settings-","")),function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).querySelectorAll(".".concat(ue)).forEach(function(e){return Se(e.querySelector(".".concat(he)),e.querySelector(".".concat(fe)))})}(t)}),Oe(),l("change",".".concat(Fe," [").concat(qe,"]"),Ce),wp.hooks.addAction("frm_field_settings_loaded","formidable-toggle-group",Oe),wp.hooks.addAction("frmShowedFieldSettings","formidable-toggle-group",function(e,t){return Oe(t)}),document.addEventListener("frm_added_field",function(e){return Oe(e.frmField)}),l("input",".frm-unit-input .frm-unit-input-control",Ie),l("change",".frm-unit-input .frm-unit-input-control",Ie),l("change",".frm-unit-input select",Ie),function(){var e=document.getElementById("frm_email_addon_menu");if(e){var t=e.querySelector(".frm-auto-search");if(t){var n=document.getElementById("frm-actions-filter-content"),r=function(){return function(e,t,n){e.value.trim()&&Pe(t),n&&requestAnimationFrame(function(){return De(n)})}(t,e,n)};t.addEventListener("input",r),t.addEventListener("search",r)}}}()},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",Ve):Ve())})()})(); \ No newline at end of file diff --git a/js/formidable-web-components.js b/js/formidable-web-components.js index 179cc9b577..49da188181 100644 --- a/js/formidable-web-components.js +++ b/js/formidable-web-components.js @@ -1 +1 @@ -(()=>{var e={8616:e=>{e.exports=function(e,t){var r,n,i=0;function a(){var a,o,s=r,u=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(o=0;o{var n;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(e){return function(e,t){var r,n,o,s,u,l,p,c,f,d=1,m=e.length,b="";for(n=0;n=0),s.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,s.width?parseInt(s.width):0);break;case"e":r=s.precision?parseFloat(r).toExponential(s.precision):parseFloat(r).toExponential();break;case"f":r=s.precision?parseFloat(r).toFixed(s.precision):parseFloat(r);break;case"g":r=s.precision?String(Number(r.toPrecision(s.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=s.precision?r.substring(0,s.precision):r;break;case"t":r=String(!!r),r=s.precision?r.substring(0,s.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=s.precision?r.substring(0,s.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=s.precision?r.substring(0,s.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?b+=r:(!i.number.test(s.type)||c&&!s.sign?f="":(f=c?"+":"-",r=r.toString().replace(i.sign,"")),l=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",p=s.width-(f+r).length,u=s.width&&p>0?l.repeat(p):"",b+=s.align?f+r+u:"0"===l?f+u+r:u+f+r)}return b}(function(e){if(s[e])return s[e];for(var t,r=e,n=[],a=0;r;){if(null!==(t=i.text.exec(r)))n.push(t[0]);else if(null!==(t=i.modulo.exec(r)))n.push("%");else{if(null===(t=i.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){a|=1;var o=[],u=t[2],l=[];if(null===(l=i.key.exec(u)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(l[1]);""!==(u=u.substring(l[0].length));)if(null!==(l=i.key_access.exec(u)))o.push(l[1]);else{if(null===(l=i.index_access.exec(u)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(l[1])}t[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}r=r.substring(t[0].length)}return s[e]=n}(e),arguments)}function o(e,t){return a.apply(null,[e].concat(t||[]))}var s=Object.create(null);"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=o,void 0===(n=function(){return{sprintf:a,vsprintf:o}}.call(t,r,t,e))||(e.exports=n))}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e,t,n,i,a=r(8616),o=r.n(a);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}r(7604),o()(console.error),e={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},t=["(","?"],n={")":["("],":":["?","?:"]},i=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var l={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,r){if(e)throw t;return r}};var p={contextDelimiter:"",onMissingKey:null};function c(e,t){var r;for(r in this.data=e,this.pluralForms={},this.options={},p)this.options[r]=void 0!==t&&r in t?t[r]:p[r]}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t=0||e[u]3&&void 0!==arguments[3]?arguments[3]:10,o=e[t];if(y(r)&&h(n))if("function"==typeof i)if("number"==typeof a){var s={callback:i,priority:a,namespace:n};if(o[r]){var u,l=o[r].handlers;for(u=l.length;u>0&&!(a>=l[u-1].priority);u--);u===l.length?l[u]=s:l.splice(u,0,s),o.__current.forEach(function(e){e.name===r&&e.currentIndex>=u&&e.currentIndex++})}else o[r]={handlers:[s],runs:0};"hookAdded"!==r&&e.doAction("hookAdded",r,n,i,a)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},g=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(n,i){var a=e[t];if(y(n)&&(r||h(i))){if(!a[n])return 0;var o=0;if(r)o=a[n].handlers.length,a[n]={runs:a[n].runs,handlers:[]};else for(var s=a[n].handlers,u=function(e){s[e].namespace===i&&(s.splice(e,1),o++,a.__current.forEach(function(t){t.name===n&&t.currentIndex>=e&&t.currentIndex--}))},l=s.length-1;l>=0;l--)u(l);return"hookRemoved"!==n&&e.doAction("hookRemoved",n,i),o}}},x=function(e,t){return function(r,n){var i=e[t];return void 0!==n?r in i&&i[r].handlers.some(function(e){return e.namespace===n}):r in i}},w=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(n){var i=e[t];i[n]||(i[n]={handlers:[],runs:0}),i[n].runs++;for(var a=i[n].handlers,o=arguments.length,s=new Array(o>1?o-1:0),u=1;u1&&void 0!==arguments[1]?arguments[1]:"default";n.data[t]=d(d(d({},m),n.data[t]),e),n.data[t][""]=d(d({},m[""]),n.data[t][""])},s=function(e,t){o(e,t),a()},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return n.data[e]||o(void 0,e),n.dcnpgettext(e,t,r,i,a)},l=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},p=function(e,t,n){var i=u(n,t,e);return r?(i=r.applyFilters("i18n.gettext_with_context",i,e,t,n),r.applyFilters("i18n.gettext_with_context_"+l(n),i,e,t,n)):i};if(r){var f=function(e){b.test(e)&&a()};r.addAction("hookAdded","core/i18n",f),r.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return n.data[e]},setLocaleData:s,resetLocaleData:function(e,t){n.data={},n.pluralForms={},s(e,t)},subscribe:function(e){return i.add(e),function(){return i.delete(e)}},__:function(e,t){var n=u(t,void 0,e);return r?(n=r.applyFilters("i18n.gettext",n,e,t),r.applyFilters("i18n.gettext_"+l(t),n,e,t)):n},_x:p,_n:function(e,t,n,i){var a=u(i,void 0,e,t,n);return r?(a=r.applyFilters("i18n.ngettext",a,e,t,n,i),r.applyFilters("i18n.ngettext_"+l(i),a,e,t,n,i)):a},_nx:function(e,t,n,i,a){var o=u(a,i,e,t,n);return r?(o=r.applyFilters("i18n.ngettext_with_context",o,e,t,n,i,a),r.applyFilters("i18n.ngettext_with_context_"+l(a),o,e,t,n,i,a)):o},isRTL:function(){return"rtl"===p("ltr","text direction")},hasTranslation:function(e,t,i){var a,o,s=t?t+""+e:e,u=!(null===(a=n.data)||void 0===a||null===(o=a[null!=i?i:"default"])||void 0===o||!o[s]);return r&&(u=r.applyFilters("i18n.has_translation",u,e,t,i),u=r.applyFilters("i18n.has_translation_"+l(i),u,e,t,i)),u}}}(0,0,I));O.getLocaleData.bind(O),O.setLocaleData.bind(O),O.resetLocaleData.bind(O),O.subscribe.bind(O);var V,j=O.__.bind(O);function _(e){if(V){V.dataset.activeFilter=e,V.querySelectorAll("[data-group]").forEach(function(t){"all"===e&&"my_actions"===t.dataset.group?t.classList.add("frm_hidden"):t.classList.toggle("frm_hidden","all"!==e&&t.dataset.group!==e)});var t=V.querySelector('[data-group="my_actions"]');t&&t.querySelectorAll("[data-section] .frm-group-heading").forEach(function(t){t.style.display="all"===e?"none":""})}}O._x.bind(O),O._n.bind(O),O._nx.bind(O),O.isRTL.bind(O),O.hasTranslation.bind(O);var T=null;function L(){T&&(T.disconnect(),T=null)}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function P(e,t){for(var r=0;r li"),this.slideTrackLine=this.wrapper.querySelector(".frm-tabs-active-underline"),this.slideTrack=this.wrapper.querySelector(".frm-tabs-slide-track"),this.slides=this.wrapper.querySelectorAll(".frm-tabs-slide-track > div"),this.isRTL="rtl"===document.documentElement.dir||"rtl"===document.body.dir,this.resizeObserver=null,this.filterTarget=function(e){var t;V=null;var r=null==e||null===(t=e.dataset)||void 0===t?void 0:t.filterTarget;if(r){var n=document.querySelector(r);(function(e){return e.querySelectorAll("[data-group]").length>0})(n)&&(V=n)}return V}(this.wrapper),this.init()))},(t=[{key:"init",value:function(){var e,t=this,r=!this.filterTarget&&(null===this.slideTrack||0===this.slides.length);if(null!==this.wrapper&&this.navs.length&&null!==this.slideTrackLine&&!r){var n=null===(e=this.navs[0])||void 0===e?void 0:e.parentElement;n&&(n.setAttribute("role",this.filterTarget?"group":"tablist"),n.hasAttribute("aria-label")||n.hasAttribute("aria-labelledby")||n.setAttribute("aria-label",this.filterTarget?j("Filters","formidable"):j("Sections","formidable")));var i,a=Array.from(this.navs).findIndex(function(e){return e.classList.contains("frm-active")}),o=Math.max(a,0),s=this.wrapper.getRootNode();do{i="frm-tablist-".concat(++z)}while(s.getElementById("".concat(i,"-tab-0"))||s.getElementById("".concat(i,"-panel-0")));this.navs.forEach(function(e,r){var n=r===o;if(e.classList.toggle("frm-active",n),e.setAttribute("tabindex",t.filterTarget||n?"0":"-1"),e.setAttribute("role",t.filterTarget?"button":"tab"),e.setAttribute(t.filterTarget?"aria-pressed":"aria-selected",String(n)),e.querySelectorAll("a").forEach(function(e){return e.setAttribute("tabindex","-1")}),!t.filterTarget&&t.slides[r]){var a=t.slides[r];e.id=e.id||"".concat(i,"-tab-").concat(r),a.id=a.id||"".concat(i,"-panel-").concat(r),e.setAttribute("aria-controls",a.id),a.setAttribute("role","tabpanel"),a.setAttribute("aria-labelledby",e.id),a.setAttribute("tabindex","0")}e.addEventListener("click",function(e){return t.onNavClick(e,r)}),e.addEventListener("keydown",function(e){return t.onNavKeydown(e,r)}),e.classList.contains("frm-active")&&(t.initSlideTrackUnderline(e),t.filterTarget&&_(e.dataset.filter||"all"))}),this.filterTarget||this.changeSlide(o),this.slideTrackLine.style.display="block",this.setupScrollbarObserver(),this.setupVisibilityObserver(),window.addEventListener("beforeunload",this.cleanupObservers)}}},{key:"onNavClick",value:function(e,t){var r=this,n=e.currentTarget;if(e.preventDefault(),this.removeActiveClassnameFromNavs(),n.classList.add("frm-active"),this.navs.forEach(function(e){e.setAttribute(r.filterTarget?"aria-pressed":"aria-selected",String(e===n)),r.filterTarget||e.setAttribute("tabindex",e===n?"0":"-1")}),this.initSlideTrackUnderline(n),this.filterTarget)_(n.dataset.filter||"all");else{this.changeSlide(t),this.keepFocusOnTab(n);var i,a,o=n.querySelector("a");o&&"frm_insert_fields_tab"===o.id&&!o.closest("#frm_adv_info")&&(null===(i=window.frmAdminBuild)||void 0===i||null===(a=i.clearSettingsBox)||void 0===a||a.call(i))}}},{key:"onNavKeydown",value:function(e,t){if("Enter"===e.key||" "===e.key)return e.preventDefault(),void this.onNavClick(e,t);if(!this.filterTarget){var r=this.navs.length-1,n={ArrowLeft:(t+(this.isRTL?1:r))%this.navs.length,ArrowRight:(t+(this.isRTL?r:1))%this.navs.length,Home:0,End:r}[e.key];void 0!==n&&(e.preventDefault(),this.navs.forEach(function(e,t){return e.setAttribute("tabindex",t===n?"0":"-1")}),this.navs[n].focus())}}},{key:"keepFocusOnTab",value:function(e){var t,r=null!==(t=this.wrapper.getRootNode().activeElement)&&void 0!==t?t:document.activeElement,n=!r||r===document.body||null!==r.closest("[inert]"),i=Array.from(this.navs).some(function(e){return e.contains(r)});r!==e&&(n||i)&&e.focus({preventScroll:!0})}},{key:"initSlideTrackUnderline",value:function(e){var t=void 0!==e?e:this.navs.filter(function(e){return e.classList.contains("frm-active")});this.positionUnderlineIndicator(t)}},{key:"setupVisibilityObserver",value:function(){var e,t,r=this;e=this.wrapper,t=function(){var e=r.wrapper.querySelector(".frm-tabs-navs ul > li.frm-active");e&&r.positionUnderlineIndicator(e)},"IntersectionObserver"in window&&e instanceof Element&&"function"==typeof t&&(T=new IntersectionObserver(function(e){e[0].isIntersecting&&(t(),L())})).observe(e)}},{key:"setupScrollbarObserver",value:function(){var e=this,t=document.querySelector(".frm-scrollbar-wrapper, .styling_settings")||document.body;t&&"ResizeObserver"in window&&(this.resizeObserver=new ResizeObserver(function(){var t=e.wrapper.querySelector(".frm-tabs-navs ul > li.frm-active");t&&e.positionUnderlineIndicator(t)}),this.resizeObserver.observe(t))}},{key:"cleanupObservers",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),L()}},{key:"positionUnderlineIndicator",value:function(e){var t=this;requestAnimationFrame(function(){var r=t.isRTL?-(e.parentElement.offsetWidth-e.offsetLeft-e.offsetWidth):e.offsetLeft;t.slideTrackLine.style.transform="translateX(".concat(r,"px)"),t.slideTrackLine.style.width="".concat(e.clientWidth,"px")})}},{key:"changeSlide",value:function(e){this.removeActiveClassnameFromSlides(),this.slides.forEach(function(t,r){var n=r!==e;t.toggleAttribute("inert",n),t.setAttribute("aria-hidden",String(n))});var t=0==e?"0px":"calc( ( ".concat(100*e,"% + ").concat(parseInt(this.flexboxSlidesGap,10)*e,"px ) * ").concat(this.isRTL?1:-1," )");"0px"!==t?this.slideTrack.style.transform="translateX(".concat(t,")"):this.slideTrack.style.removeProperty("transform"),e in this.slides&&this.slides[e].classList.add("frm-active")}},{key:"removeActiveClassnameFromSlides",value:function(){this.slides.forEach(function(e){return e.classList.remove("frm-active")})}},{key:"removeActiveClassnameFromNavs",value:function(){this.navs.forEach(function(e){return e.classList.remove("frm-active")})}}])&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&(r.disconnect(),requestAnimationFrame(function(){return t()}))})},{threshold:.1});(e.useShadowDom()?e.shadowRoot.host:e)&&r.observe(e)}else requestAnimationFrame(function(){return t()})})}},{key:"frmLabel",set:function(e){this._labelText=e}},{key:"afterViewInit",value:function(e){}},{key:"initView",value:function(){}},{key:"connectedCallback",value:function(){this.initOptions(),this.render()}},{key:"disconnectedCallback",value:function(){}}],n&&D(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(B(HTMLElement));function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function $(e,t){for(var r=0;rspan.frm-component-label{font-weight:500;font-size:var(--text-sm) !important;color:var(--grey-900) !important;width:40% !important;display:block !important;margin-right:12px !important}\n",e.attachInternals(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}(t,e),r=t,(n=[{key:"initView",value:function(){var e=document.createElement("div");return e.classList.add("frm-colorpicker-component","frm-colorpicker"),e.append(this.getInput()),e}},{key:"getInput",value:function(){var e=this;return this.input.type="text",this.input.classList.add("hex"),null!==this.fieldName&&(this.input.name=this.fieldName),null!==se(de,this)&&(this.input.value=se(de,this)),null!==this.componentId&&(this.input.id=this.componentId),this.input.addEventListener("blur",function(t){return se(fe,e).call(e,t,null)}),this.input}},{key:"useShadowDom",value:function(){return!1}},{key:"afterViewInit",value:function(){var e=this;frmDom.colorPicker.init(this.input,{defaultColor:se(de,this),change:function(t){return se(fe,e).call(e,t,null)}})}},{key:"color",get:function(){return this.input.value},set:function(e){oe(de,this,e),this.input.value=e,this.input.dispatchEvent(new Event("frm:color-sync"))}},{key:"onChange",set:function(e){if("function"!=typeof e)throw new TypeError("Expected a function, but received ".concat(Y(e)));oe(fe,this,e)}}])&&ee(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(H);le=me,ce=!0,(pe=ie(pe="formAssociated"))in le?Object.defineProperty(le,pe,{value:ce,enumerable:!0,configurable:!0,writable:!0}):le[pe]=ce;var be=window.frmColorpickerProComponent?window.frmColorpickerProComponent(me):me,he=window.frmGlobal;function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function ve(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.loadedByWebComponent=t.length>0,this.sliderElements=t.length>0?t:document.querySelectorAll(".frm-slider-component"),this.settings=r,0!==this.sliderElements.length&&(this.eventsChange=[],this.initOptions(),this.init())}return function(e,t,r){return t&&ke(e.prototype,t),r&&ke(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"initOptions",value:function(){var e=this;this.options=[],this.sliderElements.forEach(function(t,r){var n=t.classList.contains("frm-has-multiple-values")?t.closest(".frm-style-component"):t,i=e.settings.steps||(t.dataset.steps?JSON.parse(t.dataset.steps):null);e.options.push({maxValue:parseInt(t.dataset.maxValue,10),element:t,index:r,steps:i,dependentUpdater:n.classList.contains("frm-style-dependent-updater-component")?new xe(n):null})})}},{key:"init",value:function(){this.initListeners(),this.initFill()}},{key:"initListeners",value:function(){var t=this;this.sliderElements.forEach(function(r,n){t.eventsChange[n]=new Event("change",{bubbles:!0,cancelable:!0});var i=r.querySelector(".frm-slider"),a=r.querySelector('.frm-slider-value input[type="text"]');if(i&&a){t.initSteps(i,n),i.addEventListener("input",function(){var o=t.getRangeValue(i,n);a.value=o,e.refreshRange(i,r,o),t.syncGroupSliders(r,o),t.options[n].fullValue=t.updateValue(r,o+e.getUnit(r)),t.triggerValueChange(n)}),i.addEventListener("change",function(){var a=t.getRangeValue(i,n);t.options[n].fullValue=t.updateValue(r,a+e.getUnit(r)),t.triggerValueChange(n)});var o=function(o){var s=e.getUnit(r),u=parseFloat(o.target.value),l=t.options[n].steps,p=l&&l.length>0?l.map(Number).includes(u):u>=parseFloat(i.min||0)&&parseFloat(i.max)>=u;!isNaN(u)&&p?(t.setRangeValue(i,n,u),e.refreshRange(i,r,u),t.options[n].fullValue=t.updateValue(r,u+s),t.triggerValueChange(n)):"change"===o.type&&(a.value=t.getRangeValue(i,n))};a.addEventListener("input",o),a.addEventListener("change",o),e.expandSliderGroup(r),t.updateOnUnitChange(r,i,a,n),e.maybeDisableUnitDropdown(r)}})}},{key:"initFill",value:function(){var t=this;this.sliderElements.forEach(function(r,n){var i=r.querySelector(".frm-slider");if(i){var a=t.getRangeValue(i,n);t.options[n].fullValue=a+e.getUnit(r),e.refreshRange(i,r,a)}})}},{key:"initSteps",value:function(t,r){var n=this.options[r].steps;if(n&&0!==n.length){var i=parseFloat(t.value);t.min="0",t.max=String(n.length-1),t.step="1",t.value=String(e.getClosestStepIndex(i,n))}}},{key:"getRangeValue",value:function(e,t){var r=this.options[t].steps;return r&&r.length>0?r[parseInt(e.value,10)]:parseFloat(e.value)}},{key:"setRangeValue",value:function(t,r,n){var i=this.options[r].steps;i&&i.length>0?t.value=String(e.getClosestStepIndex(parseFloat(n),i)):(e.applyStep(t,n),t.value=n)}},{key:"syncGroupSliders",value:function(t,r){var n=this;(t.classList.contains("frm-has-multiple-values")||t.classList.contains("frm-has-independent-fields"))&&(t.classList.contains("frm-has-independent-fields")?t.querySelectorAll(".frm-independent-slider-field"):e.getSliderGroupItems(t)).forEach(function(t){var i=t.querySelector(".frm-slider"),a=t.querySelector('.frm-slider-value input[type="text"]'),o=n.getSliderIndex(t);i&&-1!==o&&(n.setRangeValue(i,o,r),e.refreshRange(i,t,r)),a&&(a.value=r)})}},{key:"updateOnUnitChange",value:function(t,r,n,i){var a=this,o=t.querySelector("select");o&&o.addEventListener("change",function(o){var s=o.target.value.toLowerCase();if(""===s)return t.classList.add("frm-disabled","frm-empty"),r.disabled=!0,n.value="",n.disabled=!0,e.updateLabelFocusTarget(n,!1),e.refreshRange(r,t,a.getRangeValue(r,i)),a.options[i].fullValue=a.updateValue(t,""),void a.triggerValueChange(i);if("auto"===s)return t.classList.add("frm-disabled"),r.disabled=!0,n.value="",n.disabled=!0,e.updateLabelFocusTarget(n,!1),r.setAttribute("aria-valuetext",s),a.options[i].fullValue=a.updateValue(t,"auto"),void a.triggerValueChange(i);t.classList.remove("frm-disabled","frm-empty"),r.disabled=!1,n.disabled=!1,e.updateLabelFocusTarget(n,!0),a.options[i].steps||(r.max=a.getMaxValue(s,i,a.getRangeValue(r,i)));var u=a.getRangeValue(r,i);n.value=u,a.options[i].fullValue=u+s,a.updateValue(t,a.options[i].fullValue),e.refreshRange(r,t,u),a.triggerValueChange(i)})}},{key:"getSliderIndex",value:function(e){var t=this.options.find(function(t){return t.element===e});return t?t.index:-1}},{key:"getMaxValue",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n="%"===e?100:this.options[t].maxValue;return null!==r&&r>n?Math.ceil(r):n}},{key:"triggerValueChange",value:function(e){var t=this;if(null===this.options[e].dependentUpdater){var r=this.sliderElements[e].classList.contains("frm-has-multiple-values")?this.sliderElements[e].closest(".frm-style-component").querySelector('input[type="hidden"]'):this.sliderElements[e].querySelectorAll('.frm-slider-value input[type="hidden"]');r instanceof NodeList?r.forEach(function(r){r.dispatchEvent(t.eventsChange[e])}):r.dispatchEvent(this.eventsChange[e])}else this.options[e].dependentUpdater.updateAllDependentElements(this.options[e].fullValue)}},{key:"updateValue",value:function(t,r){var n=this;if(t.classList.contains("frm-base-font-size")){var i=document.querySelector('input[name="frm_style_setting[post_content][use_base_font_size]"]');i&&(i.value="true")}if(t.classList.contains("frm-has-multiple-values")){var a=t.closest(".frm-style-component").querySelector('input[type="hidden"]'),o=a.value.split(" "),s=t.dataset.type;switch(o[2]||(o[2]="0px"),o[3]||(o[3]="0px"),s){case"vertical":o[0]=r,o[2]=r;break;case"horizontal":o[1]=r,o[3]=r;break;case"top":o[0]=r;break;case"bottom":o[2]=r;break;case"left":o[3]=r;break;case"right":o[1]=r}var u=o.join(" ");return a.value=u,e.getSliderGroupItems(t).forEach(function(e){var t=n.getUnitMeasureFromValue(r);e.querySelector('.frm-slider-value input[type="text"]').value=parseFloat(r),e.querySelector("select").value=t}),u}if(t.classList.contains("frm-has-independent-fields")){var l=t.querySelectorAll('.frm-slider-value input[type="hidden"]'),p=t.querySelectorAll('.frm-slider-value input[type="text"]');return l.forEach(function(e,t){e.value=r,p[t+1].value=parseFloat(r)}),r}return t.querySelector('.frm-slider-value input[type="hidden"]').value=r,r}},{key:"getUnitMeasureFromValue",value:function(e){return Ee.find(function(t){return e.includes(t)})||""}}],[{key:"getUnit",value:function(e){var t=e.querySelector("select");return t?t.value:""}},{key:"getClosestStepIndex",value:function(e,t){for(var r=0,n=Math.abs(e-t[0]),i=1;i0?"0.".concat("0".repeat(r-1),"1"):"1"}},{key:"refreshRange",value:function(t,r,n){e.updateFill(t);var i=e.getUnit(r);if("auto"!==i)if(""!==i){var a=Ee.includes(i)?i:"";t.setAttribute("aria-valuetext","".concat(n).concat(a))}else t.setAttribute("aria-valuetext",j("Not set","formidable"));else t.setAttribute("aria-valuetext",i)}},{key:"updateFill",value:function(e){var t=parseFloat(e.min)||0,r=parseFloat(e.max),n=parseFloat(e.value),i=r-t,a=i>0?Math.min(Math.max((n-t)/i,0),1):0;e.style.setProperty("--frm-fill",a)}},{key:"expandSliderGroup",value:function(t){var r=t.querySelector(".frmsvg");if(void 0!==t.dataset.displaySliders&&null!==r){var n=e.getSliderGroupItems(t);r.addEventListener("click",function(){n.forEach(function(e){e.classList.toggle("frm_hidden")})})}}},{key:"updateLabelFocusTarget",value:function(e,t){if(e.id){var r=document.querySelector('[data-slider-label-for="'.concat(e.id,'"]'));r&&(t?r.setAttribute("for",e.id):r.removeAttribute("for"))}}},{key:"maybeDisableUnitDropdown",value:function(e){var t=e.querySelector("select");t&&1>=Array.from(t.options).filter(function(e){return""!==e.value}).length&&(t.classList.add("frm-single-unit"),t.addEventListener("mousedown",function(e){return e.preventDefault()}))}},{key:"getSliderGroupItems",value:function(e){if(Ie.has(e))return Ie.get(e);if(void 0===e.dataset.displaySliders)return[];var t=e.closest(".frm-style-component");if(!t)return[];var r=e.dataset.displaySliders.split(",").map(function(e){return'.frm-slider-component[data-type="'.concat(e,'"]')}).join(", "),n=t.querySelectorAll(r);return Ie.set(e,n),n}}])}();function Ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2],n=document.createElement("option");return n.value=e,n.textContent=t,n.selected=r,""===t&&n.setAttribute("aria-label",j("Not set","formidable")),n}},{key:"createSvgIcon",value:function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.classList.add("frmsvg");var r=document.createElementNS("http://www.w3.org/2000/svg","use");return r.setAttribute("href","#".concat(e)),t.append(r),t}}])}(H),Je={_:0};function Ze(e){return Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ze(e)}function Qe(e,t){for(var r=0;r\') no-repeat center center;background-size:20px}.frm-border-radius-component .frm-border-radius-container button.frm-active,.frm-border-radius-component .frm-border-radius-container button:hover{background-color:rgba(0,0,0,.05)}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper{width:100%;justify-content:space-between;flex-wrap:wrap}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper:not(.frm_hidden){display:flex}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper span{position:relative;display:block;overflow:hidden;width:calc(50% - 6px);height:36px;border-radius:var(--small-radius);border:1px solid var(--grey-300);margin-top:12px}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper span input{width:100%;height:100%;padding:0;font-size:var(--text-sm);color:#101828;padding:0 12px 0px 20px;box-sizing:border-box;border:none;text-align:right}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper span input:focus{outline:none}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper span:before{content:"";position:absolute;display:block;width:12px;height:12px;left:12px;top:0;bottom:0;right:auto;margin:auto;background:url(\'data:image/svg+xml,\') center center no-repeat;background-size:12px}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper span.frm-border-input-top:before{transform:rotate(180deg)}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper span.frm-border-input-bottom:before{transform:rotate(0deg)}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper span.frm-border-input-left:before{transform:rotate(90deg)}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper span.frm-border-input-right:before{transform:rotate(-90deg)}.frm-border-radius-component .frm-border-radius-container .frm-input-wrapper{width:calc(100% - 36px - 12px);height:36px;display:flex;justify-content:center;box-sizing:border-box;background:#fff;border-radius:var(--small-radius);border:1px solid var(--grey-300);overflow:hidden}.frm-border-radius-component .frm-border-radius-container .frm-input-wrapper>*{border:none}.frm-border-radius-component .frm-border-radius-container .frm-input-wrapper input{width:calc(100% - 44px);height:100%;padding:0;font-size:var(--text-sm);color:#101828;padding-left:12px;box-sizing:border-box}.frm-border-radius-component .frm-border-radius-container .frm-input-wrapper input:focus{outline:none}.frm-border-radius-component .frm-border-radius-container .frm-input-wrapper select{text-align:right;padding:0;font-size:var(--text-sm);color:#667085;width:44px;background:url("../../images/style/small-arrow.svg") no-repeat;background-position:center right 12px}.frm-border-radius-component .frm-border-radius-container .frm-input-wrapper select:focus{outline:none}\n',e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&At(e,t)}(t,e),function(e,t,r){return t&&Vt(e.prototype,t),r&&Vt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"initOptions",value:function(){var e;(function(e,t,r){var n=Tt(Lt(e.prototype),"initOptions",r);return"function"==typeof n?function(e){return n.apply(r,e)}:n})(t,0,this)([]),null===this.componentId&&(this.componentId="frm-border-radius-web-component-".concat(Nt._=(e=Nt._,++e)))}},{key:"initView",value:function(){return this.wrapper=document.createElement("div"),this.container=document.createElement("div"),this.wrapper.classList.add("frm-border-radius-component"),this.container.classList.add("frm-border-radius-container"),this.container.append(this.getInputWrapper(),this.getButton(),this.getBorderIndividualInputsWrapper()),this.wrapper.append(this.container),this.wrapper}},{key:"parseDefaultValues",value:function(){if(!zt(Ut,this))return{top:{value:0,unit:"px"},bottom:{value:0,unit:"px"},left:{value:0,unit:"px"},right:{value:0,unit:"px"}};var e=zt(Ut,this).split(" ");return{top:t.parseValueUnit(e[0]||"0px"),bottom:t.parseValueUnit(e[2]||e[0]||"0px"),left:t.parseValueUnit(e[3]||e[1]||e[0]||"0px"),right:t.parseValueUnit(e[1]||e[0]||"0px")}}},{key:"getInputWrapper",value:function(){return this.inputWrapper=document.createElement("div"),this.inputWrapper.classList.add("frm-input-wrapper"),this.inputWrapper.append(this.getInputValue(),this.getInputUnit(),this.getHiddenInput()),this.inputWrapper}},{key:"getHiddenInput",value:function(){return this.hiddenInput=document.createElement("input"),this.hiddenInput.type="hidden",this.hiddenInput.value=zt(Dt,this),this.fieldName&&(this.hiddenInput.name=this.fieldName),this.hiddenInput}},{key:"getInputValue",value:function(){var e=this;return this.inputValue=document.createElement("input"),this.inputValue.type="text",this.inputValue.id="".concat(this.componentId,"-value"),this.inputValue.setAttribute("aria-label",j("Border radius value","formidable")),this.inputValue.classList.add("frm-input-value"),zt(Bt,this)||(this.inputValue.value=parseInt(zt(Ut,this))||0),this.inputValue.addEventListener("change",function(){var t=e.inputValue.value+e.inputUnit.value;e.hiddenInput.value=t,e.borderInputBottom.value=e.inputValue.value,e.borderInputTop.value=e.inputValue.value,e.borderInputLeft.value=e.inputValue.value,e.borderInputRight.value=e.inputValue.value,e.updateValue(t)}),this.inputValue}},{key:"getInputUnit",value:function(){var e=this;return this.inputUnit=document.createElement("select"),this.inputUnit.id="".concat(this.componentId,"-unit"),this.inputUnit.setAttribute("aria-label",j("Border radius unit","formidable")),this.inputUnit.classList.add("frm-input-unit"),zt(Mt,this).forEach(function(t){var r=document.createElement("option");r.value=t,r.textContent=t,e.inputUnit.append(r)}),this.inputUnit.addEventListener("change",function(){e.hiddenInput.value=e.inputValue.value+e.inputUnit.value}),this.inputUnit}},{key:"getBorderIndividualInputsWrapper",value:function(){return this.borderIndividualInputsWrapper=document.createElement("div"),this.borderIndividualInputsWrapper.classList.add("frm-border-individual-inputs-wrapper"),zt(Bt,this)||this.borderIndividualInputsWrapper.classList.add("frm_hidden"),this.borderIndividualInputsWrapper.append(this.getBorderInputTop(),this.getBorderInputRight(),this.getBorderInputLeft(),this.getBorderInputBottom()),this.borderIndividualInputsWrapper}},{key:"getBorderInputTop",value:function(){var e=this,t=this.parseDefaultValues(),r=document.createElement("span");return r.classList.add("frm-border-input-top"),this.borderInputTop=document.createElement("input"),this.borderInputTop.type="text",this.borderInputTop.id="".concat(this.componentId,"-top"),this.borderInputTop.setAttribute("aria-label",j("Top border radius","formidable")),this.borderInputTop.value=parseInt(t.top.value),r.append(this.borderInputTop),this.borderInputTop.addEventListener("change",function(){return e.buildBorderRadiusIndividualValue()}),r}},{key:"getBorderInputBottom",value:function(){var e=this,t=this.parseDefaultValues(),r=document.createElement("span");return r.classList.add("frm-border-input-bottom"),this.borderInputBottom=document.createElement("input"),this.borderInputBottom.type="text",this.borderInputBottom.id="".concat(this.componentId,"-bottom"),this.borderInputBottom.setAttribute("aria-label",j("Bottom border radius","formidable")),this.borderInputBottom.value=parseInt(t.bottom.value),r.append(this.borderInputBottom),this.borderInputBottom.addEventListener("change",function(){return e.buildBorderRadiusIndividualValue()}),r}},{key:"getBorderInputLeft",value:function(){var e=this,t=this.parseDefaultValues(),r=document.createElement("span");return r.classList.add("frm-border-input-left"),this.borderInputLeft=document.createElement("input"),this.borderInputLeft.type="text",this.borderInputLeft.id="".concat(this.componentId,"-left"),this.borderInputLeft.setAttribute("aria-label",j("Left border radius","formidable")),this.borderInputLeft.value=parseInt(t.left.value),r.append(this.borderInputLeft),this.borderInputLeft.addEventListener("change",function(){return e.buildBorderRadiusIndividualValue()}),r}},{key:"getBorderInputRight",value:function(){var e=this,t=this.parseDefaultValues(),r=document.createElement("span");return r.classList.add("frm-border-input-right"),this.borderInputRight=document.createElement("input"),this.borderInputRight.type="text",this.borderInputRight.id="".concat(this.componentId,"-right"),this.borderInputRight.setAttribute("aria-label",j("Right border radius","formidable")),this.borderInputRight.value=parseInt(t.right.value),r.append(this.borderInputRight),this.borderInputRight.addEventListener("change",function(){return e.buildBorderRadiusIndividualValue()}),r}},{key:"buildBorderRadiusIndividualValue",value:function(){var e=this.inputUnit.value,t="".concat(parseInt(this.borderInputTop.value,10)).concat(e," ").concat(parseInt(this.borderInputRight.value,10)).concat(e," ").concat(parseInt(this.borderInputBottom.value,10)).concat(e," ").concat(parseInt(this.borderInputLeft.value,10)).concat(e);this.updateValue(t)}},{key:"updateValue",value:function(e){this.hiddenInput.value=e,zt(Ft,this).call(this,e)}},{key:"getButton",value:function(){var e=this;return this.button=document.createElement("button"),this.button.type="button",this.button.textContent=j("Border Radius","formidable"),zt(Bt,this)&&this.button.classList.add("frm-active"),this.button.addEventListener("click",function(){e.button.classList.toggle("frm-active"),e.borderIndividualInputsWrapper.classList.toggle("frm_hidden")}),this.button}},{key:"onChange",set:function(e){if("function"!=typeof e)throw new TypeError("Expected a function, but received ".concat(Ot(e)));Ct(Ft,this,e)}},{key:"borderRadiusDefaultValue",set:function(e){Ct(Ut,this,e),Ct(Bt,this,!/^(\d+)(px|em|%)?$/.test(e)&&""!==e)}}],[{key:"parseValueUnit",value:function(e){var t=e.match(/^(\d+)(px|em|%)?$/);return t?{value:parseInt(t[1],10),unit:t[2]||"px"}:{value:0,unit:"px"}}}])}(H),Nt={_:0};customElements.define("frm-tab-navigator-component",Q),customElements.define("frm-colorpicker-component",be),customElements.define("frm-range-slider-component",Xe),customElements.define("frm-dropdown-component",ut),customElements.define("frm-typography-component",Et),customElements.define("frm-border-radius-component",Wt)})()})(); \ No newline at end of file +(()=>{var e={8616:e=>{e.exports=function(e,t){var r,n,i=0;function a(){var a,o,s=r,u=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(o=0;o{var n;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(e){return function(e,t){var r,n,o,s,u,l,p,c,f,d=1,m=e.length,b="";for(n=0;n=0),s.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,s.width?parseInt(s.width):0);break;case"e":r=s.precision?parseFloat(r).toExponential(s.precision):parseFloat(r).toExponential();break;case"f":r=s.precision?parseFloat(r).toFixed(s.precision):parseFloat(r);break;case"g":r=s.precision?String(Number(r.toPrecision(s.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=s.precision?r.substring(0,s.precision):r;break;case"t":r=String(!!r),r=s.precision?r.substring(0,s.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=s.precision?r.substring(0,s.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=s.precision?r.substring(0,s.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?b+=r:(!i.number.test(s.type)||c&&!s.sign?f="":(f=c?"+":"-",r=r.toString().replace(i.sign,"")),l=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",p=s.width-(f+r).length,u=s.width&&p>0?l.repeat(p):"",b+=s.align?f+r+u:"0"===l?f+u+r:u+f+r)}return b}(function(e){if(s[e])return s[e];for(var t,r=e,n=[],a=0;r;){if(null!==(t=i.text.exec(r)))n.push(t[0]);else if(null!==(t=i.modulo.exec(r)))n.push("%");else{if(null===(t=i.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){a|=1;var o=[],u=t[2],l=[];if(null===(l=i.key.exec(u)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(l[1]);""!==(u=u.substring(l[0].length));)if(null!==(l=i.key_access.exec(u)))o.push(l[1]);else{if(null===(l=i.index_access.exec(u)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(l[1])}t[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}r=r.substring(t[0].length)}return s[e]=n}(e),arguments)}function o(e,t){return a.apply(null,[e].concat(t||[]))}var s=Object.create(null);"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=o,void 0===(n=function(){return{sprintf:a,vsprintf:o}}.call(t,r,t,e))||(e.exports=n))}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e,t,n,i,a=r(8616),o=r.n(a);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}r(7604),o()(console.error),e={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},t=["(","?"],n={")":["("],":":["?","?:"]},i=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var l={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,r){if(e)throw t;return r}};var p={contextDelimiter:"",onMissingKey:null};function c(e,t){var r;for(r in this.data=e,this.pluralForms={},this.options={},p)this.options[r]=void 0!==t&&r in t?t[r]:p[r]}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t=0||e[u]3&&void 0!==arguments[3]?arguments[3]:10,o=e[t];if(y(r)&&h(n))if("function"==typeof i)if("number"==typeof a){var s={callback:i,priority:a,namespace:n};if(o[r]){var u,l=o[r].handlers;for(u=l.length;u>0&&!(a>=l[u-1].priority);u--);u===l.length?l[u]=s:l.splice(u,0,s),o.__current.forEach(function(e){e.name===r&&e.currentIndex>=u&&e.currentIndex++})}else o[r]={handlers:[s],runs:0};"hookAdded"!==r&&e.doAction("hookAdded",r,n,i,a)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},g=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(n,i){var a=e[t];if(y(n)&&(r||h(i))){if(!a[n])return 0;var o=0;if(r)o=a[n].handlers.length,a[n]={runs:a[n].runs,handlers:[]};else for(var s=a[n].handlers,u=function(e){s[e].namespace===i&&(s.splice(e,1),o++,a.__current.forEach(function(t){t.name===n&&t.currentIndex>=e&&t.currentIndex--}))},l=s.length-1;l>=0;l--)u(l);return"hookRemoved"!==n&&e.doAction("hookRemoved",n,i),o}}},x=function(e,t){return function(r,n){var i=e[t];return void 0!==n?r in i&&i[r].handlers.some(function(e){return e.namespace===n}):r in i}},w=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(n){var i=e[t];i[n]||(i[n]={handlers:[],runs:0}),i[n].runs++;for(var a=i[n].handlers,o=arguments.length,s=new Array(o>1?o-1:0),u=1;u1&&void 0!==arguments[1]?arguments[1]:"default";n.data[t]=d(d(d({},m),n.data[t]),e),n.data[t][""]=d(d({},m[""]),n.data[t][""])},s=function(e,t){o(e,t),a()},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return n.data[e]||o(void 0,e),n.dcnpgettext(e,t,r,i,a)},l=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},p=function(e,t,n){var i=u(n,t,e);return r?(i=r.applyFilters("i18n.gettext_with_context",i,e,t,n),r.applyFilters("i18n.gettext_with_context_"+l(n),i,e,t,n)):i};if(r){var f=function(e){b.test(e)&&a()};r.addAction("hookAdded","core/i18n",f),r.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return n.data[e]},setLocaleData:s,resetLocaleData:function(e,t){n.data={},n.pluralForms={},s(e,t)},subscribe:function(e){return i.add(e),function(){return i.delete(e)}},__:function(e,t){var n=u(t,void 0,e);return r?(n=r.applyFilters("i18n.gettext",n,e,t),r.applyFilters("i18n.gettext_"+l(t),n,e,t)):n},_x:p,_n:function(e,t,n,i){var a=u(i,void 0,e,t,n);return r?(a=r.applyFilters("i18n.ngettext",a,e,t,n,i),r.applyFilters("i18n.ngettext_"+l(i),a,e,t,n,i)):a},_nx:function(e,t,n,i,a){var o=u(a,i,e,t,n);return r?(o=r.applyFilters("i18n.ngettext_with_context",o,e,t,n,i,a),r.applyFilters("i18n.ngettext_with_context_"+l(a),o,e,t,n,i,a)):o},isRTL:function(){return"rtl"===p("ltr","text direction")},hasTranslation:function(e,t,i){var a,o,s=t?t+""+e:e,u=!(null===(a=n.data)||void 0===a||null===(o=a[null!=i?i:"default"])||void 0===o||!o[s]);return r&&(u=r.applyFilters("i18n.has_translation",u,e,t,i),u=r.applyFilters("i18n.has_translation_"+l(i),u,e,t,i)),u}}}(0,0,I));O.getLocaleData.bind(O),O.setLocaleData.bind(O),O.resetLocaleData.bind(O),O.subscribe.bind(O);var V,j=O.__.bind(O);function _(e){if(V){V.dataset.activeFilter=e,V.querySelectorAll("[data-group]").forEach(function(t){"all"===e&&"my_actions"===t.dataset.group?t.classList.add("frm_hidden"):t.classList.toggle("frm_hidden","all"!==e&&t.dataset.group!==e)});var t=V.querySelector('[data-group="my_actions"]');t&&t.querySelectorAll("[data-section] .frm-group-heading").forEach(function(t){t.style.display="all"===e?"none":""})}}O._x.bind(O),O._n.bind(O),O._nx.bind(O),O.isRTL.bind(O),O.hasTranslation.bind(O);var T=null;function L(){T&&(T.disconnect(),T=null)}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function P(e,t){for(var r=0;r li"),this.slideTrackLine=this.wrapper.querySelector(".frm-tabs-active-underline"),this.slideTrack=this.wrapper.querySelector(".frm-tabs-slide-track"),this.slides=this.wrapper.querySelectorAll(".frm-tabs-slide-track > div"),this.isRTL="rtl"===document.documentElement.dir||"rtl"===document.body.dir,this.resizeObserver=null,this.filterTarget=function(e){var t;V=null;var r=null==e||null===(t=e.dataset)||void 0===t?void 0:t.filterTarget;if(r){var n=document.querySelector(r);(function(e){return e.querySelectorAll("[data-group]").length>0})(n)&&(V=n)}return V}(this.wrapper),this.init()))},(t=[{key:"init",value:function(){var e,t=this,r=!this.filterTarget&&(null===this.slideTrack||0===this.slides.length);if(null!==this.wrapper&&this.navs.length&&null!==this.slideTrackLine&&!r){var n=null===(e=this.navs[0])||void 0===e?void 0:e.parentElement;n&&(n.setAttribute("role",this.filterTarget?"group":"tablist"),n.hasAttribute("aria-label")||n.hasAttribute("aria-labelledby")||n.setAttribute("aria-label",this.filterTarget?j("Filters","formidable"):j("Sections","formidable")));var i,a=Array.from(this.navs).findIndex(function(e){return e.classList.contains("frm-active")}),o=Math.max(a,0),s=this.wrapper.getRootNode();do{i="frm-tablist-".concat(++R)}while(s.getElementById("".concat(i,"-tab-0"))||s.getElementById("".concat(i,"-panel-0")));this.navs.forEach(function(e,r){var n=r===o;if(e.classList.toggle("frm-active",n),e.setAttribute("tabindex",t.filterTarget||n?"0":"-1"),e.setAttribute("role",t.filterTarget?"button":"tab"),e.setAttribute(t.filterTarget?"aria-pressed":"aria-selected",String(n)),e.querySelectorAll("a").forEach(function(e){return e.setAttribute("tabindex","-1")}),!t.filterTarget&&t.slides[r]){var a=t.slides[r];e.id=e.id||"".concat(i,"-tab-").concat(r),a.id=a.id||"".concat(i,"-panel-").concat(r),e.setAttribute("aria-controls",a.id),a.setAttribute("role","tabpanel"),a.setAttribute("aria-labelledby",e.id),a.setAttribute("tabindex","0")}e.addEventListener("click",function(e){return t.onNavClick(e,r)}),e.addEventListener("keydown",function(e){return t.onNavKeydown(e,r)}),e.classList.contains("frm-active")&&(t.initSlideTrackUnderline(e),t.filterTarget&&_(e.dataset.filter||"all"))}),this.filterTarget||this.changeSlide(o),this.slideTrackLine.style.display="block",this.setupScrollbarObserver(),this.setupVisibilityObserver(),window.addEventListener("beforeunload",this.cleanupObservers)}}},{key:"onNavClick",value:function(e,t){var r=this,n=e.currentTarget;if(e.preventDefault(),this.removeActiveClassnameFromNavs(),n.classList.add("frm-active"),this.navs.forEach(function(e){e.setAttribute(r.filterTarget?"aria-pressed":"aria-selected",String(e===n)),r.filterTarget||e.setAttribute("tabindex",e===n?"0":"-1")}),this.initSlideTrackUnderline(n),this.filterTarget)_(n.dataset.filter||"all");else{this.changeSlide(t),this.keepFocusOnTab(n);var i,a,o=n.querySelector("a");o&&"frm_insert_fields_tab"===o.id&&!o.closest("#frm_adv_info")&&(null===(i=window.frmAdminBuild)||void 0===i||null===(a=i.clearSettingsBox)||void 0===a||a.call(i))}}},{key:"onNavKeydown",value:function(e,t){if("Enter"===e.key||" "===e.key)return e.preventDefault(),void this.onNavClick(e,t);if(!this.filterTarget){var r=this.navs.length-1,n={ArrowLeft:(t+(this.isRTL?1:r))%this.navs.length,ArrowRight:(t+(this.isRTL?r:1))%this.navs.length,Home:0,End:r}[e.key];void 0!==n&&(e.preventDefault(),this.navs.forEach(function(e,t){return e.setAttribute("tabindex",t===n?"0":"-1")}),this.navs[n].focus())}}},{key:"keepFocusOnTab",value:function(e){var t,r=null!==(t=this.wrapper.getRootNode().activeElement)&&void 0!==t?t:document.activeElement,n=!r||r===document.body||null!==r.closest("[inert]"),i=Array.from(this.navs).some(function(e){return e.contains(r)});r!==e&&(n||i)&&e.focus({preventScroll:!0})}},{key:"initSlideTrackUnderline",value:function(e){var t=void 0!==e?e:this.navs.filter(function(e){return e.classList.contains("frm-active")});this.positionUnderlineIndicator(t)}},{key:"setupVisibilityObserver",value:function(){var e,t,r=this;e=this.wrapper,t=function(){var e=r.wrapper.querySelector(".frm-tabs-navs ul > li.frm-active");e&&r.positionUnderlineIndicator(e)},"IntersectionObserver"in window&&e instanceof Element&&"function"==typeof t&&(T=new IntersectionObserver(function(e){e[0].isIntersecting&&(t(),L())})).observe(e)}},{key:"setupScrollbarObserver",value:function(){var e=this,t=document.querySelector(".frm-scrollbar-wrapper, .styling_settings")||document.body;t&&"ResizeObserver"in window&&(this.resizeObserver=new ResizeObserver(function(){var t=e.wrapper.querySelector(".frm-tabs-navs ul > li.frm-active");t&&e.positionUnderlineIndicator(t)}),this.resizeObserver.observe(t))}},{key:"cleanupObservers",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),L()}},{key:"positionUnderlineIndicator",value:function(e){var t=this;requestAnimationFrame(function(){var r=t.isRTL?-(e.parentElement.offsetWidth-e.offsetLeft-e.offsetWidth):e.offsetLeft;t.slideTrackLine.style.transform="translateX(".concat(r,"px)"),t.slideTrackLine.style.width="".concat(e.clientWidth,"px")})}},{key:"changeSlide",value:function(e){this.removeActiveClassnameFromSlides(),this.slides.forEach(function(t,r){var n=r!==e;t.toggleAttribute("inert",n),t.setAttribute("aria-hidden",String(n))});var t=0==e?"0px":"calc( ( ".concat(100*e,"% + ").concat(parseInt(this.flexboxSlidesGap,10)*e,"px ) * ").concat(this.isRTL?1:-1," )");"0px"!==t?this.slideTrack.style.transform="translateX(".concat(t,")"):this.slideTrack.style.removeProperty("transform"),e in this.slides&&this.slides[e].classList.add("frm-active")}},{key:"removeActiveClassnameFromSlides",value:function(){this.slides.forEach(function(e){return e.classList.remove("frm-active")})}},{key:"removeActiveClassnameFromNavs",value:function(){this.navs.forEach(function(e){return e.classList.remove("frm-active")})}}])&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&(r.disconnect(),requestAnimationFrame(function(){return t()}))})},{threshold:.1});(e.useShadowDom()?e.shadowRoot.host:e)&&r.observe(e)}else requestAnimationFrame(function(){return t()})})}},{key:"frmLabel",set:function(e){this._labelText=e}},{key:"afterViewInit",value:function(e){}},{key:"initView",value:function(){}},{key:"connectedCallback",value:function(){this.initOptions(),this.render()}},{key:"disconnectedCallback",value:function(){}}],n&&D(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(B(HTMLElement));function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function $(e,t){for(var r=0;rspan.frm-component-label{font-weight:500;font-size:var(--text-sm) !important;color:var(--grey-900) !important;width:40% !important;display:block !important;margin-right:12px !important}\n",e.attachInternals(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}(t,e),r=t,(n=[{key:"initView",value:function(){var e=document.createElement("div");return e.classList.add("frm-colorpicker-component","frm-colorpicker"),e.append(this.getInput()),e}},{key:"getInput",value:function(){var e=this;return this.input.type="text",this.input.classList.add("hex"),null!==this.fieldName&&(this.input.name=this.fieldName),null!==se(de,this)&&(this.input.value=se(de,this)),null!==this.componentId&&(this.input.id=this.componentId),this.input.addEventListener("blur",function(t){return se(fe,e).call(e,t,null)}),this.input}},{key:"useShadowDom",value:function(){return!1}},{key:"afterViewInit",value:function(){var e=this;frmDom.colorPicker.init(this.input,{defaultColor:se(de,this),change:function(t){return se(fe,e).call(e,t,null)}})}},{key:"color",get:function(){return this.input.value},set:function(e){oe(de,this,e),this.input.value=e,this.input.dispatchEvent(new Event("frm:color-sync"))}},{key:"onChange",set:function(e){if("function"!=typeof e)throw new TypeError("Expected a function, but received ".concat(Y(e)));oe(fe,this,e)}}])&&ee(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(H);le=me,ce=!0,(pe=ie(pe="formAssociated"))in le?Object.defineProperty(le,pe,{value:ce,enumerable:!0,configurable:!0,writable:!0}):le[pe]=ce;var be=window.frmColorpickerProComponent?window.frmColorpickerProComponent(me):me,he=window.frmGlobal;function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function ve(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.loadedByWebComponent=t.length>0,this.sliderElements=t.length>0?t:document.querySelectorAll(".frm-slider-component"),this.settings=r,0!==this.sliderElements.length&&(this.eventsChange=[],this.initOptions(),this.init())}return function(e,t,r){return t&&ke(e.prototype,t),r&&ke(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"initOptions",value:function(){var e=this;this.options=[],this.sliderElements.forEach(function(t,r){var n=t.classList.contains("frm-has-multiple-values")?t.closest(".frm-style-component"):t,i=e.settings.steps||(t.dataset.steps?JSON.parse(t.dataset.steps):null);e.options.push({maxValue:parseInt(t.dataset.maxValue,10),element:t,index:r,steps:i,dependentUpdater:n.classList.contains("frm-style-dependent-updater-component")?new xe(n):null})})}},{key:"init",value:function(){this.initListeners(),this.initFill()}},{key:"initListeners",value:function(){var t=this;this.sliderElements.forEach(function(r,n){t.eventsChange[n]=new Event("change",{bubbles:!0,cancelable:!0});var i=r.querySelector(".frm-slider"),a=r.querySelector('.frm-slider-value input[type="text"]');if(i&&a){t.initSteps(i,n),i.addEventListener("input",function(){var o=t.getRangeValue(i,n);a.value=o,e.refreshRange(i,r,o),t.syncGroupSliders(r,o),t.options[n].fullValue=t.updateValue(r,o+e.getUnit(r)),t.triggerValueChange(n)}),i.addEventListener("change",function(){var a=t.getRangeValue(i,n);t.options[n].fullValue=t.updateValue(r,a+e.getUnit(r)),t.triggerValueChange(n)});var o=null;a.addEventListener("focus",function(){o=t.getRangeValue(i,n)});var s=function(s){var u=e.getUnit(r),l=parseFloat(s.target.value),p=t.options[n].steps,c=p&&p.length>0?p.map(Number).includes(l):l>=parseFloat(i.min||0)&&parseFloat(i.max)>=l;if(isNaN(l)||!c){if("change"!==s.type)return;return null!==o&&String(o)!==String(t.getRangeValue(i,n))&&t.applyTextValue(r,i,n,o,u),void(a.value=t.getRangeValue(i,n))}t.applyTextValue(r,i,n,l,u),"change"===s.type&&(o=l)};a.addEventListener("input",s),a.addEventListener("change",s),e.expandSliderGroup(r),t.updateOnUnitChange(r,i,a,n),e.maybeDisableUnitDropdown(r)}})}},{key:"initFill",value:function(){var t=this;this.sliderElements.forEach(function(r,n){var i=r.querySelector(".frm-slider");if(i){var a=t.getRangeValue(i,n);t.options[n].fullValue=a+e.getUnit(r),e.refreshRange(i,r,a)}})}},{key:"initSteps",value:function(t,r){var n=this.options[r].steps;if(n&&0!==n.length){var i=parseFloat(t.value);t.min="0",t.max=String(n.length-1),t.step="1",t.value=String(e.getClosestStepIndex(i,n))}}},{key:"getRangeValue",value:function(e,t){var r=this.options[t].steps;return r&&r.length>0?r[parseInt(e.value,10)]:parseFloat(e.value)}},{key:"setRangeValue",value:function(t,r,n){var i=this.options[r].steps;i&&i.length>0?t.value=String(e.getClosestStepIndex(parseFloat(n),i)):(e.applyStep(t,n),t.value=n)}},{key:"applyTextValue",value:function(t,r,n,i,a){this.setRangeValue(r,n,i),e.refreshRange(r,t,i),this.options[n].fullValue=this.updateValue(t,i+a),this.triggerValueChange(n)}},{key:"syncGroupSliders",value:function(t,r){var n=this;(t.classList.contains("frm-has-multiple-values")||t.classList.contains("frm-has-independent-fields"))&&(t.classList.contains("frm-has-independent-fields")?t.querySelectorAll(".frm-independent-slider-field"):e.getSliderGroupItems(t)).forEach(function(t){var i=t.querySelector(".frm-slider"),a=t.querySelector('.frm-slider-value input[type="text"]'),o=n.getSliderIndex(t);i&&-1!==o&&(n.setRangeValue(i,o,r),e.refreshRange(i,t,r)),a&&(a.value=r)})}},{key:"updateOnUnitChange",value:function(t,r,n,i){var a=this,o=t.querySelector("select");o&&o.addEventListener("change",function(o){var s=o.target.value.toLowerCase();if(""===s)return t.classList.add("frm-disabled","frm-empty"),r.disabled=!0,n.value="",n.disabled=!0,e.updateLabelFocusTarget(n,!1),e.refreshRange(r,t,a.getRangeValue(r,i)),a.options[i].fullValue=a.updateValue(t,""),void a.triggerValueChange(i);if("auto"===s)return t.classList.add("frm-disabled"),r.disabled=!0,n.value="",n.disabled=!0,e.updateLabelFocusTarget(n,!1),r.setAttribute("aria-valuetext",s),a.options[i].fullValue=a.updateValue(t,"auto"),void a.triggerValueChange(i);t.classList.remove("frm-disabled","frm-empty"),r.disabled=!1,n.disabled=!1,e.updateLabelFocusTarget(n,!0),a.options[i].steps||(r.max=a.getMaxValue(s,i,a.getRangeValue(r,i)));var u=a.getRangeValue(r,i);n.value=u,a.options[i].fullValue=u+s,a.updateValue(t,a.options[i].fullValue),e.refreshRange(r,t,u),a.triggerValueChange(i)})}},{key:"getSliderIndex",value:function(e){var t=this.options.find(function(t){return t.element===e});return t?t.index:-1}},{key:"getMaxValue",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n="%"===e?100:this.options[t].maxValue;return null!==r&&r>n?Math.ceil(r):n}},{key:"triggerValueChange",value:function(e){var t=this;if(null===this.options[e].dependentUpdater){var r=this.sliderElements[e].classList.contains("frm-has-multiple-values")?this.sliderElements[e].closest(".frm-style-component").querySelector('input[type="hidden"]'):this.sliderElements[e].querySelectorAll('.frm-slider-value input[type="hidden"]');r instanceof NodeList?r.forEach(function(r){r.dispatchEvent(t.eventsChange[e])}):r.dispatchEvent(this.eventsChange[e])}else this.options[e].dependentUpdater.updateAllDependentElements(this.options[e].fullValue)}},{key:"updateValue",value:function(t,r){var n=this;if(t.classList.contains("frm-base-font-size")){var i=document.querySelector('input[name="frm_style_setting[post_content][use_base_font_size]"]');i&&(i.value="true")}if(t.classList.contains("frm-has-multiple-values")){var a=t.closest(".frm-style-component").querySelector('input[type="hidden"]'),o=a.value.split(" "),s=t.dataset.type;switch(o[2]||(o[2]="0px"),o[3]||(o[3]="0px"),s){case"vertical":o[0]=r,o[2]=r;break;case"horizontal":o[1]=r,o[3]=r;break;case"top":o[0]=r;break;case"bottom":o[2]=r;break;case"left":o[3]=r;break;case"right":o[1]=r}var u=o.join(" ");return a.value=u,e.getSliderGroupItems(t).forEach(function(e){var t=n.getUnitMeasureFromValue(r);e.querySelector('.frm-slider-value input[type="text"]').value=parseFloat(r),e.querySelector("select").value=t}),u}if(t.classList.contains("frm-has-independent-fields")){var l=t.querySelectorAll('.frm-slider-value input[type="hidden"]'),p=t.querySelectorAll('.frm-slider-value input[type="text"]');return l.forEach(function(e,t){e.value=r,p[t+1].value=parseFloat(r)}),r}return t.querySelector('.frm-slider-value input[type="hidden"]').value=r,r}},{key:"getUnitMeasureFromValue",value:function(e){return Ee.find(function(t){return e.includes(t)})||""}}],[{key:"getUnit",value:function(e){var t=e.querySelector("select");return t?t.value:""}},{key:"getClosestStepIndex",value:function(e,t){for(var r=0,n=Math.abs(e-t[0]),i=1;i0?"0.".concat("0".repeat(r-1),"1"):"1"}},{key:"refreshRange",value:function(t,r,n){e.updateFill(t);var i=e.getUnit(r);if("auto"!==i)if(""!==i){var a=Ee.includes(i)?i:"";t.setAttribute("aria-valuetext","".concat(n).concat(a))}else t.setAttribute("aria-valuetext",j("Not set","formidable"));else t.setAttribute("aria-valuetext",i)}},{key:"updateFill",value:function(e){var t=parseFloat(e.min)||0,r=parseFloat(e.max),n=parseFloat(e.value),i=r-t,a=i>0?Math.min(Math.max((n-t)/i,0),1):0;e.style.setProperty("--frm-fill",a)}},{key:"expandSliderGroup",value:function(t){var r=t.querySelector(".frmsvg");if(void 0!==t.dataset.displaySliders&&null!==r){var n=e.getSliderGroupItems(t);r.addEventListener("click",function(){n.forEach(function(e){e.classList.toggle("frm_hidden")})})}}},{key:"updateLabelFocusTarget",value:function(e,t){if(e.id){var r=document.querySelector('[data-slider-label-for="'.concat(e.id,'"]'));r&&(t?r.setAttribute("for",e.id):r.removeAttribute("for"))}}},{key:"maybeDisableUnitDropdown",value:function(e){var t=e.querySelector("select");t&&1>=Array.from(t.options).filter(function(e){return""!==e.value}).length&&(t.classList.add("frm-single-unit"),t.addEventListener("mousedown",function(e){return e.preventDefault()}))}},{key:"getSliderGroupItems",value:function(e){if(Ie.has(e))return Ie.get(e);if(void 0===e.dataset.displaySliders)return[];var t=e.closest(".frm-style-component");if(!t)return[];var r=e.dataset.displaySliders.split(",").map(function(e){return'.frm-slider-component[data-type="'.concat(e,'"]')}).join(", "),n=t.querySelectorAll(r);return Ie.set(e,n),n}}])}();function Ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2],n=document.createElement("option");return n.value=e,n.textContent=t,n.selected=r,""===t&&n.setAttribute("aria-label",j("Not set","formidable")),n}},{key:"createSvgIcon",value:function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.classList.add("frmsvg");var r=document.createElementNS("http://www.w3.org/2000/svg","use");return r.setAttribute("href","#".concat(e)),t.append(r),t}}])}(H),Je={_:0};function Ze(e){return Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ze(e)}function Qe(e,t){for(var r=0;r\') no-repeat center center;background-size:20px}.frm-border-radius-component .frm-border-radius-container button.frm-active,.frm-border-radius-component .frm-border-radius-container button:hover{background-color:rgba(0,0,0,.05)}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper{width:100%;justify-content:space-between;flex-wrap:wrap}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper:not(.frm_hidden){display:flex}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper span{position:relative;display:block;overflow:hidden;width:calc(50% - 6px);height:36px;border-radius:var(--small-radius);border:1px solid var(--grey-300);margin-top:12px}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper span input{width:100%;height:100%;padding:0;font-size:var(--text-sm);color:#101828;padding:0 12px 0px 20px;box-sizing:border-box;border:none;text-align:right}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper span input:focus{outline:none}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper span:before{content:"";position:absolute;display:block;width:12px;height:12px;left:12px;top:0;bottom:0;right:auto;margin:auto;background:url(\'data:image/svg+xml,\') center center no-repeat;background-size:12px}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper span.frm-border-input-top:before{transform:rotate(180deg)}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper span.frm-border-input-bottom:before{transform:rotate(0deg)}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper span.frm-border-input-left:before{transform:rotate(90deg)}.frm-border-radius-component .frm-border-radius-container .frm-border-individual-inputs-wrapper span.frm-border-input-right:before{transform:rotate(-90deg)}.frm-border-radius-component .frm-border-radius-container .frm-input-wrapper{width:calc(100% - 36px - 12px);height:36px;display:flex;justify-content:center;box-sizing:border-box;background:#fff;border-radius:var(--small-radius);border:1px solid var(--grey-300);overflow:hidden}.frm-border-radius-component .frm-border-radius-container .frm-input-wrapper>*{border:none}.frm-border-radius-component .frm-border-radius-container .frm-input-wrapper input{width:calc(100% - 44px);height:100%;padding:0;font-size:var(--text-sm);color:#101828;padding-left:12px;box-sizing:border-box}.frm-border-radius-component .frm-border-radius-container .frm-input-wrapper input:focus{outline:none}.frm-border-radius-component .frm-border-radius-container .frm-input-wrapper select{text-align:right;padding:0;font-size:var(--text-sm);color:#667085;width:44px;background:url("../../images/style/small-arrow.svg") no-repeat;background-position:center right 12px}.frm-border-radius-component .frm-border-radius-container .frm-input-wrapper select:focus{outline:none}\n',e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&At(e,t)}(t,e),function(e,t,r){return t&&Vt(e.prototype,t),r&&Vt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"initOptions",value:function(){var e;(function(e,t,r){var n=Tt(Lt(e.prototype),"initOptions",r);return"function"==typeof n?function(e){return n.apply(r,e)}:n})(t,0,this)([]),null===this.componentId&&(this.componentId="frm-border-radius-web-component-".concat(Nt._=(e=Nt._,++e)))}},{key:"initView",value:function(){return this.wrapper=document.createElement("div"),this.container=document.createElement("div"),this.wrapper.classList.add("frm-border-radius-component"),this.container.classList.add("frm-border-radius-container"),this.container.append(this.getInputWrapper(),this.getButton(),this.getBorderIndividualInputsWrapper()),this.wrapper.append(this.container),this.wrapper}},{key:"parseDefaultValues",value:function(){if(!Rt(Ut,this))return{top:{value:0,unit:"px"},bottom:{value:0,unit:"px"},left:{value:0,unit:"px"},right:{value:0,unit:"px"}};var e=Rt(Ut,this).split(" ");return{top:t.parseValueUnit(e[0]||"0px"),bottom:t.parseValueUnit(e[2]||e[0]||"0px"),left:t.parseValueUnit(e[3]||e[1]||e[0]||"0px"),right:t.parseValueUnit(e[1]||e[0]||"0px")}}},{key:"getInputWrapper",value:function(){return this.inputWrapper=document.createElement("div"),this.inputWrapper.classList.add("frm-input-wrapper"),this.inputWrapper.append(this.getInputValue(),this.getInputUnit(),this.getHiddenInput()),this.inputWrapper}},{key:"getHiddenInput",value:function(){return this.hiddenInput=document.createElement("input"),this.hiddenInput.type="hidden",this.hiddenInput.value=Rt(Dt,this),this.fieldName&&(this.hiddenInput.name=this.fieldName),this.hiddenInput}},{key:"getInputValue",value:function(){var e=this;return this.inputValue=document.createElement("input"),this.inputValue.type="text",this.inputValue.id="".concat(this.componentId,"-value"),this.inputValue.setAttribute("aria-label",j("Border radius value","formidable")),this.inputValue.classList.add("frm-input-value"),Rt(Bt,this)||(this.inputValue.value=parseInt(Rt(Ut,this))||0),this.inputValue.addEventListener("change",function(){var t=e.inputValue.value+e.inputUnit.value;e.hiddenInput.value=t,e.borderInputBottom.value=e.inputValue.value,e.borderInputTop.value=e.inputValue.value,e.borderInputLeft.value=e.inputValue.value,e.borderInputRight.value=e.inputValue.value,e.updateValue(t)}),this.inputValue}},{key:"getInputUnit",value:function(){var e=this;return this.inputUnit=document.createElement("select"),this.inputUnit.id="".concat(this.componentId,"-unit"),this.inputUnit.setAttribute("aria-label",j("Border radius unit","formidable")),this.inputUnit.classList.add("frm-input-unit"),Rt(Mt,this).forEach(function(t){var r=document.createElement("option");r.value=t,r.textContent=t,e.inputUnit.append(r)}),this.inputUnit.addEventListener("change",function(){e.hiddenInput.value=e.inputValue.value+e.inputUnit.value}),this.inputUnit}},{key:"getBorderIndividualInputsWrapper",value:function(){return this.borderIndividualInputsWrapper=document.createElement("div"),this.borderIndividualInputsWrapper.classList.add("frm-border-individual-inputs-wrapper"),Rt(Bt,this)||this.borderIndividualInputsWrapper.classList.add("frm_hidden"),this.borderIndividualInputsWrapper.append(this.getBorderInputTop(),this.getBorderInputRight(),this.getBorderInputLeft(),this.getBorderInputBottom()),this.borderIndividualInputsWrapper}},{key:"getBorderInputTop",value:function(){var e=this,t=this.parseDefaultValues(),r=document.createElement("span");return r.classList.add("frm-border-input-top"),this.borderInputTop=document.createElement("input"),this.borderInputTop.type="text",this.borderInputTop.id="".concat(this.componentId,"-top"),this.borderInputTop.setAttribute("aria-label",j("Top border radius","formidable")),this.borderInputTop.value=parseInt(t.top.value),r.append(this.borderInputTop),this.borderInputTop.addEventListener("change",function(){return e.buildBorderRadiusIndividualValue()}),r}},{key:"getBorderInputBottom",value:function(){var e=this,t=this.parseDefaultValues(),r=document.createElement("span");return r.classList.add("frm-border-input-bottom"),this.borderInputBottom=document.createElement("input"),this.borderInputBottom.type="text",this.borderInputBottom.id="".concat(this.componentId,"-bottom"),this.borderInputBottom.setAttribute("aria-label",j("Bottom border radius","formidable")),this.borderInputBottom.value=parseInt(t.bottom.value),r.append(this.borderInputBottom),this.borderInputBottom.addEventListener("change",function(){return e.buildBorderRadiusIndividualValue()}),r}},{key:"getBorderInputLeft",value:function(){var e=this,t=this.parseDefaultValues(),r=document.createElement("span");return r.classList.add("frm-border-input-left"),this.borderInputLeft=document.createElement("input"),this.borderInputLeft.type="text",this.borderInputLeft.id="".concat(this.componentId,"-left"),this.borderInputLeft.setAttribute("aria-label",j("Left border radius","formidable")),this.borderInputLeft.value=parseInt(t.left.value),r.append(this.borderInputLeft),this.borderInputLeft.addEventListener("change",function(){return e.buildBorderRadiusIndividualValue()}),r}},{key:"getBorderInputRight",value:function(){var e=this,t=this.parseDefaultValues(),r=document.createElement("span");return r.classList.add("frm-border-input-right"),this.borderInputRight=document.createElement("input"),this.borderInputRight.type="text",this.borderInputRight.id="".concat(this.componentId,"-right"),this.borderInputRight.setAttribute("aria-label",j("Right border radius","formidable")),this.borderInputRight.value=parseInt(t.right.value),r.append(this.borderInputRight),this.borderInputRight.addEventListener("change",function(){return e.buildBorderRadiusIndividualValue()}),r}},{key:"buildBorderRadiusIndividualValue",value:function(){var e=this.inputUnit.value,t="".concat(parseInt(this.borderInputTop.value,10)).concat(e," ").concat(parseInt(this.borderInputRight.value,10)).concat(e," ").concat(parseInt(this.borderInputBottom.value,10)).concat(e," ").concat(parseInt(this.borderInputLeft.value,10)).concat(e);this.updateValue(t)}},{key:"updateValue",value:function(e){this.hiddenInput.value=e,Rt(Ft,this).call(this,e)}},{key:"getButton",value:function(){var e=this;return this.button=document.createElement("button"),this.button.type="button",this.button.textContent=j("Border Radius","formidable"),Rt(Bt,this)&&this.button.classList.add("frm-active"),this.button.addEventListener("click",function(){e.button.classList.toggle("frm-active"),e.borderIndividualInputsWrapper.classList.toggle("frm_hidden")}),this.button}},{key:"onChange",set:function(e){if("function"!=typeof e)throw new TypeError("Expected a function, but received ".concat(Ot(e)));Ct(Ft,this,e)}},{key:"borderRadiusDefaultValue",set:function(e){Ct(Ut,this,e),Ct(Bt,this,!/^(\d+)(px|em|%)?$/.test(e)&&""!==e)}}],[{key:"parseValueUnit",value:function(e){var t=e.match(/^(\d+)(px|em|%)?$/);return t?{value:parseInt(t[1],10),unit:t[2]||"px"}:{value:0,unit:"px"}}}])}(H),Nt={_:0};customElements.define("frm-tab-navigator-component",Q),customElements.define("frm-colorpicker-component",be),customElements.define("frm-range-slider-component",Xe),customElements.define("frm-dropdown-component",ut),customElements.define("frm-typography-component",Et),customElements.define("frm-border-radius-component",Wt)})()})(); \ No newline at end of file diff --git a/js/formidable.js b/js/formidable.js index 0afcdd86b2..b9df92f366 100644 --- a/js/formidable.js +++ b/js/formidable.js @@ -2290,7 +2290,7 @@ function frmFrontFormJS() { /** * Line up inline submit buttons with the inputs in the same row, then keep them lined up. * - * @since x.x + * @since 7.1 * * @return {void} */ @@ -2331,7 +2331,12 @@ function frmFrontFormJS() { observeFields(); // AJAX validation and pagination replace nodes. Newly inserted forms need observers too. - const mutationObserver = new MutationObserver( observeFields ); + // Other DOM changes on the page, like a ticker or chat widget, are skipped without querying the document. + const mutationObserver = new MutationObserver( mutations => { + if ( mutations.some( mutation => isInlineFormMutation( mutation, observed ) ) ) { + observeFields(); + } + } ); mutationObserver.observe( document.body, { childList: true, subtree: true } ); if ( document.fonts?.ready ) { @@ -2339,12 +2344,44 @@ function frmFrontFormJS() { } } + /** + * Check if a DOM change could add, remove, or move fields in an inline form. + * + * @since 7.1 + * + * @param {MutationRecord} mutation The DOM change. + * @param {Set} observed The fields that are watched for size changes. + * @return {boolean} True when the inline form fields need to be checked again. + */ + function isInlineFormMutation( mutation, observed ) { + if ( mutation.target.closest?.( '.frm_inline_form' ) ) { + return true; + } + + for ( const node of mutation.addedNodes ) { + if ( node.nodeType === Node.ELEMENT_NODE && ( node.matches( '.frm_inline_form' ) || node.querySelector( '.frm_inline_form' ) ) ) { + return true; + } + } + + // A removed form leaves detached fields behind that should stop being observed. + if ( mutation.removedNodes.length ) { + for ( const element of observed ) { + if ( ! element.isConnected ) { + return true; + } + } + } + + return false; + } + /** * The ::before spacer above an inline submit button copies the label size from the form style. * A theme that restyles labels (for example `label { line-height: 1 }`) makes the real label * taller or shorter than the spacer, so measure the difference and correct the spacer with it. * - * @since x.x + * @since 7.1 * * @return {void} */ @@ -2353,7 +2390,7 @@ function frmFrontFormJS() { } /** - * @since x.x + * @since 7.1 * * @param {HTMLElement} submitContainer The .frm_submit element. * @return {void} @@ -2386,7 +2423,7 @@ function frmFrontFormJS() { /** * Get the input closest to the submit button when it sits in the same row as the button. * - * @since x.x + * @since 7.1 * * @param {HTMLElement} submitContainer The .frm_submit element. * @return {HTMLElement|null} The input, or null when the closest field is on another row. diff --git a/js/formidable.min.js b/js/formidable.min.js index c11c6c33a9..a74f34c3fa 100644 --- a/js/formidable.min.js +++ b/js/formidable.min.js @@ -73,22 +73,23 @@ input.querySelector("option:first-child");if(firstOpt.textContent){firstOpt.setA container.querySelector("input, select, textarea");if(input&&""!==input.value)checkFloatLabel(input)});checkDropdownLabel();calcProductsTotal()};runOnLoad(true);jQuery(document).on("frmPageChanged",function(event){runOnLoad()});document.addEventListener("frm_after_start_over",function(event){runOnLoad()})}function shouldUpdateValidityMessage(target){if("INPUT"!==target.nodeName)return false;if(!target.dataset.invmsg)return false;if("text"!==target.getAttribute("type"))return false;if(target.classList.contains("frm_verify"))return false; return true}function maybeClearCustomValidityMessage(event,field){let key;let isInvalid=false;if(!shouldUpdateValidityMessage(field))return;for(key in field.validity){if("customError"===key)continue;if("valid"!==key&&field.validity[key]===true){isInvalid=true;break}}if(!isInvalid)field.setCustomValidity("")}function initInlineSubmitAlignment(){let frameRequested=false;const scheduleAlignment=function(){if(frameRequested)return;frameRequested=true;window.requestAnimationFrame(function(){frameRequested= false;alignInlineSubmitButtons()})};alignInlineSubmitButtons();window.addEventListener("load",scheduleAlignment);window.addEventListener("resize",scheduleAlignment);const observed=new Set;const resizeObserver=new ResizeObserver(scheduleAlignment);const observeFields=()=>{for(const element of observed)if(!element.isConnected){resizeObserver.unobserve(element);observed.delete(element)}document.querySelectorAll(".frm_inline_form .frm_fields_container > *").forEach(element=>{if(!observed.has(element)){observed.add(element); -resizeObserver.observe(element)}});scheduleAlignment()};observeFields();const mutationObserver=new MutationObserver(observeFields);mutationObserver.observe(document.body,{childList:true,subtree:true});if(document.fonts?.ready)document.fonts.ready.then(scheduleAlignment)}function alignInlineSubmitButtons(){document.querySelectorAll(".with_frm_style.frm_inline_top .frm_fields_container > .frm_submit, .with_frm_style .frm_fields_container > .frm_submit.frm_inline_submit").forEach(alignInlineSubmitButton)} -function alignInlineSubmitButton(submitContainer){submitContainer.style.removeProperty("--frm-inline-submit-offset");const input=getInlineSubmitRowInput(submitContainer);if(!input)return;const buttonTops=Array.from(submitContainer.children).filter(child=>child.matches('button, input[type="submit"], input[type="button"], .frm_prev_page')&&child.getClientRects().length).map(child=>child.getBoundingClientRect().top);if(!buttonTops.length)return;const offset=Math.round((input.getBoundingClientRect().top- -Math.min(...buttonTops))*100)/100;if(Math.abs(offset)>=.5)submitContainer.style.setProperty("--frm-inline-submit-offset",`${offset}px`)}function getInlineSubmitRowInput(submitContainer){const submitTop=submitContainer.getBoundingClientRect().top;let sibling=submitContainer.previousElementSibling;while(sibling){if(sibling.classList.contains("frm_form_field")&&sibling.getClientRects().length){const input=sibling.querySelector('input:not([type="hidden"]), select, textarea');if(input&&input.getClientRects().length)return Math.abs(sibling.getBoundingClientRect().top- -submitTop)<1?input:null}sibling=sibling.previousElementSibling}return null}function maybeShowNewTabFallbackMessage(){if(!window.frmShowNewTabFallback)return;const messageEl=document.querySelector(`#frm_form_${frmShowNewTabFallback.formId}_container .frm_message`);if(!messageEl)return;messageEl.insertAdjacentHTML("beforeend",` ${frmShowNewTabFallback.message}`)}function setCustomValidityMessage(){const forms=document.getElementsByClassName("frm-show-form");const {length}=forms;for(let index=0;index< -length;++index)forms[index].addEventListener("invalid",function(event){const {target}=event;if(shouldUpdateValidityMessage(target))target.setCustomValidity(target.dataset.invmsg)},true)}function enableSubmitButtonOnBackButtonPress(){window.addEventListener("pageshow",function(event){if(event.persisted){document.querySelectorAll(".frm_loading_form").forEach(function(form){enableSubmitButton(form)});removeSubmitLoading()}})}function destroyhCaptcha(){if(!window.hasOwnProperty("hcaptcha")||!document.querySelector(".frm-show-form .h-captcha"))return; -window.hcaptcha=null}function getUniqueKey(){const uniqueKey=Array.from(window.crypto.getRandomValues(new Uint8Array(8))).map(b=>b.toString(16).padStart(2,"0")).join("");const timestamp=Date.now().toString(16);return`${uniqueKey}-${timestamp}`}function animateScroll(start,end,duration){if(!window.hasOwnProperty("performance")||!window.hasOwnProperty("requestAnimationFrame")){document.documentElement.scrollTop=end;return}const startTime=performance.now();const step=currentTime=>{const progress=Math.min((currentTime- -startTime)/duration,1);document.documentElement.scrollTop=start+(end-start)*progress;if(progress<1)requestAnimationFrame(step)};requestAnimationFrame(step)}function maybeFixCaptchaLabel(captcha){const form=captcha.closest("form");if(!form)return;const label=form.querySelector('label[for="g-recaptcha-response"], label[for="cf-turnstile-response"]');const captchaResponse=form.querySelector('[name="g-recaptcha-response"], [name="cf-turnstile-response"]');if(label&&captchaResponse)label.htmlFor=captchaResponse.id} -function checkQuantityFieldMinMax(input){if(""===input.value)return 0;const val=parseFloat(input.value?input.value.trim():0);if(isNaN(val))return 0;let max=input.hasAttribute("max")?parseFloat(input.getAttribute("max")):0;let min=input.hasAttribute("min")?parseFloat(input.getAttribute("min")):0;max=isNaN(max)?0:max;min=isNaN(min)?0:Math.max(0,min);if(valmax){input.value=max;return max}return val}function triggerChange(input,fieldKey){if(fieldKey=== -undefined)fieldKey="dependent";jQuery(input).trigger({type:"change",selfTriggered:true,frmTriggered:fieldKey})}function calcProductsTotal(e){if("object"===typeof frmProForm)return;if(typeof __FRMCURR==="undefined")return;const totalFields=document.querySelectorAll("[data-frmtotal]");if(!totalFields.length)return;const formTotals=[];totalFields.forEach(totalField=>{let total=0;const form=totalField.closest("form");if(!form)return;const formId=form.querySelector('input[name="form_id"]').value;const currency= -getCurrency(formId);if(undefined!==formTotals[formId])total=formTotals[formId];else{form.querySelectorAll("input[data-frmprice],select:has([data-frmprice])").forEach(function(input){let quantity=0;let price=0;const isSingle="hidden"===input.type;if(input.tagName==="SELECT"){if(input.selectedIndex!==-1)price=input.options[input.selectedIndex].getAttribute("data-frmprice")}else{if(!isSingle&&!input.matches(":checked"))return;price=input.getAttribute("data-frmprice")}if(!price)price=0;else{price=preparePrice(price, -currency);quantity=getQuantity(input);price=parseFloat(quantity)*parseFloat(price)}if("true"===input.getAttribute("data-frmdiscount"))price=price*-1;total+=price});formTotals[formId]=total}total=isNaN(total)?0:total;currency.decimal_separator=currency.decimal_separator.trim();if(!currency.decimal_separator.length)currency.decimal_separator=".";totalField.value=roundTotal(total,currency);total=normalizeTotal(total,currency);triggerChange(totalField);total=formatCurrency(total,currency);const formatted= -totalField.previousElementSibling;if(formatted?.matches(".frm_total_formatted")){formatted.innerHTML=total;return}const formattedEls=totalField.closest(".frm_form_field").querySelectorAll(".frm_total_formatted");formattedEls.forEach(formattedEl=>{formattedEl.innerHTML=total})})}function normalizeTotal(total,currency){const isLargeTotal=total>Number.MAX_SAFE_INTEGER;total=roundTotal(total,currency);return maybeAddTrailingZeroToPrice(total,currency,isLargeTotal)}function roundTotal(total,currency){const isLargeTotal= -total>Number.MAX_SAFE_INTEGER;if(!isLargeTotal){const {decimals}=currency;total=decimals>0?round10(total,decimals):Math.ceil(total)}return total}function round10(value,decimals){return Number(`${Math.round(`${value}e${decimals}`)}e-${decimals}`)}function formatCurrency(total,currency){total=maybeAddTrailingZeroToPrice(total,currency);if(total.length&&(total[total.length-1]==="."||total[total.length-1]===currency.decimal_separator))total=total.substr(0,total.length-1);total=maybeRemoveTrailingZerosFromPrice(total, -currency);total=addThousands(total,currency);const leftSymbol=currency.symbol_left?currency.symbol_left+currency.symbol_padding:"";const rightSymbol=currency.symbol_right?currency.symbol_padding+currency.symbol_right:"";return`${leftSymbol}${total}${rightSymbol}`}function getCurrency(formId){if(undefined!==window.__FRMCURR&&undefined!==window.__FRMCURR[formId])return window.__FRMCURR[formId];return{symbol_left:"$",symbol_right:"",symbol_padding:"",thousand_separator:",",decimal_separator:".",decimals:2}} -function getQuantity(field){const fieldID=frmFrontForm.getFieldId(field,false);if(!fieldID)return 0;const quantityField=getQuantityField(field,fieldID);if(!quantityField)return 1;return checkQuantityFieldMinMax(quantityField)}function getQuantityField(element,fieldID){const quantityFields=element.closest("form").querySelectorAll("[data-frmproduct]");if(!quantityFields.length)return null;fieldID=fieldID.toString();return Array.from(quantityFields).find(element=>{let ids;ids=JSON.parse(element.getAttribute("data-frmproduct").trim()); -if(""===ids)return false;ids="string"===typeof ids?[ids]:ids;return ids.includes(fieldID)})}function preparePrice(price,currency){if(!price)return 0;price=`${price}`;const regex=getRegexForPrice(currency);const matches=price.match(regex);if(null===matches)return 0;price=matches.length?matches[matches.length-1]:0;price=price.trim();if(currency.decimal_separator==="."&&3===price.split(".").length&&price[0]===".")price=price.substr(1);if(price){price=maybeUseDecimal(price,currency);price=price.split(currency.thousand_separator).join("").replace(currency.decimal_separator, +resizeObserver.observe(element)}});scheduleAlignment()};observeFields();const mutationObserver=new MutationObserver(mutations=>{if(mutations.some(mutation=>isInlineFormMutation(mutation,observed)))observeFields()});mutationObserver.observe(document.body,{childList:true,subtree:true});if(document.fonts?.ready)document.fonts.ready.then(scheduleAlignment)}function isInlineFormMutation(mutation,observed){if(mutation.target.closest?.(".frm_inline_form"))return true;for(const node of mutation.addedNodes)if(node.nodeType=== +Node.ELEMENT_NODE&&(node.matches(".frm_inline_form")||node.querySelector(".frm_inline_form")))return true;if(mutation.removedNodes.length)for(const element of observed)if(!element.isConnected)return true;return false}function alignInlineSubmitButtons(){document.querySelectorAll(".with_frm_style.frm_inline_top .frm_fields_container > .frm_submit, .with_frm_style .frm_fields_container > .frm_submit.frm_inline_submit").forEach(alignInlineSubmitButton)}function alignInlineSubmitButton(submitContainer){submitContainer.style.removeProperty("--frm-inline-submit-offset"); +const input=getInlineSubmitRowInput(submitContainer);if(!input)return;const buttonTops=Array.from(submitContainer.children).filter(child=>child.matches('button, input[type="submit"], input[type="button"], .frm_prev_page')&&child.getClientRects().length).map(child=>child.getBoundingClientRect().top);if(!buttonTops.length)return;const offset=Math.round((input.getBoundingClientRect().top-Math.min(...buttonTops))*100)/100;if(Math.abs(offset)>=.5)submitContainer.style.setProperty("--frm-inline-submit-offset", +`${offset}px`)}function getInlineSubmitRowInput(submitContainer){const submitTop=submitContainer.getBoundingClientRect().top;let sibling=submitContainer.previousElementSibling;while(sibling){if(sibling.classList.contains("frm_form_field")&&sibling.getClientRects().length){const input=sibling.querySelector('input:not([type="hidden"]), select, textarea');if(input&&input.getClientRects().length)return Math.abs(sibling.getBoundingClientRect().top-submitTop)<1?input:null}sibling=sibling.previousElementSibling}return null} +function maybeShowNewTabFallbackMessage(){if(!window.frmShowNewTabFallback)return;const messageEl=document.querySelector(`#frm_form_${frmShowNewTabFallback.formId}_container .frm_message`);if(!messageEl)return;messageEl.insertAdjacentHTML("beforeend",` ${frmShowNewTabFallback.message}`)}function setCustomValidityMessage(){const forms=document.getElementsByClassName("frm-show-form");const {length}=forms;for(let index=0;indexb.toString(16).padStart(2,"0")).join("");const timestamp=Date.now().toString(16);return`${uniqueKey}-${timestamp}`}function animateScroll(start,end,duration){if(!window.hasOwnProperty("performance")||!window.hasOwnProperty("requestAnimationFrame")){document.documentElement.scrollTop=end;return}const startTime=performance.now();const step=currentTime=>{const progress=Math.min((currentTime-startTime)/duration,1);document.documentElement.scrollTop= +start+(end-start)*progress;if(progress<1)requestAnimationFrame(step)};requestAnimationFrame(step)}function maybeFixCaptchaLabel(captcha){const form=captcha.closest("form");if(!form)return;const label=form.querySelector('label[for="g-recaptcha-response"], label[for="cf-turnstile-response"]');const captchaResponse=form.querySelector('[name="g-recaptcha-response"], [name="cf-turnstile-response"]');if(label&&captchaResponse)label.htmlFor=captchaResponse.id}function checkQuantityFieldMinMax(input){if(""=== +input.value)return 0;const val=parseFloat(input.value?input.value.trim():0);if(isNaN(val))return 0;let max=input.hasAttribute("max")?parseFloat(input.getAttribute("max")):0;let min=input.hasAttribute("min")?parseFloat(input.getAttribute("min")):0;max=isNaN(max)?0:max;min=isNaN(min)?0:Math.max(0,min);if(valmax){input.value=max;return max}return val}function triggerChange(input,fieldKey){if(fieldKey===undefined)fieldKey="dependent";jQuery(input).trigger({type:"change", +selfTriggered:true,frmTriggered:fieldKey})}function calcProductsTotal(e){if("object"===typeof frmProForm)return;if(typeof __FRMCURR==="undefined")return;const totalFields=document.querySelectorAll("[data-frmtotal]");if(!totalFields.length)return;const formTotals=[];totalFields.forEach(totalField=>{let total=0;const form=totalField.closest("form");if(!form)return;const formId=form.querySelector('input[name="form_id"]').value;const currency=getCurrency(formId);if(undefined!==formTotals[formId])total= +formTotals[formId];else{form.querySelectorAll("input[data-frmprice],select:has([data-frmprice])").forEach(function(input){let quantity=0;let price=0;const isSingle="hidden"===input.type;if(input.tagName==="SELECT"){if(input.selectedIndex!==-1)price=input.options[input.selectedIndex].getAttribute("data-frmprice")}else{if(!isSingle&&!input.matches(":checked"))return;price=input.getAttribute("data-frmprice")}if(!price)price=0;else{price=preparePrice(price,currency);quantity=getQuantity(input);price= +parseFloat(quantity)*parseFloat(price)}if("true"===input.getAttribute("data-frmdiscount"))price=price*-1;total+=price});formTotals[formId]=total}total=isNaN(total)?0:total;currency.decimal_separator=currency.decimal_separator.trim();if(!currency.decimal_separator.length)currency.decimal_separator=".";totalField.value=roundTotal(total,currency);total=normalizeTotal(total,currency);triggerChange(totalField);total=formatCurrency(total,currency);const formatted=totalField.previousElementSibling;if(formatted?.matches(".frm_total_formatted")){formatted.innerHTML= +total;return}const formattedEls=totalField.closest(".frm_form_field").querySelectorAll(".frm_total_formatted");formattedEls.forEach(formattedEl=>{formattedEl.innerHTML=total})})}function normalizeTotal(total,currency){const isLargeTotal=total>Number.MAX_SAFE_INTEGER;total=roundTotal(total,currency);return maybeAddTrailingZeroToPrice(total,currency,isLargeTotal)}function roundTotal(total,currency){const isLargeTotal=total>Number.MAX_SAFE_INTEGER;if(!isLargeTotal){const {decimals}=currency;total=decimals> +0?round10(total,decimals):Math.ceil(total)}return total}function round10(value,decimals){return Number(`${Math.round(`${value}e${decimals}`)}e-${decimals}`)}function formatCurrency(total,currency){total=maybeAddTrailingZeroToPrice(total,currency);if(total.length&&(total[total.length-1]==="."||total[total.length-1]===currency.decimal_separator))total=total.substr(0,total.length-1);total=maybeRemoveTrailingZerosFromPrice(total,currency);total=addThousands(total,currency);const leftSymbol=currency.symbol_left? +currency.symbol_left+currency.symbol_padding:"";const rightSymbol=currency.symbol_right?currency.symbol_padding+currency.symbol_right:"";return`${leftSymbol}${total}${rightSymbol}`}function getCurrency(formId){if(undefined!==window.__FRMCURR&&undefined!==window.__FRMCURR[formId])return window.__FRMCURR[formId];return{symbol_left:"$",symbol_right:"",symbol_padding:"",thousand_separator:",",decimal_separator:".",decimals:2}}function getQuantity(field){const fieldID=frmFrontForm.getFieldId(field,false); +if(!fieldID)return 0;const quantityField=getQuantityField(field,fieldID);if(!quantityField)return 1;return checkQuantityFieldMinMax(quantityField)}function getQuantityField(element,fieldID){const quantityFields=element.closest("form").querySelectorAll("[data-frmproduct]");if(!quantityFields.length)return null;fieldID=fieldID.toString();return Array.from(quantityFields).find(element=>{let ids;ids=JSON.parse(element.getAttribute("data-frmproduct").trim());if(""===ids)return false;ids="string"===typeof ids? +[ids]:ids;return ids.includes(fieldID)})}function preparePrice(price,currency){if(!price)return 0;price=`${price}`;const regex=getRegexForPrice(currency);const matches=price.match(regex);if(null===matches)return 0;price=matches.length?matches[matches.length-1]:0;price=price.trim();if(currency.decimal_separator==="."&&3===price.split(".").length&&price[0]===".")price=price.substr(1);if(price){price=maybeUseDecimal(price,currency);price=price.split(currency.thousand_separator).join("").replace(currency.decimal_separator, ".")}return price}function getRegexForPrice(currency){let regexString="[0-9,.";if(currency.thousand_separator!=="."&¤cy.thousand_separator!==",")regexString+=currency.thousand_separator;if(currency.decimal_separator!=="."&¤cy.decimal_separator!==",")regexString+=currency.decimal_separator;regexString+="]*\\.?\\,?[0-9]+";return new RegExp(regexString,"g")}function maybeUseDecimal(price,currency){let usedForDecimal;let priceParts;if("."===currency.thousand_separator){priceParts=price.split("."); usedForDecimal=2===priceParts.length&&2===priceParts[1].length;if(usedForDecimal)price=price.replace(".",currency.decimal_separator)}return price}function maybeAddTrailingZeroToPrice(price,currency,force=false){if("number"!==typeof price&&!force)return price;price=String(price);const pos=price.indexOf(".");if(pos===-1){price=`${price}.`;for(let n=0;n} fieldIds Pending field IDs in request order. * @param {number} maxFields The caller's maximum number of fields per request. * @param {number} minimumWeight The baseline cost of a field in this request. diff --git a/js/src/admin/fieldOrder.js b/js/src/admin/fieldOrder.js index 859c48e71b..8e1aedb462 100644 --- a/js/src/admin/fieldOrder.js +++ b/js/src/admin/fieldOrder.js @@ -3,7 +3,7 @@ const pendingOrders = new Map(); /** * Track order changes without activating settings, and synchronize existing controls. * - * @since x.x + * @since 7.1 * @param {HTMLFormElement} form The builder save form. * @return {boolean} Whether any order changed. */ @@ -60,7 +60,7 @@ export function syncFieldOrder( form ) { /** * Clear confirmed changes while keeping any order edits made during the save request. * - * @since x.x + * @since 7.1 * @param {HTMLFormElement} form The builder save form. * @param {string} savedOrders The JSON map sent with the successful save. * @return {void} diff --git a/js/src/admin/fieldPlacement.js b/js/src/admin/fieldPlacement.js index 3722beb7fe..82ae41f839 100644 --- a/js/src/admin/fieldPlacement.js +++ b/js/src/admin/fieldPlacement.js @@ -1,7 +1,7 @@ /** * Check every field carried by a drag before a container accepts the drop. * - * @since x.x + * @since 7.1 * @param {HTMLElement} draggable Field, palette button, or row being dragged. * @param {HTMLElement} droppable Destination row or container. * @return {boolean} Whether all fields are compatible with the container. diff --git a/js/src/admin/fieldPreview.js b/js/src/admin/fieldPreview.js index e371c6d586..934ad6f010 100644 --- a/js/src/admin/fieldPreview.js +++ b/js/src/admin/fieldPreview.js @@ -1,7 +1,7 @@ /** * Render the displayed choices without populating an interactive option list. * - * @since x.x + * @since 7.1 * @param {HTMLSelectElement} field The preview dropdown. * @param {Array} choices Choices from the field settings. * @param {string} placeholder The current placeholder text. @@ -39,7 +39,7 @@ export function renderDropdownPreview( field, choices, placeholder = '' ) { /** * Refresh an address dropdown from its default and placeholder settings. * - * @since x.x + * @since 7.1 * @param {HTMLSelectElement} field The address preview dropdown. * @param {HTMLElement} settings The field settings panel. * @return {void} @@ -58,7 +58,7 @@ export function updateComboSelectPreview( field, settings ) { /** * Replace an address layout and restore the current, unsaved subfield settings. * - * @since x.x + * @since 7.1 * @param {HTMLSelectElement} setting The address type setting. * @param {Function} updatePreview The shared field preview updater. * @return {void} diff --git a/js/src/admin/fieldPreviewQueue.js b/js/src/admin/fieldPreviewQueue.js index 3e75f40b78..9092c6ded7 100644 --- a/js/src/admin/fieldPreviewQueue.js +++ b/js/src/admin/fieldPreviewQueue.js @@ -1,7 +1,7 @@ /** * Keep preview data in memory until its placeholder approaches the viewport. * - * @since x.x + * @since 7.1 */ const pending = new Map(); const visible = new Set(); @@ -16,7 +16,7 @@ let scheduled = false; /** * Render small forms eagerly and reserve viewport loading for fields after the first fifteen. * - * @since x.x + * @since 7.1 * @param {NodeList|HTMLElement[]} fields All builder fields in form order, including rendered fields. * @return {void} */ @@ -26,7 +26,7 @@ export function setInitialFieldPreviews( fields ) { } /** - * @since x.x + * @since 7.1 * @param {HTMLElement} placeholder The field's sized placeholder. * @param {Function} render Replaces the placeholder and returns initialization data. * @param {Function} initialize Initializes the fields drawn in one slice. @@ -59,7 +59,7 @@ export function queueFieldPreview( placeholder, render, initialize ) { } /** - * @since x.x + * @since 7.1 * @param {string} fieldId Numeric field ID. * @return {void} */ @@ -76,7 +76,7 @@ export function forgetFieldPreview( fieldId ) { /** * Draw a preview immediately when an interaction needs its controls. * - * @since x.x + * @since 7.1 * @param {string} fieldId Numeric field ID. * @return {Object|null} Initialization data for the drawn field. */ diff --git a/js/src/admin/fieldPreviews.js b/js/src/admin/fieldPreviews.js index 1c1419e786..a66305a5d1 100644 --- a/js/src/admin/fieldPreviews.js +++ b/js/src/admin/fieldPreviews.js @@ -5,7 +5,7 @@ * shows. The markup matches classes/views/frm-forms/add_field.php, and the settings panels are * requested separately by fieldSettingsLoader.js. * - * @since x.x + * @since 7.1 */ import { addFieldSettingsMetadata } from './deferredFieldSettings'; @@ -30,7 +30,7 @@ let strings; * builder and add-ons need to find the fields. The previews themselves are drawn later by * renderFieldPreviews(), so the page does not lay out every field at once. * - * @since x.x + * @since 7.1 * @return {string[]} The ids of the fields, in page order. */ export function hydrateFieldPreviews() { @@ -70,7 +70,7 @@ export function hydrateFieldPreviews() { /** * Queue hydrated previews for rendering as their placeholders approach the viewport. * - * @since x.x + * @since 7.1 * @param {Function} onRendered Called with the old and new list item of each preview drawn. * @param {Function} onSlice Called with what onRendered returned for each preview in a slice. * @return {void} diff --git a/js/src/admin/fieldSettingsLoader.js b/js/src/admin/fieldSettingsLoader.js index d54495ef7e..23f1288b21 100644 --- a/js/src/admin/fieldSettingsLoader.js +++ b/js/src/admin/fieldSettingsLoader.js @@ -4,7 +4,7 @@ * Settings load in the background in page order. A field the builder needs right away, because * it was selected or edited, jumps the queue in its own request. * - * @since x.x + * @since 7.1 */ import { cacheFieldSettings } from './deferredFieldSettings'; @@ -40,7 +40,7 @@ let backgroundStarted = false; * Nothing loads in the background until startFieldSettingsQueue() is called, but a field the * builder needs right away can be requested as soon as it is queued. * - * @since x.x + * @since 7.1 * @param {Object} options * @param {string} options.formId The form being edited. * @param {string[]} options.fieldIds The fields that still need their settings, in page order. @@ -55,7 +55,7 @@ export function queueFieldSettings( options ) { /** * Load the queued settings in the background, in page order. * - * @since x.x + * @since 7.1 * @return {void} */ export function startFieldSettingsQueue() { @@ -64,7 +64,7 @@ export function startFieldSettingsQueue() { } /** - * @since x.x + * @since 7.1 * @param {string} fieldId Numeric field ID. * @return {boolean} True until the field's settings have been requested and received. */ @@ -78,7 +78,7 @@ export function isFieldSettingsPending( fieldId ) { * * Fields requested in the same task share one request. * - * @since x.x + * @since 7.1 * @param {string} fieldId Numeric field ID. * @return {void} */ @@ -95,7 +95,7 @@ export function requestFieldSettingsNow( fieldId ) { } /** - * @since x.x + * @since 7.1 * @param {string[]} fieldIds Numeric field IDs. * @return {Promise} Resolves once none of the fields has a request in progress. */ @@ -108,7 +108,7 @@ export function waitForFieldSettings( fieldIds ) { /** * Ask once more for settings whose last request failed. * - * @since x.x + * @since 7.1 * @param {string[]} fieldIds Numeric field IDs. * @return {Promise} Resolves with the fields whose settings still failed to load. */ @@ -127,7 +127,7 @@ export function retryFailedFieldSettings( fieldIds ) { /** * Forget a deleted field so its settings are not requested. * - * @since x.x + * @since 7.1 * @param {string} fieldId Numeric field ID. * @return {void} */ diff --git a/js/src/admin/fieldSizePreview.js b/js/src/admin/fieldSizePreview.js index 43b7b12602..c6ad660d43 100644 --- a/js/src/admin/fieldSizePreview.js +++ b/js/src/admin/fieldSizePreview.js @@ -12,7 +12,7 @@ const SKIPPED_INPUT_TYPES = new Set( [ 'hidden', 'checkbox', 'radio', 'range', ' /** * Listen for Field Size changes in the field settings. * - * @since x.x + * @since 7.1 * * @return {void} */ diff --git a/js/src/color-picker/format-color.js b/js/src/color-picker/format-color.js index 9a7cb6921c..8216fc71d8 100644 --- a/js/src/color-picker/format-color.js +++ b/js/src/color-picker/format-color.js @@ -1,7 +1,7 @@ /** * Preserve the input's RGB or HSL format when WordPress returns hexadecimal. * - * @since x.x + * @since 7.1 * @param {string} hex Color returned by WordPress. * @param {string} previous Previously saved color. * @param {string} selectedFormat Selected picker format. @@ -58,7 +58,7 @@ export function formatColor( hex, previous, selectedFormat ) { * * This matches FrmStylesHelper::is_hex. * - * @since x.x + * @since 7.1 * @param {string} color Color value. * @return {boolean} True when the value is a bare hex color. */ @@ -71,7 +71,7 @@ export function isBareHex( color ) { * * Style settings save hex colors without the hash. * - * @since x.x + * @since 7.1 * @param {string} color Color value. * @return {string} The color, with a hash when it is a bare hex color. */ @@ -83,7 +83,7 @@ export function addColorHash( color ) { /** * Check if text typed in the picker's hex field is a complete hex color. * - * @since x.x + * @since 7.1 * @param {string} value Hex field text, with or without the hash. * @return {boolean} True when the text is a complete hex color. */ @@ -96,7 +96,7 @@ export function isTypedHexValid( value ) { * * The hex field is a text input limited to 7 or 9 characters. The RGB and HSL fields are number inputs. * - * @since x.x + * @since 7.1 * @param {HTMLInputElement} input An input rendered by the color picker. * @return {boolean} True for the hex text field. */ @@ -107,7 +107,7 @@ export function isHexField( input ) { /** * Convert a saved picker value to the hexadecimal value WordPress emits. * - * @since x.x + * @since 7.1 * @param {string} color Saved color value. * @return {string} Hex color, or an empty string when unsupported. */ diff --git a/js/src/color-picker/index.js b/js/src/color-picker/index.js index 91a1cd5ef5..6b01fabd61 100644 --- a/js/src/color-picker/index.js +++ b/js/src/color-picker/index.js @@ -13,7 +13,7 @@ let activePicker; /** * Initialize once, preserving the original input for form serialization. * - * @since x.x + * @since 7.1 * @param {HTMLInputElement} input Color setting input. * @param {Object} options Picker callbacks and default color. * @return {Object} The picker adapter. @@ -244,7 +244,7 @@ function init( input, options = {} ) { * * Pro 7.0.1 and older call wpColorPicker() on the color inputs in its email style settings. * - * @since x.x + * @since 7.1 * @param {HTMLInputElement} input Color setting input. * @return {void} */ diff --git a/js/src/settings-components/components/slider-component.js b/js/src/settings-components/components/slider-component.js index d22f92d0f5..b2cd6d3525 100644 --- a/js/src/settings-components/components/slider-component.js +++ b/js/src/settings-components/components/slider-component.js @@ -95,6 +95,14 @@ export default class frmSliderComponent { this.triggerValueChange( index ); } ); + // The value the slider had before the user started typing. Each valid keystroke is + // previewed live, so typing "999" commits "9" before "99" is rejected. A rejected + // final value restores this one rather than keeping the partially typed prefix. + let valueBeforeEdit = null; + valueInput.addEventListener( 'focus', () => { + valueBeforeEdit = this.getRangeValue( rangeInput, index ); + } ); + // Sync text input changes back to the range. const onValueChange = event => { const unit = frmSliderComponent.getUnit( element ); @@ -111,16 +119,23 @@ export default class frmSliderComponent { // always false - reject it and resync the text box to the last committed value instead // of leaving it showing the rejected input while the range stays unchanged. if ( isNaN( newValue ) || ! isValid ) { - if ( 'change' === event.type ) { - valueInput.value = this.getRangeValue( rangeInput, index ); + if ( 'change' !== event.type ) { + return; } + + if ( null !== valueBeforeEdit && String( valueBeforeEdit ) !== String( this.getRangeValue( rangeInput, index ) ) ) { + this.applyTextValue( element, rangeInput, index, valueBeforeEdit, unit ); + } + + valueInput.value = this.getRangeValue( rangeInput, index ); return; } - this.setRangeValue( rangeInput, index, newValue ); - frmSliderComponent.refreshRange( rangeInput, element, newValue ); - this.options[ index ].fullValue = this.updateValue( element, newValue + unit ); - this.triggerValueChange( index ); + this.applyTextValue( element, rangeInput, index, newValue, unit ); + + if ( 'change' === event.type ) { + valueBeforeEdit = newValue; + } }; valueInput.addEventListener( 'input', onValueChange ); valueInput.addEventListener( 'change', onValueChange ); @@ -253,6 +268,25 @@ export default class frmSliderComponent { rangeInput.value = value; } + /** + * Moves a slider to a value typed into its text box and saves it to the hidden input. + * + * @since 7.1 + * + * @param {HTMLElement} element - The slider component element. + * @param {HTMLInputElement} rangeInput - The native range input element. + * @param {number} index - The index of this slider in the options array. + * @param {number|string} value - The value to apply, without the unit. + * @param {string} unit - The unit selected for the slider. + * @return {void} + */ + applyTextValue( element, rangeInput, index, value, unit ) { + this.setRangeValue( rangeInput, index, value ); + frmSliderComponent.refreshRange( rangeInput, element, value ); + this.options[ index ].fullValue = this.updateValue( element, value + unit ); + this.triggerValueChange( index ); + } + /** * Makes sure the range can hold the given value exactly. * diff --git a/languages/formidable.pot b/languages/formidable.pot index 6eeed9a536..4606ddc466 100644 --- a/languages/formidable.pot +++ b/languages/formidable.pot @@ -2,21 +2,21 @@ # This file is distributed under the same license as the Formidable Forms plugin. msgid "" msgstr "" -"Project-Id-Version: Formidable Forms 7.0\n" +"Project-Id-Version: Formidable Forms 7.1\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/formidable\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2026-10-14T12:47:19+00:00\n" +"POT-Creation-Date: 2026-11-18T17:38:36+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.11.0\n" "X-Domain: formidable\n" #. Plugin Name of the plugin #: formidable.php -#: classes/controllers/FrmAbilitiesController.php:151 +#: classes/controllers/FrmAbilitiesController.php:148 msgid "Formidable Forms" msgstr "" @@ -36,141 +36,166 @@ msgstr "" msgid "Strategy11 Form Builder Team" msgstr "" -#: classes/controllers/FrmAbilitiesController.php:152 +#: classes/controllers/FrmAbilitiesController.php:149 msgid "Abilities for managing Formidable forms and entries." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:40 +#: classes/controllers/FrmAbilitiesEntriesController.php:41 msgid "List Entries" msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:41 +#: classes/controllers/FrmAbilitiesEntriesController.php:42 msgid "Retrieve a list of Formidable entries (form submissions). Use list-forms to find the form_id." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:49 +#: classes/controllers/FrmAbilitiesEntriesController.php:67 msgid "Form ID or form_key to filter entries. Optional, returns entries from all forms if not provided." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:53 +#: classes/controllers/FrmAbilitiesEntriesController.php:71 #: classes/controllers/FrmAbilitiesFormsController.php:51 #: classes/controllers/FrmAbilitiesStylesController.php:47 msgid "Current page of the collection." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:58 +#: classes/controllers/FrmAbilitiesEntriesController.php:76 #: classes/controllers/FrmAbilitiesFormsController.php:56 #: classes/controllers/FrmAbilitiesStylesController.php:52 msgid "Maximum number of items to return per page." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:63 +#: classes/controllers/FrmAbilitiesEntriesController.php:81 #: classes/controllers/FrmAbilitiesFormsController.php:61 #: classes/controllers/FrmAbilitiesStylesController.php:57 msgid "Order of results (asc or desc, case-insensitive)." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:69 +#: classes/controllers/FrmAbilitiesEntriesController.php:87 msgid "Field to order by (id, created_at, etc.)." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:74 -msgid "Search term to filter entries by field values." +#: classes/controllers/FrmAbilitiesEntriesController.php:92 +msgid "Return entries created on or after this day (YYYY-MM-DD format, UTC)." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:78 -msgid "Start date for filtering entries (YYYY-MM-DD format)." +#: classes/controllers/FrmAbilitiesEntriesController.php:96 +msgid "Return entries created on or before this day, including the whole day (YYYY-MM-DD, UTC). Add a time (HH:MM:SS) to end there." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:82 -msgid "End date for filtering entries (YYYY-MM-DD format)." +#: classes/controllers/FrmAbilitiesEntriesController.php:101 +msgid "Filter by status: 0 submitted, 1 draft, 4 spam. Omitted returns submitted entries and drafts, not spam." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:87 -msgid "Filter by draft status: 0 returns only submitted entries, 1 returns only drafts. Both are included when omitted." +#: classes/controllers/FrmAbilitiesEntriesController.php:108 +msgid "Search term to filter entries by field values. Requires form_id." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:112 +#: classes/controllers/FrmAbilitiesEntriesController.php:132 msgid "Array of entry objects keyed by item_key. Each entry includes id, item_key, form_id, user_id, created_at, and meta (field values)." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:121 -#: classes/controllers/FrmAbilitiesEntriesController.php:185 +#: classes/controllers/FrmAbilitiesEntriesController.php:141 +#: classes/controllers/FrmAbilitiesEntriesController.php:205 msgid "Numeric entry ID" msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:125 -#: classes/controllers/FrmAbilitiesEntriesController.php:189 +#: classes/controllers/FrmAbilitiesEntriesController.php:145 +#: classes/controllers/FrmAbilitiesEntriesController.php:209 msgid "Unique alphanumeric entry key" msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:129 -#: classes/controllers/FrmAbilitiesEntriesController.php:193 +#: classes/controllers/FrmAbilitiesEntriesController.php:149 +#: classes/controllers/FrmAbilitiesEntriesController.php:213 msgid "ID of the form this entry belongs to" msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:133 -#: classes/controllers/FrmAbilitiesEntriesController.php:197 +#: classes/controllers/FrmAbilitiesEntriesController.php:153 +#: classes/controllers/FrmAbilitiesEntriesController.php:217 msgid "ID of the user who submitted the entry (0 if guest)" msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:137 -#: classes/controllers/FrmAbilitiesEntriesController.php:201 +#: classes/controllers/FrmAbilitiesEntriesController.php:157 +#: classes/controllers/FrmAbilitiesEntriesController.php:221 msgid "Entry creation date in MySQL format" msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:141 -#: classes/controllers/FrmAbilitiesEntriesController.php:205 +#: classes/controllers/FrmAbilitiesEntriesController.php:161 +#: classes/controllers/FrmAbilitiesEntriesController.php:225 msgid "Entry last update date in MySQL format" msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:145 -#: classes/controllers/FrmAbilitiesEntriesController.php:209 +#: classes/controllers/FrmAbilitiesEntriesController.php:165 +#: classes/controllers/FrmAbilitiesEntriesController.php:229 msgid "The entry status: 0 for submitted, 1 for draft and 4 for spam. Add-ons may use other values." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:149 -#: classes/controllers/FrmAbilitiesEntriesController.php:213 +#: classes/controllers/FrmAbilitiesEntriesController.php:169 +#: classes/controllers/FrmAbilitiesEntriesController.php:233 msgid "Field values keyed by field ID or field_key" msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:166 +#: classes/controllers/FrmAbilitiesEntriesController.php:186 msgid "Get Entry" msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:167 +#: classes/controllers/FrmAbilitiesEntriesController.php:187 msgid "Retrieve a single Formidable entry by ID or key. Returns all field values and entry metadata." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:175 +#: classes/controllers/FrmAbilitiesEntriesController.php:195 +#: classes/controllers/FrmAbilitiesEntriesController.php:265 msgid "Entry ID or item_key. Required." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:181 +#: classes/controllers/FrmAbilitiesEntriesController.php:201 msgid "Entry object with comprehensive field values and metadata." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:234 +#: classes/controllers/FrmAbilitiesEntriesController.php:256 +msgid "Mark Entry as Spam" +msgstr "" + +#: classes/controllers/FrmAbilitiesEntriesController.php:257 +msgid "Move a submitted Formidable entry to spam. The entry is kept and can be restored from the Spam tab." +msgstr "" + +#: classes/controllers/FrmAbilitiesEntriesController.php:271 +msgid "The entry, with is_draft set to 4." +msgstr "" + +#: classes/controllers/FrmAbilitiesEntriesController.php:289 #: classes/helpers/FrmEntriesHelper.php:830 msgid "Delete Entry" msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:235 +#: classes/controllers/FrmAbilitiesEntriesController.php:290 msgid "Delete a Formidable entry." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:243 +#: classes/controllers/FrmAbilitiesEntriesController.php:298 msgid "Entry ID or item_key." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:249 +#: classes/controllers/FrmAbilitiesEntriesController.php:304 msgid "Deleted entry object." msgstr "" -#: classes/controllers/FrmAbilitiesEntriesController.php:739 +#: classes/controllers/FrmAbilitiesEntriesController.php:436 +msgid "A child entry cannot be marked as spam on its own. Mark its parent entry instead." +msgstr "" + +#: classes/controllers/FrmAbilitiesEntriesController.php:836 msgid "Nothing was found with that id." msgstr "" +#: classes/controllers/FrmAbilitiesEntriesController.php:848 +msgid "Only a submitted entry can be marked as spam." +msgstr "" + +#: classes/controllers/FrmAbilitiesEntriesController.php:850 +msgid "Spam entries cannot be stored while an active add-on does not support them." +msgstr "" + #: classes/controllers/FrmAbilitiesFieldsController.php:36 msgid "List Fields" msgstr "" @@ -208,186 +233,191 @@ msgid "Field type (text, textarea, radio, checkbox, dropdown, email, number, dat msgstr "" #: classes/controllers/FrmAbilitiesFieldsController.php:80 -msgid "Default value for the field" +msgid "Default value for the field. An array or object when the field holds several values, such as Address." msgstr "" #: classes/controllers/FrmAbilitiesFieldsController.php:84 -msgid "Radio, dropdown, or checkbox choices: strings, or {\"label\", \"value\"} objects when using separate values." +msgid "Field choices: strings, numbers (star rating, scale), or {\"label\", \"value\"} objects for separate values, or an object keyed by option key." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:89 +#: classes/controllers/FrmAbilitiesFieldsController.php:93 msgid "Display order of the field (lower numbers appear first)" msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:93 +#: classes/controllers/FrmAbilitiesFieldsController.php:97 msgid "Whether the field must be filled before form submission" msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:97 +#: classes/controllers/FrmAbilitiesFieldsController.php:101 msgid "Additional field options and settings" msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:101 +#: classes/controllers/FrmAbilitiesFieldsController.php:105 msgid "ID of the form this field belongs to" msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:105 +#: classes/controllers/FrmAbilitiesFieldsController.php:109 msgid "Field creation date in MySQL format" msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:126 +#: classes/controllers/FrmAbilitiesFieldsController.php:130 msgid "Create Field" msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:127 +#: classes/controllers/FrmAbilitiesFieldsController.php:131 msgid "Add a new field to an existing Formidable form. Use list-forms to find the form, and list-fields to see existing fields." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:138 +#: classes/controllers/FrmAbilitiesFieldsController.php:142 msgid "Form ID or form_key to add the field to. Required." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:142 +#: classes/controllers/FrmAbilitiesFieldsController.php:146 msgid "Field type. Required. Common types: text, textarea, radio, checkbox, dropdown, email, number, date, file, hidden, html, user_id, captcha." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:150 +#: classes/controllers/FrmAbilitiesFieldsController.php:154 #: classes/controllers/FrmAbilitiesFormsController.php:316 msgid "Field label. Defaults to field type name." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:154 +#: classes/controllers/FrmAbilitiesFieldsController.php:158 #: classes/controllers/FrmAbilitiesFormsController.php:320 msgid "Optional field description." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:158 +#: classes/controllers/FrmAbilitiesFieldsController.php:162 #: classes/controllers/FrmAbilitiesFormsController.php:324 msgid "Whether the field must be filled before form submission. Defaults to false." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:163 -#: classes/controllers/FrmAbilitiesFieldsController.php:253 +#: classes/controllers/FrmAbilitiesFieldsController.php:167 +#: classes/controllers/FrmAbilitiesFieldsController.php:257 msgid "Display order of the field. Lower numbers appear first." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:167 +#: classes/controllers/FrmAbilitiesFieldsController.php:171 msgid "Unique identifier for the field. Autogenerated if not provided." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:171 +#: classes/controllers/FrmAbilitiesFieldsController.php:175 msgid "Choices for radio, dropdown, or checkbox fields. An array of strings, an array of {\"label\", \"value\"} objects, or an object keyed by option key." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:184 -#: classes/controllers/FrmAbilitiesFieldsController.php:271 +#: classes/controllers/FrmAbilitiesFieldsController.php:188 +#: classes/controllers/FrmAbilitiesFieldsController.php:275 #: classes/controllers/FrmAbilitiesFormsController.php:350 msgid "Default value for the field." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:188 +#: classes/controllers/FrmAbilitiesFieldsController.php:192 #: classes/controllers/FrmAbilitiesFormsController.php:354 msgid "Placeholder text shown in empty fields." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:192 +#: classes/controllers/FrmAbilitiesFieldsController.php:196 msgid "Field options, merged over the type defaults: format, minnum, maxnum, step, classes, conditional logic, calculations, and the rest." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:201 +#: classes/controllers/FrmAbilitiesFieldsController.php:205 msgid "The newly created field object, including its id and field_key." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:219 +#: classes/controllers/FrmAbilitiesFieldsController.php:223 msgid "Update Field" msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:220 +#: classes/controllers/FrmAbilitiesFieldsController.php:224 msgid "Update an existing field on a Formidable form. Use list-fields to find the field id." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:228 +#: classes/controllers/FrmAbilitiesFieldsController.php:232 msgid "Form ID or form_key the field belongs to. Optional — derived from the field when omitted." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:232 +#: classes/controllers/FrmAbilitiesFieldsController.php:236 msgid "Field ID to update. Required. Use list-fields to find it." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:236 +#: classes/controllers/FrmAbilitiesFieldsController.php:240 msgid "Change the field to this type. The new type default options are applied." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:241 +#: classes/controllers/FrmAbilitiesFieldsController.php:245 msgid "Field label." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:245 +#: classes/controllers/FrmAbilitiesFieldsController.php:249 msgid "Field description." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:249 +#: classes/controllers/FrmAbilitiesFieldsController.php:253 msgid "Whether the field must be filled before form submission." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:257 +#: classes/controllers/FrmAbilitiesFieldsController.php:261 msgid "Choices for radio, dropdown, or checkbox fields. An array, or an object keyed by option key." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:264 +#: classes/controllers/FrmAbilitiesFieldsController.php:268 msgid "Field options, merged into the ones already stored. Send only the keys to change. A key sent empty is cleared." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:277 +#: classes/controllers/FrmAbilitiesFieldsController.php:281 msgid "Update result including the updated field_id." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:295 +#: classes/controllers/FrmAbilitiesFieldsController.php:299 msgid "Delete Field" msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:296 +#: classes/controllers/FrmAbilitiesFieldsController.php:300 msgid "Delete a field from a Formidable form. Use list-fields to find the field id." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:304 +#: classes/controllers/FrmAbilitiesFieldsController.php:308 msgid "Form ID or form_key the field belongs to. Optional, derived from the field when omitted." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:308 +#: classes/controllers/FrmAbilitiesFieldsController.php:312 msgid "Field ID to delete. Required. Use list-fields to find it." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:314 +#: classes/controllers/FrmAbilitiesFieldsController.php:318 msgid "Deleted field object." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:382 +#: classes/controllers/FrmAbilitiesFieldsController.php:386 msgid "Field creation failed." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:426 -#: classes/controllers/FrmAbilitiesFormsController.php:668 +#: classes/controllers/FrmAbilitiesFieldsController.php:430 +#: classes/controllers/FrmAbilitiesFormsController.php:689 msgid "No data provided to update." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:438 +#: classes/controllers/FrmAbilitiesFieldsController.php:443 msgid "Field update failed." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:477 +#: classes/controllers/FrmAbilitiesFieldsController.php:482 msgid "That field does not belong to that form." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:521 +#: classes/controllers/FrmAbilitiesFieldsController.php:526 msgid "A field type is required." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:726 +#: classes/controllers/FrmAbilitiesFieldsController.php:533 +#: classes/controllers/FrmFieldsController.php:204 +msgid "This field type cannot be placed in this section or repeater." +msgstr "" + +#: classes/controllers/FrmAbilitiesFieldsController.php:760 msgid "Repeater and embedded form fields need field_options.form_select set to an existing child form ID. Formidable Pro creates that child form automatically." msgstr "" -#: classes/controllers/FrmAbilitiesFieldsController.php:867 +#: classes/controllers/FrmAbilitiesFieldsController.php:945 msgid "Invalid field ID." msgstr "" @@ -630,7 +660,7 @@ msgid "List Forms" msgstr "" #: classes/controllers/FrmAbilitiesFormsController.php:40 -msgid "Retrieve all Formidable forms. Returns id, form_key, name, and description. Use the form_key or id for create-entry, list-fields, or get-form." +msgid "Retrieve all Formidable forms. Returns id, form_key, name, and description. Use the form_key or id for list-entries, list-fields, or get-form." msgstr "" #: classes/controllers/FrmAbilitiesFormsController.php:67 @@ -683,7 +713,7 @@ msgid "Retrieve a single Formidable form by ID or key." msgstr "" #: classes/controllers/FrmAbilitiesFormsController.php:137 -#: classes/controllers/FrmAbilitiesFormsController.php:443 +#: classes/controllers/FrmAbilitiesFormsController.php:448 msgid "Form ID or form_key." msgstr "" @@ -696,7 +726,7 @@ msgid "Form object or rendered HTML." msgstr "" #: classes/controllers/FrmAbilitiesFormsController.php:169 -#: classes/helpers/FrmFormsHelper.php:1949 +#: classes/helpers/FrmFormsHelper.php:2014 msgid "Create Form" msgstr "" @@ -785,7 +815,7 @@ msgid "Update Form" msgstr "" #: classes/controllers/FrmAbilitiesFormsController.php:376 -msgid "Update an existing Formidable form: name, description, status, options, or parent_form_id (for repeater child forms)." +msgid "Update an existing Formidable form: name, description, status, editable, options, or parent_form_id (for repeater child forms)." msgstr "" #: classes/controllers/FrmAbilitiesFormsController.php:387 @@ -808,39 +838,43 @@ msgstr "" msgid "Form options to merge (submit_value, success_msg, etc.)." msgstr "" -#: classes/controllers/FrmAbilitiesFormsController.php:408 +#: classes/controllers/FrmAbilitiesFormsController.php:409 +msgid "Whether entries may be edited from the front end. Existing editing permissions are preserved." +msgstr "" + +#: classes/controllers/FrmAbilitiesFormsController.php:413 msgid "Parent form ID for repeater child forms. Set to 0 to detach." msgstr "" -#: classes/controllers/FrmAbilitiesFormsController.php:414 +#: classes/controllers/FrmAbilitiesFormsController.php:419 msgid "Updated form object." msgstr "" -#: classes/controllers/FrmAbilitiesFormsController.php:434 +#: classes/controllers/FrmAbilitiesFormsController.php:439 msgid "Delete Form" msgstr "" -#: classes/controllers/FrmAbilitiesFormsController.php:435 +#: classes/controllers/FrmAbilitiesFormsController.php:440 msgid "Delete a Formidable form." msgstr "" -#: classes/controllers/FrmAbilitiesFormsController.php:449 +#: classes/controllers/FrmAbilitiesFormsController.php:454 msgid "Deleted form object." msgstr "" -#: classes/controllers/FrmAbilitiesFormsController.php:584 +#: classes/controllers/FrmAbilitiesFormsController.php:596 msgid "Form creation failed." msgstr "" -#: classes/controllers/FrmAbilitiesFormsController.php:649 +#: classes/controllers/FrmAbilitiesFormsController.php:666 msgid "Invalid form status. Use published, draft, or trash." msgstr "" -#: classes/controllers/FrmAbilitiesFormsController.php:675 +#: classes/controllers/FrmAbilitiesFormsController.php:696 msgid "Form update failed." msgstr "" -#: classes/controllers/FrmAbilitiesFormsController.php:702 +#: classes/controllers/FrmAbilitiesFormsController.php:723 msgid "Form deletion failed." msgstr "" @@ -930,62 +964,98 @@ msgstr "" msgid "A payment ID is required." msgstr "" -#: classes/controllers/FrmAbilitiesPaymentsController.php:321 +#: classes/controllers/FrmAbilitiesPaymentsController.php:322 msgid "No payment was found with that ID." msgstr "" -#: classes/controllers/FrmAbilitiesPaymentsController.php:419 +#: classes/controllers/FrmAbilitiesPaymentsController.php:429 msgid "Numeric payment ID" msgstr "" -#: classes/controllers/FrmAbilitiesPaymentsController.php:423 +#: classes/controllers/FrmAbilitiesPaymentsController.php:433 msgid "ID of the entry this payment belongs to" msgstr "" -#: classes/controllers/FrmAbilitiesPaymentsController.php:427 +#: classes/controllers/FrmAbilitiesPaymentsController.php:437 msgid "ID of the form action (e.g. payment action) that recorded this payment" msgstr "" -#: classes/controllers/FrmAbilitiesPaymentsController.php:431 +#: classes/controllers/FrmAbilitiesPaymentsController.php:441 msgid "Gateway receipt or charge ID" msgstr "" -#: classes/controllers/FrmAbilitiesPaymentsController.php:435 +#: classes/controllers/FrmAbilitiesPaymentsController.php:445 msgid "Gateway invoice ID, when applicable" msgstr "" -#: classes/controllers/FrmAbilitiesPaymentsController.php:439 +#: classes/controllers/FrmAbilitiesPaymentsController.php:449 msgid "ID of the subscription this payment belongs to, when applicable" msgstr "" -#: classes/controllers/FrmAbilitiesPaymentsController.php:443 +#: classes/controllers/FrmAbilitiesPaymentsController.php:453 msgid "Payment amount" msgstr "" -#: classes/controllers/FrmAbilitiesPaymentsController.php:447 +#: classes/controllers/FrmAbilitiesPaymentsController.php:457 msgid "Payment status, e.g. complete, pending, refunded, failed" msgstr "" -#: classes/controllers/FrmAbilitiesPaymentsController.php:451 +#: classes/controllers/FrmAbilitiesPaymentsController.php:461 msgid "Gateway that processed the payment, e.g. stripe, square, paypal" msgstr "" -#: classes/controllers/FrmAbilitiesPaymentsController.php:455 +#: classes/controllers/FrmAbilitiesPaymentsController.php:465 msgid "Date the payment began, in MySQL date format" msgstr "" -#: classes/controllers/FrmAbilitiesPaymentsController.php:459 +#: classes/controllers/FrmAbilitiesPaymentsController.php:469 msgid "Date the payment expires, in MySQL date format" msgstr "" -#: classes/controllers/FrmAbilitiesPaymentsController.php:463 +#: classes/controllers/FrmAbilitiesPaymentsController.php:473 msgid "Payment creation date in MySQL format" msgstr "" -#: classes/controllers/FrmAbilitiesPaymentsController.php:467 +#: classes/controllers/FrmAbilitiesPaymentsController.php:477 msgid "Whether this payment was made in test mode. Null when unknown." msgstr "" +#: classes/controllers/FrmAbilitiesSetupController.php:24 +msgid "Get Formidable AI Status" +msgstr "" + +#: classes/controllers/FrmAbilitiesSetupController.php:25 +msgid "Check Formidable AI access, even when disabled. Use the settings link to enable access, then rediscover abilities. WPVibe needs no new connection." +msgstr "" + +#: classes/controllers/FrmAbilitiesSetupController.php:40 +msgid "Whether Formidable AI access is enabled." +msgstr "" + +#: classes/controllers/FrmAbilitiesSetupController.php:44 +msgid "Whether operational abilities are registered and the MCP adapter is compatible. Individual abilities still require permission." +msgstr "" + +#: classes/controllers/FrmAbilitiesSetupController.php:51 +msgid "Why AI access is unavailable, or an empty string when ready." +msgstr "" + +#: classes/controllers/FrmAbilitiesSetupController.php:55 +msgid "Whether the current user can change Formidable settings." +msgstr "" + +#: classes/controllers/FrmAbilitiesSetupController.php:59 +msgid "The settings page containing the AI access toggle." +msgstr "" + +#: classes/controllers/FrmAbilitiesSetupController.php:97 +msgid "Formidable AI access is off. A user who can change Formidable settings must enable it using the settings link. Then discover abilities again." +msgstr "" + +#: classes/controllers/FrmAbilitiesSetupController.php:102 +msgid "Formidable AI access is enabled, but operational abilities are unavailable. Check the settings page and try discovery again." +msgstr "" + #: classes/controllers/FrmAbilitiesStylesController.php:35 msgid "List Styles" msgstr "" @@ -1141,78 +1211,78 @@ msgstr "" msgid "A subscription ID is required." msgstr "" -#: classes/controllers/FrmAbilitiesSubscriptionsController.php:321 +#: classes/controllers/FrmAbilitiesSubscriptionsController.php:322 msgid "No subscription was found with that ID." msgstr "" -#: classes/controllers/FrmAbilitiesSubscriptionsController.php:421 +#: classes/controllers/FrmAbilitiesSubscriptionsController.php:431 msgid "Numeric subscription ID" msgstr "" -#: classes/controllers/FrmAbilitiesSubscriptionsController.php:425 +#: classes/controllers/FrmAbilitiesSubscriptionsController.php:435 msgid "ID of the entry this subscription belongs to" msgstr "" -#: classes/controllers/FrmAbilitiesSubscriptionsController.php:429 +#: classes/controllers/FrmAbilitiesSubscriptionsController.php:439 msgid "ID of the form action (e.g. payment action) that started this subscription" msgstr "" -#: classes/controllers/FrmAbilitiesSubscriptionsController.php:433 +#: classes/controllers/FrmAbilitiesSubscriptionsController.php:443 msgid "Gateway subscription ID" msgstr "" -#: classes/controllers/FrmAbilitiesSubscriptionsController.php:437 +#: classes/controllers/FrmAbilitiesSubscriptionsController.php:447 msgid "Recurring billing amount" msgstr "" -#: classes/controllers/FrmAbilitiesSubscriptionsController.php:441 +#: classes/controllers/FrmAbilitiesSubscriptionsController.php:451 msgid "First payment amount, when different from the recurring amount" msgstr "" -#: classes/controllers/FrmAbilitiesSubscriptionsController.php:445 +#: classes/controllers/FrmAbilitiesSubscriptionsController.php:455 msgid "Number of time_interval units between billings, e.g. 1 with time_interval month means monthly" msgstr "" -#: classes/controllers/FrmAbilitiesSubscriptionsController.php:449 +#: classes/controllers/FrmAbilitiesSubscriptionsController.php:459 msgid "Billing interval unit, e.g. day, week, month, year" msgstr "" -#: classes/controllers/FrmAbilitiesSubscriptionsController.php:453 +#: classes/controllers/FrmAbilitiesSubscriptionsController.php:463 msgid "Number of consecutive failed billing attempts" msgstr "" -#: classes/controllers/FrmAbilitiesSubscriptionsController.php:457 +#: classes/controllers/FrmAbilitiesSubscriptionsController.php:467 msgid "Number of billing cycles before the subscription ends. 9999 or greater means unlimited" msgstr "" -#: classes/controllers/FrmAbilitiesSubscriptionsController.php:461 +#: classes/controllers/FrmAbilitiesSubscriptionsController.php:471 msgid "Next billing date, in MySQL date format" msgstr "" -#: classes/controllers/FrmAbilitiesSubscriptionsController.php:465 +#: classes/controllers/FrmAbilitiesSubscriptionsController.php:475 msgid "Subscription status, e.g. active, future_cancel, canceled, pending" msgstr "" -#: classes/controllers/FrmAbilitiesSubscriptionsController.php:469 +#: classes/controllers/FrmAbilitiesSubscriptionsController.php:479 msgid "Gateway that manages the subscription, e.g. stripe, square, paypal" msgstr "" -#: classes/controllers/FrmAbilitiesSubscriptionsController.php:473 +#: classes/controllers/FrmAbilitiesSubscriptionsController.php:483 msgid "Subscription creation date in MySQL format" msgstr "" -#: classes/controllers/FrmAbilitiesSubscriptionsController.php:477 +#: classes/controllers/FrmAbilitiesSubscriptionsController.php:487 msgid "Whether this subscription was created in test mode. Null when unknown." msgstr "" #: classes/controllers/FrmAddonsController.php:95 -#: classes/controllers/FrmAddonsController.php:98 -msgid "Add-Ons" +#: classes/controllers/FrmAddonsController.php:100 +msgid "Add-Ons/Boosts" msgstr "" -#: classes/controllers/FrmAddonsController.php:107 -#: classes/controllers/FrmAddonsController.php:112 -#: classes/helpers/FrmFormsHelper.php:1957 +#: classes/controllers/FrmAddonsController.php:114 +#: classes/controllers/FrmAddonsController.php:119 +#: classes/helpers/FrmFormsHelper.php:2022 #: classes/views/applications/header.php:32 #: classes/views/frm-fields/back-end/smart-values.php:24 #: classes/views/frm-form-actions/settings.php:148 @@ -1224,70 +1294,93 @@ msgstr "" msgid "Upgrade" msgstr "" -#: classes/controllers/FrmAddonsController.php:152 +#: classes/controllers/FrmAddonsController.php:159 msgid "Why Upgrade" msgstr "" -#: classes/controllers/FrmAddonsController.php:340 +#: classes/controllers/FrmAddonsController.php:319 +msgid "Open forms and content in smart popups with various trigger options." +msgstr "" + +#: classes/controllers/FrmAddonsController.php:320 +msgid "Select custom or pre-set colors, including optional transparency" +msgstr "" + +#: classes/controllers/FrmAddonsController.php:321 +msgid "Update multiple entries at once, no CSV export/import needed." +msgstr "" + +#: classes/controllers/FrmAddonsController.php:322 +msgid "Reward submissions with emoji fountains and celebratory sounds." +msgstr "" + +#: classes/controllers/FrmAddonsController.php:323 +msgid "Add customized hover-and-tap help to any field." +msgstr "" + +#: classes/controllers/FrmAddonsController.php:366 msgid "Available" msgstr "" -#: classes/controllers/FrmAddonsController.php:347 -#: classes/controllers/FrmAddonsController.php:1216 -#: classes/controllers/FrmAddonsController.php:1226 +#: classes/controllers/FrmAddonsController.php:373 +#: classes/controllers/FrmAddonsController.php:1300 +#: classes/controllers/FrmAddonsController.php:1310 #: classes/controllers/FrmTestModeController.php:360 -#: classes/helpers/FrmAppHelper.php:4042 +#: classes/helpers/FrmAppHelper.php:4038 #: classes/views/styles/_field-colors.php:13 #: stripe/helpers/FrmTransLiteAppHelper.php:106 msgid "Active" msgstr "" -#: classes/controllers/FrmAddonsController.php:353 +#: classes/controllers/FrmAddonsController.php:379 msgid "All Add-Ons" msgstr "" -#: classes/controllers/FrmAddonsController.php:406 +#: classes/controllers/FrmAddonsController.php:407 +msgid "Boosts" +msgstr "" + +#: classes/controllers/FrmAddonsController.php:435 msgid "There are no plugins on your site that require a license" msgstr "" -#: classes/controllers/FrmAddonsController.php:1221 +#: classes/controllers/FrmAddonsController.php:1305 #: classes/controllers/FrmTestModeController.php:361 -#: classes/helpers/FrmAppHelper.php:4043 +#: classes/helpers/FrmAppHelper.php:4039 msgid "Installed" msgstr "" -#: classes/controllers/FrmAddonsController.php:1231 +#: classes/controllers/FrmAddonsController.php:1315 #: classes/controllers/FrmTestModeController.php:362 -#: classes/helpers/FrmAppHelper.php:4044 +#: classes/helpers/FrmAppHelper.php:4040 msgid "Not Installed" msgstr "" -#: classes/controllers/FrmAddonsController.php:1281 +#: classes/controllers/FrmAddonsController.php:1365 msgid "Current user cannot delete plugins." msgstr "" -#: classes/controllers/FrmAddonsController.php:1355 +#: classes/controllers/FrmAddonsController.php:1439 msgid "Sorry, your site requires FTP authentication. Please download plugins from FormidableForms.com and install them manually." msgstr "" -#: classes/controllers/FrmAddonsController.php:1549 +#: classes/controllers/FrmAddonsController.php:1633 msgid "Your plugin has been activated. Would you like to save and reload the page now?" msgstr "" -#: classes/controllers/FrmAddonsController.php:1549 +#: classes/controllers/FrmAddonsController.php:1633 msgid "Your plugin has been activated." msgstr "" -#: classes/controllers/FrmAddonsController.php:1695 +#: classes/controllers/FrmAddonsController.php:1779 msgid "You do not have permission to install plugins." msgstr "" -#: classes/controllers/FrmAddonsController.php:1741 +#: classes/controllers/FrmAddonsController.php:1825 msgid "The plugin download was not found." msgstr "" -#: classes/controllers/FrmAddonsController.php:1823 -#: classes/controllers/FrmAddonsController.php:1841 +#: classes/controllers/FrmAddonsController.php:1907 #: classes/views/form-templates/modals/upgrade-modal.php:91 #: classes/views/shared/reports-info.php:22 #: js/admin/applications.js:405 @@ -1295,6 +1388,10 @@ msgstr "" msgid "Upgrade Now" msgstr "" +#: classes/controllers/FrmAddonsController.php:1914 +msgid "Get Boost" +msgstr "" + #: classes/controllers/FrmAddressesController.php:102 #: classes/models/fields/FrmFieldAddress.php:53 msgid "Line 1" @@ -1324,14 +1421,14 @@ msgid "Zip/Postal" msgstr "" #: classes/controllers/FrmAddressesController.php:159 -#: classes/helpers/FrmFieldsHelper.php:3128 +#: classes/helpers/FrmFieldsHelper.php:3191 #: classes/models/fields/FrmFieldAddress.php:58 #: classes/models/fields/FrmFieldAddress.php:80 msgid "Country" msgstr "" #: classes/controllers/FrmAntiSpamController.php:118 -#: classes/models/FrmEntryValidate.php:620 +#: classes/models/FrmEntryValidate.php:782 msgid "Your entry appears to be spam!" msgstr "" @@ -1358,7 +1455,7 @@ msgstr "" #: classes/controllers/FrmAppController.php:322 #: classes/controllers/FrmEntriesController.php:14 #: classes/controllers/FrmEntriesController.php:209 -#: classes/controllers/FrmFormsController.php:1324 +#: classes/controllers/FrmFormsController.php:1354 #: classes/controllers/FrmXMLController.php:317 #: classes/views/frm-entries/tabs.php:21 #: classes/views/xml/import_form.php:148 @@ -1367,7 +1464,7 @@ msgstr "" #: classes/controllers/FrmAppController.php:334 #: classes/controllers/FrmEntriesController.php:21 -#: classes/controllers/FrmFormsController.php:1325 +#: classes/controllers/FrmFormsController.php:1355 #: classes/controllers/FrmOnboardingWizardController.php:611 #: classes/views/shared/views-info.php:10 #: js/admin/applications.js:357 @@ -1387,7 +1484,7 @@ msgstr "" #: classes/controllers/FrmAppController.php:385 #: classes/views/frm-forms/spam-settings.php:130 -#: classes/views/frm-settings/captcha/captcha.php:350 +#: classes/views/frm-settings/captcha/captcha.php:351 #: js/admin/applications.js:121 msgid "Upgrade to Pro" msgstr "" @@ -1396,11 +1493,11 @@ msgstr "" msgid "Build a Form" msgstr "" -#: classes/controllers/FrmAppController.php:1430 -#: classes/controllers/FrmFormsController.php:260 +#: classes/controllers/FrmAppController.php:1475 +#: classes/controllers/FrmFormsController.php:261 #: classes/controllers/FrmFormTemplatesController.php:656 #: classes/controllers/FrmSettingsController.php:502 -#: classes/helpers/FrmAppHelper.php:3999 +#: classes/helpers/FrmAppHelper.php:3995 #: classes/views/form-templates/modals/create-template-modal.php:66 #: classes/views/form-templates/modals/name-your-form-modal.php:32 #: classes/views/frm-entries/spam-notice.php:125 @@ -1409,14 +1506,14 @@ msgstr "" #: stripe/controllers/FrmTransLiteSubscriptionsController.php:73 #: js/admin/style.js:1073 #: js/admin/style.js:1212 -#: js/src/admin/admin.js:5547 -#: js/src/admin/admin.js:10226 -#: js/formidable_admin.js:9323 -#: js/formidable_admin.js:13713 +#: js/src/admin/admin.js:5874 +#: js/src/admin/admin.js:10567 +#: js/formidable_admin.js:11087 +#: js/formidable_admin.js:15803 msgid "Cancel" msgstr "" -#: classes/controllers/FrmAppController.php:1434 +#: classes/controllers/FrmAppController.php:1479 msgid "Continue" msgstr "" @@ -1469,6 +1566,7 @@ msgstr "" #: classes/controllers/FrmDashboardController.php:160 #: classes/controllers/FrmDashboardController.php:167 #: classes/helpers/FrmFormMigratorsHelper.php:60 +#: classes/views/addons/addon.php:109 #: js/admin/applications.js:381 #: js/admin/applications.js:514 #: js/admin/style.js:578 @@ -1502,7 +1600,7 @@ msgstr "" #: classes/controllers/FrmDashboardController.php:348 #: classes/controllers/FrmEntriesController.php:187 -#: classes/controllers/FrmFormsController.php:1183 +#: classes/controllers/FrmFormsController.php:1213 #: classes/views/xml/import_form.php:179 #: classes/widgets/FrmElementorWidget.php:52 #: classes/widgets/FrmShowForm.php:81 @@ -1513,8 +1611,8 @@ msgid "Form" msgstr "" #: classes/controllers/FrmDashboardController.php:349 -#: classes/helpers/FrmFieldsHelper.php:3138 -#: classes/models/FrmField.php:56 +#: classes/helpers/FrmFieldsHelper.php:3201 +#: classes/models/FrmField.php:75 msgid "Name" msgstr "" @@ -1532,7 +1630,8 @@ msgstr "" #: classes/controllers/FrmDeactivationFeedbackController.php:115 #: classes/controllers/FrmDeactivationFeedbackController.php:116 -#: classes/helpers/FrmAppHelper.php:4104 +#: classes/helpers/FrmAppHelper.php:4100 +#: classes/models/FrmSalesApi.php:380 #: classes/views/form-templates/modal.php:20 #: classes/views/form-templates/modal.php:21 #: classes/views/form-templates/modals/leave-email-modal.php:59 @@ -1566,7 +1665,7 @@ msgid "Sleek" msgstr "" #: classes/controllers/FrmEmailStylesController.php:53 -#: classes/views/frm-fields/back-end/settings.php:402 +#: classes/views/frm-fields/back-end/settings.php:406 msgid "Compact" msgstr "" @@ -1591,8 +1690,8 @@ msgid "Failed to send test email!" msgstr "" #: classes/controllers/FrmEntriesController.php:182 -#: classes/controllers/FrmFormsController.php:2095 -#: classes/views/frm-entries/form.php:86 +#: classes/controllers/FrmFormsController.php:2128 +#: classes/views/frm-entries/form.php:90 #: classes/views/frm-entries/sidebar-shared.php:68 msgid "Entry Key" msgstr "" @@ -1602,7 +1701,7 @@ msgid "Entry Name" msgstr "" #: classes/controllers/FrmEntriesController.php:189 -#: classes/helpers/FrmCSVExportHelper.php:459 +#: classes/helpers/FrmCSVExportHelper.php:463 msgid "Created By" msgstr "" @@ -1612,7 +1711,7 @@ msgid "Spam reason" msgstr "" #: classes/controllers/FrmEntriesController.php:195 -#: classes/helpers/FrmCSVExportHelper.php:461 +#: classes/helpers/FrmCSVExportHelper.php:465 msgid "Entry Status" msgstr "" @@ -1651,7 +1750,7 @@ msgstr "" #: classes/controllers/FrmEntriesController.php:743 #: classes/controllers/FrmFormActionsController.php:811 -#: classes/controllers/FrmFormsController.php:258 +#: classes/controllers/FrmFormsController.php:259 #: classes/controllers/FrmSettingsController.php:500 #: classes/controllers/FrmSpamEntriesController.php:238 #: classes/controllers/FrmSpamEntriesController.php:337 @@ -1662,58 +1761,58 @@ msgstr "" msgid "Entry was successfully deleted" msgstr "" -#: classes/controllers/FrmFieldsController.php:529 +#: classes/controllers/FrmFieldsController.php:653 msgid "Unique: Do not allow the same response multiple times. For example, if one user enters 'Joe', then no one else will be allowed to enter the same name." msgstr "" -#: classes/controllers/FrmFieldsController.php:542 +#: classes/controllers/FrmFieldsController.php:666 msgid "Read Only: Show this field but do not allow the field value to be edited from the front-end." msgstr "" -#: classes/controllers/FrmFieldsController.php:552 +#: classes/controllers/FrmFieldsController.php:676 msgid "Visibility options" msgstr "" -#: classes/controllers/FrmFieldsController.php:562 +#: classes/controllers/FrmFieldsController.php:686 msgid "Before and after field contents" msgstr "" -#: classes/controllers/FrmFieldsController.php:578 +#: classes/controllers/FrmFieldsController.php:702 msgid "Unique Values" msgstr "" -#: classes/controllers/FrmFieldsController.php:584 +#: classes/controllers/FrmFieldsController.php:708 msgid "Read Only Values" msgstr "" -#: classes/controllers/FrmFieldsController.php:632 +#: classes/controllers/FrmFieldsController.php:756 #: classes/models/fields/FrmFieldCombo.php:218 #: classes/views/frm-fields/back-end/default-value-setting.php:22 msgid "Default Value" msgstr "" -#: classes/controllers/FrmFieldsController.php:639 +#: classes/controllers/FrmFieldsController.php:763 msgid "Calculate Value" msgstr "" -#: classes/controllers/FrmFieldsController.php:643 +#: classes/controllers/FrmFieldsController.php:767 msgid "Calculator forms" msgstr "" -#: classes/controllers/FrmFieldsController.php:645 +#: classes/controllers/FrmFieldsController.php:769 msgid "Automatically calculate the value of this field based on values from other fields." msgstr "" -#: classes/controllers/FrmFieldsController.php:649 -#: classes/models/FrmField.php:206 +#: classes/controllers/FrmFieldsController.php:773 +#: classes/models/FrmField.php:225 msgid "Lookup" msgstr "" -#: classes/controllers/FrmFieldsController.php:653 +#: classes/controllers/FrmFieldsController.php:777 msgid "Lookup fields" msgstr "" -#: classes/controllers/FrmFieldsController.php:655 +#: classes/controllers/FrmFieldsController.php:779 msgid "Dynamically retrieve the value of this field from a lookup field." msgstr "" @@ -1861,7 +1960,7 @@ msgid "Increase Limit of Form Actions" msgstr "" #: classes/controllers/FrmFormsController.php:29 -#: classes/controllers/FrmFormsController.php:1347 +#: classes/controllers/FrmFormsController.php:1377 #: classes/controllers/FrmStylesController.php:87 #: classes/controllers/FrmXMLController.php:316 #: classes/views/frm-forms/list.php:10 @@ -1883,119 +1982,123 @@ msgstr "" msgid "Conditional Logic" msgstr "" -#: classes/controllers/FrmFormsController.php:209 +#: classes/controllers/FrmFormsController.php:210 #: classes/helpers/FrmSubmitHelper.php:171 -#: classes/models/FrmField.php:88 +#: classes/models/FrmField.php:107 #: classes/models/FrmSettings.php:331 -#: classes/views/frm-forms/form.php:91 +#: classes/views/frm-forms/form.php:99 #: classes/views/styles/_sample_form.php:84 msgid "Submit" msgstr "" -#: classes/controllers/FrmFormsController.php:293 +#: classes/controllers/FrmFormsController.php:294 msgid "Settings Successfully Updated" msgstr "" -#: classes/controllers/FrmFormsController.php:319 -#: classes/models/fields/FrmFieldCaptcha.php:661 +#: classes/controllers/FrmFormsController.php:320 +#: classes/models/fields/FrmFieldCaptcha.php:694 #: classes/views/frm-settings/captcha/captcha.php:6 msgid "Captcha" msgstr "" -#: classes/controllers/FrmFormsController.php:339 -#: classes/controllers/FrmFormsController.php:1637 +#: classes/controllers/FrmFormsController.php:340 +#: classes/controllers/FrmFormsController.php:1670 #: classes/helpers/FrmFieldGdprHelper.php:59 -#: classes/models/FrmField.php:92 +#: classes/models/FrmField.php:111 #: classes/views/frm-settings/general.php:54 msgid "GDPR" msgstr "" -#: classes/controllers/FrmFormsController.php:416 -#: classes/controllers/FrmFormsController.php:1485 +#: classes/controllers/FrmFormsController.php:423 +#: classes/controllers/FrmFormsController.php:1518 msgid "Form was successfully updated." msgstr "" #. translators: %1$s: Start link HTML, %2$s: end link HTML -#: classes/controllers/FrmFormsController.php:421 +#: classes/controllers/FrmFormsController.php:428 msgid "However, your form is very long and may be %1$sreaching server limits%2$s." msgstr "" -#: classes/controllers/FrmFormsController.php:551 -#: classes/controllers/FrmFormsController.php:552 +#: classes/controllers/FrmFormsController.php:454 +msgid "Some form changes could not be saved. Please try again." +msgstr "" + +#: classes/controllers/FrmFormsController.php:581 +#: classes/controllers/FrmFormsController.php:582 msgid "Form key is invalid" msgstr "" -#: classes/controllers/FrmFormsController.php:782 +#: classes/controllers/FrmFormsController.php:812 msgid "Form Preview" msgstr "" -#: classes/controllers/FrmFormsController.php:816 +#: classes/controllers/FrmFormsController.php:846 msgid "Form key is missing" msgstr "" -#: classes/controllers/FrmFormsController.php:829 +#: classes/controllers/FrmFormsController.php:859 #: classes/controllers/FrmStylesController.php:528 msgid "Form does not exist" msgstr "" -#: classes/controllers/FrmFormsController.php:861 +#: classes/controllers/FrmFormsController.php:891 msgid "You do not have permission to view this form" msgstr "" #. translators: %1$s: Number of forms -#: classes/controllers/FrmFormsController.php:912 -#: classes/controllers/FrmFormsController.php:972 +#: classes/controllers/FrmFormsController.php:942 +#: classes/controllers/FrmFormsController.php:1002 msgid "%1$s form restored from the Trash." msgid_plural "%1$s forms restored from the Trash." msgstr[0] "" msgstr[1] "" #. translators: %1$s: Number of forms, %2$s: Start link HTML, %3$s: End link HTML -#: classes/controllers/FrmFormsController.php:975 -#: classes/controllers/FrmFormsController.php:1011 +#: classes/controllers/FrmFormsController.php:1005 +#: classes/controllers/FrmFormsController.php:1041 msgid "%1$s form moved to the Trash. %2$sUndo%3$s" msgid_plural "%1$s forms moved to the Trash. %2$sUndo%3$s" msgstr[0] "" msgstr[1] "" #. translators: %1$s: Number of forms -#: classes/controllers/FrmFormsController.php:1033 +#: classes/controllers/FrmFormsController.php:1063 msgid "%1$s Form Permanently Deleted" msgid_plural "%1$s Forms Permanently Deleted" msgstr[0] "" msgstr[1] "" #. translators: %1$s: Number of forms -#: classes/controllers/FrmFormsController.php:1058 -#: classes/controllers/FrmFormsController.php:2424 +#: classes/controllers/FrmFormsController.php:1088 +#: classes/controllers/FrmFormsController.php:2461 msgid "%1$s form permanently deleted." msgid_plural "%1$s forms permanently deleted." msgstr[0] "" msgstr[1] "" -#: classes/controllers/FrmFormsController.php:1166 +#: classes/controllers/FrmFormsController.php:1196 msgid "Add forms and content" msgstr "" -#: classes/controllers/FrmFormsController.php:1184 +#: classes/controllers/FrmFormsController.php:1214 #: classes/views/frm-forms/insert_form_popup.php:33 msgid "Insert a Form" msgstr "" -#: classes/controllers/FrmFormsController.php:1243 +#: classes/controllers/FrmFormsController.php:1273 msgid "Display form title" msgstr "" -#: classes/controllers/FrmFormsController.php:1247 +#: classes/controllers/FrmFormsController.php:1277 msgid "Display form description" msgstr "" -#: classes/controllers/FrmFormsController.php:1251 +#: classes/controllers/FrmFormsController.php:1281 msgid "Minimize form HTML" msgstr "" -#: classes/controllers/FrmFormsController.php:1323 -#: classes/controllers/FrmStylesController.php:1103 +#: classes/controllers/FrmFormsController.php:1353 +#: classes/controllers/FrmStylesController.php:1116 #: classes/views/frm-forms/settings-advanced.php:13 #: classes/views/styles/manage.php:36 #: classes/views/styles/_sample_form.php:12 @@ -2003,280 +2106,280 @@ msgstr "" msgid "Form Title" msgstr "" -#: classes/controllers/FrmFormsController.php:1327 -#: classes/helpers/FrmCSVExportHelper.php:464 +#: classes/controllers/FrmFormsController.php:1357 +#: classes/helpers/FrmCSVExportHelper.php:468 msgid "Key" msgstr "" -#: classes/controllers/FrmFormsController.php:1331 +#: classes/controllers/FrmFormsController.php:1361 msgid "Actions" msgstr "" -#: classes/controllers/FrmFormsController.php:1334 -#: classes/models/FrmField.php:157 +#: classes/controllers/FrmFormsController.php:1364 +#: classes/models/FrmField.php:176 #: stripe/controllers/FrmTransLiteListsController.php:69 msgid "Date" msgstr "" -#: classes/controllers/FrmFormsController.php:1337 +#: classes/controllers/FrmFormsController.php:1367 msgid "Embeds" msgstr "" -#: classes/controllers/FrmFormsController.php:1340 +#: classes/controllers/FrmFormsController.php:1370 msgid "List settings" msgstr "" -#: classes/controllers/FrmFormsController.php:1422 +#: classes/controllers/FrmFormsController.php:1452 msgid "You can't edit the form" msgstr "" -#: classes/controllers/FrmFormsController.php:1423 +#: classes/controllers/FrmFormsController.php:1453 msgid "You are trying to edit a form that does not exist" msgstr "" -#: classes/controllers/FrmFormsController.php:1438 +#: classes/controllers/FrmFormsController.php:1468 msgid "The form you're trying to edit is in trash. You must restore it first before you can make changes" msgstr "" -#: classes/controllers/FrmFormsController.php:1448 +#: classes/controllers/FrmFormsController.php:1478 msgid "Restore form" msgstr "" #. translators: %1$s: Start link HTML, %2$s: End link HTML -#: classes/controllers/FrmFormsController.php:1455 +#: classes/controllers/FrmFormsController.php:1485 msgid "You are trying to edit a child form. Please edit from %1$shere%2$s" msgstr "" -#: classes/controllers/FrmFormsController.php:1488 +#: classes/controllers/FrmFormsController.php:1521 msgid "Template was successfully updated." msgstr "" -#: classes/controllers/FrmFormsController.php:1521 +#: classes/controllers/FrmFormsController.php:1554 msgid "Form was Successfully Copied" msgstr "" -#: classes/controllers/FrmFormsController.php:1620 -#: classes/controllers/FrmStylesController.php:1102 +#: classes/controllers/FrmFormsController.php:1653 +#: classes/controllers/FrmStylesController.php:1115 #: classes/views/styles/_field-labels.php:12 msgid "General" msgstr "" -#: classes/controllers/FrmFormsController.php:1621 +#: classes/controllers/FrmFormsController.php:1654 msgid "General Form Settings" msgstr "" -#: classes/controllers/FrmFormsController.php:1626 +#: classes/controllers/FrmFormsController.php:1659 msgid "Actions & Notifications" msgstr "" -#: classes/controllers/FrmFormsController.php:1632 -#: classes/helpers/FrmSpamEntriesHelper.php:363 +#: classes/controllers/FrmFormsController.php:1665 +#: classes/helpers/FrmSpamEntriesHelper.php:368 msgid "Spam" msgstr "" -#: classes/controllers/FrmFormsController.php:1642 -#: classes/controllers/FrmFormsController.php:1647 +#: classes/controllers/FrmFormsController.php:1675 +#: classes/controllers/FrmFormsController.php:1680 msgid "Form Permissions" msgstr "" -#: classes/controllers/FrmFormsController.php:1648 +#: classes/controllers/FrmFormsController.php:1681 msgid "Allow editing, protect forms and files, limit entries, and save drafts. Upgrade to get form and entry permissions." msgstr "" -#: classes/controllers/FrmFormsController.php:1654 +#: classes/controllers/FrmFormsController.php:1687 msgid "Form Scheduling" msgstr "" -#: classes/controllers/FrmFormsController.php:1659 +#: classes/controllers/FrmFormsController.php:1692 msgid "Form scheduling settings" msgstr "" -#: classes/controllers/FrmFormsController.php:1665 -#: classes/controllers/FrmStylesController.php:1110 -#: classes/helpers/FrmFieldsHelper.php:2757 +#: classes/controllers/FrmFormsController.php:1698 +#: classes/controllers/FrmStylesController.php:1123 +#: classes/helpers/FrmFieldsHelper.php:2820 #: classes/views/frm-forms/settings-buttons.php:13 msgid "Buttons" msgstr "" -#: classes/controllers/FrmFormsController.php:1671 +#: classes/controllers/FrmFormsController.php:1704 msgid "Form Landing Page" msgstr "" -#: classes/controllers/FrmFormsController.php:1677 -#: classes/controllers/FrmFormsController.php:1683 +#: classes/controllers/FrmFormsController.php:1710 +#: classes/controllers/FrmFormsController.php:1716 msgid "Conversational Forms" msgstr "" -#: classes/controllers/FrmFormsController.php:1684 +#: classes/controllers/FrmFormsController.php:1717 msgid "Ask one question at a time for automated conversations." msgstr "" -#: classes/controllers/FrmFormsController.php:1691 +#: classes/controllers/FrmFormsController.php:1724 msgid "Form Abandonment" msgstr "" -#: classes/controllers/FrmFormsController.php:1697 +#: classes/controllers/FrmFormsController.php:1730 msgid "Form abandonment settings" msgstr "" -#: classes/controllers/FrmFormsController.php:1698 +#: classes/controllers/FrmFormsController.php:1731 msgid "Unlock the power of data capture to boost lead generation and master the art of form optimization." msgstr "" -#: classes/controllers/FrmFormsController.php:1705 +#: classes/controllers/FrmFormsController.php:1738 msgid "Customize HTML" msgstr "" -#: classes/controllers/FrmFormsController.php:1881 +#: classes/controllers/FrmFormsController.php:1914 msgid "Customize field values with the following parameters." msgstr "" -#: classes/controllers/FrmFormsController.php:1985 -#: classes/helpers/FrmFormsHelper.php:1769 +#: classes/controllers/FrmFormsController.php:2018 +#: classes/helpers/FrmFormsHelper.php:1834 #: stripe/models/FrmTransLiteAction.php:217 msgid "First" msgstr "" -#: classes/controllers/FrmFormsController.php:1986 +#: classes/controllers/FrmFormsController.php:2019 msgid "Middle" msgstr "" -#: classes/controllers/FrmFormsController.php:1987 +#: classes/controllers/FrmFormsController.php:2020 #: stripe/models/FrmTransLiteAction.php:224 msgid "Last" msgstr "" -#: classes/controllers/FrmFormsController.php:2042 +#: classes/controllers/FrmFormsController.php:2075 msgid "Separator" msgstr "" -#: classes/controllers/FrmFormsController.php:2043 +#: classes/controllers/FrmFormsController.php:2076 msgid "Use a different separator for checkbox fields" msgstr "" -#: classes/controllers/FrmFormsController.php:2046 +#: classes/controllers/FrmFormsController.php:2079 msgid "Date Format" msgstr "" -#: classes/controllers/FrmFormsController.php:2049 +#: classes/controllers/FrmFormsController.php:2082 #: classes/views/frm-fields/back-end/settings.php:111 msgid "Field Label" msgstr "" -#: classes/controllers/FrmFormsController.php:2052 +#: classes/controllers/FrmFormsController.php:2085 msgid "No Auto P" msgstr "" -#: classes/controllers/FrmFormsController.php:2053 +#: classes/controllers/FrmFormsController.php:2086 msgid "Do not automatically add any paragraphs or line breaks" msgstr "" -#: classes/controllers/FrmFormsController.php:2069 -#: classes/models/FrmField.php:72 +#: classes/controllers/FrmFormsController.php:2102 +#: classes/models/FrmField.php:91 msgid "User ID" msgstr "" -#: classes/controllers/FrmFormsController.php:2070 +#: classes/controllers/FrmFormsController.php:2103 #: classes/models/fields/FrmFieldName.php:50 #: stripe/views/action-settings/payments-options.php:282 #: stripe/views/action-settings/paypal-shipping.php:41 msgid "First Name" msgstr "" -#: classes/controllers/FrmFormsController.php:2071 +#: classes/controllers/FrmFormsController.php:2104 #: classes/models/fields/FrmFieldName.php:52 #: stripe/views/action-settings/payments-options.php:288 #: stripe/views/action-settings/paypal-shipping.php:47 msgid "Last Name" msgstr "" -#: classes/controllers/FrmFormsController.php:2072 +#: classes/controllers/FrmFormsController.php:2105 msgid "Display Name" msgstr "" -#: classes/controllers/FrmFormsController.php:2073 +#: classes/controllers/FrmFormsController.php:2106 msgid "User Login" msgstr "" -#: classes/controllers/FrmFormsController.php:2074 +#: classes/controllers/FrmFormsController.php:2107 #: classes/controllers/FrmSettingsController.php:122 -#: classes/helpers/FrmFieldsHelper.php:3131 -#: classes/models/FrmField.php:44 +#: classes/helpers/FrmFieldsHelper.php:3194 +#: classes/models/FrmField.php:63 #: stripe/views/action-settings/payments-options.php:238 #: stripe/views/action-settings/paypal-shipping.php:21 msgid "Email" msgstr "" -#: classes/controllers/FrmFormsController.php:2075 +#: classes/controllers/FrmFormsController.php:2108 msgid "Avatar" msgstr "" -#: classes/controllers/FrmFormsController.php:2076 +#: classes/controllers/FrmFormsController.php:2109 msgid "Author Link" msgstr "" -#: classes/controllers/FrmFormsController.php:2094 +#: classes/controllers/FrmFormsController.php:2127 #: classes/views/frm-entries/sidebar-shared.php:62 msgid "Entry ID" msgstr "" -#: classes/controllers/FrmFormsController.php:2096 +#: classes/controllers/FrmFormsController.php:2129 msgid "Post ID" msgstr "" -#: classes/controllers/FrmFormsController.php:2097 +#: classes/controllers/FrmFormsController.php:2130 msgid "User IP" msgstr "" -#: classes/controllers/FrmFormsController.php:2098 +#: classes/controllers/FrmFormsController.php:2131 msgid "Entry created" msgstr "" -#: classes/controllers/FrmFormsController.php:2099 +#: classes/controllers/FrmFormsController.php:2132 msgid "Entry updated" msgstr "" -#: classes/controllers/FrmFormsController.php:2101 +#: classes/controllers/FrmFormsController.php:2134 msgid "Site URL" msgstr "" -#: classes/controllers/FrmFormsController.php:2102 +#: classes/controllers/FrmFormsController.php:2135 msgid "Site Name" msgstr "" -#: classes/controllers/FrmFormsController.php:2103 -#: classes/helpers/FrmFormsHelper.php:908 +#: classes/controllers/FrmFormsController.php:2136 +#: classes/helpers/FrmFormsHelper.php:973 msgid "Form Name" msgstr "" -#: classes/controllers/FrmFormsController.php:2288 +#: classes/controllers/FrmFormsController.php:2321 msgid "No forms were specified" msgstr "" -#: classes/controllers/FrmFormsController.php:2417 +#: classes/controllers/FrmFormsController.php:2454 msgid "There was a problem duplicating the form" msgstr "" -#: classes/controllers/FrmFormsController.php:2455 +#: classes/controllers/FrmFormsController.php:2492 msgid "Form not found" msgstr "" -#: classes/controllers/FrmFormsController.php:2487 +#: classes/controllers/FrmFormsController.php:2524 msgid "Abnormal HTML characters prevented your form from saving correctly" msgstr "" -#: classes/controllers/FrmFormsController.php:2676 -#: classes/controllers/FrmFormsController.php:2697 +#: classes/controllers/FrmFormsController.php:2713 +#: classes/controllers/FrmFormsController.php:2734 msgid "Please select a valid form" msgstr "" #. translators: %1$s: Start link HTML, %2$s: End link HTML -#: classes/controllers/FrmFormsController.php:3478 +#: classes/controllers/FrmFormsController.php:3575 msgid "%1$sClick here%2$s if you are not automatically redirected." msgstr "" -#: classes/controllers/FrmFormsController.php:3928 -#: classes/helpers/FrmAppHelper.php:2160 +#: classes/controllers/FrmFormsController.php:4025 +#: classes/helpers/FrmAppHelper.php:2139 #: classes/helpers/FrmOnSubmitHelper.php:127 msgid "Select a Page" msgstr "" @@ -2349,7 +2452,7 @@ msgid "The adapter in use was loaded by the %1$s plugin, from %2$s." msgstr "" #: classes/controllers/FrmMcpController.php:391 -msgid "The Formidable MCP server is turned off. Turn on MCP Server in Formidable > Global Settings > MCP to use it." +msgid "Formidable AI access is off. Enable AI access in Formidable > Global Settings > MCP to use operational abilities. Setup discovery remains available." msgstr "" #: classes/controllers/FrmMcpMissingAbilityController.php:212 @@ -2617,7 +2720,7 @@ msgid "Plugin Licenses" msgstr "" #: classes/controllers/FrmSettingsController.php:180 -#: classes/views/frm-forms/settings-advanced.php:151 +#: classes/views/frm-forms/settings-advanced.php:173 msgid "Miscellaneous" msgstr "" @@ -2639,7 +2742,7 @@ msgid "Settings Saved" msgstr "" #: classes/controllers/FrmSettingsController.php:541 -#: classes/helpers/FrmFormsHelper.php:2327 +#: classes/helpers/FrmFormsHelper.php:2392 #: classes/helpers/FrmStylesHelper.php:31 #: classes/views/frm-forms/add_field_links.php:247 #: classes/views/frm-forms/edit.php:28 @@ -2648,6 +2751,8 @@ msgid "Update" msgstr "" #: classes/controllers/FrmSettingsController.php:641 +#: classes/views/styles/components/templates/colorpicker-input.php:25 +#: js/src/color-picker/index.js:85 msgid "Select Color" msgstr "" @@ -2823,57 +2928,57 @@ msgstr "" msgid "Successfully updated style." msgstr "" -#: classes/controllers/FrmStylesController.php:788 +#: classes/controllers/FrmStylesController.php:801 msgid "Your styling settings have been saved." msgstr "" -#: classes/controllers/FrmStylesController.php:897 +#: classes/controllers/FrmStylesController.php:910 msgid "You can add custom css here or in your theme style.css. Any CSS added here will be used anywhere the Formidable CSS is loaded." msgstr "" -#: classes/controllers/FrmStylesController.php:1104 -#: classes/helpers/FrmFormsHelper.php:912 +#: classes/controllers/FrmStylesController.php:1117 +#: classes/helpers/FrmFormsHelper.php:977 #: classes/views/frm-forms/settings-advanced.php:27 msgid "Form Description" msgstr "" -#: classes/controllers/FrmStylesController.php:1105 +#: classes/controllers/FrmStylesController.php:1118 msgid "Field Labels" msgstr "" -#: classes/controllers/FrmStylesController.php:1106 -#: classes/helpers/FrmFormsHelper.php:872 +#: classes/controllers/FrmStylesController.php:1119 +#: classes/helpers/FrmFormsHelper.php:937 #: classes/views/frm-fields/back-end/field-description.php:16 msgid "Field Description" msgstr "" -#: classes/controllers/FrmStylesController.php:1107 +#: classes/controllers/FrmStylesController.php:1120 msgid "Field Colors" msgstr "" -#: classes/controllers/FrmStylesController.php:1108 -#: js/src/admin/admin.js:3540 -#: js/formidable_admin.js:7321 +#: classes/controllers/FrmStylesController.php:1121 +#: js/src/admin/admin.js:3867 +#: js/formidable_admin.js:9083 msgid "Field Settings" msgstr "" -#: classes/controllers/FrmStylesController.php:1109 +#: classes/controllers/FrmStylesController.php:1122 msgid "Check Box & Radio Fields" msgstr "" -#: classes/controllers/FrmStylesController.php:1111 +#: classes/controllers/FrmStylesController.php:1124 msgid "Form Messages" msgstr "" -#: classes/controllers/FrmStylesController.php:1530 +#: classes/controllers/FrmStylesController.php:1548 msgid "Unable to rename style" msgstr "" -#: classes/controllers/FrmStylesController.php:1541 +#: classes/controllers/FrmStylesController.php:1559 msgid "Invalid route" msgstr "" -#: classes/controllers/FrmStylesController.php:1554 +#: classes/controllers/FrmStylesController.php:1572 msgid "The style you are renaming either does not exist or it is not a style" msgstr "" @@ -3007,75 +3112,75 @@ msgstr "" msgid "No form was found with that ID or key." msgstr "" -#: classes/helpers/FrmAddonsHelper.php:67 -#: classes/helpers/FrmAddonsHelper.php:88 +#: classes/helpers/FrmAddonsHelper.php:85 +#: classes/helpers/FrmAddonsHelper.php:106 msgid "Unlock Add-on library" msgstr "" -#: classes/helpers/FrmAddonsHelper.php:68 +#: classes/helpers/FrmAddonsHelper.php:86 msgid "Renew your subscription today and access our library of add-ons to supercharge your forms." msgstr "" -#: classes/helpers/FrmAddonsHelper.php:69 +#: classes/helpers/FrmAddonsHelper.php:87 #: classes/helpers/FrmFormTemplatesHelper.php:190 #: classes/views/form-templates/modals/renew-account-modal.php:43 msgid "Renew Now" msgstr "" -#: classes/helpers/FrmAddonsHelper.php:89 +#: classes/helpers/FrmAddonsHelper.php:107 msgid "Upgrade to Pro and access our library of add-ons to supercharge your forms." msgstr "" -#: classes/helpers/FrmAddonsHelper.php:90 -#: classes/helpers/FrmAddonsHelper.php:119 +#: classes/helpers/FrmAddonsHelper.php:108 +#: classes/helpers/FrmAddonsHelper.php:137 #: classes/views/form-templates/modals/upgrade-modal.php:89 #: classes/views/frm-settings/email/settings.php:17 msgid "Upgrade to PRO" msgstr "" -#: classes/helpers/FrmAddonsHelper.php:112 +#: classes/helpers/FrmAddonsHelper.php:130 msgid "Unlock Even More Add-ons" msgstr "" #. translators: %1$s: Open span tag, %2$s: Close span tag -#: classes/helpers/FrmAddonsHelper.php:115 +#: classes/helpers/FrmAddonsHelper.php:133 msgid "Your plan includes %1$s%2$s add-ons. Upgrade to take your forms even farther" msgstr "" -#: classes/helpers/FrmAddonsHelper.php:145 +#: classes/helpers/FrmAddonsHelper.php:163 msgid "Missing add-ons?" msgstr "" -#: classes/helpers/FrmAddonsHelper.php:147 +#: classes/helpers/FrmAddonsHelper.php:165 msgid "Check now for a recent upgrade or renewal" msgstr "" #. Translators: %1$s is the number of reviews, %2$s is the site name. -#: classes/helpers/FrmAddonsHelper.php:363 +#: classes/helpers/FrmAddonsHelper.php:423 msgid "Based on %1$s reviews on %2$s" msgstr "" -#: classes/helpers/FrmAppHelper.php:1658 +#: classes/helpers/FrmAppHelper.php:1637 #: classes/views/xml/import_form.php:17 #: classes/views/xml/import_form.php:33 msgid "Import" msgstr "" -#: classes/helpers/FrmAppHelper.php:1692 +#: classes/helpers/FrmAppHelper.php:1671 #: classes/views/frm-settings/license_box.php:27 msgid "upgrading to PRO" msgstr "" #. translators: %1$s: Start link HTML, %2$s: CTA text ("upgrading to PRO" by default), %3$s: End link HTML -#: classes/helpers/FrmAppHelper.php:1705 +#: classes/helpers/FrmAppHelper.php:1684 msgid "You're using Formidable Forms Lite. To unlock more features consider %1$s%2$s%3$s." msgstr "" -#: classes/helpers/FrmAppHelper.php:1760 +#: classes/helpers/FrmAppHelper.php:1739 msgid "Add New" msgstr "" -#: classes/helpers/FrmAppHelper.php:1776 +#: classes/helpers/FrmAppHelper.php:1755 #: classes/views/frm-entries/list.php:48 #: classes/views/frm-forms/list.php:36 #: classes/views/shared/mb_adv_info.php:41 @@ -3083,206 +3188,206 @@ msgstr "" msgid "Search" msgstr "" -#: classes/helpers/FrmAppHelper.php:2010 +#: classes/helpers/FrmAppHelper.php:1989 msgid "Select an option" msgstr "" -#: classes/helpers/FrmAppHelper.php:2303 +#: classes/helpers/FrmAppHelper.php:2282 msgid "Add Entries from Admin Area" msgstr "" -#: classes/helpers/FrmAppHelper.php:2304 +#: classes/helpers/FrmAppHelper.php:2283 msgid "Edit Entries from Admin Area" msgstr "" -#: classes/helpers/FrmAppHelper.php:2305 +#: classes/helpers/FrmAppHelper.php:2284 msgid "View Reports" msgstr "" -#: classes/helpers/FrmAppHelper.php:2330 +#: classes/helpers/FrmAppHelper.php:2309 msgid "View Forms List" msgstr "" -#: classes/helpers/FrmAppHelper.php:2331 +#: classes/helpers/FrmAppHelper.php:2310 msgid "Add and Edit Forms" msgstr "" -#: classes/helpers/FrmAppHelper.php:2332 +#: classes/helpers/FrmAppHelper.php:2311 msgid "Delete Forms" msgstr "" -#: classes/helpers/FrmAppHelper.php:2333 +#: classes/helpers/FrmAppHelper.php:2312 msgid "Access this Settings Page" msgstr "" -#: classes/helpers/FrmAppHelper.php:2334 +#: classes/helpers/FrmAppHelper.php:2313 msgid "View Entries from Admin Area" msgstr "" -#: classes/helpers/FrmAppHelper.php:2335 +#: classes/helpers/FrmAppHelper.php:2314 msgid "Delete Entries from Admin Area" msgstr "" -#: classes/helpers/FrmAppHelper.php:3323 +#: classes/helpers/FrmAppHelper.php:3319 msgid "at" msgstr "" -#: classes/helpers/FrmAppHelper.php:3486 +#: classes/helpers/FrmAppHelper.php:3482 #: stripe/helpers/FrmTransLiteAppHelper.php:250 msgid "year" msgid_plural "years" msgstr[0] "" msgstr[1] "" -#: classes/helpers/FrmAppHelper.php:3487 +#: classes/helpers/FrmAppHelper.php:3483 msgid "years" msgstr "" -#: classes/helpers/FrmAppHelper.php:3491 +#: classes/helpers/FrmAppHelper.php:3487 #: stripe/helpers/FrmTransLiteAppHelper.php:249 msgid "month" msgid_plural "months" msgstr[0] "" msgstr[1] "" -#: classes/helpers/FrmAppHelper.php:3492 +#: classes/helpers/FrmAppHelper.php:3488 msgid "months" msgstr "" -#: classes/helpers/FrmAppHelper.php:3496 +#: classes/helpers/FrmAppHelper.php:3492 #: stripe/helpers/FrmTransLiteAppHelper.php:248 msgid "week" msgid_plural "weeks" msgstr[0] "" msgstr[1] "" -#: classes/helpers/FrmAppHelper.php:3497 +#: classes/helpers/FrmAppHelper.php:3493 msgid "weeks" msgstr "" -#: classes/helpers/FrmAppHelper.php:3501 +#: classes/helpers/FrmAppHelper.php:3497 #: stripe/helpers/FrmTransLiteAppHelper.php:247 msgid "day" msgid_plural "days" msgstr[0] "" msgstr[1] "" -#: classes/helpers/FrmAppHelper.php:3502 +#: classes/helpers/FrmAppHelper.php:3498 #: classes/views/frm-forms/gdpr-settings/auto-delete-upsell.php:29 msgid "days" msgstr "" -#: classes/helpers/FrmAppHelper.php:3506 +#: classes/helpers/FrmAppHelper.php:3502 msgid "hour" msgstr "" -#: classes/helpers/FrmAppHelper.php:3507 +#: classes/helpers/FrmAppHelper.php:3503 msgid "hours" msgstr "" -#: classes/helpers/FrmAppHelper.php:3511 +#: classes/helpers/FrmAppHelper.php:3507 msgid "minute" msgstr "" -#: classes/helpers/FrmAppHelper.php:3512 +#: classes/helpers/FrmAppHelper.php:3508 msgid "minutes" msgstr "" -#: classes/helpers/FrmAppHelper.php:3516 +#: classes/helpers/FrmAppHelper.php:3512 msgid "second" msgstr "" -#: classes/helpers/FrmAppHelper.php:3517 +#: classes/helpers/FrmAppHelper.php:3513 #: classes/views/frm-form-actions/on_submit_redirect_settings.php:100 msgid "seconds" msgstr "" -#: classes/helpers/FrmAppHelper.php:3636 +#: classes/helpers/FrmAppHelper.php:3632 msgid "Give this action a label for easy reference." msgstr "" -#: classes/helpers/FrmAppHelper.php:3637 +#: classes/helpers/FrmAppHelper.php:3633 msgid "Add one or more recipient addresses separated by a \",\". FORMAT: Name or name@email.com. [default-email] is the address set in the global \"Default Email Address\" settings." msgstr "" -#: classes/helpers/FrmAppHelper.php:3638 +#: classes/helpers/FrmAppHelper.php:3634 msgid "Add CC addresses separated by a \",\". FORMAT: Name or name@email.com." msgstr "" -#: classes/helpers/FrmAppHelper.php:3639 +#: classes/helpers/FrmAppHelper.php:3635 msgid "Add BCC addresses separated by a \",\". FORMAT: Name or name@email.com." msgstr "" -#: classes/helpers/FrmAppHelper.php:3640 +#: classes/helpers/FrmAppHelper.php:3636 msgid "If you would like a different reply to address than the \"from\" address, add a single address here. FORMAT: Name or name@email.com." msgstr "" -#: classes/helpers/FrmAppHelper.php:3641 +#: classes/helpers/FrmAppHelper.php:3637 msgid "Enter the name and/or email address of the sender. FORMAT: John Bates or john@example.com." msgstr "" #. translators: %1$s: Form name, %2$s: Date -#: classes/helpers/FrmAppHelper.php:3643 +#: classes/helpers/FrmAppHelper.php:3639 msgid "If you leave the subject blank, the default will be used: %1$s Form submitted on %2$s" msgstr "" -#: classes/helpers/FrmAppHelper.php:3644 +#: classes/helpers/FrmAppHelper.php:3640 msgid "This option will open the link in a new browser tab. Please note that some popup blockers may prevent this from happening, in which case the link will be displayed." msgstr "" -#: classes/helpers/FrmAppHelper.php:3933 -#: classes/helpers/FrmAppHelper.php:4019 +#: classes/helpers/FrmAppHelper.php:3929 +#: classes/helpers/FrmAppHelper.php:4015 msgid "Please wait while your site updates." msgstr "" -#: classes/helpers/FrmAppHelper.php:3934 +#: classes/helpers/FrmAppHelper.php:3930 msgid "Are you sure you want to deauthorize Formidable Forms on this site?" msgstr "" -#: classes/helpers/FrmAppHelper.php:3939 -#: classes/helpers/FrmAppHelper.php:3972 +#: classes/helpers/FrmAppHelper.php:3935 +#: classes/helpers/FrmAppHelper.php:3968 msgid "Loading…" msgstr "" -#: classes/helpers/FrmAppHelper.php:3973 +#: classes/helpers/FrmAppHelper.php:3969 msgid "Remove" msgstr "" -#: classes/helpers/FrmAppHelper.php:3976 -#: classes/helpers/FrmCSVExportHelper.php:463 +#: classes/helpers/FrmAppHelper.php:3972 +#: classes/helpers/FrmCSVExportHelper.php:467 msgid "ID" msgstr "" -#: classes/helpers/FrmAppHelper.php:3977 +#: classes/helpers/FrmAppHelper.php:3973 msgid "No results match" msgstr "" -#: classes/helpers/FrmAppHelper.php:3978 +#: classes/helpers/FrmAppHelper.php:3974 msgid "That file looks like Spam." msgstr "" -#: classes/helpers/FrmAppHelper.php:3979 +#: classes/helpers/FrmAppHelper.php:3975 msgid "There is an error in the calculation in the field with key" msgstr "" -#: classes/helpers/FrmAppHelper.php:3980 +#: classes/helpers/FrmAppHelper.php:3976 msgid "Please complete the preceding required fields before uploading a file." msgstr "" -#: classes/helpers/FrmAppHelper.php:3995 +#: classes/helpers/FrmAppHelper.php:3991 msgid "(Click to add description)" msgstr "" -#: classes/helpers/FrmAppHelper.php:3996 +#: classes/helpers/FrmAppHelper.php:3992 msgid "(Blank)" msgstr "" -#: classes/helpers/FrmAppHelper.php:3998 +#: classes/helpers/FrmAppHelper.php:3994 msgid "OK" msgstr "" -#: classes/helpers/FrmAppHelper.php:4000 -#: classes/views/frm-fields/back-end/settings.php:443 +#: classes/helpers/FrmAppHelper.php:3996 +#: classes/views/frm-fields/back-end/settings.php:447 #: classes/views/styles/_buttons.php:12 #: classes/views/styles/_field-colors.php:12 #: js/src/web-components/frm-typography-component/frm-typography-component.js:10 @@ -3292,610 +3397,648 @@ msgstr "" msgid "Default" msgstr "" -#: classes/helpers/FrmAppHelper.php:4001 +#: classes/helpers/FrmAppHelper.php:3997 msgid "Clear default value when typing" msgstr "" -#: classes/helpers/FrmAppHelper.php:4002 +#: classes/helpers/FrmAppHelper.php:3998 msgid "Do not clear default value when typing" msgstr "" -#: classes/helpers/FrmAppHelper.php:4003 +#: classes/helpers/FrmAppHelper.php:3999 msgid "Default value will pass form validation" msgstr "" -#: classes/helpers/FrmAppHelper.php:4004 +#: classes/helpers/FrmAppHelper.php:4000 msgid "Default value will NOT pass form validation" msgstr "" -#: classes/helpers/FrmAppHelper.php:4005 +#: classes/helpers/FrmAppHelper.php:4001 #: classes/views/shared/confirm-overlay.php:15 #: classes/views/shared/info-overlay.php:16 -#: js/src/admin/admin.js:456 -#: js/formidable_admin.js:4299 +#: js/src/admin/admin.js:485 +#: js/formidable_admin.js:5755 msgid "Are you sure?" msgstr "" -#: classes/helpers/FrmAppHelper.php:4006 +#: classes/helpers/FrmAppHelper.php:4002 msgid "Are you sure you want to delete this field and all data associated with it?" msgstr "" -#: classes/helpers/FrmAppHelper.php:4007 +#: classes/helpers/FrmAppHelper.php:4003 msgid "All fields inside this Section will be deleted along with their data. Are you sure you want to delete this group of fields?" msgstr "" -#: classes/helpers/FrmAppHelper.php:4008 +#: classes/helpers/FrmAppHelper.php:4004 msgid "Warning: If you have entries with multiple rows, all but the first row will be lost." msgstr "" -#: classes/helpers/FrmAppHelper.php:4010 -#: classes/helpers/FrmFieldsHelper.php:498 +#: classes/helpers/FrmAppHelper.php:4006 +#: classes/helpers/FrmFieldsHelper.php:555 msgid "The entered values do not match" msgstr "" -#: classes/helpers/FrmAppHelper.php:4011 +#: classes/helpers/FrmAppHelper.php:4007 msgid "Enter Email" msgstr "" -#: classes/helpers/FrmAppHelper.php:4012 +#: classes/helpers/FrmAppHelper.php:4008 msgid "Confirm Email" msgstr "" -#: classes/helpers/FrmAppHelper.php:4013 +#: classes/helpers/FrmAppHelper.php:4009 #: classes/views/shared/mb_adv_info.php:183 msgid "Conditional content here" msgstr "" -#: classes/helpers/FrmAppHelper.php:4014 -#: classes/helpers/FrmFieldsHelper.php:786 -#: classes/helpers/FrmFieldsHelper.php:787 +#: classes/helpers/FrmAppHelper.php:4010 +#: classes/helpers/FrmFieldsHelper.php:843 +#: classes/helpers/FrmFieldsHelper.php:844 msgid "New Option" msgstr "" -#: classes/helpers/FrmAppHelper.php:4015 +#: classes/helpers/FrmAppHelper.php:4011 msgid "In certain browsers (e.g. Firefox) text will not display correctly if the field height is too small relative to the field padding and text size. Please increase your field height or decrease your field padding." msgstr "" -#: classes/helpers/FrmAppHelper.php:4016 +#: classes/helpers/FrmAppHelper.php:4012 msgid "Enter Password" msgstr "" -#: classes/helpers/FrmAppHelper.php:4017 +#: classes/helpers/FrmAppHelper.php:4013 msgid "Confirm Password" msgstr "" -#: classes/helpers/FrmAppHelper.php:4018 +#: classes/helpers/FrmAppHelper.php:4014 msgid "Import Complete" msgstr "" -#: classes/helpers/FrmAppHelper.php:4020 +#: classes/helpers/FrmAppHelper.php:4016 msgid "Warning: There is no way to retrieve unsaved entries." msgstr "" -#: classes/helpers/FrmAppHelper.php:4021 +#: classes/helpers/FrmAppHelper.php:4017 msgid "Private" msgstr "" -#: classes/helpers/FrmAppHelper.php:4024 +#: classes/helpers/FrmAppHelper.php:4020 msgid "No new licenses were found" msgstr "" -#: classes/helpers/FrmAppHelper.php:4025 +#: classes/helpers/FrmAppHelper.php:4021 msgid "This calculation has at least one unmatched ( ) { } [ ]." msgstr "" -#: classes/helpers/FrmAppHelper.php:4026 +#: classes/helpers/FrmAppHelper.php:4022 msgid "This calculation may have shortcodes that work in Views but not forms." msgstr "" -#: classes/helpers/FrmAppHelper.php:4027 +#: classes/helpers/FrmAppHelper.php:4023 msgid "This calculation may have shortcodes that work in text calculations but not numeric calculations." msgstr "" #. translators: %d is the number of allowed actions per form -#: classes/helpers/FrmAppHelper.php:4029 +#: classes/helpers/FrmAppHelper.php:4025 msgid "This form action is limited to %d per form." msgstr "" -#: classes/helpers/FrmAppHelper.php:4030 +#: classes/helpers/FrmAppHelper.php:4026 msgid "Please edit the existing form action." msgstr "" -#: classes/helpers/FrmAppHelper.php:4031 +#: classes/helpers/FrmAppHelper.php:4027 msgid "This form already has a payment action, and is currently limited to a single payment action." msgstr "" -#: classes/helpers/FrmAppHelper.php:4032 +#: classes/helpers/FrmAppHelper.php:4028 msgid "This form already has a payment action. Multiple Stripe actions are available when using the Stripe add-on, available for Formidable Business licenses and higher." msgstr "" #. Translators: %s is the name of a Detail Page Slug that is a reserved word. -#: classes/helpers/FrmAppHelper.php:4035 +#: classes/helpers/FrmAppHelper.php:4031 msgid "The Detail Page Slug \"%s\" is reserved by WordPress. This may cause problems. Is this intentional?" msgstr "" #. Translators: %s is the name of a parameter that is a reserved word. More than one word could be listed here, though that would not be common. -#: classes/helpers/FrmAppHelper.php:4037 +#: classes/helpers/FrmAppHelper.php:4033 msgid "The parameter \"%s\" is reserved by WordPress. This may cause problems when included in the URL. Is this intentional? " msgstr "" -#: classes/helpers/FrmAppHelper.php:4038 -#: classes/helpers/FrmFormsHelper.php:2181 +#: classes/helpers/FrmAppHelper.php:4034 +#: classes/helpers/FrmFormsHelper.php:2246 msgid "See the list of reserved words in WordPress." msgstr "" -#: classes/helpers/FrmAppHelper.php:4039 +#: classes/helpers/FrmAppHelper.php:4035 msgid "Please enter a Repeat Limit that is greater than 1." msgstr "" -#: classes/helpers/FrmAppHelper.php:4040 +#: classes/helpers/FrmAppHelper.php:4036 msgid "Please select a limit between 0 and 200." msgstr "" -#: classes/helpers/FrmAppHelper.php:4041 +#: classes/helpers/FrmAppHelper.php:4037 #: classes/views/shared/upgrade_overlay.php:82 #: js/src/form/views.js:20 #: js/formidable_blocks.js:1245 msgid "Install" msgstr "" -#: classes/helpers/FrmAppHelper.php:4045 +#: classes/helpers/FrmAppHelper.php:4041 #: classes/views/shared/mb_adv_info.php:126 #: classes/views/shared/mb_adv_info.php:142 msgid "Select a Field" msgstr "" -#: classes/helpers/FrmAppHelper.php:4046 +#: classes/helpers/FrmAppHelper.php:4042 #: classes/helpers/FrmListHelper.php:279 msgid "No items found." msgstr "" -#: classes/helpers/FrmAppHelper.php:4047 +#: classes/helpers/FrmAppHelper.php:4043 msgid "Oops. You have already used that field." msgstr "" #. translators: %1$s: HTML open tag, %2$s: HTML end tag. -#: classes/helpers/FrmAppHelper.php:4056 +#: classes/helpers/FrmAppHelper.php:4052 msgid "You can hold %1$sShift%2$s on your keyboard to select multiple fields" msgstr "" -#: classes/helpers/FrmAppHelper.php:4102 +#: classes/helpers/FrmAppHelper.php:4098 msgid "Setup a Payment Gateway first" msgstr "" -#: classes/helpers/FrmAppHelper.php:4103 +#: classes/helpers/FrmAppHelper.php:4099 msgid "To use the payment fields, please install and configure a payment gateway in your account settings." msgstr "" -#: classes/helpers/FrmAppHelper.php:4106 +#: classes/helpers/FrmAppHelper.php:4102 #: stripe/views/lists/no-payments.php:28 msgid "Go to Payment Settings" msgstr "" -#: classes/helpers/FrmAppHelper.php:4119 +#: classes/helpers/FrmAppHelper.php:4115 msgid "Start Accepting Payments Today!" msgstr "" -#: classes/helpers/FrmAppHelper.php:4128 +#: classes/helpers/FrmAppHelper.php:4124 msgid "Stripe" msgstr "" -#: classes/helpers/FrmAppHelper.php:4132 +#: classes/helpers/FrmAppHelper.php:4128 msgid "Square" msgstr "" -#: classes/helpers/FrmAppHelper.php:4136 +#: classes/helpers/FrmAppHelper.php:4132 #: paypal/controllers/FrmPayPalLiteActionsController.php:328 -#: paypal/views/settings/button-settings.php:46 +#: paypal/views/settings/button-settings.php:45 msgid "PayPal" msgstr "" #. translators: %s: Stripe, Square, or PayPal. -#: classes/helpers/FrmAppHelper.php:4141 +#: classes/helpers/FrmAppHelper.php:4137 msgid "You already have %s connected, so these have already been unlocked." msgstr "" -#: classes/helpers/FrmAppHelper.php:4142 +#: classes/helpers/FrmAppHelper.php:4138 msgid "and" msgstr "" -#: classes/helpers/FrmAppHelper.php:4145 +#: classes/helpers/FrmAppHelper.php:4141 msgid "I'll do it later!" msgstr "" -#: classes/helpers/FrmAppHelper.php:4146 +#: classes/helpers/FrmAppHelper.php:4142 msgid "Setup Payments Now" msgstr "" -#: classes/helpers/FrmAppHelper.php:4149 +#: classes/helpers/FrmAppHelper.php:4145 msgid "We've unlocked Product, Quantity, and Total fields for Lite users! You can now transform your forms into checkout pages. To start collecting revenue, simply connect your preferred payment gateway (Stripe, Square, or PayPal) in your settings." msgstr "" -#: classes/helpers/FrmAppHelper.php:4163 +#: classes/helpers/FrmAppHelper.php:4159 msgid "(no label)" msgstr "" -#: classes/helpers/FrmAppHelper.php:4240 +#: classes/helpers/FrmAppHelper.php:4236 msgid "frm_focus_first_error and frm_focus_error_summary cannot both resolve true for the same form. The error summary takes priority." msgstr "" -#: classes/helpers/FrmAppHelper.php:4288 +#: classes/helpers/FrmAppHelper.php:4284 msgid "You are running an outdated version of Formidable. This plugin may not work correctly if you do not update Formidable." msgstr "" -#: classes/helpers/FrmAppHelper.php:4342 +#: classes/helpers/FrmAppHelper.php:4338 msgid "The version of PHP on your server is too low. If this is not corrected, you may see issues with Formidable Forms. Please contact your web host and ask to be updated to PHP 7.0+." msgstr "" -#: classes/helpers/FrmAppHelper.php:4363 +#: classes/helpers/FrmAppHelper.php:4359 msgid "English" msgstr "" -#: classes/helpers/FrmAppHelper.php:4364 +#: classes/helpers/FrmAppHelper.php:4360 msgid "Afrikaans" msgstr "" -#: classes/helpers/FrmAppHelper.php:4365 +#: classes/helpers/FrmAppHelper.php:4361 msgid "Albanian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4366 +#: classes/helpers/FrmAppHelper.php:4362 msgid "Algerian Arabic" msgstr "" -#: classes/helpers/FrmAppHelper.php:4367 +#: classes/helpers/FrmAppHelper.php:4363 msgid "Amharic" msgstr "" -#: classes/helpers/FrmAppHelper.php:4368 +#: classes/helpers/FrmAppHelper.php:4364 msgid "Arabic" msgstr "" -#: classes/helpers/FrmAppHelper.php:4369 +#: classes/helpers/FrmAppHelper.php:4365 msgid "Armenian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4370 +#: classes/helpers/FrmAppHelper.php:4366 msgid "Azerbaijani" msgstr "" -#: classes/helpers/FrmAppHelper.php:4371 +#: classes/helpers/FrmAppHelper.php:4367 msgid "Basque" msgstr "" -#: classes/helpers/FrmAppHelper.php:4372 +#: classes/helpers/FrmAppHelper.php:4368 msgid "Belarusian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4373 +#: classes/helpers/FrmAppHelper.php:4369 msgid "Bengali" msgstr "" -#: classes/helpers/FrmAppHelper.php:4374 +#: classes/helpers/FrmAppHelper.php:4370 msgid "Bosnian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4375 +#: classes/helpers/FrmAppHelper.php:4371 msgid "Bulgarian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4376 +#: classes/helpers/FrmAppHelper.php:4372 msgid "Catalan" msgstr "" -#: classes/helpers/FrmAppHelper.php:4377 +#: classes/helpers/FrmAppHelper.php:4373 msgid "Chinese Hong Kong" msgstr "" -#: classes/helpers/FrmAppHelper.php:4378 +#: classes/helpers/FrmAppHelper.php:4374 msgid "Chinese Simplified" msgstr "" -#: classes/helpers/FrmAppHelper.php:4379 +#: classes/helpers/FrmAppHelper.php:4375 msgid "Chinese Traditional" msgstr "" -#: classes/helpers/FrmAppHelper.php:4380 +#: classes/helpers/FrmAppHelper.php:4376 msgid "Croatian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4381 +#: classes/helpers/FrmAppHelper.php:4377 msgid "Czech" msgstr "" -#: classes/helpers/FrmAppHelper.php:4382 +#: classes/helpers/FrmAppHelper.php:4378 msgid "Danish" msgstr "" -#: classes/helpers/FrmAppHelper.php:4383 +#: classes/helpers/FrmAppHelper.php:4379 msgid "Dutch" msgstr "" -#: classes/helpers/FrmAppHelper.php:4384 +#: classes/helpers/FrmAppHelper.php:4380 msgid "English/UK" msgstr "" -#: classes/helpers/FrmAppHelper.php:4385 +#: classes/helpers/FrmAppHelper.php:4381 msgid "Esperanto" msgstr "" -#: classes/helpers/FrmAppHelper.php:4386 +#: classes/helpers/FrmAppHelper.php:4382 msgid "Estonian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4387 +#: classes/helpers/FrmAppHelper.php:4383 msgid "Faroese" msgstr "" -#: classes/helpers/FrmAppHelper.php:4388 +#: classes/helpers/FrmAppHelper.php:4384 msgid "Farsi/Persian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4389 +#: classes/helpers/FrmAppHelper.php:4385 msgid "Filipino" msgstr "" -#: classes/helpers/FrmAppHelper.php:4390 +#: classes/helpers/FrmAppHelper.php:4386 msgid "Finnish" msgstr "" -#: classes/helpers/FrmAppHelper.php:4391 +#: classes/helpers/FrmAppHelper.php:4387 msgid "French" msgstr "" -#: classes/helpers/FrmAppHelper.php:4392 +#: classes/helpers/FrmAppHelper.php:4388 msgid "French/Canadian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4393 +#: classes/helpers/FrmAppHelper.php:4389 msgid "French/Swiss" msgstr "" -#: classes/helpers/FrmAppHelper.php:4394 +#: classes/helpers/FrmAppHelper.php:4390 msgid "Galician" msgstr "" -#: classes/helpers/FrmAppHelper.php:4395 +#: classes/helpers/FrmAppHelper.php:4391 msgid "Georgian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4396 +#: classes/helpers/FrmAppHelper.php:4392 msgid "German" msgstr "" -#: classes/helpers/FrmAppHelper.php:4397 +#: classes/helpers/FrmAppHelper.php:4393 msgid "German/Austria" msgstr "" -#: classes/helpers/FrmAppHelper.php:4398 +#: classes/helpers/FrmAppHelper.php:4394 msgid "German/Switzerland" msgstr "" -#: classes/helpers/FrmAppHelper.php:4399 +#: classes/helpers/FrmAppHelper.php:4395 msgid "Greek" msgstr "" -#: classes/helpers/FrmAppHelper.php:4400 +#: classes/helpers/FrmAppHelper.php:4396 msgid "Gujarati" msgstr "" -#: classes/helpers/FrmAppHelper.php:4401 -#: classes/helpers/FrmAppHelper.php:4402 +#: classes/helpers/FrmAppHelper.php:4397 +#: classes/helpers/FrmAppHelper.php:4398 msgid "Hebrew" msgstr "" -#: classes/helpers/FrmAppHelper.php:4403 +#: classes/helpers/FrmAppHelper.php:4399 msgid "Hindi" msgstr "" -#: classes/helpers/FrmAppHelper.php:4404 +#: classes/helpers/FrmAppHelper.php:4400 msgid "Hungarian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4405 +#: classes/helpers/FrmAppHelper.php:4401 msgid "Icelandic" msgstr "" -#: classes/helpers/FrmAppHelper.php:4406 +#: classes/helpers/FrmAppHelper.php:4402 msgid "Indonesian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4407 +#: classes/helpers/FrmAppHelper.php:4403 msgid "Italian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4408 +#: classes/helpers/FrmAppHelper.php:4404 msgid "Japanese" msgstr "" -#: classes/helpers/FrmAppHelper.php:4409 +#: classes/helpers/FrmAppHelper.php:4405 msgid "Kannada" msgstr "" -#: classes/helpers/FrmAppHelper.php:4410 +#: classes/helpers/FrmAppHelper.php:4406 msgid "Kazakh" msgstr "" -#: classes/helpers/FrmAppHelper.php:4411 +#: classes/helpers/FrmAppHelper.php:4407 msgid "Khmer" msgstr "" -#: classes/helpers/FrmAppHelper.php:4412 +#: classes/helpers/FrmAppHelper.php:4408 msgid "Korean" msgstr "" -#: classes/helpers/FrmAppHelper.php:4413 +#: classes/helpers/FrmAppHelper.php:4409 msgid "Kyrgyz" msgstr "" -#: classes/helpers/FrmAppHelper.php:4414 +#: classes/helpers/FrmAppHelper.php:4410 msgid "Laothian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4415 +#: classes/helpers/FrmAppHelper.php:4411 msgid "Latvian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4416 +#: classes/helpers/FrmAppHelper.php:4412 msgid "Lithuanian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4417 +#: classes/helpers/FrmAppHelper.php:4413 msgid "Luxembourgish" msgstr "" -#: classes/helpers/FrmAppHelper.php:4418 +#: classes/helpers/FrmAppHelper.php:4414 msgid "Macedonian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4419 +#: classes/helpers/FrmAppHelper.php:4415 msgid "Malayalam" msgstr "" -#: classes/helpers/FrmAppHelper.php:4420 +#: classes/helpers/FrmAppHelper.php:4416 msgid "Malaysian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4421 +#: classes/helpers/FrmAppHelper.php:4417 msgid "Marathi" msgstr "" -#: classes/helpers/FrmAppHelper.php:4422 +#: classes/helpers/FrmAppHelper.php:4418 msgid "Norwegian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4423 +#: classes/helpers/FrmAppHelper.php:4419 msgid "Norwegian Bokmål" msgstr "" -#: classes/helpers/FrmAppHelper.php:4424 +#: classes/helpers/FrmAppHelper.php:4420 msgid "Norwegian Nynorsk" msgstr "" -#: classes/helpers/FrmAppHelper.php:4425 +#: classes/helpers/FrmAppHelper.php:4421 msgid "Polish" msgstr "" -#: classes/helpers/FrmAppHelper.php:4426 +#: classes/helpers/FrmAppHelper.php:4422 msgid "Portuguese" msgstr "" -#: classes/helpers/FrmAppHelper.php:4427 +#: classes/helpers/FrmAppHelper.php:4423 msgid "Portuguese/Brazilian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4428 +#: classes/helpers/FrmAppHelper.php:4424 msgid "Portuguese/Portugal" msgstr "" -#: classes/helpers/FrmAppHelper.php:4429 +#: classes/helpers/FrmAppHelper.php:4425 msgid "Romansh" msgstr "" -#: classes/helpers/FrmAppHelper.php:4430 +#: classes/helpers/FrmAppHelper.php:4426 msgid "Romanian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4431 +#: classes/helpers/FrmAppHelper.php:4427 msgid "Russian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4432 -#: classes/helpers/FrmAppHelper.php:4433 +#: classes/helpers/FrmAppHelper.php:4428 +#: classes/helpers/FrmAppHelper.php:4429 msgid "Serbian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4434 +#: classes/helpers/FrmAppHelper.php:4430 msgid "Sinhalese" msgstr "" -#: classes/helpers/FrmAppHelper.php:4435 +#: classes/helpers/FrmAppHelper.php:4431 msgid "Slovak" msgstr "" -#: classes/helpers/FrmAppHelper.php:4436 +#: classes/helpers/FrmAppHelper.php:4432 msgid "Slovenian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4437 +#: classes/helpers/FrmAppHelper.php:4433 msgid "Spanish" msgstr "" -#: classes/helpers/FrmAppHelper.php:4438 +#: classes/helpers/FrmAppHelper.php:4434 msgid "Spanish/Latin America" msgstr "" -#: classes/helpers/FrmAppHelper.php:4439 +#: classes/helpers/FrmAppHelper.php:4435 msgid "Swahili" msgstr "" -#: classes/helpers/FrmAppHelper.php:4440 +#: classes/helpers/FrmAppHelper.php:4436 msgid "Swedish" msgstr "" -#: classes/helpers/FrmAppHelper.php:4441 +#: classes/helpers/FrmAppHelper.php:4437 msgid "Tamil" msgstr "" -#: classes/helpers/FrmAppHelper.php:4442 +#: classes/helpers/FrmAppHelper.php:4438 msgid "Telugu" msgstr "" -#: classes/helpers/FrmAppHelper.php:4443 +#: classes/helpers/FrmAppHelper.php:4439 msgid "Thai" msgstr "" -#: classes/helpers/FrmAppHelper.php:4444 +#: classes/helpers/FrmAppHelper.php:4440 msgid "Tajiki" msgstr "" -#: classes/helpers/FrmAppHelper.php:4445 +#: classes/helpers/FrmAppHelper.php:4441 msgid "Turkish" msgstr "" -#: classes/helpers/FrmAppHelper.php:4446 +#: classes/helpers/FrmAppHelper.php:4442 msgid "Ukrainian" msgstr "" -#: classes/helpers/FrmAppHelper.php:4447 +#: classes/helpers/FrmAppHelper.php:4443 msgid "Urdu" msgstr "" -#: classes/helpers/FrmAppHelper.php:4448 +#: classes/helpers/FrmAppHelper.php:4444 msgid "Vietnamese" msgstr "" -#: classes/helpers/FrmAppHelper.php:4449 +#: classes/helpers/FrmAppHelper.php:4445 msgid "Welsh" msgstr "" -#: classes/helpers/FrmAppHelper.php:4450 +#: classes/helpers/FrmAppHelper.php:4446 msgid "Zulu" msgstr "" -#: classes/helpers/FrmAppHelper.php:4843 +#: classes/helpers/FrmAppHelper.php:4839 msgid "Form Landing Pages" msgstr "" -#: classes/helpers/FrmAppHelper.php:4844 +#: classes/helpers/FrmAppHelper.php:4840 msgid "Easily manage a landing page for your form. Upgrade to get form landing pages." msgstr "" -#: classes/helpers/FrmAppHelper.php:4941 +#: classes/helpers/FrmAppHelper.php:4937 #: classes/views/styles/_style-card.php:38 #: js/admin/applications.js:312 msgid "NEW" msgstr "" -#: classes/helpers/FrmAppHelper.php:5108 +#: classes/helpers/FrmAppHelper.php:5104 msgctxt "warning message: close icon label" msgid "Dismiss" msgstr "" -#: classes/helpers/FrmAppHelper.php:5150 +#: classes/helpers/FrmAppHelper.php:5146 msgid "You're using Formidable Forms Lite - no license needed. Enjoy!" msgstr "" +#: classes/helpers/FrmBuilderPreviewHelper.php:204 +#: classes/views/frm-forms/add_field.php:57 +msgid "Move Field" +msgstr "" + +#: classes/helpers/FrmBuilderPreviewHelper.php:205 +#: classes/views/frm-forms/add_field.php:62 +#: js/src/admin/admin.js:2071 +#: js/src/admin/admin.js:2077 +#: js/src/admin/admin.js:3824 +#: js/formidable_admin.js:7341 +#: js/formidable_admin.js:7347 +#: js/formidable_admin.js:9040 +msgid "More Options" +msgstr "" + +#: classes/helpers/FrmBuilderPreviewHelper.php:206 +#: classes/views/frm-forms/add_field.php:64 +#: js/src/admin/admin.js:2063 +#: js/formidable_admin.js:7333 +msgid "Toggle More Options Dropdown" +msgstr "" + +#: classes/helpers/FrmBuilderPreviewHelper.php:207 +#: classes/models/fields/FrmFieldType.php:329 +msgid "(Collapsed)" +msgstr "" + +#: classes/helpers/FrmBuilderPreviewHelper.php:208 +#: classes/views/frm-fields/back-end/field-hidden.php:18 +msgid "Note: This field will not show in the form. Enter the value to be hidden." +msgstr "" + +#: classes/helpers/FrmBuilderPreviewHelper.php:209 +#: classes/views/frm-fields/back-end/field-html.php:16 +msgid "Custom HTML:" +msgstr "" + #: classes/helpers/FrmCSVExportHelper.php:354 msgid "(label)" msgstr "" @@ -3904,35 +4047,35 @@ msgstr "" msgid "(value)" msgstr "" -#: classes/helpers/FrmCSVExportHelper.php:450 +#: classes/helpers/FrmCSVExportHelper.php:454 msgid "Comment" msgstr "" -#: classes/helpers/FrmCSVExportHelper.php:451 +#: classes/helpers/FrmCSVExportHelper.php:455 msgid "Comment User" msgstr "" -#: classes/helpers/FrmCSVExportHelper.php:452 +#: classes/helpers/FrmCSVExportHelper.php:456 msgid "Comment Date" msgstr "" -#: classes/helpers/FrmCSVExportHelper.php:457 +#: classes/helpers/FrmCSVExportHelper.php:461 msgid "Timestamp" msgstr "" -#: classes/helpers/FrmCSVExportHelper.php:458 +#: classes/helpers/FrmCSVExportHelper.php:462 msgid "Last Updated" msgstr "" -#: classes/helpers/FrmCSVExportHelper.php:460 +#: classes/helpers/FrmCSVExportHelper.php:464 msgid "Updated By" msgstr "" -#: classes/helpers/FrmCSVExportHelper.php:462 +#: classes/helpers/FrmCSVExportHelper.php:466 msgid "IP" msgstr "" -#: classes/helpers/FrmCSVExportHelper.php:467 +#: classes/helpers/FrmCSVExportHelper.php:471 msgid "Parent ID" msgstr "" @@ -4160,7 +4303,7 @@ msgid "Submitted" msgstr "" #: classes/helpers/FrmEntriesHelper.php:950 -#: classes/helpers/FrmFormsHelper.php:1834 +#: classes/helpers/FrmFormsHelper.php:1899 #: classes/helpers/FrmFormsListHelper.php:551 msgid "Draft" msgstr "" @@ -4229,15 +4372,15 @@ msgid "View" msgstr "" #: classes/helpers/FrmEntriesListHelper.php:552 -#: classes/helpers/FrmFormsHelper.php:1737 +#: classes/helpers/FrmFormsHelper.php:1802 #: classes/helpers/FrmFormsListHelper.php:189 #: classes/views/frm-form-actions/form_action.php:39 #: stripe/helpers/FrmTransLiteListHelper.php:193 #: stripe/helpers/FrmTransLiteListHelper.php:463 #: stripe/views/payments/show.php:173 #: stripe/views/subscriptions/show.php:129 -#: js/src/admin/admin.js:3567 -#: js/formidable_admin.js:7348 +#: js/src/admin/admin.js:3894 +#: js/formidable_admin.js:9110 msgid "Delete" msgstr "" @@ -4246,1400 +4389,1400 @@ msgstr "" msgid "ALL entries in this form will be permanently deleted.%1$sWant to proceed? Type %2$s below." msgstr "" -#: classes/helpers/FrmFieldsHelper.php:321 +#: classes/helpers/FrmFieldsHelper.php:378 msgid "Enter a valid email address, like name@example.com" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:322 +#: classes/helpers/FrmFieldsHelper.php:379 msgid "Enter a valid web address, like https://example.com" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:323 +#: classes/helpers/FrmFieldsHelper.php:380 msgid "Enter a valid phone number" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:324 +#: classes/helpers/FrmFieldsHelper.php:381 msgid "Enter a number" msgstr "" #. translators: %s: [field_name] shortcode (Which gets replaced by a Field Name) #. translators: %s: Field name -#: classes/helpers/FrmFieldsHelper.php:330 +#: classes/helpers/FrmFieldsHelper.php:387 #: classes/helpers/FrmXMLHelper.php:1851 msgid "%s is invalid" msgstr "" #. translators: %s: Field name -#: classes/helpers/FrmFieldsHelper.php:503 +#: classes/helpers/FrmFieldsHelper.php:560 msgid "%s must be unique" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:506 +#: classes/helpers/FrmFieldsHelper.php:563 msgid "This field is invalid" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:550 +#: classes/helpers/FrmFieldsHelper.php:607 msgid "This value" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:550 +#: classes/helpers/FrmFieldsHelper.php:607 msgid "This field" msgstr "" #. translators: %1$s: Start HTML link, %2$s: Content type label, %3$s: Content type, %4$s: End HTML link -#: classes/helpers/FrmFieldsHelper.php:912 +#: classes/helpers/FrmFieldsHelper.php:969 msgid "Options are dynamically created from your %1$s%2$s: %3$s%4$s" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:914 +#: classes/helpers/FrmFieldsHelper.php:971 msgid "taxonomy" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:915 +#: classes/helpers/FrmFieldsHelper.php:972 #: classes/views/addons/categories.php:14 #: classes/views/form-templates/categories.php:12 msgid "Categories" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2060 +#: classes/helpers/FrmFieldsHelper.php:2117 msgid "Afghanistan" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2061 +#: classes/helpers/FrmFieldsHelper.php:2118 msgid "Aland Islands" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2062 +#: classes/helpers/FrmFieldsHelper.php:2119 msgid "Albania" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2063 +#: classes/helpers/FrmFieldsHelper.php:2120 msgid "Algeria" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2064 +#: classes/helpers/FrmFieldsHelper.php:2121 msgid "American Samoa" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2065 +#: classes/helpers/FrmFieldsHelper.php:2122 msgid "Andorra" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2066 +#: classes/helpers/FrmFieldsHelper.php:2123 msgid "Angola" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2067 +#: classes/helpers/FrmFieldsHelper.php:2124 msgid "Anguilla" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2068 +#: classes/helpers/FrmFieldsHelper.php:2125 msgid "Antarctica" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2069 +#: classes/helpers/FrmFieldsHelper.php:2126 msgid "Antigua and Barbuda" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2070 +#: classes/helpers/FrmFieldsHelper.php:2127 msgid "Argentina" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2071 +#: classes/helpers/FrmFieldsHelper.php:2128 msgid "Armenia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2072 +#: classes/helpers/FrmFieldsHelper.php:2129 msgid "Aruba" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2073 +#: classes/helpers/FrmFieldsHelper.php:2130 msgid "Australia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2074 +#: classes/helpers/FrmFieldsHelper.php:2131 msgid "Austria" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2075 +#: classes/helpers/FrmFieldsHelper.php:2132 msgid "Azerbaijan" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2076 +#: classes/helpers/FrmFieldsHelper.php:2133 msgid "Bahamas" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2077 +#: classes/helpers/FrmFieldsHelper.php:2134 msgid "Bahrain" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2078 +#: classes/helpers/FrmFieldsHelper.php:2135 msgid "Bangladesh" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2079 +#: classes/helpers/FrmFieldsHelper.php:2136 msgid "Barbados" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2080 +#: classes/helpers/FrmFieldsHelper.php:2137 msgid "Belarus" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2081 +#: classes/helpers/FrmFieldsHelper.php:2138 msgid "Belgium" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2082 +#: classes/helpers/FrmFieldsHelper.php:2139 msgid "Belize" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2083 +#: classes/helpers/FrmFieldsHelper.php:2140 msgid "Benin" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2084 +#: classes/helpers/FrmFieldsHelper.php:2141 msgid "Bermuda" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2085 +#: classes/helpers/FrmFieldsHelper.php:2142 msgid "Bhutan" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2086 +#: classes/helpers/FrmFieldsHelper.php:2143 msgid "Bolivia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2087 +#: classes/helpers/FrmFieldsHelper.php:2144 msgid "Bonaire, Sint Eustatius and Saba" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2088 +#: classes/helpers/FrmFieldsHelper.php:2145 msgid "Bosnia and Herzegovina" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2089 +#: classes/helpers/FrmFieldsHelper.php:2146 msgid "Botswana" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2090 +#: classes/helpers/FrmFieldsHelper.php:2147 msgid "Bouvet Island" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2091 +#: classes/helpers/FrmFieldsHelper.php:2148 msgid "Brazil" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2092 +#: classes/helpers/FrmFieldsHelper.php:2149 msgid "British Indian Ocean Territory" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2093 +#: classes/helpers/FrmFieldsHelper.php:2150 msgid "Brunei" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2094 +#: classes/helpers/FrmFieldsHelper.php:2151 msgid "Bulgaria" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2095 +#: classes/helpers/FrmFieldsHelper.php:2152 msgid "Burkina Faso" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2096 +#: classes/helpers/FrmFieldsHelper.php:2153 msgid "Burundi" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2097 +#: classes/helpers/FrmFieldsHelper.php:2154 msgid "Cambodia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2098 +#: classes/helpers/FrmFieldsHelper.php:2155 msgid "Cameroon" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2099 +#: classes/helpers/FrmFieldsHelper.php:2156 msgid "Canada" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2100 +#: classes/helpers/FrmFieldsHelper.php:2157 msgid "Cape Verde" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2101 +#: classes/helpers/FrmFieldsHelper.php:2158 msgid "Cayman Islands" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2102 +#: classes/helpers/FrmFieldsHelper.php:2159 msgid "Central African Republic" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2103 +#: classes/helpers/FrmFieldsHelper.php:2160 msgid "Chad" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2104 +#: classes/helpers/FrmFieldsHelper.php:2161 msgid "Chile" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2105 +#: classes/helpers/FrmFieldsHelper.php:2162 msgid "China" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2106 +#: classes/helpers/FrmFieldsHelper.php:2163 msgid "Christmas Island" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2107 +#: classes/helpers/FrmFieldsHelper.php:2164 msgid "Cocos (Keeling) Islands" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2108 +#: classes/helpers/FrmFieldsHelper.php:2165 msgid "Colombia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2109 +#: classes/helpers/FrmFieldsHelper.php:2166 msgid "Comoros" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2110 +#: classes/helpers/FrmFieldsHelper.php:2167 msgid "Congo" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2111 +#: classes/helpers/FrmFieldsHelper.php:2168 msgid "Cook Islands" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2112 +#: classes/helpers/FrmFieldsHelper.php:2169 msgid "Costa Rica" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2113 +#: classes/helpers/FrmFieldsHelper.php:2170 msgid "Côte d'Ivoire" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2114 +#: classes/helpers/FrmFieldsHelper.php:2171 msgid "Croatia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2115 +#: classes/helpers/FrmFieldsHelper.php:2172 msgid "Cuba" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2116 +#: classes/helpers/FrmFieldsHelper.php:2173 msgid "Curacao" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2117 +#: classes/helpers/FrmFieldsHelper.php:2174 msgid "Cyprus" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2118 +#: classes/helpers/FrmFieldsHelper.php:2175 msgid "Czech Republic" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2119 +#: classes/helpers/FrmFieldsHelper.php:2176 msgid "Denmark" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2120 +#: classes/helpers/FrmFieldsHelper.php:2177 msgid "Djibouti" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2121 +#: classes/helpers/FrmFieldsHelper.php:2178 msgid "Dominica" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2122 +#: classes/helpers/FrmFieldsHelper.php:2179 msgid "Dominican Republic" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2123 +#: classes/helpers/FrmFieldsHelper.php:2180 msgid "East Timor" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2124 +#: classes/helpers/FrmFieldsHelper.php:2181 msgid "Ecuador" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2125 +#: classes/helpers/FrmFieldsHelper.php:2182 msgid "Egypt" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2126 +#: classes/helpers/FrmFieldsHelper.php:2183 msgid "El Salvador" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2127 +#: classes/helpers/FrmFieldsHelper.php:2184 msgid "Equatorial Guinea" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2128 +#: classes/helpers/FrmFieldsHelper.php:2185 msgid "Eritrea" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2129 +#: classes/helpers/FrmFieldsHelper.php:2186 msgid "Estonia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2130 +#: classes/helpers/FrmFieldsHelper.php:2187 msgid "Ethiopia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2131 +#: classes/helpers/FrmFieldsHelper.php:2188 msgid "Falkland Islands (Malvinas)" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2132 +#: classes/helpers/FrmFieldsHelper.php:2189 msgid "Faroe Islands" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2133 +#: classes/helpers/FrmFieldsHelper.php:2190 msgid "Fiji" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2134 +#: classes/helpers/FrmFieldsHelper.php:2191 msgid "Finland" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2135 +#: classes/helpers/FrmFieldsHelper.php:2192 msgid "France" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2136 +#: classes/helpers/FrmFieldsHelper.php:2193 msgid "French Guiana" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2137 +#: classes/helpers/FrmFieldsHelper.php:2194 msgid "French Polynesia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2138 +#: classes/helpers/FrmFieldsHelper.php:2195 msgid "French Southern Territories" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2139 +#: classes/helpers/FrmFieldsHelper.php:2196 msgid "Gabon" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2140 +#: classes/helpers/FrmFieldsHelper.php:2197 msgid "Gambia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2141 +#: classes/helpers/FrmFieldsHelper.php:2198 msgid "Georgia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2142 +#: classes/helpers/FrmFieldsHelper.php:2199 msgid "Germany" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2143 +#: classes/helpers/FrmFieldsHelper.php:2200 msgid "Ghana" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2144 +#: classes/helpers/FrmFieldsHelper.php:2201 msgid "Gibraltar" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2145 +#: classes/helpers/FrmFieldsHelper.php:2202 msgid "Greece" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2146 +#: classes/helpers/FrmFieldsHelper.php:2203 msgid "Greenland" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2147 +#: classes/helpers/FrmFieldsHelper.php:2204 msgid "Grenada" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2148 +#: classes/helpers/FrmFieldsHelper.php:2205 msgid "Guadeloupe" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2149 +#: classes/helpers/FrmFieldsHelper.php:2206 msgid "Guam" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2150 +#: classes/helpers/FrmFieldsHelper.php:2207 msgid "Guatemala" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2151 +#: classes/helpers/FrmFieldsHelper.php:2208 msgid "Guernsey" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2152 +#: classes/helpers/FrmFieldsHelper.php:2209 msgid "Guinea" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2153 +#: classes/helpers/FrmFieldsHelper.php:2210 msgid "Guinea-Bissau" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2154 +#: classes/helpers/FrmFieldsHelper.php:2211 msgid "Guyana" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2155 +#: classes/helpers/FrmFieldsHelper.php:2212 msgid "Haiti" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2156 +#: classes/helpers/FrmFieldsHelper.php:2213 msgid "Heard Island and McDonald Islands" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2157 +#: classes/helpers/FrmFieldsHelper.php:2214 msgid "Holy See" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2158 +#: classes/helpers/FrmFieldsHelper.php:2215 msgid "Honduras" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2159 +#: classes/helpers/FrmFieldsHelper.php:2216 msgid "Hong Kong" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2160 +#: classes/helpers/FrmFieldsHelper.php:2217 msgid "Hungary" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2161 +#: classes/helpers/FrmFieldsHelper.php:2218 msgid "Iceland" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2162 +#: classes/helpers/FrmFieldsHelper.php:2219 msgid "India" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2163 +#: classes/helpers/FrmFieldsHelper.php:2220 msgid "Indonesia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2164 +#: classes/helpers/FrmFieldsHelper.php:2221 msgid "Iran" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2165 +#: classes/helpers/FrmFieldsHelper.php:2222 msgid "Iraq" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2166 +#: classes/helpers/FrmFieldsHelper.php:2223 msgid "Ireland" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2167 +#: classes/helpers/FrmFieldsHelper.php:2224 msgid "Israel" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2168 +#: classes/helpers/FrmFieldsHelper.php:2225 msgid "Isle of Man" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2169 +#: classes/helpers/FrmFieldsHelper.php:2226 msgid "Italy" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2170 +#: classes/helpers/FrmFieldsHelper.php:2227 msgid "Jamaica" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2171 +#: classes/helpers/FrmFieldsHelper.php:2228 msgid "Japan" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2172 +#: classes/helpers/FrmFieldsHelper.php:2229 msgid "Jersey" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2173 +#: classes/helpers/FrmFieldsHelper.php:2230 msgid "Jordan" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2174 +#: classes/helpers/FrmFieldsHelper.php:2231 msgid "Kazakhstan" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2175 +#: classes/helpers/FrmFieldsHelper.php:2232 msgid "Kenya" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2176 +#: classes/helpers/FrmFieldsHelper.php:2233 msgid "Kiribati" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2177 +#: classes/helpers/FrmFieldsHelper.php:2234 msgid "North Korea" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2178 +#: classes/helpers/FrmFieldsHelper.php:2235 msgid "South Korea" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2179 +#: classes/helpers/FrmFieldsHelper.php:2236 msgid "Kosovo" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2180 +#: classes/helpers/FrmFieldsHelper.php:2237 msgid "Kuwait" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2181 +#: classes/helpers/FrmFieldsHelper.php:2238 msgid "Kyrgyzstan" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2182 +#: classes/helpers/FrmFieldsHelper.php:2239 msgid "Laos" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2183 +#: classes/helpers/FrmFieldsHelper.php:2240 msgid "Latvia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2184 +#: classes/helpers/FrmFieldsHelper.php:2241 msgid "Lebanon" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2185 +#: classes/helpers/FrmFieldsHelper.php:2242 msgid "Lesotho" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2186 +#: classes/helpers/FrmFieldsHelper.php:2243 msgid "Liberia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2187 +#: classes/helpers/FrmFieldsHelper.php:2244 msgid "Libya" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2188 +#: classes/helpers/FrmFieldsHelper.php:2245 msgid "Liechtenstein" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2189 +#: classes/helpers/FrmFieldsHelper.php:2246 msgid "Lithuania" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2190 +#: classes/helpers/FrmFieldsHelper.php:2247 msgid "Luxembourg" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2191 +#: classes/helpers/FrmFieldsHelper.php:2248 msgid "Macao" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2192 +#: classes/helpers/FrmFieldsHelper.php:2249 msgid "Macedonia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2193 +#: classes/helpers/FrmFieldsHelper.php:2250 msgid "Madagascar" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2194 +#: classes/helpers/FrmFieldsHelper.php:2251 msgid "Malawi" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2195 +#: classes/helpers/FrmFieldsHelper.php:2252 msgid "Malaysia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2196 +#: classes/helpers/FrmFieldsHelper.php:2253 msgid "Maldives" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2197 +#: classes/helpers/FrmFieldsHelper.php:2254 msgid "Mali" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2198 +#: classes/helpers/FrmFieldsHelper.php:2255 msgid "Malta" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2199 +#: classes/helpers/FrmFieldsHelper.php:2256 msgid "Marshall Islands" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2200 +#: classes/helpers/FrmFieldsHelper.php:2257 msgid "Martinique" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2201 +#: classes/helpers/FrmFieldsHelper.php:2258 msgid "Mauritania" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2202 +#: classes/helpers/FrmFieldsHelper.php:2259 msgid "Mauritius" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2203 +#: classes/helpers/FrmFieldsHelper.php:2260 msgid "Mayotte" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2204 +#: classes/helpers/FrmFieldsHelper.php:2261 msgid "Mexico" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2205 +#: classes/helpers/FrmFieldsHelper.php:2262 msgid "Micronesia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2206 +#: classes/helpers/FrmFieldsHelper.php:2263 msgid "Moldova" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2207 +#: classes/helpers/FrmFieldsHelper.php:2264 msgid "Monaco" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2208 +#: classes/helpers/FrmFieldsHelper.php:2265 msgid "Mongolia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2209 +#: classes/helpers/FrmFieldsHelper.php:2266 msgid "Montenegro" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2210 +#: classes/helpers/FrmFieldsHelper.php:2267 msgid "Montserrat" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2211 +#: classes/helpers/FrmFieldsHelper.php:2268 msgid "Morocco" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2212 +#: classes/helpers/FrmFieldsHelper.php:2269 msgid "Mozambique" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2213 +#: classes/helpers/FrmFieldsHelper.php:2270 msgid "Myanmar" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2214 +#: classes/helpers/FrmFieldsHelper.php:2271 msgid "Namibia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2215 +#: classes/helpers/FrmFieldsHelper.php:2272 msgid "Nauru" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2216 +#: classes/helpers/FrmFieldsHelper.php:2273 msgid "Nepal" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2217 +#: classes/helpers/FrmFieldsHelper.php:2274 msgid "Netherlands" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2218 +#: classes/helpers/FrmFieldsHelper.php:2275 msgid "New Caledonia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2219 +#: classes/helpers/FrmFieldsHelper.php:2276 msgid "New Zealand" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2220 +#: classes/helpers/FrmFieldsHelper.php:2277 msgid "Nicaragua" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2221 +#: classes/helpers/FrmFieldsHelper.php:2278 msgid "Niger" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2222 +#: classes/helpers/FrmFieldsHelper.php:2279 msgid "Nigeria" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2223 +#: classes/helpers/FrmFieldsHelper.php:2280 msgid "Niue" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2224 +#: classes/helpers/FrmFieldsHelper.php:2281 msgid "Norfolk Island" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2225 +#: classes/helpers/FrmFieldsHelper.php:2282 msgid "Northern Mariana Islands" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2226 +#: classes/helpers/FrmFieldsHelper.php:2283 msgid "Norway" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2227 +#: classes/helpers/FrmFieldsHelper.php:2284 msgid "Oman" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2228 +#: classes/helpers/FrmFieldsHelper.php:2285 msgid "Pakistan" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2229 +#: classes/helpers/FrmFieldsHelper.php:2286 msgid "Palau" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2230 +#: classes/helpers/FrmFieldsHelper.php:2287 msgid "Palestine" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2231 +#: classes/helpers/FrmFieldsHelper.php:2288 msgid "Panama" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2232 +#: classes/helpers/FrmFieldsHelper.php:2289 msgid "Papua New Guinea" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2233 +#: classes/helpers/FrmFieldsHelper.php:2290 msgid "Paraguay" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2234 +#: classes/helpers/FrmFieldsHelper.php:2291 msgid "Peru" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2235 +#: classes/helpers/FrmFieldsHelper.php:2292 msgid "Philippines" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2236 +#: classes/helpers/FrmFieldsHelper.php:2293 msgid "Pitcairn" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2237 +#: classes/helpers/FrmFieldsHelper.php:2294 msgid "Poland" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2238 +#: classes/helpers/FrmFieldsHelper.php:2295 msgid "Portugal" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2239 +#: classes/helpers/FrmFieldsHelper.php:2296 msgid "Puerto Rico" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2240 +#: classes/helpers/FrmFieldsHelper.php:2297 msgid "Qatar" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2241 +#: classes/helpers/FrmFieldsHelper.php:2298 msgid "Reunion" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2242 +#: classes/helpers/FrmFieldsHelper.php:2299 msgid "Romania" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2243 +#: classes/helpers/FrmFieldsHelper.php:2300 msgid "Russia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2244 +#: classes/helpers/FrmFieldsHelper.php:2301 msgid "Rwanda" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2245 +#: classes/helpers/FrmFieldsHelper.php:2302 msgid "Saint Barthelemy" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2246 +#: classes/helpers/FrmFieldsHelper.php:2303 msgid "Saint Helena, Ascension and Tristan da Cunha" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2247 +#: classes/helpers/FrmFieldsHelper.php:2304 msgid "Saint Kitts and Nevis" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2248 +#: classes/helpers/FrmFieldsHelper.php:2305 msgid "Saint Lucia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2249 +#: classes/helpers/FrmFieldsHelper.php:2306 msgid "Saint Martin (French part)" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2250 +#: classes/helpers/FrmFieldsHelper.php:2307 msgid "Saint Pierre and Miquelon" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2251 +#: classes/helpers/FrmFieldsHelper.php:2308 msgid "Saint Vincent and the Grenadines" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2252 +#: classes/helpers/FrmFieldsHelper.php:2309 msgid "Samoa" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2253 +#: classes/helpers/FrmFieldsHelper.php:2310 msgid "San Marino" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2254 +#: classes/helpers/FrmFieldsHelper.php:2311 msgid "Sao Tome and Principe" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2255 +#: classes/helpers/FrmFieldsHelper.php:2312 msgid "Saudi Arabia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2256 +#: classes/helpers/FrmFieldsHelper.php:2313 msgid "Senegal" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2257 +#: classes/helpers/FrmFieldsHelper.php:2314 msgid "Serbia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2258 +#: classes/helpers/FrmFieldsHelper.php:2315 msgid "Seychelles" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2259 +#: classes/helpers/FrmFieldsHelper.php:2316 msgid "Sierra Leone" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2260 +#: classes/helpers/FrmFieldsHelper.php:2317 msgid "Singapore" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2261 +#: classes/helpers/FrmFieldsHelper.php:2318 msgid "Sint Maarten (Dutch part)" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2262 +#: classes/helpers/FrmFieldsHelper.php:2319 msgid "Slovakia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2263 +#: classes/helpers/FrmFieldsHelper.php:2320 msgid "Slovenia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2264 +#: classes/helpers/FrmFieldsHelper.php:2321 msgid "Solomon Islands" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2265 +#: classes/helpers/FrmFieldsHelper.php:2322 msgid "Somalia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2266 +#: classes/helpers/FrmFieldsHelper.php:2323 msgid "South Africa" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2267 +#: classes/helpers/FrmFieldsHelper.php:2324 msgid "South Georgia and the South Sandwich Islands" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2268 +#: classes/helpers/FrmFieldsHelper.php:2325 msgid "South Sudan" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2269 +#: classes/helpers/FrmFieldsHelper.php:2326 msgid "Spain" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2270 +#: classes/helpers/FrmFieldsHelper.php:2327 msgid "Sri Lanka" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2271 +#: classes/helpers/FrmFieldsHelper.php:2328 msgid "Sudan" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2272 +#: classes/helpers/FrmFieldsHelper.php:2329 msgid "Suriname" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2273 +#: classes/helpers/FrmFieldsHelper.php:2330 msgid "Svalbard and Jan Mayen" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2274 +#: classes/helpers/FrmFieldsHelper.php:2331 msgid "Swaziland" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2275 +#: classes/helpers/FrmFieldsHelper.php:2332 msgid "Sweden" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2276 +#: classes/helpers/FrmFieldsHelper.php:2333 msgid "Switzerland" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2277 +#: classes/helpers/FrmFieldsHelper.php:2334 msgid "Syria" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2278 +#: classes/helpers/FrmFieldsHelper.php:2335 msgid "Taiwan" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2279 +#: classes/helpers/FrmFieldsHelper.php:2336 msgid "Tajikistan" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2280 +#: classes/helpers/FrmFieldsHelper.php:2337 msgid "Tanzania" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2281 +#: classes/helpers/FrmFieldsHelper.php:2338 msgid "Thailand" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2282 +#: classes/helpers/FrmFieldsHelper.php:2339 msgid "Timor-Leste" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2283 +#: classes/helpers/FrmFieldsHelper.php:2340 msgid "Togo" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2284 +#: classes/helpers/FrmFieldsHelper.php:2341 msgid "Tokelau" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2285 +#: classes/helpers/FrmFieldsHelper.php:2342 msgid "Tonga" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2286 +#: classes/helpers/FrmFieldsHelper.php:2343 msgid "Trinidad and Tobago" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2287 +#: classes/helpers/FrmFieldsHelper.php:2344 msgid "Tunisia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2288 +#: classes/helpers/FrmFieldsHelper.php:2345 msgid "Turkey" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2289 +#: classes/helpers/FrmFieldsHelper.php:2346 msgid "Turkmenistan" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2290 +#: classes/helpers/FrmFieldsHelper.php:2347 msgid "Turks and Caicos Islands" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2291 +#: classes/helpers/FrmFieldsHelper.php:2348 msgid "Tuvalu" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2292 +#: classes/helpers/FrmFieldsHelper.php:2349 msgid "Uganda" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2293 +#: classes/helpers/FrmFieldsHelper.php:2350 msgid "Ukraine" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2294 +#: classes/helpers/FrmFieldsHelper.php:2351 msgid "United Arab Emirates" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2295 +#: classes/helpers/FrmFieldsHelper.php:2352 msgid "United Kingdom" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2296 +#: classes/helpers/FrmFieldsHelper.php:2353 #: classes/views/combo-fields/addresses/back-end-field-opts.php:16 msgid "United States" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2297 +#: classes/helpers/FrmFieldsHelper.php:2354 msgid "United States Minor Outlying Islands" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2298 +#: classes/helpers/FrmFieldsHelper.php:2355 msgid "Uruguay" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2299 +#: classes/helpers/FrmFieldsHelper.php:2356 msgid "Uzbekistan" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2300 +#: classes/helpers/FrmFieldsHelper.php:2357 msgid "Vanuatu" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2301 +#: classes/helpers/FrmFieldsHelper.php:2358 msgid "Vatican City" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2302 +#: classes/helpers/FrmFieldsHelper.php:2359 msgid "Venezuela" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2303 +#: classes/helpers/FrmFieldsHelper.php:2360 msgid "Vietnam" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2304 +#: classes/helpers/FrmFieldsHelper.php:2361 msgid "Virgin Islands, British" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2305 +#: classes/helpers/FrmFieldsHelper.php:2362 msgid "Virgin Islands, U.S." msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2306 +#: classes/helpers/FrmFieldsHelper.php:2363 msgid "Wallis and Futuna" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2307 +#: classes/helpers/FrmFieldsHelper.php:2364 msgid "Western Sahara" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2308 +#: classes/helpers/FrmFieldsHelper.php:2365 msgid "Yemen" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2309 +#: classes/helpers/FrmFieldsHelper.php:2366 msgid "Zambia" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2310 +#: classes/helpers/FrmFieldsHelper.php:2367 msgid "Zimbabwe" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2335 +#: classes/helpers/FrmFieldsHelper.php:2392 msgid "Countries" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2346 +#: classes/helpers/FrmFieldsHelper.php:2403 msgid "U.S. State Abbreviations" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2356 +#: classes/helpers/FrmFieldsHelper.php:2413 msgid "U.S. States" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2361 +#: classes/helpers/FrmFieldsHelper.php:2418 msgid "Under 18" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2362 +#: classes/helpers/FrmFieldsHelper.php:2419 msgid "18-24" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2363 +#: classes/helpers/FrmFieldsHelper.php:2420 msgid "25-34" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2364 +#: classes/helpers/FrmFieldsHelper.php:2421 msgid "35-44" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2365 +#: classes/helpers/FrmFieldsHelper.php:2422 msgid "45-54" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2366 +#: classes/helpers/FrmFieldsHelper.php:2423 msgid "55-64" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2367 +#: classes/helpers/FrmFieldsHelper.php:2424 msgid "65 or Above" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2368 +#: classes/helpers/FrmFieldsHelper.php:2425 msgid "Prefer Not to Answer" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2375 +#: classes/helpers/FrmFieldsHelper.php:2432 msgid "Age" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2379 +#: classes/helpers/FrmFieldsHelper.php:2436 msgid "Very Unsatisfied" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2380 +#: classes/helpers/FrmFieldsHelper.php:2437 msgid "Unsatisfied" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2381 -#: classes/helpers/FrmFieldsHelper.php:2397 -#: classes/helpers/FrmFieldsHelper.php:2413 -#: classes/helpers/FrmFieldsHelper.php:2429 +#: classes/helpers/FrmFieldsHelper.php:2438 +#: classes/helpers/FrmFieldsHelper.php:2454 +#: classes/helpers/FrmFieldsHelper.php:2470 +#: classes/helpers/FrmFieldsHelper.php:2486 msgid "Neutral" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2382 +#: classes/helpers/FrmFieldsHelper.php:2439 msgid "Satisfied" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2383 +#: classes/helpers/FrmFieldsHelper.php:2440 msgid "Very Satisfied" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2384 -#: classes/helpers/FrmFieldsHelper.php:2400 -#: classes/helpers/FrmFieldsHelper.php:2416 -#: classes/helpers/FrmFieldsHelper.php:2432 +#: classes/helpers/FrmFieldsHelper.php:2441 +#: classes/helpers/FrmFieldsHelper.php:2457 +#: classes/helpers/FrmFieldsHelper.php:2473 +#: classes/helpers/FrmFieldsHelper.php:2489 #: classes/views/frm-settings/mcp.php:345 #: paypal/helpers/FrmPayPalLiteConnectHelper.php:312 msgid "N/A" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2391 +#: classes/helpers/FrmFieldsHelper.php:2448 msgid "Satisfaction" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2395 +#: classes/helpers/FrmFieldsHelper.php:2452 msgid "Not at all Important" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2396 +#: classes/helpers/FrmFieldsHelper.php:2453 msgid "Somewhat Important" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2398 +#: classes/helpers/FrmFieldsHelper.php:2455 msgid "Important" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2399 +#: classes/helpers/FrmFieldsHelper.php:2456 msgid "Very Important" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2407 +#: classes/helpers/FrmFieldsHelper.php:2464 msgid "Importance" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2411 +#: classes/helpers/FrmFieldsHelper.php:2468 msgid "Strongly Disagree" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2412 +#: classes/helpers/FrmFieldsHelper.php:2469 msgid "Disagree" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2414 +#: classes/helpers/FrmFieldsHelper.php:2471 msgid "Agree" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2415 +#: classes/helpers/FrmFieldsHelper.php:2472 msgid "Strongly Agree" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2423 +#: classes/helpers/FrmFieldsHelper.php:2480 msgid "Agreement" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2427 +#: classes/helpers/FrmFieldsHelper.php:2484 msgid "Extremely Unlikely" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2428 +#: classes/helpers/FrmFieldsHelper.php:2485 msgid "Unlikely" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2430 -#: classes/helpers/FrmFieldsHelper.php:2439 +#: classes/helpers/FrmFieldsHelper.php:2487 +#: classes/helpers/FrmFieldsHelper.php:2496 msgid "Likely" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2431 +#: classes/helpers/FrmFieldsHelper.php:2488 msgid "Extremely Likely" msgstr "" #. translators: %s: Field name -#: classes/helpers/FrmFieldsHelper.php:2547 +#: classes/helpers/FrmFieldsHelper.php:2610 msgid "%s fields" msgstr "" #. translators: %1$s: Add-on name, %2$s: Field type name. -#: classes/helpers/FrmFieldsHelper.php:2588 +#: classes/helpers/FrmFieldsHelper.php:2651 msgid "You need a newer version of %1$s for %2$s fields." msgstr "" #. translators: %s: Field name -#: classes/helpers/FrmFieldsHelper.php:2595 +#: classes/helpers/FrmFieldsHelper.php:2658 msgid "You already have access to %s fields, you'll just need to activate to start using them." msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2665 +#: classes/helpers/FrmFieldsHelper.php:2728 #: classes/helpers/FrmSpamEntriesHelper.php:84 msgid "Formidable Pro" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2745 +#: classes/helpers/FrmFieldsHelper.php:2808 msgid "Simple" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2749 +#: classes/helpers/FrmFieldsHelper.php:2812 msgid "Images" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2752 +#: classes/helpers/FrmFieldsHelper.php:2815 msgid "Image Options" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2753 +#: classes/helpers/FrmFieldsHelper.php:2816 msgid "Show images instead of radio buttons or check boxes. This is ideal for polls, surveys, segmenting questionnaires and more." msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2760 +#: classes/helpers/FrmFieldsHelper.php:2823 msgid "Button Options" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2761 +#: classes/helpers/FrmFieldsHelper.php:2824 msgid "Show buttons for radio buttons or check boxes. This is ideal for polls, surveys, segmenting questionnaires and more." msgstr "" #. translators: Add-on name. -#: classes/helpers/FrmFieldsHelper.php:2853 +#: classes/helpers/FrmFieldsHelper.php:2916 msgid "Formidable %s" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2969 -#: classes/helpers/FrmFieldsHelper.php:2983 +#: classes/helpers/FrmFieldsHelper.php:3032 +#: classes/helpers/FrmFieldsHelper.php:3046 #: classes/views/frm-fields/back-end/generate-options-with-ai.php:16 msgid "Generate options with AI" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:2984 +#: classes/helpers/FrmFieldsHelper.php:3047 msgid "Update the Formidable AI add-on to the last version to use this feature." msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3121 +#: classes/helpers/FrmFieldsHelper.php:3184 msgid "On" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3122 +#: classes/helpers/FrmFieldsHelper.php:3185 msgid "Off" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3123 +#: classes/helpers/FrmFieldsHelper.php:3186 msgid "Additional name" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3124 +#: classes/helpers/FrmFieldsHelper.php:3187 msgid "Birthday" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3125 +#: classes/helpers/FrmFieldsHelper.php:3188 msgid "Birthday day" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3126 +#: classes/helpers/FrmFieldsHelper.php:3189 msgid "Birthday month" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3127 +#: classes/helpers/FrmFieldsHelper.php:3190 msgid "Birthday year" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3129 +#: classes/helpers/FrmFieldsHelper.php:3192 msgid "Country name" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3130 +#: classes/helpers/FrmFieldsHelper.php:3193 msgid "Current password" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3132 +#: classes/helpers/FrmFieldsHelper.php:3195 msgid "Family name" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3133 +#: classes/helpers/FrmFieldsHelper.php:3196 msgid "Given name" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3134 +#: classes/helpers/FrmFieldsHelper.php:3197 msgid "Honorific prefix" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3135 +#: classes/helpers/FrmFieldsHelper.php:3198 msgid "Honorific suffix" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3136 +#: classes/helpers/FrmFieldsHelper.php:3199 msgid "IMPP" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3137 +#: classes/helpers/FrmFieldsHelper.php:3200 msgid "Language" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3139 +#: classes/helpers/FrmFieldsHelper.php:3202 msgid "New password" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3140 +#: classes/helpers/FrmFieldsHelper.php:3203 msgid "One time code" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3141 +#: classes/helpers/FrmFieldsHelper.php:3204 msgid "Organization" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3142 +#: classes/helpers/FrmFieldsHelper.php:3205 msgid "Organization title" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3143 +#: classes/helpers/FrmFieldsHelper.php:3206 msgid "Photo" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3144 +#: classes/helpers/FrmFieldsHelper.php:3207 msgid "Postal Code" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3145 +#: classes/helpers/FrmFieldsHelper.php:3208 msgid "Sex" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3146 +#: classes/helpers/FrmFieldsHelper.php:3209 msgid "Street address" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3147 +#: classes/helpers/FrmFieldsHelper.php:3210 msgid "Tel" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3148 +#: classes/helpers/FrmFieldsHelper.php:3211 msgid "Tel area code" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3149 +#: classes/helpers/FrmFieldsHelper.php:3212 msgid "Tel country code" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3150 +#: classes/helpers/FrmFieldsHelper.php:3213 msgid "Tel extension" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3151 +#: classes/helpers/FrmFieldsHelper.php:3214 msgid "Tel local" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3152 +#: classes/helpers/FrmFieldsHelper.php:3215 msgid "Tel national" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3153 +#: classes/helpers/FrmFieldsHelper.php:3216 msgid "Transaction amount" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3154 +#: classes/helpers/FrmFieldsHelper.php:3217 msgid "Transaction currency" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3155 +#: classes/helpers/FrmFieldsHelper.php:3218 msgid "URL" msgstr "" -#: classes/helpers/FrmFieldsHelper.php:3156 +#: classes/helpers/FrmFieldsHelper.php:3219 msgid "Username" msgstr "" #: classes/helpers/FrmFormEmbedsHelper.php:211 -#: classes/helpers/FrmFormsHelper.php:1598 +#: classes/helpers/FrmFormsHelper.php:1663 #: js/admin/forms-list.js:234 #: js/admin/forms-list.js:237 msgid "(no title)" @@ -5669,235 +5812,235 @@ msgstr "" msgid "Install %s Importer" msgstr "" -#: classes/helpers/FrmFormsHelper.php:90 +#: classes/helpers/FrmFormsHelper.php:105 msgid " (child)" msgstr "" -#: classes/helpers/FrmFormsHelper.php:164 +#: classes/helpers/FrmFormsHelper.php:179 msgid "Switch Form" msgstr "" #. translators: %d: Form ID #. translators: %d: Entry ID -#: classes/helpers/FrmFormsHelper.php:205 +#: classes/helpers/FrmFormsHelper.php:220 #: classes/views/frm-entries/show.php:64 msgid "(ID %d)" msgstr "" -#: classes/helpers/FrmFormsHelper.php:225 +#: classes/helpers/FrmFormsHelper.php:240 #: classes/views/xml/import_form.php:132 msgid "Search Forms" msgstr "" -#: classes/helpers/FrmFormsHelper.php:860 +#: classes/helpers/FrmFormsHelper.php:925 msgid "Field ID" msgstr "" -#: classes/helpers/FrmFormsHelper.php:864 -#: classes/views/frm-fields/back-end/settings.php:471 +#: classes/helpers/FrmFormsHelper.php:929 +#: classes/views/frm-fields/back-end/settings.php:475 msgid "Field Key" msgstr "" -#: classes/helpers/FrmFormsHelper.php:868 +#: classes/helpers/FrmFormsHelper.php:933 msgid "Field Name" msgstr "" -#: classes/helpers/FrmFormsHelper.php:876 -#: classes/views/frm-fields/back-end/settings.php:441 +#: classes/helpers/FrmFormsHelper.php:941 +#: classes/views/frm-fields/back-end/settings.php:445 msgid "Label Position" msgstr "" -#: classes/helpers/FrmFormsHelper.php:880 +#: classes/helpers/FrmFormsHelper.php:945 msgid "Required Label" msgstr "" -#: classes/helpers/FrmFormsHelper.php:884 +#: classes/helpers/FrmFormsHelper.php:949 msgid "Input Field" msgstr "" -#: classes/helpers/FrmFormsHelper.php:888 +#: classes/helpers/FrmFormsHelper.php:953 msgid "Single Option" msgstr "" -#: classes/helpers/FrmFormsHelper.php:889 +#: classes/helpers/FrmFormsHelper.php:954 msgid "Show a single radio or checkbox option by replacing 1 with the order of the option" msgstr "" -#: classes/helpers/FrmFormsHelper.php:893 +#: classes/helpers/FrmFormsHelper.php:958 msgid "Hide Option Label" msgstr "" -#: classes/helpers/FrmFormsHelper.php:897 +#: classes/helpers/FrmFormsHelper.php:962 msgid "Required Class" msgstr "" -#: classes/helpers/FrmFormsHelper.php:898 +#: classes/helpers/FrmFormsHelper.php:963 msgid "Add class name if field is required" msgstr "" -#: classes/helpers/FrmFormsHelper.php:902 +#: classes/helpers/FrmFormsHelper.php:967 msgid "Error Class" msgstr "" -#: classes/helpers/FrmFormsHelper.php:903 +#: classes/helpers/FrmFormsHelper.php:968 msgid "Add class name if field has an error on form submit" msgstr "" -#: classes/helpers/FrmFormsHelper.php:916 +#: classes/helpers/FrmFormsHelper.php:981 #: classes/views/frm-forms/settings-advanced.php:20 msgid "Form Key" msgstr "" -#: classes/helpers/FrmFormsHelper.php:920 +#: classes/helpers/FrmFormsHelper.php:985 msgid "Delete Entry Link" msgstr "" -#: classes/helpers/FrmFormsHelper.php:925 +#: classes/helpers/FrmFormsHelper.php:990 msgid "Button Label" msgstr "" -#: classes/helpers/FrmFormsHelper.php:929 +#: classes/helpers/FrmFormsHelper.php:994 msgid "Button Hook" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1557 +#: classes/helpers/FrmFormsHelper.php:1622 msgid "Create Form from Template" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1563 +#: classes/helpers/FrmFormsHelper.php:1628 #: classes/views/frm-form-actions/form_action.php:34 #: js/admin/style.js:937 -#: js/src/admin/admin.js:3573 -#: js/formidable_admin.js:7354 +#: js/src/admin/admin.js:3900 +#: js/formidable_admin.js:9116 msgid "Duplicate" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1721 +#: classes/helpers/FrmFormsHelper.php:1786 msgid "Restore from Trash" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1722 +#: classes/helpers/FrmFormsHelper.php:1787 #: classes/helpers/FrmFormsListHelper.php:180 msgid "Restore" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1726 +#: classes/helpers/FrmFormsHelper.php:1791 msgid "Move Form to Trash" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1727 -#: classes/helpers/FrmFormsHelper.php:1835 +#: classes/helpers/FrmFormsHelper.php:1792 +#: classes/helpers/FrmFormsHelper.php:1900 #: classes/helpers/FrmFormsListHelper.php:225 msgid "Trash" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1731 +#: classes/helpers/FrmFormsHelper.php:1796 msgid "Do you want to move this form to the trash?" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1736 +#: classes/helpers/FrmFormsHelper.php:1801 #: classes/helpers/FrmFormsListHelper.php:184 msgid "Delete Permanently" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1739 +#: classes/helpers/FrmFormsHelper.php:1804 msgid "Are you sure you want to delete this form and all its entries?" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1742 +#: classes/helpers/FrmFormsHelper.php:1807 msgid "This will permanently delete the form and all its entries. This is irreversible. Are you sure you want to continue?" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1757 -#: classes/models/FrmField.php:107 -#: classes/models/FrmField.php:349 +#: classes/helpers/FrmFormsHelper.php:1822 +#: classes/models/FrmField.php:126 +#: classes/models/FrmField.php:368 msgid "Total" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1758 +#: classes/helpers/FrmFormsHelper.php:1823 msgid "Add this to a read-only field to display the text in bold without a border or background." msgstr "" -#: classes/helpers/FrmFormsHelper.php:1761 +#: classes/helpers/FrmFormsHelper.php:1826 msgid "Big Total" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1762 +#: classes/helpers/FrmFormsHelper.php:1827 msgid "Add this to a read-only field to display the text in large, bold text without a border or background." msgstr "" -#: classes/helpers/FrmFormsHelper.php:1765 +#: classes/helpers/FrmFormsHelper.php:1830 msgid "Scroll Box" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1766 +#: classes/helpers/FrmFormsHelper.php:1831 msgid "If you have many checkbox or radio button options, you may add this class to allow your user to easily scroll through the options. Or add a scrolling area around content in an HTML field." msgstr "" -#: classes/helpers/FrmFormsHelper.php:1770 +#: classes/helpers/FrmFormsHelper.php:1835 msgid "Add this to the first field in each row along with a width. ie frm_first frm4" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1772 +#: classes/helpers/FrmFormsHelper.php:1837 #: classes/helpers/FrmStylesHelper.php:62 #: classes/views/styles/components/templates/align.php:12 msgid "Right" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1773 +#: classes/helpers/FrmFormsHelper.php:1838 msgid "First Grid Row" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1774 +#: classes/helpers/FrmFormsHelper.php:1839 msgid "Even Grid Row" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1775 +#: classes/helpers/FrmFormsHelper.php:1840 msgid "Odd Grid Row" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1777 +#: classes/helpers/FrmFormsHelper.php:1842 msgid "Color Block" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1778 +#: classes/helpers/FrmFormsHelper.php:1843 msgid "Add a background color to the field or section." msgstr "" -#: classes/helpers/FrmFormsHelper.php:1781 +#: classes/helpers/FrmFormsHelper.php:1846 msgid "Capitalize" msgstr "" -#: classes/helpers/FrmFormsHelper.php:1782 +#: classes/helpers/FrmFormsHelper.php:1847 msgid "Automatically capitalize the first letter in each word." msgstr "" -#: classes/helpers/FrmFormsHelper.php:1836 +#: classes/helpers/FrmFormsHelper.php:1901 msgid "Published" msgstr "" -#: classes/helpers/FrmFormsHelper.php:2017 +#: classes/helpers/FrmFormsHelper.php:2082 msgid "Plan required:" msgstr "" -#: classes/helpers/FrmFormsHelper.php:2180 +#: classes/helpers/FrmFormsHelper.php:2245 msgid "Is this intentional?" msgstr "" #. translators: %s: the name of a single parameter in the redirect URL -#: classes/helpers/FrmFormsHelper.php:2186 +#: classes/helpers/FrmFormsHelper.php:2251 msgid "The redirect URL is using the parameter \"%s\", which is reserved by WordPress. " msgstr "" #. translators: %s: the names of two or more parameters in the redirect URL, separated by commas -#: classes/helpers/FrmFormsHelper.php:2192 +#: classes/helpers/FrmFormsHelper.php:2257 msgid "The redirect URL is using the parameters \"%s\", which are reserved by WordPress. " msgstr "" -#: classes/helpers/FrmFormsHelper.php:2325 +#: classes/helpers/FrmFormsHelper.php:2390 #: classes/views/form-templates/modals/name-your-form-modal.php:35 -#: js/src/admin/admin.js:5552 -#: js/formidable_admin.js:9328 +#: js/src/admin/admin.js:5879 +#: js/formidable_admin.js:11092 msgid "Save" msgstr "" @@ -5951,7 +6094,7 @@ msgstr "" #: classes/helpers/FrmFormsListHelper.php:397 #: classes/helpers/FrmFormsListHelper.php:502 -#: classes/models/FrmField.php:238 +#: classes/models/FrmField.php:257 msgid "Embed Form" msgstr "" @@ -6155,53 +6298,57 @@ msgstr "" msgid "Formidable Views" msgstr "" -#: classes/helpers/FrmSpamEntriesHelper.php:184 +#: classes/helpers/FrmSpamEntriesHelper.php:188 msgid "CAPTCHA errors" msgstr "" -#: classes/helpers/FrmSpamEntriesHelper.php:185 +#: classes/helpers/FrmSpamEntriesHelper.php:189 +msgid "CAPTCHA service unavailable" +msgstr "" + +#: classes/helpers/FrmSpamEntriesHelper.php:190 msgid "Honeypot" msgstr "" -#: classes/helpers/FrmSpamEntriesHelper.php:186 +#: classes/helpers/FrmSpamEntriesHelper.php:191 msgid "JavaScript anti-spam check" msgstr "" -#: classes/helpers/FrmSpamEntriesHelper.php:187 +#: classes/helpers/FrmSpamEntriesHelper.php:192 msgid "Missing IP address" msgstr "" -#: classes/helpers/FrmSpamEntriesHelper.php:188 +#: classes/helpers/FrmSpamEntriesHelper.php:193 msgid "Akismet spam" msgstr "" -#: classes/helpers/FrmSpamEntriesHelper.php:189 +#: classes/helpers/FrmSpamEntriesHelper.php:194 msgid "Akismet blatant spam" msgstr "" -#: classes/helpers/FrmSpamEntriesHelper.php:190 +#: classes/helpers/FrmSpamEntriesHelper.php:195 msgid "Denylist" msgstr "" -#: classes/helpers/FrmSpamEntriesHelper.php:191 +#: classes/helpers/FrmSpamEntriesHelper.php:196 msgid "WordPress disallowed words" msgstr "" -#: classes/helpers/FrmSpamEntriesHelper.php:192 +#: classes/helpers/FrmSpamEntriesHelper.php:197 msgid "WordPress spam comments" msgstr "" -#: classes/helpers/FrmSpamEntriesHelper.php:193 +#: classes/helpers/FrmSpamEntriesHelper.php:198 msgid "StopForumSpam" msgstr "" -#: classes/helpers/FrmSpamEntriesHelper.php:415 +#: classes/helpers/FrmSpamEntriesHelper.php:420 msgid "Manual review" msgstr "" #. translators: %d: The number of styles #. translators: %d: The number of hidden items to show. -#: classes/helpers/FrmStylesCardHelper.php:475 +#: classes/helpers/FrmStylesCardHelper.php:466 #: js/admin/style.js:288 msgid "Show all (%d)" msgstr "" @@ -6254,7 +6401,7 @@ msgstr "" msgid "Placeholder inside the field" msgstr "" -#: classes/helpers/FrmStylesHelper.php:984 +#: classes/helpers/FrmStylesHelper.php:1113 #: classes/views/styles/_quick-settings.php:16 msgid "Quick Settings" msgstr "" @@ -6494,41 +6641,45 @@ msgstr "" msgid "This value is invalid" msgstr "" -#: classes/models/fields/FrmFieldCaptcha.php:333 +#: classes/models/fields/FrmFieldCaptcha.php:358 msgid "There was a problem verifying your captcha" msgstr "" +#: classes/models/fields/FrmFieldCaptcha.php:367 +msgid "The CAPTCHA service response could not be read, so the CAPTCHA could not be verified." +msgstr "" + #. translators: %1$s: the score returned by reCAPTCHA, %2$s: the score threshold from global settings -#: classes/models/fields/FrmFieldCaptcha.php:357 +#: classes/models/fields/FrmFieldCaptcha.php:390 msgid "The reCAPTCHA v3 score of %1$s is below the threshold of %2$s." msgstr "" -#: classes/models/fields/FrmFieldCaptcha.php:419 +#: classes/models/fields/FrmFieldCaptcha.php:452 msgid "The CAPTCHA service rejected the response without giving a reason." msgstr "" -#: classes/models/fields/FrmFieldCaptcha.php:464 +#: classes/models/fields/FrmFieldCaptcha.php:497 msgid "The CAPTCHA on this form is not set up correctly. Please contact the site administrator." msgstr "" -#: classes/models/fields/FrmFieldCaptcha.php:470 +#: classes/models/fields/FrmFieldCaptcha.php:503 msgid "The reCAPTCHA was not entered correctly" msgstr "" -#: classes/models/fields/FrmFieldCaptcha.php:568 +#: classes/models/fields/FrmFieldCaptcha.php:601 msgid "The captcha is missing from this form" msgstr "" -#: classes/models/fields/FrmFieldCaptcha.php:589 +#: classes/models/fields/FrmFieldCaptcha.php:622 msgid "No CAPTCHA response was submitted. The form may have been submitted before the CAPTCHA loaded, or it failed to load." msgstr "" -#: classes/models/fields/FrmFieldCaptcha.php:660 +#: classes/models/fields/FrmFieldCaptcha.php:693 #: classes/views/frm-settings/captcha/captcha.php:14 msgid "reCAPTCHA" msgstr "" -#: classes/models/fields/FrmFieldCaptcha.php:660 +#: classes/models/fields/FrmFieldCaptcha.php:693 #: classes/views/frm-settings/captcha/captcha.php:19 msgid "hCaptcha" msgstr "" @@ -6550,7 +6701,7 @@ msgid "Option 2" msgstr "" #: classes/models/fields/FrmFieldCombo.php:219 -#: classes/views/frm-fields/back-end/settings.php:316 +#: classes/views/frm-fields/back-end/settings.php:320 msgid "Placeholder Text" msgstr "" @@ -6562,7 +6713,7 @@ msgid "Description" msgstr "" #. translators: 1: Field label, 2: Sub field label -#: classes/models/fields/FrmFieldCombo.php:506 +#: classes/models/fields/FrmFieldCombo.php:512 msgid "%1$s %2$s" msgstr "" @@ -6595,11 +6746,11 @@ msgstr "" msgid "Please enter a valid value. Two nearest valid values are %1$s and %2$s" msgstr "" -#: classes/models/fields/FrmFieldPhone.php:70 +#: classes/models/fields/FrmFieldPhone.php:98 msgid "International phone field" msgstr "" -#: classes/models/fields/FrmFieldPhone.php:73 +#: classes/models/fields/FrmFieldPhone.php:101 #: classes/views/combo-fields/addresses/back-end-field-opts.php:13 msgid "International" msgstr "" @@ -6609,18 +6760,18 @@ msgid "Product 1" msgstr "" #: classes/models/fields/FrmFieldProduct.php:91 -#: classes/models/FrmField.php:40 +#: classes/models/FrmField.php:59 msgid "Dropdown" msgstr "" #: classes/models/fields/FrmFieldProduct.php:92 -#: classes/models/FrmField.php:36 +#: classes/models/FrmField.php:55 #: classes/views/styles/_sample_form.php:55 msgid "Radio Buttons" msgstr "" #: classes/models/fields/FrmFieldProduct.php:93 -#: classes/models/FrmField.php:32 +#: classes/models/FrmField.php:51 msgid "Checkboxes" msgstr "" @@ -6640,29 +6791,25 @@ msgstr "" msgid "New Product" msgstr "" -#: classes/models/fields/FrmFieldType.php:308 -msgid "(Collapsed)" -msgstr "" - #. translators: %s: Field name #. translators: %s: Field type -#: classes/models/fields/FrmFieldType.php:575 -#: classes/models/fields/FrmFieldType.php:752 +#: classes/models/fields/FrmFieldType.php:710 +#: classes/models/fields/FrmFieldType.php:887 msgid "%s Options" msgstr "" -#: classes/models/fields/FrmFieldType.php:628 -#: classes/views/frm-fields/back-end/settings.php:195 +#: classes/models/fields/FrmFieldType.php:763 +#: classes/views/frm-fields/back-end/settings.php:199 #: classes/views/frm-fields/back-end/value-format.php:26 msgid "Toggle Options" msgstr "" -#: classes/models/fields/FrmFieldType.php:682 +#: classes/models/fields/FrmFieldType.php:817 #: classes/views/frm-fields/back-end/bulk-options-overlay.php:18 msgid "Bulk Edit Options" msgstr "" -#: classes/models/fields/FrmFieldType.php:909 +#: classes/models/fields/FrmFieldType.php:1044 msgid "Untitled" msgstr "" @@ -6742,16 +6889,16 @@ msgstr "" msgid "There was a %1$s error: %2$s" msgstr "" -#: classes/models/FrmAntiSpam.php:279 +#: classes/models/FrmAntiSpam.php:294 msgid "This page isn't loading JavaScript properly, and the form will not be able to submit." msgstr "" -#: classes/models/FrmAntiSpam.php:290 +#: classes/models/FrmAntiSpam.php:305 msgid "Form token is invalid. Please refresh the page." msgstr "" #. translators: %1$s start link, %2$s end link. -#: classes/models/FrmAntiSpam.php:311 +#: classes/models/FrmAntiSpam.php:326 msgid "Please check out our %1$stroubleshooting guide%2$s for details on resolving this issue." msgstr "" @@ -6760,22 +6907,22 @@ msgstr "" msgid "%1$s Form submitted on %2$s" msgstr "" -#: classes/models/FrmEmail.php:415 +#: classes/models/FrmEmail.php:418 #: classes/views/frm-entries/sidebar-shared.php:87 msgid "User Information" msgstr "" -#: classes/models/FrmEmail.php:417 +#: classes/models/FrmEmail.php:420 #: classes/models/FrmEntryValues.php:263 msgid "User-Agent (Browser/OS)" msgstr "" -#: classes/models/FrmEmail.php:418 +#: classes/models/FrmEmail.php:421 #: classes/models/FrmEntryValues.php:267 msgid "Referrer" msgstr "" -#: classes/models/FrmEmail.php:456 +#: classes/models/FrmEmail.php:478 #: classes/models/FrmEntryValues.php:259 msgid "IP Address" msgstr "" @@ -6814,259 +6961,259 @@ msgstr "" msgid "There was a problem with your submission. Please try again." msgstr "" -#: classes/models/FrmField.php:24 +#: classes/models/FrmField.php:43 #: classes/views/frm-settings/email/settings.php:99 msgid "Text" msgstr "" -#: classes/models/FrmField.php:28 +#: classes/models/FrmField.php:47 msgid "Paragraph" msgstr "" -#: classes/models/FrmField.php:48 +#: classes/models/FrmField.php:67 msgid "Website/URL" msgstr "" -#: classes/models/FrmField.php:52 +#: classes/models/FrmField.php:71 #: classes/views/frm-fields/back-end/format-dropdown-options.php:22 msgid "Number" msgstr "" -#: classes/models/FrmField.php:60 +#: classes/models/FrmField.php:79 msgid "Phone" msgstr "" -#: classes/models/FrmField.php:64 +#: classes/models/FrmField.php:83 msgid "HTML" msgstr "" -#: classes/models/FrmField.php:68 +#: classes/models/FrmField.php:87 msgid "Hidden" msgstr "" -#: classes/models/FrmField.php:80 +#: classes/models/FrmField.php:99 #: paypal/controllers/FrmPayPalLiteAppController.php:19 #: square/controllers/FrmSquareLiteAppController.php:19 #: stripe/controllers/FrmStrpLiteAppController.php:82 -#: stripe/controllers/FrmTransLiteActionsController.php:628 +#: stripe/controllers/FrmTransLiteActionsController.php:729 #: stripe/controllers/FrmTransLiteCRUDController.php:34 #: stripe/views/payments/show.php:27 msgid "Payment" msgstr "" -#: classes/models/FrmField.php:84 -#: classes/models/FrmField.php:281 +#: classes/models/FrmField.php:103 +#: classes/models/FrmField.php:300 #: stripe/views/action-settings/payments-options.php:246 #: stripe/views/action-settings/paypal-shipping.php:27 msgid "Address" msgstr "" -#: classes/models/FrmField.php:97 -#: classes/models/FrmField.php:333 +#: classes/models/FrmField.php:116 +#: classes/models/FrmField.php:352 msgid "Product" msgstr "" -#: classes/models/FrmField.php:102 -#: classes/models/FrmField.php:341 +#: classes/models/FrmField.php:121 +#: classes/models/FrmField.php:360 msgid "Quantity" msgstr "" -#: classes/models/FrmField.php:135 +#: classes/models/FrmField.php:154 msgid "File Upload" msgstr "" -#: classes/models/FrmField.php:137 +#: classes/models/FrmField.php:156 msgid "Add file uploads to save time and cut down on back-and-forth. Upgrade to Pro to get Upload fields and more." msgstr "" -#: classes/models/FrmField.php:142 +#: classes/models/FrmField.php:161 msgid "Ranking" msgstr "" -#: classes/models/FrmField.php:144 +#: classes/models/FrmField.php:163 msgid "Now you can effortlessly gather insights, preferences, and opinions by allowing users to rank options." msgstr "" -#: classes/models/FrmField.php:150 +#: classes/models/FrmField.php:169 msgid "Rich Text" msgstr "" -#: classes/models/FrmField.php:152 +#: classes/models/FrmField.php:171 msgid "Go beyond plain text, let your users format their content with bolding, italics, links, lists and more." msgstr "" -#: classes/models/FrmField.php:159 +#: classes/models/FrmField.php:178 msgid "Capture exact calendar dates effortlessly with a sleek pop-up date picker, ensuring clarity and consistency for scheduling, tracking deadlines, and more." msgstr "" -#: classes/models/FrmField.php:164 +#: classes/models/FrmField.php:183 #: paypal/views/settings/connect-settings-container.php:65 msgid "Time" msgstr "" -#: classes/models/FrmField.php:166 +#: classes/models/FrmField.php:185 msgid "Precisely log important moments with an intuitive time selection tool, perfect for managing events, availability, or operational hours." msgstr "" -#: classes/models/FrmField.php:171 +#: classes/models/FrmField.php:190 msgid "Scale" msgstr "" -#: classes/models/FrmField.php:173 +#: classes/models/FrmField.php:192 msgid "Easily measure satisfaction or quantity using a simple, clear numerical scale, giving you fast, quantifiable insights into user feedback." msgstr "" -#: classes/models/FrmField.php:178 +#: classes/models/FrmField.php:197 msgid "Star Rating" msgstr "" -#: classes/models/FrmField.php:180 +#: classes/models/FrmField.php:199 msgid "Capture instant, appealing feedback with a familiar visual star system, providing immediate and engaging quality assessments from your users." msgstr "" -#: classes/models/FrmField.php:185 +#: classes/models/FrmField.php:204 msgid "Slider" msgstr "" -#: classes/models/FrmField.php:187 +#: classes/models/FrmField.php:206 msgid "Let users quickly select values within a range using a dynamic, interactive slider, creating a modern and enjoyable data input experience." msgstr "" -#: classes/models/FrmField.php:192 +#: classes/models/FrmField.php:211 msgid "Toggle" msgstr "" -#: classes/models/FrmField.php:194 +#: classes/models/FrmField.php:213 msgid "Quickly and easily create cascading fields, populate fields by search and more." msgstr "" -#: classes/models/FrmField.php:199 +#: classes/models/FrmField.php:218 msgid "Dynamic" msgstr "" -#: classes/models/FrmField.php:201 -#: classes/models/FrmField.php:208 +#: classes/models/FrmField.php:220 +#: classes/models/FrmField.php:227 msgid "Link entries together, dynamic display information, and even make selections from data entered on another form." msgstr "" -#: classes/models/FrmField.php:213 +#: classes/models/FrmField.php:232 msgid "Repeater" msgstr "" -#: classes/models/FrmField.php:215 +#: classes/models/FrmField.php:234 msgid "Allow users to add rows of fields dynamically as needed (like for multiple attendees or items), making complex data entry flexible and intuitive." msgstr "" -#: classes/models/FrmField.php:220 +#: classes/models/FrmField.php:239 #: classes/models/FrmFormMigrator.php:406 msgid "Section Buttons" msgstr "" -#: classes/models/FrmField.php:224 +#: classes/models/FrmField.php:243 msgid "Section" msgstr "" -#: classes/models/FrmField.php:226 -#: classes/models/FrmField.php:233 +#: classes/models/FrmField.php:245 +#: classes/models/FrmField.php:252 msgid "Enhance the user experience and improve completion rates by dividing long surveys into clean, manageable steps with distinct pages." msgstr "" -#: classes/models/FrmField.php:231 +#: classes/models/FrmField.php:250 msgid "Page Break" msgstr "" -#: classes/models/FrmField.php:240 +#: classes/models/FrmField.php:259 msgid "Seamlessly integrate other existing forms or external content directly inside your current form, creating powerful, interconnected workflows." msgstr "" -#: classes/models/FrmField.php:245 +#: classes/models/FrmField.php:264 msgid "Likert Scale" msgstr "" -#: classes/models/FrmField.php:248 +#: classes/models/FrmField.php:267 msgid "Get nuanced, detailed opinions using standardized agreement scales, unlocking deeper insights beyond simple yes/no answers." msgstr "" -#: classes/models/FrmField.php:253 +#: classes/models/FrmField.php:272 msgid "NPS" msgstr "" -#: classes/models/FrmField.php:256 +#: classes/models/FrmField.php:275 msgid "Directly measure customer loyalty with the industry-standard Net Promoter Score® field, giving you a single, vital metric for business growth." msgstr "" -#: classes/models/FrmField.php:261 +#: classes/models/FrmField.php:280 msgid "Password" msgstr "" -#: classes/models/FrmField.php:263 +#: classes/models/FrmField.php:282 msgid "Confidently collect sensitive credentials or create secure sections with a dedicated field that masks input for privacy and security." msgstr "" -#: classes/models/FrmField.php:268 +#: classes/models/FrmField.php:287 msgid "Tags" msgstr "" -#: classes/models/FrmField.php:270 +#: classes/models/FrmField.php:289 msgid "Facilitate easy categorization and analysis by letting users select or create multiple relevant keywords or labels for their entry." msgstr "" -#: classes/models/FrmField.php:283 +#: classes/models/FrmField.php:302 msgid "Instantly capture location information, simplifying logistics and contact collection. (Or go further with our Geolocation add-on!)" msgstr "" -#: classes/models/FrmField.php:288 +#: classes/models/FrmField.php:307 msgid "Summary" msgstr "" -#: classes/models/FrmField.php:290 +#: classes/models/FrmField.php:309 msgid "Provide users with a clean, final review of all their entered data before submission, reducing errors and improving data quality." msgstr "" -#: classes/models/FrmField.php:295 +#: classes/models/FrmField.php:314 msgid "Signature" msgstr "" -#: classes/models/FrmField.php:298 +#: classes/models/FrmField.php:317 msgid "Capture digital e-signatures directly within your form, making official agreements and authorizations straightforward." msgstr "" -#: classes/models/FrmField.php:303 +#: classes/models/FrmField.php:322 msgid "AI" msgstr "" -#: classes/models/FrmField.php:306 +#: classes/models/FrmField.php:325 msgid "Harness artificial intelligence by taking user input and let the model of your choice create an output, quickly and easily." msgstr "" -#: classes/models/FrmField.php:311 +#: classes/models/FrmField.php:330 msgid "Appointment" msgstr "" #. translators: %1$s: Link opening HTML, %2$s: Link tag closing -#: classes/models/FrmField.php:316 +#: classes/models/FrmField.php:335 msgid "Appointment fields are an integration with %1$sSimply Schedule Appointments%2$s. Get started now to schedule appointments directly from your forms." msgstr "" -#: classes/models/FrmField.php:325 +#: classes/models/FrmField.php:344 msgid "Virtual" msgstr "" -#: classes/models/FrmField.php:327 +#: classes/models/FrmField.php:346 msgid "Protect sensitive data by storing field values server-side only, preventing users from viewing or manipulating them in their browser." msgstr "" -#: classes/models/FrmField.php:336 -#: classes/models/FrmField.php:344 -#: classes/models/FrmField.php:352 +#: classes/models/FrmField.php:355 +#: classes/models/FrmField.php:363 +#: classes/models/FrmField.php:371 msgid "Turn your form into a simple storefront by adding fields to list products, choose quantities, and calculate totals, enabling direct sales." msgstr "" -#: classes/models/FrmField.php:357 +#: classes/models/FrmField.php:376 msgid "Coupon" msgstr "" -#: classes/models/FrmField.php:404 +#: classes/models/FrmField.php:423 msgid "Pricing Fields" msgstr "" @@ -7306,7 +7453,7 @@ msgid "redirect, success, confirmation, submit" msgstr "" #: classes/models/FrmOnSubmitAction.php:42 -#: classes/views/frm-fields/back-end/settings.php:567 +#: classes/views/frm-fields/back-end/settings.php:571 msgid "Confirmation" msgstr "" @@ -7328,33 +7475,33 @@ msgctxt "Formidable Addon Name" msgid "Formidable %s" msgstr "" -#: classes/models/FrmPluginSearch.php:329 +#: classes/models/FrmPluginSearch.php:330 #: classes/views/addons/settings.php:41 #: js/formidable_admin.js:2 #: js/frm_testing_mode.js:2 #: js/src/admin/upgrade-popup.js:72 #: js/src/form/views.js:20 -#: js/formidable_admin.js:2854 +#: js/formidable_admin.js:4575 #: js/formidable_blocks.js:1245 #: js/frm_testing_mode.js:1873 msgid "Activate" msgstr "" -#: classes/models/FrmPluginSearch.php:336 +#: classes/models/FrmPluginSearch.php:337 msgid "Install Now" msgstr "" -#: classes/models/FrmPluginSearch.php:344 +#: classes/models/FrmPluginSearch.php:345 #: classes/views/shared/views-info.php:117 #: classes/views/shared/views-info.php:119 msgid "Learn more" msgstr "" -#: classes/models/FrmPluginSearch.php:353 +#: classes/models/FrmPluginSearch.php:354 msgid "Hide this suggestion" msgstr "" -#: classes/models/FrmPluginSearch.php:379 +#: classes/models/FrmPluginSearch.php:380 msgid "This suggestion was made by Formidable Forms, the form builder and application plugin already installed on your site." msgstr "" @@ -7416,7 +7563,7 @@ msgstr "" msgid "The page has been opened in a new tab." msgstr "" -#: classes/models/FrmSettings.php:492 +#: classes/models/FrmSettings.php:488 msgid "The CAPTCHA was not entered correctly" msgstr "" @@ -7518,52 +7665,52 @@ msgstr "" msgid "New Style" msgstr "" -#: classes/models/FrmStyle.php:531 +#: classes/models/FrmStyle.php:539 msgid "WARNING: Any changes made to this file will be lost when your Formidable settings are updated" msgstr "" -#: classes/models/FrmStyle.php:634 +#: classes/models/FrmStyle.php:642 msgid "Formidable Style" msgstr "" -#: classes/models/FrmStyle.php:914 +#: classes/models/FrmStyle.php:922 msgid "Thin" msgstr "" -#: classes/models/FrmStyle.php:915 +#: classes/models/FrmStyle.php:923 msgid "Extra Light" msgstr "" -#: classes/models/FrmStyle.php:916 -#: classes/views/frm-fields/back-end/settings.php:414 +#: classes/models/FrmStyle.php:924 +#: classes/views/frm-fields/back-end/settings.php:418 msgid "Light" msgstr "" -#: classes/models/FrmStyle.php:917 +#: classes/models/FrmStyle.php:925 #: classes/views/styles/components/templates/field-shape.php:9 #: js/src/web-components/frm-typography-component/frm-typography-component.js:31 #: js/formidable-web-components.js:4331 msgid "Regular" msgstr "" -#: classes/models/FrmStyle.php:918 +#: classes/models/FrmStyle.php:926 msgid "Medium" msgstr "" -#: classes/models/FrmStyle.php:919 +#: classes/models/FrmStyle.php:927 msgid "Semi Bold" msgstr "" -#: classes/models/FrmStyle.php:920 +#: classes/models/FrmStyle.php:928 msgid "Bold" msgstr "" -#: classes/models/FrmStyle.php:921 +#: classes/models/FrmStyle.php:929 msgid "Extra Bold" msgstr "" -#: classes/models/FrmStyle.php:922 -#: paypal/views/settings/button-settings.php:37 +#: classes/models/FrmStyle.php:930 +#: paypal/views/settings/button-settings.php:36 msgid "Black" msgstr "" @@ -7579,7 +7726,15 @@ msgstr "" msgid "The verification request was missing the secret key or the CAPTCHA response." msgstr "" -#: classes/views/addons/addon.php:40 +#: classes/views/addons/addon.php:43 +msgid "Boosts are sold separately and are not included in any plan." +msgstr "" + +#: classes/views/addons/addon.php:43 +msgid "Boost" +msgstr "" + +#: classes/views/addons/addon.php:53 #: classes/views/form-templates/template.php:41 #: classes/views/frm-form-actions/settings.php:137 #: classes/views/frm-form-actions/settings.php:246 @@ -7587,12 +7742,12 @@ msgstr "" msgid "Lock icon" msgstr "" -#: classes/views/addons/addon.php:50 +#: classes/views/addons/addon.php:63 msgid "This payment gateway is built into Formidable and is always on." msgstr "" -#: classes/views/addons/addon.php:92 -#: classes/views/addons/addon.php:101 +#: classes/views/addons/addon.php:120 +#: classes/views/addons/addon.php:129 msgid "View Docs" msgstr "" @@ -7993,14 +8148,6 @@ msgstr "" msgid "This field is not set up yet." msgstr "" -#: classes/views/frm-fields/back-end/field-hidden.php:18 -msgid "Note: This field will not show in the form. Enter the value to be hidden." -msgstr "" - -#: classes/views/frm-fields/back-end/field-html.php:16 -msgid "Custom HTML:" -msgstr "" - #: classes/views/frm-fields/back-end/field-options.php:29 msgid "Bulk Edit" msgstr "" @@ -8122,12 +8269,12 @@ msgid "Field Size" msgstr "" #: classes/views/frm-fields/back-end/product-options.php:16 -#: paypal/controllers/FrmPayPalLiteActionsController.php:2699 +#: paypal/controllers/FrmPayPalLiteActionsController.php:2811 msgid "Product Type" msgstr "" #: classes/views/frm-fields/back-end/product-single-option.php:28 -#: paypal/controllers/FrmPayPalLiteActionsController.php:2691 +#: paypal/controllers/FrmPayPalLiteActionsController.php:2803 msgid "Product Name" msgstr "" @@ -8165,12 +8312,12 @@ msgid "GDPR field is disabled. Please enable it in the Formidable %1$sSettings%2 msgstr "" #: classes/views/frm-fields/back-end/settings.php:125 -#: classes/views/frm-fields/back-end/settings.php:536 +#: classes/views/frm-fields/back-end/settings.php:540 msgid "Required" msgstr "" #: classes/views/frm-fields/back-end/settings.php:136 -#: classes/views/frm-fields/back-end/settings.php:556 +#: classes/views/frm-fields/back-end/settings.php:560 msgid "Unique" msgstr "" @@ -8179,81 +8326,81 @@ msgstr "" msgid "Read Only" msgstr "" -#: classes/views/frm-fields/back-end/settings.php:172 +#: classes/views/frm-fields/back-end/settings.php:176 msgid "CSS Layout Classes" msgstr "" -#: classes/views/frm-fields/back-end/settings.php:173 +#: classes/views/frm-fields/back-end/settings.php:177 msgid "Add a CSS class to the field container. Use our predefined classes to align multiple fields in single row." msgstr "" -#: classes/views/frm-fields/back-end/settings.php:226 +#: classes/views/frm-fields/back-end/settings.php:230 msgid "Collapsible Advanced Settings" msgstr "" -#: classes/views/frm-fields/back-end/settings.php:227 +#: classes/views/frm-fields/back-end/settings.php:231 #: classes/views/shared/mb_adv_info.php:22 msgid "Advanced" msgstr "" -#: classes/views/frm-fields/back-end/settings.php:378 +#: classes/views/frm-fields/back-end/settings.php:382 msgid "If this URL points to an image, show the image on the entries listing page." msgstr "" -#: classes/views/frm-fields/back-end/settings.php:387 +#: classes/views/frm-fields/back-end/settings.php:391 msgid "Allow international domain names with accented or non-Latin characters." msgstr "" -#: classes/views/frm-fields/back-end/settings.php:394 +#: classes/views/frm-fields/back-end/settings.php:398 msgid "Set the size of the captcha field. The compact option is best if your form is in a small area." msgstr "" -#: classes/views/frm-fields/back-end/settings.php:395 +#: classes/views/frm-fields/back-end/settings.php:399 msgid "Captcha Size" msgstr "" -#: classes/views/frm-fields/back-end/settings.php:399 +#: classes/views/frm-fields/back-end/settings.php:403 msgid "Normal" msgstr "" -#: classes/views/frm-fields/back-end/settings.php:410 +#: classes/views/frm-fields/back-end/settings.php:414 msgid "Captcha Theme" msgstr "" -#: classes/views/frm-fields/back-end/settings.php:417 +#: classes/views/frm-fields/back-end/settings.php:421 msgid "Dark" msgstr "" -#: classes/views/frm-fields/back-end/settings.php:421 +#: classes/views/frm-fields/back-end/settings.php:425 msgid "Auto" msgstr "" -#: classes/views/frm-fields/back-end/settings.php:433 +#: classes/views/frm-fields/back-end/settings.php:437 msgid "Required Field Indicator" msgstr "" -#: classes/views/frm-fields/back-end/settings.php:453 +#: classes/views/frm-fields/back-end/settings.php:457 #: classes/views/styles/components/templates/align.php:11 msgid "Center" msgstr "" -#: classes/views/frm-fields/back-end/settings.php:470 +#: classes/views/frm-fields/back-end/settings.php:474 msgid "The field key can be used as an alternative to the field ID in many cases." msgstr "" -#: classes/views/frm-fields/back-end/settings.php:479 +#: classes/views/frm-fields/back-end/settings.php:483 msgid "Field Type" msgstr "" -#: classes/views/frm-fields/back-end/settings.php:525 +#: classes/views/frm-fields/back-end/settings.php:529 msgid "Collapsible Validation Messages Settings" msgstr "" -#: classes/views/frm-fields/back-end/settings.php:527 +#: classes/views/frm-fields/back-end/settings.php:531 msgid "Validation Messages" msgstr "" -#: classes/views/frm-fields/back-end/settings.php:545 +#: classes/views/frm-fields/back-end/settings.php:549 msgid "Invalid Format" msgstr "" @@ -8595,35 +8742,15 @@ msgstr "" msgid "Copy shortcode" msgstr "" -#: classes/views/frm-forms/add_field.php:29 +#: classes/views/frm-forms/add_field.php:47 msgid "Expand/Collapse Section" msgstr "" -#: classes/views/frm-forms/add_field.php:33 +#: classes/views/frm-forms/add_field.php:51 msgid "Expand/Collapse Section Icon" msgstr "" -#: classes/views/frm-forms/add_field.php:39 -msgid "Move Field" -msgstr "" - -#: classes/views/frm-forms/add_field.php:44 -#: js/src/admin/admin.js:2008 -#: js/src/admin/admin.js:2014 -#: js/src/admin/admin.js:3497 -#: js/formidable_admin.js:5826 -#: js/formidable_admin.js:5832 -#: js/formidable_admin.js:7278 -msgid "More Options" -msgstr "" - -#: classes/views/frm-forms/add_field.php:46 -#: js/src/admin/admin.js:2000 -#: js/formidable_admin.js:5818 -msgid "Toggle More Options Dropdown" -msgstr "" - -#: classes/views/frm-forms/add_field.php:132 +#: classes/views/frm-forms/add_field.php:160 msgid "Add Fields Here" msgstr "" @@ -8665,12 +8792,12 @@ msgstr "" msgid "Page %s" msgstr "" -#: classes/views/frm-forms/form.php:97 -#: classes/views/frm-forms/form.php:99 +#: classes/views/frm-forms/form.php:105 +#: classes/views/frm-forms/form.php:107 msgid "Start Building Your Form" msgstr "" -#: classes/views/frm-forms/form.php:100 +#: classes/views/frm-forms/form.php:108 msgid "Drag and drop fields from the left or click a field to add it to your form." msgstr "" @@ -8821,27 +8948,38 @@ msgstr "" msgid "Make stuff happen in the background without a page refresh" msgstr "" -#: classes/views/frm-forms/settings-advanced.php:106 -msgid "Load and save form builder page with AJAX" +#. translators: %d: Number of fields +#: classes/views/frm-forms/settings-advanced.php:114 +msgid "The form builder now loads and saves with AJAX automatically once a form has more than %d fields." msgstr "" -#: classes/views/frm-forms/settings-advanced.php:107 -msgid "Recommended for long forms." -msgstr "" +#. translators: %d: Number of fields +#: classes/views/frm-forms/settings-advanced.php:122 +msgid "This form has %d field, so AJAX loading is on." +msgid_plural "This form has %d fields, so AJAX loading is on." +msgstr[0] "" +msgstr[1] "" + +#. translators: %d: Number of fields +#: classes/views/frm-forms/settings-advanced.php:125 +msgid "This form has %d field, so AJAX loading is off." +msgid_plural "This form has %d fields, so AJAX loading is off." +msgstr[0] "" +msgstr[1] "" -#: classes/views/frm-forms/settings-advanced.php:116 +#: classes/views/frm-forms/settings-advanced.php:138 msgid "Submit this form with AJAX" msgstr "" -#: classes/views/frm-forms/settings-advanced.php:117 +#: classes/views/frm-forms/settings-advanced.php:139 msgid "Submit the form without refreshing the page." msgstr "" -#: classes/views/frm-forms/settings-advanced.php:125 +#: classes/views/frm-forms/settings-advanced.php:147 msgid "Validate this form with javascript" msgstr "" -#: classes/views/frm-forms/settings-advanced.php:126 +#: classes/views/frm-forms/settings-advanced.php:148 msgid "Required fields, email format, and number format can be checked instantly in your browser. You may want to turn this option off if you have any customizations to remove validation messages on certain fields." msgstr "" @@ -8914,7 +9052,7 @@ msgid "Check denylist data to validate for spam" msgstr "" #: classes/views/frm-forms/spam-settings.php:120 -#: classes/views/frm-settings/captcha/captcha.php:342 +#: classes/views/frm-settings/captcha/captcha.php:343 msgid "Delete spam entries automatically" msgstr "" @@ -8926,7 +9064,7 @@ msgstr[0] "" msgstr[1] "" #: classes/views/frm-forms/spam-settings.php:129 -#: classes/views/frm-settings/captcha/captcha.php:349 +#: classes/views/frm-settings/captcha/captcha.php:350 msgid "Automatic spam cleanup" msgstr "" @@ -9044,111 +9182,115 @@ msgid "Choose whether CAPTCHA failures prevent submission or allow the form to b msgstr "" #: classes/views/frm-settings/captcha/captcha.php:162 -msgid "Detect bots that fill out an invisible field meant to stay empty." +msgid "Choose how to handle submissions when the CAPTCHA could not be verified because the CAPTCHA service could not be reached or sent back a response that could not be read." msgstr "" #: classes/views/frm-settings/captcha/captcha.php:163 -msgid "Detect submissions that fail the JavaScript anti-spam check, such as bots that do not run JavaScript." +msgid "Detect bots that fill out an invisible field meant to stay empty." msgstr "" #: classes/views/frm-settings/captcha/captcha.php:164 -msgid "Choose how to handle submissions when the submitter IP address cannot be detected." +msgid "Detect submissions that fail the JavaScript anti-spam check, such as bots that do not run JavaScript." msgstr "" #: classes/views/frm-settings/captcha/captcha.php:165 -msgid "Akismet flagged this submission as spam, but it may be a false positive. Save it as a spam entry to review it later, or reject it with an error message." +msgid "Choose how to handle submissions when the submitter IP address cannot be detected." msgstr "" #: classes/views/frm-settings/captcha/captcha.php:166 -msgid "Akismet marked this submission as highly likely to be spam and recommended discarding it. Reject it with an error message without saving an entry, or save it as a spam entry if you prefer to review it." +msgid "Akismet flagged this submission as spam, but it may be a false positive. Save it as a spam entry to review it later, or reject it with an error message." msgstr "" #: classes/views/frm-settings/captcha/captcha.php:167 -msgid "Check submitted text against the built-in list of spam words and your custom disallowed words." +msgid "Akismet marked this submission as highly likely to be spam and recommended discarding it. Reject it with an error message without saving an entry, or save it as a spam entry if you prefer to review it." msgstr "" #: classes/views/frm-settings/captcha/captcha.php:168 -msgid "Choose how to handle submissions matching the Disallowed Comment Keys in WordPress Settings > Discussion." +msgid "Check submitted text against the built-in list of spam words and your custom disallowed words." msgstr "" #: classes/views/frm-settings/captcha/captcha.php:169 -msgid "Match the submitter IP address, email, or website against recent WordPress comments marked as spam." +msgid "Choose how to handle submissions matching the Disallowed Comment Keys in WordPress Settings > Discussion." msgstr "" #: classes/views/frm-settings/captcha/captcha.php:170 +msgid "Match the submitter IP address, email, or website against recent WordPress comments marked as spam." +msgstr "" + +#: classes/views/frm-settings/captcha/captcha.php:171 msgid "Choose how to handle submissions with an IP address or email flagged by the StopForumSpam service." msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:176 +#: classes/views/frm-settings/captcha/captcha.php:177 msgid "Customize how spam submissions are handled" msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:179 +#: classes/views/frm-settings/captcha/captcha.php:180 msgid "Choose which checks run and what happens when one flags a new submission." msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:231 +#: classes/views/frm-settings/captcha/captcha.php:232 msgid "Save as a spam entry" msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:234 +#: classes/views/frm-settings/captcha/captcha.php:235 msgid "Reject with an error message" msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:248 +#: classes/views/frm-settings/captcha/captcha.php:249 msgid "Customize denylist words" msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:251 +#: classes/views/frm-settings/captcha/captcha.php:252 msgid "Enter one word or phrase per line. Allowed words are never flagged, even when they are on the denylist." msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:255 +#: classes/views/frm-settings/captcha/captcha.php:256 msgid "Custom disallowed words" msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:262 +#: classes/views/frm-settings/captcha/captcha.php:263 msgid "Custom allowed words" msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:273 +#: classes/views/frm-settings/captcha/captcha.php:274 msgid "Spam keywords detected recently:" msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:289 +#: classes/views/frm-settings/captcha/captcha.php:290 msgid "Akismet" msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:290 +#: classes/views/frm-settings/captcha/captcha.php:291 msgid "Formidable Forms works with Akismet. Enable it in the Spam settings for each form." msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:293 +#: classes/views/frm-settings/captcha/captcha.php:294 msgid "View docs" msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:294 +#: classes/views/frm-settings/captcha/captcha.php:295 msgid "for Akismet (opens in a new tab)" msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:303 +#: classes/views/frm-settings/captcha/captcha.php:304 msgid "Spam entries" msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:305 +#: classes/views/frm-settings/captcha/captcha.php:306 msgid "Saved spam entries go to the Spam tab of the entries list. They never trigger form actions, and the submitter sees the normal success message." msgstr "" #. translators: %s: Names of active Formidable add-ons that need an update. -#: classes/views/frm-settings/captcha/captcha.php:316 +#: classes/views/frm-settings/captcha/captcha.php:317 msgid "Update %s to save spam entries. Until then, flagged submissions are rejected." msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:343 +#: classes/views/frm-settings/captcha/captcha.php:344 msgid "Automatically delete saved spam entries after the selected number of days. This requires Formidable Pro." msgstr "" -#: classes/views/frm-settings/captcha/captcha.php:347 +#: classes/views/frm-settings/captcha/captcha.php:348 msgid "After 30 days" msgstr "" @@ -9362,11 +9504,11 @@ msgid "Learn more about MCP" msgstr "" #: classes/views/frm-settings/mcp.php:74 -msgid "Enable the Formidable MCP server" +msgid "Enable AI access" msgstr "" #: classes/views/frm-settings/mcp.php:81 -msgid "Controls AI access for the whole site. While it is off, no MCP server can use Formidable's abilities." +msgid "Allows WPVibe and other connected AI assistants to use Formidable abilities, and enables the Formidable MCP server. While off, only setup discovery is available." msgstr "" #: classes/views/frm-settings/mcp.php:89 @@ -9850,8 +9992,8 @@ msgid "Get Templates" msgstr "" #: classes/views/shared/info-overlay.php:25 -#: js/src/admin/admin.js:458 -#: js/formidable_admin.js:4301 +#: js/src/admin/admin.js:487 +#: js/formidable_admin.js:5757 msgid "Got it!" msgstr "" @@ -10154,9 +10296,9 @@ msgid "Field value" msgstr "" #: classes/views/styles/components/FrmSliderStyleComponent.php:329 -#: js/src/settings-components/components/slider-component.js:290 +#: js/src/settings-components/components/slider-component.js:330 #: js/src/web-components/frm-range-slider-component/frm-range-slider-component.js:438 -#: js/formidable-settings-components.js:2981 +#: js/formidable-settings-components.js:3040 #: js/formidable-web-components.js:3276 #: js/formidable-web-components.js:4063 msgid "Not set" @@ -10247,7 +10389,12 @@ msgid "On Click" msgstr "" #: classes/views/styles/_buttons.php:26 -msgid "Background Image" +#: classes/views/styles/_field-colors.php:25 +#: classes/views/styles/_field-colors.php:142 +#: classes/views/styles/_field-colors.php:200 +#: classes/views/styles/_field-colors.php:258 +#: classes/views/styles/_general.php:20 +msgid "Background" msgstr "" #: classes/views/styles/_buttons.php:39 @@ -10358,7 +10505,8 @@ msgstr "" #: classes/views/styles/_field-labels.php:148 #: classes/views/styles/_form-description.php:23 #: classes/views/styles/_form-title.php:9 -#: paypal/views/settings/button-settings.php:29 +#: paypal/views/settings/button-settings.php:28 +#: js/src/color-picker/index.js:64 msgid "Color" msgstr "" @@ -10388,14 +10536,6 @@ msgstr "" msgid "Error" msgstr "" -#: classes/views/styles/_field-colors.php:25 -#: classes/views/styles/_field-colors.php:142 -#: classes/views/styles/_field-colors.php:200 -#: classes/views/styles/_field-colors.php:258 -#: classes/views/styles/_general.php:20 -msgid "Background" -msgstr "" - #: classes/views/styles/_field-colors.php:43 #: classes/views/styles/_field-colors.php:218 #: classes/views/styles/_field-colors.php:276 @@ -10659,15 +10799,15 @@ msgstr "" msgid "One or more of your style settings may contain invalid characters that break form styling." msgstr "" -#: classes/views/styles/_style-preview-container.php:50 +#: classes/views/styles/_style-preview-container.php:53 msgid "Edit style" msgstr "" -#: classes/views/styles/_style-preview-container.php:68 +#: classes/views/styles/_style-preview-container.php:72 msgid "Please wait" msgstr "" -#: classes/views/styles/_style-preview-container.php:69 +#: classes/views/styles/_style-preview-container.php:73 msgid "Updating CSS..." msgstr "" @@ -10787,20 +10927,25 @@ msgstr "" msgid "Selected form actions will be triggered when this test entry is submitted" msgstr "" -#: classes/views/test-mode/container.php:115 +#: classes/views/test-mode/container.php:93 +msgctxt "no form actions to enable" +msgid "None" +msgstr "" + +#: classes/views/test-mode/container.php:119 msgid "Quick jump to page:" msgstr "" -#: classes/views/test-mode/container.php:126 +#: classes/views/test-mode/container.php:130 msgid "Fill empty fields with AI" msgstr "" -#: classes/views/test-mode/container.php:143 -#: classes/views/test-mode/container.php:144 +#: classes/views/test-mode/container.php:147 +#: classes/views/test-mode/container.php:148 msgid "Reset" msgstr "" -#: classes/views/test-mode/container.php:149 +#: classes/views/test-mode/container.php:153 msgid "Unlock these powerful, time saving testing features by upgrading!" msgstr "" @@ -10958,7 +11103,7 @@ msgstr "" #: paypal/controllers/FrmPayPalLiteActionsController.php:211 #: square/controllers/FrmSquareLiteActionsController.php:114 -#: stripe/controllers/FrmStrpLiteActionsController.php:153 +#: stripe/controllers/FrmStrpLiteActionsController.php:154 msgid "Please specify an amount for the payment" msgstr "" @@ -10993,77 +11138,77 @@ msgstr "" msgid "Failed to capture order." msgstr "" -#: paypal/controllers/FrmPayPalLiteActionsController.php:1103 +#: paypal/controllers/FrmPayPalLiteActionsController.php:1164 msgid "No PayPal subscription ID found." msgstr "" -#: paypal/controllers/FrmPayPalLiteActionsController.php:2703 +#: paypal/controllers/FrmPayPalLiteActionsController.php:2815 msgid "Service" msgstr "" -#: paypal/controllers/FrmPayPalLiteActionsController.php:2704 +#: paypal/controllers/FrmPayPalLiteActionsController.php:2816 msgid "Digital" msgstr "" -#: paypal/controllers/FrmPayPalLiteActionsController.php:2705 +#: paypal/controllers/FrmPayPalLiteActionsController.php:2817 msgid "Physical" msgstr "" -#: paypal/controllers/FrmPayPalLiteActionsController.php:2739 +#: paypal/controllers/FrmPayPalLiteActionsController.php:2851 msgid "PayPal Email" msgstr "" -#: paypal/controllers/FrmPayPalLiteActionsController.php:2740 +#: paypal/controllers/FrmPayPalLiteActionsController.php:2852 msgid "PayPal Name" msgstr "" -#: paypal/controllers/FrmPayPalLiteActionsController.php:2743 +#: paypal/controllers/FrmPayPalLiteActionsController.php:2855 msgid "PayPal Address" msgstr "" #: paypal/controllers/FrmPayPalLiteAppController.php:79 -#: paypal/controllers/FrmPayPalLiteAppController.php:227 -#: paypal/controllers/FrmPayPalLiteAppController.php:633 +#: paypal/controllers/FrmPayPalLiteAppController.php:315 +#: paypal/controllers/FrmPayPalLiteAppController.php:722 #: square/controllers/FrmSquareLiteAppController.php:86 msgid "Invalid form ID" msgstr "" #: paypal/controllers/FrmPayPalLiteAppController.php:85 -#: paypal/controllers/FrmPayPalLiteAppController.php:243 -#: paypal/controllers/FrmPayPalLiteAppController.php:639 +#: paypal/controllers/FrmPayPalLiteAppController.php:331 +#: paypal/controllers/FrmPayPalLiteAppController.php:728 msgid "No PayPal actions found for this form" msgstr "" -#: paypal/controllers/FrmPayPalLiteAppController.php:233 +#: paypal/controllers/FrmPayPalLiteAppController.php:321 msgid "No payment source provided" msgstr "" -#: paypal/controllers/FrmPayPalLiteAppController.php:237 +#: paypal/controllers/FrmPayPalLiteAppController.php:325 msgid "Invalid payment source" msgstr "" -#: paypal/controllers/FrmPayPalLiteAppController.php:249 -#: paypal/controllers/FrmPayPalLiteAppController.php:645 +#: paypal/controllers/FrmPayPalLiteAppController.php:337 +#: paypal/controllers/FrmPayPalLiteAppController.php:734 msgid "No PayPal action applies to the values in this form" msgstr "" -#: paypal/controllers/FrmPayPalLiteAppController.php:260 +#: paypal/controllers/FrmPayPalLiteAppController.php:348 msgid "Order amount cannot be zero." msgstr "" -#: paypal/controllers/FrmPayPalLiteAppController.php:666 +#: paypal/controllers/FrmPayPalLiteAppController.php:755 msgid "A product name is required for subscriptions. Please update your PayPal action settings." msgstr "" -#: paypal/controllers/FrmPayPalLiteAppController.php:670 +#: paypal/controllers/FrmPayPalLiteAppController.php:759 msgid "A billing interval is required for subscriptions. Please update your PayPal action settings." msgstr "" -#: paypal/controllers/FrmPayPalLiteAppController.php:674 +#: paypal/controllers/FrmPayPalLiteAppController.php:763 msgid "A valid amount is required for subscriptions. Zero amounts are not allowed." msgstr "" -#: paypal/controllers/FrmPayPalLiteAppController.php:731 +#: paypal/controllers/FrmPayPalLiteAppController.php:820 msgid "Payment failed. Please try again." msgstr "" @@ -11085,7 +11230,7 @@ msgstr "" msgid "This is a PayPal order field. It is automatically populated when a payment is processed, and is automatically excluded from the form HTML." msgstr "" -#: paypal/helpers/FrmPayPalLiteAppHelper.php:109 +#: paypal/helpers/FrmPayPalLiteAppHelper.php:130 #: square/helpers/FrmSquareLiteAppHelper.php:82 #: stripe/helpers/FrmStrpLiteAppHelper.php:164 msgid "Upgrade to save on fees." @@ -11132,7 +11277,7 @@ msgid "Enabled capabilities:" msgstr "" #: paypal/helpers/FrmPayPalLiteConnectHelper.php:169 -#: paypal/views/settings/button-settings.php:47 +#: paypal/views/settings/button-settings.php:46 msgid "PayPal Checkout" msgstr "" @@ -11225,43 +11370,43 @@ msgstr "" msgid "No Shipping" msgstr "" -#: paypal/views/settings/button-settings.php:25 +#: paypal/views/settings/button-settings.php:24 msgid "PayPal Button Settings" msgstr "" -#: paypal/views/settings/button-settings.php:32 +#: paypal/views/settings/button-settings.php:31 msgid "Use Defaults" msgstr "" -#: paypal/views/settings/button-settings.php:33 +#: paypal/views/settings/button-settings.php:32 msgid "Gold" msgstr "" -#: paypal/views/settings/button-settings.php:34 +#: paypal/views/settings/button-settings.php:33 msgid "Blue" msgstr "" -#: paypal/views/settings/button-settings.php:35 +#: paypal/views/settings/button-settings.php:34 msgid "Silver" msgstr "" -#: paypal/views/settings/button-settings.php:36 +#: paypal/views/settings/button-settings.php:35 msgid "White" msgstr "" -#: paypal/views/settings/button-settings.php:43 +#: paypal/views/settings/button-settings.php:42 msgid "Label" msgstr "" -#: paypal/views/settings/button-settings.php:48 +#: paypal/views/settings/button-settings.php:47 msgid "Buy Now" msgstr "" -#: paypal/views/settings/button-settings.php:49 +#: paypal/views/settings/button-settings.php:48 msgid "Pay with PayPal" msgstr "" -#: paypal/views/settings/button-settings.php:55 +#: paypal/views/settings/button-settings.php:54 #: js/src/web-components/frm-border-radius-component/frm-border-radius-component.js:234 #: js/formidable-web-components.js:4806 msgid "Border Radius" @@ -11326,11 +11471,11 @@ msgstr "" msgid "Your site is not using SSL. Before using Square to collect payments, you will need to install an SSL certificate on your site." msgstr "" -#: stripe/controllers/FrmStrpLiteActionsController.php:176 +#: stripe/controllers/FrmStrpLiteActionsController.php:177 msgid "There was something wrong with the payment data." msgstr "" -#: stripe/controllers/FrmStrpLiteActionsController.php:597 +#: stripe/controllers/FrmStrpLiteActionsController.php:598 msgid "Stripe payments require HTTPS. Please use a secure URL or contact the site administrator." msgstr "" @@ -11358,11 +11503,11 @@ msgstr "" msgid "Subscription Canceled and Expired" msgstr "" -#: stripe/controllers/FrmTransLiteActionsController.php:163 +#: stripe/controllers/FrmTransLiteActionsController.php:254 msgid "There was an error processing your payment." msgstr "" -#: stripe/controllers/FrmTransLiteActionsController.php:640 +#: stripe/controllers/FrmTransLiteActionsController.php:741 msgid "Payment Method" msgstr "" @@ -11955,6 +12100,7 @@ msgid "Embed %s" msgstr "" #: js/admin/embed.js:97 +#: js/src/color-picker/index.js:47 msgid "Done" msgstr "" @@ -12011,34 +12157,34 @@ msgstr "" msgid "Insert manually" msgstr "" -#: js/admin/embed.js:342 +#: js/admin/embed.js:352 msgid "view" msgstr "" -#: js/admin/embed.js:345 +#: js/admin/embed.js:355 #: js/src/form/formselect.js:23 #: js/formidable_blocks.js:682 msgid "form" msgstr "" -#: js/admin/embed.js:386 +#: js/admin/embed.js:402 msgid "WordPress shortcode" msgstr "" -#: js/admin/embed.js:389 +#: js/admin/embed.js:405 msgid "How to use shortcodes in WordPress" msgstr "" -#: js/admin/embed.js:392 +#: js/admin/embed.js:408 msgid "Use PHP code" msgstr "" #. translators: %s: Example type (ie. WordPress shortcode, API Form script) -#: js/admin/embed.js:474 +#: js/admin/embed.js:495 msgid "Copy %s" msgstr "" -#: js/admin/embed.js:508 +#: js/admin/embed.js:529 msgid "Successfully copied embed example" msgstr "" @@ -12110,7 +12256,7 @@ msgstr "" #: js/formidable_admin.js:2 #: js/frm_testing_mode.js:2 #: js/src/admin/addon-state.js:231 -#: js/formidable_admin.js:1743 +#: js/formidable_admin.js:1996 #: js/frm_testing_mode.js:1739 msgid "Great! Everything's ready to go!" msgstr "" @@ -12118,7 +12264,7 @@ msgstr "" #: js/formidable_admin.js:2 #: js/frm_testing_mode.js:2 #: js/src/admin/addon-state.js:233 -#: js/formidable_admin.js:1745 +#: js/formidable_admin.js:1998 #: js/frm_testing_mode.js:1741 msgid "You just need to refresh the builder so the new field becomes available." msgstr "" @@ -12126,7 +12272,7 @@ msgstr "" #: js/formidable_admin.js:2 #: js/frm_testing_mode.js:2 #: js/src/admin/addon-state.js:201 -#: js/formidable_admin.js:1713 +#: js/formidable_admin.js:1966 #: js/frm_testing_mode.js:1709 msgid "Not Now" msgstr "" @@ -12134,35 +12280,35 @@ msgstr "" #: js/formidable_admin.js:2 #: js/frm_testing_mode.js:2 #: js/src/admin/addon-state.js:175 -#: js/src/admin/admin.js:10217 -#: js/formidable_admin.js:1687 -#: js/formidable_admin.js:13704 +#: js/src/admin/admin.js:10558 +#: js/formidable_admin.js:1940 +#: js/formidable_admin.js:15794 #: js/frm_testing_mode.js:1683 msgid "Save and Reload" msgstr "" #: js/formidable_admin.js:2 #: js/src/admin/settings/validateRangeSettings.js:76 -#: js/formidable_admin.js:2550 +#: js/formidable_admin.js:4271 msgid "Minimum value cannot be greater than or equal to maximum value." msgstr "" #: js/formidable_admin.js:2 #: js/src/admin/settings/validateRangeSettings.js:108 -#: js/formidable_admin.js:2582 +#: js/formidable_admin.js:4303 msgid "Step value must be greater than 0." msgstr "" #: js/formidable_admin.js:2 #: js/src/admin/settings/validateRangeSettings.js:121 -#: js/formidable_admin.js:2595 +#: js/formidable_admin.js:4316 msgid "Step value cannot be greater than the difference between the minimum and maximum values." msgstr "" #: js/formidable_admin.js:2 #: js/frm_testing_mode.js:2 #: js/src/admin/upgrade-popup.js:71 -#: js/formidable_admin.js:2853 +#: js/formidable_admin.js:4574 #: js/frm_testing_mode.js:1872 msgid "This plugin is not activated. Would you like to activate it now?" msgstr "" @@ -12170,7 +12316,7 @@ msgstr "" #: js/formidable_admin.js:2 #: js/frm_testing_mode.js:2 #: js/src/admin/upgrade-popup.js:299 -#: js/formidable_admin.js:3081 +#: js/formidable_admin.js:4802 #: js/frm_testing_mode.js:2100 msgid "require an update" msgstr "" @@ -12178,7 +12324,7 @@ msgstr "" #: js/formidable_admin.js:2 #: js/frm_testing_mode.js:2 #: js/src/admin/upgrade-popup.js:310 -#: js/formidable_admin.js:3092 +#: js/formidable_admin.js:4813 #: js/frm_testing_mode.js:2111 msgid "Update Now" msgstr "" @@ -12205,125 +12351,148 @@ msgstr "" msgid "Sorry, we didn't find any add-ons that match your criteria." msgstr "" -#: js/src/admin/admin.js:1342 -#: js/formidable_admin.js:5167 +#: js/src/admin/admin.js:1404 +#: js/formidable_admin.js:6674 msgid "Field Group" msgstr "" -#: js/src/admin/admin.js:1959 -#: js/formidable_admin.js:5777 +#: js/src/admin/admin.js:2022 +#: js/formidable_admin.js:7292 msgid "Set Row Layout" msgstr "" -#: js/src/admin/admin.js:1966 -#: js/formidable_admin.js:5784 +#: js/src/admin/admin.js:2029 +#: js/formidable_admin.js:7299 msgid "Move Field Group" msgstr "" -#: js/src/admin/admin.js:2862 -#: js/formidable_admin.js:6673 +#: js/src/admin/admin.js:2933 +#: js/formidable_admin.js:8208 msgid "Unable to load field." msgstr "" -#: js/src/admin/admin.js:3106 -#: js/formidable_admin.js:6890 +#: js/src/admin/admin.js:3207 +msgid "The form could not be saved. Please try again." +msgstr "" + +#: js/src/admin/admin.js:3231 +msgid "Some field settings could not be loaded, so the form was not saved. Your changes are still here. Please try saving again." +msgstr "" + +#. translators: %d: The number of fields whose settings could not be loaded. +#: js/src/admin/admin.js:3237 +msgid "Save anyway? Unsaved changes to %d field whose settings could not be loaded will be lost." +msgid_plural "Save anyway? Unsaved changes to %d fields whose settings could not be loaded will be lost." +msgstr[0] "" +msgstr[1] "" + +#: js/src/admin/admin.js:3424 +#: js/formidable_admin.js:8646 msgid "This field type has reached its limit." msgstr "" #. translators: %1$d: Maximum number of fields allowed in a field group. -#: js/src/admin/admin.js:3227 -#: js/formidable_admin.js:7012 +#: js/src/admin/admin.js:3545 +#: js/formidable_admin.js:8767 msgid "You can only have a maximum of %1$d fields in a field group. Delete or move out a field from the group and try again." msgstr "" -#: js/src/admin/admin.js:3567 -#: js/formidable_admin.js:7348 +#: js/src/admin/admin.js:3578 +msgid "This field could not be duplicated." +msgstr "" + +#: js/src/admin/admin.js:3894 +#: js/formidable_admin.js:9110 msgid "Delete Group" msgstr "" -#: js/src/admin/admin.js:3573 -#: js/formidable_admin.js:7354 +#: js/src/admin/admin.js:3900 +#: js/formidable_admin.js:9116 msgid "Duplicate Group" msgstr "" #. translators: %1$s: Number of fields that are selected to be deleted. -#: js/src/admin/admin.js:4999 -#: js/formidable_admin.js:8778 +#: js/src/admin/admin.js:5335 +#: js/formidable_admin.js:10548 msgid "Are you sure you want to delete these %1$s selected field(s)?" msgstr "" -#: js/src/admin/admin.js:5233 -#: js/formidable_admin.js:9009 +#: js/src/admin/admin.js:5560 +#: js/formidable_admin.js:10773 msgid "Custom layout" msgstr "" -#: js/src/admin/admin.js:5256 -#: js/formidable_admin.js:9032 +#: js/src/admin/admin.js:5583 +#: js/formidable_admin.js:10796 msgid "Break into rows" msgstr "" -#: js/src/admin/admin.js:5266 -#: js/formidable_admin.js:9042 +#: js/src/admin/admin.js:5593 +#: js/formidable_admin.js:10806 msgid "Row Layout" msgstr "" -#: js/src/admin/admin.js:5532 -#: js/formidable_admin.js:9308 +#: js/src/admin/admin.js:5859 +#: js/formidable_admin.js:11072 msgid "Enter number of columns for each field" msgstr "" -#: js/src/admin/admin.js:5536 -#: js/formidable_admin.js:9312 +#: js/src/admin/admin.js:5863 +#: js/formidable_admin.js:11076 msgid "Layouts are based on a 12-column grid system" msgstr "" -#: js/src/admin/admin.js:5978 -#: js/formidable_admin.js:9761 +#: js/src/admin/admin.js:6305 +#: js/formidable_admin.js:11518 msgid "Merge into row" msgstr "" #. translators: %s: The detected option value. -#: js/src/admin/admin.js:7884 -#: js/formidable_admin.js:11379 +#: js/src/admin/admin.js:8236 +#: js/formidable_admin.js:13433 msgid "Duplicate option value \"%s\" detected" msgstr "" #. translators: %s: Form Setting section name (ie Form Permissions, Form Scheduling). -#: js/src/admin/admin.js:8688 -#: js/formidable_admin.js:12178 +#: js/src/admin/admin.js:9020 +#: js/formidable_admin.js:14256 msgid "%s are not installed" msgstr "" -#: js/src/admin/admin.js:10198 -#: js/formidable_admin.js:13685 +#: js/src/admin/admin.js:10539 +#: js/formidable_admin.js:15775 msgid "You are changing the field type. Not all field settings will appear as expected until you reload the page. Would you like to reload the page now?" msgstr "" -#: js/src/admin/admin.js:10203 -#: js/formidable_admin.js:13690 +#: js/src/admin/admin.js:10544 +#: js/formidable_admin.js:15780 msgid "Save and Reload?" msgstr "" -#: js/src/admin/admin.js:11118 -#: js/formidable_admin.js:14580 +#: js/src/admin/admin.js:11459 +#: js/formidable_admin.js:16695 msgid "Unable to install template" msgstr "" -#: js/src/admin/admin.js:11472 -#: js/formidable_admin.js:14874 +#: js/src/admin/admin.js:11813 +#: js/formidable_admin.js:17049 msgid "Please enter a valid number." msgstr "" -#: js/src/admin/admin.js:11827 -#: js/formidable_admin.js:15221 +#: js/src/admin/admin.js:12168 +#: js/formidable_admin.js:17404 msgid "Only 10 columns can be selected at a time." msgstr "" -#: js/src/admin/admin.js:12002 -#: js/formidable_admin.js:15396 +#: js/src/admin/admin.js:12343 +#: js/formidable_admin.js:17579 msgid "Thank you for signing up!" msgstr "" +#: js/src/color-picker/index.js:43 +msgid "Clear" +msgstr "" + #. translators: %s is the name of the item #: js/src/common/components/itemselect.js:27 #: js/formidable_blocks.js:597 @@ -12337,10 +12506,12 @@ msgid "Currently, there are no %s" msgstr "" #: js/src/components/tabs/class-tabs-navigator.js:43 +#: js/formidable-settings-components.js:3573 msgid "Filters" msgstr "" #: js/src/components/tabs/class-tabs-navigator.js:43 +#: js/formidable-settings-components.js:3573 msgid "Sections" msgstr "" @@ -12658,3 +12829,50 @@ msgstr "" #: square/js/action.js:161 msgid "Every Two Years" msgstr "" + +#: js/formidable_admin.js:3592 +#: js/formidable_admin.js:3665 +msgid "Page %d" +msgstr "" + +#. translators: %d: Number of fields on the page +#: js/formidable_admin.js:3673 +msgid "%d field" +msgid_plural "%d fields" +msgstr[0] "" +msgstr[1] "" + +#. translators: %s: The search text +#: js/formidable_admin.js:3707 +msgid "No results for “%s”" +msgstr "" + +#: js/formidable_admin.js:3708 +msgid "Try a page, section or field name." +msgstr "" + +#: js/formidable_admin.js:3710 +msgid "No fields yet" +msgstr "" + +#: js/formidable_admin.js:3711 +msgid "Fields you add to this form will show up here, so you can jump to any of them." +msgstr "" + +#: js/formidable_admin.js:3714 +msgid "%d page" +msgid_plural "%d pages" +msgstr[0] "" +msgstr[1] "" + +#: js/formidable_admin.js:3718 +msgid "No pages or fields found." +msgstr "" + +#: js/formidable_admin.js:3722 +msgid "Showing up to %d matching fields." +msgstr "" + +#: js/formidable_admin.js:3723 +msgid "%d matching fields found." +msgstr "" diff --git a/paypal/controllers/FrmPayPalLiteActionsController.php b/paypal/controllers/FrmPayPalLiteActionsController.php index a8ea2e33d3..fdc137ef0a 100644 --- a/paypal/controllers/FrmPayPalLiteActionsController.php +++ b/paypal/controllers/FrmPayPalLiteActionsController.php @@ -401,7 +401,7 @@ private static function trigger_one_time_payment( $atts ) { return 'This order status is not valid for capture.'; } - if ( ! self::validate_order_amount( $order, $atts['amount'] ) ) { + if ( ! self::validate_order_amount( $order, $atts['amount'], self::get_action_currency_code( $atts['action'] ) ) ) { return 'This order amount appears to be tampered with.'; } @@ -683,13 +683,21 @@ private static function validate_order_status( $order ) { /** * @since 6.31 + * @since 7.1 The order currency must match the currency of the payment action. * * @param stdClass $order - * @param string $expected_amount This is as a whole number (in cents for currencies that include decimals). + * @param string $expected_amount This is as a whole number (in cents for currencies that include decimals). + * @param string $expected_currency The currency code set in the payment action. * * @return bool */ - private static function validate_order_amount( $order, $expected_amount ) { + private static function validate_order_amount( $order, $expected_amount, $expected_currency ) { + $order_currency = $order->purchase_units[0]->amount->currency_code ?? ''; + + if ( ! is_string( $order_currency ) || 0 !== strcasecmp( $order_currency, $expected_currency ) ) { + return false; + } + $order_amount = $order->purchase_units[0]->amount->value ?? ''; // The order amount is in dollars, but the expected amount is in cents, so we need to convert. @@ -698,6 +706,19 @@ private static function validate_order_amount( $order, $expected_amount ) { return $order_amount === $expected_amount; } + /** + * Get the currency code for a payment action, in the same format sent to the PayPal SDK. + * + * @since 7.1 + * + * @param WP_Post $action The payment action. + * + * @return string + */ + private static function get_action_currency_code( $action ) { + return strtoupper( $action->post_content['currency'] ?? 'USD' ); + } + /** * Validate that the subscription status indicates it was approved by the payer. * @@ -720,18 +741,26 @@ private static function validate_subscription_status( $subscription ) { * * @since 6.31 * - * @param stdClass $subscription The PayPal subscription object. - * @param string $expected_amount The expected amount as a whole number (in cents for currencies that include decimals). + * @param stdClass $subscription The PayPal subscription object. + * @param string $expected_amount The expected amount as a whole number (in cents for currencies that include decimals). + * @param string $expected_currency The currency code set in the payment action. * * @return bool */ - private static function validate_subscription_amount( $subscription, $expected_amount ) { - $subscription_amount = $subscription->billing_info->last_payment->amount->value ?? $subscription->plan->billing_cycles[0]->pricing_scheme->fixed_price->value ?? ''; + private static function validate_subscription_amount( $subscription, $expected_amount, $expected_currency ) { + $money = $subscription->billing_info->last_payment->amount ?? $subscription->plan->billing_cycles[0]->pricing_scheme->fixed_price ?? null; - if ( ! $subscription_amount ) { + if ( ! is_object( $money ) || empty( $money->value ) ) { return false; } + // PayPal includes the currency with every amount. Check it whenever it is there. + if ( isset( $money->currency_code ) && ( ! is_string( $money->currency_code ) || 0 !== strcasecmp( $money->currency_code, $expected_currency ) ) ) { + return false; + } + + $subscription_amount = $money->value; + $subscription_amount = number_format( (float) $subscription_amount, 2, '.', '' ); $expected_amount = number_format( ( (float) $expected_amount ) / 100, 2, '.', '' ); @@ -772,7 +801,7 @@ private static function get_capture_id_from_response( $response ) { /** * Get the status of the first capture in the order response. * - * @since x.x + * @since 7.1 * * @param object $response The captured PayPal order. * @@ -1135,6 +1164,11 @@ private static function trigger_recurring_payment( $atts ) { return __( 'No PayPal subscription ID found.', 'formidable' ); } + if ( ( new FrmTransLiteSubscription() )->get_one_by( $subscription_id, 'sub_id' ) ) { + // Each PayPal subscription can only pay for one entry. + return 'This subscription has already been used.'; + } + $subscription = FrmPayPalLiteConnectHelper::get_subscription( $subscription_id ); if ( false === $subscription ) { @@ -1145,7 +1179,7 @@ private static function trigger_recurring_payment( $atts ) { return 'This subscription status is not valid.'; } - if ( ! self::validate_subscription_amount( $subscription, $atts['amount'] ) ) { + if ( ! self::validate_subscription_amount( $subscription, $atts['amount'], self::get_action_currency_code( $atts['action'] ) ) ) { return 'This subscription amount appears to be tampered with.'; } @@ -1552,7 +1586,7 @@ function ( $tag, $handle ) use ( $has_break ) { /** * Get the address type of the field mapped as the billing address. * - * @since x.x + * @since 7.1 * * @param int|string $field_id * @@ -1576,7 +1610,7 @@ private static function get_billing_address_type( $field_id ) { * The country name to code map is only needed when a mapped address can sit on an earlier page and * only has the country name left in a hidden input. * - * @since x.x + * @since 7.1 * * @param array $action_settings * diff --git a/paypal/controllers/FrmPayPalLiteAppController.php b/paypal/controllers/FrmPayPalLiteAppController.php index 79688d1dfc..5d8bb35ce4 100644 --- a/paypal/controllers/FrmPayPalLiteAppController.php +++ b/paypal/controllers/FrmPayPalLiteAppController.php @@ -148,7 +148,7 @@ private static function get_pricing_data_from_posted_values( $form_id ) { * Fields inside a repeater are posted under the repeater's section ID, * one array of field values per row, so they are not found at the top level of item_meta. * - * @since x.x + * @since 7.1 * * @param array $fields The form fields, including fields inside repeaters. * @param array $posted_data The posted item_meta values. @@ -178,7 +178,7 @@ private static function get_repeater_rows_from_posted_values( $fields, $posted_d /** * Extract pricing data from one set of field values, either the top level of the form or a single repeater row. * - * @since x.x + * @since 7.1 * * @param array $fields The form fields. * @param array $values The posted values, keyed by field ID. @@ -274,7 +274,7 @@ private static function get_pricing_data_from_values( $fields, $values ) { // ph * more than the product fields, like a calculated tax, gratuity, fee, or discount. * Without line items, no breakdown is sent and the order is created with the amount alone. * - * @since x.x + * @since 7.1 * * @param array $pricing_data The products with prices and quantities. * @param string $amount The order amount, formatted with two decimals. diff --git a/paypal/helpers/FrmPayPalLiteAppHelper.php b/paypal/helpers/FrmPayPalLiteAppHelper.php index 92412bb47d..9be0329fdb 100644 --- a/paypal/helpers/FrmPayPalLiteAppHelper.php +++ b/paypal/helpers/FrmPayPalLiteAppHelper.php @@ -56,7 +56,7 @@ public static function active_mode() { * Apple rejects the merchant session when the name has characters outside ASCII (like the * en dash in "Page – Site" page titles), so the brand name is reduced to plain ASCII, max 64 characters. * - * @since x.x + * @since 7.1 * * @return string */ diff --git a/readme.txt b/readme.txt index 4a0f35905d..b734548871 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: form builder, contact form, contact form plugin, ai form builder, forms Requires at least: 6.3 Tested up to: 7.1 Requires PHP: 7.0 -Stable tag: 7.0 +Stable tag: 7.1 The drag and drop AI form builder for contact forms, multi-step forms, payment forms, quizzes, polls, surveys, calculators, and web apps. @@ -366,6 +366,63 @@ Using our Zapier integration, you can easily connect your website with over 5,00 See all [Formidable Zapier Integrations](https://zapier.com/apps/formidable/integrations). == Changelog == += 7.1 = +* Security: Additional protection has been added to prevent unauthenticated shortcode execution. +* Security: Additional validation has been added to PayPal Commerce orders and subscriptions to help prevent payment tampering. +* New: The form builder now loads long forms with AJAX automatically. The "Load and save form builder page with AJAX" setting has been removed. +* New: Large forms now load previews and field settings in smaller batches. Previews below the screen wait until you scroll near them. +* New: The builder now blocks fields that don't work in a Repeater or Section, such as CAPTCHA, Submit, GDPR, Summary, Page Break, and embedded forms. +* New: The style editor now uses a new color picker. Colors save in the format you pick: RGB, HSL, or Hex. +* New: Style changes in the visual styler now show in the preview right away, without waiting for the server. +* New: Phone fields now have an Autocomplete setting. +* New: A new CAPTCHA service unavailable spam setting saves a submission as a spam entry when the CAPTCHA can't be verified because the service is down or its response can't be read. +* New: Boosts now show in their own section on the Add-Ons page. +* New: Stripe Link elements now share additional form styling to closer match other inputs. +* New: Formidable AI has a new get-ai-status ability so AI tools can see how to turn on access, and a new mark-entry-spam ability. +* New: Forms created with the create-form ability now start with anti-spam on and an email action, like forms made in the builder. +* New: The list-entries ability can now list spam entries, and the update-form ability can turn entry editing on or off. +* New: New frm_no_save_fields, frm_embed_modal_options, frm_field_created, frm_field_updated, frm_field_destroyed, and frm_field_order_updated hooks, plus a new hook that runs before a form is destroyed. +* New: The frm_add_entry_meta filter now receives the original value as a second argument. +* Performance: Moving a field in a large form now saves only the new field order. The builder uses fewer database queries when creating, updating, or reordering many fields. +* Performance: Form dropdowns, the next-field-order lookup, and form field cache clearing now use faster queries. +* Performance: The Stripe Link check no longer runs a query on admin pages. +* Fix: PayPal Commerce now checks the capture status before marking an order as paid. Declined cards no longer create a payment, and pending captures create a pending payment. +* Fix: PayPal Commerce card fields could stay empty on multi-page forms when the script loaded late. +* Fix: PayPal Commerce validation failed for products inside repeaters. +* Fix: PayPal Commerce Apple Pay failed when the page title had a non-ASCII character. +* Fix: PayPal Commerce rejected cards when the Address field was on an earlier page, because the billing country code was missing. +* Fix: Going to the previous page on a multi-page PayPal Commerce form no longer tries to submit the empty card. +* Fix: Square rejected a different card entered after a declined card. +* Fix: Deleting a multisite site now also removes the payments, subscriptions, and gated tokens tables. +* Fix: The Denylist check no longer marks accented text, like "Máster", as spam. +* Fix: The submit button could ignore the first click after fixing a field error. +* Fix: The "Disable submit button styling" toggle always loaded as off. +* Fix: A form lost its styling when the style it used was deleted. It now falls back to the default style. +* Fix: The inline Submit button sat below the inputs when using the default submit HTML. +* Fix: Primary labels did not line up with inputs in themes that set a label line height, like Hello Elementor. +* Fix: Long style names could push the dropdown out of the style card. +* Fix: Test mode controls now look the same in any theme. +* Fix: Admin dropdowns and tooltips broke when another plugin loaded Popper 1. +* Fix: Field Size now shows in the builder preview. +* Fix: Builder previews kept the field label markup and the required indicator when drawn in the browser. +* Fix: Errors with deferred field settings panels in the builder. A dropdown posted the wrong type, and a failed load could silently drop settings on save. +* Fix: Duplicating a field no longer fails on forms saved with the older field placement format. +* Fix: Dragging a Repeater into a Section was allowed in the builder. +* Fix: Form and field keys longer than 60 characters could collide when duplicated. +* Fix: An empty Number Step rendered step="any" instead of step="1" and rejected decimals. +* Fix: Dropdown, radio, and checkbox fields filled by setup hooks could reject valid values. +* Fix: Hex colors like #ffffff caused a PHP deprecation notice when brightness was calculated. +* Fix: Style Reset and the live preview now keep the # on hex colors, and an invalid typed hex no longer becomes #000000. +* Fix: The Entry Key typed on an earlier page was lost on multi-page Entries > Add New forms. +* Fix: Form Templates > Create Template opened a copy of the new template instead of the template itself. +* Fix: Inserting Default HTML in the Message editor's Code tab added escaped markup. +* Fix: JS-built search boxes, like Applications > Search Templates, showed no magnifier icon. +* Fix: Payment status hooks ran on the wrong payment because trigger_payment_status_change ignored the payment passed in. +* Fix: Duplicate-entry errors now show in the error summary when submitting with AJAX. +* Fix: The Square script no longer shows a Missing Dependencies warning in the visual styler. +* Fix: The list-entries, list-forms, list-fields, list-payments, and list-subscriptions abilities now return correct defaults and no longer error on star rating or scale fields, spam entries, or a missing payments table. +* Fix: The create-field and update-field abilities skipped the settings clean-up that the builder runs. + = 7.0 = * Security: Additional permission checks have been added to prevent unauthorized plugin installations. * Security: Download URL validation has been hardened to prevent downloads from untrusted sources. @@ -416,36 +473,8 @@ See all [Formidable Zapier Integrations](https://zapier.com/apps/formidable/inte * Fix: A subscription cancel event for a subscription that isn't on this site no longer causes an error. * Fix: Posted Stripe client secrets are now checked against Stripe before they're trusted. -= 6.35 = -* Security: More strict sanitizing is now applied to entry key values before it gets used in the HTML of a form. -* Security: The value that records who last saved an entry is now always set from the current user, not allowing for any custom values unless importing. -* New: The shortcodes list now offers show options for more types, and long names are truncated so the list stays readable. -* New: The Processor column on the Payments list page can now be sorted. -* New: A message is now shown on the Payments list page after bulk deleting. -* New: The required email input used for Stripe Link payments will now display a required asterisk like other required inputs. -* New: A new frm_builder_after_field_label hook has been added for adding content after a label in the builder. -* New: A new frm_payment_user_id filter has been added for setting which user a payment belongs to. -* Performance: The builder now loads much faster when there are a lot of fields. Fields loaded with AJAX are now loaded in asynchronous batches. -* Performance: The way the denylist is checked has been optimized, so spam checks are much faster when a large amount of text is submitted. -* Performance: Pricing updates for Stripe payments are now debounced, and are skipped on pages with no payment intents. -* Fix: A subscription would not get cancelled after it reached its Recurring Payment Limit. -* Fix: Payment status actions could run twice for the same Stripe Link payment. -* Fix: Multiple customer objects would get created for Stripe Link recurring payments. -* Fix: Subscription plan details would not update after changing the trial period. -* Fix: A Stripe Link redirect would use the URL from Form settings instead of the URL in the confirmation action that ran. -* Fix: Square payments would not correctly follow conditional logic when two Square actions were used. -* Fix: The wrong amount would get used when verifying a buyer with Square. -* Fix: Connecting and disconnecting Square would go by whichever mode was active instead of the mode that was selected. -* Fix: In Pro, the dropdown on a style card would not populate, leaving no way to delete a style or set one as the default. -* Fix: In Pro, a section added after a partially sized field would move into the previous row after a reload. -* Fix: Adding the frm_first layout class would not start a new row for a group. -* Fix: A field id used in a description would not get switched when a form was duplicated or imported. -* Fix: Creating a field with a missing or invalid options value would raise a PHP warning and store null. -* Fix: The Embeds column would only update when a post was inserted, so it went stale when a page was updated or deleted. -* The old hard coded widths for the frm_grid_2 through frm_grid_10 classes have been removed from the generated stylesheets, helping to reduce the file size of styles used on the front end. - [See changelog for all versions](https://raw.githubusercontent.com/Strategy11/formidable-forms/master/changelog.txt) == Upgrade Notice == -= 7.0 = += 7.1 = This version fixes security-related bugs. Upgrade immediately. diff --git a/resources/scss/admin/components/settings/_background-image.scss b/resources/scss/admin/components/settings/_background-image.scss index a4fc195801..9de269f881 100644 --- a/resources/scss/admin/components/settings/_background-image.scss +++ b/resources/scss/admin/components/settings/_background-image.scss @@ -5,12 +5,7 @@ .formidable_page_formidable-styles .frm-right-panel .frm-style-component.frm-background-image-component { > div { - max-width: 216px; - } - - .frm-block-color-picker { - max-width: calc(100% - 44px); - position: relative; + width: 100%; } button.frm_choose_image_box { diff --git a/square/js/frontend.js b/square/js/frontend.js index a0413783a5..1c319f44bd 100644 --- a/square/js/frontend.js +++ b/square/js/frontend.js @@ -246,11 +246,15 @@ } } + /** + * @param {Object} paymentMethod The Square card payment method. + * @return {Promise} The Square token result, with the token and the card details. + */ async function tokenize( paymentMethod ) { const tokenResult = await paymentMethod.tokenize(); if ( tokenResult.status === 'OK' ) { - return tokenResult.token; + return tokenResult; } let errorMessage = `Tokenization failed with status: ${ tokenResult.status }`; @@ -261,8 +265,33 @@ throw new Error( errorMessage ); } + /** + * Identify the card used for a token, so a buyer verification is only reused for the same card. + * Square ties a verification token to the card, and rejects it for a different card with PAYMENT_SOURCE_MISMATCH. + * + * @since 7.1 + * + * @param {Object} tokenResult The Square token result. + * @return {string} A key for the card, or the token itself when the card details are missing so nothing is reused. + */ + function getCardKey( tokenResult ) { + const card = tokenResult.details?.card; + + if ( ! card || ! card.last4 ) { + return tokenResult.token; + } + + return [ card.brand, card.last4, card.expMonth, card.expYear ].join( '|' ); + } + // Required in SCA Mandated Regions: Learn more at https://developer.squareup.com/docs/sca-overview - async function verifyBuyer( payments, token ) { + /** + * @param {Object} payments The Square payments object. + * @param {Object} tokenResult The Square token result. + * @return {Promise} The verification token. + */ + async function verifyBuyer( payments, tokenResult ) { + const { token } = tokenResult; const formData = new FormData( thisForm ); formData.append( 'action', 'frm_verify_buyer' ); formData.append( 'nonce', frmSquareVars.nonce ); @@ -286,15 +315,17 @@ throw new Error( verificationData.data ); } - if ( buyerTokens[ verificationData.data.hash ] ) { - // Avoid a second verify buyer request if the verification data has not changed. - return buyerTokens[ verificationData.data.hash ]; + const cacheKey = `${ verificationData.data.hash }|${ getCardKey( tokenResult ) }`; + + if ( buyerTokens[ cacheKey ] ) { + // Avoid a second verify buyer request if the card and the verification data have not changed. + return buyerTokens[ cacheKey ]; } const { verificationDetails } = verificationData.data; const verificationResults = await payments.verifyBuyer( token, verificationDetails ); - buyerTokens[ verificationData.data.hash ] = verificationResults.token; + buyerTokens[ cacheKey ] = verificationResults.token; return verificationResults.token; } @@ -405,9 +436,9 @@ disableSubmit( thisForm ); } - const token = await tokenize( card ); - const verificationToken = await verifyBuyer( payments, token ); - await createPayment( event, token, verificationToken ); + const tokenResult = await tokenize( card ); + const verificationToken = await verifyBuyer( payments, tokenResult ); + await createPayment( event, tokenResult.token, verificationToken ); // Decrement running counter after successful payment running--; diff --git a/stripe/controllers/FrmTransLiteActionsController.php b/stripe/controllers/FrmTransLiteActionsController.php index 7d55d73e8b..3c52a6cffa 100755 --- a/stripe/controllers/FrmTransLiteActionsController.php +++ b/stripe/controllers/FrmTransLiteActionsController.php @@ -92,14 +92,80 @@ public static function trigger_action( $action, $entry, $form ) { $gateway = self::get_gateway_for_action( $action ); - if ( ! $gateway ) { + if ( $gateway ) { + self::trigger_gateway_for_action( $action, $entry, $form, $gateway ); + } + } + + /** + * Process a payment the Payments submodule would skip. + * + * When the Stripe add-on is active, its Payments submodule handles payment actions instead of Lite. + * It only finds the gateway through a Gateway field, and returns without charging when a form has none. + * That covers Square, PayPal and Stripe forms built while the add-on was inactive, and forms created + * through MCP or imported. The entry would be saved and the success message shown with no payment. + * Lite processes only those submissions, so the submodule and Lite never handle the same payment. + * If the submodule starts falling back to the action's gateway, remove this or payments run twice. + * + * @since 7.1 + * + * @param WP_Post $action The payment action. + * @param object $entry The entry being submitted. + * @param object $form The form being submitted. + * + * @return void + */ + public static function trigger_action_without_gateway_field( $action, $entry, $form ) { + if ( self::submodule_finds_gateway_field( $action ) ) { + return; + } + + $gateway = self::get_gateway_for_action( $action ); + + if ( is_array( $gateway ) ) { + $gateway = reset( $gateway ); + } + + if ( ! $gateway || ! FrmTransLiteAppHelper::get_setting_for_gateway( $gateway, 'class' ) ) { return; } + self::prepare_description( $action, compact( 'entry', 'form' ) ); + + $response = self::trigger_gateway_for_action( $action, $entry, $form, $gateway ); + + if ( ! $response || ! $response['success'] || empty( $response['run_triggers'] ) ) { + return; + } + + // The add-on's Stripe gateway expects its caller to run the triggers for a completed charge. + // The submodule's version also sets the After Payment fields, which Pro leaves to it for Stripe payments. + $status = 'complete'; + + if ( is_callable( array( 'FrmTransActionsController', 'trigger_payment_status_change' ) ) ) { + FrmTransActionsController::trigger_payment_status_change( compact( 'status', 'action', 'entry' ) ); + } else { + self::trigger_payment_status_change( compact( 'status', 'entry' ) ); + } + } + + /** + * Send a payment action to its gateway and show the error message when the payment fails. + * + * @since 7.1 + * + * @param WP_Post $action The payment action. + * @param object $entry The entry being submitted. + * @param object $form The form being submitted. + * @param string $gateway The gateway key, like stripe, square or paypal. + * + * @return array|false The gateway response, or false when the gateway has no controller. + */ + private static function trigger_gateway_for_action( $action, $entry, $form, $gateway ) { $class_name = FrmTransLiteAppHelper::get_setting_for_gateway( $gateway, 'class' ); if ( ! $class_name ) { - return; + return false; } $class_name = 'Frm' . $class_name . 'ActionsController'; @@ -109,6 +175,31 @@ public static function trigger_action( $action, $entry, $form ) { // The payment failed self::show_failed_message( compact( 'action', 'entry', 'form', 'response' ) ); } + + return $response; + } + + /** + * Check if the Payments submodule can find a gateway for this submission. + * This matches FrmTransActionsController::get_gateway_for_entry() in the submodule. + * + * @since 7.1 + * + * @param WP_Post $action The payment action. + * + * @return bool + */ + private static function submodule_finds_gateway_field( $action ) { + if ( FrmAppHelper::get_post_param( 'frm_gateway', '', 'absint' ) ) { + return true; + } + + return (bool) FrmField::getAll( + array( + 'fi.form_id' => $action->menu_order, + 'type' => 'gateway', + ) + ); } /** @@ -223,9 +314,18 @@ public static function trigger_payment_status_change( $atts ) { 'payment' => $atts['payment'] ?? null, ); + $frm_payment = new FrmTransLitePayment(); + if ( ! isset( $atts['payment'] ) ) { - $frm_payment = new FrmTransLitePayment(); $atts['payment'] = $frm_payment->get_one_by( $entry_id, 'item_id' ); + } elseif ( ! empty( $atts['payment']->id ) ) { + // Callers pass the payment as it was loaded before they saved the new status. + // Load it again so the hooks and payment actions see the current status. + $current_payment = $frm_payment->get_one( $atts['payment']->id ); + + if ( $current_payment ) { + $atts['payment'] = $current_payment; + } } if ( ! isset( $atts['trigger'] ) ) { diff --git a/stripe/controllers/FrmTransLiteHooksController.php b/stripe/controllers/FrmTransLiteHooksController.php index 0865d52f4b..25336a2ead 100755 --- a/stripe/controllers/FrmTransLiteHooksController.php +++ b/stripe/controllers/FrmTransLiteHooksController.php @@ -11,6 +11,8 @@ class FrmTransLiteHooksController { public static function load_hooks() { // Exit early, let the Payments submodule handle everything. if ( class_exists( 'FrmTransHooksController', false ) ) { + // Except forms without a Gateway field, which the submodule skips without charging. + add_action( 'frm_trigger_payment_action', 'FrmTransLiteActionsController::trigger_action_without_gateway_field', 10, 3 ); return; } diff --git a/stripe/js/frmstrp.js b/stripe/js/frmstrp.js index f35cde829c..0b1f753262 100644 --- a/stripe/js/frmstrp.js +++ b/stripe/js/frmstrp.js @@ -723,7 +723,7 @@ /** * Normalize numeric and percentage alpha values to the range Stripe colors need. * - * @since x.x + * @since 7.1 * * @param {string} rawAlpha CSS alpha component. * @return {number} Alpha between zero and one, defaulting to one. @@ -737,7 +737,7 @@ /** * Normalize RGB percentages and sRGB values to byte channels. * - * @since x.x + * @since 7.1 * * @param {Array} channels CSS color components. * @param {boolean} isSRGB Whether numeric channels use the zero to one scale. @@ -755,7 +755,7 @@ * Get the RGB channels of the first solid background behind an element. * A partly transparent ancestor is skipped, so the result is approximate there. * - * @since x.x + * @since 7.1 * * @param {Element} element * @return {Array} RGB channels, white when no ancestor has a solid background. diff --git a/stubs.php b/stubs.php index 889f6eac8a..137a9897a5 100644 --- a/stubs.php +++ b/stubs.php @@ -564,6 +564,15 @@ class FrmTransListsController { public static function payment_columns( $columns = array() ) { } } + class FrmTransActionsController { + /** + * @param array $atts + * + * @return void + */ + public static function trigger_payment_status_change( $atts ) { + } + } class FrmProSettingsController { /** * @param string $count diff --git a/tests/analysis/requests-response.php b/tests/analysis/requests-response.php index e4d926238e..7b42db5efe 100644 --- a/tests/analysis/requests-response.php +++ b/tests/analysis/requests-response.php @@ -5,7 +5,7 @@ * * @package Formidable * - * @since x.x + * @since 7.1 */ declare(strict_types=1); diff --git a/tests/analysis/wp-unit-test-case.php b/tests/analysis/wp-unit-test-case.php index 6d5b947007..c9574b866a 100644 --- a/tests/analysis/wp-unit-test-case.php +++ b/tests/analysis/wp-unit-test-case.php @@ -5,7 +5,7 @@ * * @package Formidable * - * @since x.x + * @since 7.1 */ if ( ! class_exists( 'WP_UnitTestCase' ) ) { diff --git a/tests/cypress/e2e/Form Templates/FormTemplates.cy.js b/tests/cypress/e2e/Form Templates/FormTemplates.cy.js index 47b5abf6e9..e87c5931ea 100644 --- a/tests/cypress/e2e/Form Templates/FormTemplates.cy.js +++ b/tests/cypress/e2e/Form Templates/FormTemplates.cy.js @@ -398,10 +398,13 @@ describe( 'Form Templates page', () => { cy.get( ':nth-child(3) > label' ).should( 'contain', 'Description' ); cy.get( '#frm_create_template_description' ).type( 'Test description' ); cy.get( '#frm-create-template-button' ).should( 'be.visible' ).and( 'contain', 'Create Template' ).click(); + // Create Template opens the new template in the builder. Templates are not listed with + // the forms, so closing the builder must not show a "Form Template Test Template" form. cy.get( "a[aria-label='Close'] svg", { timeout: 10000 } ) .should( 'be.visible' ) .click(); - cy.get( '.row-title' ).should( 'contain', 'Form Template Test Template' ); + cy.get( '.row-title' ).should( 'contain', 'Form Template Test' ); + cy.get( '.row-title' ).should( 'not.contain', 'Form Template Test Template' ); cy.get( '#toplevel_page_formidable > .wp-submenu > :nth-child(8) > a' ).should( 'contain', 'Form Templates' ).click(); cy.get( '[data-category="custom"]' ).click(); diff --git a/tests/js/inlineSubmitAlignment.test.mjs b/tests/js/inlineSubmitAlignment.test.mjs index c542b265ad..c0305e2509 100644 --- a/tests/js/inlineSubmitAlignment.test.mjs +++ b/tests/js/inlineSubmitAlignment.test.mjs @@ -7,7 +7,7 @@ import { parseSync } from '@babel/core'; const source = readFileSync( new URL( '../../js/formidable.js', import.meta.url ), 'utf8' ); const ast = parseSync( source, { configFile: false, babelrc: false } ); const frontend = ast.program.body.find( node => node.id?.name === 'frmFrontFormJS' ); -const names = [ 'initInlineSubmitAlignment', 'alignInlineSubmitButtons', 'alignInlineSubmitButton', 'getInlineSubmitRowInput' ]; +const names = [ 'initInlineSubmitAlignment', 'isInlineFormMutation', 'alignInlineSubmitButtons', 'alignInlineSubmitButton', 'getInlineSubmitRowInput' ]; const functions = names.map( name => { const declaration = frontend.body.body.find( node => node.id?.name === name ); assert.ok( declaration, `${ name } must exist in the frontend` ); @@ -15,6 +15,29 @@ const functions = names.map( name => { } ).join( '\n' ); const property = '--frm-inline-submit-offset'; +/** + * Build a MutationRecord like object. + * + * @param {Object} options + * @param {boolean} options.inForm Whether the changed parent is inside an inline form. + * @param {Array} options.addedNodes The inserted nodes. + * @param {Array} options.removedNodes The removed nodes. + * @return {Object} The mutation record. + */ +function mutation( { inForm = false, addedNodes = [], removedNodes = [] } = {} ) { + return { target: { closest: () => inForm ? {} : null }, addedNodes, removedNodes }; +} + +/** + * Build an element node for a mutation record. + * + * @param {boolean} hasInlineForm Whether the node is or contains an inline form. + * @return {Object} The node. + */ +function elementNode( hasInlineForm ) { + return { nodeType: 1, matches: () => hasInlineForm, querySelector: () => null }; +} + /** * Create independently measurable elements and load the production alignment functions. * @@ -43,13 +66,18 @@ function setup() { const listeners = new Map(); const observed = new Set(); const state = { styles, input, field, button, submit, frames, listeners, observed, fields: [ field, submit ] }; + state.queries = 0; const document = { body: {}, - querySelectorAll: selector => selector.includes( '> *' ) ? state.fields : [ submit ] + querySelectorAll: selector => { + state.queries++; + return selector.includes( '> *' ) ? state.fields : [ submit ]; + } }; const functionsToLoad = `${ functions }\n({ initInlineSubmitAlignment, alignInlineSubmitButton, getInlineSubmitRowInput })`; Object.assign( state, runInNewContext( functionsToLoad, { document, + Node: { ELEMENT_NODE: 1 }, window: { requestAnimationFrame: callback => frames.push( callback ), addEventListener: ( event, callback ) => listeners.set( event, callback ) @@ -122,7 +150,7 @@ test( 'resizing and DOM changes share a single animation frame', () => { state.initInlineSubmitAlignment(); state.listeners.get( 'resize' )(); state.resize(); - state.mutate(); + state.mutate( [ mutation( { inForm: true } ) ] ); assert.equal( state.frames.length, 1 ); state.frames.shift()(); assert.equal( state.styles.get( property ), '-4px' ); @@ -135,11 +163,33 @@ test( 'new forms are observed and detached fields are released after AJAX replac const inserted = { isConnected: true }; state.field.isConnected = false; state.fields = [ inserted, state.submit ]; - state.mutate(); + state.mutate( [ mutation( { addedNodes: [ elementNode( true ) ], removedNodes: [ elementNode( true ) ] } ) ] ); assert.equal( state.observed.has( state.field ), false ); assert.equal( state.observed.has( inserted ), true ); } ); +test( 'DOM changes outside inline forms skip the field lookup', () => { + const state = setup(); + state.initInlineSubmitAlignment(); + state.frames.length = 0; + const queries = state.queries; + state.mutate( [ + mutation( { addedNodes: [ { nodeType: 3 }, elementNode( false ) ], removedNodes: [ elementNode( false ) ] } ), + mutation() + ] ); + assert.equal( state.queries, queries ); + assert.equal( state.frames.length, 0 ); +} ); + +test( 'removing an inline form releases its fields', () => { + const state = setup(); + state.initInlineSubmitAlignment(); + state.field.isConnected = false; + state.fields = []; + state.mutate( [ mutation( { removedNodes: [ elementNode( false ) ] } ) ] ); + assert.equal( state.observed.has( state.field ), false ); +} ); + test( 'loading indicators do not move the buttons away from the input', () => { const state = setup(); state.submit.children.unshift( { matches: () => false, getClientRects: () => [ {} ], getBoundingClientRect: () => ( { top: 100 } ) } ); diff --git a/tests/js/squareVerifyBuyer.test.mjs b/tests/js/squareVerifyBuyer.test.mjs new file mode 100644 index 0000000000..2536bd5085 --- /dev/null +++ b/tests/js/squareVerifyBuyer.test.mjs @@ -0,0 +1,85 @@ +import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; +import { test } from 'node:test'; +import { runInNewContext } from 'node:vm'; +import { parseSync } from '@babel/core'; + +const source = readFileSync( new URL( '../../square/js/frontend.js', import.meta.url ), 'utf8' ); +const ast = parseSync( source, { configFile: false, babelrc: false } ); +const wrapper = ast.program.body[ 0 ].expression.callee; +const names = [ 'getCardKey', 'verifyBuyer' ]; +const functions = names.map( name => { + const declaration = wrapper.body.body.find( node => node.id?.name === name ); + assert.ok( declaration, `${ name } must exist in the Square frontend` ); + return source.slice( declaration.start, declaration.end ); +} ).join( '\n' ); + +/** + * Build a Square token result for a card. + * + * @param {string} token The single use card token. + * @param {string} last4 The last four digits of the card. + * @return {Object} The token result. + */ +function tokenResult( token, last4 ) { + return { + status: 'OK', + token, + details: { card: { brand: 'VISA', last4, expMonth: 12, expYear: 2030 } } + }; +} + +/** + * Load the production functions with a mocked AJAX response and Square SDK. + * + * @return {Object} The loaded functions and the verifyBuyer calls made to the SDK. + */ +function setup() { + const sdkCalls = []; + const payments = { + verifyBuyer: async token => { + sdkCalls.push( token ); + return { token: `verification-for-${ token }` }; + } + }; + const context = { + thisForm: {}, + buyerTokens: {}, + frmSquareVars: { nonce: 'nonce', ajax: '/wp-admin/admin-ajax.php' }, + FormData: class { + append() {} + delete() {} + }, + fetch: async () => ( { + ok: true, + json: async () => ( { success: true, data: { hash: 'same-amount-and-billing', verificationDetails: {} } } ) + } ) + }; + const functionsToLoad = `${ functions }\n({ getCardKey, verifyBuyer })`; + const loaded = runInNewContext( functionsToLoad, context ); + return { ...loaded, payments, sdkCalls }; +} + +test( 'the same card reuses its buyer verification', async () => { + const state = setup(); + const first = await state.verifyBuyer( state.payments, tokenResult( 'token-1', '1111' ) ); + const second = await state.verifyBuyer( state.payments, tokenResult( 'token-2', '1111' ) ); + assert.equal( second, first ); + assert.equal( state.sdkCalls.length, 1 ); +} ); + +test( 'a different card after a decline is verified again', async () => { + const state = setup(); + await state.verifyBuyer( state.payments, tokenResult( 'declined-card-token', '0002' ) ); + const retry = await state.verifyBuyer( state.payments, tokenResult( 'good-card-token', '1111' ) ); + assert.equal( retry, 'verification-for-good-card-token' ); + assert.deepEqual( state.sdkCalls, [ 'declined-card-token', 'good-card-token' ] ); +} ); + +test( 'a token without card details is never reused', async () => { + const state = setup(); + await state.verifyBuyer( state.payments, { status: 'OK', token: 'token-1' } ); + await state.verifyBuyer( state.payments, { status: 'OK', token: 'token-2' } ); + assert.equal( state.sdkCalls.length, 2 ); + assert.equal( state.getCardKey( { token: 'token-3', details: {} } ), 'token-3' ); +} ); diff --git a/tests/js/style-live-preview.test.mjs b/tests/js/style-live-preview.test.mjs index e9d0752792..68492414c8 100644 --- a/tests/js/style-live-preview.test.mjs +++ b/tests/js/style-live-preview.test.mjs @@ -21,7 +21,7 @@ const functions = names.map( name => { /** * Load the preview decisions with independent settings for each test. * - * @since x.x + * @since 7.1 * * @return {Object} The production decision functions. */ diff --git a/tests/phpunit/emails/test_FrmEmail.php b/tests/phpunit/emails/test_FrmEmail.php index 8983d0d094..18e81e5a56 100644 --- a/tests/phpunit/emails/test_FrmEmail.php +++ b/tests/phpunit/emails/test_FrmEmail.php @@ -745,4 +745,31 @@ private function check_private_properties( $settings, $setting_name, $property = $this->assertSame( $expected, $actual ); } } + + /** + * Square brackets in a field value show as typed in a plain text email. + * + * @see FrmEmail::set_subject + * @see FrmEmail::set_message + */ + public function test_plain_text_email_shows_brackets_in_field_values() { + $entry_clone = clone $this->entry; + $name_id = FrmField::get_id_by_key( $this->name_field_key ); + $entry_clone->metas[ $name_id ] = 'Item [A]'; + + $this->email_action->post_content['email_to'] = 'jw@test.com'; + $this->email_action->post_content['cc'] = ''; + $this->email_action->post_content['bcc'] = ''; + $this->email_action->post_content['email_subject'] = 'Order [' . $name_id . ']'; + $this->email_action->post_content['email_message'] = 'Product: [' . $name_id . ']'; + $this->email_action->post_content['plain_text'] = true; + + FrmNotification::trigger_email( $this->email_action, $entry_clone, $this->contact_form ); + + $mock_email = end( $GLOBALS['phpmailer']->mock_sent ); + + $this->assertStringContainsString( 'Order Item [A]', $mock_email['subject'], 'The subject should show the brackets as typed.' ); + $this->assertStringContainsString( 'Product: Item [A]', $mock_email['body'], 'The plain text message should show the brackets as typed.' ); + $this->assertStringNotContainsString( '[', $mock_email['body'], 'The plain text message should not include an encoded bracket.' ); + } } diff --git a/tests/phpunit/entries/test_FrmEntriesController.php b/tests/phpunit/entries/test_FrmEntriesController.php index aa1011b373..c3bf7a1aa3 100644 --- a/tests/phpunit/entries/test_FrmEntriesController.php +++ b/tests/phpunit/entries/test_FrmEntriesController.php @@ -55,8 +55,15 @@ private function create_post_entry( $form, $entry_key ) { $_POST = $this->factory->field->generate_entry_array( $form ); $_POST['item_key'] = $entry_key; $_POST['action'] = 'create'; - $_POST['post_id'] = $new_post->ID; + + // Link the post in code, the way a post action does. + $add_post_id = function ( $values ) use ( $new_post ) { + $values['post_id'] = $new_post->ID; + return $values; + }; + add_filter( 'frm_pre_create_entry', $add_post_id ); FrmEntriesController::process_entry(); + remove_filter( 'frm_pre_create_entry', $add_post_id ); $entry = FrmEntry::getOne( $entry_key ); $this->assertNotEmpty( $entry ); diff --git a/tests/phpunit/fields/test_FrmCaptchaSpam.php b/tests/phpunit/fields/test_FrmCaptchaSpam.php index 672ef742c8..9eae361951 100644 --- a/tests/phpunit/fields/test_FrmCaptchaSpam.php +++ b/tests/phpunit/fields/test_FrmCaptchaSpam.php @@ -95,6 +95,20 @@ private function validate_captcha( $extra = array() ) { return $errors; } + /** + * Create an entry for the submission validated in this request. + * + * @return int + */ + private function create_entry() { + return (int) FrmEntry::create( + array( + 'form_id' => $this->captcha->form_id, + 'item_meta' => array(), + ) + ); + } + public function test_captcha_errors_block_by_default() { $this->assertArrayHasKey( 'field' . $this->captcha->id, $this->validate_captcha(), 'CAPTCHA failures should block by default.' ); $this->assertSame( '', FrmSpamEntriesHelper::get_flagged_source( array( 'form_id' => $this->captcha->form_id ) ), 'Blocked submissions should not be saved.' ); @@ -141,10 +155,14 @@ public function test_missing_token_can_be_saved_as_spam() { ); } - public function test_transport_error_can_be_saved_as_spam() { - FrmAppHelper::get_settings()->spam_handling['captcha'] = FrmSpamEntriesHelper::SAVE; - $this->response = new WP_Error( 'http_request_failed', 'Verification service unavailable.' ); - $this->assertSame( array(), $this->validate_captcha(), 'Transport failures should follow the save setting.' ); + public function test_transport_error_is_saved_as_spam_by_default() { + $this->response = new WP_Error( 'http_request_failed', 'Verification service unavailable.' ); + $this->assertSame( array(), $this->validate_captcha(), 'An unreachable CAPTCHA service should not block the submission by default.' ); + $this->assertSame( + 'captcha_unavailable', + FrmSpamEntriesHelper::get_flagged_source( array( 'form_id' => $this->captcha->form_id ) ), + 'The submission should be flagged with the unavailable service source.' + ); $this->assertSame( 'Verification service unavailable.', FrmSpamEntriesHelper::get_flagged_reason( array( 'form_id' => $this->captcha->form_id ) ), @@ -152,6 +170,55 @@ public function test_transport_error_can_be_saved_as_spam() { ); } + public function test_unreadable_response_is_saved_as_spam_by_default() { + $this->response = array( 'body' => 'Service unavailable' ); + $this->assertSame( array(), $this->validate_captcha(), 'An unreadable CAPTCHA response should not block the submission by default.' ); + $this->assertSame( + 'captcha_unavailable', + FrmSpamEntriesHelper::get_flagged_source( array( 'form_id' => $this->captcha->form_id ) ), + 'The submission should be flagged with the unavailable service source.' + ); + $this->assertStringContainsString( + 'could not be read', + FrmSpamEntriesHelper::get_flagged_reason( array( 'form_id' => $this->captcha->form_id ) ), + 'The reason should be recorded.' + ); + } + + public function test_response_without_success_key_is_saved_as_spam_by_default() { + $this->response = array( 'body' => wp_json_encode( array( 'hostname' => 'example.com' ) ) ); + $this->assertSame( array(), $this->validate_captcha(), 'A response without a success key should not pass or block by default.' ); + $this->assertSame( + 'captcha_unavailable', + FrmSpamEntriesHelper::get_flagged_source( array( 'form_id' => $this->captcha->form_id ) ), + 'A response without a success key should never be treated as a pass.' + ); + } + + public function test_unavailable_service_can_be_blocked() { + FrmAppHelper::get_settings()->spam_handling['captcha_unavailable'] = FrmSpamEntriesHelper::BLOCK; + $this->response = array( 'body' => 'Service unavailable' ); + $this->assertArrayHasKey( 'field' . $this->captcha->id, $this->validate_captcha(), 'The block setting should reject the submission.' ); + $this->assertSame( '', FrmSpamEntriesHelper::get_flagged_source( array( 'form_id' => $this->captcha->form_id ) ), 'A blocked submission should not be flagged.' ); + } + + public function test_failed_captcha_still_follows_captcha_errors_setting() { + FrmAppHelper::get_settings()->spam_handling['captcha_unavailable'] = FrmSpamEntriesHelper::SAVE; + $this->assertArrayHasKey( 'field' . $this->captcha->id, $this->validate_captcha(), 'A CAPTCHA the visitor failed should still block by default.' ); + } + + public function test_saved_unavailable_service_entry_shows_its_reason() { + $this->response = new WP_Error( 'http_request_failed', 'Verification service unavailable.' ); + $this->assertSame( array(), $this->validate_captcha(), 'The submission should be allowed.' ); + $entry = FrmEntry::getOne( $this->create_entry() ); + $this->assertSame( FrmSpamEntriesHelper::SPAM_ENTRY_STATUS, (int) $entry->is_draft, 'The entry should have spam status.' ); + $this->assertSame( + 'CAPTCHA service unavailable: Verification service unavailable.', + FrmSpamEntriesHelper::get_source_label( $entry ), + 'The label should name the source and the error.' + ); + } + public function test_low_score_is_saved_with_threshold_details() { $settings = FrmAppHelper::get_settings(); $settings->spam_handling['captcha'] = FrmSpamEntriesHelper::SAVE; @@ -171,6 +238,40 @@ public function test_low_score_is_saved_with_threshold_details() { FrmSpamEntriesHelper::get_flagged_reason( array( 'form_id' => $this->captcha->form_id ) ), 'The score and threshold should be recorded.' ); + $this->assertSame( + 'captcha', + FrmSpamEntriesHelper::get_flagged_source( array( 'form_id' => $this->captcha->form_id ) ), + 'A low score is a failed CAPTCHA, not an unavailable service.' + ); + + $entry = FrmEntry::getOne( $this->create_entry() ); + $this->assertSame( FrmSpamEntriesHelper::SPAM_ENTRY_STATUS, (int) $entry->is_draft, 'The low score entry should have spam status.' ); + $this->assertSame( + 'CAPTCHA errors: The reCAPTCHA v3 score of 0.1 is below the threshold of 0.5.', + FrmSpamEntriesHelper::get_source_label( $entry ), + 'The stored spam reason should show the score and threshold.' + ); + + ob_start(); + + try { + FrmEntriesController::entry_sidebar( $entry ); + $html = ob_get_contents(); + } finally { + ob_end_clean(); + } + $this->assertStringContainsString( 'The reCAPTCHA v3 score of 0.1 is below the threshold of 0.5.', $html, 'The entry sidebar should show the spam reason.' ); + $this->assertMatchesRegularExpression( '/0\.1<\/b>/', $html, 'The entry sidebar should show the stored CAPTCHA score.' ); + } + + public function test_v3_success_without_score_passes() { + $settings = FrmAppHelper::get_settings(); + $settings->spam_handling['captcha'] = FrmSpamEntriesHelper::SAVE; + $settings->re_type = 'v3'; + $settings->re_threshold = '0.5'; + $this->response = array( 'body' => wp_json_encode( array( 'success' => true ) ) ); + $this->assertSame( array(), $this->validate_captcha(), 'A successful v3 response without a score should pass.' ); + $this->assertSame( '', FrmSpamEntriesHelper::get_flagged_source( array( 'form_id' => $this->captcha->form_id ) ), 'A response without a score should not be spam.' ); } public function test_entry_updates_keep_captcha_errors() { diff --git a/tests/phpunit/misc/test_FrmAppController.php b/tests/phpunit/misc/test_FrmAppController.php index 3ab621d871..0644f7ac64 100644 --- a/tests/phpunit/misc/test_FrmAppController.php +++ b/tests/phpunit/misc/test_FrmAppController.php @@ -123,7 +123,7 @@ public function test_compare_for_update() { 'expected' => true, ), array( - 'version' => '7.0', // This version should be later than the current version (Bump this to 8 when v7.0 is released). + 'version' => '8.0', // This version should be later than the current version (Bump this to 9 when v8.0 is released). 'db' => FrmAppHelper::$db_version + 1, 'expected' => false, ), diff --git a/tests/phpunit/paypal/test_FrmPayPalLiteActionsController.php b/tests/phpunit/paypal/test_FrmPayPalLiteActionsController.php index a3532799a2..d2e0769a37 100644 --- a/tests/phpunit/paypal/test_FrmPayPalLiteActionsController.php +++ b/tests/phpunit/paypal/test_FrmPayPalLiteActionsController.php @@ -77,7 +77,12 @@ public function mock_connect( $response, $args ) { 'id' => 'order_fixture', 'status' => 'get_order' === $action ? 'APPROVED' : 'COMPLETED', 'purchase_units' => array( - (object) array( 'amount' => (object) array( 'value' => '10.00' ) ), + (object) array( + 'amount' => (object) array( + 'value' => '10.00', + 'currency_code' => 'USD', + ), + ), ), ); diff --git a/tests/phpunit/stripe/test_FrmTransLiteActionsController.php b/tests/phpunit/stripe/test_FrmTransLiteActionsController.php index b61846791b..28925d2969 100644 --- a/tests/phpunit/stripe/test_FrmTransLiteActionsController.php +++ b/tests/phpunit/stripe/test_FrmTransLiteActionsController.php @@ -90,6 +90,40 @@ public function test_trigger_payment_status_change_keeps_passed_payment() { $this->assertEquals( $entry['id'], $atts['entry_id'] ); } + /** + * Stripe loads a payment, saves the new status, then passes the copy it loaded first. + * The payment actions must see the saved status, or a pending copy stops them from running. + * + * @covers FrmTransLiteActionsController::trigger_payment_status_change + */ + public function test_trigger_payment_status_change_uses_the_saved_status() { + $entry = $this->create_entry_with_payments( array( 'pending' ) ); + $payment_id = $entry['payment_ids'][0]; + $frm_payment = new FrmTransLitePayment(); + $stale = $frm_payment->get_one( $payment_id ); + + $frm_payment->update( $payment_id, array( 'status' => 'complete' ) ); + + $received = null; + $callback = function ( $hook_atts ) use ( &$received ) { + $received = $hook_atts; + }; + + add_action( 'frm_payment_status_complete', $callback ); + FrmTransLiteActionsController::trigger_payment_status_change( + array( + 'status' => 'complete', + 'payment' => $stale, + ) + ); + remove_action( 'frm_payment_status_complete', $callback ); + + $this->assertSame( 'pending', $stale->status, 'The test should pass a copy loaded before the update.' ); + $this->assertNotNull( $received ); + $this->assertEquals( $payment_id, $received['payment']->id, 'The passed payment should still be used.' ); + $this->assertSame( 'complete', $received['payment']->status, 'The payment should have the saved status, so payment actions run.' ); + } + /** * @covers FrmTransLiteActionsController::trigger_payment_status_change */ @@ -158,6 +192,102 @@ private function create_entry_with_payments( $statuses ) { ); } + /** + * With the Stripe add-on active, a form without a Gateway field would be saved without a payment. + * Lite processes it with the gateway set in the action. + * + * @covers FrmTransLiteActionsController::trigger_action_without_gateway_field + */ + public function test_trigger_action_without_gateway_field_uses_the_action_gateway() { + $form_id = $this->factory->form->create(); + $response = $this->trigger_test_gateway( $form_id ); + + $this->assertSame( 1, FrmLiteTestGatewayActionsController::$calls, 'The gateway set in the action should process the payment.' ); + $this->assertSame( 'complete', $response, 'A charge that asks for triggers should run the completed payment triggers.' ); + } + + /** + * A form with a Gateway field is left to the add-on, so the payment is never processed twice. + * + * @covers FrmTransLiteActionsController::trigger_action_without_gateway_field + */ + public function test_trigger_action_without_gateway_field_skips_a_form_with_a_gateway_field() { + $form_id = $this->factory->form->create(); + $this->factory->field->create( + array( + 'form_id' => $form_id, + 'type' => 'gateway', + ) + ); + + $this->trigger_test_gateway( $form_id ); + + $this->assertSame( 0, FrmLiteTestGatewayActionsController::$calls, 'The add-on handles forms with a Gateway field.' ); + } + + /** + * A posted gateway field ID means the add-on found the gateway. + * + * @covers FrmTransLiteActionsController::trigger_action_without_gateway_field + */ + public function test_trigger_action_without_gateway_field_skips_a_posted_gateway() { + $form_id = $this->factory->form->create(); + $_POST['frm_gateway'] = '123'; + + try { + $this->trigger_test_gateway( $form_id ); + } finally { + unset( $_POST['frm_gateway'] ); + } + + $this->assertSame( 0, FrmLiteTestGatewayActionsController::$calls, 'The add-on handles a submission with a posted gateway.' ); + } + + /** + * Run the fallback with a stand-in gateway and report the payment status hook that fired. + * + * @param int $form_id The form the payment action belongs to. + * + * @return string The status passed to a frm_payment_status_* hook, or an empty string. + */ + private function trigger_test_gateway( $form_id ) { + FrmLiteTestGatewayActionsController::$calls = 0; + + $status = ''; + $gateways = function ( $gateways ) { + $gateways['lite_test'] = array( + 'label' => 'Test', + 'user_label' => 'Test', + 'class' => 'LiteTestGateway', + 'recurring' => false, + ); + return $gateways; + }; + $complete = function () use ( &$status ) { + $status = 'complete'; + }; + $entry = $this->factory->entry->create_and_get( array( 'form_id' => $form_id ) ); + $action = (object) array( + 'menu_order' => $form_id, + 'post_content' => array( + 'description' => '', + 'gateway' => array( 'lite_test' ), + ), + ); + + add_filter( 'frm_payment_gateways', $gateways ); + add_action( 'frm_payment_status_complete', $complete ); + + try { + FrmTransLiteActionsController::trigger_action_without_gateway_field( $action, $entry, (object) array( 'id' => $form_id ) ); + } finally { + remove_filter( 'frm_payment_gateways', $gateways ); + remove_action( 'frm_payment_status_complete', $complete ); + } + + return $status; + } + /** * @param string $amount * @param array $currency @@ -168,3 +298,31 @@ private function maybe_use_decimal( &$amount, $currency ) { return $this->run_private_method( array( 'FrmTransLiteActionsController', 'maybe_use_decimal' ), array( &$amount, $currency ) ); } } + +/** + * Stands in for a gateway's ActionsController, to count how often it is asked to charge. + */ +class FrmLiteTestGatewayActionsController { + + /** + * @var int + */ + public static $calls = 0; + + /** + * @param object $action The payment action. + * @param object $entry The entry being submitted. + * @param object $form The form being submitted. + * + * @return array + */ + public static function trigger_gateway( $action, $entry, $form ) { + ++self::$calls; + + return array( + 'success' => true, + 'run_triggers' => true, + 'show_errors' => false, + ); + } +}