__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/* global wpforms_builder, wpforms_builder_payments_utils */
// eslint-disable-next-line no-unused-vars
const WPFormsBuilderPaymentsUtils = window.WPFormsBuilderPaymentsUtils || ( function( document, window, $ ) {
/**
* Public functions and properties.
*
* @since 1.9.5
*
* @type {Object}
*/
const app = {
/**
* Toggle payments content.
*
* @since 1.9.5
*/
// eslint-disable-next-line complexity
toggleContent() {
const $input = $( this ),
$paymentSettings = $input.closest( '.wpforms-payment-settings' );
if (
$paymentSettings.find( '.wpforms-panel-content-section-payment-toggle-one-time .wpforms-toggle-control > input' ).is( ':checked' ) &&
$paymentSettings.find( '.wpforms-panel-content-section-payment-toggle-recurring .wpforms-toggle-control > input' ).is( ':checked' )
) {
$input.prop( 'checked', false );
$.alert( {
title: wpforms_builder.heads_up,
content: $input.attr( 'name' ).includes( 'enable_recurring' ) ? wpforms_builder_payments_utils.payments_disabled_recurring : wpforms_builder_payments_utils.payments_disabled_one_time,
icon: 'fa fa-exclamation-circle',
type: 'orange',
buttons: {
confirm: {
text: wpforms_builder.ok,
btnClass: 'btn-confirm',
keys: [ 'enter' ],
},
},
} );
}
const $wrapper = $input.closest( '.wpforms-panel-content-section-payment' ),
isChecked = $input.prop( 'checked' ) && ! $( '#wpforms-panel-field-settings-disable_entries' ).prop( 'checked' );
$wrapper.find( '.wpforms-panel-content-section-payment-toggled-body' ).toggle( isChecked );
$wrapper.toggleClass( 'wpforms-panel-content-section-payment-open', isChecked );
},
/**
* Check a plan name on empty value.
*
* @since 1.9.5
*/
checkPlanName() {
const $input = $( this ),
$plan = $input.closest( '.wpforms-panel-content-section-payment-plan' ),
$planName = $plan.find( '.wpforms-panel-content-section-payment-plan-head-title' );
if ( $input.val() ) {
$planName.html( $input.val() );
return;
}
const defaultValue = wpforms_builder_payments_utils.payments_plan_placeholder;
$planName.html( defaultValue );
$input.val( defaultValue );
},
/**
* Toggle a plan content.
*
* @since 1.9.5
*/
togglePlan() {
const $plan = $( this ).closest( '.wpforms-panel-content-section-payment-plan' ),
$icon = $plan.find( '.wpforms-panel-content-section-payment-plan-head-buttons-toggle' );
$icon.toggleClass( 'fa-chevron-circle-up fa-chevron-circle-down' );
$plan.find( '.wpforms-panel-content-section-payment-plan-body' ).toggle( $icon.hasClass( 'fa-chevron-circle-down' ) );
},
/**
* Delete a plan.
*
* @since 1.9.5
*/
deletePlan() {
// Trigger a warning modal when trying to delete a single plan without pro addon.
$( this ).closest( '.wpforms-panel-content-section-payment' ).find( '.wpforms-panel-content-section-payment-button-add-plan' ).trigger( 'click' );
},
/**
* Rename a plan.
*
* @since 1.9.5
*/
renamePlan() {
const $input = $( this ),
$plan = $input.closest( '.wpforms-panel-content-section-payment-plan' ),
$planName = $plan.find( '.wpforms-panel-content-section-payment-plan-head-title' );
if ( ! $input.val() ) {
$planName.html( '' );
return;
}
$planName.html( $input.val() );
},
};
// Provide access to public functions/properties.
return app;
}( document, window, jQuery ) );
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| fields | Folder | 0750 |
|
|
| themes | Folder | 0750 |
|
|
| admin-builder-providers.js | File | 17.4 KB | 0640 |
|
| admin-builder-providers.min.js | File | 8.26 KB | 0640 |
|
| admin-builder.js | File | 288.17 KB | 0640 |
|
| admin-builder.min.js | File | 134.37 KB | 0640 |
|
| chocolate-choices.js | File | 2.28 KB | 0640 |
|
| chocolate-choices.min.js | File | 470 B | 0640 |
|
| choices-list.js | File | 3.7 KB | 0640 |
|
| choices-list.min.js | File | 714 B | 0640 |
|
| context-menu.js | File | 18.11 KB | 0640 |
|
| context-menu.min.js | File | 7.99 KB | 0640 |
|
| drag-fields.js | File | 24.15 KB | 0640 |
|
| drag-fields.min.js | File | 9.43 KB | 0640 |
|
| dropdown-list.js | File | 9.76 KB | 0640 |
|
| dropdown-list.min.js | File | 3.77 KB | 0640 |
|
| email-template.js | File | 5.02 KB | 0640 |
|
| email-template.min.js | File | 1.41 KB | 0640 |
|
| field-map.js | File | 6.44 KB | 0640 |
|
| field-map.min.js | File | 2.32 KB | 0640 |
|
| form-templates.js | File | 19.36 KB | 0640 |
|
| form-templates.min.js | File | 8.11 KB | 0640 |
|
| help.js | File | 11.3 KB | 0640 |
|
| help.min.js | File | 4.9 KB | 0640 |
|
| panel-loader.js | File | 4.95 KB | 0640 |
|
| panel-loader.min.js | File | 2.2 KB | 0640 |
|
| payments-utils.js | File | 3.41 KB | 0640 |
|
| payments-utils.min.js | File | 1.92 KB | 0640 |
|
| providers.js | File | 34.67 KB | 0640 |
|
| providers.min.js | File | 12.49 KB | 0640 |
|
| search-fields.js | File | 4.56 KB | 0640 |
|
| search-fields.min.js | File | 2.45 KB | 0640 |
|
| settings.js | File | 11.14 KB | 0640 |
|
| settings.min.js | File | 4.71 KB | 0640 |
|
| setup.js | File | 19.81 KB | 0640 |
|
| setup.min.js | File | 9.32 KB | 0640 |
|
| smart-tags.js | File | 43.2 KB | 0640 |
|
| smart-tags.min.js | File | 14.51 KB | 0640 |
|
| templates.js | File | 3.97 KB | 0640 |
|
| templates.min.js | File | 1.05 KB | 0640 |
|
| wpforms-choicesjs.js | File | 6.38 KB | 0640 |
|
| wpforms-choicesjs.min.js | File | 2.22 KB | 0640 |
|