diff --git a/assets/css/admin-rtl.css b/assets/css/admin-rtl.css index ec5b89dfe..90a006d1e 100644 --- a/assets/css/admin-rtl.css +++ b/assets/css/admin-rtl.css @@ -1,61 +1,61 @@ @charset "UTF-8"; -/** - * admin.scss - * General User Registration admin styles. +/** + * admin.scss + * General User Registration admin styles. */ -/** - * Imports +/** + * Imports */ -/** - * Variables +/** + * Variables */ -/** - * Grid breakpoints - * - * Define the minimum dimensions at which your layout will change, - * adapting to different screen sizes, for use in media queries. +/** + * Grid breakpoints + * + * Define the minimum dimensions at which your layout will change, + * adapting to different screen sizes, for use in media queries. **/ -/** - * Grid containers - * - * Define the maximum width of `.ur-container` for different screen sizes. - * scss-docs-start container-max-widths +/** + * Grid containers + * + * Define the maximum width of `.ur-container` for different screen sizes. + * scss-docs-start container-max-widths **/ -/** Minimum breakpoint width. Null for the smallest (first) breakpoint. - * - * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)) - * 576px +/** Minimum breakpoint width. Null for the smallest (first) breakpoint. + * + * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)) + * 576px **/ -/** - * Variables +/** + * Variables */ -/** - * Grid breakpoints - * - * Define the minimum dimensions at which your layout will change, - * adapting to different screen sizes, for use in media queries. +/** + * Grid breakpoints + * + * Define the minimum dimensions at which your layout will change, + * adapting to different screen sizes, for use in media queries. **/ -/** - * Grid containers - * - * Define the maximum width of `.ur-container` for different screen sizes. - * scss-docs-start container-max-widths +/** + * Grid containers + * + * Define the maximum width of `.ur-container` for different screen sizes. + * scss-docs-start container-max-widths **/ -/** - * Media of at least the minimum breakpoint width. No query for the smallest breakpoint. - * Makes the @content apply to the given breakpoint and wider. +/** + * Media of at least the minimum breakpoint width. No query for the smallest breakpoint. + * Makes the @content apply to the given breakpoint and wider. **/ -/** - * Grid system - * - * Generate semantic grid columns with these mixins. +/** + * Grid system + * + * Generate semantic grid columns with these mixins. **/ -/** - * _mixins.scss - * User Registration Mixins +/** + * _mixins.scss + * User Registration Mixins */ -/** - * Display Variations +/** + * Display Variations **/ .ur-d-none { display: none !important; } @@ -184,10 +184,10 @@ .ur-d-xxl-inline-flex { display: inline-flex !important; } } -/** - * Flex variation - * - * Custom styles for additional flex alignment options. +/** + * Flex variation + * + * Custom styles for additional flex alignment options. **/ .ur-flex-row { flex-direction: row !important; } @@ -921,9 +921,9 @@ font-weight: 500; line-height: 1.25; } -/** -* Form Field -* Set the class name for all input field +/** +* Form Field +* Set the class name for all input field **/ .ur-input, .swal2-container .user-registration-swal2-modal .swal2-input { display: block; @@ -4104,8 +4104,8 @@ .pb-0 { padding-bottom: 0px; } -/** - * Container +/** + * Container **/ .ur-container, .ur-container-full, @@ -4160,8 +4160,8 @@ .ur-container, .ur-container-sm, .ur-container-md, .ur-container-lg, .ur-container-xl, .ur-container-xxl { max-width: 1320px; } } -/** - * Row +/** + * Row **/ .ur-row { display: flex; @@ -4169,8 +4169,8 @@ margin-left: -12px; margin-right: -12px; } -/** - * Columns +/** + * Columns **/ .ur-col-1, .ur-col-2, .ur-col-3, .ur-col-4, .ur-col-5, .ur-col-6, .ur-col-7, .ur-col-8, .ur-col-9, .ur-col-10, .ur-col-11, .ur-col-12, .ur-col, .ur-col-auto, .ur-col-sm-1, .ur-col-sm-2, .ur-col-sm-3, .ur-col-sm-4, .ur-col-sm-5, .ur-col-sm-6, .ur-col-sm-7, .ur-col-sm-8, .ur-col-sm-9, .ur-col-sm-10, .ur-col-sm-11, .ur-col-sm-12, .ur-col-sm, @@ -5195,8 +5195,8 @@ visibility: visible; opacity: 1; } -/** -* Keyframe animation +/** +* Keyframe animation */ @keyframes spin { 100% { @@ -5243,8 +5243,8 @@ opacity: 0; transform: scale(0.9); } } -/** - * Styling begins +/** + * Styling begins */ .blockUI.blockOverlay::before { width: 16px; @@ -5290,8 +5290,8 @@ background: url("../images/icons/loader.svg") center center; background-size: cover; } -/** - * Toggle class. +/** + * Toggle class. */ .userregistration-forms-hidden { display: block; } @@ -5357,8 +5357,8 @@ padding: 5px 10px; text-align: center; } -/** - * Addons page +/** + * Addons page **/ .ur_addons_wrap p.refresh { margin: 0 0 2em; } @@ -5439,8 +5439,8 @@ .wrap.user-registration div.error { margin-top: 10px; } -/** - * Form Builder Styles +/** + * Form Builder Styles **/ .user-registration-membership_page_add-new-registration #wpfooter, .toplevel_page_user-registration #wpfooter { @@ -5555,8 +5555,8 @@ margin-bottom: 5px; vertical-align: middle; } -/** - * Backbone modal dialog +/** + * Backbone modal dialog */ .ur-backbone-modal * { box-sizing: border-box; } @@ -5619,7 +5619,7 @@ border: 0; border-right: 1px solid #e1e1e1; background-color: transparent; - transition: color 0.1s ease-in-out, background 0.1s ease-in-out; } + transition: color 0.1s ease-in-out, background 0.1s ease-in-out; } .ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before { font: normal 22px/50px "dashicons" !important; color: #676d8a; @@ -6067,7 +6067,7 @@ cursor: pointer; font-size: 15px; } .ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus { - box-shadow: 0 0 0 0px transparent, 0 0 0px 0px transparent; } + box-shadow: 0 0 0 0px transparent, 0 0 0px 0px transparent; } .ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active { background-color: #ffffff; color: #475bb2; @@ -6773,8 +6773,8 @@ max-width: 27%; flex: 1 0 27%; } -/** - * Tooltips +/** + * Tooltips */ .tips { cursor: help; @@ -6828,8 +6828,8 @@ img.tips { .tooltipster-base.ur-selling-price-tooltip .tooltipster-arrow .tooltipster-arrow-uncropped .tooltipster-arrow-background { border-top-color: #f44949 !important; } -/** - * Help Tip +/** + * Help Tip */ .user-registration-help-tip, .ur-portal-tooltip { @@ -6880,12 +6880,12 @@ img.tips { #profile-page form#your-profile .flatpickr-input[readonly] { background-color: #ffffff; } -/** - * Fullscreen Mode +/** + * Fullscreen Mode **/ body { - /** - * User Registration Builder Loading + /** + * User Registration Builder Loading **/ } body.ur-full-screen-mode { margin-top: -32px; } @@ -7928,7 +7928,7 @@ a.button.ur-smart-tags-list-button { .ur-registered-from .ur-builder-wrapper #ur-field-settings #ur-field-all-settings .form-row select { background-image: linear-gradient(-45deg, transparent 50%, gray 50%), linear-gradient(-135deg, gray 50%, transparent 50%); background-position: calc(100% - (100% - 15px)) calc(1em + 2px), calc(100% - (100% - 10px)) calc(1em + 2px), calc(100% - (100% - 2.5em)) 0.5em; - background-size: 5px 5px, 5px 5px, 1px 1.5em; + background-size: 5px 5px, 5px 5px, 1px 1.5em; background-repeat: no-repeat; } .ur-registered-from .ur-builder-wrapper #ur-field-settings #ur-field-all-settings .form-row .ur-radio-group-list { display: flex; @@ -8171,10 +8171,10 @@ a.button.ur-smart-tags-list-button { font-size: 15px; } #wpcontent .user-registration-login-form-container .user-registration__wrap #post-body .ur-registered-from .ur-builder-wrapper .ur-selected-inputs .ur-builder-wrapper-content .ur-login-shortcode--wrapper .ur-login-content .login-forms-shortcode-action .ur-copy-shortcode { box-shadow: none; - transition: all 0.3s ease-in-out; } + transition: all 0.3s ease-in-out; } #wpcontent .user-registration-login-form-container .user-registration__wrap #post-body .ur-registered-from .ur-builder-wrapper .ur-selected-inputs .ur-builder-wrapper-content .ur-login-shortcode--wrapper .ur-login-content .login-forms-shortcode-action .ur-copy-shortcode svg path { fill: #475bb2; - transition: all 0.3s ease-in-out; } + transition: all 0.3s ease-in-out; } #wpcontent .user-registration-login-form-container .user-registration__wrap #post-body .ur-registered-from .ur-builder-wrapper .ur-selected-inputs .ur-builder-wrapper-content .ur-login-shortcode--wrapper .ur-login-content .login-forms-shortcode-action .ur-copy-shortcode:hover { background: #475bb2 !important; } #wpcontent .user-registration-login-form-container .user-registration__wrap #post-body .ur-registered-from .ur-builder-wrapper .ur-selected-inputs .ur-builder-wrapper-content .ur-login-shortcode--wrapper .ur-login-content .login-forms-shortcode-action .ur-copy-shortcode:hover svg path { @@ -8883,7 +8883,7 @@ body.user-registration #wpbody-content { align-items: center; gap: 8px; margin: 4px; - padding: 0px 10px 0px 8px; + padding: 0px 10px 0px 8px; border: 0; color: #383838; flex-direction: row-reverse; } diff --git a/assets/css/admin.css b/assets/css/admin.css index 3ff872d55..31db6f0bb 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -1,61 +1,61 @@ @charset "UTF-8"; -/** - * admin.scss - * General User Registration admin styles. +/** + * admin.scss + * General User Registration admin styles. */ -/** - * Imports +/** + * Imports */ -/** - * Variables +/** + * Variables */ -/** - * Grid breakpoints - * - * Define the minimum dimensions at which your layout will change, - * adapting to different screen sizes, for use in media queries. +/** + * Grid breakpoints + * + * Define the minimum dimensions at which your layout will change, + * adapting to different screen sizes, for use in media queries. **/ -/** - * Grid containers - * - * Define the maximum width of `.ur-container` for different screen sizes. - * scss-docs-start container-max-widths +/** + * Grid containers + * + * Define the maximum width of `.ur-container` for different screen sizes. + * scss-docs-start container-max-widths **/ -/** Minimum breakpoint width. Null for the smallest (first) breakpoint. - * - * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)) - * 576px +/** Minimum breakpoint width. Null for the smallest (first) breakpoint. + * + * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)) + * 576px **/ -/** - * Variables +/** + * Variables */ -/** - * Grid breakpoints - * - * Define the minimum dimensions at which your layout will change, - * adapting to different screen sizes, for use in media queries. +/** + * Grid breakpoints + * + * Define the minimum dimensions at which your layout will change, + * adapting to different screen sizes, for use in media queries. **/ -/** - * Grid containers - * - * Define the maximum width of `.ur-container` for different screen sizes. - * scss-docs-start container-max-widths +/** + * Grid containers + * + * Define the maximum width of `.ur-container` for different screen sizes. + * scss-docs-start container-max-widths **/ -/** - * Media of at least the minimum breakpoint width. No query for the smallest breakpoint. - * Makes the @content apply to the given breakpoint and wider. +/** + * Media of at least the minimum breakpoint width. No query for the smallest breakpoint. + * Makes the @content apply to the given breakpoint and wider. **/ -/** - * Grid system - * - * Generate semantic grid columns with these mixins. +/** + * Grid system + * + * Generate semantic grid columns with these mixins. **/ -/** - * _mixins.scss - * User Registration Mixins +/** + * _mixins.scss + * User Registration Mixins */ -/** - * Display Variations +/** + * Display Variations **/ .ur-d-none { display: none !important; } @@ -184,10 +184,10 @@ .ur-d-xxl-inline-flex { display: inline-flex !important; } } -/** - * Flex variation - * - * Custom styles for additional flex alignment options. +/** + * Flex variation + * + * Custom styles for additional flex alignment options. **/ .ur-flex-row { flex-direction: row !important; } @@ -921,9 +921,9 @@ font-weight: 500; line-height: 1.25; } -/** -* Form Field -* Set the class name for all input field +/** +* Form Field +* Set the class name for all input field **/ .ur-input, .swal2-container .user-registration-swal2-modal .swal2-input { display: block; @@ -4104,8 +4104,8 @@ .pb-0 { padding-bottom: 0px; } -/** - * Container +/** + * Container **/ .ur-container, .ur-container-full, @@ -4160,8 +4160,8 @@ .ur-container, .ur-container-sm, .ur-container-md, .ur-container-lg, .ur-container-xl, .ur-container-xxl { max-width: 1320px; } } -/** - * Row +/** + * Row **/ .ur-row { display: flex; @@ -4169,8 +4169,8 @@ margin-right: -12px; margin-left: -12px; } -/** - * Columns +/** + * Columns **/ .ur-col-1, .ur-col-2, .ur-col-3, .ur-col-4, .ur-col-5, .ur-col-6, .ur-col-7, .ur-col-8, .ur-col-9, .ur-col-10, .ur-col-11, .ur-col-12, .ur-col, .ur-col-auto, .ur-col-sm-1, .ur-col-sm-2, .ur-col-sm-3, .ur-col-sm-4, .ur-col-sm-5, .ur-col-sm-6, .ur-col-sm-7, .ur-col-sm-8, .ur-col-sm-9, .ur-col-sm-10, .ur-col-sm-11, .ur-col-sm-12, .ur-col-sm, @@ -5195,8 +5195,8 @@ visibility: visible; opacity: 1; } -/** -* Keyframe animation +/** +* Keyframe animation */ @keyframes spin { 100% { @@ -5243,8 +5243,8 @@ opacity: 0; transform: scale(0.9); } } -/** - * Styling begins +/** + * Styling begins */ .blockUI.blockOverlay::before { width: 16px; @@ -5290,8 +5290,8 @@ background: url("../images/icons/loader.svg") center center; background-size: cover; } -/** - * Toggle class. +/** + * Toggle class. */ .userregistration-forms-hidden { display: block; } @@ -5357,8 +5357,8 @@ padding: 5px 10px; text-align: center; } -/** - * Addons page +/** + * Addons page **/ .ur_addons_wrap p.refresh { margin: 0 0 2em; } @@ -5439,8 +5439,8 @@ .wrap.user-registration div.error { margin-top: 10px; } -/** - * Form Builder Styles +/** + * Form Builder Styles **/ .user-registration-membership_page_add-new-registration #wpfooter, .toplevel_page_user-registration #wpfooter { @@ -5555,8 +5555,8 @@ margin-bottom: 5px; vertical-align: middle; } -/** - * Backbone modal dialog +/** + * Backbone modal dialog */ .ur-backbone-modal * { box-sizing: border-box; } @@ -5619,7 +5619,7 @@ border: 0; border-left: 1px solid #e1e1e1; background-color: transparent; - transition: color 0.1s ease-in-out, background 0.1s ease-in-out; } + transition: color 0.1s ease-in-out, background 0.1s ease-in-out; } .ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before { font: normal 22px/50px "dashicons" !important; color: #676d8a; @@ -6067,7 +6067,7 @@ cursor: pointer; font-size: 15px; } .ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus { - box-shadow: 0 0 0 0px transparent, 0 0 0px 0px transparent; } + box-shadow: 0 0 0 0px transparent, 0 0 0px 0px transparent; } .ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active { background-color: #ffffff; color: #475bb2; @@ -6773,8 +6773,8 @@ max-width: 27%; flex: 1 0 27%; } -/** - * Tooltips +/** + * Tooltips */ .tips { cursor: help; @@ -6828,8 +6828,8 @@ img.tips { .tooltipster-base.ur-selling-price-tooltip .tooltipster-arrow .tooltipster-arrow-uncropped .tooltipster-arrow-background { border-top-color: #f44949 !important; } -/** - * Help Tip +/** + * Help Tip */ .user-registration-help-tip, .ur-portal-tooltip { @@ -6880,12 +6880,12 @@ img.tips { #profile-page form#your-profile .flatpickr-input[readonly] { background-color: #ffffff; } -/** - * Fullscreen Mode +/** + * Fullscreen Mode **/ body { - /** - * User Registration Builder Loading + /** + * User Registration Builder Loading **/ } body.ur-full-screen-mode { margin-top: -32px; } @@ -7928,7 +7928,7 @@ a.button.ur-smart-tags-list-button { .ur-registered-from .ur-builder-wrapper #ur-field-settings #ur-field-all-settings .form-row select { background-image: linear-gradient(45deg, transparent 50%, gray 50%), linear-gradient(135deg, gray 50%, transparent 50%); background-position: calc(100% - 15px) calc(1em + 2px), calc(100% - 10px) calc(1em + 2px), calc(100% - 2.5em) 0.5em; - background-size: 5px 5px, 5px 5px, 1px 1.5em; + background-size: 5px 5px, 5px 5px, 1px 1.5em; background-repeat: no-repeat; } .ur-registered-from .ur-builder-wrapper #ur-field-settings #ur-field-all-settings .form-row .ur-radio-group-list { display: flex; @@ -8171,10 +8171,10 @@ a.button.ur-smart-tags-list-button { font-size: 15px; } #wpcontent .user-registration-login-form-container .user-registration__wrap #post-body .ur-registered-from .ur-builder-wrapper .ur-selected-inputs .ur-builder-wrapper-content .ur-login-shortcode--wrapper .ur-login-content .login-forms-shortcode-action .ur-copy-shortcode { box-shadow: none; - transition: all 0.3s ease-in-out; } + transition: all 0.3s ease-in-out; } #wpcontent .user-registration-login-form-container .user-registration__wrap #post-body .ur-registered-from .ur-builder-wrapper .ur-selected-inputs .ur-builder-wrapper-content .ur-login-shortcode--wrapper .ur-login-content .login-forms-shortcode-action .ur-copy-shortcode svg path { fill: #475bb2; - transition: all 0.3s ease-in-out; } + transition: all 0.3s ease-in-out; } #wpcontent .user-registration-login-form-container .user-registration__wrap #post-body .ur-registered-from .ur-builder-wrapper .ur-selected-inputs .ur-builder-wrapper-content .ur-login-shortcode--wrapper .ur-login-content .login-forms-shortcode-action .ur-copy-shortcode:hover { background: #475bb2 !important; } #wpcontent .user-registration-login-form-container .user-registration__wrap #post-body .ur-registered-from .ur-builder-wrapper .ur-selected-inputs .ur-builder-wrapper-content .ur-login-shortcode--wrapper .ur-login-content .login-forms-shortcode-action .ur-copy-shortcode:hover svg path { @@ -8883,7 +8883,7 @@ body.user-registration #wpbody-content { align-items: center; gap: 8px; margin: 4px; - padding: 0px 8px 0px 10px; + padding: 0px 8px 0px 10px; border: 0; color: #383838; flex-direction: row-reverse; } diff --git a/assets/js/admin/login-settings.min.js b/assets/js/admin/login-settings.min.js index 3135ed21d..d868bfca2 100644 --- a/assets/js/admin/login-settings.min.js +++ b/assets/js/admin/login-settings.min.js @@ -1 +1 @@ -!function(r){function e(){var e=function(e){var n=e.login_settings,o=[];return r.each(n.sections,function(e,n){r.each(n.settings,function(r,e){o.push({option:e.id,type:e.type})})}),o}(ur_login_form_params),o=[];r.each(e,function(e,n){if("toggle"===n.type)var i=r("#"+n.option).is(":checked");else i=r("#"+n.option).val();o.push({option:n.option,value:i})});var i={action:"user_registration_login_settings_save_action",security:ur_login_form_params.ur_login_settings_save,data:{setting_data:o}};r.ajax({url:ur_login_form_params.ajax_url,data:i,type:"POST",beforeSend:function(){r(".ur_save_login_form_action_button").append('')},complete:function(e){r(".ur_save_login_form_action_button").find(".ur-spinner").remove();var o=ur_login_form_params.i18n_admin.i18n_settings_successfully_saved;if(!0===e.responseJSON.success)n(o,"success");else{n(JSON.parse(e.responseText).data.message,"error")}}})}function n(e,n){var i=r(".ur-form-container").find(".ur-builder-message-container"),s=r("#wpadminbar"),t="";0===i.length&&(r(".ur-form-container").append('
'),(i=r(".ur-form-container").find(".ur-builder-message-container")).css({top:s.height()+"px"})),"success"===n?t=' ':(r(".ur-error").remove(),t=' ');var a=r(t).prependTo(i);setTimeout(function(){a.addClass("entered")},50),1==r(".ur-error").find(".ur-captcha-error").length?(r(".ur-error").css("width","490px"),setTimeout(function(){o(a)},5e3)):setTimeout(function(){o(a)},3e3)}function o(r){r.removeClass("entered").addClass("exiting"),setTimeout(function(){r.remove()},120)}function i(){var e=r("#user_registration_login_title").is(":checked"),n=r(".ur-login-form-wrapper").find(".ur-frontend-form.login");e?(n.find(".user-registration-login-title").show(),n.find(".user-registration-login-description").show()):(n.find(".user-registration-login-description").hide(),n.find(".user-registration-login-title").hide())}function s(){var e=r("#user_registration_login_options_remember_me").is(":checked"),n=r(".ur-login-form-wrapper").find(".ur-frontend-form.login");e?n.find("#rememberme").parent("label").show():n.find("#rememberme").parent("label").hide()}function t(){var e=r("#user_registration_login_options_lost_password").is(":checked"),n=r(".ur-login-form-wrapper").find(".ur-frontend-form.login");e?n.find(".user-registration-LostPassword").show():n.find(".user-registration-LostPassword").hide()}function a(){var e=r("#user_registration_login_options_hide_labels").is(":checked"),n=r(".ur-login-form-wrapper").find(".ur-frontend-form.login");e?n.find(".user-registration-form-row label").hide():n.find(".user-registration-form-row label").show()}function _(){var e=r("#user_registration_general_setting_registration_url_options").val(),n=r(".ur-login-form-wrapper").find(".ur-frontend-form.login");""===e.trim()?n.find(".user-registration-register").hide():n.find(".user-registration-register").show()}function u(){r("#user_registration_login_options_enable_recaptcha").is(":checked")?r("#user_registration_login_options_configured_captcha_type").closest(".user-registration-login-form-global-settings").show():r("#user_registration_login_options_configured_captcha_type").closest(".user-registration-login-form-global-settings").hide()}function l(){r("#user_registration_pro_general_setting_prevent_active_login").is(":checked")?r("#user_registration_pro_general_setting_limited_login").closest(".user-registration-login-form-global-settings").show():r("#user_registration_pro_general_setting_limited_login").closest(".user-registration-login-form-global-settings").hide()}function g(){var e=r("#user_registration_pro_passwordless_login").is(":checked"),n=r(".ur-login-form-wrapper").find(".ur-frontend-form.login");e?n.find(".user-registration-passwordless-login").show():n.find(".user-registration-passwordless-login").hide()}function f(){var e=r("#user_registration_pro_general_setting_login_form").is(":checked"),n=r(".ur-login-form-wrapper").find(".ur-frontend-form.login");e?n.find(".user-registration-form-row span.ur-icon").show():n.find(".user-registration-form-row span.ur-icon").hide()}r(document).ready(function(){if(u(),r(document).on("change","#user_registration_login_options_enable_recaptcha",function(){u()}),r(document).on("change","#user_registration_pro_general_setting_login_form",function(){f()}),f(),l(),r(document).on("change","#user_registration_pro_general_setting_prevent_active_login",function(){l()}),g(),r(document).on("change","#user_registration_pro_passwordless_login",function(){g()}),r("#user_registration_login_options_form_template").on("change",function(){var e=r("#user_registration_login_options_form_template").val(),n=r(".ur-login-form-wrapper").find(".ur-frontend-form.login");n.removeClass("ur-frontend-form--rounded-edge"),n.removeClass("ur-frontend-form--rounded"),n.removeClass("ur-frontend-form--flat"),n.removeClass("ur-frontend-form--bordered"),"default"!==e&&(e="rounded_edge"===e?"rounded ur-frontend-form--rounded-edge":e,n.addClass("ur-frontend-form--"+e))}),r(document).on("change","#user_registration_login_title",function(r){i()}),i(),r(document).on("change","#user_registration_login_options_remember_me",function(r){s()}),s(),r(document).on("change","#user_registration_login_options_lost_password",function(r){t()}),t(),r(document).on("change","#user_registration_login_options_hide_labels",function(r){a()}),a(),r("#user_registration_general_setting_registration_url_options").on("keyup",function(){_()}),_(),r("#user_registration_general_setting_registration_label").on("keyup",function(){var e=r("#user_registration_general_setting_registration_label").val();r(".ur-login-form-wrapper").find(".ur-frontend-form.login").find(".user-registration-register a").html(e)}),r("#user_registration_label_lost_your_password").on("keyup",function(){var e=r("#user_registration_label_lost_your_password").val();r(".ur-login-form-wrapper").find(".ur-frontend-form.login").find(".user-registration-LostPassword a").html(e)}),r("#user_registration_label_login").on("keyup",function(){var e=r("#user_registration_label_login").val();r(".ur-login-form-wrapper").find(".ur-frontend-form.login").find(".user-registration-Button").html(e)}),r("#user_registration_label_remember_me").on("keyup",function(){var e=r("#user_registration_label_remember_me").val();r(".ur-login-form-wrapper").find(".ur-frontend-form.login").find(".user-registration-form__label-for-checkbox span").html(e)}),r("#user_registration_label_password").on("keyup",function(){var e=r("#user_registration_label_password").val();r(".ur-login-form-wrapper").find(".ur-frontend-form.login").find(".user-registration-form-row[data-field='password'] label").html(e+'*')}),r("#user_registration_label_username_or_email").on("keyup",function(){var e=r("#user_registration_label_username_or_email").val();r(".ur-login-form-wrapper").find(".ur-frontend-form.login").find(".user-registration-form-row label[for='username']").html(e+'*')}),r("#user_registration_placeholder_username_or_email").on("keyup",function(){var e=r("#user_registration_placeholder_username_or_email").val();r(".ur-login-form-wrapper").find(".ur-frontend-form.login").find(".user-registration-form-row #username").attr("placeholder",e)}),r("#user_registration_placeholder_password").on("keyup",function(){var e=r("#user_registration_placeholder_password").val();r(".ur-login-form-wrapper").find(".ur-frontend-form.login").find(".user-registration-form-row #password").attr("placeholder",e)}),ur_login_form_params.is_login_settings_page){r(window).on("keydown",function(r){if((r.ctrlKey||r.metaKey)&&("s"===String.fromCharCode(r.which).toLowerCase()||83===r.which))return r.preventDefault(),e(),!1});r("#toplevel_page_user-registration").find(".wp-submenu").find('li a[href="admin.php?page=user-registration"]').first().closest("li").addClass("current")}r(".ur_save_login_form_action_button").on("click",function(){e()})})}(jQuery); \ No newline at end of file +!function(r){function e(){var e=function(e){var n=e.login_settings,o=[];return r.each(n.sections,function(e,n){r.each(n.settings,function(r,e){o.push({option:e.id,type:e.type})})}),o}(ur_login_form_params),o=[];r.each(e,function(e,n){if("toggle"===n.type)var i=r("#"+n.option).is(":checked");else i=r("#"+n.option).val();o.push({option:n.option,value:i})});var i={action:"user_registration_login_settings_save_action",security:ur_login_form_params.ur_login_settings_save,data:{setting_data:o}};r.ajax({url:ur_login_form_params.ajax_url,data:i,type:"POST",beforeSend:function(){r(".ur_save_login_form_action_button").append('')},complete:function(e){r(".ur_save_login_form_action_button").find(".ur-spinner").remove();var o=ur_login_form_params.i18n_admin.i18n_settings_successfully_saved;if(!0===e.responseJSON.success)n(o,"success");else{n(JSON.parse(e.responseText).data.message,"error")}}})}function n(e,n){var i=r(".ur-form-container").find(".ur-builder-message-container"),s=r("#wpadminbar"),t="";0===i.length&&(r(".ur-form-container").append(''),(i=r(".ur-form-container").find(".ur-builder-message-container")).css({top:s.height()+"px"})),"success"===n?t=' ':(r(".ur-error").remove(),t=' ');var a=r(t).prependTo(i);setTimeout(function(){a.addClass("entered")},50),1==r(".ur-error").find(".ur-captcha-error").length?(r(".ur-error").css("width","490px"),setTimeout(function(){o(a)},5e3)):setTimeout(function(){o(a)},3e3)}function o(r){r.removeClass("entered").addClass("exiting"),setTimeout(function(){r.remove()},120)}function i(){var e=r("#user_registration_login_title").is(":checked"),n=r(".ur-login-form-wrapper").find(".ur-frontend-form.login");e?(n.find(".user-registration-login-title").show(),n.find(".user-registration-login-description").show()):(n.find(".user-registration-login-description").hide(),n.find(".user-registration-login-title").hide())}function s(){var e=r("#user_registration_login_options_remember_me").is(":checked"),n=r(".ur-login-form-wrapper").find(".ur-frontend-form.login");e?n.find("#rememberme").parent("label").show():n.find("#rememberme").parent("label").hide()}function t(){var e=r("#user_registration_login_options_lost_password").is(":checked"),n=r(".ur-login-form-wrapper").find(".ur-frontend-form.login");e?n.find(".user-registration-LostPassword").show():n.find(".user-registration-LostPassword").hide()}function a(){var e=r("#user_registration_login_options_hide_labels").is(":checked"),n=r(".ur-login-form-wrapper").find(".ur-frontend-form.login");e?n.find(".user-registration-form-row label").hide():n.find(".user-registration-form-row label").show()}function _(){var e=r("#user_registration_general_setting_registration_url_options").val(),n=r(".ur-login-form-wrapper").find(".ur-frontend-form.login");""===e.trim()?n.find(".user-registration-register").hide():n.find(".user-registration-register").show()}function l(){r("#user_registration_login_options_enable_recaptcha").is(":checked")?r("#user_registration_login_options_configured_captcha_type").closest(".user-registration-login-form-global-settings").show():r("#user_registration_login_options_configured_captcha_type").closest(".user-registration-login-form-global-settings").hide()}function u(){r("#user_registration_pro_general_setting_prevent_active_login").is(":checked")?r("#user_registration_pro_general_setting_limited_login").closest(".user-registration-login-form-global-settings").show():r("#user_registration_pro_general_setting_limited_login").closest(".user-registration-login-form-global-settings").hide()}function g(){var e=r("#user_registration_pro_passwordless_login").is(":checked"),n=r(".ur-login-form-wrapper").find(".ur-frontend-form.login");e?(n.find(".user-registration-passwordless-login").show(),r("#user_registration_pro_passwordless_login_default_login_area").closest(".user-registration-login-form-global-settings").show()):(n.find(".user-registration-passwordless-login").hide(),r("#user_registration_pro_passwordless_login_default_login_area").closest(".user-registration-login-form-global-settings").hide())}function f(){var e=r("#user_registration_pro_general_setting_login_form").is(":checked"),n=r(".ur-login-form-wrapper").find(".ur-frontend-form.login");e?n.find(".user-registration-form-row span.ur-icon").show():n.find(".user-registration-form-row span.ur-icon").hide()}r(document).ready(function(){if(l(),r(document).on("change","#user_registration_login_options_enable_recaptcha",function(){l()}),r(document).on("change","#user_registration_pro_general_setting_login_form",function(){f()}),f(),u(),r(document).on("change","#user_registration_pro_general_setting_prevent_active_login",function(){u()}),g(),r(document).on("change","#user_registration_pro_passwordless_login",function(){g()}),r("#user_registration_login_options_form_template").on("change",function(){var e=r("#user_registration_login_options_form_template").val(),n=r(".ur-login-form-wrapper").find(".ur-frontend-form.login");n.removeClass("ur-frontend-form--rounded-edge"),n.removeClass("ur-frontend-form--rounded"),n.removeClass("ur-frontend-form--flat"),n.removeClass("ur-frontend-form--bordered"),"default"!==e&&(e="rounded_edge"===e?"rounded ur-frontend-form--rounded-edge":e,n.addClass("ur-frontend-form--"+e))}),r(document).on("change","#user_registration_login_title",function(r){i()}),i(),r(document).on("change","#user_registration_login_options_remember_me",function(r){s()}),s(),r(document).on("change","#user_registration_login_options_lost_password",function(r){t()}),t(),r(document).on("change","#user_registration_login_options_hide_labels",function(r){a()}),a(),r("#user_registration_general_setting_registration_url_options").on("keyup",function(){_()}),_(),r("#user_registration_general_setting_registration_label").on("keyup",function(){var e=r("#user_registration_general_setting_registration_label").val();r(".ur-login-form-wrapper").find(".ur-frontend-form.login").find(".user-registration-register a").html(e)}),r("#user_registration_label_lost_your_password").on("keyup",function(){var e=r("#user_registration_label_lost_your_password").val();r(".ur-login-form-wrapper").find(".ur-frontend-form.login").find(".user-registration-LostPassword a").html(e)}),r("#user_registration_label_login").on("keyup",function(){var e=r("#user_registration_label_login").val();r(".ur-login-form-wrapper").find(".ur-frontend-form.login").find(".user-registration-Button").html(e)}),r("#user_registration_label_remember_me").on("keyup",function(){var e=r("#user_registration_label_remember_me").val();r(".ur-login-form-wrapper").find(".ur-frontend-form.login").find(".user-registration-form__label-for-checkbox span").html(e)}),r("#user_registration_label_password").on("keyup",function(){var e=r("#user_registration_label_password").val();r(".ur-login-form-wrapper").find(".ur-frontend-form.login").find(".user-registration-form-row[data-field='password'] label").html(e+'*')}),r("#user_registration_label_username_or_email").on("keyup",function(){var e=r("#user_registration_label_username_or_email").val();r(".ur-login-form-wrapper").find(".ur-frontend-form.login").find(".user-registration-form-row label[for='username']").html(e+'*')}),r("#user_registration_placeholder_username_or_email").on("keyup",function(){var e=r("#user_registration_placeholder_username_or_email").val();r(".ur-login-form-wrapper").find(".ur-frontend-form.login").find(".user-registration-form-row #username").attr("placeholder",e)}),r("#user_registration_placeholder_password").on("keyup",function(){var e=r("#user_registration_placeholder_password").val();r(".ur-login-form-wrapper").find(".ur-frontend-form.login").find(".user-registration-form-row #password").attr("placeholder",e)}),ur_login_form_params.is_login_settings_page){r(window).on("keydown",function(r){if((r.ctrlKey||r.metaKey)&&("s"===String.fromCharCode(r.which).toLowerCase()||83===r.which))return r.preventDefault(),e(),!1});r("#toplevel_page_user-registration").find(".wp-submenu").find('li a[href="admin.php?page=user-registration"]').first().closest("li").addClass("current")}r(".ur_save_login_form_action_button").on("click",function(){e()})})}(jQuery); \ No newline at end of file diff --git a/assets/js/frontend/user-registration.min.js b/assets/js/frontend/user-registration.min.js index 6b8d53dbb..5528b8877 100644 --- a/assets/js/frontend/user-registration.min.js +++ b/assets/js/frontend/user-registration.min.js @@ -1 +1 @@ -function ur_includes(e,r){if(Array.isArray(e))for(var t=0;t"+k.message+"
","error",a,"1"),void a.find(".ur-submit-button").prop("disabled",!1);if(!(a.find('.field-authorize_net_gateway[data-field-id="authorizenet_gateway"]').find(".ur-authorize-net-errors").length>0)){a.find(".ur-submit-button").find("span").addClass("ur-spinner");if(s.wait_third_party_api(a))new Promise(function(r,t){e(document).trigger("user_registration_third_party_api_before_form_submit",[y,a,k,r,t])}).then(function(e){s.ajax_form_submit(e)});else s.ajax_form_submit(y)}}})})},wait_third_party_api:function(e){var r=!1;return e.find("#user_registration_authorize_net_gateway[data-gateway='authorize_net']").length>0&&(r=!0),r},ajax_form_submit:function(i){e.ajax({url:user_registration_params.ajax_url,data:i,type:"POST",async:!0,complete:function(i){var a=[];if(a.status=!0,e(document).trigger("user_registration_frontend_before_ajax_complete_success_message",[i,a,r]),a.status){r.find(".ur-submit-button").find("span").removeClass("ur-spinner");var s=r.find('input[name="ur-redirect-url"]').val(),o=e('"+user_registration_params.ajax_form_submit_error+"
","error",r,"1"),r.find(".ur-submit-button").prop("disabled",!1)})},edit_profile_event:function(){user_registration_params.ajax_submission_on_edit_profile&&e("form.user-registration-EditProfileForm").off("submit").on("submit",function(r){r.preventDefault(),r.stopImmediatePropagation();var t=e(this);e.extend(e.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields});var i=t.find(".ur-smart-phone-field");if("true"===i.attr("aria-invalid")){(s=i.closest("p.form-row")).find("#"+i.data("id")+"-error").remove();var a='";return s.append(a),s.find("#"+i.data("id")).attr("aria-invalid",!0),!0}if(1===t.find(".uraf-profile-picture-upload").find(".user-registration-error").length){var s,o=t.find(".uraf-profile-picture-upload").find(".uraf-profile-picture-input");(s=t.find(".uraf-profile-picture-upload")).find("#"+o.attr("name")+"-error").remove(),s.find(".uraf-profile-picture-file-error").remove();var d='";s.find("button.wp_uraf_profile_picture_upload").after(d)}if(!t.valid())return!1;if(1===t.find(".user-registration-profile-picture-error").find(".user-registration-error").length)return!1;r.preventDefault(),t.find(".user-registration-submit-Button").prop("disabled",!0);var l=t.find(".urfu-file-input");n.missing_attachment_handler(l);var u;try{u=n.get_form_data();var f=e("#profile_pic_url").val();u.push({value:f,field_name:"user_registration_profile_pic_url"}),u=JSON.stringify(u)}catch(_){u=""}var p={action:"user_registration_update_profile_details",security:user_registration_params.user_registration_profile_details_save,form_data:u};e(document).trigger("user_registration_frontend_before_edit_profile_submit",[p,t]),t.find(".user-registration-submit-Button").find("span").addClass("ur-spinner"),e.ajax({type:"POST",url:user_registration_params.ajax_url,dataType:"JSON",data:p,complete:function(r){t.find("span.ur-spinner").removeClass("ur-spinner"),t.closest(".user-registration").find(".user-registration-error").remove(),t.closest(".user-registration").find(".user-registration-message").remove();var i=e('"+user_registration_params.ajax_form_submit_error+"
","error",t,"1"),t.find(".user-registration-submit-Button").prop("disabled",!1)})})}};n.init(),e(".user-registration-EditProfileForm ").length>0&&n.get_form_data(e(".user-registration-EditProfileForm ").data("form-id")),s.init()})},e(function(){e(document).ready(function(){if(e(".ur-submit-button").on("click",function(){e(this).closest("form.register").ur_form_submission()}),e("input[name='save_account_details'], button[name='save_account_details']").off("click").on("click",function(r){r.preventDefault(),e(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")&&e("form.user-registration-EditProfileForm").ur_form_submission(),e(this).submit()}),e(".ur-flatpickr-field").length){var r=[];e(".ur-flatpickr-field").each(function(){var t=e(this),i=r.find(function(e){return e.element==t[0]});if(i)i.open();else{var a=t.attr("data-id"),n=t.closest(".ur-field-item").find("#formated_date").val();if(0"+k.message+"
","error",a,"1"),void a.find(".ur-submit-button").prop("disabled",!1);if(!(a.find('.field-authorize_net_gateway[data-field-id="authorizenet_gateway"]').find(".ur-authorize-net-errors").length>0)){a.find(".ur-submit-button").find("span").addClass("ur-spinner");if(s.wait_third_party_api(a))new Promise(function(r,t){e(document).trigger("user_registration_third_party_api_before_form_submit",[y,a,k,r,t])}).then(function(e){s.ajax_form_submit(e)});else s.ajax_form_submit(y)}}})})},wait_third_party_api:function(e){var r=!1;return e.find("#user_registration_authorize_net_gateway[data-gateway='authorize_net']").length>0&&(r=!0),r},ajax_form_submit:function(i){e.ajax({url:user_registration_params.ajax_url,data:i,type:"POST",async:!0,complete:function(i){var a=[];if(a.status=!0,e(document).trigger("user_registration_frontend_before_ajax_complete_success_message",[i,a,r]),a.status){r.find(".ur-submit-button").find("span").removeClass("ur-spinner");var s=r.find('input[name="ur-redirect-url"]').val(),o=e('"+user_registration_params.ajax_form_submit_error+"
","error",r,"1"),r.find(".ur-submit-button").prop("disabled",!1)})},edit_profile_event:function(){user_registration_params.ajax_submission_on_edit_profile&&e("form.user-registration-EditProfileForm").off("submit").on("submit",function(r){r.preventDefault(),r.stopImmediatePropagation();var t=e(this);e.extend(e.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields});var i=t.find(".ur-smart-phone-field");if("true"===i.attr("aria-invalid")){(s=i.closest("p.form-row")).find("#"+i.data("id")+"-error").remove();var a='";return s.append(a),s.find("#"+i.data("id")).attr("aria-invalid",!0),!0}if(1===t.find(".uraf-profile-picture-upload").find(".user-registration-error").length){var s,o=t.find(".uraf-profile-picture-upload").find(".uraf-profile-picture-input");(s=t.find(".uraf-profile-picture-upload")).find("#"+o.attr("name")+"-error").remove(),s.find(".uraf-profile-picture-file-error").remove();var d='";s.find("button.wp_uraf_profile_picture_upload").after(d)}if(!t.valid())return!1;if(1===t.find(".user-registration-profile-picture-error").find(".user-registration-error").length)return!1;r.preventDefault(),t.find(".user-registration-submit-Button").prop("disabled",!0);var l=t.find(".urfu-file-input");n.missing_attachment_handler(l);var u;try{u=n.get_form_data();var f=e("#profile_pic_url").val();u.push({value:f,field_name:"user_registration_profile_pic_url"}),u=JSON.stringify(u)}catch(_){u=""}var p={action:"user_registration_update_profile_details",security:user_registration_params.user_registration_profile_details_save,form_data:u};e(document).trigger("user_registration_frontend_before_edit_profile_submit",[p,t]),t.find(".user-registration-submit-Button").find("span").addClass("ur-spinner"),e.ajax({type:"POST",url:user_registration_params.ajax_url,dataType:"JSON",data:p,complete:function(r){t.find("span.ur-spinner").removeClass("ur-spinner"),t.closest(".user-registration").find(".user-registration-error").remove(),t.closest(".user-registration").find(".user-registration-message").remove();var i=e('"+user_registration_params.ajax_form_submit_error+"
","error",t,"1"),t.find(".user-registration-submit-Button").prop("disabled",!1)})})}};n.init(),e(".user-registration-EditProfileForm ").length>0&&n.get_form_data(e(".user-registration-EditProfileForm ").data("form-id")),s.init()})},e(function(){e(document).ready(function(){if(e(".ur-submit-button").on("click",function(){e(this).closest("form.register").ur_form_submission()}),e("input[name='save_account_details'], button[name='save_account_details']").off("click").on("click",function(r){r.preventDefault(),e(".ur-frontend-form").find("form.edit-profile").hasClass("user-registration-EditProfileForm")&&e("form.user-registration-EditProfileForm").ur_form_submission(),e(this).submit()}),e(".ur-flatpickr-field").length){var r=[];e(".ur-flatpickr-field").each(function(){var t=e(this),i=r.find(function(e){return e.element==t[0]});if(i)i.open();else{var a=t.attr("data-id"),n=t.closest(".ur-field-item").find("#formated_date").val();if(0