/home/vianto5/duettowers.mx/wp-content/plugins/wpforms/assets/js/admin/builder
NameSizeModeActions
fields/-0755rm
themes/-0755rm
admin-builder-providers.js178180644editdlrm
admin-builder-providers.min.js84540644editdlrm
admin-builder.js3114480644editdlrm
admin-builder.min.js1420590644editdlrm
chocolate-choices.js23340644editdlrm
chocolate-choices.min.js4700644editdlrm
choices-list.js37840644editdlrm
choices-list.min.js7140644editdlrm
context-menu.js185400644editdlrm
context-menu.min.js81830644editdlrm
drag-fields.js247250644editdlrm
drag-fields.min.js96530644editdlrm
dropdown-list.js99920644editdlrm
dropdown-list.min.js38630644editdlrm
email-template.js51440644editdlrm
email-template.min.js14480644editdlrm
field-map.js65920644editdlrm
field-map.min.js23720644editdlrm
form-templates.js198210644editdlrm
form-templates.min.js83010644editdlrm
help.js115720644editdlrm
help.min.js50160644editdlrm
image-upload.js45430644editdlrm
image-upload.min.js20200644editdlrm
multiple-choices.js154180644editdlrm
multiple-choices.min.js63670644editdlrm
panel-loader.js50710644editdlrm
panel-loader.min.js22520644editdlrm
payments-utils.js34930644editdlrm
payments-utils.min.js19630644editdlrm
providers.js355060644editdlrm
providers.min.js127910644editdlrm
search-fields.js46710644editdlrm
search-fields.min.js25080644editdlrm
settings.js114120644editdlrm
settings.min.js48200644editdlrm
setup.js202880644editdlrm
setup.min.js95460644editdlrm
smart-tags.js458990644editdlrm
smart-tags.min.js152750644editdlrm
templates.js40700644editdlrm
templates.min.js10790644editdlrm
wpforms-choicesjs.js81940644editdlrm
wpforms-choicesjs.min.js26310644editdlrm
Edit: /home/vianto5/duettowers.mx/wp-content/plugins/wpforms/assets/js/admin/builder/payments-utils.js (3493B)
/* 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 ) );