{"id":1706,"date":"2023-07-17T18:37:49","date_gmt":"2023-07-17T23:37:49","guid":{"rendered":"https:\/\/ciudadviva.link\/?page_id=1706"},"modified":"2023-09-14T20:16:43","modified_gmt":"2023-09-15T01:16:43","slug":"nuevo-reporte","status":"publish","type":"page","link":"https:\/\/ciudadviva.link\/?page_id=1706","title":{"rendered":"NUEVO REPORTE"},"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 _builder_version=&#8221;4.21.0&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#E09900&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#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; text_text_color=&#8221;#000000&#8243; text_font_size=&#8221;24px&#8221; text_text_shadow_style=&#8221;preset5&#8243; text_text_shadow_horizontal_length=&#8221;0.08em&#8221; text_text_shadow_vertical_length=&#8221;0.08em&#8221; text_text_shadow_blur_strength=&#8221;0em&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>NUEVO REPORTE CIUDADANO<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.22.1&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.22.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][de_fb_form title=&#8221;Nuevo Reporte&#8221; form_id=&#8221;Nuevo Reporte&#8221; form_type=&#8221;reportes&#8221; submit_button_text=&#8221;PUBLICAR REPORTE&#8221; hide_until_loaded=&#8221;off&#8221; use_preload_animation=&#8221;on&#8221; preload_anim_style=&#8221;load-5&#8243; default_post_status=&#8221;request-pending&#8221; no_permission_notice=&#8221;Se requiere autorizacion para editar esta publicacion&#8221; redirect_after_success=&#8221;on&#8221; success_message=&#8221;Gracias tu reporte sera verificado y publicado&#8221; redirect_url_after_submission=&#8221;https:\/\/ciudadviva.link\/&#038;page_id=1561&#8243; failed_message=&#8221;Reporte no enviado&#8221; use_custom_email=&#8221;off&#8221; custom_contact_email=&#8221;ciudadvivalat@gmail.com&#8221; google_recaptcha=&#8221;on&#8221; _builder_version=&#8221;4.22.1&#8243; _module_preset=&#8221;default&#8221; _unique_id=&#8221;1dd4caac-914c-42f6-82ed-c92aa814cd1a&#8221; custom_button=&#8221;on&#8221; button_text_color=&#8221;#FFFFFF&#8221; button_bg_color=&#8221;#E09900&#8243; button_font=&#8221;|700|||||||&#8221; button_icon=&#8221;&#xf1d8;||fa||900&#8243; button_icon_color=&#8221;#FFFFFF&#8221; hover_enabled=&#8221;0&#8243; box_shadow_style_button=&#8221;preset2&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243; button_alignment=&#8221;center&#8221;][de_fb_form_field field_title=&#8221;Titulo de Reporte&#8221; admin_title=&#8221;Titulo de Reporte&#8221; field_id=&#8221;titulo-de-reporte&#8221; required_mark=&#8221;on&#8221; required_message=&#8221;Campo requerido&#8221; post_default_field=&#8221;post_title&#8221; field_label_position=&#8221;top&#8221; field_placeholder=&#8221;Escribe un titulo para tu publicacion&#8221; _builder_version=&#8221;4.22.1&#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;Imagen Destacada&#8221; admin_title=&#8221;Imagen Destcada&#8221; field_id=&#8221;imagen-destacada&#8221; field_type=&#8221;image&#8221; add_field_prefix=&#8221;off&#8221; hide_upload_prev_progressbar=&#8221;on&#8221; max_upload_file_counts=&#8221;1&#8243; max_file_counts_error=&#8221;Has excedido el maximo de archivos&#8221; max_upload_file_size_error=&#8221;La imagen excede el tama\u00f1o permitido&#8221; accepted_file_types_image=&#8221;jpeg,png&#8221; accepted_file_types_image_error=&#8221;El archivo cargado debe ser jpeg o png.&#8221; edit_button_text=&#8221;Cargar imagen&#8221; close_edit_button_text=&#8221;Cerrar&#8221; remove_file_from_media=&#8221;on&#8221; remove_file_confirm_message=&#8221;Desea remover el archivo?&#8221; required_mark=&#8221;on&#8221; required_message=&#8221;Este campo es requerido&#8221; post_default_field=&#8221;post_thumbnail&#8221; upload_description=&#8221;Arraste las imagenes o haga clik aqui para cargar&#8221; upload_icon_style=&#8221;camera&#8221; field_label_position=&#8221;top&#8221; _builder_version=&#8221;4.22.1&#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;Descricion&#8221; admin_title=&#8221;Descripcion&#8221; field_id=&#8221;descripcion&#8221; field_type=&#8221;text&#8221; use_wysiwyg_editor=&#8221;on&#8221; textarea_limit=&#8221;265&#8243; required_mark=&#8221;on&#8221; required_message=&#8221;Este campo es requerido&#8221; post_default_field=&#8221;post_content&#8221; field_label_position=&#8221;top&#8221; field_placeholder=&#8221;escribe aqu\u00ed una breve descripcion&#8221; _builder_version=&#8221;4.22.1&#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;Categorias&#8221; admin_title=&#8221;Categorias&#8221; field_id=&#8221;categorias&#8221; field_type=&#8221;select&#8221; select_auto_detect=&#8221;on&#8221; required_mark=&#8221;on&#8221; required_message=&#8221;Este campo es requerido&#8221; field_mapping_type=&#8221;reportes_taxonomy&#8221; field_grid_column=&#8221;et_pb_column_1_3&#8243; field_label_position=&#8221;top&#8221; reportes_taxonomy_field=&#8221;reportes_category&#8221; _builder_version=&#8221;4.22.1&#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;Etiquetas&#8221; admin_title=&#8221;Etiquetas&#8221; field_id=&#8221;etiquetas&#8221; field_type=&#8221;select&#8221; select_auto_detect=&#8221;on&#8221; required_mark=&#8221;on&#8221; required_message=&#8221;Este campo es requerido&#8221; field_mapping_type=&#8221;reportes_taxonomy&#8221; field_grid_column=&#8221;et_pb_column_1_3&#8243; field_label_position=&#8221;top&#8221; reportes_taxonomy_field=&#8221;reportes_tag&#8221; _builder_version=&#8221;4.22.1&#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;Ciudad&#8221; admin_title=&#8221;Ciudad&#8221; field_id=&#8221;ciudad&#8221; field_type=&#8221;select&#8221; select_auto_detect=&#8221;on&#8221; select_placeholder=&#8221;on&#8221; select_placeholder_text=&#8221;Selecciona una Ciudad&#8221; required_mark=&#8221;on&#8221; required_message=&#8221;Este campo es requerido&#8221; field_mapping_type=&#8221;acf&#8221; acf_field=&#8221;field_64cab3573ccf8&#8243; field_grid_column=&#8221;et_pb_column_1_3&#8243; field_label_position=&#8221;top&#8221; field_placeholder=&#8221;Selecciona la ciudad&#8221; _builder_version=&#8221;4.22.1&#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;Localizar&#8221; admin_title=&#8221;Localizar&#8221; field_id=&#8221;localizar&#8221; field_type=&#8221;checkbox&#8221; checkbox_auto_detect=&#8221;on&#8221; required_mark=&#8221;on&#8221; required_message=&#8221;Este campo es requerido&#8221; field_mapping_type=&#8221;acf&#8221; acf_field=&#8221;field_64cbb5c3956ca&#8221; field_label_position=&#8221;top&#8221; checkbox_radio_inline=&#8221;on&#8221; _builder_version=&#8221;4.22.1&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; form_step=&#8221;0&#8243; current_step=&#8221;0&#8243; radio_checkbox_field_style=&#8221;button&#8221; checkbox_radio_inline_full=&#8221;on&#8221; sticky_enabled=&#8221;0&#8243;][\/de_fb_form_field][de_fb_form_field field_title=&#8221;Localizacion&#8221; admin_title=&#8221;Localizacion&#8221; field_id=&#8221;localizacion&#8221; required_mark=&#8221;on&#8221; required_message=&#8221;Este campo es requerido&#8221; field_mapping_type=&#8221;acf&#8221; acf_field=&#8221;field_64cbb2e0956c8&#8243; field_label_position=&#8221;top&#8221; field_placeholder=&#8221;Inserta una direccion&#8221; use_icon=&#8221;on&#8221; font_icon=&#8221;&#xf21d;||fa||900&#8243; _builder_version=&#8221;4.22.1&#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;Inicio&#8221; admin_title=&#8221;Inicio&#8221; field_id=&#8221;inicio&#8221; field_type=&#8221;datetimepicker&#8221; required_mark=&#8221;on&#8221; required_message=&#8221;Este campo es requerido&#8221; field_mapping_type=&#8221;acf&#8221; acf_field=&#8221;field_64cc230cb2fff&#8221; field_grid_column=&#8221;et_pb_column_1_4&#8243; field_label_position=&#8221;top&#8221; field_placeholder=&#8221;Inserta fecha de inicio&#8221; _builder_version=&#8221;4.22.1&#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;Fin&#8221; admin_title=&#8221;Fin&#8221; field_id=&#8221;fin&#8221; field_type=&#8221;datetimepicker&#8221; required_mark=&#8221;on&#8221; required_message=&#8221;Este campo es requerido&#8221; field_mapping_type=&#8221;acf&#8221; acf_field=&#8221;field_64cc37e44ef11&#8243; field_grid_column=&#8221;et_pb_column_1_4&#8243; field_label_position=&#8221;top&#8221; field_placeholder=&#8221;Inserta fecha final&#8221; _builder_version=&#8221;4.22.1&#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;Galeria&#8221; admin_title=&#8221;Galeria&#8221; field_id=&#8221;galeria&#8221; field_type=&#8221;image&#8221; max_upload_file_counts=&#8221;3&#8243; accepted_file_types_image=&#8221;jpeg,png&#8221; edit_button_text=&#8221;Cambiar Imagen&#8221; close_edit_button_text=&#8221;Cerrar&#8221; field_mapping_type=&#8221;acf&#8221; acf_field=&#8221;field_64cbb304956c9&#8243; upload_icon_style=&#8221;upload&#8221; field_label_position=&#8221;top&#8221; _builder_version=&#8221;4.22.1&#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>NUEVO REPORTE CIUDADANO<div class=\"et_pb_module de_fb_form de_fb_form_0 clearfix  align-button_center 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   \"\n                data-ajax-btn=\"Processing\"\n                data-ajax-hide-sub=\"off\"\n                data-reset-form-on-submit=\"true\"\n                style=\"\">\n\t\t\t\t<div class=\"preloader form_loading load-5\">\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\">Nuevo Reporte<\/h3>\n\t\t\t\t\t\t<div class=\"divi-form-wrapper\">\n                <input type=\"hidden\" value=\"request-pending\" name=\"post_status\">                 \t\t\t<\/div>\n<input type=\"hidden\" value=\"https:\/\/ciudadviva.link\/&#038;page_id=1561\" name=\"redirect_url_after_submission\"><input type=\"hidden\" value=\"null-0\" name=\"form_key\"><input type=\"hidden\" value=\"1dd4caac-914c-42f6-82ed-c92aa814cd1a\" 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 src=\"https:\/\/www.google.com\/recaptcha\/api.js\" async defer id=\"fb-recaptcha-v2-null-0\"><\/script> \t\t\t<div class=\"g-recaptcha captcha-field\" data-sitekey=\"\"><\/div>\n\t\t\t<script>\n\t\t\tjQuery(document).ready(function($){\n\t\t\t\t\tjQuery(\"#fb_form_null-0\").submit(function(e){\n\t\t\t\t\t\t$(this).find('.divi-form-submit').prop('disabled', true);\n\t\t\t\t\t\tvar required_check = true;\n\t\t\t\t\t\tvar form = jQuery(this);\n                        let required_fields = $('.required',form);\n\t\t\t\t\t\tlet paymentField = $(this).find('input[name=\"de_fb_payment_amount\"]');\n\t\t\t\t\t\tlet paymentInput = $(this).find('input[name=\"custom_price\"]');\n\t\t\t\t\t\tlet paymentErrors = $(this).find('.payment-errors').length > 0;\n\t\t\t\t\t\tvar stripeEnabled = $(this).hasClass('de_fb_gateway_stripe_form');\n\t\t\t\t\t\tvar paymentEnabled = $(this).find('input[name=\"enable_payment\"]').val();\n\t\t\t\t\t\tvar showTc = $(this).find('input[name=\"show_tc\"]').val();\n\t\t\t\t\t\tvar recaptchaResponse = grecaptcha.getResponse();\n\t\t\t\t\t\tlet recaptchaField = $(this).find('.g-recaptcha');\n\t\t\t\t\t\tlet stripeErrorMessages = {};\n\n\t\t\t\t\t\trecaptchaField.next('.error').remove();\n\t\t\t\t\t\t\n                        if ( required_fields.length > 0 ) {\n                            $.each(required_fields, function (index, element) {\n                            \t\/\/ If this is bloom subscribe checkbox\n                            \t$(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\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                                    \tvar 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\t\t\t\t\t\t\t\t\t\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                            });\n                        }\n\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\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\t    var validation_result = form.valid();\n\n\t\t\t\t\t    if ( !validation_result ) {\n\t\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    \t$(this).find('.divi-form-submit').removeProp('disabled');\n\t\t\t\t    \t\t$(this).find('.divi-form-submit').removeAttr('disabled');\n\t\t\t\t\t    \treturn false;\n\t\t\t\t\t    }\n\n\t\t\t\t\t\tif(parseFloat(paymentField.val()) <= 0){\n\t\t\t\t\t\t\tform.find('.plan-price').find('.payment-error', '.error').remove();\n\t\t\t\t\t\t\tif(form.find('.plan-price .payment-error').length === 0){\n\t\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\t}\n\t\t\t\t\t\t\trequired_check = false;\n\t\t\t\t\t\t\tpaymentField.addClass('input-error');\n\t\t\t\t\t\t\tform.find('.divi-form-submit').removeProp('disabled');\n\t\t\t\t\t\t\tform.find('.divi-form-submit').removeAttr('disabled');\n\t\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    \t$.each( $(this).find('.signature-field'), function(i) {\n\t\t\t\t\t    \t\tvar field_id = $(this).find('input').attr('id');\n\t\t\t\t\t    \t\t$(\"#\" + field_id).val( fb_signature.signature_objs['signaturePad_' + field_id].toDataURL() );\n\t\t\t\t\t    \t});\n\t\t\t\t\t    }\n\t\t\t\t\t\tif(showTc){\t\n\t\t\t\t\t\t\tlet activeTab = form.find(\".gateway-form:visible\"); \/\/ Finds the visible payment gateway tab\n\t\t\t\t\t\t\tlet tcCheck = activeTab.find(\"input[type='checkbox']\");\n\n\t\t\t\t\t\t\tform.find('.tcerror').remove();\n\t\t\t\t\t\t\tif (!tcCheck.is(\":checked\")) {\n\t\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\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}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t    if ( required_check ) {\n\t\t\t\t\t    \te.preventDefault();\n\t\t\t\t\t    \tvar recaptchaResponse = grecaptcha.getResponse();\n\t\t\t\t\t\t\tlet recaptchaField = $('.g-recaptcha');\n        \t\t\t\t\trecaptchaField.next('.error').remove();\n\n\t\t\t\t\t\t\tif (recaptchaResponse.length !== 0) {\n\t\t\t\t\t\t\t\tif ( form.find('.file_preview_container .template-upload').length > 0 ) {\n\t\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\t\t$(this).addClass('submitting');\n\t\t\t\t                \tde_fb_ajax_files_upload( form );\n\t\t\t\t                } else {\n\t\t\t\t\t\t\t\t\tif ( form.find('.calculate_field').length > 0 ) {\n\t\t\t\t\t\t\t\t\t\t$('.calculation').hide();\n\t\t\t\t\t\t\t\t\t\t$.each(form.find('.calculate_field'), function() {\n\t\t\t\t\t\t\t\t\t\t\tvar calc_field_wrapper = $(this);\n\t\t\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\t\t\/\/ replace de_fb_ and _wrapper with empty string\n\t\t\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\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\t\t\tvar check_values = 0;\n\t\t\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\t\t$.each( calc_field_wrapper.find('input:checked'), function() {\n\t\t\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\t\t});\n\t\t\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\t\t} else if ( field_type == 'select' ) {\n\t\t\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\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\t\t}\n\t\t\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\t\t} else {\n\t\t\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\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\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\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\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                \tif ( form.find('.divi-form-submit').hasClass('de_fb_ajax_submit') && paymentEnabled !== 'on') {\n\t\t\t\t\t\t\t\t\t\t$(this).addClass('submitting');\n\t\t\t\t\t                \tde_fb_ajax_form_submit( form[0] );\n\t\t\t\t\t                \te.preventDefault();\n\t\t\t\t\t                } else {\n\t\t\t\t\t\t\t\t\t\tif(paymentEnabled !== 'on' || ( paymentEnabled == 'on' && !stripeEnabled )){\n\t\t\t\t\t\t\t\t\t\t\t$(this).addClass('submitting');\n\t\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\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\t\t\n\t\t\t\t\t\t\t\t\t\t\tif (( !paymentInput.length || !paymentInput.hasClass('input-error') ) && ( !stripeEnabled || (stripeEnabled && !paymentErrors) )) {\n\t\t\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\t\t} else {\n\t\t\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\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t                }\t\n\t\t\t\t                }\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$(\".g-recaptcha\").after('<p class=\"error\" style=\"color:red\">Please check the reCAPTCHA.<\/p>');\n\t\t\t\t\t\t\t\tform.find('.divi-form-submit').prop('disabled', false);\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t    } else {\n\t\t\t\t\t    \te.preventDefault();\n\t\t\t\t\t    }\n\t\t\t\t\t\tif (recaptchaResponse.length === 0) {\n\t\t\t\t\t\t\t$(\".g-recaptcha\").after('<p class=\"error\" style=\"color:red\">Please check the reCAPTCHA.<\/p>');\n\t\t\t\t\t\t\tform.find('.divi-form-submit').prop('disabled', false);\n\t\t\t\t\t\t}\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\t\t\n\t\t\t\t\t\tif (stripeEnabled) {\n\t\t\t\t\t\t\t\/\/ form.find('.divi-form-submit').prop('disabled', true);\n\n\t\t\t\t\t\t\tlet stripeKey = $(this).find('#card-element').data('consumer-key');\n\t\t\t\t\t\t\tif (stripeKey) {\n\t\t\t\t\t\t\t\tStripe.setPublishableKey(stripeKey);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tlet cvcField = $(this).find('.card-cvc');\n\t\t\t\t\t\t\tcvcField.on('input', function () {\n\t\t\t\t\t\t\t\tform.find('.cvcerror').remove();\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tlet cvcValid = cvcField.val().trim() !== \"\";\n\t\t\t\t\t\t\tform.find('.cvcerror').remove();\n\t\t\t\t\t\t\tif (!cvcValid) {\n\t\t\t\t\t\t\t\tcvcField.after('<p class=\"cvcerror\">CVC is required.<\/p>');\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}\t\t\t\n\n\t\t\t\t\t\t\t$.ajax({\n\t\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\t\ttype: \"POST\",\n\t\t\t\t\t\t\t\tdata: { action: \"get_stripe_error_messages\" },\n\t\t\t\t\t\t\t\tsuccess: function (response) {\n\t\t\t\t\t\t\t\t\tstripeErrorMessages = response; \/\/ Store messages globally\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\terror: function () {\n\t\t\t\t\t\t\t\t\tconsole.error(\"Failed to load Stripe error messages.\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\t\t\t\t\n\n\t\t\t\t\t\t\tStripe.createToken({\n\t\t\t\t\t\t\t\tnumber: $(this).find('.card-number').val(),\n\t\t\t\t\t\t\t\tcvc: $(this).find('.card-cvc').val(),\n\t\t\t\t\t\t\t\texp_month: $(this).find('.card-expiry-month').val(),\n\t\t\t\t\t\t\t\texp_year: $(this).find('.card-expiry-year').val(),\n\t\t\t\t\t\t\t}, function (status, response) {\n\t\t\t\t\t\t\t\tif (response.error) {\n\t\t\t\t\t\t\t\t\tlet errorType = response.error.code;\n\t\t\t\t\t\t\t\t\tlet errorMessage = stripeErrorMessages[errorType] || response.error.message;\n\t\t\t\t\t\t\t\t\tform.find(\".payment-errors\").html(errorMessage);\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\treturn false;\n\t\t\t\t\t\t\t\t} else {\n\t\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\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\t\tif (form.find('.divi-form-submit').hasClass('de_fb_ajax_submit')) {\n\t\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\t\n\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\t\t\t\tlet formElement = form[0];  \n\t\t\t\t\t\t\t\t\t\t\tif (formElement instanceof HTMLFormElement) {\n\t\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\t} else {\n\t\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\t}\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tif(paymentEnabled == 'on' && recaptchaResponse.length !== 0){\n\t\t\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\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\t\t\tform.unbind('submit').submit();\n\t\t\t\t\t\t\t\t\t\t\t}\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\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\n\t\t\t\t\t\t\treturn false; \/\/ Prevent default submission while Stripe processes\n\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\t<\/script>\n\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\">PUBLICAR REPORTE<\/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=\"reportes\">\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=\"Nuevo Reporte\">\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><div class=\"et_pb_module de_fb_form_field de_fb_form_field_0 clearfix  grid_et_pb_column_4_4_12 et_pb_column_4_4 et_pb_column\">\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<div id=\"de_fb__wrapper\" class=\"field_wrapper search_filter_cont \" data-count=\"100\" >\r\n\t\t\t\t\t\t\t\t<p class=\"et_pb_contact_field\" data-type=\"input\">\r\n\t\t\t<input type=\"hidden\" name=\"field_title[]\" value=\"&#8221;Titulo\"\/>\t\t\t\t\t\t\t<input type=\"text\" name=\"de_fb_\" id=\"de_fb_\" data-calc_default=\"0\" placeholder=\"&#8221;Titulo\"   class=\"divi-form-builder-field input-field \"  value=\"\"  autocomplete=\"on\" \/>\r\n\t\t\t\t\t\t\t\t\t<\/p>\r\n\r\n\t\t\t\t\t<\/div>\r\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-1706","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":"NUEVO REPORTE CIUDADANO[de_fb_form title=\"Nuevo Reporte\" form_id=\"Nuevo Reporte\" form_type=\"reportes\" submit_button_text=\"PUBLICAR REPORTE\" hide_until_loaded=\"off\" use_preload_animation=\"on\" preload_anim_style=\"load-5\" default_post_status=\"request-pending\" no_permission_notice=\"Se requiere autorizacion para editar esta publicacion\" redirect_after_success=\"on\" success_message=\"Gracias tu reporte sera verificado y publicado\" redirect_url_after_submission=\"https:\/\/ciudadviva.link\/&page_id=1561\" failed_message=\"Reporte no enviado\" use_custom_email=\"off\" custom_contact_email=\"ciudadvivalat@gmail.com\" google_recaptcha=\"on\" _builder_version=\"4.22.1\" _module_preset=\"default\" _unique_id=\"1dd4caac-914c-42f6-82ed-c92aa814cd1a\" custom_button=\"on\" button_text_color=\"#FFFFFF\" button_bg_color=\"#E09900\" button_font=\"|700|||||||\" button_icon=\"&#xf1d8;||fa||900\" button_icon_color=\"#FFFFFF\" hover_enabled=\"0\" box_shadow_style_button=\"preset2\" global_colors_info=\"{}\" sticky_enabled=\"0\" button_alignment=\"center\"][de_fb_form_field field_title=\"Titulo de Reporte\" admin_title=\"Titulo de&hellip;","_links":{"self":[{"href":"https:\/\/ciudadviva.link\/index.php?rest_route=\/wp\/v2\/pages\/1706","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=1706"}],"version-history":[{"count":29,"href":"https:\/\/ciudadviva.link\/index.php?rest_route=\/wp\/v2\/pages\/1706\/revisions"}],"predecessor-version":[{"id":2253,"href":"https:\/\/ciudadviva.link\/index.php?rest_route=\/wp\/v2\/pages\/1706\/revisions\/2253"}],"wp:attachment":[{"href":"https:\/\/ciudadviva.link\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}