{"id":1623,"date":"2023-07-11T09:28:23","date_gmt":"2023-07-11T14:28:23","guid":{"rendered":"https:\/\/ciudadviva.link\/?page_id=1623"},"modified":"2023-08-08T16:05:37","modified_gmt":"2023-08-08T21:05:37","slug":"registro-de-usuarios","status":"publish","type":"page","link":"https:\/\/ciudadviva.link\/?page_id=1623","title":{"rendered":"REGISTRO DE USUARIOS"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#FFFF00&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_row column_structure=&#8221;2_5,3_5&#8243; _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;2_5&#8243; _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>Registrate para que puedas empezar a compartir informaci\u00f3n de lo que pasa en tu ciudad.<\/p>\n<p>Una vez registrado podras reportar, condiciones y estado de los diferentes espacios urbanos, situaciones, conflictos y eventos que se presenten en tu ciudad, o en la ciudad en que te encuentres.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][et_pb_column type=&#8221;3_5&#8243; _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][de_fb_form title=&#8221;Registro de Usuario&#8221; form_type=&#8221;register&#8221; default_user_role=&#8221;author&#8221; submit_button_text=&#8221;Registrar Usuario&#8221; success_message=&#8221;Te has registrado correctamente&#8221; _builder_version=&#8221;4.21.2&#8243; _module_preset=&#8221;default&#8221; _unique_id=&#8221;814f0793-7613-4c66-bf0d-1e44d6e6b2d8&#8243; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;][de_fb_form_field field_title=&#8221;Nombre&#8221; admin_title=&#8221;nombre&#8221; field_id=&#8221;Field_1&#8243; required_mark=&#8221;on&#8221; field_mapping_type=&#8221;user_default&#8221; user_default_field=&#8221;first_name&#8221; field_label_position=&#8221;top&#8221; field_placeholder=&#8221;Nombre Responsable&#8221; use_icon=&#8221;on&#8221; font_icon=&#8221;&#xf2bb;||fa||900&#8243; icon_color=&#8221;#E09900&#8243; _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; form_step=&#8221;0&#8243; current_step=&#8221;0&#8243;][\/de_fb_form_field][de_fb_form_field field_title=&#8221;Correo  electronico&#8221; admin_title=&#8221;correo&#8221; field_id=&#8221;Field_5&#8243; field_type=&#8221;email&#8221; required_mark=&#8221;on&#8221; field_mapping_type=&#8221;user_default&#8221; user_default_field=&#8221;user_email&#8221; field_label_position=&#8221;top&#8221; field_placeholder=&#8221;Ingresar correo electr\u00f3nico&#8221; use_icon=&#8221;on&#8221; font_icon=&#8221;&#xe076;||divi||400&#8243; icon_color=&#8221;#E09900&#8243; _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; form_step=&#8221;0&#8243; current_step=&#8221;0&#8243;][\/de_fb_form_field][de_fb_form_field field_title=&#8221;Usuario&#8221; admin_title=&#8221;usuario&#8221; field_id=&#8221;Field_2&#8243; required_mark=&#8221;on&#8221; field_mapping_type=&#8221;user_default&#8221; user_default_field=&#8221;user_login&#8221; field_label_position=&#8221;top&#8221; field_placeholder=&#8221;Inagresar nombre de usuario&#8221; use_icon=&#8221;on&#8221; font_icon=&#8221;&#xf406;||fa||900&#8243; icon_color=&#8221;#E09900&#8243; _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; form_step=&#8221;0&#8243; current_step=&#8221;0&#8243;][\/de_fb_form_field][de_fb_form_field field_title=&#8221;Contrase\u00f1a&#8221; admin_title=&#8221;passw1&#8243; field_id=&#8221;Field_4_2&#8243; field_type=&#8221;password&#8221; required_mark=&#8221;on&#8221; field_mapping_type=&#8221;user_default&#8221; user_default_field=&#8221;user_pass&#8221; field_label_position=&#8221;top&#8221; field_placeholder=&#8221;Ingresar contrase\u00f1a&#8221; use_icon=&#8221;on&#8221; font_icon=&#8221;&#xe06e;||divi||400&#8243; icon_color=&#8221;#E09900&#8243; _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; form_step=&#8221;0&#8243; current_step=&#8221;0&#8243;][\/de_fb_form_field][de_fb_form_field field_title=&#8221;Repetir  Contrase\u00f1a&#8221; admin_title=&#8221;passw2&#8243; field_id=&#8221;Field_4&#8243; field_type=&#8221;password&#8221; required_mark=&#8221;on&#8221; field_mapping_type=&#8221;user_default&#8221; user_default_field=&#8221;pass_repeat&#8221; field_label_position=&#8221;top&#8221; field_placeholder=&#8221;Confirmar contrase\u00f1a&#8221; use_icon=&#8221;on&#8221; font_icon=&#8221;&#xe001;||divi||400&#8243; icon_color=&#8221;#E09900&#8243; _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; form_step=&#8221;0&#8243; current_step=&#8221;0&#8243;][\/de_fb_form_field][\/de_fb_form][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Registrate para que puedas empezar a compartir informaci\u00f3n de lo que pasa en tu ciudad. Una vez registrado podras reportar, condiciones y estado de los diferentes espacios urbanos, situaciones, conflictos y eventos que se presenten en tu ciudad, o en la ciudad en que te encuentres.<div class=\"et_pb_module de_fb_form de_fb_form_0 clearfix  align-button_right align-module_left\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module_inner\">\n\t\t\t\t\t\t\t<form\n                method=\"POST\"\n                enctype=\"multipart\/form-data\"\n                action=\"\"\n                id=\"fb_form_null-0\"\n                class=\"et_pb_contact fb_form   hide_until_loaded \"\n                data-ajax-btn=\"Processing\"\n                data-ajax-hide-sub=\"off\"\n                data-reset-form-on-submit=\"true\"\n                style=\"display: none;\">\n\t\t\t\t<div class=\"preloader form_loading divi\">\n\t\t\t\t\t<div class=\"ajax-loading\">\n\t\t\t\t\t\t<div class=\"divi-style\">\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"lines\">\n\t\t\t\t\t\t\t<div class=\"line\"><\/div>\n\t\t\t\t\t\t\t<div class=\"line\"><\/div>\n\t\t\t\t\t\t\t<div class=\"line\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"spinner donut-cont\">\n\t\t\t\t\t\t\t<div class=\"donut\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"spinner donutmulti-cont\">\n\t\t\t\t\t\t\t<div class=\"donut multi\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"spinner ripple-cont\">\n\t\t\t\t\t\t\t<div class=\"ripple\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<h3 class=\"form-title\">&#8221;Registro<\/h3>\n\t\t\t\t\t\t<div class=\"divi-form-wrapper\">\n                <input type=\"hidden\" value=\"draft\" name=\"post_status\">                 \t\t\t<\/div>\n<input type=\"hidden\" value=\"null-0\" name=\"form_key\"><input type=\"hidden\" value=\"null-0\" name=\"unique_id\"><input type=\"hidden\" value=\"off\" name=\"enable_payment\">\t\t<div class=\"et_contact_bottom_container\">\n\t\t\t<div class=\"submit-container\">\n\t\t\t<script>\n\t\t\tjQuery(document).ready(function($){\n\t\t\t\tjQuery(\"#fb_form_null-0\").submit(function(e){\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\n\t\t\t\t\t$(this).find('.divi-form-submit').prop('disabled', true);\n\t\t\t\t\tvar required_check = true;\n\t\t\t\t\tvar form = jQuery(this);\n                    let required_fields = $('.required',form);\n\t\t\t\t\tvar stripeEnabled = $(this).hasClass('de_fb_gateway_stripe_form');\n\t\t\t\t\tlet paymentField = $(this).find('input[name=\"de_fb_payment_amount\"]');\n\t\t\t\t\tlet paymentInput = $(this).find('input[name=\"custom_price\"]');\n\t\t\t\t\tlet paymentErrors = $(this).find('.payment-errors').length > 0;\n\t\t\t\t\tvar paymentEnabled = $(this).find('input[name=\"enable_payment\"]').val();\n\t\t\t\t\tvar showTc = $(this).find('input[name=\"show_tc\"]').val();\n\t\t\t\t\tlet stripeErrorMessages = {};\n\n                    if ( required_fields.length > 0 ) {\n\t\t\t\t\t\t\n                        $.each(required_fields, function (index, element) {\n                            $(this).closest('.et_pb_contact_field').parent().find('.error').remove();\n                            if ( !$(this).closest('.de_fb_form_field').hasClass('condition-hide') ) {\n                                var field_type = $(this).closest('.et_pb_contact_field').data('type');\n\t\t\t\t\t\t\t\t\n                                if ( field_type == 'checkbox' || field_type == 'radio' ) {\n                                    if ( jQuery(this).find('input:checked').length == 0 ) {\n                                        required_check = false;\n                                    }\n                                } else if ( field_type == 'file' || field_type == 'image' ) {\n                                    var value_field_id = jQuery(this).find('input.upload_field').attr('id') + '_value';\n                                    if ( jQuery(this).find('.files .template-upload').length == 0 && jQuery(this).find('#' + value_field_id).val() == \"\") {\n                                        required_check = false;\n                                    }\n                                } else {\n                                    if ( jQuery(this).val() == '' ) {\n                                        required_check = false;\n                                    }\n                                }\n                                if ( !required_check ) {\n                                    var required_message = $(this).attr('data-required_message');\n                                    var required_message_pos = $(this).attr('data-required_position');\n\n                                    if ( required_message_pos == 'top' ) {\n                                        $(this).closest('.et_pb_contact_field').before('<p class=\"error\">' + required_message + '<\/p>');\n                                    } else {\n                                        $(this).closest('.et_pb_contact_field').after('<p class=\"error\">' + required_message + '<\/p>');\n                                    }\n                                }\n                            }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n                        });\n                    }\n\t\t\t\t\t\n                    if ( form.find('.bloom_subscribe').find('input[required]').length > 0 ) {\n                \t\tform.find('.bloom_subscribe').find('.error').remove();\n                \t\tif ( !form.find('.bloom_subscribe').find('input[required]').is(\":checked\") ) {\n                \t\t\trequired_check = false;\n                \t\t\tvar required_message = \"This field is required.\";\n                            var required_message_pos = \"bottom\";\n\n                            if ( required_message_pos == 'top' ) {\n                                form.find('.bloom_subscribe').prepend('<p class=\"error\">' + required_message + '<\/p>');\n                            } else {\n                                form.find('.bloom_subscribe').append('<p class=\"error\">' + required_message + '<\/p>');\n                            }\n                \t\t}\n                \t}\n\t\t\t\t\t\n                \tif ( !required_check ) {\n                        $('html, body').animate({\n                            scrollTop: form.offset().top - 10\n                        }, 300);\n\n                        form.find('.divi-form-submit').removeProp('disabled');\n                        form.find('.divi-form-submit').removeAttr('disabled');\n                    }\n\n\t\t\t\t    var validation_result = form.valid();\n\n\t\t\t\t    if ( !validation_result ) {\n\t\t\t\t    \te.preventDefault();\n                        \/\/Here we check for an icon related to this input and we retrieve it to move it to correct place\n                        \/\/since validate function places the label before the icon -\n                        let inputs_error= $('.input-field.error',form);\n                        inputs_error.each(function (){\n                            let input=$(this);\n                            let parent=input.parent();\n                            let label = $('label.error',parent).first();\n                            let icon = $('.dfb_input_icon',parent).first();\n                            if(icon.length){\n                                if(input.next().is(label)){\n                                    label.detach().appendTo(parent.parent());\n                                }\n                            }\n                        });\n\t\t\t\t    \t$(this).find('.divi-form-submit').removeProp('disabled');\n\t\t\t\t    \t$(this).find('.divi-form-submit').removeAttr('disabled');\n\t\t\t\t    \treturn false;\n\t\t\t\t    }\n\n\t\t\t\t\tif (paymentField.hasClass('error')) {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\t\t\t\t\t\n\n\t\t\t\t\tif(parseFloat(paymentField.val()) <= 0){\n\t\t\t\t\t\tform.find('.plan-price').find('.payment-error').remove();\n\t\t\t\t\t\tif(form.find('.plan-price .payment-error').length === 0){\n\t\t\t\t\t\t\tform.find('.plan-price').append('<div class=\"payment-error et_pb_contact_error_text\">Please add a valid value for payment<\/div>');\n\t\t\t\t\t\t}\n\t\t\t\t\t\trequired_check = false;\n\t\t\t\t\t\tpaymentField.addClass('input-error');\n\t\t\t\t\t\tform.find('.divi-form-submit').removeProp('disabled');\n\t\t\t\t\t\tform.find('.divi-form-submit').removeAttr('disabled');\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\/\/ paymentField.removeClass('input-error'); \/\/ \u2705 Remove error class when valid\n\t\t\t\t\t\t\/\/ form.find('.plan-price').find('.payment-error').remove(); \/\/ \u2705 Remove error message\n\t\t\t\t\t}\n\n\t\t\t\t\tif(showTc){\t\n\t\t\t\t\t\tlet activeTab = form.find(\".gateway-form:visible\"); \/\/ Finds the visible payment gateway tab\n\t\t\t\t\t\tlet tcCheck = activeTab.find(\"input[type='checkbox']\");\n\n\t\t\t\t\t\tform.find('.tcerror').remove();\n\t\t\t\t\t\tif (!tcCheck.is(\":checked\")) {\n\t\t\t\t\t\t\ttcCheck.closest(\".tc_wrap\").after('<p class=\"tcerror\">You must accept the Terms & Conditions.<\/p>');\n\t\t\t\t\t\t\tform.find('.divi-form-submit').prop('disabled', false);\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\tif (stripeEnabled) {\n\t\t\t\t\t\tform.find('.divi-form-submit').prop('disabled', true);\n\n\t\t\t\t\t\tlet stripeKey = $('#card-element').data('consumer-key');\n\t\t\t\t\t\tif (stripeKey) {\n\t\t\t\t\t\t\tStripe.setPublishableKey(stripeKey);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tlet cvcField = $(this).find('.card-cvc');\n\t\t\t\t\t\tcvcField.on('input', function () {\n\t\t\t\t\t\t\tform.find('.cvcerror').remove();\n\t\t\t\t\t\t});\n\t\t\t\t\t\tlet cvcValid = cvcField.val().trim() !== \"\";\n\t\t\t\t\t\tform.find('.cvcerror').remove();\n\t\t\t\t\t\tif (!cvcValid) {\n\t\t\t\t\t\t\tcvcField.after('<p class=\"cvcerror\">CVC is required.<\/p>');\n\t\t\t\t\t\t\tform.find('.divi-form-submit').prop('disabled', false);\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t\t\turl: 'https:\/\/ciudadviva.link\/wp-admin\/admin-ajax.php', \/\/ WordPress AJAX URL\n\t\t\t\t\t\t\ttype: \"POST\",\n\t\t\t\t\t\t\tdata: { action: \"get_stripe_error_messages\" },\n\t\t\t\t\t\t\tsuccess: function (response) {\n\t\t\t\t\t\t\t\tstripeErrorMessages = response; \/\/ Store messages globally\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\terror: function () {\n\t\t\t\t\t\t\t\tconsole.error(\"Failed to load Stripe error messages.\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tStripe.createToken({\n\t\t\t\t\t\t\tnumber: $(this).find('.card-number').val(),\n\t\t\t\t\t\t\tcvc: $(this).find('.card-cvc').val(),\n\t\t\t\t\t\t\texp_month: $(this).find('.card-expiry-month').val(),\n\t\t\t\t\t\t\texp_year: $(this).find('.card-expiry-year').val(),\n\t\t\t\t\t\t}, function (status, response) {\n\t\t\t\t\t\t\tif (response.error) {\n\t\t\t\t\t\t\t\tlet errorType = response.error.code;\n\t\t\t\t\t\t\t\tlet errorMessage = stripeErrorMessages[errorType] || response.error.message;\n\t\t\t\t\t\t\t\tform.find(\".payment-errors\").html(errorMessage);\n\t\t\t\t\t\t\t\tform.find('.divi-form-submit').prop('disabled', false);\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tform.append(\"<input type='hidden' name='stripeToken' value='\" + response['id'] + \"'\/>\");\n\t\t\t\t\t\t\t\tif ( ( ! paymentInput.length || ! paymentInput.hasClass('input-error') ) ) {\n\t\t\t\t\t\t\t\t\t\/\/ Final Submission After Stripe Token is Generated\n\t\t\t\t\t\t\t\t\tif (form.find('.divi-form-submit').hasClass('de_fb_ajax_submit')) {\n\t\t\t\t\t\t\t\t\t\t\/\/ Ensure the token is in the serialized form data\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\t\t\tlet formElement = form[0];  \n\t\t\t\t\t\t\t\t\t\tif (formElement instanceof HTMLFormElement) {\n\t\t\t\t\t\t\t\t\t\t\tde_fb_ajax_form_submit(formElement);  \/\/ Pass the actual form element\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tconsole.error(\"Form is not a valid HTMLFormElement\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tjQuery(\"#fb_form_null-0\").find('.fb_nonce').remove();\n\t\t\t\t\t\t\t\t\t\tjQuery(\"#fb_form_null-0\").append('<input type=\"hidden\" name=\"fb_nonce\" class=\"fb_nonce\" value=\"c6fee84345\">');\n\t\t\t\t\t\t\t\t\t\tform.unbind('submit').submit();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tform.find('.divi-form-submit').prop('disabled', false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\/\/ return false; \/\/ Prevent default submission while Stripe processes\n\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t    if ( $(this).find('.signature-field').length > 0 ) {\n\t\t\t\t    \t$.each( $(this).find('.signature-field'), function(i) {\n\t\t\t\t    \t\tvar field_id = $(this).find('input').attr('id');\n\t\t\t\t    \t\t$(\"#\" + field_id).val( fb_signature.signature_objs['signaturePad_' + field_id].toDataURL() );\n\t\t\t\t    \t});\n\t\t\t\t    }\n\t\t\t\t    if ( required_check ) {\n\t\t\t\t    \tif ( form.find('.file_preview_container .template-upload').length > 0 ) {\n\t\t\t\t    \t\te.preventDefault();\n\t\t\t\t\t\t\t$(this).addClass('submitting');\n\t\t                \tde_fb_ajax_files_upload( form );\n\t\t                } else {\n\t\t\t\t\t\t\tif ( form.find('.calculate_field').length > 0 ) {\n\t\t\t\t\t\t\t\t$('.calculation').hide();\n\t\t\t\t\t\t\t\t$.each(form.find('.calculate_field'), function() {\n\t\t\t\t\t\t\t\t\tvar calc_field_wrapper = $(this);\n\t\t\t\t\t\t\t\t\tvar field_id = calc_field_wrapper.attr('id');\n\t\t\t\t\t\t\t\t\t\/\/ replace de_fb_ and _wrapper with empty string\n\t\t\t\t\t\t\t\t\tfield_id = field_id.replace('de_fb_', '').replace('_wrapper', '');\n\t\t\t\t\t\t\t\t\tvar field_type = calc_field_wrapper.find('.et_pb_contact_field').attr('data-type');\n\t\t\t\t\t\t\t\t\tvar check_values = 0;\n\t\t\t\t\t\t\t\t\tif ( field_type == 'checkbox' || field_type == 'radio' ) {\n\t\t\t\t\t\t\t\t\t\t$.each( calc_field_wrapper.find('input:checked'), function() {\n\t\t\t\t\t\t\t\t\t\t\tcheck_values =  check_values + parseFloat( $(this).attr('data-calc_value') );\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\tcalc_field_wrapper.append('<input type=\"hidden\" name=\"' + field_id + '_calc_value\" value=\"' + check_values + '\">');\n\t\t\t\t\t\t\t\t\t} else if ( field_type == 'select' ) {\n\t\t\t\t\t\t\t\t\t\tif ( calc_field_wrapper.find('select option:selected').length > 0 ) {\n\t\t\t\t\t\t\t\t\t\t\tcheck_values = parseFloat(calc_field_wrapper.find('select option:selected').attr('data-calc_value'));\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tcalc_field_wrapper.append('<input type=\"hidden\" name=\"' + field_id + '_calc_value\" value=\"' + check_values + '\">');\n\t\t\t\t\t\t\t\t\t}  else {\n\t\t\t\t\t\t\t\t\t\tif ( calc_field_wrapper.find('input:not([type=\"hidden\"])').val() == '' ) {\n\t\t\t\t\t\t\t\t\t\t\tvar calc_default_value = calc_field_wrapper.find('input:not([type=\"hidden\"])').attr('data-calc_default');\n\t\t\t\t\t\t\t\t\t\t\tcalc_field_wrapper.append('<input type=\"hidden\" name=\"' + field_id + '_calc_value\" value=\"' + calc_default_value + '\">');\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif ( form.find('.divi-form-submit').hasClass('de_fb_ajax_submit') && paymentEnabled !== 'on' ) {\n\t\t\t\t\t\t\t\t$(this).addClass('submitting');\n\t\t\t\t\t\t\t\tde_fb_ajax_form_submit( form[0] );\n\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif( paymentEnabled == 'off' || (paymentEnabled == 'on' && !stripeEnabled)){\n\t\t\t\t\t\t\t\t\t$(this).addClass('submitting');\n\t\t\t\t\t\t\t\t\tjQuery(\"#fb_form_null-0\").find('.fb_nonce').remove();\n\t\t\t\t\t\t\t\t\tjQuery(\"#fb_form_null-0\").append('<input type=\"hidden\" name=\"fb_nonce\" class=\"fb_nonce\" value=\"c6fee84345\">');\n\t\t\t\t\t\t\t\t\tif ( ( ! paymentInput.length || ! paymentInput.hasClass('input-error') ) ) {\n\t\t\t\t\t\t\t\t\t\tjQuery(\"#fb_form_null-0\").unbind('submit').submit();\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tform.find('.divi-form-submit').prop('disabled', false);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t                }\n\t\t\t\t    } else {\n\t\t\t\t    \te.preventDefault();\n\t\t\t\t    }\n\t\t\t\t    \/\/$(this).find('.divi-form-submit').removeProp('disabled');\n\t\t\t\t    \/\/$(this).find('.divi-form-submit').removeAttr('disabled');\n\t\t\t\t});\n\t\t\t});\n\t\t\t<\/script>\n\t\t\t\t\t\t<div class=\"de_fb_submit_container\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"divi-form-submit-container\">\n\t\t\t\t\t\t\t<button class=\"divi-form-submit et_pb_button \" type=\"submit\">&#8221;Registrar<\/button>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"form_type\" value=\"&#8221;register&#8221;\">\n\t\t\t\t\t<input type=\"hidden\" name=\"divi-form-submit\" value=\"yes\">\n\t\t\t\t\t<input type=\"hidden\" name=\"form_id\" value=\"\">\n\t\t\t\t\t<input type=\"hidden\" name=\"form_display_type\" value=\"\">\n\t\t\t\t\t<input type=\"hidden\" name=\"product_name\" value=\"\">\n\t\t\t\t<\/div>\n<input type=\"text\" name=\"form_type_confirm\" style=\"display:none!important;\" tabindex=\"-1\" autocomplete=\"off\">\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/form>\n\n<script>\n\tjQuery(document).ready(function($) {\n    \t\/\/ Store the original URL validation method\n    \tlet old_url = jQuery.validator.methods.url;\n    \n    \t\/\/ Overwrite the 'url' method of the validator\n    \tjQuery.validator.addMethod('url', function(value, element) {\n        \t\/\/ Try the original validator\n        \tif (old_url.call(this, value, element)) {\n            \treturn true;\n        \t}\n        \n        \t\/\/ Try with 'http:\/\/' prepended, if the original value does not pass\n        \tif (value && !value.startsWith('http:\/\/') && !value.startsWith('https:\/\/')) {\n            \treturn old_url.call(this, 'http:\/\/' + value, element);\n        \t}\n        \n        \t\/\/ Fallback to false if neither check passes\n        \treturn false;\n    \t}, 'Please enter a valid URL.');\n\n    \t$('#fb_form_null-0').validate({\n        \tnormalizer: function(value) {\n            \t\/\/ Trim the value of every element\n            \treturn $.trim(value);\n        \t},\n        \terrorPlacement: function(error, element) {\n\t\t\t\tvar message_position = element.attr('data-required_position');\n\t\t\t\tif ( message_position == 'top' ) {\n\t\t\t\t\telement.before(error);\n\t\t\t\t} else {\n\t\t\t\t\telement.after(error);\n\t\t\t\t}\n            \t\/\/ element.parent().append(error); \/\/ default error placement\n        \t}\n    \t});\n\n    \tif ($('.de_fb_autocomplete').length > 0 && typeof init_autocomplete_fields == 'function') {\n        \tinit_autocomplete_fields();\n    \t}\n\t});\n\t\n\tif ( window.history.replaceState ) {\n\t  window.history.replaceState( null, null, window.location.href );\n\t}\n\n\tif ( typeof form_grid_columns === 'function' ) {\n\t\tform_grid_columns();\n\t}\n<\/script>\n\n\n\t\t\t\t<\/div>\n\t\t\t<\/div><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","_uag_custom_page_level_css":"","footnotes":""},"class_list":["post-1623","page","type-page","status-publish","hentry"],"acf":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"et-pb-post-main-image":false,"et-pb-post-main-image-fullwidth":false,"et-pb-portfolio-image":false,"et-pb-portfolio-module-image":false,"et-pb-portfolio-image-single":false,"et-pb-gallery-module-image-portrait":false,"et-pb-post-main-image-fullwidth-large":false,"et-pb-image--responsive--desktop":false,"et-pb-image--responsive--tablet":false,"et-pb-image--responsive--phone":false},"uagb_author_info":{"display_name":"CiudadViva","author_link":"https:\/\/ciudadviva.link\/?author=1"},"uagb_comment_info":0,"uagb_excerpt":"Registrate para que puedas empezar a compartir informaci\u00f3n de lo que pasa en tu ciudad. Una vez registrado podras reportar, condiciones y estado de los diferentes espacios urbanos, situaciones, conflictos y eventos que se presenten en tu ciudad, o en la ciudad en que te encuentres.[de_fb_form title=\"Registro de Usuario\" form_type=\"register\" default_user_role=\"author\" submit_button_text=\"Registrar Usuario\" success_message=\"Te has&hellip;","_links":{"self":[{"href":"https:\/\/ciudadviva.link\/index.php?rest_route=\/wp\/v2\/pages\/1623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ciudadviva.link\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ciudadviva.link\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ciudadviva.link\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ciudadviva.link\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1623"}],"version-history":[{"count":9,"href":"https:\/\/ciudadviva.link\/index.php?rest_route=\/wp\/v2\/pages\/1623\/revisions"}],"predecessor-version":[{"id":2070,"href":"https:\/\/ciudadviva.link\/index.php?rest_route=\/wp\/v2\/pages\/1623\/revisions\/2070"}],"wp:attachment":[{"href":"https:\/\/ciudadviva.link\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}