{"id":105,"date":"2019-11-14T17:19:03","date_gmt":"2019-11-14T20:19:03","guid":{"rendered":"https:\/\/www.ridearentals.com\/es\/?page_id=105"},"modified":"2020-08-11T19:13:07","modified_gmt":"2020-08-11T22:13:07","slug":"verificar-identidad","status":"publish","type":"page","link":"https:\/\/ridea.cl\/es\/verificar-identidad\/","title":{"rendered":"Verificar Identidad"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_custom_heading text=&#8221;Control de identidad para prevenir fraude y asegurar verificaci\u00f3n de usuarios.&#8221; font_container=&#8221;tag:h1|font_size:35|text_align:center&#8221; google_fonts=&#8221;font_family:Abel%3Aregular|font_style:400%20regular%3A400%3Anormal&#8221;][vc_column_text]<\/p>\n<p style=\"text-align: center;\">Sigue los pasos para poder ser un socio autorizado y poder completar la verificaci\u00f3n de tu identidad.<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column width=&#8221;1\/2&#8243;][vc_column_text]<\/p>\n<p class=\"p1\" style=\"text-align: center;\"><strong>1) SELFIE DE TU ROSTRO<\/strong><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" style=\"box-shadow: none !important;border-radius: none !important; display: block !important;\" src=\"https:\/\/ridea.cl\/es\/wp-content\/uploads\/2020\/05\/selfie-.png\" class=\"ecf-138-modal-opener\" id=\"wxirbn-modal-opener\">\r\n    <!-- START Dynamic CSS for Form ID: 138 -->\r\n    <style>#wxirbn-form-modal-overlay + .ecf-form .input input, #wxirbn-form-modal-overlay + .ecf-form .select select, #wxirbn-form-modal-overlay + .ecf-form .textarea textarea, #wxirbn-form-modal-overlay + .ecf-form .radio i, #wxirbn-form-modal-overlay + .ecf-form .checkbox i, #wxirbn-form-modal-overlay + .ecf-form .toggle i, #wxirbn-form-modal-overlay + .ecf-form .ecficon-append, #wxirbn-form-modal-overlay + .ecf-form .ecficon-prepend { color: #404040 !important;}\n#wxirbn-form-modal-overlay + .ecf-form  .state-success.input input, #wxirbn-form-modal-overlay + .ecf-form .state-success.select select, #wxirbn-form-modal-overlay + .ecf-form .state-success.textarea textarea, #wxirbn-form-modal-overlay + .ecf-form .state-success.radio i, #wxirbn-form-modal-overlay + .ecf-form .state-success.checkbox i, #wxirbn-form-modal-overlay + .ecf-form .state-success.toggle i, #wxirbn-form-modal-overlay + .ecf-form .state-success .ecficon-append, #wxirbn-form-modal-overlay + .ecf-form .state-success .ecficon-prepend { background: #f0fff0 !important;}\n#wxirbn-form-modal-overlay + .ecf-form  .state-error.input input, #wxirbn-form-modal-overlay + .ecf-form .state-error.select select, #wxirbn-form-modal-overlay + .ecf-form .state-error.textarea textarea, #wxirbn-form-modal-overlay + .ecf-form .state-error.radio i, #wxirbn-form-modal-overlay + .ecf-form .state-error.checkbox i, #wxirbn-form-modal-overlay + .ecf-form .state-error.toggle i, #wxirbn-form-modal-overlay + .ecf-form .state-error .ecficon-append, #wxirbn-form-modal-overlay + .ecf-form .state-error .ecficon-prepend { background: #fff3f3 !important;}\n#wxirbn-form-modal-overlay + .ecf-form .ecficon-prepend { color: #CCC !important;}\n#wxirbn-form-modal-overlay + .ecf-form .input input, #wxirbn-form-modal-overlay + .ecf-form .select select, #wxirbn-form-modal-overlay + .ecf-form .textarea textarea, #wxirbn-form-modal-overlay + .ecf-form .radio i, #wxirbn-form-modal-overlay + .ecf-form .checkbox i, #wxirbn-form-modal-overlay + .ecf-form .toggle i, #wxirbn-form-modal-overlay + .ecf-form .ecficon-append, #wxirbn-form-modal-overlay + .ecf-form .ecficon-prepend { border-color: #E5E5E5;}\n#wxirbn-form-modal-overlay + .ecf-form section {margin-bottom: 20px !important;}\n#wxirbn-form-modal-overlay + #form-wxirbn fieldset {background: none;}\n#wxirbn-form-modal-overlay + {padding: 40px;}\n#wxirbn-form-modal-overlay + .ecf-form {color: #666666 !important;}\n#wxirbn-form-modal-overlay + {max-width: 440px;}\n#wxirbn-form-modal-overlay + #form-wxirbn {background: none repeat scroll 0% 0% rgba(255,255,255, 1); border: solid 1px #d6d6d6;}\n#wxirbn-form-modal-overlay + #form-wxirbn {box-shadow: 0px 0px 10px rgba(56,56,56, 0.3) !important;}\n#wxirbn-form-modal-overlay + #form-wxirbn header {background: none repeat scroll 0% 0% rgba(248,248,248, 1); font-size: 25px !important; font-weight: normal !important; color: #707070; font-family: Open Sans;}\n#wxirbn-form-modal-overlay + .ecf-form .label {font-size: 13px !important; font-weight: normal !important; color: #666; font-family: Open Sans;}\n#wxirbn-form-modal-overlay + .ecf-form .ecfbutton, #wxirbn-form-modal-overlay + .ecf-form .input-file .ecfbutton {font-size: 15px !important; font-weight: normal !important; color: #ffffff; font-family: Open Sans !important;}\n#wxirbn-form-modal-overlay + #form-wxirbn footer {background: none repeat scroll 0% 0% rgba(248,248,248, 1);}\n#wxirbn-form-modal-overlay + .ecf-form .input input,#wxirbn-form-modal-overlay + .ecf-form .select select,#wxirbn-form-modal-overlay + .ecf-form .textarea textarea {background: #ffffff;}\n#wxirbn-form-modal-overlay + .ecf-form .toggle i:before {background-color: #2da5da;}\n#wxirbn-form-modal-overlay + .ecf-form .button {background-color: #2da5da;}\n#wxirbn-form-modal-overlay + .ecf-form .input:hover input,\n#wxirbn-form-modal-overlay + .ecf-form .select:hover select,\n#wxirbn-form-modal-overlay + .ecf-form .textarea:hover textarea,\n#wxirbn-form-modal-overlay + .ecf-form .radio:hover i,\n#wxirbn-form-modal-overlay + .ecf-form .checkbox:hover i,\n#wxirbn-form-modal-overlay + .ecf-form .toggle:hover i,\n#wxirbn-form-modal-overlay + .ecf-form .ui-slider-handle:hover {border-color: #2da5da;}\n#wxirbn-form-modal-overlay + .ecf-form .ui-slider-handle:hover {border-color: #2da5da;}\n#wxirbn-form-modal-overlay + .ecf-form .rating input + label:hover,\n#wxirbn-form-modal-overlay + .ecf-form .rating input + label:hover ~ label {color: #2da5da;}\n#wxirbn-form-modal-overlay + .ecf-form .input input:focus,\n#wxirbn-form-modal-overlay + .ecf-form .select select:focus,\n#wxirbn-form-modal-overlay + .ecf-form .textarea textarea:focus,\n#wxirbn-form-modal-overlay + .ecf-form .radio input:focus + i,\n#wxirbn-form-modal-overlay + .ecf-form .checkbox input:focus + i,\n#wxirbn-form-modal-overlay + .ecf-form .toggle input:focus + i {border-color: #2da5da;}\n#wxirbn-form-modal-overlay + .ecf-form .radio input + i:after {background-color: #2da5da;}\n#wxirbn-form-modal-overlay + .ecf-form .checkbox input + i:after {color: #2da5da;}\n#wxirbn-form-modal-overlay + .ecf-form .radio input:checked + i,\n#wxirbn-form-modal-overlay + .ecf-form .checkbox input:checked + i,\n#wxirbn-form-modal-overlay + .ecf-form .toggle input:checked + i {border-color: #2da5da;}\n#wxirbn-form-modal-overlay + .ecf-form .rating input:checked ~ label {color: #2da5da;}\n#wxirbn-form-modal-overlay + .ecf-form .ecfbutton { background-color: #545454;} #wxirbn-form-modal-overlay + .ecf-form .ecfbutton:hover{background-color: #545454;color: #fff; outline:none !important;}\n<\/style>\r\n      <!-- END  Dynamic CSS for Form ID: 138 -->\r\n\r\n    <!-- START JS for Form ID: 138 -->\r\n\r\n<style>\r\n#form-wxirbn {\r\n\tz-index: 9999991;\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n\tmax-width: 440px;\r\n\t}\r\n\r\n#wxirbn-form-modal-overlay {\r\n\tz-index: 999999;\r\n\tposition: fixed;\r\n\tdisplay: none;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tcursor : pointer;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tbackground: rgba(0,0,0,0.7);\r\n}\r\n\r\n#form-wxirbn fieldset {background: none;}\n\r\n\r\n\n\r\n\r\n#form-wxirbn {background: none repeat scroll 0% 0% rgba(255,255,255, 1); border: solid 1px #d6d6d6;}\n\r\n\r\n.ecf-138-modal-opener { cursor: pointer; color: #cf4343 !important; }\r\n.ecf-138-modal-opener:hover { text-decoration: underline;}\r\n<\/style>\r\n\t<script type=\"text\/javascript\">\r\n\t\tjQuery(document).ready(function($) {\r\n\r\n\t\tvar wxirbntime = '01:20:28';\r\n\r\n\t\t\r\n\tformwxirbn = $('#form-wxirbn');\r\n\toverlaywxirbn = $('#wxirbn-form-modal-overlay');\r\n\r\n\toverlaywxirbn.appendTo(document.body);\r\n\tformwxirbn.appendTo(document.body);\r\n\r\n\t$('#wxirbn-modal-opener').on('click', function() {\r\n\r\n\t\tvar offset = $(document).scrollTop();\r\n\t\tvar currentTop = offset;\r\n\t\tvar curLeft =  Math.max(0, $(window).width());\r\n\t\tvar finaLeft = curLeft\/2-(formwxirbn.outerWidth()\/2);\r\n\r\n\t\toverlaywxirbn.fadeIn();\r\n\t\tformwxirbn.fadeIn();\r\n\r\n    \tformwxirbn.css({\r\n\t\t\t'top': currentTop - formwxirbn.outerHeight() - 60,\r\n\t\t\t'left': overlaywxirbn.outerWidth()\/2 - formwxirbn.outerWidth()\/2,\r\n   \t\t});\r\n\r\n\t\tformwxirbn.animate({top: currentTop + 30},{duration:1000\/*, easing: 'easeOutBounce'*\/});\r\n\r\n\t});\r\n\r\n\toverlaywxirbn.on('click', function() {\r\n\r\n\t\toverlaywxirbn.fadeOut();\r\n\r\n\t\tformwxirbn.fadeOut();\r\n\r\n\t\t$('#form-wxirbn label.input').removeClass('state-error');\r\n\r\n\t});\r\n\r\n\t\t\tvar maxupsize = '67108864';\r\n\t\t\tvar maxupsizeStr = '64M';\r\n            Ladda.bind('.ladda-button');\r\n\t\t\tvar files;\r\n\r\n\t\t\t$(function() {\r\n\t\t\t\t\t$('input[type=file]').on('change', prepareUpload);\r\n\r\n\t\t\t\t\tfunction prepareUpload(event)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfiles = event.target.files;\r\n\r\n\t\t\t\t\t\t\t\t$.each(files, function(key, value) {\r\n\r\n\t\t\t\t\t\t\t\t\tif ( files != null ) {\r\n\t\t\t\t\t\t\t\t\t\tif (files[key].size > maxupsize ) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t  vdialog({\r\n\t\t\t\t\t\t\t\t\t\t\t\t  type: 'error',\r\n\t\t\t\t\t\t\t\t\t\t\t\t  fixed: true,\r\n\t\t\t\t\t\t\t\t\t\t\t\t  title: 'Error',\r\n\t\t\t\t\t\t\t\t\t\t\t\t  okValue: 'OK',\r\n\t\t\t\t\t\t\t\t\t\t\t\t  content: files[key].name+\" exceeds the maximum upload size ( Max: \"+maxupsizeStr+\" )\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t  ok: true,\r\n\t\t\t\t\t\t\t\t\t\t\t\t  }).on('close', function(){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t  files = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t  }).showModal();\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tfiles = null;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif ( files != null ) {\r\n\t\t\t\t\t\t\t$('#atcwxirbn').val(files.length+' file(s) selected');\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$('#atcwxirbn').val('');\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t$(\"#form-wxirbn\").validate(\r\n\t\t\t\t{\r\n\t\t\t\t\trules:\r\n\t\t\t\t\t{\r\n\t\t\t\t\tattachment0:{required: false} ,\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\tmessages:\r\n\t\t\t\t\t{\r\n\t\t\t\t\tattachment0:{required: \"This field is required\"}\t\t\t\t\t},\r\n\t\t\t\t\terrorPlacement: function(error, element) {\r\n\r\n\t\t\t\t\t\t\r\n                \tvar newError = $(error).text();\r\n            \t\tif(newError !== ''){\r\n                \t\t$(element).tooltipster('content', newError);\r\n                \t\t$(element).tooltipster('show');\r\n            \t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t \t\t\t\t\t submitHandler: function (form) {\r\n                                                    ecf_onsubmit(jQuery('.form-wxirbn'));\r\n                                                 },\r\n\r\n\t\t\t\t\t invalidHandler: function (form) {\r\n                        Ladda.stopAll();\r\n\t\t\t\t\t \t},\r\n\r\n\t\t\t\t\tonkeyup: false,\r\n\t\t\t\t\tonfocusout: false,\r\n\t\t\t\t\tonclick: false\r\n\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\r\n\t\t\t\/* Form Submit ( Ajax ) *\/\r\n\t\t\tfunction ecf_onsubmit(form){\r\n\r\n\t\t\tvar datafiles = new FormData();\r\n\r\n\t\t\t\tif(form.attr('action')=='#'){\r\n\r\n\t\t\t\t\tdata = {};\r\n\t\t\t\t\teldat = [];\r\n\t\t\t\t\tdata['action'] = 'ecf_deliver_mail';\r\n\t\t\t\t\tdata['type'] = 'wxirbn';\r\n\t\t\t\t\tdata['time'] = wxirbntime;\r\n\t\t\t\t\tdata['formid'] = '138';\r\n\t\t\t\t\tdata['security'] = '7f91da928b';\r\n\r\n\t\t\t\t\t$('input, textarea, select, radio, checkbox, file', form).each(function(key){\r\n\r\n\t\t\t\t\t\titems = {};\r\n\r\n\t\t\t\t\t\tif (typeof $(this).data('type') === 'undefined') { return true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'radio' && !$(this).is(':checked')) { return true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'rating' && !$(this).is(':checked')) { return true; } \/\/ Rating System @since 1.0.7.9\r\n\t\t\t\t\t\tif ($(this).data('type') == 'checkboxes') {\treturn true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'address') { return true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'daterange') { return true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'department') { items['deptemail'] = $(this).find(\":selected\").data('deptemail'); }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'attachment' && typeof files !== 'undefined' ) {\r\n\r\n\t\t\t\t\t\t\tif ( files != null ) {\r\n\t\t\t\t\t\t\t\t$.each(files, function(key, value) {\r\n\r\n\t\t\t\t\t\t\t\t\tdatafiles.append(key, value);\r\n\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\titems['type'] = $(this).data('type');\r\n\t\t\t\t\t\titems['label'] = $(this).data('label');\r\n\t\t\t\t\t\titems['value'] = this.value;\r\n\t\t\t\t\t\titems['name'] = this.name;\r\n\r\n\t\t\t\t\t\teldat.push(items);\r\n\r\n\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdata['allelmnt'] = JSON.stringify(eldat);\r\n\r\n\t\t\t\tif ( files != null ) {\r\n\r\n\t\t\t\t\tdatafiles.append( 'action', 'ecf_form_uploader' );\r\n\t\t\t\t\tdatafiles.append( 'thefile', JSON.stringify(datafiles) );\r\n\t\t\t\t\tdatafiles.append( 'formid', '138' );\r\n\t\t\t\t\tdatafiles.append( 'security', '7f91da928b' );\r\n\r\n\t\t\t\t\t\tuploadForm(datafiles);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tdata['attachments'] = null;\r\n\t\t\t\t\t\tsubmitForm('');\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n            \r\n\t\t\t  function submitForm(tdat) {\r\n                  \r\n\t\t\t\tif ( tdat ) {\r\n\t\t\t\t\tdata['attachments'] = JSON.stringify(filedat);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t$.ajax({\r\n\t\t\t\t\turl: 'https:\/\/ridea.cl\/es\/wp-admin\/admin-ajax.php',\r\n\t\t\t\t\ttype: 'POST',\r\n\t\t\t\t\tdataType: 'json',\r\n\t\t\t\t\tdata: data,\r\n\t\t\t\t\tsuccess: function(data) {\r\n\r\n\t\t\t\t\t\tif(data.Ok==true) {\r\n                            \r\n\t\t\t\t\t\t\t$(\"#form-wxirbn\").get(0).reset();\r\n\t\t\t\t\t\t\t$(\"#form-wxirbn section label\").removeClass('state-success');\r\n\r\n\t\t\t\t\t\t\tif(data.msg == 'redirect') {\r\n\t\t\t\t\t\t\t\twindow.location = \"http:\/\/\";\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tnotifyme('Mensaje enviado exitosamente. ', 'success');\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twindow.setTimeout(function() {\r\n\t\t\t\t\t\t\t\t$('#wxirbn-form-modal-overlay').trigger('click');\r\n\t\t\t\t\t\t\t\t}, 2500);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t$(\"#form-wxirbn\").get(0).reset();\r\n\t\t\t\t\t\t\t\tnotifyme(data.msg, 'error');\r\n\t\t\t\t\t\t\t\t}\r\n\r\n                            Ladda.stopAll();\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\r\n\t\t\t\t\t\tfiles = null;\r\n\t\t\t\t\t\tfiledat = null;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t  function uploadForm(dat) {\r\n\r\n\t\t\t\t\t$('.meter span').css('width','0%');\r\n\r\n       \t\t\t\t$.ajax({\r\n\t\t\t\t\t\t  \txhr: function() {\r\n\t\t\t\t\t\t\t\tvar xhr = new window.XMLHttpRequest();\r\n\r\n\t\t\t\t\t\t\t\txhr.upload.addEventListener(\"progress\", function(evt) {\r\n\t\t\t\t\t\t\t\t\tif (evt.lengthComputable) {\r\n\t\t\t\t\t\t\t\t\t\t$('.meter').fadeIn(500);\r\n\t\t\t\t\t\t\t\t\t\tvar percentComplete = evt.loaded \/ evt.total;\r\n\t\t\t\t\t\t\t\t\t\tpercentComplete = parseInt(percentComplete * 100);\r\n\t\t\t\t\t\t\t\t\t\t$('.meter span').css('width',+percentComplete+'%');\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}, false);\r\n\r\n\t\t\t\t\t\t\t\treturn xhr;\r\n\t\t\t\t\t\t\t},\r\n            \t\t\t\turl: 'https:\/\/ridea.cl\/es\/wp-admin\/admin-ajax.php',\r\n            \t\t\t\ttype: 'POST',\r\n            \t\t\t\tdata: dat,\r\n            \t\t\t\tcache: false,\r\n            \t\t\t\tdataType: 'json',\r\n            \t\t\t\tprocessData: false,\r\n            \t\t\t\tcontentType: false,\r\n            \t\t\t\tsuccess: function(data, textStatus, jqXHR)\r\n            \t\t\t\t{\r\n            \t\t\t\t\tif(data.Ok==true) {\r\n\r\n\t\t\t\t\t\t\t\t\tfileitms = {};\r\n\t\t\t\t\t\t\t\t\tfiledat = [];\r\n\r\n\t\t\t\t\t\t\t\t$.each(data.msg, function(key, value) {\r\n\r\n\t\t\t\t\t\t\t\t\tfiledat.push(value);\r\n\r\n\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t\tsubmitForm(filedat);\r\n\r\n            \t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (data.Ok==false) {\r\n\t\t\t\t\t\t\t\t\t$(\"#form-wxirbn\").get(0).reset();\r\n\t\t\t\t\t\t\t\t\tnotifyme(data.msg, 'error');\r\n\t\t\t\t\t\t\t\t\tLadda.stopAll();\r\n\t\t\t\t\t\t\t\t\t}\r\n            \t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\tif ( jqXHR.responseText == '0') {\r\n\t\t\t\t\t\t\t\t\t\t\t$(\"#form-wxirbn\").get(0).reset();\r\n\t\t\t\t\t\t\t\t\t\t\tnotifyme('File too large. File must be less than '+maxupsizeStr+'.', 'error');\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n                                        Ladda.stopAll();\r\n            \t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t$('.meter').fadeOut(500);\r\n            \t\t\t\t},\r\n            \t\t\t\terror: function(jqXHR, textStatus, errorThrown)\r\n            \t\t\t\t{\r\n\t\t\t\t\t\t\t\t$('.meter').fadeOut(500);\r\n\t\t\t\t\t\t\t\tLadda.stopAll();\r\n\t\t\t\t\t\t\t\tnotifyme('There was an error uploading your files.', 'error');\r\n            \t\t\t\t}\r\n        \t\t\t\t});\r\n\r\n\r\n\t\t\t\t\t\tfiles = null;\r\n\t\t\t\t\t\tfiledat = null;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t  function notifyme(msg, typ) {\r\n\r\n\t\t\t\t  var title = (typ == 'success' ? 'sent' : typ);\r\n\r\n\t\t\t\t  vdialog({\r\n\t\t\t\t\t  type: typ,\r\n\t\t\t\t\t  fixed: true,\r\n\t\t\t\t\t  title: title,\r\n\t\t\t\t\t  okValue: 'OK',\r\n\t\t\t\t\t  content: msg,\r\n\t\t\t\t\t  ok: true,\r\n\t\t\t\t\t  }).on('close', function(){\r\n\t\t\t\t\t\t  msg = null;\r\n\t\t\t\t\t\t  typ = null;\r\n\t\t\t\t\t\t  }).showModal();\r\n\r\n\t\t\t\t\t  msg = null;\r\n\t\t\t\t\t  typ = null;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t$('#form-wxirbn input, #form-wxirbn textarea, #form-wxirbn select, #form-wxirbn radio, #form-wxirbn checkbox, #form-wxirbn file').tooltipster({\r\n\t\t\t\ttrigger: 'custom',\r\n\t\t\t\ttheme: 'tooltipster-default',\r\n\t\t\t\tanimation: 'usedefault',\r\n\t\t\t\tautoClose: true,\r\n\t\t\t\tonlyOne: false,\r\n\t\t\t\ttimer: 3000,\r\n\t\t\t\tposition: 'top-right'\r\n\t\t\t});\r\n\r\n\t\t\t\r\n\t\t});\r\n\t\t<\/script>\r\n    <!-- END JS for Form ID: 138 -->\r\n\r\n<!-- START Form Markup for Form ID: 138 -->\r\n\r\n\t\r\n\t<div id=\"preloader-wxirbn\" class=\"ecfpreloader\" style=\" display: none !important;\"><\/div>\r\n\r\n    \t\t<form style=\" display: none !important;\" method=\"post\" enctype=\"multipart\/form-data\" action=\"#\" id=\"form-wxirbn\" class=\"ecf-form form-wxirbn\">\r\n        \t<header style=\"\">Verificaci\u00f3n Selfie<\/header>    \t\t<fieldset>\r\n    <section><label class=\"label\">Verificaci\u00f3n Selfie<\/label><label class=\"input input-file\"><div class=\"ecfbutton attach138\"><input data-type=\"attachment\" data-label=\"Verificaci\u00f3n Selfie\" type=\"file\" id=\"attachment0\" name=\"attachment0\" multiple>Tomar Selfie<\/div><input id=\"atcwxirbn\" type=\"text\" readonly><div class=\"meter\">\r\n\t\t\t<span style=\"width: 0%\"><\/span>\r\n\t\t<\/div><\/label><div class=\"ecfnote\"><strong>NOTE :<\/strong> \u2022 Tu imagen debe ser a color \n\u2022 enfocada, n\u00edtida y derecha \u2022  Sin ocultar o tapar parte de la imagen \u2022 No agregues texto digital adicional \n\u2022 No uses flash para que no aparezcan reflejos en la captura.<\/div><\/section>\r\n       \t\t <\/fieldset>\r\n        \t\t<footer>\r\n                    <button data-style=\"slide-down\" id=\"cf-submittedwxirbn\" class=\"ecfbutton ladda-button\" type=\"submit\" name=\"cf-submittedwxirbn\"><span class=\"ladda-label\">ENVIAR<\/span><\/button>\r\n\t\t\t\t<\/footer>\r\n\t\t\t<\/form>\r\n\r\n                                    <div id=\"wxirbn-form-modal-overlay\" class=\"form-modal-overlay\">             <\/div>\r\n<!-- END Form Markup for Form ID: 138 -->\r\n\r\n\r\n    <!-- START Custom CSS for Form ID: 138 -->\r\n    <style>\r\n\t    <\/style>\r\n    <!-- END  Custom CSS for Form ID: 138 -->\r\n\r\n    <!-- START Custom JS for Form ID: 138 -->\r\n    <script type=\"text\/javascript\">\r\n\tjQuery(document).ready(function ($) {\r\n\t\t});\r\n    <\/script>\r\n    <!-- END  Custom JS for Form ID: 138 -->\r\n\r\n\r\n\t\r\n\t\t<\/p>\n<p>[\/vc_column_text][\/vc_column][vc_column width=&#8221;1\/2&#8243;][vc_column_text]<\/p>\n<p style=\"text-align: center;\"><strong>2) SELFIE DE TU LICENCIA JUNTO A TU ROSTRO<br \/>\n<\/strong><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" style=\"box-shadow: none !important;border-radius: none !important; display: block !important;\" src=\"https:\/\/ridea.cl\/es\/wp-content\/uploads\/2020\/05\/selfie-btn.png\" class=\"ecf-140-modal-opener\" id=\"otpfce-modal-opener\">\r\n    <!-- START Dynamic CSS for Form ID: 140 -->\r\n    <style>#otpfce-form-modal-overlay + .ecf-form .input input, #otpfce-form-modal-overlay + .ecf-form .select select, #otpfce-form-modal-overlay + .ecf-form .textarea textarea, #otpfce-form-modal-overlay + .ecf-form .radio i, #otpfce-form-modal-overlay + .ecf-form .checkbox i, #otpfce-form-modal-overlay + .ecf-form .toggle i, #otpfce-form-modal-overlay + .ecf-form .ecficon-append, #otpfce-form-modal-overlay + .ecf-form .ecficon-prepend { color: #404040 !important;}\n#otpfce-form-modal-overlay + .ecf-form  .state-success.input input, #otpfce-form-modal-overlay + .ecf-form .state-success.select select, #otpfce-form-modal-overlay + .ecf-form .state-success.textarea textarea, #otpfce-form-modal-overlay + .ecf-form .state-success.radio i, #otpfce-form-modal-overlay + .ecf-form .state-success.checkbox i, #otpfce-form-modal-overlay + .ecf-form .state-success.toggle i, #otpfce-form-modal-overlay + .ecf-form .state-success .ecficon-append, #otpfce-form-modal-overlay + .ecf-form .state-success .ecficon-prepend { background: #f0fff0 !important;}\n#otpfce-form-modal-overlay + .ecf-form  .state-error.input input, #otpfce-form-modal-overlay + .ecf-form .state-error.select select, #otpfce-form-modal-overlay + .ecf-form .state-error.textarea textarea, #otpfce-form-modal-overlay + .ecf-form .state-error.radio i, #otpfce-form-modal-overlay + .ecf-form .state-error.checkbox i, #otpfce-form-modal-overlay + .ecf-form .state-error.toggle i, #otpfce-form-modal-overlay + .ecf-form .state-error .ecficon-append, #otpfce-form-modal-overlay + .ecf-form .state-error .ecficon-prepend { background: #fff3f3 !important;}\n#otpfce-form-modal-overlay + .ecf-form .ecficon-prepend { color: #CCC !important;}\n#otpfce-form-modal-overlay + .ecf-form .input input, #otpfce-form-modal-overlay + .ecf-form .select select, #otpfce-form-modal-overlay + .ecf-form .textarea textarea, #otpfce-form-modal-overlay + .ecf-form .radio i, #otpfce-form-modal-overlay + .ecf-form .checkbox i, #otpfce-form-modal-overlay + .ecf-form .toggle i, #otpfce-form-modal-overlay + .ecf-form .ecficon-append, #otpfce-form-modal-overlay + .ecf-form .ecficon-prepend { border-color: #E5E5E5;}\n#otpfce-form-modal-overlay + .ecf-form section {margin-bottom: 20px !important;}\n#otpfce-form-modal-overlay + #form-otpfce fieldset {background: none;}\n#otpfce-form-modal-overlay + {padding: 40px;}\n#otpfce-form-modal-overlay + .ecf-form {color: #666666 !important;}\n#otpfce-form-modal-overlay + {max-width: 440px;}\n#otpfce-form-modal-overlay + #form-otpfce {background: none repeat scroll 0% 0% rgba(255,255,255, 1); border: solid 1px #d6d6d6;}\n#otpfce-form-modal-overlay + #form-otpfce {box-shadow: 0px 0px 10px rgba(56,56,56, 0.3) !important;}\n#otpfce-form-modal-overlay + #form-otpfce header {background: none repeat scroll 0% 0% rgba(248,248,248, 1); font-size: 25px !important; font-weight: normal !important; color: #707070; font-family: Open Sans;}\n#otpfce-form-modal-overlay + .ecf-form .label {font-size: 13px !important; font-weight: normal !important; color: #666; font-family: Open Sans;}\n#otpfce-form-modal-overlay + .ecf-form .ecfbutton, #otpfce-form-modal-overlay + .ecf-form .input-file .ecfbutton {font-size: 15px !important; font-weight: normal !important; color: #ffffff; font-family: Open Sans !important;}\n#otpfce-form-modal-overlay + #form-otpfce footer {background: none repeat scroll 0% 0% rgba(248,248,248, 1);}\n#otpfce-form-modal-overlay + .ecf-form .input input,#otpfce-form-modal-overlay + .ecf-form .select select,#otpfce-form-modal-overlay + .ecf-form .textarea textarea {background: #ffffff;}\n#otpfce-form-modal-overlay + .ecf-form .toggle i:before {background-color: #2da5da;}\n#otpfce-form-modal-overlay + .ecf-form .button {background-color: #2da5da;}\n#otpfce-form-modal-overlay + .ecf-form .input:hover input,\n#otpfce-form-modal-overlay + .ecf-form .select:hover select,\n#otpfce-form-modal-overlay + .ecf-form .textarea:hover textarea,\n#otpfce-form-modal-overlay + .ecf-form .radio:hover i,\n#otpfce-form-modal-overlay + .ecf-form .checkbox:hover i,\n#otpfce-form-modal-overlay + .ecf-form .toggle:hover i,\n#otpfce-form-modal-overlay + .ecf-form .ui-slider-handle:hover {border-color: #2da5da;}\n#otpfce-form-modal-overlay + .ecf-form .ui-slider-handle:hover {border-color: #2da5da;}\n#otpfce-form-modal-overlay + .ecf-form .rating input + label:hover,\n#otpfce-form-modal-overlay + .ecf-form .rating input + label:hover ~ label {color: #2da5da;}\n#otpfce-form-modal-overlay + .ecf-form .input input:focus,\n#otpfce-form-modal-overlay + .ecf-form .select select:focus,\n#otpfce-form-modal-overlay + .ecf-form .textarea textarea:focus,\n#otpfce-form-modal-overlay + .ecf-form .radio input:focus + i,\n#otpfce-form-modal-overlay + .ecf-form .checkbox input:focus + i,\n#otpfce-form-modal-overlay + .ecf-form .toggle input:focus + i {border-color: #2da5da;}\n#otpfce-form-modal-overlay + .ecf-form .radio input + i:after {background-color: #2da5da;}\n#otpfce-form-modal-overlay + .ecf-form .checkbox input + i:after {color: #2da5da;}\n#otpfce-form-modal-overlay + .ecf-form .radio input:checked + i,\n#otpfce-form-modal-overlay + .ecf-form .checkbox input:checked + i,\n#otpfce-form-modal-overlay + .ecf-form .toggle input:checked + i {border-color: #2da5da;}\n#otpfce-form-modal-overlay + .ecf-form .rating input:checked ~ label {color: #2da5da;}\n#otpfce-form-modal-overlay + .ecf-form .ecfbutton { background-color: #545454;} #otpfce-form-modal-overlay + .ecf-form .ecfbutton:hover{background-color: #545454;color: #fff; outline:none !important;}\n<\/style>\r\n      <!-- END  Dynamic CSS for Form ID: 140 -->\r\n\r\n    <!-- START JS for Form ID: 140 -->\r\n\r\n<style>\r\n#form-otpfce {\r\n\tz-index: 9999991;\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n\tmax-width: 440px;\r\n\t}\r\n\r\n#otpfce-form-modal-overlay {\r\n\tz-index: 999999;\r\n\tposition: fixed;\r\n\tdisplay: none;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tcursor : pointer;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tbackground: rgba(0,0,0,0.7);\r\n}\r\n\r\n#form-otpfce fieldset {background: none;}\n\r\n\r\n\n\r\n\r\n#form-otpfce {background: none repeat scroll 0% 0% rgba(255,255,255, 1); border: solid 1px #d6d6d6;}\n\r\n\r\n.ecf-140-modal-opener { cursor: pointer; color: #cf4343 !important; }\r\n.ecf-140-modal-opener:hover { text-decoration: underline;}\r\n<\/style>\r\n\t<script type=\"text\/javascript\">\r\n\t\tjQuery(document).ready(function($) {\r\n\r\n\t\tvar otpfcetime = '01:20:28';\r\n\r\n\t\t\r\n\tformotpfce = $('#form-otpfce');\r\n\toverlayotpfce = $('#otpfce-form-modal-overlay');\r\n\r\n\toverlayotpfce.appendTo(document.body);\r\n\tformotpfce.appendTo(document.body);\r\n\r\n\t$('#otpfce-modal-opener').on('click', function() {\r\n\r\n\t\tvar offset = $(document).scrollTop();\r\n\t\tvar currentTop = offset;\r\n\t\tvar curLeft =  Math.max(0, $(window).width());\r\n\t\tvar finaLeft = curLeft\/2-(formotpfce.outerWidth()\/2);\r\n\r\n\t\toverlayotpfce.fadeIn();\r\n\t\tformotpfce.fadeIn();\r\n\r\n    \tformotpfce.css({\r\n\t\t\t'top': currentTop - formotpfce.outerHeight() - 60,\r\n\t\t\t'left': overlayotpfce.outerWidth()\/2 - formotpfce.outerWidth()\/2,\r\n   \t\t});\r\n\r\n\t\tformotpfce.animate({top: currentTop + 30},{duration:1000\/*, easing: 'easeOutBounce'*\/});\r\n\r\n\t});\r\n\r\n\toverlayotpfce.on('click', function() {\r\n\r\n\t\toverlayotpfce.fadeOut();\r\n\r\n\t\tformotpfce.fadeOut();\r\n\r\n\t\t$('#form-otpfce label.input').removeClass('state-error');\r\n\r\n\t});\r\n\r\n\t\t\tvar maxupsize = '67108864';\r\n\t\t\tvar maxupsizeStr = '64M';\r\n            Ladda.bind('.ladda-button');\r\n\t\t\tvar files;\r\n\r\n\t\t\t$(function() {\r\n\t\t\t\t\t$('input[type=file]').on('change', prepareUpload);\r\n\r\n\t\t\t\t\tfunction prepareUpload(event)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfiles = event.target.files;\r\n\r\n\t\t\t\t\t\t\t\t$.each(files, function(key, value) {\r\n\r\n\t\t\t\t\t\t\t\t\tif ( files != null ) {\r\n\t\t\t\t\t\t\t\t\t\tif (files[key].size > maxupsize ) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t  vdialog({\r\n\t\t\t\t\t\t\t\t\t\t\t\t  type: 'error',\r\n\t\t\t\t\t\t\t\t\t\t\t\t  fixed: true,\r\n\t\t\t\t\t\t\t\t\t\t\t\t  title: 'Error',\r\n\t\t\t\t\t\t\t\t\t\t\t\t  okValue: 'OK',\r\n\t\t\t\t\t\t\t\t\t\t\t\t  content: files[key].name+\" exceeds the maximum upload size ( Max: \"+maxupsizeStr+\" )\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t  ok: true,\r\n\t\t\t\t\t\t\t\t\t\t\t\t  }).on('close', function(){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t  files = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t  }).showModal();\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tfiles = null;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif ( files != null ) {\r\n\t\t\t\t\t\t\t$('#atcotpfce').val(files.length+' file(s) selected');\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$('#atcotpfce').val('');\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t$(\"#form-otpfce\").validate(\r\n\t\t\t\t{\r\n\t\t\t\t\trules:\r\n\t\t\t\t\t{\r\n\t\t\t\t\tattachment0:{required: false} ,\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\tmessages:\r\n\t\t\t\t\t{\r\n\t\t\t\t\tattachment0:{required: \"This field is required\"}\t\t\t\t\t},\r\n\t\t\t\t\terrorPlacement: function(error, element) {\r\n\r\n\t\t\t\t\t\t\r\n                \tvar newError = $(error).text();\r\n            \t\tif(newError !== ''){\r\n                \t\t$(element).tooltipster('content', newError);\r\n                \t\t$(element).tooltipster('show');\r\n            \t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t \t\t\t\t\t submitHandler: function (form) {\r\n                                                    ecf_onsubmit(jQuery('.form-otpfce'));\r\n                                                 },\r\n\r\n\t\t\t\t\t invalidHandler: function (form) {\r\n                        Ladda.stopAll();\r\n\t\t\t\t\t \t},\r\n\r\n\t\t\t\t\tonkeyup: false,\r\n\t\t\t\t\tonfocusout: false,\r\n\t\t\t\t\tonclick: false\r\n\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\r\n\t\t\t\/* Form Submit ( Ajax ) *\/\r\n\t\t\tfunction ecf_onsubmit(form){\r\n\r\n\t\t\tvar datafiles = new FormData();\r\n\r\n\t\t\t\tif(form.attr('action')=='#'){\r\n\r\n\t\t\t\t\tdata = {};\r\n\t\t\t\t\teldat = [];\r\n\t\t\t\t\tdata['action'] = 'ecf_deliver_mail';\r\n\t\t\t\t\tdata['type'] = 'otpfce';\r\n\t\t\t\t\tdata['time'] = otpfcetime;\r\n\t\t\t\t\tdata['formid'] = '140';\r\n\t\t\t\t\tdata['security'] = '103a143872';\r\n\r\n\t\t\t\t\t$('input, textarea, select, radio, checkbox, file', form).each(function(key){\r\n\r\n\t\t\t\t\t\titems = {};\r\n\r\n\t\t\t\t\t\tif (typeof $(this).data('type') === 'undefined') { return true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'radio' && !$(this).is(':checked')) { return true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'rating' && !$(this).is(':checked')) { return true; } \/\/ Rating System @since 1.0.7.9\r\n\t\t\t\t\t\tif ($(this).data('type') == 'checkboxes') {\treturn true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'address') { return true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'daterange') { return true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'department') { items['deptemail'] = $(this).find(\":selected\").data('deptemail'); }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'attachment' && typeof files !== 'undefined' ) {\r\n\r\n\t\t\t\t\t\t\tif ( files != null ) {\r\n\t\t\t\t\t\t\t\t$.each(files, function(key, value) {\r\n\r\n\t\t\t\t\t\t\t\t\tdatafiles.append(key, value);\r\n\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\titems['type'] = $(this).data('type');\r\n\t\t\t\t\t\titems['label'] = $(this).data('label');\r\n\t\t\t\t\t\titems['value'] = this.value;\r\n\t\t\t\t\t\titems['name'] = this.name;\r\n\r\n\t\t\t\t\t\teldat.push(items);\r\n\r\n\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdata['allelmnt'] = JSON.stringify(eldat);\r\n\r\n\t\t\t\tif ( files != null ) {\r\n\r\n\t\t\t\t\tdatafiles.append( 'action', 'ecf_form_uploader' );\r\n\t\t\t\t\tdatafiles.append( 'thefile', JSON.stringify(datafiles) );\r\n\t\t\t\t\tdatafiles.append( 'formid', '140' );\r\n\t\t\t\t\tdatafiles.append( 'security', '103a143872' );\r\n\r\n\t\t\t\t\t\tuploadForm(datafiles);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tdata['attachments'] = null;\r\n\t\t\t\t\t\tsubmitForm('');\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n            \r\n\t\t\t  function submitForm(tdat) {\r\n                  \r\n\t\t\t\tif ( tdat ) {\r\n\t\t\t\t\tdata['attachments'] = JSON.stringify(filedat);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t$.ajax({\r\n\t\t\t\t\turl: 'https:\/\/ridea.cl\/es\/wp-admin\/admin-ajax.php',\r\n\t\t\t\t\ttype: 'POST',\r\n\t\t\t\t\tdataType: 'json',\r\n\t\t\t\t\tdata: data,\r\n\t\t\t\t\tsuccess: function(data) {\r\n\r\n\t\t\t\t\t\tif(data.Ok==true) {\r\n                            \r\n\t\t\t\t\t\t\t$(\"#form-otpfce\").get(0).reset();\r\n\t\t\t\t\t\t\t$(\"#form-otpfce section label\").removeClass('state-success');\r\n\r\n\t\t\t\t\t\t\tif(data.msg == 'redirect') {\r\n\t\t\t\t\t\t\t\twindow.location = \"http:\/\/\";\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tnotifyme('Your message has been sent', 'success');\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twindow.setTimeout(function() {\r\n\t\t\t\t\t\t\t\t$('#otpfce-form-modal-overlay').trigger('click');\r\n\t\t\t\t\t\t\t\t}, 2500);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t$(\"#form-otpfce\").get(0).reset();\r\n\t\t\t\t\t\t\t\tnotifyme(data.msg, 'error');\r\n\t\t\t\t\t\t\t\t}\r\n\r\n                            Ladda.stopAll();\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\r\n\t\t\t\t\t\tfiles = null;\r\n\t\t\t\t\t\tfiledat = null;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t  function uploadForm(dat) {\r\n\r\n\t\t\t\t\t$('.meter span').css('width','0%');\r\n\r\n       \t\t\t\t$.ajax({\r\n\t\t\t\t\t\t  \txhr: function() {\r\n\t\t\t\t\t\t\t\tvar xhr = new window.XMLHttpRequest();\r\n\r\n\t\t\t\t\t\t\t\txhr.upload.addEventListener(\"progress\", function(evt) {\r\n\t\t\t\t\t\t\t\t\tif (evt.lengthComputable) {\r\n\t\t\t\t\t\t\t\t\t\t$('.meter').fadeIn(500);\r\n\t\t\t\t\t\t\t\t\t\tvar percentComplete = evt.loaded \/ evt.total;\r\n\t\t\t\t\t\t\t\t\t\tpercentComplete = parseInt(percentComplete * 100);\r\n\t\t\t\t\t\t\t\t\t\t$('.meter span').css('width',+percentComplete+'%');\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}, false);\r\n\r\n\t\t\t\t\t\t\t\treturn xhr;\r\n\t\t\t\t\t\t\t},\r\n            \t\t\t\turl: 'https:\/\/ridea.cl\/es\/wp-admin\/admin-ajax.php',\r\n            \t\t\t\ttype: 'POST',\r\n            \t\t\t\tdata: dat,\r\n            \t\t\t\tcache: false,\r\n            \t\t\t\tdataType: 'json',\r\n            \t\t\t\tprocessData: false,\r\n            \t\t\t\tcontentType: false,\r\n            \t\t\t\tsuccess: function(data, textStatus, jqXHR)\r\n            \t\t\t\t{\r\n            \t\t\t\t\tif(data.Ok==true) {\r\n\r\n\t\t\t\t\t\t\t\t\tfileitms = {};\r\n\t\t\t\t\t\t\t\t\tfiledat = [];\r\n\r\n\t\t\t\t\t\t\t\t$.each(data.msg, function(key, value) {\r\n\r\n\t\t\t\t\t\t\t\t\tfiledat.push(value);\r\n\r\n\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t\tsubmitForm(filedat);\r\n\r\n            \t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (data.Ok==false) {\r\n\t\t\t\t\t\t\t\t\t$(\"#form-otpfce\").get(0).reset();\r\n\t\t\t\t\t\t\t\t\tnotifyme(data.msg, 'error');\r\n\t\t\t\t\t\t\t\t\tLadda.stopAll();\r\n\t\t\t\t\t\t\t\t\t}\r\n            \t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\tif ( jqXHR.responseText == '0') {\r\n\t\t\t\t\t\t\t\t\t\t\t$(\"#form-otpfce\").get(0).reset();\r\n\t\t\t\t\t\t\t\t\t\t\tnotifyme('File too large. File must be less than '+maxupsizeStr+'.', 'error');\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n                                        Ladda.stopAll();\r\n            \t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t$('.meter').fadeOut(500);\r\n            \t\t\t\t},\r\n            \t\t\t\terror: function(jqXHR, textStatus, errorThrown)\r\n            \t\t\t\t{\r\n\t\t\t\t\t\t\t\t$('.meter').fadeOut(500);\r\n\t\t\t\t\t\t\t\tLadda.stopAll();\r\n\t\t\t\t\t\t\t\tnotifyme('There was an error uploading your files.', 'error');\r\n            \t\t\t\t}\r\n        \t\t\t\t});\r\n\r\n\r\n\t\t\t\t\t\tfiles = null;\r\n\t\t\t\t\t\tfiledat = null;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t  function notifyme(msg, typ) {\r\n\r\n\t\t\t\t  var title = (typ == 'success' ? 'sent' : typ);\r\n\r\n\t\t\t\t  vdialog({\r\n\t\t\t\t\t  type: typ,\r\n\t\t\t\t\t  fixed: true,\r\n\t\t\t\t\t  title: title,\r\n\t\t\t\t\t  okValue: 'OK',\r\n\t\t\t\t\t  content: msg,\r\n\t\t\t\t\t  ok: true,\r\n\t\t\t\t\t  }).on('close', function(){\r\n\t\t\t\t\t\t  msg = null;\r\n\t\t\t\t\t\t  typ = null;\r\n\t\t\t\t\t\t  }).showModal();\r\n\r\n\t\t\t\t\t  msg = null;\r\n\t\t\t\t\t  typ = null;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t$('#form-otpfce input, #form-otpfce textarea, #form-otpfce select, #form-otpfce radio, #form-otpfce checkbox, #form-otpfce file').tooltipster({\r\n\t\t\t\ttrigger: 'custom',\r\n\t\t\t\ttheme: 'tooltipster-default',\r\n\t\t\t\tanimation: 'usedefault',\r\n\t\t\t\tautoClose: true,\r\n\t\t\t\tonlyOne: false,\r\n\t\t\t\ttimer: 3000,\r\n\t\t\t\tposition: 'top-right'\r\n\t\t\t});\r\n\r\n\t\t\t\r\n\t\t});\r\n\t\t<\/script>\r\n    <!-- END JS for Form ID: 140 -->\r\n\r\n<!-- START Form Markup for Form ID: 140 -->\r\n\r\n\t\r\n\t<div id=\"preloader-otpfce\" class=\"ecfpreloader\" style=\" display: none !important;\"><\/div>\r\n\r\n    \t\t<form style=\" display: none !important;\" method=\"post\" enctype=\"multipart\/form-data\" action=\"#\" id=\"form-otpfce\" class=\"ecf-form form-otpfce\">\r\n        \t<header style=\"\">Selfie | Licencia<\/header>    \t\t<fieldset>\r\n    <section><label class=\"label\">Selfie de Rostro + Licencia:<\/label><label class=\"input input-file\"><div class=\"ecfbutton attach140\"><input data-type=\"attachment\" data-label=\"Selfie de Rostro + Licencia:\" type=\"file\" id=\"attachment0\" name=\"attachment0\" multiple>Subir Selfie<\/div><input id=\"atcotpfce\" type=\"text\" readonly><div class=\"meter\">\r\n\t\t\t<span style=\"width: 0%\"><\/span>\r\n\t\t<\/div><\/label><div class=\"ecfnote\"><strong>NOTE :<\/strong> Sube una selfie tuya sosteniendo junto a tu rostro tu licencia de conducir. Tu foto debe tener las mismas especificaciones t\u00e9cnicas que la foto anterior.<\/div><\/section>\r\n       \t\t <\/fieldset>\r\n        \t\t<footer>\r\n                    <button data-style=\"slide-down\" id=\"cf-submittedotpfce\" class=\"ecfbutton ladda-button\" type=\"submit\" name=\"cf-submittedotpfce\"><span class=\"ladda-label\">ENVIAR<\/span><\/button>\r\n\t\t\t\t<\/footer>\r\n\t\t\t<\/form>\r\n\r\n                                    <div id=\"otpfce-form-modal-overlay\" class=\"form-modal-overlay\">             <\/div>\r\n<!-- END Form Markup for Form ID: 140 -->\r\n\r\n\r\n    <!-- START Custom CSS for Form ID: 140 -->\r\n    <style>\r\n\t    <\/style>\r\n    <!-- END  Custom CSS for Form ID: 140 -->\r\n\r\n    <!-- START Custom JS for Form ID: 140 -->\r\n    <script type=\"text\/javascript\">\r\n\tjQuery(document).ready(function ($) {\r\n\t\t});\r\n    <\/script>\r\n    <!-- END  Custom JS for Form ID: 140 -->\r\n\r\n\r\n\t\r\n\t\t<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column width=&#8221;1\/2&#8243;][vc_column_text]<\/p>\n<p style=\"text-align: center;\"><b>3 &#8211; FOTO N\u00cdTIDA DE TU CARNET O DNI<br \/>\n<\/b><img decoding=\"async\" style=\"box-shadow: none !important;border-radius: none !important; display: block !important;\" src=\"https:\/\/ridea.cl\/es\/wp-content\/uploads\/2020\/05\/id.png\" class=\"ecf-144-modal-opener\" id=\"fyohpp-modal-opener\">\r\n    <!-- START Dynamic CSS for Form ID: 144 -->\r\n    <style>#fyohpp-form-modal-overlay + .ecf-form .input input, #fyohpp-form-modal-overlay + .ecf-form .select select, #fyohpp-form-modal-overlay + .ecf-form .textarea textarea, #fyohpp-form-modal-overlay + .ecf-form .radio i, #fyohpp-form-modal-overlay + .ecf-form .checkbox i, #fyohpp-form-modal-overlay + .ecf-form .toggle i, #fyohpp-form-modal-overlay + .ecf-form .ecficon-append, #fyohpp-form-modal-overlay + .ecf-form .ecficon-prepend { color: #404040 !important;}\n#fyohpp-form-modal-overlay + .ecf-form  .state-success.input input, #fyohpp-form-modal-overlay + .ecf-form .state-success.select select, #fyohpp-form-modal-overlay + .ecf-form .state-success.textarea textarea, #fyohpp-form-modal-overlay + .ecf-form .state-success.radio i, #fyohpp-form-modal-overlay + .ecf-form .state-success.checkbox i, #fyohpp-form-modal-overlay + .ecf-form .state-success.toggle i, #fyohpp-form-modal-overlay + .ecf-form .state-success .ecficon-append, #fyohpp-form-modal-overlay + .ecf-form .state-success .ecficon-prepend { background: #f0fff0 !important;}\n#fyohpp-form-modal-overlay + .ecf-form  .state-error.input input, #fyohpp-form-modal-overlay + .ecf-form .state-error.select select, #fyohpp-form-modal-overlay + .ecf-form .state-error.textarea textarea, #fyohpp-form-modal-overlay + .ecf-form .state-error.radio i, #fyohpp-form-modal-overlay + .ecf-form .state-error.checkbox i, #fyohpp-form-modal-overlay + .ecf-form .state-error.toggle i, #fyohpp-form-modal-overlay + .ecf-form .state-error .ecficon-append, #fyohpp-form-modal-overlay + .ecf-form .state-error .ecficon-prepend { background: #fff3f3 !important;}\n#fyohpp-form-modal-overlay + .ecf-form .ecficon-prepend { color: #CCC !important;}\n#fyohpp-form-modal-overlay + .ecf-form .input input, #fyohpp-form-modal-overlay + .ecf-form .select select, #fyohpp-form-modal-overlay + .ecf-form .textarea textarea, #fyohpp-form-modal-overlay + .ecf-form .radio i, #fyohpp-form-modal-overlay + .ecf-form .checkbox i, #fyohpp-form-modal-overlay + .ecf-form .toggle i, #fyohpp-form-modal-overlay + .ecf-form .ecficon-append, #fyohpp-form-modal-overlay + .ecf-form .ecficon-prepend { border-color: #E5E5E5;}\n#fyohpp-form-modal-overlay + .ecf-form section {margin-bottom: 20px !important;}\n#fyohpp-form-modal-overlay + #form-fyohpp fieldset {background: none;}\n#fyohpp-form-modal-overlay + {padding: 40px;}\n#fyohpp-form-modal-overlay + .ecf-form {color: #666666 !important;}\n#fyohpp-form-modal-overlay + {max-width: 440px;}\n#fyohpp-form-modal-overlay + #form-fyohpp {background: none repeat scroll 0% 0% rgba(255,255,255, 1); border: solid 1px #d6d6d6;}\n#fyohpp-form-modal-overlay + #form-fyohpp {box-shadow: 0px 0px 10px rgba(56,56,56, 0.3) !important;}\n#fyohpp-form-modal-overlay + #form-fyohpp header {background: none repeat scroll 0% 0% rgba(248,248,248, 1); font-size: 25px !important; font-weight: normal !important; color: #707070; font-family: Open Sans;}\n#fyohpp-form-modal-overlay + .ecf-form .label {font-size: 13px !important; font-weight: normal !important; color: #666; font-family: Open Sans;}\n#fyohpp-form-modal-overlay + .ecf-form .ecfbutton, #fyohpp-form-modal-overlay + .ecf-form .input-file .ecfbutton {font-size: 15px !important; font-weight: normal !important; color: #ffffff; font-family: Open Sans !important;}\n#fyohpp-form-modal-overlay + #form-fyohpp footer {background: none repeat scroll 0% 0% rgba(248,248,248, 1);}\n#fyohpp-form-modal-overlay + .ecf-form .input input,#fyohpp-form-modal-overlay + .ecf-form .select select,#fyohpp-form-modal-overlay + .ecf-form .textarea textarea {background: #ffffff;}\n#fyohpp-form-modal-overlay + .ecf-form .toggle i:before {background-color: #2da5da;}\n#fyohpp-form-modal-overlay + .ecf-form .button {background-color: #2da5da;}\n#fyohpp-form-modal-overlay + .ecf-form .input:hover input,\n#fyohpp-form-modal-overlay + .ecf-form .select:hover select,\n#fyohpp-form-modal-overlay + .ecf-form .textarea:hover textarea,\n#fyohpp-form-modal-overlay + .ecf-form .radio:hover i,\n#fyohpp-form-modal-overlay + .ecf-form .checkbox:hover i,\n#fyohpp-form-modal-overlay + .ecf-form .toggle:hover i,\n#fyohpp-form-modal-overlay + .ecf-form .ui-slider-handle:hover {border-color: #2da5da;}\n#fyohpp-form-modal-overlay + .ecf-form .ui-slider-handle:hover {border-color: #2da5da;}\n#fyohpp-form-modal-overlay + .ecf-form .rating input + label:hover,\n#fyohpp-form-modal-overlay + .ecf-form .rating input + label:hover ~ label {color: #2da5da;}\n#fyohpp-form-modal-overlay + .ecf-form .input input:focus,\n#fyohpp-form-modal-overlay + .ecf-form .select select:focus,\n#fyohpp-form-modal-overlay + .ecf-form .textarea textarea:focus,\n#fyohpp-form-modal-overlay + .ecf-form .radio input:focus + i,\n#fyohpp-form-modal-overlay + .ecf-form .checkbox input:focus + i,\n#fyohpp-form-modal-overlay + .ecf-form .toggle input:focus + i {border-color: #2da5da;}\n#fyohpp-form-modal-overlay + .ecf-form .radio input + i:after {background-color: #2da5da;}\n#fyohpp-form-modal-overlay + .ecf-form .checkbox input + i:after {color: #2da5da;}\n#fyohpp-form-modal-overlay + .ecf-form .radio input:checked + i,\n#fyohpp-form-modal-overlay + .ecf-form .checkbox input:checked + i,\n#fyohpp-form-modal-overlay + .ecf-form .toggle input:checked + i {border-color: #2da5da;}\n#fyohpp-form-modal-overlay + .ecf-form .rating input:checked ~ label {color: #2da5da;}\n#fyohpp-form-modal-overlay + .ecf-form .ecfbutton { background-color: #545454;} #fyohpp-form-modal-overlay + .ecf-form .ecfbutton:hover{background-color: #545454;color: #fff; outline:none !important;}\n<\/style>\r\n      <!-- END  Dynamic CSS for Form ID: 144 -->\r\n\r\n    <!-- START JS for Form ID: 144 -->\r\n\r\n<style>\r\n#form-fyohpp {\r\n\tz-index: 9999991;\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n\tmax-width: 440px;\r\n\t}\r\n\r\n#fyohpp-form-modal-overlay {\r\n\tz-index: 999999;\r\n\tposition: fixed;\r\n\tdisplay: none;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tcursor : pointer;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tbackground: rgba(0,0,0,0.7);\r\n}\r\n\r\n#form-fyohpp fieldset {background: none;}\n\r\n\r\n\n\r\n\r\n#form-fyohpp {background: none repeat scroll 0% 0% rgba(255,255,255, 1); border: solid 1px #d6d6d6;}\n\r\n\r\n.ecf-144-modal-opener { cursor: pointer; color: #cf4343 !important; }\r\n.ecf-144-modal-opener:hover { text-decoration: underline;}\r\n<\/style>\r\n\t<script type=\"text\/javascript\">\r\n\t\tjQuery(document).ready(function($) {\r\n\r\n\t\tvar fyohpptime = '01:20:28';\r\n\r\n\t\t\r\n\tformfyohpp = $('#form-fyohpp');\r\n\toverlayfyohpp = $('#fyohpp-form-modal-overlay');\r\n\r\n\toverlayfyohpp.appendTo(document.body);\r\n\tformfyohpp.appendTo(document.body);\r\n\r\n\t$('#fyohpp-modal-opener').on('click', function() {\r\n\r\n\t\tvar offset = $(document).scrollTop();\r\n\t\tvar currentTop = offset;\r\n\t\tvar curLeft =  Math.max(0, $(window).width());\r\n\t\tvar finaLeft = curLeft\/2-(formfyohpp.outerWidth()\/2);\r\n\r\n\t\toverlayfyohpp.fadeIn();\r\n\t\tformfyohpp.fadeIn();\r\n\r\n    \tformfyohpp.css({\r\n\t\t\t'top': currentTop - formfyohpp.outerHeight() - 60,\r\n\t\t\t'left': overlayfyohpp.outerWidth()\/2 - formfyohpp.outerWidth()\/2,\r\n   \t\t});\r\n\r\n\t\tformfyohpp.animate({top: currentTop + 30},{duration:1000\/*, easing: 'easeOutBounce'*\/});\r\n\r\n\t});\r\n\r\n\toverlayfyohpp.on('click', function() {\r\n\r\n\t\toverlayfyohpp.fadeOut();\r\n\r\n\t\tformfyohpp.fadeOut();\r\n\r\n\t\t$('#form-fyohpp label.input').removeClass('state-error');\r\n\r\n\t});\r\n\r\n\t\t\tvar maxupsize = '67108864';\r\n\t\t\tvar maxupsizeStr = '64M';\r\n            Ladda.bind('.ladda-button');\r\n\t\t\tvar files;\r\n\r\n\t\t\t$(function() {\r\n\t\t\t\t\t$('input[type=file]').on('change', prepareUpload);\r\n\r\n\t\t\t\t\tfunction prepareUpload(event)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfiles = event.target.files;\r\n\r\n\t\t\t\t\t\t\t\t$.each(files, function(key, value) {\r\n\r\n\t\t\t\t\t\t\t\t\tif ( files != null ) {\r\n\t\t\t\t\t\t\t\t\t\tif (files[key].size > maxupsize ) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t  vdialog({\r\n\t\t\t\t\t\t\t\t\t\t\t\t  type: 'error',\r\n\t\t\t\t\t\t\t\t\t\t\t\t  fixed: true,\r\n\t\t\t\t\t\t\t\t\t\t\t\t  title: 'Error',\r\n\t\t\t\t\t\t\t\t\t\t\t\t  okValue: 'OK',\r\n\t\t\t\t\t\t\t\t\t\t\t\t  content: files[key].name+\" exceeds the maximum upload size ( Max: \"+maxupsizeStr+\" )\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t  ok: true,\r\n\t\t\t\t\t\t\t\t\t\t\t\t  }).on('close', function(){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t  files = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t  }).showModal();\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tfiles = null;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif ( files != null ) {\r\n\t\t\t\t\t\t\t$('#atcfyohpp').val(files.length+' file(s) selected');\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$('#atcfyohpp').val('');\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t$(\"#form-fyohpp\").validate(\r\n\t\t\t\t{\r\n\t\t\t\t\trules:\r\n\t\t\t\t\t{\r\n\t\t\t\t\tattachment0:{required: false} ,\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\tmessages:\r\n\t\t\t\t\t{\r\n\t\t\t\t\tattachment0:{required: \"This field is required\"}\t\t\t\t\t},\r\n\t\t\t\t\terrorPlacement: function(error, element) {\r\n\r\n\t\t\t\t\t\t\r\n                \tvar newError = $(error).text();\r\n            \t\tif(newError !== ''){\r\n                \t\t$(element).tooltipster('content', newError);\r\n                \t\t$(element).tooltipster('show');\r\n            \t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t \t\t\t\t\t submitHandler: function (form) {\r\n                                                    ecf_onsubmit(jQuery('.form-fyohpp'));\r\n                                                 },\r\n\r\n\t\t\t\t\t invalidHandler: function (form) {\r\n                        Ladda.stopAll();\r\n\t\t\t\t\t \t},\r\n\r\n\t\t\t\t\tonkeyup: false,\r\n\t\t\t\t\tonfocusout: false,\r\n\t\t\t\t\tonclick: false\r\n\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\r\n\t\t\t\/* Form Submit ( Ajax ) *\/\r\n\t\t\tfunction ecf_onsubmit(form){\r\n\r\n\t\t\tvar datafiles = new FormData();\r\n\r\n\t\t\t\tif(form.attr('action')=='#'){\r\n\r\n\t\t\t\t\tdata = {};\r\n\t\t\t\t\teldat = [];\r\n\t\t\t\t\tdata['action'] = 'ecf_deliver_mail';\r\n\t\t\t\t\tdata['type'] = 'fyohpp';\r\n\t\t\t\t\tdata['time'] = fyohpptime;\r\n\t\t\t\t\tdata['formid'] = '144';\r\n\t\t\t\t\tdata['security'] = 'aba9e3c9b8';\r\n\r\n\t\t\t\t\t$('input, textarea, select, radio, checkbox, file', form).each(function(key){\r\n\r\n\t\t\t\t\t\titems = {};\r\n\r\n\t\t\t\t\t\tif (typeof $(this).data('type') === 'undefined') { return true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'radio' && !$(this).is(':checked')) { return true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'rating' && !$(this).is(':checked')) { return true; } \/\/ Rating System @since 1.0.7.9\r\n\t\t\t\t\t\tif ($(this).data('type') == 'checkboxes') {\treturn true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'address') { return true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'daterange') { return true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'department') { items['deptemail'] = $(this).find(\":selected\").data('deptemail'); }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'attachment' && typeof files !== 'undefined' ) {\r\n\r\n\t\t\t\t\t\t\tif ( files != null ) {\r\n\t\t\t\t\t\t\t\t$.each(files, function(key, value) {\r\n\r\n\t\t\t\t\t\t\t\t\tdatafiles.append(key, value);\r\n\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\titems['type'] = $(this).data('type');\r\n\t\t\t\t\t\titems['label'] = $(this).data('label');\r\n\t\t\t\t\t\titems['value'] = this.value;\r\n\t\t\t\t\t\titems['name'] = this.name;\r\n\r\n\t\t\t\t\t\teldat.push(items);\r\n\r\n\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdata['allelmnt'] = JSON.stringify(eldat);\r\n\r\n\t\t\t\tif ( files != null ) {\r\n\r\n\t\t\t\t\tdatafiles.append( 'action', 'ecf_form_uploader' );\r\n\t\t\t\t\tdatafiles.append( 'thefile', JSON.stringify(datafiles) );\r\n\t\t\t\t\tdatafiles.append( 'formid', '144' );\r\n\t\t\t\t\tdatafiles.append( 'security', 'aba9e3c9b8' );\r\n\r\n\t\t\t\t\t\tuploadForm(datafiles);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tdata['attachments'] = null;\r\n\t\t\t\t\t\tsubmitForm('');\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n            \r\n\t\t\t  function submitForm(tdat) {\r\n                  \r\n\t\t\t\tif ( tdat ) {\r\n\t\t\t\t\tdata['attachments'] = JSON.stringify(filedat);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t$.ajax({\r\n\t\t\t\t\turl: 'https:\/\/ridea.cl\/es\/wp-admin\/admin-ajax.php',\r\n\t\t\t\t\ttype: 'POST',\r\n\t\t\t\t\tdataType: 'json',\r\n\t\t\t\t\tdata: data,\r\n\t\t\t\t\tsuccess: function(data) {\r\n\r\n\t\t\t\t\t\tif(data.Ok==true) {\r\n                            \r\n\t\t\t\t\t\t\t$(\"#form-fyohpp\").get(0).reset();\r\n\t\t\t\t\t\t\t$(\"#form-fyohpp section label\").removeClass('state-success');\r\n\r\n\t\t\t\t\t\t\tif(data.msg == 'redirect') {\r\n\t\t\t\t\t\t\t\twindow.location = \"http:\/\/\";\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tnotifyme('Mensaje enviado exitosamente. ', 'success');\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twindow.setTimeout(function() {\r\n\t\t\t\t\t\t\t\t$('#fyohpp-form-modal-overlay').trigger('click');\r\n\t\t\t\t\t\t\t\t}, 2500);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t$(\"#form-fyohpp\").get(0).reset();\r\n\t\t\t\t\t\t\t\tnotifyme(data.msg, 'error');\r\n\t\t\t\t\t\t\t\t}\r\n\r\n                            Ladda.stopAll();\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\r\n\t\t\t\t\t\tfiles = null;\r\n\t\t\t\t\t\tfiledat = null;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t  function uploadForm(dat) {\r\n\r\n\t\t\t\t\t$('.meter span').css('width','0%');\r\n\r\n       \t\t\t\t$.ajax({\r\n\t\t\t\t\t\t  \txhr: function() {\r\n\t\t\t\t\t\t\t\tvar xhr = new window.XMLHttpRequest();\r\n\r\n\t\t\t\t\t\t\t\txhr.upload.addEventListener(\"progress\", function(evt) {\r\n\t\t\t\t\t\t\t\t\tif (evt.lengthComputable) {\r\n\t\t\t\t\t\t\t\t\t\t$('.meter').fadeIn(500);\r\n\t\t\t\t\t\t\t\t\t\tvar percentComplete = evt.loaded \/ evt.total;\r\n\t\t\t\t\t\t\t\t\t\tpercentComplete = parseInt(percentComplete * 100);\r\n\t\t\t\t\t\t\t\t\t\t$('.meter span').css('width',+percentComplete+'%');\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}, false);\r\n\r\n\t\t\t\t\t\t\t\treturn xhr;\r\n\t\t\t\t\t\t\t},\r\n            \t\t\t\turl: 'https:\/\/ridea.cl\/es\/wp-admin\/admin-ajax.php',\r\n            \t\t\t\ttype: 'POST',\r\n            \t\t\t\tdata: dat,\r\n            \t\t\t\tcache: false,\r\n            \t\t\t\tdataType: 'json',\r\n            \t\t\t\tprocessData: false,\r\n            \t\t\t\tcontentType: false,\r\n            \t\t\t\tsuccess: function(data, textStatus, jqXHR)\r\n            \t\t\t\t{\r\n            \t\t\t\t\tif(data.Ok==true) {\r\n\r\n\t\t\t\t\t\t\t\t\tfileitms = {};\r\n\t\t\t\t\t\t\t\t\tfiledat = [];\r\n\r\n\t\t\t\t\t\t\t\t$.each(data.msg, function(key, value) {\r\n\r\n\t\t\t\t\t\t\t\t\tfiledat.push(value);\r\n\r\n\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t\tsubmitForm(filedat);\r\n\r\n            \t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (data.Ok==false) {\r\n\t\t\t\t\t\t\t\t\t$(\"#form-fyohpp\").get(0).reset();\r\n\t\t\t\t\t\t\t\t\tnotifyme(data.msg, 'error');\r\n\t\t\t\t\t\t\t\t\tLadda.stopAll();\r\n\t\t\t\t\t\t\t\t\t}\r\n            \t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\tif ( jqXHR.responseText == '0') {\r\n\t\t\t\t\t\t\t\t\t\t\t$(\"#form-fyohpp\").get(0).reset();\r\n\t\t\t\t\t\t\t\t\t\t\tnotifyme('File too large. File must be less than '+maxupsizeStr+'.', 'error');\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n                                        Ladda.stopAll();\r\n            \t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t$('.meter').fadeOut(500);\r\n            \t\t\t\t},\r\n            \t\t\t\terror: function(jqXHR, textStatus, errorThrown)\r\n            \t\t\t\t{\r\n\t\t\t\t\t\t\t\t$('.meter').fadeOut(500);\r\n\t\t\t\t\t\t\t\tLadda.stopAll();\r\n\t\t\t\t\t\t\t\tnotifyme('There was an error uploading your files.', 'error');\r\n            \t\t\t\t}\r\n        \t\t\t\t});\r\n\r\n\r\n\t\t\t\t\t\tfiles = null;\r\n\t\t\t\t\t\tfiledat = null;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t  function notifyme(msg, typ) {\r\n\r\n\t\t\t\t  var title = (typ == 'success' ? 'sent' : typ);\r\n\r\n\t\t\t\t  vdialog({\r\n\t\t\t\t\t  type: typ,\r\n\t\t\t\t\t  fixed: true,\r\n\t\t\t\t\t  title: title,\r\n\t\t\t\t\t  okValue: 'OK',\r\n\t\t\t\t\t  content: msg,\r\n\t\t\t\t\t  ok: true,\r\n\t\t\t\t\t  }).on('close', function(){\r\n\t\t\t\t\t\t  msg = null;\r\n\t\t\t\t\t\t  typ = null;\r\n\t\t\t\t\t\t  }).showModal();\r\n\r\n\t\t\t\t\t  msg = null;\r\n\t\t\t\t\t  typ = null;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t$('#form-fyohpp input, #form-fyohpp textarea, #form-fyohpp select, #form-fyohpp radio, #form-fyohpp checkbox, #form-fyohpp file').tooltipster({\r\n\t\t\t\ttrigger: 'custom',\r\n\t\t\t\ttheme: 'tooltipster-default',\r\n\t\t\t\tanimation: 'usedefault',\r\n\t\t\t\tautoClose: true,\r\n\t\t\t\tonlyOne: false,\r\n\t\t\t\ttimer: 3000,\r\n\t\t\t\tposition: 'top-right'\r\n\t\t\t});\r\n\r\n\t\t\t\r\n\t\t});\r\n\t\t<\/script>\r\n    <!-- END JS for Form ID: 144 -->\r\n\r\n<!-- START Form Markup for Form ID: 144 -->\r\n\r\n\t\r\n\t<div id=\"preloader-fyohpp\" class=\"ecfpreloader\" style=\" display: none !important;\"><\/div>\r\n\r\n    \t\t<form style=\" display: none !important;\" method=\"post\" enctype=\"multipart\/form-data\" action=\"#\" id=\"form-fyohpp\" class=\"ecf-form form-fyohpp\">\r\n        \t<header style=\"\">Identificaci\u00f3n + Licencia<\/header>    \t\t<fieldset>\r\n    <section><label class=\"label\">Carnet \/ DNI +  Licencia de Conducir<\/label><label class=\"input input-file\"><div class=\"ecfbutton attach144\"><input data-type=\"attachment\" data-label=\"Carnet \/ DNI +  Licencia de Conducir\" type=\"file\" id=\"attachment0\" name=\"attachment0\" multiple>Subir<\/div><input id=\"atcfyohpp\" type=\"text\" readonly><div class=\"meter\">\r\n\t\t\t<span style=\"width: 0%\"><\/span>\r\n\t\t<\/div><\/label><div class=\"ecfnote\"><strong>NOTE :<\/strong> \u2022 Tu imagen debe ser a color \u2022 Enfocada, n\u00edtida y derecha \u2022 Sin ocultar o tapar parte del documento \u2022 No agregues texto digital adicional \u2022 Sin flash para que no aparezcan reflejos en la captura.<\/div><\/section>\r\n       \t\t <\/fieldset>\r\n        \t\t<footer>\r\n                    <button data-style=\"slide-down\" id=\"cf-submittedfyohpp\" class=\"ecfbutton ladda-button\" type=\"submit\" name=\"cf-submittedfyohpp\"><span class=\"ladda-label\">ENVIAR<\/span><\/button>\r\n\t\t\t\t<\/footer>\r\n\t\t\t<\/form>\r\n\r\n                                    <div id=\"fyohpp-form-modal-overlay\" class=\"form-modal-overlay\">             <\/div>\r\n<!-- END Form Markup for Form ID: 144 -->\r\n\r\n\r\n    <!-- START Custom CSS for Form ID: 144 -->\r\n    <style>\r\n\t    <\/style>\r\n    <!-- END  Custom CSS for Form ID: 144 -->\r\n\r\n    <!-- START Custom JS for Form ID: 144 -->\r\n    <script type=\"text\/javascript\">\r\n\tjQuery(document).ready(function ($) {\r\n\t\t});\r\n    <\/script>\r\n    <!-- END  Custom JS for Form ID: 144 -->\r\n\r\n\r\n\t\r\n\t\t<\/p>\n<p>[\/vc_column_text][\/vc_column][vc_column width=&#8221;1\/2&#8243;][vc_column_text]<\/p>\n<p style=\"text-align: center;\"><b>4 &#8211; FOTO N\u00cdTIDA DE TU LICENCIA DE CONDUCIR<br \/>\n<\/b><img decoding=\"async\" style=\"box-shadow: none !important;border-radius: none !important; display: block !important;\" src=\"https:\/\/ridea.cl\/es\/wp-content\/uploads\/2020\/05\/licencia-btn.png\" class=\"ecf-144-modal-opener\" id=\"mdfkvd-modal-opener\">\r\n    <!-- START Dynamic CSS for Form ID: 144 -->\r\n    <style>#mdfkvd-form-modal-overlay + .ecf-form .input input, #mdfkvd-form-modal-overlay + .ecf-form .select select, #mdfkvd-form-modal-overlay + .ecf-form .textarea textarea, #mdfkvd-form-modal-overlay + .ecf-form .radio i, #mdfkvd-form-modal-overlay + .ecf-form .checkbox i, #mdfkvd-form-modal-overlay + .ecf-form .toggle i, #mdfkvd-form-modal-overlay + .ecf-form .ecficon-append, #mdfkvd-form-modal-overlay + .ecf-form .ecficon-prepend { color: #404040 !important;}\n#mdfkvd-form-modal-overlay + .ecf-form  .state-success.input input, #mdfkvd-form-modal-overlay + .ecf-form .state-success.select select, #mdfkvd-form-modal-overlay + .ecf-form .state-success.textarea textarea, #mdfkvd-form-modal-overlay + .ecf-form .state-success.radio i, #mdfkvd-form-modal-overlay + .ecf-form .state-success.checkbox i, #mdfkvd-form-modal-overlay + .ecf-form .state-success.toggle i, #mdfkvd-form-modal-overlay + .ecf-form .state-success .ecficon-append, #mdfkvd-form-modal-overlay + .ecf-form .state-success .ecficon-prepend { background: #f0fff0 !important;}\n#mdfkvd-form-modal-overlay + .ecf-form  .state-error.input input, #mdfkvd-form-modal-overlay + .ecf-form .state-error.select select, #mdfkvd-form-modal-overlay + .ecf-form .state-error.textarea textarea, #mdfkvd-form-modal-overlay + .ecf-form .state-error.radio i, #mdfkvd-form-modal-overlay + .ecf-form .state-error.checkbox i, #mdfkvd-form-modal-overlay + .ecf-form .state-error.toggle i, #mdfkvd-form-modal-overlay + .ecf-form .state-error .ecficon-append, #mdfkvd-form-modal-overlay + .ecf-form .state-error .ecficon-prepend { background: #fff3f3 !important;}\n#mdfkvd-form-modal-overlay + .ecf-form .ecficon-prepend { color: #CCC !important;}\n#mdfkvd-form-modal-overlay + .ecf-form .input input, #mdfkvd-form-modal-overlay + .ecf-form .select select, #mdfkvd-form-modal-overlay + .ecf-form .textarea textarea, #mdfkvd-form-modal-overlay + .ecf-form .radio i, #mdfkvd-form-modal-overlay + .ecf-form .checkbox i, #mdfkvd-form-modal-overlay + .ecf-form .toggle i, #mdfkvd-form-modal-overlay + .ecf-form .ecficon-append, #mdfkvd-form-modal-overlay + .ecf-form .ecficon-prepend { border-color: #E5E5E5;}\n#mdfkvd-form-modal-overlay + .ecf-form section {margin-bottom: 20px !important;}\n#mdfkvd-form-modal-overlay + #form-mdfkvd fieldset {background: none;}\n#mdfkvd-form-modal-overlay + {padding: 40px;}\n#mdfkvd-form-modal-overlay + .ecf-form {color: #666666 !important;}\n#mdfkvd-form-modal-overlay + {max-width: 440px;}\n#mdfkvd-form-modal-overlay + #form-mdfkvd {background: none repeat scroll 0% 0% rgba(255,255,255, 1); border: solid 1px #d6d6d6;}\n#mdfkvd-form-modal-overlay + #form-mdfkvd {box-shadow: 0px 0px 10px rgba(56,56,56, 0.3) !important;}\n#mdfkvd-form-modal-overlay + #form-mdfkvd header {background: none repeat scroll 0% 0% rgba(248,248,248, 1); font-size: 25px !important; font-weight: normal !important; color: #707070; font-family: Open Sans;}\n#mdfkvd-form-modal-overlay + .ecf-form .label {font-size: 13px !important; font-weight: normal !important; color: #666; font-family: Open Sans;}\n#mdfkvd-form-modal-overlay + .ecf-form .ecfbutton, #mdfkvd-form-modal-overlay + .ecf-form .input-file .ecfbutton {font-size: 15px !important; font-weight: normal !important; color: #ffffff; font-family: Open Sans !important;}\n#mdfkvd-form-modal-overlay + #form-mdfkvd footer {background: none repeat scroll 0% 0% rgba(248,248,248, 1);}\n#mdfkvd-form-modal-overlay + .ecf-form .input input,#mdfkvd-form-modal-overlay + .ecf-form .select select,#mdfkvd-form-modal-overlay + .ecf-form .textarea textarea {background: #ffffff;}\n#mdfkvd-form-modal-overlay + .ecf-form .toggle i:before {background-color: #2da5da;}\n#mdfkvd-form-modal-overlay + .ecf-form .button {background-color: #2da5da;}\n#mdfkvd-form-modal-overlay + .ecf-form .input:hover input,\n#mdfkvd-form-modal-overlay + .ecf-form .select:hover select,\n#mdfkvd-form-modal-overlay + .ecf-form .textarea:hover textarea,\n#mdfkvd-form-modal-overlay + .ecf-form .radio:hover i,\n#mdfkvd-form-modal-overlay + .ecf-form .checkbox:hover i,\n#mdfkvd-form-modal-overlay + .ecf-form .toggle:hover i,\n#mdfkvd-form-modal-overlay + .ecf-form .ui-slider-handle:hover {border-color: #2da5da;}\n#mdfkvd-form-modal-overlay + .ecf-form .ui-slider-handle:hover {border-color: #2da5da;}\n#mdfkvd-form-modal-overlay + .ecf-form .rating input + label:hover,\n#mdfkvd-form-modal-overlay + .ecf-form .rating input + label:hover ~ label {color: #2da5da;}\n#mdfkvd-form-modal-overlay + .ecf-form .input input:focus,\n#mdfkvd-form-modal-overlay + .ecf-form .select select:focus,\n#mdfkvd-form-modal-overlay + .ecf-form .textarea textarea:focus,\n#mdfkvd-form-modal-overlay + .ecf-form .radio input:focus + i,\n#mdfkvd-form-modal-overlay + .ecf-form .checkbox input:focus + i,\n#mdfkvd-form-modal-overlay + .ecf-form .toggle input:focus + i {border-color: #2da5da;}\n#mdfkvd-form-modal-overlay + .ecf-form .radio input + i:after {background-color: #2da5da;}\n#mdfkvd-form-modal-overlay + .ecf-form .checkbox input + i:after {color: #2da5da;}\n#mdfkvd-form-modal-overlay + .ecf-form .radio input:checked + i,\n#mdfkvd-form-modal-overlay + .ecf-form .checkbox input:checked + i,\n#mdfkvd-form-modal-overlay + .ecf-form .toggle input:checked + i {border-color: #2da5da;}\n#mdfkvd-form-modal-overlay + .ecf-form .rating input:checked ~ label {color: #2da5da;}\n#mdfkvd-form-modal-overlay + .ecf-form .ecfbutton { background-color: #545454;} #mdfkvd-form-modal-overlay + .ecf-form .ecfbutton:hover{background-color: #545454;color: #fff; outline:none !important;}\n<\/style>\r\n      <!-- END  Dynamic CSS for Form ID: 144 -->\r\n\r\n    <!-- START JS for Form ID: 144 -->\r\n\r\n<style>\r\n#form-mdfkvd {\r\n\tz-index: 9999991;\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n\tmax-width: 440px;\r\n\t}\r\n\r\n#mdfkvd-form-modal-overlay {\r\n\tz-index: 999999;\r\n\tposition: fixed;\r\n\tdisplay: none;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tcursor : pointer;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tbackground: rgba(0,0,0,0.7);\r\n}\r\n\r\n#form-mdfkvd fieldset {background: none;}\n\r\n\r\n\n\r\n\r\n#form-mdfkvd {background: none repeat scroll 0% 0% rgba(255,255,255, 1); border: solid 1px #d6d6d6;}\n\r\n\r\n.ecf-144-modal-opener { cursor: pointer; color: #cf4343 !important; }\r\n.ecf-144-modal-opener:hover { text-decoration: underline;}\r\n<\/style>\r\n\t<script type=\"text\/javascript\">\r\n\t\tjQuery(document).ready(function($) {\r\n\r\n\t\tvar mdfkvdtime = '01:20:28';\r\n\r\n\t\t\r\n\tformmdfkvd = $('#form-mdfkvd');\r\n\toverlaymdfkvd = $('#mdfkvd-form-modal-overlay');\r\n\r\n\toverlaymdfkvd.appendTo(document.body);\r\n\tformmdfkvd.appendTo(document.body);\r\n\r\n\t$('#mdfkvd-modal-opener').on('click', function() {\r\n\r\n\t\tvar offset = $(document).scrollTop();\r\n\t\tvar currentTop = offset;\r\n\t\tvar curLeft =  Math.max(0, $(window).width());\r\n\t\tvar finaLeft = curLeft\/2-(formmdfkvd.outerWidth()\/2);\r\n\r\n\t\toverlaymdfkvd.fadeIn();\r\n\t\tformmdfkvd.fadeIn();\r\n\r\n    \tformmdfkvd.css({\r\n\t\t\t'top': currentTop - formmdfkvd.outerHeight() - 60,\r\n\t\t\t'left': overlaymdfkvd.outerWidth()\/2 - formmdfkvd.outerWidth()\/2,\r\n   \t\t});\r\n\r\n\t\tformmdfkvd.animate({top: currentTop + 30},{duration:1000\/*, easing: 'easeOutBounce'*\/});\r\n\r\n\t});\r\n\r\n\toverlaymdfkvd.on('click', function() {\r\n\r\n\t\toverlaymdfkvd.fadeOut();\r\n\r\n\t\tformmdfkvd.fadeOut();\r\n\r\n\t\t$('#form-mdfkvd label.input').removeClass('state-error');\r\n\r\n\t});\r\n\r\n\t\t\tvar maxupsize = '67108864';\r\n\t\t\tvar maxupsizeStr = '64M';\r\n            Ladda.bind('.ladda-button');\r\n\t\t\tvar files;\r\n\r\n\t\t\t$(function() {\r\n\t\t\t\t\t$('input[type=file]').on('change', prepareUpload);\r\n\r\n\t\t\t\t\tfunction prepareUpload(event)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfiles = event.target.files;\r\n\r\n\t\t\t\t\t\t\t\t$.each(files, function(key, value) {\r\n\r\n\t\t\t\t\t\t\t\t\tif ( files != null ) {\r\n\t\t\t\t\t\t\t\t\t\tif (files[key].size > maxupsize ) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t  vdialog({\r\n\t\t\t\t\t\t\t\t\t\t\t\t  type: 'error',\r\n\t\t\t\t\t\t\t\t\t\t\t\t  fixed: true,\r\n\t\t\t\t\t\t\t\t\t\t\t\t  title: 'Error',\r\n\t\t\t\t\t\t\t\t\t\t\t\t  okValue: 'OK',\r\n\t\t\t\t\t\t\t\t\t\t\t\t  content: files[key].name+\" exceeds the maximum upload size ( Max: \"+maxupsizeStr+\" )\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t  ok: true,\r\n\t\t\t\t\t\t\t\t\t\t\t\t  }).on('close', function(){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t  files = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t  }).showModal();\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tfiles = null;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif ( files != null ) {\r\n\t\t\t\t\t\t\t$('#atcmdfkvd').val(files.length+' file(s) selected');\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$('#atcmdfkvd').val('');\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t$(\"#form-mdfkvd\").validate(\r\n\t\t\t\t{\r\n\t\t\t\t\trules:\r\n\t\t\t\t\t{\r\n\t\t\t\t\tattachment0:{required: false} ,\r\n\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\tmessages:\r\n\t\t\t\t\t{\r\n\t\t\t\t\tattachment0:{required: \"This field is required\"}\t\t\t\t\t},\r\n\t\t\t\t\terrorPlacement: function(error, element) {\r\n\r\n\t\t\t\t\t\t\r\n                \tvar newError = $(error).text();\r\n            \t\tif(newError !== ''){\r\n                \t\t$(element).tooltipster('content', newError);\r\n                \t\t$(element).tooltipster('show');\r\n            \t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t \t\t\t\t\t submitHandler: function (form) {\r\n                                                    ecf_onsubmit(jQuery('.form-mdfkvd'));\r\n                                                 },\r\n\r\n\t\t\t\t\t invalidHandler: function (form) {\r\n                        Ladda.stopAll();\r\n\t\t\t\t\t \t},\r\n\r\n\t\t\t\t\tonkeyup: false,\r\n\t\t\t\t\tonfocusout: false,\r\n\t\t\t\t\tonclick: false\r\n\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\r\n\t\t\t\/* Form Submit ( Ajax ) *\/\r\n\t\t\tfunction ecf_onsubmit(form){\r\n\r\n\t\t\tvar datafiles = new FormData();\r\n\r\n\t\t\t\tif(form.attr('action')=='#'){\r\n\r\n\t\t\t\t\tdata = {};\r\n\t\t\t\t\teldat = [];\r\n\t\t\t\t\tdata['action'] = 'ecf_deliver_mail';\r\n\t\t\t\t\tdata['type'] = 'mdfkvd';\r\n\t\t\t\t\tdata['time'] = mdfkvdtime;\r\n\t\t\t\t\tdata['formid'] = '144';\r\n\t\t\t\t\tdata['security'] = 'aba9e3c9b8';\r\n\r\n\t\t\t\t\t$('input, textarea, select, radio, checkbox, file', form).each(function(key){\r\n\r\n\t\t\t\t\t\titems = {};\r\n\r\n\t\t\t\t\t\tif (typeof $(this).data('type') === 'undefined') { return true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'radio' && !$(this).is(':checked')) { return true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'rating' && !$(this).is(':checked')) { return true; } \/\/ Rating System @since 1.0.7.9\r\n\t\t\t\t\t\tif ($(this).data('type') == 'checkboxes') {\treturn true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'address') { return true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'daterange') { return true; }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'department') { items['deptemail'] = $(this).find(\":selected\").data('deptemail'); }\r\n\t\t\t\t\t\tif ($(this).data('type') == 'attachment' && typeof files !== 'undefined' ) {\r\n\r\n\t\t\t\t\t\t\tif ( files != null ) {\r\n\t\t\t\t\t\t\t\t$.each(files, function(key, value) {\r\n\r\n\t\t\t\t\t\t\t\t\tdatafiles.append(key, value);\r\n\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\titems['type'] = $(this).data('type');\r\n\t\t\t\t\t\titems['label'] = $(this).data('label');\r\n\t\t\t\t\t\titems['value'] = this.value;\r\n\t\t\t\t\t\titems['name'] = this.name;\r\n\r\n\t\t\t\t\t\teldat.push(items);\r\n\r\n\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdata['allelmnt'] = JSON.stringify(eldat);\r\n\r\n\t\t\t\tif ( files != null ) {\r\n\r\n\t\t\t\t\tdatafiles.append( 'action', 'ecf_form_uploader' );\r\n\t\t\t\t\tdatafiles.append( 'thefile', JSON.stringify(datafiles) );\r\n\t\t\t\t\tdatafiles.append( 'formid', '144' );\r\n\t\t\t\t\tdatafiles.append( 'security', 'aba9e3c9b8' );\r\n\r\n\t\t\t\t\t\tuploadForm(datafiles);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tdata['attachments'] = null;\r\n\t\t\t\t\t\tsubmitForm('');\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n            \r\n\t\t\t  function submitForm(tdat) {\r\n                  \r\n\t\t\t\tif ( tdat ) {\r\n\t\t\t\t\tdata['attachments'] = JSON.stringify(filedat);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t$.ajax({\r\n\t\t\t\t\turl: 'https:\/\/ridea.cl\/es\/wp-admin\/admin-ajax.php',\r\n\t\t\t\t\ttype: 'POST',\r\n\t\t\t\t\tdataType: 'json',\r\n\t\t\t\t\tdata: data,\r\n\t\t\t\t\tsuccess: function(data) {\r\n\r\n\t\t\t\t\t\tif(data.Ok==true) {\r\n                            \r\n\t\t\t\t\t\t\t$(\"#form-mdfkvd\").get(0).reset();\r\n\t\t\t\t\t\t\t$(\"#form-mdfkvd section label\").removeClass('state-success');\r\n\r\n\t\t\t\t\t\t\tif(data.msg == 'redirect') {\r\n\t\t\t\t\t\t\t\twindow.location = \"http:\/\/\";\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tnotifyme('Mensaje enviado exitosamente. ', 'success');\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twindow.setTimeout(function() {\r\n\t\t\t\t\t\t\t\t$('#mdfkvd-form-modal-overlay').trigger('click');\r\n\t\t\t\t\t\t\t\t}, 2500);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t$(\"#form-mdfkvd\").get(0).reset();\r\n\t\t\t\t\t\t\t\tnotifyme(data.msg, 'error');\r\n\t\t\t\t\t\t\t\t}\r\n\r\n                            Ladda.stopAll();\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\r\n\t\t\t\t\t\tfiles = null;\r\n\t\t\t\t\t\tfiledat = null;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t  function uploadForm(dat) {\r\n\r\n\t\t\t\t\t$('.meter span').css('width','0%');\r\n\r\n       \t\t\t\t$.ajax({\r\n\t\t\t\t\t\t  \txhr: function() {\r\n\t\t\t\t\t\t\t\tvar xhr = new window.XMLHttpRequest();\r\n\r\n\t\t\t\t\t\t\t\txhr.upload.addEventListener(\"progress\", function(evt) {\r\n\t\t\t\t\t\t\t\t\tif (evt.lengthComputable) {\r\n\t\t\t\t\t\t\t\t\t\t$('.meter').fadeIn(500);\r\n\t\t\t\t\t\t\t\t\t\tvar percentComplete = evt.loaded \/ evt.total;\r\n\t\t\t\t\t\t\t\t\t\tpercentComplete = parseInt(percentComplete * 100);\r\n\t\t\t\t\t\t\t\t\t\t$('.meter span').css('width',+percentComplete+'%');\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}, false);\r\n\r\n\t\t\t\t\t\t\t\treturn xhr;\r\n\t\t\t\t\t\t\t},\r\n            \t\t\t\turl: 'https:\/\/ridea.cl\/es\/wp-admin\/admin-ajax.php',\r\n            \t\t\t\ttype: 'POST',\r\n            \t\t\t\tdata: dat,\r\n            \t\t\t\tcache: false,\r\n            \t\t\t\tdataType: 'json',\r\n            \t\t\t\tprocessData: false,\r\n            \t\t\t\tcontentType: false,\r\n            \t\t\t\tsuccess: function(data, textStatus, jqXHR)\r\n            \t\t\t\t{\r\n            \t\t\t\t\tif(data.Ok==true) {\r\n\r\n\t\t\t\t\t\t\t\t\tfileitms = {};\r\n\t\t\t\t\t\t\t\t\tfiledat = [];\r\n\r\n\t\t\t\t\t\t\t\t$.each(data.msg, function(key, value) {\r\n\r\n\t\t\t\t\t\t\t\t\tfiledat.push(value);\r\n\r\n\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t\tsubmitForm(filedat);\r\n\r\n            \t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (data.Ok==false) {\r\n\t\t\t\t\t\t\t\t\t$(\"#form-mdfkvd\").get(0).reset();\r\n\t\t\t\t\t\t\t\t\tnotifyme(data.msg, 'error');\r\n\t\t\t\t\t\t\t\t\tLadda.stopAll();\r\n\t\t\t\t\t\t\t\t\t}\r\n            \t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\tif ( jqXHR.responseText == '0') {\r\n\t\t\t\t\t\t\t\t\t\t\t$(\"#form-mdfkvd\").get(0).reset();\r\n\t\t\t\t\t\t\t\t\t\t\tnotifyme('File too large. File must be less than '+maxupsizeStr+'.', 'error');\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n                                        Ladda.stopAll();\r\n            \t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t$('.meter').fadeOut(500);\r\n            \t\t\t\t},\r\n            \t\t\t\terror: function(jqXHR, textStatus, errorThrown)\r\n            \t\t\t\t{\r\n\t\t\t\t\t\t\t\t$('.meter').fadeOut(500);\r\n\t\t\t\t\t\t\t\tLadda.stopAll();\r\n\t\t\t\t\t\t\t\tnotifyme('There was an error uploading your files.', 'error');\r\n            \t\t\t\t}\r\n        \t\t\t\t});\r\n\r\n\r\n\t\t\t\t\t\tfiles = null;\r\n\t\t\t\t\t\tfiledat = null;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t  function notifyme(msg, typ) {\r\n\r\n\t\t\t\t  var title = (typ == 'success' ? 'sent' : typ);\r\n\r\n\t\t\t\t  vdialog({\r\n\t\t\t\t\t  type: typ,\r\n\t\t\t\t\t  fixed: true,\r\n\t\t\t\t\t  title: title,\r\n\t\t\t\t\t  okValue: 'OK',\r\n\t\t\t\t\t  content: msg,\r\n\t\t\t\t\t  ok: true,\r\n\t\t\t\t\t  }).on('close', function(){\r\n\t\t\t\t\t\t  msg = null;\r\n\t\t\t\t\t\t  typ = null;\r\n\t\t\t\t\t\t  }).showModal();\r\n\r\n\t\t\t\t\t  msg = null;\r\n\t\t\t\t\t  typ = null;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t$('#form-mdfkvd input, #form-mdfkvd textarea, #form-mdfkvd select, #form-mdfkvd radio, #form-mdfkvd checkbox, #form-mdfkvd file').tooltipster({\r\n\t\t\t\ttrigger: 'custom',\r\n\t\t\t\ttheme: 'tooltipster-default',\r\n\t\t\t\tanimation: 'usedefault',\r\n\t\t\t\tautoClose: true,\r\n\t\t\t\tonlyOne: false,\r\n\t\t\t\ttimer: 3000,\r\n\t\t\t\tposition: 'top-right'\r\n\t\t\t});\r\n\r\n\t\t\t\r\n\t\t});\r\n\t\t<\/script>\r\n    <!-- END JS for Form ID: 144 -->\r\n\r\n<!-- START Form Markup for Form ID: 144 -->\r\n\r\n\t\r\n\t<div id=\"preloader-mdfkvd\" class=\"ecfpreloader\" style=\" display: none !important;\"><\/div>\r\n\r\n    \t\t<form style=\" display: none !important;\" method=\"post\" enctype=\"multipart\/form-data\" action=\"#\" id=\"form-mdfkvd\" class=\"ecf-form form-mdfkvd\">\r\n        \t<header style=\"\">Identificaci\u00f3n + Licencia<\/header>    \t\t<fieldset>\r\n    <section><label class=\"label\">Carnet \/ DNI +  Licencia de Conducir<\/label><label class=\"input input-file\"><div class=\"ecfbutton attach144\"><input data-type=\"attachment\" data-label=\"Carnet \/ DNI +  Licencia de Conducir\" type=\"file\" id=\"attachment0\" name=\"attachment0\" multiple>Subir<\/div><input id=\"atcmdfkvd\" type=\"text\" readonly><div class=\"meter\">\r\n\t\t\t<span style=\"width: 0%\"><\/span>\r\n\t\t<\/div><\/label><div class=\"ecfnote\"><strong>NOTE :<\/strong> \u2022 Tu imagen debe ser a color \u2022 Enfocada, n\u00edtida y derecha \u2022 Sin ocultar o tapar parte del documento \u2022 No agregues texto digital adicional \u2022 Sin flash para que no aparezcan reflejos en la captura.<\/div><\/section>\r\n       \t\t <\/fieldset>\r\n        \t\t<footer>\r\n                    <button data-style=\"slide-down\" id=\"cf-submittedmdfkvd\" class=\"ecfbutton ladda-button\" type=\"submit\" name=\"cf-submittedmdfkvd\"><span class=\"ladda-label\">ENVIAR<\/span><\/button>\r\n\t\t\t\t<\/footer>\r\n\t\t\t<\/form>\r\n\r\n                                    <div id=\"mdfkvd-form-modal-overlay\" class=\"form-modal-overlay\">             <\/div>\r\n<!-- END Form Markup for Form ID: 144 -->\r\n\r\n\r\n    <!-- START Custom CSS for Form ID: 144 -->\r\n    <style>\r\n\t    <\/style>\r\n    <!-- END  Custom CSS for Form ID: 144 -->\r\n\r\n    <!-- START Custom JS for Form ID: 144 -->\r\n    <script type=\"text\/javascript\">\r\n\tjQuery(document).ready(function ($) {\r\n\t\t});\r\n    <\/script>\r\n    <!-- END  Custom JS for Form ID: 144 -->\r\n\r\n\r\n\t\r\n\t\t<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_btn title=&#8221;Continuar&#8221; color=&#8221;inverse&#8221; align=&#8221;center&#8221; i_icon_fontawesome=&#8221;fa fa-arrow-right&#8221; add_icon=&#8221;true&#8221; link=&#8221;url:https%3A%2F%2Fwww.ridearentals.com%2Fes%2Fverificacion%2F|||&#8221;][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_custom_heading text=&#8221;Control de identidad para prevenir fraude y asegurar verificaci\u00f3n de usuarios.&#8221; font_container=&#8221;tag:h1|font_size:35|text_align:center&#8221; google_fonts=&#8221;font_family:Abel%3Aregular|font_style:400%20regular%3A400%3Anormal&#8221;][vc_column_text] Sigue los pasos para poder ser un socio autorizado y poder completar la verificaci\u00f3n de tu identidad. [\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column width=&#8221;1\/2&#8243;][vc_column_text] 1) SELFIE DE TU ROSTRO [\/vc_column_text][\/vc_column][vc_column width=&#8221;1\/2&#8243;][vc_column_text] 2) SELFIE DE TU LICENCIA JUNTO A TU ROSTRO [\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column width=&#8221;1\/2&#8243;][vc_column_text] 3 &#8211; FOTO N\u00cdTIDA [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page_fullwidth.php","meta":{"footnotes":""},"class_list":["post-105","page","type-page","status-publish","entry"],"_links":{"self":[{"href":"https:\/\/ridea.cl\/es\/wp-json\/wp\/v2\/pages\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ridea.cl\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ridea.cl\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ridea.cl\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ridea.cl\/es\/wp-json\/wp\/v2\/comments?post=105"}],"version-history":[{"count":45,"href":"https:\/\/ridea.cl\/es\/wp-json\/wp\/v2\/pages\/105\/revisions"}],"predecessor-version":[{"id":200,"href":"https:\/\/ridea.cl\/es\/wp-json\/wp\/v2\/pages\/105\/revisions\/200"}],"wp:attachment":[{"href":"https:\/\/ridea.cl\/es\/wp-json\/wp\/v2\/media?parent=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}