Caldera Forms – More Than Contact Forms - Version 1.2.2

Version Description

( June, 2015) =

Download this release

Release Info

Developer Desertsnowman
Plugin Icon 128x128 Caldera Forms – More Than Contact Forms
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

assets/js/conditionals.js CHANGED
@@ -21,9 +21,13 @@
21
  };
22
  }
23
 
24
- function calders_forms_check_conditions(){
25
 
26
- for(var field in caldera_conditionals){
 
 
 
 
27
 
28
  // each conditional
29
  var fieldwrapper = jQuery('#conditional_' + field);
@@ -31,8 +35,8 @@
31
  if(!fieldwrapper.length){
32
  continue;
33
  }
34
- var type = caldera_conditionals[field].type,
35
- groups = caldera_conditionals[field].group,
36
  trues = [];
37
 
38
  // has a wrapper - bind conditions
@@ -183,10 +187,15 @@
183
  if(typeof caldera_conditionals !== 'undefined'){
184
 
185
  jQuery('.caldera_forms_form').on('change keyup', '[data-field]', function(e){
186
- calders_forms_check_conditions();
 
 
 
187
 
188
  });
189
  // init
190
- calders_forms_check_conditions();
 
 
191
  }
192
  })(jQuery);
21
  };
22
  }
23
 
24
+ function calders_forms_check_conditions( inst_id ){
25
 
26
+ if( typeof caldera_conditionals[inst_id] === "undefined"){
27
+ return;
28
+ }
29
+
30
+ for( var field in caldera_conditionals[ inst_id ] ){
31
 
32
  // each conditional
33
  var fieldwrapper = jQuery('#conditional_' + field);
35
  if(!fieldwrapper.length){
36
  continue;
37
  }
38
+ var type = caldera_conditionals[ inst_id ][field].type,
39
+ groups = caldera_conditionals[ inst_id ][field].group,
40
  trues = [];
41
 
42
  // has a wrapper - bind conditions
187
  if(typeof caldera_conditionals !== 'undefined'){
188
 
189
  jQuery('.caldera_forms_form').on('change keyup', '[data-field]', function(e){
190
+
191
+ var form = $(this).closest('.caldera_forms_form').prop('id');
192
+
193
+ calders_forms_check_conditions( form );
194
 
195
  });
196
  // init
197
+ $('.caldera_forms_form').each( function(){
198
+ calders_forms_check_conditions( $(this).closest('.caldera_forms_form').prop('id') );
199
+ } );
200
  }
201
  })(jQuery);
assets/js/conditionals.min.js CHANGED
@@ -1 +1 @@
1
- !function(){function b(){for(var a in caldera_conditionals){var b=jQuery("#conditional_"+a);if(b.length){var c=caldera_conditionals[a].type,d=caldera_conditionals[a].group,e=[];for(var f in d){var g={},h=d[f];for(var i in h){var j=jQuery('[data-field="'+h[i].field+"_"+h[i].instance+'"]'),k=[],l="function"==typeof h[i].value?h[i].value():h[i].value;if(g[i]=!1,j.is(":radio,:checkbox")?j=j.filter(":checked"):j.is("div")&&(j=jQuery("<input>").val(j.html())),j.length)for(var m=0;m<j.length;m++)k.push(j[m].value);else k.push(h[i].field);switch(h[i].compare){case"is":k.length&&k.indexOf(l.toString())>=0&&(g[i]=!0);break;case"isnot":k.length&&k.indexOf(l)<0&&(g[i]=!0);break;case">":parseFloat(k.reduce(function(a,b){return a+b}))>parseFloat(l)&&(g[i]=!0);break;case"<":parseFloat(k.reduce(function(a,b){return a+b}))<parseFloat(l)&&(g[i]=!0);break;case"startswith":for(var m=0;m<k.length;m++)k[m].toLowerCase().substr(0,l.toLowerCase().length)===l.toLowerCase()&&(g[i]=!0);break;case"endswith":for(var m=0;m<k.length;m++)k[m].toLowerCase().substr(k[m].toLowerCase().length-l.toLowerCase().length)===l.toLowerCase()&&(g[i]=!0);break;case"contains":for(var m=0;m<k.length;m++)k[m].toLowerCase().indexOf(l)>=0&&(g[i]=!0)}}istrue=!0;for(var n in g)if(g[n]===!1){istrue=!1;break}e.push(istrue)}var r,o=jQuery("#conditional-"+a+"-tmpl").html(),p=jQuery("#conditional_"+a),q=jQuery('[data-field="'+a+'"]');e.length&&e.indexOf(!0)>=0?"show"===c?r="show":"hide"===c?r="hide":"disable"===c&&(r="disable"):r="show"===c?"hide":"disable"===c?"enable":"show","show"===r?p.html().length||(p.html(o).trigger("cf.add"),jQuery(document).trigger("cf.add")):"hide"===r?p.html().length&&(q.val("").empty().prop("checked",!1),p.empty().trigger("cf.remove"),jQuery(document).trigger("cf.remove")):"enable"===r?p.html().length?q.prop("disabled",!1):(p.html(o).trigger("cf.add"),jQuery(document).trigger("cf.add")):"disable"===r&&(p.html().length?(q.prop("disabled","disabled"),jQuery(document).trigger("cf.disable")):(p.html(o).trigger("cf.add"),jQuery(document).trigger("cf.add"),jQuery('[data-field="'+a+'"]').prop("disabled","disabled")))}}}Array.prototype.indexOf||(Array.prototype.indexOf=function(a){var b=this.length>>>0,c=Number(arguments[1])||0;for(c=0>c?Math.ceil(c):Math.floor(c),0>c&&(c+=b);b>c;c++)if(c in this&&this[c]===a)return c;return-1}),"undefined"!=typeof caldera_conditionals&&(jQuery(".caldera_forms_form").on("change keyup","[data-field]",function(){b()}),b())}(jQuery);
1
+ !function(a){function b(a){if("undefined"!=typeof caldera_conditionals[a])for(var b in caldera_conditionals[a]){var c=jQuery("#conditional_"+b);if(c.length){var d=caldera_conditionals[a][b].type,e=caldera_conditionals[a][b].group,f=[];for(var g in e){var h={},i=e[g];for(var j in i){var k=jQuery('[data-field="'+i[j].field+"_"+i[j].instance+'"]'),l=[],m="function"==typeof i[j].value?i[j].value():i[j].value;if(h[j]=!1,k.is(":radio,:checkbox")?k=k.filter(":checked"):k.is("div")&&(k=jQuery("<input>").val(k.html())),k.length)for(var n=0;n<k.length;n++)l.push(k[n].value);else l.push(i[j].field);switch(i[j].compare){case"is":l.length&&l.indexOf(m.toString())>=0&&(h[j]=!0);break;case"isnot":l.length&&l.indexOf(m)<0&&(h[j]=!0);break;case">":parseFloat(l.reduce(function(a,b){return a+b}))>parseFloat(m)&&(h[j]=!0);break;case"<":parseFloat(l.reduce(function(a,b){return a+b}))<parseFloat(m)&&(h[j]=!0);break;case"startswith":for(var n=0;n<l.length;n++)l[n].toLowerCase().substr(0,m.toLowerCase().length)===m.toLowerCase()&&(h[j]=!0);break;case"endswith":for(var n=0;n<l.length;n++)l[n].toLowerCase().substr(l[n].toLowerCase().length-m.toLowerCase().length)===m.toLowerCase()&&(h[j]=!0);break;case"contains":for(var n=0;n<l.length;n++)l[n].toLowerCase().indexOf(m)>=0&&(h[j]=!0)}}istrue=!0;for(var o in h)if(h[o]===!1){istrue=!1;break}f.push(istrue)}var s,p=jQuery("#conditional-"+b+"-tmpl").html(),q=jQuery("#conditional_"+b),r=jQuery('[data-field="'+b+'"]');f.length&&f.indexOf(!0)>=0?"show"===d?s="show":"hide"===d?s="hide":"disable"===d&&(s="disable"):s="show"===d?"hide":"disable"===d?"enable":"show","show"===s?q.html().length||(q.html(p).trigger("cf.add"),jQuery(document).trigger("cf.add")):"hide"===s?q.html().length&&(r.val("").empty().prop("checked",!1),q.empty().trigger("cf.remove"),jQuery(document).trigger("cf.remove")):"enable"===s?q.html().length?r.prop("disabled",!1):(q.html(p).trigger("cf.add"),jQuery(document).trigger("cf.add")):"disable"===s&&(q.html().length?(r.prop("disabled","disabled"),jQuery(document).trigger("cf.disable")):(q.html(p).trigger("cf.add"),jQuery(document).trigger("cf.add"),jQuery('[data-field="'+b+'"]').prop("disabled","disabled")))}}}Array.prototype.indexOf||(Array.prototype.indexOf=function(a){var b=this.length>>>0,c=Number(arguments[1])||0;for(c=0>c?Math.ceil(c):Math.floor(c),0>c&&(c+=b);b>c;c++)if(c in this&&this[c]===a)return c;return-1}),"undefined"!=typeof caldera_conditionals&&(jQuery(".caldera_forms_form").on("change keyup","[data-field]",function(){var d=a(this).closest(".caldera_forms_form").prop("id");b(d)}),a(".caldera_forms_form").each(function(){b(a(this).closest(".caldera_forms_form").prop("id"))}))}(jQuery);
assets/js/edit.js CHANGED
@@ -59,7 +59,7 @@ jQuery(document).ready(function($){
59
  }
60
 
61
  $('#save_indicator').addClass('loading');
62
- if(tinyMCE){
63
  tinyMCE.triggerSave();
64
  }
65
 
59
  }
60
 
61
  $('#save_indicator').addClass('loading');
62
+ if( typeof tinyMCE !== 'undefined'){
63
  tinyMCE.triggerSave();
64
  }
65
 
assets/js/edit.min.js CHANGED
@@ -1,2 +1,2 @@
1
- function new_conditional_group(a){var b=a.trigger.data("id"),c="cl"+Math.round(18746582734*Math.random()),d="rw"+Math.round(98347598345*Math.random()),e=[{id:d,type:a.trigger.data("type"),lines:[{id:c}]}];return{group:e,id:b}}function new_conditional_line(a){var b=a.trigger.data("id"),c=a.trigger.data("group"),d=a.trigger.data("type"),e="cl"+Math.round(18746582734*Math.random()),f={id:b,type:d,lineid:e,rowid:c,name:"config["+d+"]["+b+"][conditions][group]["+c+"]["+e+"]"};return f}function build_conditions_config(a){var b=JSON.parse(a.trigger.val());return b.id=a.trigger.data("id"),b}function setup_field_type(a){return{id:a.trigger.prop("id")}}function check_required_bindings(a){var b,d=(jQuery(".caldera-header-save-button"),jQuery(".layout-form-field")),e=jQuery(".caldera-processor-nav"),f=!0;b=a?jQuery(a):jQuery(".caldera-config-field .required"),b.removeClass("has-error"),d.removeClass("has-error"),e.removeClass("has-error"),jQuery(".error-tag").remove(),required_errors={},b.each(function(a,b){var c=jQuery(b),d=c.closest(".caldera-config-editor-panel");if(b.value.length){if(c.hasClass("field-slug"))for(var h=jQuery(".field-slug").not(c),i=0;i<h.length;i++)if(h[i].value===b.value){var c=jQuery(h[i]);required_errors[d.prop("id")]||(required_errors[d.prop("id")]=0);var e=c.closest(".caldera-editor-field-config-wrapper"),g=c.closest(".caldera-editor-processor-config-wrapper");e.length&&jQuery('.layout-form-field[data-config="'+e.prop("id")+'"]').addClass("has-error"),g.length&&jQuery("."+g.prop("id")).addClass("has-error"),required_errors[d.prop("id")]+=1,c.addClass("has-error");break}}else{required_errors[d.prop("id")]||(required_errors[d.prop("id")]=0);var e=c.closest(".caldera-editor-field-config-wrapper"),g=c.closest(".caldera-editor-processor-config-wrapper");e.length&&jQuery('.layout-form-field[data-config="'+e.prop("id")+'"]').addClass("has-error"),g.length&&jQuery("."+g.prop("id")).addClass("has-error"),required_errors[d.prop("id")]+=1,c.addClass("has-error"),f=!1}});for(var g in required_errors)jQuery(".caldera-forms-options-form").find('a[href="#'+g+'"]').append('<span class="error-tag">'+required_errors[g]+"</span>");return jQuery(".preview-caldera-config-group button:submit").length?(jQuery(".mailer-errors").hide(),jQuery(".mailer-control-panel").show()):(jQuery(".mailer-errors").show(),jQuery(".mailer-control-panel").hide()),jQuery(".caldera-conditional-field-set").trigger("change"),f}jQuery(document).ready(function(a){function b(b){var d=a(b),e=d.closest(".caldera-editor-field-config-wrapper"),f=e.find(".caldera-config-field-setup"),g=compiled_templates[d.val()+"_tmpl"]?compiled_templates[d.val()+"_tmpl"]:compiled_templates.noconfig_field_templ,h=e.find(".field_config_string").val(),i=d.data("type");if(e.find(".caldera-config-group").show(),d.addClass("field-initialized"),h=h.length&&i===d.val()?JSON.parse(h):fieldtype_defaults[d.val()+"_cfg"],h||(h={}),h._id=d.data("field"),h._name="config[fields]["+d.data("field")+"][config]",g=a("<div>").html(g(h)),f.html(g.html()),"function"==typeof window[d.val()+"_init"]&&window[d.val()+"_init"](d.data("field"),f),fieldtype_defaults[d.val()+"_nosupport"]&&(fieldtype_defaults[d.val()+"_nosupport"].indexOf("hide_label")>=0&&e.find(".hide-label-field").hide().find(".field-config").prop("checked",!1),fieldtype_defaults[d.val()+"_nosupport"].indexOf("caption")>=0&&e.find(".caption-field").hide().find(".field-config").val(""),fieldtype_defaults[d.val()+"_nosupport"].indexOf("required")>=0&&e.find(".required-field").hide().find(".field-config").prop("checked",!1),fieldtype_defaults[d.val()+"_nosupport"].indexOf("custom_class")>=0&&e.find(".customclass-field").hide().find(".field-config").val(""),fieldtype_defaults[d.val()+"_nosupport"].indexOf("entry_list")>=0&&e.find(".entrylist-field").hide().find(".field-config").prop("checked",!1)),e.find(".toggle_show_values").trigger("change"),!a(".caldera-select-field-type").not(".field-initialized").length){if(core_form.hasClass("builder-loaded"))c(d.data("field"));else{for(var j=a(".caldera-select-field-type.field-initialized"),k=0;k<j.length;k++)c(a(j[k]).data("field"));core_form.addClass("builder-loaded")}rebuild_field_binding(),baldrickTriggers()}}function c(b){var c=a("#"+b),d=c.find(".caldera-select-field-type"),e=a('.layout-form-field[data-config="'+b+'"]'),f=e.find(".field_preview"),h=(a("#preview-"+d.val()+"_tmpl").html(),compiled_templates["preview-"+d.val()+"_tmpl"]),i={id:b},j=c.find(".field-config");j.each(function(c,d){for(var e=a(d),f=e.prop("name").split("["+b+"]")[1].substr(1),g=f.substr(0,f.length-1).split("]["),h=e.is(":checkbox,:radio")?e.filter(":checked").val():e.val(),j={},k=g.length-1;k>=0;k--)if(k===g.length-1)j[g[k]]=h;else{var l=j;j={},j[g[k]]=l}a.extend(!0,i,j)}),f.html(h(i)),e.removeClass("button"),a(".preview-field-config").prop("disabled",!0)}function d(b){var t,c=a(".caldera-editor-fields-panel"),e=(a(".caldera-editor-groups-panel"),a(".caldera-group-nav")),f=a('[data-group="'+b+'"]'),g=f.find(".caldera-config-group-name"),h=f.find(".caldera-config-group-slug"),i=f.find(".caldera-config-group-desc"),j=f.find(".caldera-config-group-admin"),k=a(".active-group-name"),l=a(".active-group-slug"),m=a(".active-group-desc"),n=a(".active-group-admin"),o=a(".caldera-editor-fields-list ul"),p=f.find(".caldera-config-group-repeat"),q=a(".repeat-config-button"),s=(a(".caldera-editor-group-settings"),a(".caldera-config-group-remove"));a(".new-group-input").remove(),a(".new-field-input").remove(),e.removeClass("active"),c.show(),o.hide(),o.removeClass("active").find("li.active").removeClass("active"),o.hide(),f.addClass("active"),t=a(".caldera-editor-fields-list ul.active li"),t.length?s.hide():s.show(),a(".caldera-editor-field-config-wrapper").hide(),f.show(),k.val(g.val()),l.val(h.val()),m.val(i.val()),"1"===j.val()?n.prop("checked",!0):n.prop("checked",!1),"1"===p.val()?q.addClass("field-edit-open"):q.removeClass("field-edit-open")}a(".caldera-header-save-button").baldrick({method:"POST",request:"admin.php?page=caldera-forms",before:function(b,c){if(c.preventDefault(),!check_required_bindings())return!1;a("#save_indicator").addClass("loading"),tinyMCE&&tinyMCE.triggerSave();var d=a(".caldera-forms-options-form").formJSON();return a(b).data("cf_edit_nonce",d.cf_edit_nonce),a(b).data("_wp_http_referer",d._wp_http_referer),a(b).data("sender","ajax"),a(b).data("config",JSON.stringify(d.config)),!0},callback:function(b){if(!1===b.data){var c=a(".updated_notice_box");c.stop().animate({top:0},200,function(){setTimeout(function(){c.stop().animate({top:-75},200)},2e3)})}},complete:function(){a(".wrapper-instance-pane .field-config").prop("disabled",!1)}}),a("body").on("click",".toggle_option_tab > a",function(b){b.preventDefault();var c=a(this),d=a(c.attr("href")),e=c.parent().find("a"),f=c.closest(".caldera-editor-config-wrapper").find(".wrapper-instance-pane");e.removeClass("button-primary"),f.hide(),d.show(),c.addClass("button-primary"),a(".caldera-conditionals-usetype").trigger("change")}),a(".caldera-editor-body").on("change",".caldera-select-field-type",function(){b(this)}),a(".caldera-editor-body").on("click",".caldera-group-nav a",function(b){b.preventDefault(),d(a(this).attr("href").substr(1))}),a(".caldera-editor-body").on("click",".caldera-editor-fields-list a",function(b){b.preventDefault();var c=a(this),d=a(c.attr("href"));a(".new-group-input").remove(),a(".new-field-input").remove(),a(".caldera-editor-fields-list li.active").removeClass("active"),c.parent().addClass("active"),a(".caldera-editor-field-config-wrapper").hide(),d.show()}),a(".caldera-editor-body").on("click",".group-config-button",function(){var c=a(this),d=a(".caldera-editor-group-settings"),e=c.closest(".caldera-editor-fields-panel"),f=a(".caldera-config-group-remove");e.find(".caldera-field-line").length?f.hide():f.show(),c.hasClass("field-edit-open")?(d.slideUp(100),c.removeClass("field-edit-open")):(d.slideDown(100),c.addClass("field-edit-open"))}),a(".caldera-editor-body").on("keydown",".field-config",function(b){a(this).is("textarea")||13===b.which&&b.preventDefault()}),a(".caldera-editor-body").on("change",".field-label",function(b){var c=a(this).closest(".caldera-editor-field-config-wrapper").prop("id");field_line=a('[data-field="'+c+'"]'),field_title=a("#"+c+" .caldera-editor-field-title, .layout-form-field.field-edit-open .layout_field_name"),slug=a("#"+c+" .field-slug"),field_line.find("a").html('<i class="icn-field"></i> '+this.value),field_title.text(this.value),"change"===b.type&&slug.trigger("change"),rebuild_field_binding()}),a(".caldera-editor-body").on("change",".active-group-name",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),e=(c.data("group"),c.find(".caldera-config-group-name")),f=c.find("span");"focusout"!==b.type||this.value.length||(this.value="Group "+(parseInt(c.index())+1)),e.val(this.value),f.text(this.value)}),a(".caldera-editor-body").on("change",".active-group-slug",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),e=(c.data("group"),c.find(".caldera-config-group-name").val()),f=c.find(".caldera-config-group-slug"),h=(c.find("span"),this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase());"focusout"!==b.type||this.value.length||(h=e.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase()),f.val(h),this.value=h}),a(".caldera-editor-body").on("change",".active-group-desc",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),e=(c.data("group"),c.find(".caldera-config-group-desc"));e.val(this.value)}),a(".caldera-editor-body").on("change",".active-group-admin",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),f=(c.data("group"),c.find(".caldera-config-group-name").val(),c.find(".caldera-config-group-admin"));c.find("span"),this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),a(this).prop("checked")?(f.val(1),c.addClass("is-admin")):(f.val(0),c.removeClass("is-admin"))}),a(".caldera-editor-body").on("click",".repeat-config-button",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),e=(c.data("group"),c.find("a .group-type")),f=c.find(".caldera-config-group-repeat"),g=a(this);g.hasClass("field-edit-open")?(f.val("0"),e.removeClass("icn-repeat").addClass("icn-folder"),g.removeClass("field-edit-open")):(f.val("1"),e.addClass("icn-repeat").removeClass("icn-folder"),g.addClass("field-edit-open"))}),a(".caldera-editor-body").on("click",".delete-field",function(){var b=a(this),c=b.closest(".caldera-editor-field-config-wrapper").prop("id");confirm(b.data("confirm"))&&(a("#"+c).remove(),a('option[value="'+c+'"]').remove(),a('[data-bind="'+c+'"]').remove(),delete current_form_fields[c],a('[data-config="'+c+'"]').slideUp(200,function(){var b=a(this);b.remove(),rebuild_field_binding(),a(document).trigger("field.removed")}))}),a(".caldera-editor-body").on("click",".add-new-group,.add-field",function(){var b=a(this);if(a(".new-group-input").remove(),a(".new-field-input").remove(),b.hasClass("add-field")){var c=a('<input type="text" class="new-field-input block-input">');c.appendTo(a(".caldera-editor-fields-list ul.active")).focus()}else{var d=a('<input type="text" class="new-group-input block-input">');d.appendTo(a(".caldera-editor-groups-panel")).focus()}}),a(".caldera-editor-body").on("change keypress",".new-group-input",function(b){if("keypress"===b.type){if(13!==b.which)return;b.preventDefault()}var h,i,c=this.value,e=a(this),f=a(".caldera-editor-groups-panel ul"),g=a(".caldera-editor-fields-list");if(c.length){h=Handlebars.compile(a("#caldera_group_line_templ").html()),i={id:c.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),name:c},f.append(h(i));var j=a('<ul data-group="'+i.id+'">').hide();j.appendTo(g),e.remove(),d(i.id)}else e.remove()}),a(".caldera-editor-body").on("change keypress",".new-field-input",function(b){if("keypress"===b.type){if(13!==b.which)return;b.preventDefault()}var g,h,i,c=this.value,d=a(this),e=d.parent(),f=a(".caldera-editor-field-config"),j=a(".caldera-config-group-remove");if(c.length){j.hide(),g=Handlebars.compile(a("#caldera_field_line_templ").html()),h=Handlebars.compile(a("#caldera_field_config_wrapper_templ").html()),i={id:c.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),label:c,slug:c.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),group:a(".caldera-group-nav.active").data("group")};var k=a(g(i));k.appendTo(e),f.append(h(i)),k.find("a").trigger("click"),d.remove()}else d.remove()}),a(".caldera-editor-body").on("change",".field-slug",function(b){this.value.length?this.value=this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase():"change"===b.type&&(this.value=a(this).closest(".caldera-editor-field-config-wrapper").find(".field-label").val().split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase())}),a(".caldera-editor-body").on("click",".caldera-add-group",function(){var c=a(this),d=c.data("group"),e=a("#"+d+"_panel_tmpl").html();c.parent().parent().append(e)}),a(".caldera-editor-body").on("click",".caldera-config-group-remove",function(){var c=a(".active-group-slug").val();a('[data-group="'+c+'"]').hide(0,function(){a(this).remove();var b=a(".caldera-group-nav");b.length?b.first().find("a").trigger("click"):a(".caldera-editor-fields-panel").hide()})}),a("body").on("click",".set-current-field",function(b){b.preventDefault();var c=a(this);a("#"+c.data("field")+"_type").val(c.data("type")).trigger("change"),a("#"+c.data("field")+"_lable").focus(),a("#field_setup_baldrickModalCloser").trigger("click")}),a(".caldera-editor-body").on("change",".field-config",function(){var d=a(this),e=d.closest(".caldera-editor-field-config-wrapper");current_form_fields&&(d.prop("id")===e.prop("id")+"_lable"&&(current_form_fields[e.prop("id")].label=this.value),d.prop("id")===e.prop("id")+"_slug"&&(current_form_fields[e.prop("id")].slug=this.value),d.prop("id")===e.prop("id")+"_type"&&(current_form_fields[e.prop("id")].type=this.value),e.length&&c(e.prop("id")))}),a(".caldera-editor-body").on("focus",".caldera-field-bind",function(b){var c=a(this),d=this.value;return console.log(b.type),b.type&&"focusin"===b.type?(c.removeClass("bound_field").addClass("reload-binding"),rebind_field_bindings(),this.value=d,void 0):void 0}),a(".caldera-editor-body").on("change",".caldera-conditional-field-set",function(){var k,l,c=a(this),d=c.parent().find(".compare-type"),e=c.data("condition"),f=c.data("id"),g="config["+e+"]["+f+"][conditions][group]["+c.data("row")+"]["+c.data("line")+"]",h=c.data("line"),i=a("#"+h+"_value"),j=i.find(".caldera-conditional-value-field").first(),m=[],n=this.value;if("{"!==n.substr(0,1)&&(k=a("#"+n),l=k.find(".field-button-type"),m=k.find(".caldera-config-group-toggle-options")),c.hasClass(".bind_init")&&c.addClass("bound_triggered"),j.length&&j.val().length&&i.data("value",j.val()),d.show(),m.length){var o=m.find(".toggle_option_row"),p='<select name="'+g+'[value]" class="caldera-processor-value-bind caldera-conditional-value-field" data-field="'+n+'" style="max-width: 220px; width: 220px;">';p+='<option value=""></option>',o.each(function(b,c){var d=a(c).find(".toggle_label_field"),e=d.data("option"),f="";i.data("value")&&(i.data("value").toString()===e||i.data("value").toString()===a(c).find(".toggle_value_field").val())&&(f=' selected="selected"'),p+='<option value="'+e+'"'+f+">"+d.val()+"</option>"}),p+="</select>"}else l&&"button"==l.val()?(d.val("is").hide(),p='<select name="'+g+'[value]" class="caldera-processor-value-bind caldera-conditional-value-field" data-field="'+n+'" style="max-width: 220px; width: 220px;">',p+='<option value="click" '+("click"===i.data("value")?'selected="selected"':"")+">Click</option>",p+='<option value="dblclick" '+("dblclick"===i.data("value")?'selected="selected"':"")+">Double Click</option>",p+="</select>"):p='<input name="'+g+'[value]" type="text" class="caldera-conditional-value-field magic-tag-enabled" value="'+(i.data("value")?i.data("value"):"")+'" style="max-width: 205px;">';i.html(p),init_magic_tags()}),a(".caldera-editor-body").on("change",".caldera-conditionals-usetype",function(){var c=a(this);""!==this.value?(a("#"+c.data("id")+"_condition_group_add").show(),a("#"+c.data("id")+"_conditional_wrap").show()):(a("#"+c.data("id")+"_condition_group_add").hide(),a("#"+c.data("id")+"_conditional_wrap").hide())}),a(".caldera-editor-body").on("click",".remove-conditional-line",function(b){b.preventDefault();var c=a(this),d=c.closest(".caldera-condition-line"),e=c.closest(".caldera-condition-group");d.remove(),e.find(".caldera-condition-line").length||e.remove()}),a(".caldera-group-nav").first().find("a").trigger("click"),a(".caldera-editor-body").on("change",".toggle_show_values",function(){var c=a(this),d=c.closest(".caldera-config-group-toggle-options");values=d.find(".toggle_value_field"),lables=d.find(".toggle_label_field"),field_lables=d.find(".caldera-config-group-option-labels"),c.prop("checked")?(values.show().parent().show(),values.show().parent().parent().show(),lables.css("width",""),field_lables.show()):(values.hide().parent().hide(),lables.css("width",245),field_lables.hide()),lables.trigger("toggle.values"),init_magic_tags()}),a(".caldera-editor-body").on("change",".auto-populate-type",function(){a(this).closest(".wrapper-instance-pane").find(".auto-populate-options").trigger("change")}),a(".caldera-editor-body").on("change",".auto-populate-options",function(){var b=a(this),c=b.closest(".wrapper-instance-pane"),d=c.find(".caldera-config-group-toggle-options"),e=c.find(".caldera-config-group-auto-options"),f=e.find(".auto-populate-type");e.find(".auto-populate-type-panel").hide(),b.prop("checked")?(d.hide(),e.show()):(d.show(),e.hide()),e.find(".caldera-config-group-auto-"+f.val()).show()}),a("body").on("change",".pin-toggle-roles",function(){var b=a(this),c=a("#caldera-pin-rules");"1"===b.val()?c.show():c.hide()}),a("body").on("click",".magic-tag-init",function(){var c=a(this),d=c.prev();d.focus().trigger("init.magic")}),a("body").on("keyup blur focus select click init.magic",".magic-tag-enabled",function(b){init_magic_tags();var c=a(this),d=c.parent(),e=d.closest(".wrapper-instance-pane").find(".caldera-select-field-type").val()?d.closest(".wrapper-instance-pane").find(".caldera-select-field-type").val():"hidden",f=d.find(".magic-tags-autocomplete"),g=f.find("ul"),h=this.value,j=[],k="",l=this.selectionStart,m=this.selectionEnd;if(f.length&&f.data("focus"))return b.preventDefault(),void 0;if(c.data("tag",""),this.selectionEnd>this.selectionStart)k=this.value.substr(this.selectionStart,this.selectionEnd-this.selectionStart);else if(("select"===b.type||"keyup"===b.type)&&40!==b.which&&38!==b.which&&39!==b.which&&37!==b.which){for(l=this.selectionStart;l>0;l--){var n=h.substr(l-1,1);if(" "===n||"\n"===n||("%"===n||"}"===n)&&this.selectionStart===l)break}for(m=this.selectionStart;m<h.length;m++){var n=h.substr(m,1);if(" "===n||"\n"===n||("%"===n||"{"===n)&&this.selectionStart===m)break}k=h.substr(l,m-l)}if("focusout"!==b.type){if("init"!==b.type&&k.length<3)return f.length&&f.remove(),void 0;f.length||(f=a('<div class="magic-tags-autocomplete"></div>'),g=a("<ul></ul>"),g.appendTo(f),f.insertAfter(c),f.on("mouseenter",function(){a(this).data("focus",!0)}),f.on("mouseleave",function(){a(this).data("focus",!1),c.is(":focus")||c.trigger("focusout")})),g.empty();var o="system",p=!1;"hidden"===e||"dropdown"===e||"radio"===e||"toggle_switch"===e||"checkbox"===e?(p=!0,e="text",o="all"):("paragraph"===e||"html"===e)&&(e="text"),c.data("type")&&(e=c.data("type")),e=e.split(","),e.push("vars");for(var q=0;q<e.length;q++)for(var r in system_values)if("undefined"!=typeof system_values[r].tags[e[q]]){if(j=[r],"system"!==r&&"variable"!==r&&"field"!==r){var s=jQuery(".processor-"+r),t=c.closest(".caldera-editor-processor-config-wrapper"),u=t.prop("id");j=[];for(var v=0;v<s.length;v++)if(t.length||p!==!0){if(u===s[v].id)continue;jQuery("li."+s[v].id).index()<jQuery("li."+u).index()&&j.push(s[v].id)}else j.push(s[v].id)}for(var w=0;w<j.length;w++)if("all"===o||o===r||"variable"===r){var x=a('<li class="header">'+system_values[r].type+(w>0?" ["+(w+1)+"]":"")+"</li>"),y=0;x.appendTo(g);for(var z=0;z<system_values[r].tags[e[q]].length;z++)if(!c.data("parent")||"variable:"+c.data("parent")!==system_values[r].tags[e[q]][z]){var A=system_values[r].wrap[0]+system_values[r].tags[e[q]][z]+system_values[r].wrap[1];if(j[w]!==r&&j.length>1&&(A=system_values[r].wrap[0]+system_values[r].tags[e[q]][z]+":"+j[w]+system_values[r].wrap[1]),A.indexOf(k)>=0||"init"===b.type){y+=1;var B=A.replace(k,"<strong>"+k+"</strong>"),C=a('<li class="tag" data-tag="'+A+'">'+B+"</li>");C.on("click",function(){var b=a(this).data("tag");c.val(h.substr(0,l)+b+h.substr(m)).trigger("change").focus(),c[0].selectionStart=l+b.length-(b.indexOf("*")>0?2:0),c[0].selectionEnd=l+b.length-(b.indexOf("*")>0?1:0)}),C.appendTo(g)}}0===y&&x.remove()}}}g.children().length||f.remove(),"focusout"===b.type&&setTimeout(function(){f.remove()},200)});for(var e=a(".cf-editor-template"),f=0;f<e.length;f++)compiled_templates[e[f].id]=Handlebars.compile(e[f].innerHTML);a(".caldera-select-field-type").not(".field-initialized").each(function(a,c){b(c)})});var rebuild_field_binding,rebind_field_bindings,current_form_fields={},required_errors={},add_new_grid_page,add_page_grid,init_magic_tags,core_form,compiled_templates={};init_magic_tags=function(){var a=jQuery(".magic-tag-enabled");a.each(function(a,b){var c=jQuery(b);if(c.hasClass("magic-tag-init-bound")){var d=c.parent().find(".magic-tag-init");return c.is(":visible")?d.show():d.hide(),void 0}var e=jQuery('<span class="icn-code magic-tag-init"></span>'),f=jQuery('<span style="position:relative;display:inline-block; width:100%;"></span>');c.is("input")&&e.css("borderBottom","none"),c.hasClass("caldera-conditional-value-field")&&f.width("auto"),c.wrap(f),e.insertAfter(c),c.addClass("magic-tag-init-bound"),c.is(":visible")?e.show():e.hide()})},rebuild_field_binding=function(){if(core_form||(core_form=jQuery(".caldera-forms-options-form")),core_form.hasClass("builder-loaded")){var a=jQuery(".caldera-editor-field-config-wrapper");system_values.field={tags:{text:[]},type:"Fields",wrap:["%","%"]};for(var b=0;b<a.length;b++){var c=a[b].id,d=jQuery("#"+c+"_lable").val(),e=jQuery("#"+c+"_slug").val(),f=jQuery("#"+c+"_type").val();"undefined"==typeof system_values.field.tags[f]&&(system_values.field.tags[f]=[]),system_values.field.tags[f].push(e),"text"!==f&&system_values.field.tags.text.push(e),current_form_fields[c]={label:d,slug:e,type:f},jQuery("option.bound-field").trigger("change").each(function(a,b){var c=jQuery(b);0!==c.prop("value").indexOf("{")?c.text(jQuery("#"+c.prop("value")+"_lable").val()+" ["+jQuery("#"+c.prop("value")+"_lable").val()+"]"):c.text(c.prop("value").replace("{","").replace("}",""))}).removeClass("bound-field")}}},rebind_field_bindings=function(){var b,c,a=jQuery(".caldera-field-bind").not(".bound_field");if(a.length){a.addClass("bound_field");for(var d=0;d<a.length;d++){var e=jQuery(a[d]),f=e.val(),g=e.data("default"),h=e.data("exclude"),i=0,j=e.closest(".caldera-editor-processor-config-wrapper"),k=j.prop("id"),l="";if(g&&!e.hasClass("reload-binding")&&(f=g),e.is("select")){e.empty();var m=jQuery('<optgroup label="Fields">');for(var n in current_form_fields)e.data("type")&&e.data("type").split(",").indexOf(current_form_fields[n].type)<0||(e.data("id")!==n&&m.append('<option value="'+n+'"'+(f===n?'selected="selected"':"")+">"+current_form_fields[n].label+" ["+current_form_fields[n].slug+"]</option>"),i+=1);m.appendTo(e),0===i&&e.empty();for(var o in system_values)if(b=[],!(h&&h.split(",").indexOf(o)>=0)){if("system"!==o&&"variable"!==o)for(var p=jQuery(".processor-"+o),q=0;q<p.length;q++)k!==p[q].id&&(b.push(p[q].id),p.length>1&&(c=jQuery("li."+p[q].id+" .processor-line-number"))&&c.html("["+(q+1)+"]"));else b.push("__system__");var r=[];e.data("type")?(r=e.data("type").split(","),r.push("vars")):r=["text","vars"];for(var s=0;s<r.length;s++)if(system_values[o].tags[r[s]])for(var t=0;t<b.length;t++){jQuery("li."+b[t]).index()>jQuery("li."+k).index()&&"__system__"!==b[t]?e.closest(".caldera-editor-processors-panel-wrap").length&&(l=' disabled="disabled"'):l="";for(var m=jQuery('<optgroup label="'+system_values[o].type+("__system__"!==b[t]?" "+jQuery("li."+b[t]).find(".processor-line-number").html():"")+'"'+l+">"),u=0;u<system_values[o].tags[r[s]].length;u++){var v=system_values[o].tags[r[s]][u];"__system__"!==b[t]&&(v=v.replace(o,b[t])),m.append('<option value="{'+v+'}"'+(f==="{"+v+"}"?'selected="selected"':"")+l+">"+system_values[o].tags[r[s]][u]+"</option>"),i+=1}m.children().length&&m.appendTo(e)}}if(0===i){if(e.empty(),e.data("type")){e.append('<option value="">No '+e.data("type").split(",").join(" or ")+" in form</option>");var w=!0}}else e.prop("disabled",!1);e.hasClass("required")||"undefined"!=typeof w||e.prepend('<option value=""></option>'),e.val(f)}}init_magic_tags(),jQuery(document).trigger("bound.fields"),jQuery(".caldera-header-save-button").prop("disabled",!1)}},jQuery(document).ready(function(a){function b(){var b=a(".layout-grid-panel"),c=0;b.each(function(b,d){var e=a(d),f=e.find(".layout-structure"),g=e.find(".row"),h=[];g.each(function(b,d){var e=a(d),f=e.children().not(".column-merge"),g=[];c+=1,f.each(function(b,d){span=a(d).attr("class").split("-"),g.push(span[2]);var e=a(d).find(".field-location");e.length&&e.each(function(d,e){var f=a(e);f.val(c+":"+(b+1)).removeAttr("disabled")})}),h.push(g.join(":"))}),f.val(h.join("|"))})}function c(b,c,e){var i,j,f="fld_"+Math.round(1e7*Math.random()),g=f,h=a("#field_config_panels");if(e){var k=a("#"+e).clone().wrap("<div>").parent().html().replace(new RegExp(e,"g"),"{{id}}");i=Handlebars.compile(k)}else i=Handlebars.compile(a("#caldera_field_config_wrapper_templ").html());j={id:g,label:"",slug:""},h.append(i(j)),b.removeClass("button-small").removeClass("button").removeClass("button-primary").removeClass("ui-draggable").removeClass("layout-new-form-field").addClass("layout-form-field").attr("data-config",f),b.find(".layout_field_name").remove(),b.find(".field-location").prop("name","config[layout_grid][fields]["+f+"]"),b.find(".settings-panel").show(),b.appendTo(c),d(),b.find(".icon-edit").trigger("click"),a("#"+f+"_lable").focus().select(),e&&(h.find(".field_config_string").val(""),h.find(".field-label").trigger("change")),rebuild_field_binding(),baldrickTriggers(),a("#"+f).trigger("field.drop"),a(document).trigger("field.added")}function d(){a(".toggle-options").sortable({handle:".dashicons-sort"}),a("#grid-pages-panel").sortable({placeholder:"row-drop-helper",handle:".sort-handle",items:".first-row-level",axis:"y",stop:function(){b()}}),a(".layout-column").sortable({connectWith:".layout-column",appendTo:"#grid-pages-panel",helper:"clone",items:".layout-form-field",handle:".drag-handle",cursor:"move",opacity:.7,cursorAt:{left:100,top:15},start:function(a,b){b.helper.css({width:"200px",height:"35px",paddingTop:"20px"})},stop:function(a,c){c.item.removeAttr("style"),b()}}),a("h3 .layout-new-form-field").draggable({helper:"clone",appendTo:"body"}),a(".page-toggle.button").droppable({accept:".layout-form-field",over:function(){a(this).trigger("click"),a(".layout-column").sortable("refresh")}}),a(".layout-column").droppable({greedy:!0,activeClass:"ui-state-dropper",hoverClass:"ui-state-hoverable",accept:".layout-new-form-field",drop:function(b,d){var e=d.draggable.clone(),f=a(this);c(e,f)}}),b()}add_new_grid_page=function(){return{page_no:"pg_"+Math.round(1e7*Math.random())}},add_page_grid=function(b){var c=a(".page-toggle").length+1,e=a('<button type="button" data-name="Page '+c+'" data-page="'+b.rawData.page_no+'" class="page-toggle button">'+b.params.trigger.data("addtitle")+" "+c+"</button> "),f=a("#page-toggles");e.appendTo(f),f.show(),d(),e.trigger("click"),1===c&&f.hide(),a(document).trigger("add.page")},a(document).on("remove.page add.page load.page",function(){var c=a(".page-toggle").length,d=a("#tab_pages");1>=c?d.hide():d.show()}),d(),a("#grid-pages-panel").on("click",".column-fieldinsert .dashicons-plus-alt",function(){var d=a(this).closest(".column-container"),e=a("#newfield-tool").clone();c(e,d)}),a("#grid-pages-panel").on("click",".column-fieldinsert .dashicons-admin-generic",function(){}),a("#grid-pages-panel").on("click",".column-split",function(){var c=a(this).parent().parent(),e=c.attr("class").split("-"),f=a("<div>").insertAfter(c),g=Math.ceil(e[2]/2),h=Math.floor(e[2]/2);e[2]=g,c.attr("class",e.join("-")),e[2]=h,f.addClass(e.join("-")).append('<div class="layout-column column-container">'),a(this).remove(),d(),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("click",".column-remove",function(){var d=a(this).closest(".row"),e=d.find(".layout-form-field"),f=d.closest(".layout-grid-panel");if(e.length){if(!confirm(a("#row-remove-fields-message").text()))return;e.each(function(b,c){var d=a(c).data("config");a("#"+d).remove(),a('option[value="'+d+'"]').remove(),a('[data-bind="'+d+'"]').remove(),delete current_form_fields[d]})}d.slideUp(200,function(){if(a(this).remove(),b(),rebuild_field_binding(),!f.find(".row").length){f.remove();var c=a("#page-toggles .button-primary"),d=c.prev(),e=c.next();c.remove(),d.length?d.trigger("click"):e.trigger("click")}a(document).trigger("remove.page")}),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a(".caldera-config-editor-main-panel").on("click",".caldera-add-row",function(c){c.preventDefault();var e=a(".page-active");return e.length?(a(".page-active").append('<div class="first-row-level row"><div class="col-xs-12"><div class="layout-column column-container"></div></div></div>'),d(),b(),void 0):(a(".caldera-add-page").trigger("click"),void 0)}),a("#grid-pages-panel").on("click",".column-join",function(){var d=a(this).parent().parent().parent(),e=d.prev(),f=e.attr("class").split("-"),g=d.attr("class").split("-");f[2]=parseFloat(f[2])+parseFloat(g[2]),d.find(".layout-column").contents().appendTo(e.find(".layout-column")),e.attr("class",f.join("-")),d.remove(),b(),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("mouseenter",".row",function(){var d=jQuery(this);jQuery(".column-tools,.column-merge").remove(),d.children().children().first().append('<div class="column-remove column-tools"><i class="icon-remove"></i></div>'),d.children().children().last().append('<div class="column-sort column-tools" style="text-align:right;"><i class="dashicons dashicons-menu drag-handle sort-handle"></i></div>'),d.children().children().not(":first").prepend('<div class="column-merge"><div class="column-join column-tools"><i class="icon-join"></i></div></div>');var e=d.parent().parent().parent().width()/12-1;d.children().children().each(function(b,c){var d=a(c),e=d.width()/2-5;d.prepend('<div class="column-fieldinsert column-tools"><i class="dashicons dashicons-plus-alt"></i></div>'),d.parent().hasClass("col-xs-1")||(d.prepend('<div class="column-split column-tools"><i class="dashicons dashicons-leftright"></i></div>'),d.find(".column-split").css("left",e))}),jQuery(".column-merge").draggable({axis:"x",helper:"clone",appendTo:d,grid:[e,0],drag:function(c,d){a(this).addClass("dragging"),a(".column-tools").remove(),a(".column-split").remove();var e=a(this).parent().parent(),f=d.helper,g=d.originalPosition.left>f.position().left?"left":"right",i=e.prev(),j=Math.round(e.parent().width()/12-10),k=Math.abs(d.originalPosition.left-f.position().left);if(e.parent().addClass("sizing"),k>=j){var l=i.attr("class").split("-"),m=e.attr("class").split("-");l[2]=parseFloat(l[2]),m[2]=parseFloat(m[2]),"left"===g?(l[2]--,m[2]++,l[2]>0&&l[2]<l[2]+m[2]?(i.attr("class",l.join("-")),e.attr("class",m.join("-")),d.originalPosition.left=f.position().left):a(this).draggable("option","disabled",!0)):(l[2]++,m[2]--,m[2]>0&&m[2]<m[2]+m[2]?(i.attr("class",l.join("-")),e.attr("class",m.join("-")),d.originalPosition.left=f.position().left):a(this).draggable("option","disabled",!0)),b()
2
  }},stop:function(){a(this).removeClass("dragging").parent().parent().parent().removeClass("sizing")}})}),a("#grid-pages-panel").on("mouseleave",".row",function(){jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("click",".layout-form-field .icon-remove",function(){var b=a(this),c=b.parent(),d=a("#"+c.data("config"));c.slideUp(100,function(){a(this).remove()}),d.slideUp(100,function(){a(this).remove()})}),a("#grid-pages-panel").on("click",".layout-form-field .icon-edit",function(){var b=a(this),c=b.parent(),d=a("#"+c.data("config")+"_type").val();a(".caldera-editor-field-config-wrapper").hide(),c.hasClass("field-edit-open")?c.removeClass("field-edit-open"):(a(".layout-form-field").removeClass("field-edit-open"),c.addClass("field-edit-open"),a("#"+c.data("config")).show()),a(document).trigger("show."+c.data("config")),("radio"===d||"checkbox"===d||"dropdown"===d||"toggle_switch"===d)&&a("#"+c.data("config")+"_auto").trigger("change")}),a("body").on("click",".layout-modal-edit-closer,.layout-modal-save-action",function(b){b.preventDefault();var c=a(this),d=a(".layout-form-field.edit-open"),e=c.closest(".layout-modal-container");settings=e.find(".settings-panel").first(),a(".edit-open").removeClass("edit-open"),settings.appendTo(d.find(".settings-wrapper")).hide(),e.hide()}),a(".layout-editor-body").on("change",".layout-core-pod-query",function(){a(this).parent().find(".settings-panel-row").remove(),a(".edit-open").find(".drag-handle .set-pod").html(" - "+a(this).val())}),a(".layout-editor-body").on("click",".remove-where",function(){a(this).closest(".settings-panel-row").remove()}),a(".layout-editor-body").on("click",".use-pod-container",function(){var b=a(this),c=b.prev(),d=c.val();if(d.length){a(".edit-open").find(".drag-handle .set-pod").html(" - "+c.val()),b.parent().parent().find(".spinner").css("display","inline-block");var f={action:"pq_loadpod",pod_reference:{pod:d}};a.post(ajaxurl,f,function(c){b.parent().find(".spinner").css("display","none");var d=a("#where-line-tmpl").html(),e="",f=b.closest(".settings-panel").data("container");for(var g in c)e+='<option value="'+c[g]+'">'+c[g]+"</option>";d=d.replace(/{{fields}}/g,e).replace(/{{container_id}}/g,f),b.parent().append(d)})}}),a(".caldera-editor-header").on("click",".column-sort .icon-edit",function(){}),a(".layout-editor-body").on("tray_loaded",".layout-template-tray",function(){d()}),a(".caldera-editor-header").on("click",".caldera-editor-header-nav a",function(b){b.preventDefault();var c=a(this);a(".caldera-editor-header-nav li").removeClass("active"),a(".caldera-editor-body").hide(),a(c.attr("href")).show(),c.parent().addClass("active"),rebind_field_bindings()}),a("body").on("change",".required",function(){check_required_bindings(this)}),a("body").on("submit",".caldera-forms-options-form",function(b){var c=a(".required.has-error");c.length&&b.preventDefault()}),a(".caldera-editor-body").on("click",".add-toggle-option",function(){var c=a(this);if(c.data("bulk"))return a(c.data("bulk")).toggle(),a(c.data("bulk")).find("textarea").focus(),void 0;var d=c.closest(".caldera-editor-field-config-wrapper"),e=d.find(".toggle-options"),f=a("#field-option-row-tmpl").html(),g=Handlebars.compile(f),h="opt"+parseInt(1048576*(Math.random()+1)),i={_name:"config[fields]["+d.prop("id")+"][config]",option:{}};if(c.data("options")){for(var j=a(c.data("options")),k=j.val().split("\n"),l=0;l<k.length;l++)i.option["opt"+parseInt(1048576*(Math.random()+l))]={value:k[l],label:k[l],"default":!1};a(c.data("options")).parent().hide(),j.val(""),e.empty()}else i.option[h]={value:"",label:"","default":!1};e.append(g(i)),d.find(".toggle_show_values").trigger("change"),a(".toggle-options").sortable({handle:".dashicons-sort"}),k||e.find(".toggle_label_field").last().focus()}),a(".caldera-editor-body").on("click",".toggle-remove-option",function(){var c=a(this).closest(".caldera-editor-field-config-wrapper").find(".field-config").first();a(this).parent().remove(),c.trigger("change")}),a(".caldera-editor-body").on("click",".page-toggle",function(){var c=a(this),d=c.parent(),e=d.find(".button");e.removeClass("button-primary"),a(".layout-grid-panel").hide().removeClass("page-active"),a("#"+c.data("page")).show().addClass("page-active"),c.addClass("button-primary"),e.each(function(b,c){a(c).html(d.data("title")+" "+(b+1))}),1===e.length&&d.hide()}),a(".caldera-editor-body").on("blur toggle.values",".toggle_label_field",function(){var c=a(this),d=c.prev();d.val().length||d.val(c.val())}),rebuild_field_binding(),a(document).trigger("load.page")}),Handlebars.registerHelper("_options_config",function(){}),jQuery(document).ready(function(a){function b(){a(".caldera-editor-processors-panel ul").sortable({update:function(){rebuild_field_binding()}})}function c(b){var c=a(b),d=a("#"+c.val()+"-tmpl").length?a("#"+c.val()+"-tmpl").html():"",e=c.closest(".caldera-editor-processor-config-wrapper"),f=e.find(".caldera-config-processor-setup"),g=Handlebars.compile(d),h=e.find(".processor_config_string").val(),i=c.data("type");h=h.length&&i===c.val()?JSON.parse(h):processor_defaults[c.val()+"_cfg"],h||(h={}),h._id=e.prop("id"),h._name="config[processors]["+e.prop("id")+"][config]",g=a("<div>").html(g(h)),f.html(g.html()),"function"==typeof window[c.val()+"_init"]&&window[c.val()+"_init"](e.prop("id"),f),e.find(".no-conditions").length&&e.find(".toggle_option_tab").remove(),rebuild_field_binding(),baldrickTriggers()}a("body").on("click",".caldera-processor-nav a",function(b){b.preventDefault();var c=a(this);a(".caldera-processor-nav").removeClass("active"),a(".caldera-editor-processor-config-wrapper").hide(),a(c.attr("href")).show(),c.parent().addClass("active")}),a("body").on("click",".add-new-processor",function(){var d=a(this),e=Handlebars.compile(a("#processor-wrapper-tmpl").html());wrap=a(".active-processors-list"),process_conf=a(".caldera-editor-processor-config"),processid=Math.round(1e8*Math.random()),new_templ=Handlebars.compile(a("#processor-line-tmpl").html()),new_proc={id:"fp_"+processid,type:d.data("type")},wrap.append(new_templ(new_proc)),process_conf.append(e(new_proc)),a("#form_processor_baldrickModalCloser").trigger("click"),a(".caldera-processor-nav a").last().trigger("click"),a("#fp_"+processid+"_type").val(d.data("type")).trigger("change"),b(),baldrickTriggers()}),a("body").on("click",".delete-processor",function(){var c=a(this),d=c.closest(".caldera-editor-processor-config-wrapper");d.data("type"),confirm(c.data("confirm"))&&(a("."+d.prop("id")).remove(),d.remove(),a(".caldera-processor-nav a").first().trigger("click"),rebuild_field_binding())}),a("body").on("change",".caldera-select-processor-type",function(){var d=a(this),e=d.closest(".caldera-editor-processor-config-wrapper"),f=d.find('option[value="'+d.val()+'"]').text(),g=e.find(".caldera-editor-processor-title"),h=a(".caldera-processor-nav.active a");""===f&&(f=g.data("title")),g.html(f),h.html(f+' <span class="processor-line-number"></span>').parent().addClass("processor_type_"+d.val()),c(this),rebuild_field_binding()}),rebuild_field_binding(),a(".caldera-select-processor-type").each(function(a,b){c(b)}),b()}),Handlebars.registerHelper("_field",function(a){var b=this,c="",d="",e="",f=this[a.hash.slug]?' data-default="'+this[a.hash.slug]+'"':"";a.hash.required&&(c=" required"),a.hash.exclude&&(e='data-exclude="'+a.hash.exclude+'"'),a.hash.array&&(d="[]","true"!==a.hash.array&&(f='value="'+a.hash.array+'"')),out="<select "+(a.hash.type?'data-type="'+a.hash.type+'"':"")+f+" "+e+' name="'+this._name+"["+a.hash.slug+"]"+d+'" id="'+this._id+"_"+a.hash.slug+'" class="block-input field-config caldera-field-bind'+c+'">',this[a.hash.slug]?out+='<option class="bound-field" value="'+this[a.hash.slug]+'" class="bound-field"></option>':a.hash.required||(out+='<option value=""></option>');for(var g in current_form_fields){var h="";a.hash.type&&current_form_fields[g].type!==a.hash.type||(b[a.hash.slug]&&b[a.hash.slug]===g&&(h=' selected="selected"'),out+='<option value="'+g+'"'+h+">"+current_form_fields[g].label+" ["+current_form_fields[g].slug+"]</option>")}return out+="</select>",a.hash.required&&(out+='<input class="field-config" name="'+this._name+'[_required_bounds][]" type="hidden" value="'+a.hash.slug+'">'),out}),Handlebars.registerHelper("console",function(){console.log(this)});
1
+ function new_conditional_group(a){var b=a.trigger.data("id"),c="cl"+Math.round(18746582734*Math.random()),d="rw"+Math.round(98347598345*Math.random()),e=[{id:d,type:a.trigger.data("type"),lines:[{id:c}]}];return{group:e,id:b}}function new_conditional_line(a){var b=a.trigger.data("id"),c=a.trigger.data("group"),d=a.trigger.data("type"),e="cl"+Math.round(18746582734*Math.random()),f={id:b,type:d,lineid:e,rowid:c,name:"config["+d+"]["+b+"][conditions][group]["+c+"]["+e+"]"};return f}function build_conditions_config(a){var b=JSON.parse(a.trigger.val());return b.id=a.trigger.data("id"),b}function setup_field_type(a){return{id:a.trigger.prop("id")}}function check_required_bindings(a){var b,d=(jQuery(".caldera-header-save-button"),jQuery(".layout-form-field")),e=jQuery(".caldera-processor-nav"),f=!0;b=a?jQuery(a):jQuery(".caldera-config-field .required"),b.removeClass("has-error"),d.removeClass("has-error"),e.removeClass("has-error"),jQuery(".error-tag").remove(),required_errors={},b.each(function(a,b){var c=jQuery(b),d=c.closest(".caldera-config-editor-panel");if(b.value.length){if(c.hasClass("field-slug"))for(var h=jQuery(".field-slug").not(c),i=0;i<h.length;i++)if(h[i].value===b.value){var c=jQuery(h[i]);required_errors[d.prop("id")]||(required_errors[d.prop("id")]=0);var e=c.closest(".caldera-editor-field-config-wrapper"),g=c.closest(".caldera-editor-processor-config-wrapper");e.length&&jQuery('.layout-form-field[data-config="'+e.prop("id")+'"]').addClass("has-error"),g.length&&jQuery("."+g.prop("id")).addClass("has-error"),required_errors[d.prop("id")]+=1,c.addClass("has-error");break}}else{required_errors[d.prop("id")]||(required_errors[d.prop("id")]=0);var e=c.closest(".caldera-editor-field-config-wrapper"),g=c.closest(".caldera-editor-processor-config-wrapper");e.length&&jQuery('.layout-form-field[data-config="'+e.prop("id")+'"]').addClass("has-error"),g.length&&jQuery("."+g.prop("id")).addClass("has-error"),required_errors[d.prop("id")]+=1,c.addClass("has-error"),f=!1}});for(var g in required_errors)jQuery(".caldera-forms-options-form").find('a[href="#'+g+'"]').append('<span class="error-tag">'+required_errors[g]+"</span>");return jQuery(".preview-caldera-config-group button:submit").length?(jQuery(".mailer-errors").hide(),jQuery(".mailer-control-panel").show()):(jQuery(".mailer-errors").show(),jQuery(".mailer-control-panel").hide()),jQuery(".caldera-conditional-field-set").trigger("change"),f}jQuery(document).ready(function(a){function b(b){var d=a(b),e=d.closest(".caldera-editor-field-config-wrapper"),f=e.find(".caldera-config-field-setup"),g=compiled_templates[d.val()+"_tmpl"]?compiled_templates[d.val()+"_tmpl"]:compiled_templates.noconfig_field_templ,h=e.find(".field_config_string").val(),i=d.data("type");if(e.find(".caldera-config-group").show(),d.addClass("field-initialized"),h=h.length&&i===d.val()?JSON.parse(h):fieldtype_defaults[d.val()+"_cfg"],h||(h={}),h._id=d.data("field"),h._name="config[fields]["+d.data("field")+"][config]",g=a("<div>").html(g(h)),f.html(g.html()),"function"==typeof window[d.val()+"_init"]&&window[d.val()+"_init"](d.data("field"),f),fieldtype_defaults[d.val()+"_nosupport"]&&(fieldtype_defaults[d.val()+"_nosupport"].indexOf("hide_label")>=0&&e.find(".hide-label-field").hide().find(".field-config").prop("checked",!1),fieldtype_defaults[d.val()+"_nosupport"].indexOf("caption")>=0&&e.find(".caption-field").hide().find(".field-config").val(""),fieldtype_defaults[d.val()+"_nosupport"].indexOf("required")>=0&&e.find(".required-field").hide().find(".field-config").prop("checked",!1),fieldtype_defaults[d.val()+"_nosupport"].indexOf("custom_class")>=0&&e.find(".customclass-field").hide().find(".field-config").val(""),fieldtype_defaults[d.val()+"_nosupport"].indexOf("entry_list")>=0&&e.find(".entrylist-field").hide().find(".field-config").prop("checked",!1)),e.find(".toggle_show_values").trigger("change"),!a(".caldera-select-field-type").not(".field-initialized").length){if(core_form.hasClass("builder-loaded"))c(d.data("field"));else{for(var j=a(".caldera-select-field-type.field-initialized"),k=0;k<j.length;k++)c(a(j[k]).data("field"));core_form.addClass("builder-loaded")}rebuild_field_binding(),baldrickTriggers()}}function c(b){var c=a("#"+b),d=c.find(".caldera-select-field-type"),e=a('.layout-form-field[data-config="'+b+'"]'),f=e.find(".field_preview"),h=(a("#preview-"+d.val()+"_tmpl").html(),compiled_templates["preview-"+d.val()+"_tmpl"]),i={id:b},j=c.find(".field-config");j.each(function(c,d){for(var e=a(d),f=e.prop("name").split("["+b+"]")[1].substr(1),g=f.substr(0,f.length-1).split("]["),h=e.is(":checkbox,:radio")?e.filter(":checked").val():e.val(),j={},k=g.length-1;k>=0;k--)if(k===g.length-1)j[g[k]]=h;else{var l=j;j={},j[g[k]]=l}a.extend(!0,i,j)}),f.html(h(i)),e.removeClass("button"),a(".preview-field-config").prop("disabled",!0)}function d(b){var t,c=a(".caldera-editor-fields-panel"),e=(a(".caldera-editor-groups-panel"),a(".caldera-group-nav")),f=a('[data-group="'+b+'"]'),g=f.find(".caldera-config-group-name"),h=f.find(".caldera-config-group-slug"),i=f.find(".caldera-config-group-desc"),j=f.find(".caldera-config-group-admin"),k=a(".active-group-name"),l=a(".active-group-slug"),m=a(".active-group-desc"),n=a(".active-group-admin"),o=a(".caldera-editor-fields-list ul"),p=f.find(".caldera-config-group-repeat"),q=a(".repeat-config-button"),s=(a(".caldera-editor-group-settings"),a(".caldera-config-group-remove"));a(".new-group-input").remove(),a(".new-field-input").remove(),e.removeClass("active"),c.show(),o.hide(),o.removeClass("active").find("li.active").removeClass("active"),o.hide(),f.addClass("active"),t=a(".caldera-editor-fields-list ul.active li"),t.length?s.hide():s.show(),a(".caldera-editor-field-config-wrapper").hide(),f.show(),k.val(g.val()),l.val(h.val()),m.val(i.val()),"1"===j.val()?n.prop("checked",!0):n.prop("checked",!1),"1"===p.val()?q.addClass("field-edit-open"):q.removeClass("field-edit-open")}a(".caldera-header-save-button").baldrick({method:"POST",request:"admin.php?page=caldera-forms",before:function(b,c){if(c.preventDefault(),!check_required_bindings())return!1;a("#save_indicator").addClass("loading"),"undefined"!=typeof tinyMCE&&tinyMCE.triggerSave();var d=a(".caldera-forms-options-form").formJSON();return a(b).data("cf_edit_nonce",d.cf_edit_nonce),a(b).data("_wp_http_referer",d._wp_http_referer),a(b).data("sender","ajax"),a(b).data("config",JSON.stringify(d.config)),!0},callback:function(b){if(!1===b.data){var c=a(".updated_notice_box");c.stop().animate({top:0},200,function(){setTimeout(function(){c.stop().animate({top:-75},200)},2e3)})}},complete:function(){a(".wrapper-instance-pane .field-config").prop("disabled",!1)}}),a("body").on("click",".toggle_option_tab > a",function(b){b.preventDefault();var c=a(this),d=a(c.attr("href")),e=c.parent().find("a"),f=c.closest(".caldera-editor-config-wrapper").find(".wrapper-instance-pane");e.removeClass("button-primary"),f.hide(),d.show(),c.addClass("button-primary"),a(".caldera-conditionals-usetype").trigger("change")}),a(".caldera-editor-body").on("change",".caldera-select-field-type",function(){b(this)}),a(".caldera-editor-body").on("click",".caldera-group-nav a",function(b){b.preventDefault(),d(a(this).attr("href").substr(1))}),a(".caldera-editor-body").on("click",".caldera-editor-fields-list a",function(b){b.preventDefault();var c=a(this),d=a(c.attr("href"));a(".new-group-input").remove(),a(".new-field-input").remove(),a(".caldera-editor-fields-list li.active").removeClass("active"),c.parent().addClass("active"),a(".caldera-editor-field-config-wrapper").hide(),d.show()}),a(".caldera-editor-body").on("click",".group-config-button",function(){var c=a(this),d=a(".caldera-editor-group-settings"),e=c.closest(".caldera-editor-fields-panel"),f=a(".caldera-config-group-remove");e.find(".caldera-field-line").length?f.hide():f.show(),c.hasClass("field-edit-open")?(d.slideUp(100),c.removeClass("field-edit-open")):(d.slideDown(100),c.addClass("field-edit-open"))}),a(".caldera-editor-body").on("keydown",".field-config",function(b){a(this).is("textarea")||13===b.which&&b.preventDefault()}),a(".caldera-editor-body").on("change",".field-label",function(b){var c=a(this).closest(".caldera-editor-field-config-wrapper").prop("id");field_line=a('[data-field="'+c+'"]'),field_title=a("#"+c+" .caldera-editor-field-title, .layout-form-field.field-edit-open .layout_field_name"),slug=a("#"+c+" .field-slug"),field_line.find("a").html('<i class="icn-field"></i> '+this.value),field_title.text(this.value),"change"===b.type&&slug.trigger("change"),rebuild_field_binding()}),a(".caldera-editor-body").on("change",".active-group-name",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),e=(c.data("group"),c.find(".caldera-config-group-name")),f=c.find("span");"focusout"!==b.type||this.value.length||(this.value="Group "+(parseInt(c.index())+1)),e.val(this.value),f.text(this.value)}),a(".caldera-editor-body").on("change",".active-group-slug",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),e=(c.data("group"),c.find(".caldera-config-group-name").val()),f=c.find(".caldera-config-group-slug"),h=(c.find("span"),this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase());"focusout"!==b.type||this.value.length||(h=e.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase()),f.val(h),this.value=h}),a(".caldera-editor-body").on("change",".active-group-desc",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),e=(c.data("group"),c.find(".caldera-config-group-desc"));e.val(this.value)}),a(".caldera-editor-body").on("change",".active-group-admin",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),f=(c.data("group"),c.find(".caldera-config-group-name").val(),c.find(".caldera-config-group-admin"));c.find("span"),this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),a(this).prop("checked")?(f.val(1),c.addClass("is-admin")):(f.val(0),c.removeClass("is-admin"))}),a(".caldera-editor-body").on("click",".repeat-config-button",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),e=(c.data("group"),c.find("a .group-type")),f=c.find(".caldera-config-group-repeat"),g=a(this);g.hasClass("field-edit-open")?(f.val("0"),e.removeClass("icn-repeat").addClass("icn-folder"),g.removeClass("field-edit-open")):(f.val("1"),e.addClass("icn-repeat").removeClass("icn-folder"),g.addClass("field-edit-open"))}),a(".caldera-editor-body").on("click",".delete-field",function(){var b=a(this),c=b.closest(".caldera-editor-field-config-wrapper").prop("id");confirm(b.data("confirm"))&&(a("#"+c).remove(),a('option[value="'+c+'"]').remove(),a('[data-bind="'+c+'"]').remove(),delete current_form_fields[c],a('[data-config="'+c+'"]').slideUp(200,function(){var b=a(this);b.remove(),rebuild_field_binding(),a(document).trigger("field.removed")}))}),a(".caldera-editor-body").on("click",".add-new-group,.add-field",function(){var b=a(this);if(a(".new-group-input").remove(),a(".new-field-input").remove(),b.hasClass("add-field")){var c=a('<input type="text" class="new-field-input block-input">');c.appendTo(a(".caldera-editor-fields-list ul.active")).focus()}else{var d=a('<input type="text" class="new-group-input block-input">');d.appendTo(a(".caldera-editor-groups-panel")).focus()}}),a(".caldera-editor-body").on("change keypress",".new-group-input",function(b){if("keypress"===b.type){if(13!==b.which)return;b.preventDefault()}var h,i,c=this.value,e=a(this),f=a(".caldera-editor-groups-panel ul"),g=a(".caldera-editor-fields-list");if(c.length){h=Handlebars.compile(a("#caldera_group_line_templ").html()),i={id:c.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),name:c},f.append(h(i));var j=a('<ul data-group="'+i.id+'">').hide();j.appendTo(g),e.remove(),d(i.id)}else e.remove()}),a(".caldera-editor-body").on("change keypress",".new-field-input",function(b){if("keypress"===b.type){if(13!==b.which)return;b.preventDefault()}var g,h,i,c=this.value,d=a(this),e=d.parent(),f=a(".caldera-editor-field-config"),j=a(".caldera-config-group-remove");if(c.length){j.hide(),g=Handlebars.compile(a("#caldera_field_line_templ").html()),h=Handlebars.compile(a("#caldera_field_config_wrapper_templ").html()),i={id:c.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),label:c,slug:c.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),group:a(".caldera-group-nav.active").data("group")};var k=a(g(i));k.appendTo(e),f.append(h(i)),k.find("a").trigger("click"),d.remove()}else d.remove()}),a(".caldera-editor-body").on("change",".field-slug",function(b){this.value.length?this.value=this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase():"change"===b.type&&(this.value=a(this).closest(".caldera-editor-field-config-wrapper").find(".field-label").val().split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase())}),a(".caldera-editor-body").on("click",".caldera-add-group",function(){var c=a(this),d=c.data("group"),e=a("#"+d+"_panel_tmpl").html();c.parent().parent().append(e)}),a(".caldera-editor-body").on("click",".caldera-config-group-remove",function(){var c=a(".active-group-slug").val();a('[data-group="'+c+'"]').hide(0,function(){a(this).remove();var b=a(".caldera-group-nav");b.length?b.first().find("a").trigger("click"):a(".caldera-editor-fields-panel").hide()})}),a("body").on("click",".set-current-field",function(b){b.preventDefault();var c=a(this);a("#"+c.data("field")+"_type").val(c.data("type")).trigger("change"),a("#"+c.data("field")+"_lable").focus(),a("#field_setup_baldrickModalCloser").trigger("click")}),a(".caldera-editor-body").on("change",".field-config",function(){var d=a(this),e=d.closest(".caldera-editor-field-config-wrapper");current_form_fields&&(d.prop("id")===e.prop("id")+"_lable"&&(current_form_fields[e.prop("id")].label=this.value),d.prop("id")===e.prop("id")+"_slug"&&(current_form_fields[e.prop("id")].slug=this.value),d.prop("id")===e.prop("id")+"_type"&&(current_form_fields[e.prop("id")].type=this.value),e.length&&c(e.prop("id")))}),a(".caldera-editor-body").on("focus",".caldera-field-bind",function(b){var c=a(this),d=this.value;return console.log(b.type),b.type&&"focusin"===b.type?(c.removeClass("bound_field").addClass("reload-binding"),rebind_field_bindings(),this.value=d,void 0):void 0}),a(".caldera-editor-body").on("change",".caldera-conditional-field-set",function(){var k,l,c=a(this),d=c.parent().find(".compare-type"),e=c.data("condition"),f=c.data("id"),g="config["+e+"]["+f+"][conditions][group]["+c.data("row")+"]["+c.data("line")+"]",h=c.data("line"),i=a("#"+h+"_value"),j=i.find(".caldera-conditional-value-field").first(),m=[],n=this.value;if("{"!==n.substr(0,1)&&(k=a("#"+n),l=k.find(".field-button-type"),m=k.find(".caldera-config-group-toggle-options")),c.hasClass(".bind_init")&&c.addClass("bound_triggered"),j.length&&j.val().length&&i.data("value",j.val()),d.show(),m.length){var o=m.find(".toggle_option_row"),p='<select name="'+g+'[value]" class="caldera-processor-value-bind caldera-conditional-value-field" data-field="'+n+'" style="max-width: 220px; width: 220px;">';p+='<option value=""></option>',o.each(function(b,c){var d=a(c).find(".toggle_label_field"),e=d.data("option"),f="";i.data("value")&&(i.data("value").toString()===e||i.data("value").toString()===a(c).find(".toggle_value_field").val())&&(f=' selected="selected"'),p+='<option value="'+e+'"'+f+">"+d.val()+"</option>"}),p+="</select>"}else l&&"button"==l.val()?(d.val("is").hide(),p='<select name="'+g+'[value]" class="caldera-processor-value-bind caldera-conditional-value-field" data-field="'+n+'" style="max-width: 220px; width: 220px;">',p+='<option value="click" '+("click"===i.data("value")?'selected="selected"':"")+">Click</option>",p+='<option value="dblclick" '+("dblclick"===i.data("value")?'selected="selected"':"")+">Double Click</option>",p+="</select>"):p='<input name="'+g+'[value]" type="text" class="caldera-conditional-value-field magic-tag-enabled" value="'+(i.data("value")?i.data("value"):"")+'" style="max-width: 205px;">';i.html(p),init_magic_tags()}),a(".caldera-editor-body").on("change",".caldera-conditionals-usetype",function(){var c=a(this);""!==this.value?(a("#"+c.data("id")+"_condition_group_add").show(),a("#"+c.data("id")+"_conditional_wrap").show()):(a("#"+c.data("id")+"_condition_group_add").hide(),a("#"+c.data("id")+"_conditional_wrap").hide())}),a(".caldera-editor-body").on("click",".remove-conditional-line",function(b){b.preventDefault();var c=a(this),d=c.closest(".caldera-condition-line"),e=c.closest(".caldera-condition-group");d.remove(),e.find(".caldera-condition-line").length||e.remove()}),a(".caldera-group-nav").first().find("a").trigger("click"),a(".caldera-editor-body").on("change",".toggle_show_values",function(){var c=a(this),d=c.closest(".caldera-config-group-toggle-options");values=d.find(".toggle_value_field"),lables=d.find(".toggle_label_field"),field_lables=d.find(".caldera-config-group-option-labels"),c.prop("checked")?(values.show().parent().show(),values.show().parent().parent().show(),lables.css("width",""),field_lables.show()):(values.hide().parent().hide(),lables.css("width",245),field_lables.hide()),lables.trigger("toggle.values"),init_magic_tags()}),a(".caldera-editor-body").on("change",".auto-populate-type",function(){a(this).closest(".wrapper-instance-pane").find(".auto-populate-options").trigger("change")}),a(".caldera-editor-body").on("change",".auto-populate-options",function(){var b=a(this),c=b.closest(".wrapper-instance-pane"),d=c.find(".caldera-config-group-toggle-options"),e=c.find(".caldera-config-group-auto-options"),f=e.find(".auto-populate-type");e.find(".auto-populate-type-panel").hide(),b.prop("checked")?(d.hide(),e.show()):(d.show(),e.hide()),e.find(".caldera-config-group-auto-"+f.val()).show()}),a("body").on("change",".pin-toggle-roles",function(){var b=a(this),c=a("#caldera-pin-rules");"1"===b.val()?c.show():c.hide()}),a("body").on("click",".magic-tag-init",function(){var c=a(this),d=c.prev();d.focus().trigger("init.magic")}),a("body").on("keyup blur focus select click init.magic",".magic-tag-enabled",function(b){init_magic_tags();var c=a(this),d=c.parent(),e=d.closest(".wrapper-instance-pane").find(".caldera-select-field-type").val()?d.closest(".wrapper-instance-pane").find(".caldera-select-field-type").val():"hidden",f=d.find(".magic-tags-autocomplete"),g=f.find("ul"),h=this.value,j=[],k="",l=this.selectionStart,m=this.selectionEnd;if(f.length&&f.data("focus"))return b.preventDefault(),void 0;if(c.data("tag",""),this.selectionEnd>this.selectionStart)k=this.value.substr(this.selectionStart,this.selectionEnd-this.selectionStart);else if(("select"===b.type||"keyup"===b.type)&&40!==b.which&&38!==b.which&&39!==b.which&&37!==b.which){for(l=this.selectionStart;l>0;l--){var n=h.substr(l-1,1);if(" "===n||"\n"===n||("%"===n||"}"===n)&&this.selectionStart===l)break}for(m=this.selectionStart;m<h.length;m++){var n=h.substr(m,1);if(" "===n||"\n"===n||("%"===n||"{"===n)&&this.selectionStart===m)break}k=h.substr(l,m-l)}if("focusout"!==b.type){if("init"!==b.type&&k.length<3)return f.length&&f.remove(),void 0;f.length||(f=a('<div class="magic-tags-autocomplete"></div>'),g=a("<ul></ul>"),g.appendTo(f),f.insertAfter(c),f.on("mouseenter",function(){a(this).data("focus",!0)}),f.on("mouseleave",function(){a(this).data("focus",!1),c.is(":focus")||c.trigger("focusout")})),g.empty();var o="system",p=!1;"hidden"===e||"dropdown"===e||"radio"===e||"toggle_switch"===e||"checkbox"===e?(p=!0,e="text",o="all"):("paragraph"===e||"html"===e)&&(e="text"),c.data("type")&&(e=c.data("type")),e=e.split(","),e.push("vars");for(var q=0;q<e.length;q++)for(var r in system_values)if("undefined"!=typeof system_values[r].tags[e[q]]){if(j=[r],"system"!==r&&"variable"!==r&&"field"!==r){var s=jQuery(".processor-"+r),t=c.closest(".caldera-editor-processor-config-wrapper"),u=t.prop("id");j=[];for(var v=0;v<s.length;v++)if(t.length||p!==!0){if(u===s[v].id)continue;jQuery("li."+s[v].id).index()<jQuery("li."+u).index()&&j.push(s[v].id)}else j.push(s[v].id)}for(var w=0;w<j.length;w++)if("all"===o||o===r||"variable"===r){var x=a('<li class="header">'+system_values[r].type+(w>0?" ["+(w+1)+"]":"")+"</li>"),y=0;x.appendTo(g);for(var z=0;z<system_values[r].tags[e[q]].length;z++)if(!c.data("parent")||"variable:"+c.data("parent")!==system_values[r].tags[e[q]][z]){var A=system_values[r].wrap[0]+system_values[r].tags[e[q]][z]+system_values[r].wrap[1];if(j[w]!==r&&j.length>1&&(A=system_values[r].wrap[0]+system_values[r].tags[e[q]][z]+":"+j[w]+system_values[r].wrap[1]),A.indexOf(k)>=0||"init"===b.type){y+=1;var B=A.replace(k,"<strong>"+k+"</strong>"),C=a('<li class="tag" data-tag="'+A+'">'+B+"</li>");C.on("click",function(){var b=a(this).data("tag");c.val(h.substr(0,l)+b+h.substr(m)).trigger("change").focus(),c[0].selectionStart=l+b.length-(b.indexOf("*")>0?2:0),c[0].selectionEnd=l+b.length-(b.indexOf("*")>0?1:0)}),C.appendTo(g)}}0===y&&x.remove()}}}g.children().length||f.remove(),"focusout"===b.type&&setTimeout(function(){f.remove()},200)});for(var e=a(".cf-editor-template"),f=0;f<e.length;f++)compiled_templates[e[f].id]=Handlebars.compile(e[f].innerHTML);a(".caldera-select-field-type").not(".field-initialized").each(function(a,c){b(c)})});var rebuild_field_binding,rebind_field_bindings,current_form_fields={},required_errors={},add_new_grid_page,add_page_grid,init_magic_tags,core_form,compiled_templates={};init_magic_tags=function(){var a=jQuery(".magic-tag-enabled");a.each(function(a,b){var c=jQuery(b);if(c.hasClass("magic-tag-init-bound")){var d=c.parent().find(".magic-tag-init");return c.is(":visible")?d.show():d.hide(),void 0}var e=jQuery('<span class="icn-code magic-tag-init"></span>'),f=jQuery('<span style="position:relative;display:inline-block; width:100%;"></span>');c.is("input")&&e.css("borderBottom","none"),c.hasClass("caldera-conditional-value-field")&&f.width("auto"),c.wrap(f),e.insertAfter(c),c.addClass("magic-tag-init-bound"),c.is(":visible")?e.show():e.hide()})},rebuild_field_binding=function(){if(core_form||(core_form=jQuery(".caldera-forms-options-form")),core_form.hasClass("builder-loaded")){var a=jQuery(".caldera-editor-field-config-wrapper");system_values.field={tags:{text:[]},type:"Fields",wrap:["%","%"]};for(var b=0;b<a.length;b++){var c=a[b].id,d=jQuery("#"+c+"_lable").val(),e=jQuery("#"+c+"_slug").val(),f=jQuery("#"+c+"_type").val();"undefined"==typeof system_values.field.tags[f]&&(system_values.field.tags[f]=[]),system_values.field.tags[f].push(e),"text"!==f&&system_values.field.tags.text.push(e),current_form_fields[c]={label:d,slug:e,type:f},jQuery("option.bound-field").trigger("change").each(function(a,b){var c=jQuery(b);0!==c.prop("value").indexOf("{")?c.text(jQuery("#"+c.prop("value")+"_lable").val()+" ["+jQuery("#"+c.prop("value")+"_lable").val()+"]"):c.text(c.prop("value").replace("{","").replace("}",""))}).removeClass("bound-field")}}},rebind_field_bindings=function(){var b,c,a=jQuery(".caldera-field-bind").not(".bound_field");if(a.length){a.addClass("bound_field");for(var d=0;d<a.length;d++){var e=jQuery(a[d]),f=e.val(),g=e.data("default"),h=e.data("exclude"),i=0,j=e.closest(".caldera-editor-processor-config-wrapper"),k=j.prop("id"),l="";if(g&&!e.hasClass("reload-binding")&&(f=g),e.is("select")){e.empty();var m=jQuery('<optgroup label="Fields">');for(var n in current_form_fields)e.data("type")&&e.data("type").split(",").indexOf(current_form_fields[n].type)<0||(e.data("id")!==n&&m.append('<option value="'+n+'"'+(f===n?'selected="selected"':"")+">"+current_form_fields[n].label+" ["+current_form_fields[n].slug+"]</option>"),i+=1);m.appendTo(e),0===i&&e.empty();for(var o in system_values)if(b=[],!(h&&h.split(",").indexOf(o)>=0)){if("system"!==o&&"variable"!==o)for(var p=jQuery(".processor-"+o),q=0;q<p.length;q++)k!==p[q].id&&(b.push(p[q].id),p.length>1&&(c=jQuery("li."+p[q].id+" .processor-line-number"))&&c.html("["+(q+1)+"]"));else b.push("__system__");var r=[];e.data("type")?(r=e.data("type").split(","),r.push("vars")):r=["text","vars"];for(var s=0;s<r.length;s++)if(system_values[o].tags[r[s]])for(var t=0;t<b.length;t++){jQuery("li."+b[t]).index()>jQuery("li."+k).index()&&"__system__"!==b[t]?e.closest(".caldera-editor-processors-panel-wrap").length&&(l=' disabled="disabled"'):l="";for(var m=jQuery('<optgroup label="'+system_values[o].type+("__system__"!==b[t]?" "+jQuery("li."+b[t]).find(".processor-line-number").html():"")+'"'+l+">"),u=0;u<system_values[o].tags[r[s]].length;u++){var v=system_values[o].tags[r[s]][u];"__system__"!==b[t]&&(v=v.replace(o,b[t])),m.append('<option value="{'+v+'}"'+(f==="{"+v+"}"?'selected="selected"':"")+l+">"+system_values[o].tags[r[s]][u]+"</option>"),i+=1}m.children().length&&m.appendTo(e)}}if(0===i){if(e.empty(),e.data("type")){e.append('<option value="">No '+e.data("type").split(",").join(" or ")+" in form</option>");var w=!0}}else e.prop("disabled",!1);e.hasClass("required")||"undefined"!=typeof w||e.prepend('<option value=""></option>'),e.val(f)}}init_magic_tags(),jQuery(document).trigger("bound.fields"),jQuery(".caldera-header-save-button").prop("disabled",!1)}},jQuery(document).ready(function(a){function b(){var b=a(".layout-grid-panel"),c=0;b.each(function(b,d){var e=a(d),f=e.find(".layout-structure"),g=e.find(".row"),h=[];g.each(function(b,d){var e=a(d),f=e.children().not(".column-merge"),g=[];c+=1,f.each(function(b,d){span=a(d).attr("class").split("-"),g.push(span[2]);var e=a(d).find(".field-location");e.length&&e.each(function(d,e){var f=a(e);f.val(c+":"+(b+1)).removeAttr("disabled")})}),h.push(g.join(":"))}),f.val(h.join("|"))})}function c(b,c,e){var i,j,f="fld_"+Math.round(1e7*Math.random()),g=f,h=a("#field_config_panels");if(e){var k=a("#"+e).clone().wrap("<div>").parent().html().replace(new RegExp(e,"g"),"{{id}}");i=Handlebars.compile(k)}else i=Handlebars.compile(a("#caldera_field_config_wrapper_templ").html());j={id:g,label:"",slug:""},h.append(i(j)),b.removeClass("button-small").removeClass("button").removeClass("button-primary").removeClass("ui-draggable").removeClass("layout-new-form-field").addClass("layout-form-field").attr("data-config",f),b.find(".layout_field_name").remove(),b.find(".field-location").prop("name","config[layout_grid][fields]["+f+"]"),b.find(".settings-panel").show(),b.appendTo(c),d(),b.find(".icon-edit").trigger("click"),a("#"+f+"_lable").focus().select(),e&&(h.find(".field_config_string").val(""),h.find(".field-label").trigger("change")),rebuild_field_binding(),baldrickTriggers(),a("#"+f).trigger("field.drop"),a(document).trigger("field.added")}function d(){a(".toggle-options").sortable({handle:".dashicons-sort"}),a("#grid-pages-panel").sortable({placeholder:"row-drop-helper",handle:".sort-handle",items:".first-row-level",axis:"y",stop:function(){b()}}),a(".layout-column").sortable({connectWith:".layout-column",appendTo:"#grid-pages-panel",helper:"clone",items:".layout-form-field",handle:".drag-handle",cursor:"move",opacity:.7,cursorAt:{left:100,top:15},start:function(a,b){b.helper.css({width:"200px",height:"35px",paddingTop:"20px"})},stop:function(a,c){c.item.removeAttr("style"),b()}}),a("h3 .layout-new-form-field").draggable({helper:"clone",appendTo:"body"}),a(".page-toggle.button").droppable({accept:".layout-form-field",over:function(){a(this).trigger("click"),a(".layout-column").sortable("refresh")}}),a(".layout-column").droppable({greedy:!0,activeClass:"ui-state-dropper",hoverClass:"ui-state-hoverable",accept:".layout-new-form-field",drop:function(b,d){var e=d.draggable.clone(),f=a(this);c(e,f)}}),b()}add_new_grid_page=function(){return{page_no:"pg_"+Math.round(1e7*Math.random())}},add_page_grid=function(b){var c=a(".page-toggle").length+1,e=a('<button type="button" data-name="Page '+c+'" data-page="'+b.rawData.page_no+'" class="page-toggle button">'+b.params.trigger.data("addtitle")+" "+c+"</button> "),f=a("#page-toggles");e.appendTo(f),f.show(),d(),e.trigger("click"),1===c&&f.hide(),a(document).trigger("add.page")},a(document).on("remove.page add.page load.page",function(){var c=a(".page-toggle").length,d=a("#tab_pages");1>=c?d.hide():d.show()}),d(),a("#grid-pages-panel").on("click",".column-fieldinsert .dashicons-plus-alt",function(){var d=a(this).closest(".column-container"),e=a("#newfield-tool").clone();c(e,d)}),a("#grid-pages-panel").on("click",".column-fieldinsert .dashicons-admin-generic",function(){}),a("#grid-pages-panel").on("click",".column-split",function(){var c=a(this).parent().parent(),e=c.attr("class").split("-"),f=a("<div>").insertAfter(c),g=Math.ceil(e[2]/2),h=Math.floor(e[2]/2);e[2]=g,c.attr("class",e.join("-")),e[2]=h,f.addClass(e.join("-")).append('<div class="layout-column column-container">'),a(this).remove(),d(),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("click",".column-remove",function(){var d=a(this).closest(".row"),e=d.find(".layout-form-field"),f=d.closest(".layout-grid-panel");if(e.length){if(!confirm(a("#row-remove-fields-message").text()))return;e.each(function(b,c){var d=a(c).data("config");a("#"+d).remove(),a('option[value="'+d+'"]').remove(),a('[data-bind="'+d+'"]').remove(),delete current_form_fields[d]})}d.slideUp(200,function(){if(a(this).remove(),b(),rebuild_field_binding(),!f.find(".row").length){f.remove();var c=a("#page-toggles .button-primary"),d=c.prev(),e=c.next();c.remove(),d.length?d.trigger("click"):e.trigger("click")}a(document).trigger("remove.page")}),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a(".caldera-config-editor-main-panel").on("click",".caldera-add-row",function(c){c.preventDefault();var e=a(".page-active");return e.length?(a(".page-active").append('<div class="first-row-level row"><div class="col-xs-12"><div class="layout-column column-container"></div></div></div>'),d(),b(),void 0):(a(".caldera-add-page").trigger("click"),void 0)}),a("#grid-pages-panel").on("click",".column-join",function(){var d=a(this).parent().parent().parent(),e=d.prev(),f=e.attr("class").split("-"),g=d.attr("class").split("-");f[2]=parseFloat(f[2])+parseFloat(g[2]),d.find(".layout-column").contents().appendTo(e.find(".layout-column")),e.attr("class",f.join("-")),d.remove(),b(),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("mouseenter",".row",function(){var d=jQuery(this);jQuery(".column-tools,.column-merge").remove(),d.children().children().first().append('<div class="column-remove column-tools"><i class="icon-remove"></i></div>'),d.children().children().last().append('<div class="column-sort column-tools" style="text-align:right;"><i class="dashicons dashicons-menu drag-handle sort-handle"></i></div>'),d.children().children().not(":first").prepend('<div class="column-merge"><div class="column-join column-tools"><i class="icon-join"></i></div></div>');var e=d.parent().parent().parent().width()/12-1;d.children().children().each(function(b,c){var d=a(c),e=d.width()/2-5;d.prepend('<div class="column-fieldinsert column-tools"><i class="dashicons dashicons-plus-alt"></i></div>'),d.parent().hasClass("col-xs-1")||(d.prepend('<div class="column-split column-tools"><i class="dashicons dashicons-leftright"></i></div>'),d.find(".column-split").css("left",e))}),jQuery(".column-merge").draggable({axis:"x",helper:"clone",appendTo:d,grid:[e,0],drag:function(c,d){a(this).addClass("dragging"),a(".column-tools").remove(),a(".column-split").remove();var e=a(this).parent().parent(),f=d.helper,g=d.originalPosition.left>f.position().left?"left":"right",i=e.prev(),j=Math.round(e.parent().width()/12-10),k=Math.abs(d.originalPosition.left-f.position().left);if(e.parent().addClass("sizing"),k>=j){var l=i.attr("class").split("-"),m=e.attr("class").split("-");l[2]=parseFloat(l[2]),m[2]=parseFloat(m[2]),"left"===g?(l[2]--,m[2]++,l[2]>0&&l[2]<l[2]+m[2]?(i.attr("class",l.join("-")),e.attr("class",m.join("-")),d.originalPosition.left=f.position().left):a(this).draggable("option","disabled",!0)):(l[2]++,m[2]--,m[2]>0&&m[2]<m[2]+m[2]?(i.attr("class",l.join("-")),e.attr("class",m.join("-")),d.originalPosition.left=f.position().left):a(this).draggable("option","disabled",!0)),b()
2
  }},stop:function(){a(this).removeClass("dragging").parent().parent().parent().removeClass("sizing")}})}),a("#grid-pages-panel").on("mouseleave",".row",function(){jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("click",".layout-form-field .icon-remove",function(){var b=a(this),c=b.parent(),d=a("#"+c.data("config"));c.slideUp(100,function(){a(this).remove()}),d.slideUp(100,function(){a(this).remove()})}),a("#grid-pages-panel").on("click",".layout-form-field .icon-edit",function(){var b=a(this),c=b.parent(),d=a("#"+c.data("config")+"_type").val();a(".caldera-editor-field-config-wrapper").hide(),c.hasClass("field-edit-open")?c.removeClass("field-edit-open"):(a(".layout-form-field").removeClass("field-edit-open"),c.addClass("field-edit-open"),a("#"+c.data("config")).show()),a(document).trigger("show."+c.data("config")),("radio"===d||"checkbox"===d||"dropdown"===d||"toggle_switch"===d)&&a("#"+c.data("config")+"_auto").trigger("change")}),a("body").on("click",".layout-modal-edit-closer,.layout-modal-save-action",function(b){b.preventDefault();var c=a(this),d=a(".layout-form-field.edit-open"),e=c.closest(".layout-modal-container");settings=e.find(".settings-panel").first(),a(".edit-open").removeClass("edit-open"),settings.appendTo(d.find(".settings-wrapper")).hide(),e.hide()}),a(".layout-editor-body").on("change",".layout-core-pod-query",function(){a(this).parent().find(".settings-panel-row").remove(),a(".edit-open").find(".drag-handle .set-pod").html(" - "+a(this).val())}),a(".layout-editor-body").on("click",".remove-where",function(){a(this).closest(".settings-panel-row").remove()}),a(".layout-editor-body").on("click",".use-pod-container",function(){var b=a(this),c=b.prev(),d=c.val();if(d.length){a(".edit-open").find(".drag-handle .set-pod").html(" - "+c.val()),b.parent().parent().find(".spinner").css("display","inline-block");var f={action:"pq_loadpod",pod_reference:{pod:d}};a.post(ajaxurl,f,function(c){b.parent().find(".spinner").css("display","none");var d=a("#where-line-tmpl").html(),e="",f=b.closest(".settings-panel").data("container");for(var g in c)e+='<option value="'+c[g]+'">'+c[g]+"</option>";d=d.replace(/{{fields}}/g,e).replace(/{{container_id}}/g,f),b.parent().append(d)})}}),a(".caldera-editor-header").on("click",".column-sort .icon-edit",function(){}),a(".layout-editor-body").on("tray_loaded",".layout-template-tray",function(){d()}),a(".caldera-editor-header").on("click",".caldera-editor-header-nav a",function(b){b.preventDefault();var c=a(this);a(".caldera-editor-header-nav li").removeClass("active"),a(".caldera-editor-body").hide(),a(c.attr("href")).show(),c.parent().addClass("active"),rebind_field_bindings()}),a("body").on("change",".required",function(){check_required_bindings(this)}),a("body").on("submit",".caldera-forms-options-form",function(b){var c=a(".required.has-error");c.length&&b.preventDefault()}),a(".caldera-editor-body").on("click",".add-toggle-option",function(){var c=a(this);if(c.data("bulk"))return a(c.data("bulk")).toggle(),a(c.data("bulk")).find("textarea").focus(),void 0;var d=c.closest(".caldera-editor-field-config-wrapper"),e=d.find(".toggle-options"),f=a("#field-option-row-tmpl").html(),g=Handlebars.compile(f),h="opt"+parseInt(1048576*(Math.random()+1)),i={_name:"config[fields]["+d.prop("id")+"][config]",option:{}};if(c.data("options")){for(var j=a(c.data("options")),k=j.val().split("\n"),l=0;l<k.length;l++)i.option["opt"+parseInt(1048576*(Math.random()+l))]={value:k[l],label:k[l],"default":!1};a(c.data("options")).parent().hide(),j.val(""),e.empty()}else i.option[h]={value:"",label:"","default":!1};e.append(g(i)),d.find(".toggle_show_values").trigger("change"),a(".toggle-options").sortable({handle:".dashicons-sort"}),k||e.find(".toggle_label_field").last().focus()}),a(".caldera-editor-body").on("click",".toggle-remove-option",function(){var c=a(this).closest(".caldera-editor-field-config-wrapper").find(".field-config").first();a(this).parent().remove(),c.trigger("change")}),a(".caldera-editor-body").on("click",".page-toggle",function(){var c=a(this),d=c.parent(),e=d.find(".button");e.removeClass("button-primary"),a(".layout-grid-panel").hide().removeClass("page-active"),a("#"+c.data("page")).show().addClass("page-active"),c.addClass("button-primary"),e.each(function(b,c){a(c).html(d.data("title")+" "+(b+1))}),1===e.length&&d.hide()}),a(".caldera-editor-body").on("blur toggle.values",".toggle_label_field",function(){var c=a(this),d=c.prev();d.val().length||d.val(c.val())}),rebuild_field_binding(),a(document).trigger("load.page")}),Handlebars.registerHelper("_options_config",function(){}),jQuery(document).ready(function(a){function b(){a(".caldera-editor-processors-panel ul").sortable({update:function(){rebuild_field_binding()}})}function c(b){var c=a(b),d=a("#"+c.val()+"-tmpl").length?a("#"+c.val()+"-tmpl").html():"",e=c.closest(".caldera-editor-processor-config-wrapper"),f=e.find(".caldera-config-processor-setup"),g=Handlebars.compile(d),h=e.find(".processor_config_string").val(),i=c.data("type");h=h.length&&i===c.val()?JSON.parse(h):processor_defaults[c.val()+"_cfg"],h||(h={}),h._id=e.prop("id"),h._name="config[processors]["+e.prop("id")+"][config]",g=a("<div>").html(g(h)),f.html(g.html()),"function"==typeof window[c.val()+"_init"]&&window[c.val()+"_init"](e.prop("id"),f),e.find(".no-conditions").length&&e.find(".toggle_option_tab").remove(),rebuild_field_binding(),baldrickTriggers()}a("body").on("click",".caldera-processor-nav a",function(b){b.preventDefault();var c=a(this);a(".caldera-processor-nav").removeClass("active"),a(".caldera-editor-processor-config-wrapper").hide(),a(c.attr("href")).show(),c.parent().addClass("active")}),a("body").on("click",".add-new-processor",function(){var d=a(this),e=Handlebars.compile(a("#processor-wrapper-tmpl").html());wrap=a(".active-processors-list"),process_conf=a(".caldera-editor-processor-config"),processid=Math.round(1e8*Math.random()),new_templ=Handlebars.compile(a("#processor-line-tmpl").html()),new_proc={id:"fp_"+processid,type:d.data("type")},wrap.append(new_templ(new_proc)),process_conf.append(e(new_proc)),a("#form_processor_baldrickModalCloser").trigger("click"),a(".caldera-processor-nav a").last().trigger("click"),a("#fp_"+processid+"_type").val(d.data("type")).trigger("change"),b(),baldrickTriggers()}),a("body").on("click",".delete-processor",function(){var c=a(this),d=c.closest(".caldera-editor-processor-config-wrapper");d.data("type"),confirm(c.data("confirm"))&&(a("."+d.prop("id")).remove(),d.remove(),a(".caldera-processor-nav a").first().trigger("click"),rebuild_field_binding())}),a("body").on("change",".caldera-select-processor-type",function(){var d=a(this),e=d.closest(".caldera-editor-processor-config-wrapper"),f=d.find('option[value="'+d.val()+'"]').text(),g=e.find(".caldera-editor-processor-title"),h=a(".caldera-processor-nav.active a");""===f&&(f=g.data("title")),g.html(f),h.html(f+' <span class="processor-line-number"></span>').parent().addClass("processor_type_"+d.val()),c(this),rebuild_field_binding()}),rebuild_field_binding(),a(".caldera-select-processor-type").each(function(a,b){c(b)}),b()}),Handlebars.registerHelper("_field",function(a){var b=this,c="",d="",e="",f=this[a.hash.slug]?' data-default="'+this[a.hash.slug]+'"':"";a.hash.required&&(c=" required"),a.hash.exclude&&(e='data-exclude="'+a.hash.exclude+'"'),a.hash.array&&(d="[]","true"!==a.hash.array&&(f='value="'+a.hash.array+'"')),out="<select "+(a.hash.type?'data-type="'+a.hash.type+'"':"")+f+" "+e+' name="'+this._name+"["+a.hash.slug+"]"+d+'" id="'+this._id+"_"+a.hash.slug+'" class="block-input field-config caldera-field-bind'+c+'">',this[a.hash.slug]?out+='<option class="bound-field" value="'+this[a.hash.slug]+'" class="bound-field"></option>':a.hash.required||(out+='<option value=""></option>');for(var g in current_form_fields){var h="";a.hash.type&&current_form_fields[g].type!==a.hash.type||(b[a.hash.slug]&&b[a.hash.slug]===g&&(h=' selected="selected"'),out+='<option value="'+g+'"'+h+">"+current_form_fields[g].label+" ["+current_form_fields[g].slug+"]</option>")}return out+="</select>",a.hash.required&&(out+='<input class="field-config" name="'+this._name+'[_required_bounds][]" type="hidden" value="'+a.hash.slug+'">'),out}),Handlebars.registerHelper("console",function(){console.log(this)});
caldera-core.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://digilab.co.za
5
  Description: Easy to use, grid based responsive form builder for creating simple to complex forms.
6
  Author: David Cramer
7
- Version: 1.2.1
8
  Author URI: http://digilab.co.za
9
  */
10
 
@@ -17,7 +17,7 @@ if ( ! defined( 'WPINC' ) ) {
17
 
18
  define('CFCORE_PATH', plugin_dir_path(__FILE__));
19
  define('CFCORE_URL', plugin_dir_url(__FILE__));
20
- define('CFCORE_VER', '1.2.1');
21
  define('CFCORE_EXTEND_URL', 'https://api.calderaforms.com/1.0/');
22
 
23
  include_once CFCORE_PATH . 'classes/core.php';
4
  Plugin URI: http://digilab.co.za
5
  Description: Easy to use, grid based responsive form builder for creating simple to complex forms.
6
  Author: David Cramer
7
+ Version: 1.2.2
8
  Author URI: http://digilab.co.za
9
  */
10
 
17
 
18
  define('CFCORE_PATH', plugin_dir_path(__FILE__));
19
  define('CFCORE_URL', plugin_dir_url(__FILE__));
20
+ define('CFCORE_VER', '1.2.2');
21
  define('CFCORE_EXTEND_URL', 'https://api.calderaforms.com/1.0/');
22
 
23
  include_once CFCORE_PATH . 'classes/core.php';
classes/core.php CHANGED
@@ -1608,26 +1608,83 @@ class Caldera_Forms {
1608
  case 'post_type':
1609
  $posts = get_posts( array('post_type' => $field['config']['post_type'], 'post_status' => 'publish', 'posts_per_page' => -1) );
1610
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1611
  foreach($posts as $post_item){
1612
  $field['config']['option'][$post_item->ID] = array(
1613
- 'value' => $post_item->ID,
1614
- 'label' => $post_item->post_title
1615
  );
1616
  }
1617
  break;
1618
  case 'taxonomy':
1619
- $taxos = get_terms( $field['config']['taxonomy'], 'orderby=count&hide_empty=0' );
1620
-
1621
- foreach( $taxos as $term){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1622
  $field['config']['option'][$term->term_id] = array(
1623
- 'value' => $term->term_id,
1624
- 'label' => $term->name
1625
  );
1626
  }
1627
  break;
1628
  }
1629
  // check values are set
1630
- if ( ( empty( $field['config']['value_field']) || $field[ 'config' ][ 'value_field' ] == 'name' ) && isset( $field[ 'config' ] ) && isset( $field[ 'config' ][ 'option' ] ) && is_array( $field[ 'config' ][ 'option' ] ) ){
1631
 
1632
  foreach( $field[ 'config' ][ 'option' ] as &$option){
1633
  $option[ 'value' ] = $option[ 'label' ];
@@ -4228,7 +4285,8 @@ class Caldera_Forms {
4228
  $form_attributes = array(
4229
  'method' => 'POST',
4230
  'enctype' => 'multipart/form-data',
4231
- 'role' => 'form'
 
4232
  );
4233
 
4234
  $form_element = apply_filters( 'caldera_forms_render_form_element', $form_element, $form);
@@ -4346,7 +4404,8 @@ class Caldera_Forms {
4346
  }
4347
 
4348
  $out .= "<script type=\"text/javascript\">\r\n";
4349
- $out .= "var caldera_conditionals = " . $conditions_str . ";\r\n";
 
4350
  $out .= "</script>\r\n";
4351
  $out .= implode("\r\n", $conditions_templates);
4352
 
1608
  case 'post_type':
1609
  $posts = get_posts( array('post_type' => $field['config']['post_type'], 'post_status' => 'publish', 'posts_per_page' => -1) );
1610
 
1611
+ /**
1612
+ * Filter which field is used for the VALUE when getting autopopulate option values when autopopulating options from post types
1613
+ *
1614
+ * Value can be any WP_Post field, or a meta key (be careful will return an empty string if that meta key isn't set for the post.
1615
+ *
1616
+ * @since 1.2.2
1617
+ *
1618
+ * @param string $field What field to use for the value. Default is "ID".
1619
+ * @param array $field Config for the field.
1620
+ * @param array $form Config for the form.
1621
+ * @param array $posts Current post collection.
1622
+ */
1623
+ $field_for_value = apply_filters( 'caldera_forms_autopopulate_options_post_value_field', 'ID', $field, $form, $posts );
1624
+ $field[ 'config' ][ 'value_field' ] = $field_for_value;
1625
+
1626
+ /**
1627
+ * Filter which field is used for the LABEL when getting autopopulate option values when autopopulating options from post types
1628
+ *
1629
+ * Value can be any WP_Post field, or a meta key (be careful will return an empty string if that meta key isn't set for the post.
1630
+ *
1631
+ * @since 1.2.2
1632
+ *
1633
+ * @param string $field What field to use for the label. Default is "post_title".
1634
+ * @param array $field Config for the field.
1635
+ * @param array $form Config for the form.
1636
+ * @param array $posts Current post collection.
1637
+ */
1638
+ $field_for_label = apply_filters( 'caldera_forms_autopopulate_options_post_label_field', 'post_title', $field, $form, $posts );
1639
+
1640
  foreach($posts as $post_item){
1641
  $field['config']['option'][$post_item->ID] = array(
1642
+ 'value' => $post_item->{$field_for_value},
1643
+ 'label' => $post_item->{$field_for_label}
1644
  );
1645
  }
1646
  break;
1647
  case 'taxonomy':
1648
+ $terms = get_terms( $field['config']['taxonomy'], 'orderby=count&hide_empty=0' );
1649
+ /**
1650
+ * Filter which field is used for the VALUE when getting autopopulate option values when autopopulating options from post types
1651
+ *
1652
+ * Value must be a standard taxonomy term field.
1653
+ *
1654
+ * @since 1.2.2
1655
+ *
1656
+ * @param string $field What field to use for the value. Default is "term_id".
1657
+ * @param array $field Config for the field.
1658
+ * @param array $form Config for the form.
1659
+ * @param array $posts Current term collection.
1660
+ */
1661
+ $field_for_value = apply_filters( 'caldera_forms_autopopulate_options_taxonomy_value_field', 'term_id', $field, $form, $terms );
1662
+ $field[ 'config' ][ 'value_field' ] = $field_for_value;
1663
+
1664
+ /**
1665
+ * Filter which field is used for the LABEL when getting autopopulate option values when autopopulating options from post types
1666
+ *
1667
+ * Value must be a standard taxonomy term field.
1668
+ *
1669
+ * @since 1.2.2
1670
+ *
1671
+ * @param string $field What field to use for the label. Default is "name".
1672
+ * @param array $field Config for the field.
1673
+ * @param array $form Config for the form.
1674
+ * @param array $posts Current term collection.
1675
+ */
1676
+ $field_for_label = apply_filters( 'caldera_forms_autopopulate_options_taxonomy_label_field', 'name', $field, $form, $terms );
1677
+
1678
+ foreach( $terms as $term){
1679
  $field['config']['option'][$term->term_id] = array(
1680
+ 'value' => $term->{$field_for_value},
1681
+ 'label' => $term->{$field_for_label}
1682
  );
1683
  }
1684
  break;
1685
  }
1686
  // check values are set
1687
+ if ( ( empty( $field['config']['value_field']) || $field[ 'config' ][ 'value_field' ] == 'name' ) && isset( $field[ 'config' ] ) && isset( $field[ 'config' ][ 'option' ] ) && is_array( $field[ 'config' ][ 'option' ] ) ){
1688
 
1689
  foreach( $field[ 'config' ][ 'option' ] as &$option){
1690
  $option[ 'value' ] = $option[ 'label' ];
4285
  $form_attributes = array(
4286
  'method' => 'POST',
4287
  'enctype' => 'multipart/form-data',
4288
+ 'role' => 'form',
4289
+ 'id' => $form['ID'] . '_' . $current_form_count
4290
  );
4291
 
4292
  $form_element = apply_filters( 'caldera_forms_render_form_element', $form_element, $form);
4404
  }
4405
 
4406
  $out .= "<script type=\"text/javascript\">\r\n";
4407
+ $out .= 'if( typeof caldera_conditionals === "undefined" ){ var caldera_conditionals = {}; }';
4408
+ $out .= "caldera_conditionals." . $form['ID'].'_'.$current_form_count . " = " . $conditions_str . ";\r\n";
4409
  $out .= "</script>\r\n";
4410
  $out .= implode("\r\n", $conditions_templates);
4411
 
classes/widget.php CHANGED
@@ -20,7 +20,7 @@ class Caldera_Forms_Widget extends WP_Widget {
20
  $title = empty($instance['title']) ? ' ' : apply_filters( 'widget_title', $instance['title']);
21
  if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };
22
 
23
- echo Caldera_Forms::render_form('asd');
24
 
25
  echo $after_widget;
26
 
@@ -68,4 +68,4 @@ function register_caldera_form_widget() {
68
  register_widget( 'Caldera_Forms_Widget' );
69
  }
70
 
71
- add_action( 'widgets_init', 'register_caldera_form_widget' );
20
  $title = empty($instance['title']) ? ' ' : apply_filters( 'widget_title', $instance['title']);
21
  if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };
22
 
23
+ echo Caldera_Forms::render_form( $instance[ 'form' ] );
24
 
25
  echo $after_widget;
26
 
68
  register_widget( 'Caldera_Forms_Widget' );
69
  }
70
 
71
+ add_action( 'widgets_init', 'register_caldera_form_widget' );
languages/caldera-forms-es_ES.mo ADDED
Binary file
languages/caldera-forms-es_ES.po ADDED
@@ -0,0 +1,1656 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Caldera Forms\n"
4
+ "POT-Creation-Date: 2015-06-04 11:21+0200\n"
5
+ "PO-Revision-Date: 2015-06-09 19:46-0000\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: Notecopies <hola@notecopies.es>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.8.1\n"
12
+ "X-Poedit-Basepath: .\n"
13
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Poedit-KeywordsList: __;_e\n"
16
+ "Language: es_ES\n"
17
+ "X-Poedit-SearchPath-0: ..\n"
18
+
19
+ #: ../classes/admin.php:108
20
+ msgid "Invalid Form."
21
+ msgstr "Formulario Incorrecto"
22
+
23
+ #: ../classes/admin.php:206 ../classes/admin.php:207 ../classes/admin.php:309
24
+ #: ../ui/entries_toolbar.php:27
25
+ msgid "Trash"
26
+ msgstr "Papelera"
27
+
28
+ #: ../classes/admin.php:207 ../classes/admin.php:309
29
+ #: ../ui/admin_templates.php:9
30
+ msgid "Restore"
31
+ msgstr "Restaurar"
32
+
33
+ #: ../classes/admin.php:307 ../ui/admin_templates.php:110
34
+ msgid "Entry"
35
+ msgstr "Entrada"
36
+
37
+ #: ../classes/admin.php:307
38
+ msgid "View"
39
+ msgstr "Vista"
40
+
41
+ #: ../classes/admin.php:349 ../classes/admin.php:357
42
+ msgid "Add Form to Page"
43
+ msgstr "Añadir Formulario a Página"
44
+
45
+ #: ../classes/admin.php:350
46
+ msgid "Insert Form Shortcode"
47
+ msgstr "Insertar Desde Shortcode"
48
+
49
+ #: ../classes/admin.php:350 ../classes/widget.php:8
50
+ msgid "Caldera Form"
51
+ msgstr "Formulario Caldera"
52
+
53
+ #: ../classes/admin.php:377 ../ui/admin.php:108
54
+ msgid "Deactivate"
55
+ msgstr "Desactivar"
56
+
57
+ #: ../classes/admin.php:381 ../ui/admin.php:108
58
+ msgid "Activate"
59
+ msgstr "Activar"
60
+
61
+ #: ../classes/admin.php:673 ../classes/admin.php:679 ../classes/admin.php:685
62
+ #: ../classes/admin.php:686 ../classes/admin.php:720 ../classes/admin.php:724
63
+ #: ../includes/filter_addon_plugins.php:50 ../ui/admin.php:32
64
+ #: ../ui/community.php:5 ../ui/edit.php:448 ../ui/extend.php:5
65
+ msgid "Caldera Forms"
66
+ msgstr "Caldera Forms"
67
+
68
+ #: ../classes/admin.php:674
69
+ msgid "Caldera Forms Admin"
70
+ msgstr "Administrar Caldera Forms"
71
+
72
+ #: ../classes/admin.php:674
73
+ msgid "Forms"
74
+ msgstr "Formularios"
75
+
76
+ #: ../classes/admin.php:685 ../ui/community.php:8
77
+ msgid "Community"
78
+ msgstr "Comunidad"
79
+
80
+ #: ../classes/admin.php:686 ../ui/extend.php:8
81
+ msgid "Extend"
82
+ msgstr "Mejoras"
83
+
84
+ #: ../classes/admin.php:945 ../classes/admin.php:1107
85
+ msgid "Sorry, please try again"
86
+ msgstr "Lo sentimos, inténtalo de nuevo por favor"
87
+
88
+ #: ../classes/admin.php:945
89
+ msgid "Form Delete Error"
90
+ msgstr "Error al eliminar"
91
+
92
+ #: ../classes/admin.php:1098
93
+ msgid "Sorry, File is not valid."
94
+ msgstr "Lo sentimos, archivo no válido"
95
+
96
+ #: ../classes/admin.php:1098 ../classes/admin.php:1102
97
+ #: ../classes/admin.php:1107
98
+ msgid "Form Import Error"
99
+ msgstr "Error al importar"
100
+
101
+ #: ../classes/admin.php:1102
102
+ msgid "Sorry, File not uploaded."
103
+ msgstr "Lo sentimos, el archivo no se ha subido"
104
+
105
+ #: ../classes/admin.php:1116
106
+ msgid "Form does not exist."
107
+ msgstr "El formulario no existe"
108
+
109
+ #: ../classes/admin.php:1157
110
+ msgid "Export selection has expired"
111
+ msgstr "La exportación ha caducado"
112
+
113
+ #: ../classes/admin.php:1157
114
+ msgid "Export Expired"
115
+ msgstr "Exportación caducada"
116
+
117
+ #: ../classes/admin.php:1346
118
+ msgid "Form has been successfully submitted. Thank you."
119
+ msgstr "El formulario ha sido correctamente enviado. Gracias."
120
+
121
+ #: ../classes/admin.php:1383 ../classes/admin.php:1399
122
+ msgid "Layout"
123
+ msgstr "Diseño"
124
+
125
+ #: ../classes/admin.php:1401
126
+ msgid "Layout Builder"
127
+ msgstr "Diseñador"
128
+
129
+ #: ../classes/admin.php:1411
130
+ msgid "Pages"
131
+ msgstr "Páginas"
132
+
133
+ #: ../classes/admin.php:1413
134
+ msgid "Form Pages"
135
+ msgstr "Páginas de formulario"
136
+
137
+ #: ../classes/admin.php:1417
138
+ msgid "Processors"
139
+ msgstr "Procesadores"
140
+
141
+ #: ../classes/admin.php:1419 ../ui/panels/processors.php:166
142
+ msgid "Form Processors"
143
+ msgstr "Procesadores de formulario"
144
+
145
+ #: ../classes/admin.php:1423 ../classes/admin.php:1425
146
+ #: ../ui/panels/variables.php:83
147
+ msgid "Variables"
148
+ msgstr "Variables"
149
+
150
+ #: ../classes/admin.php:1432
151
+ msgid "Responsive"
152
+ msgstr "Adaptabilidad"
153
+
154
+ #: ../classes/admin.php:1434
155
+ msgid "Resposive Settings"
156
+ msgstr "Opciones de adaptabilidad"
157
+
158
+ #: ../classes/admin.php:1438
159
+ msgid "Grid Collapse"
160
+ msgstr "División modular"
161
+
162
+ #: ../classes/admin.php:1440
163
+ msgid ""
164
+ "Set the smallest screen size at which to collapse the grid. (based on "
165
+ "Bootstrap 3.0)"
166
+ msgstr ""
167
+ "Pon el tamaño de pantalla mínimo necesario para que la estructura modular "
168
+ "del diseño se divida y se adapte. (basado en Bootstrap 3.0)"
169
+
170
+ #: ../classes/admin.php:1447
171
+ msgid "Maintain grid always"
172
+ msgstr "Mantener la estructura siempre"
173
+
174
+ #: ../classes/admin.php:1467 ../ui/panels/emailer.php:32
175
+ msgid "Mailer"
176
+ msgstr "Envío"
177
+
178
+ #: ../classes/admin.php:1469
179
+ msgid "Email Notification Settings"
180
+ msgstr "Opciones de notificación"
181
+
182
+ #: ../classes/core.php:346
183
+ msgid "The wasn't entered correct."
184
+ msgstr "Eso no se ha introducido correctamente."
185
+
186
+ #: ../classes/core.php:346 ../fields/button/config_template.php:9
187
+ msgid "Reset"
188
+ msgstr "Restaurar valores"
189
+
190
+ #: ../classes/core.php:476 ../classes/core.php:490 ../classes/core.php:2885
191
+ msgid "Permission denied."
192
+ msgstr "Permiso denegado."
193
+
194
+ #: ../classes/core.php:607 ../ui/panels/emailer.php:4
195
+ msgid "Caldera Forms Notification"
196
+ msgstr "Notificación Caldera Forms"
197
+
198
+ #: ../classes/core.php:973
199
+ msgid "Auto Responder"
200
+ msgstr "Auto-respuesta"
201
+
202
+ #: ../classes/core.php:974
203
+ msgid "Sends out an auto response e-mail"
204
+ msgstr "Envía un mensaje de auto-respuesta"
205
+
206
+ #: ../classes/core.php:978
207
+ msgid "Thank you for contacting us"
208
+ msgstr "Gracias por contactar con nosotros"
209
+
210
+ #: ../classes/core.php:982
211
+ msgid "Redirect"
212
+ msgstr "Redireccionar"
213
+
214
+ #: ../classes/core.php:983
215
+ msgid "Redirects user to URL on successful submit"
216
+ msgstr "Redirecciona a una URL tras un envio con éxito"
217
+
218
+ #: ../classes/core.php:988
219
+ msgid "Increment Value"
220
+ msgstr "Incrementar valor"
221
+
222
+ #: ../classes/core.php:989
223
+ msgid "Increment a value per entry."
224
+ msgstr "Incrementar valor por entrada"
225
+
226
+ #: ../classes/core.php:1003
227
+ msgid "Akismet"
228
+ msgstr "Akismet"
229
+
230
+ #: ../classes/core.php:1004
231
+ msgid "Anti-spam filtering"
232
+ msgstr "Filtro anti-spam"
233
+
234
+ #: ../classes/core.php:1037
235
+ msgid "Akismet not setup."
236
+ msgstr "Akismet no está configurado"
237
+
238
+ #: ../classes/core.php:1164
239
+ msgid "Calculation"
240
+ msgstr "Operaciones"
241
+
242
+ #: ../classes/core.php:1167 ../classes/core.php:1189 ../classes/core.php:1226
243
+ #: ../classes/core.php:1309 ../classes/core.php:1412
244
+ msgid "Special"
245
+ msgstr "Especial"
246
+
247
+ #: ../classes/core.php:1167
248
+ msgid "Math"
249
+ msgstr "Cálculo"
250
+
251
+ #: ../classes/core.php:1168
252
+ msgid "Calculate values"
253
+ msgstr "Calcular valores"
254
+
255
+ #: ../classes/core.php:1175
256
+ msgid "Total"
257
+ msgstr "Total"
258
+
259
+ #: ../classes/core.php:1187
260
+ msgid "Range Slider"
261
+ msgstr "Rango deslizable"
262
+
263
+ #: ../classes/core.php:1190
264
+ msgid "Range Slider input field"
265
+ msgstr "Campo de rango deslizable"
266
+
267
+ #: ../classes/core.php:1224
268
+ msgid "Star Rating"
269
+ msgstr "Valoración con estrellas"
270
+
271
+ #: ../classes/core.php:1226
272
+ msgid "Feedback"
273
+ msgstr "Reacciones"
274
+
275
+ #: ../classes/core.php:1227
276
+ msgid "Star rating input for feedback"
277
+ msgstr "Campo de valoración para recoger opiniones"
278
+
279
+ #: ../classes/core.php:1259
280
+ msgid "Phone Number"
281
+ msgstr "Número de teléfono"
282
+
283
+ #: ../classes/core.php:1260
284
+ msgid "Phone number with masking"
285
+ msgstr "Número de teléfono con máscara"
286
+
287
+ #: ../classes/core.php:1262 ../classes/core.php:1284 ../classes/core.php:1353
288
+ #: ../classes/core.php:1390 ../classes/core.php:1400 ../classes/core.php:1497
289
+ #: ../classes/core.php:1523
290
+ msgid "Text Fields"
291
+ msgstr "Campos de texto"
292
+
293
+ #: ../classes/core.php:1262 ../classes/core.php:1284 ../classes/core.php:1299
294
+ #: ../classes/core.php:1353 ../classes/core.php:1369 ../classes/core.php:1390
295
+ #: ../classes/core.php:1400 ../classes/core.php:1441 ../classes/core.php:1460
296
+ #: ../classes/core.php:1479 ../classes/core.php:1552 ../ui/edit.php:170
297
+ msgid "Basic"
298
+ msgstr "Básico"
299
+
300
+ #: ../classes/core.php:1262
301
+ msgid "User"
302
+ msgstr "Usuario"
303
+
304
+ #: ../classes/core.php:1281 ../classes/core.php:1282
305
+ msgid "Single Line Text"
306
+ msgstr "Campo de texto"
307
+
308
+ #: ../classes/core.php:1295 ../classes/core.php:1299
309
+ msgid "File"
310
+ msgstr "Fichero"
311
+
312
+ #: ../classes/core.php:1296
313
+ msgid "File Uploader"
314
+ msgstr "Cargador de archivos"
315
+
316
+ #: ../classes/core.php:1306
317
+ msgid "reCAPTCHA"
318
+ msgstr "reCAPTCHA"
319
+
320
+ #: ../classes/core.php:1307
321
+ msgid "reCAPTCHA anti-spam field"
322
+ msgstr "Campo anti-spam reCAPTCHA"
323
+
324
+ #: ../classes/core.php:1332
325
+ msgid "HTML"
326
+ msgstr "HTML"
327
+
328
+ #: ../classes/core.php:1333
329
+ msgid "Add text/html content"
330
+ msgstr "Añadir contenido html/texto"
331
+
332
+ #: ../classes/core.php:1335 ../fields/html/config_template.php:2
333
+ #: ../processors/akismet/config.php:20
334
+ msgid "Content"
335
+ msgstr "Contenido"
336
+
337
+ #: ../classes/core.php:1350 ../classes/core.php:1351
338
+ msgid "Hidden"
339
+ msgstr "Oculto"
340
+
341
+ #: ../classes/core.php:1366 ../fields/button/config_template.php:6
342
+ msgid "Button"
343
+ msgstr "Botón"
344
+
345
+ #: ../classes/core.php:1367
346
+ msgid "Button, Submit and Reset types"
347
+ msgstr "Tipos botón, enviar y reestablecer"
348
+
349
+ #: ../classes/core.php:1369
350
+ msgid "Buttons"
351
+ msgstr "Botones"
352
+
353
+ #: ../classes/core.php:1387 ../classes/core.php:1388
354
+ msgid "Email Address"
355
+ msgstr "Dirección email"
356
+
357
+ #: ../classes/core.php:1397 ../classes/core.php:1398
358
+ msgid "Paragraph Textarea"
359
+ msgstr "Área de texto"
360
+
361
+ #: ../classes/core.php:1410 ../classes/core.php:1411
362
+ msgid "Toggle Switch"
363
+ msgstr "Pestañas seleccionables"
364
+
365
+ #: ../classes/core.php:1412 ../classes/core.php:1441 ../classes/core.php:1460
366
+ #: ../classes/core.php:1479 ../classes/core.php:1552
367
+ msgid "Select Options"
368
+ msgstr "Opciones desplegables"
369
+
370
+ #: ../classes/core.php:1438 ../classes/core.php:1439
371
+ msgid "Dropdown Select"
372
+ msgstr "Lista desplegable"
373
+
374
+ #: ../classes/core.php:1457 ../classes/core.php:1458
375
+ msgid "Checkbox"
376
+ msgstr "Casillas seleccionables"
377
+
378
+ #: ../classes/core.php:1476 ../classes/core.php:1477
379
+ msgid "Radio"
380
+ msgstr "Lista de opciones"
381
+
382
+ #: ../classes/core.php:1494 ../classes/core.php:1495
383
+ msgid "Date Picker"
384
+ msgstr "Selección de fecha"
385
+
386
+ #: ../classes/core.php:1497 ../classes/core.php:1523
387
+ msgid "Pickers"
388
+ msgstr "Selectores"
389
+
390
+ #: ../classes/core.php:1521 ../classes/core.php:1522
391
+ msgid "Color Picker"
392
+ msgstr "Selección de color"
393
+
394
+ #: ../classes/core.php:1549
395
+ msgid "State/ Province Select"
396
+ msgstr "Lista de Estados/Provincias"
397
+
398
+ #: ../classes/core.php:1550
399
+ msgid "Dropdown select for US states and Canadian provinces."
400
+ msgstr "Lista desplegable para los estados de EEUU y las provincias de Canadá"
401
+
402
+ #: ../classes/core.php:1844
403
+ msgid "System Tags"
404
+ msgstr "Etiquetas de sistema"
405
+
406
+ #: ../classes/core.php:2556 ../classes/core.php:2590
407
+ msgid "Mailer Debug"
408
+ msgstr "Depurador de correo"
409
+
410
+ #: ../classes/core.php:2649 ../classes/core.php:3554
411
+ msgid "Invalid form ID"
412
+ msgstr "ID de formulario inválida"
413
+
414
+ #: ../classes/core.php:2895 ../classes/core.php:2900 ../classes/core.php:2907
415
+ #: ../classes/core.php:3891 ../classes/core.php:3907 ../classes/core.php:3910
416
+ #: ../classes/core.php:3914
417
+ msgid "Permission denied or entry does not exist."
418
+ msgstr "Permiso denegado o la entrada no existe"
419
+
420
+ #: ../classes/core.php:2947
421
+ msgid "is required"
422
+ msgstr "es obligatorio"
423
+
424
+ #: ../classes/core.php:3759 ../classes/core.php:3765
425
+ msgid "Form is currently not active."
426
+ msgstr "El formulario no está activo actualmente."
427
+
428
+ #: ../classes/core.php:4196
429
+ msgid "WARNING: Form is in Mailer Debug mode. Disable before going live."
430
+ msgstr ""
431
+ "AVISO: El formulario está en modo Depurador de correo. Desactívelo antes de "
432
+ "publicarlo."
433
+
434
+ #: ../classes/widget.php:43
435
+ msgid "Title"
436
+ msgstr "Título"
437
+
438
+ #: ../classes/widget.php:47 ../ui/admin.php:52 ../ui/admin.php:68
439
+ msgid "Form"
440
+ msgstr "Formulario"
441
+
442
+ #: ../fields/button/config_template.php:2
443
+ msgid "Type"
444
+ msgstr "Tipo"
445
+
446
+ #: ../fields/button/config_template.php:5
447
+ msgid "Submit"
448
+ msgstr "Enviar"
449
+
450
+ #: ../fields/button/config_template.php:7
451
+ msgid "Next Page"
452
+ msgstr "Página Siguiente"
453
+
454
+ #: ../fields/button/config_template.php:8
455
+ msgid "Previous Page"
456
+ msgstr "Página Anterior"
457
+
458
+ #: ../fields/button/config_template.php:14
459
+ msgid "Class"
460
+ msgstr "Clase"
461
+
462
+ #: ../fields/calculation/config.php:2
463
+ msgid "Element"
464
+ msgstr "Elemento"
465
+
466
+ #: ../fields/calculation/config.php:8
467
+ msgid "Classes"
468
+ msgstr "Clases"
469
+
470
+ #: ../fields/calculation/config.php:14
471
+ msgid "Before"
472
+ msgstr "Anterior"
473
+
474
+ #: ../fields/calculation/config.php:20
475
+ msgid "After"
476
+ msgstr "Posterior"
477
+
478
+ #: ../fields/calculation/config.php:27
479
+ msgid "Money Format"
480
+ msgstr "Formato de moneda"
481
+
482
+ #: ../fields/calculation/config.php:32
483
+ msgid "Separator"
484
+ msgstr "Separador"
485
+
486
+ #: ../fields/calculation/config.php:35
487
+ msgid "Setup a custom thousand separator. e.g 10,000.00 or 10.000.00"
488
+ msgstr ""
489
+ "Configurar un separador de miles personalizado. Por ejemplo: 10,000.00 o "
490
+ "10.000,00"
491
+
492
+ #: ../fields/calculation/config.php:41
493
+ msgid "Manual Formula"
494
+ msgstr "Fórmula manual"
495
+
496
+ #: ../fields/calculation/config.php:54
497
+ msgid "Add Operator Group"
498
+ msgstr "Añadir grupo de operador"
499
+
500
+ #: ../fields/calculation/config.php:63
501
+ msgid "Use %field_slug% as field value variables"
502
+ msgstr "Usar %field_slug% como variables de valor de campo"
503
+
504
+ #: ../fields/checkbox/config_template.php:3
505
+ #: ../fields/radio/config_template.php:4
506
+ msgid "Inline"
507
+ msgstr "Una línea"
508
+
509
+ #: ../fields/color_picker/setup.php:2 ../fields/date_picker/setup.php:2
510
+ #: ../fields/email/config.php:8 ../fields/paragraph/config_template.php:14
511
+ #: ../fields/phone/config.php:8 ../fields/range_slider/config.php:10
512
+ #: ../fields/text/config.php:8
513
+ msgid "Default"
514
+ msgstr "Por defecto"
515
+
516
+ #: ../fields/color_picker/setup.php:2
517
+ msgid "Color"
518
+ msgstr "Color"
519
+
520
+ #: ../fields/date_picker/setup.php:8
521
+ msgid "Format"
522
+ msgstr "Formato"
523
+
524
+ #: ../fields/date_picker/setup.php:14
525
+ msgid "Autoclose"
526
+ msgstr "Autocierre"
527
+
528
+ #: ../fields/date_picker/setup.php:16
529
+ msgid "Enable autoclose"
530
+ msgstr "Activar autocierre"
531
+
532
+ #: ../fields/date_picker/setup.php:17
533
+ msgid ""
534
+ "If enabled, the date picker will automatically close after selecting the "
535
+ "final input"
536
+ msgstr ""
537
+ "Si está activo, el selector de fecha se cerrará automáticamente después de "
538
+ "seleccionar el último valor"
539
+
540
+ #: ../fields/date_picker/setup.php:21
541
+ msgid "Start View"
542
+ msgstr "Vista de inicio"
543
+
544
+ #: ../fields/date_picker/setup.php:24
545
+ msgid "Month (Default)"
546
+ msgstr "Mes (Predeterminado)"
547
+
548
+ #: ../fields/date_picker/setup.php:25
549
+ msgid "Year"
550
+ msgstr "Año"
551
+
552
+ #: ../fields/date_picker/setup.php:26
553
+ msgid "Decade"
554
+ msgstr "Década"
555
+
556
+ #: ../fields/date_picker/setup.php:28
557
+ msgid "The starting view of the date picker (month, year, decade)"
558
+ msgstr "La visualización inicial del selector de fecha (mes, año, década)"
559
+
560
+ #: ../fields/date_picker/setup.php:32
561
+ msgid "language"
562
+ msgstr "lenguaje"
563
+
564
+ #: ../fields/date_picker/setup.php:100
565
+ msgid "Language to use. e.g. pt-BR"
566
+ msgstr "El lenguaje a utilizar. Ejemplo: es-ES"
567
+
568
+ #: ../fields/dropdown/config_template.php:2 ../fields/email/config.php:2
569
+ #: ../fields/paragraph/config_template.php:2 ../fields/phone/config.php:2
570
+ #: ../fields/text/config.php:2
571
+ msgid "Placeholder"
572
+ msgstr "Texto interior"
573
+
574
+ #: ../fields/file/config_template.php:2
575
+ msgid "Attach to mailer"
576
+ msgstr "Adjuntar al envío de correo"
577
+
578
+ #: ../fields/file/config_template.php:9
579
+ msgid "Allowed Types"
580
+ msgstr "Tipos permitidos"
581
+
582
+ #: ../fields/file/config_template.php:12
583
+ msgid "Comma separated eg. jpg,pdf,txt"
584
+ msgstr "Separado por comas. Ejemplo: jpg,pdf,txt"
585
+
586
+ #: ../fields/gravatar/config.php:2
587
+ msgid "Email Field"
588
+ msgstr "Campo email"
589
+
590
+ #: ../fields/gravatar/config.php:10
591
+ msgid "Mystery Man"
592
+ msgstr "Hombre Misterioso"
593
+
594
+ #: ../fields/gravatar/config.php:11
595
+ msgid "Blank"
596
+ msgstr "Vacío"
597
+
598
+ #: ../fields/gravatar/config.php:12
599
+ msgid "Gravatar Logo"
600
+ msgstr "Logo Gavatar"
601
+
602
+ #: ../fields/gravatar/config.php:13
603
+ msgid "Identicon (Generated)"
604
+ msgstr "Identicon (Generado)"
605
+
606
+ #: ../fields/gravatar/config.php:14
607
+ msgid "Wavatar (Generated)"
608
+ msgstr "Wavatar (Generado)"
609
+
610
+ #: ../fields/gravatar/config.php:15
611
+ msgid "MonsterID (Generated)"
612
+ msgstr "MonsterID (Generado)"
613
+
614
+ #: ../fields/gravatar/config.php:16
615
+ msgid "Retro (Generated)"
616
+ msgstr "Retro (Generado)"
617
+
618
+ #: ../fields/gravatar/config.php:21
619
+ msgid "Fallback"
620
+ msgstr "Respaldo"
621
+
622
+ #: ../fields/gravatar/config.php:35
623
+ msgid "Size"
624
+ msgstr "Tamaño"
625
+
626
+ #: ../fields/gravatar/config.php:42
627
+ msgid "Border Color"
628
+ msgstr "Color de Borde"
629
+
630
+ #: ../fields/gravatar/config.php:49
631
+ msgid "Border Size"
632
+ msgstr "Tamaño de Borde"
633
+
634
+ #: ../fields/gravatar/config.php:56
635
+ msgid "Border Radius"
636
+ msgstr "Bordes Redondeados"
637
+
638
+ #: ../fields/hidden/setup.php:2 ../ui/edit.php:106 ../ui/edit.php:135
639
+ #: ../ui/panels/variables.php:12
640
+ msgid "Value"
641
+ msgstr "Valor"
642
+
643
+ #: ../fields/paragraph/config_template.php:8
644
+ msgid "Rows"
645
+ msgstr "Filas"
646
+
647
+ #: ../fields/phone/config.php:14
648
+ msgid "Style"
649
+ msgstr "Estilo"
650
+
651
+ #: ../fields/phone/config.php:16
652
+ msgid "Local"
653
+ msgstr "Local"
654
+
655
+ #: ../fields/phone/config.php:18
656
+ msgid "International"
657
+ msgstr "Internacional"
658
+
659
+ #: ../fields/phone/config.php:20
660
+ msgid "Custom"
661
+ msgstr "Personalizado"
662
+
663
+ #: ../fields/phone/config.php:22
664
+ msgid "Use the digit 9 to indicate a number"
665
+ msgstr "Usa el dígito 9 para indicar números"
666
+
667
+ #: ../fields/range_slider/config.php:17
668
+ msgid "Track"
669
+ msgstr "Rastro"
670
+
671
+ #: ../fields/range_slider/config.php:23
672
+ msgid "Highlight"
673
+ msgstr "Resaltado"
674
+
675
+ #: ../fields/range_slider/config.php:29
676
+ msgid "Handle"
677
+ msgstr "Manejo"
678
+
679
+ #: ../fields/range_slider/config.php:35
680
+ msgid "Border"
681
+ msgstr "Borde"
682
+
683
+ #: ../fields/range_slider/config.php:42
684
+ msgid "Steps"
685
+ msgstr "Saltos"
686
+
687
+ #: ../fields/range_slider/config.php:48
688
+ msgid "Minimum"
689
+ msgstr "Mínimo"
690
+
691
+ #: ../fields/range_slider/config.php:54
692
+ msgid "Maximum"
693
+ msgstr "Máximo"
694
+
695
+ #: ../fields/range_slider/config.php:60
696
+ msgid "Show Value"
697
+ msgstr "Mostrar valor"
698
+
699
+ #: ../fields/range_slider/config.php:66
700
+ msgid "Prefix"
701
+ msgstr "Prefijo"
702
+
703
+ #: ../fields/range_slider/config.php:72
704
+ msgid "Suffix"
705
+ msgstr "Sufijo"
706
+
707
+ #: ../fields/recaptcha/config.php:1
708
+ msgid "reCaptcha required keys from Google."
709
+ msgstr "reCaptcha requiera claves de Google."
710
+
711
+ #: ../fields/recaptcha/config.php:3
712
+ msgid "Site Key"
713
+ msgstr "Clave del sitio"
714
+
715
+ #: ../fields/recaptcha/config.php:9
716
+ msgid "Secret Key"
717
+ msgstr "Clave secreta"
718
+
719
+ #: ../fields/recaptcha/config.php:15
720
+ msgid "Theme"
721
+ msgstr "Tema"
722
+
723
+ #: ../fields/recaptcha/config.php:18
724
+ msgid "Light"
725
+ msgstr "Claro"
726
+
727
+ #: ../fields/recaptcha/config.php:19
728
+ msgid "Dark"
729
+ msgstr "Oscuro"
730
+
731
+ #: ../fields/recaptcha/config.php:21
732
+ msgid ""
733
+ "Theme changes not available in preview. Update form and reload to see new "
734
+ "theme."
735
+ msgstr ""
736
+ "Los cambios del tema no están disponibles en la previsualización. Actualiza "
737
+ "el formulario y recarga para ver el nuevo tema."
738
+
739
+ #: ../fields/recaptcha/preview.php:20
740
+ msgid "No Secret Key Added"
741
+ msgstr "No se ha añadido la clave secreta"
742
+
743
+ #: ../fields/recaptcha/preview.php:23
744
+ msgid "No Site Key Added"
745
+ msgstr "No se ha añadido clave del sistio"
746
+
747
+ #: ../fields/star-rate/config.php:2
748
+ msgid "Number of Stars"
749
+ msgstr "Número de estrellas"
750
+
751
+ #: ../fields/star-rate/config.php:8
752
+ msgid "Star Type"
753
+ msgstr "Tipo de estrella"
754
+
755
+ #: ../fields/star-rate/config.php:11
756
+ msgid "Star"
757
+ msgstr "Estrella"
758
+
759
+ #: ../fields/star-rate/config.php:12
760
+ msgid "Heart"
761
+ msgstr "Corazón"
762
+
763
+ #: ../fields/star-rate/config.php:13
764
+ msgid "Face"
765
+ msgstr "Cara"
766
+
767
+ #: ../fields/star-rate/config.php:14
768
+ msgid "Dot"
769
+ msgstr "Punto"
770
+
771
+ #: ../fields/star-rate/config.php:19
772
+ msgid "Star Size"
773
+ msgstr "Tamaño de estrella"
774
+
775
+ #: ../fields/star-rate/config.php:25
776
+ msgid "Star Spacing"
777
+ msgstr "Espacio entre estrellas"
778
+
779
+ #: ../fields/star-rate/config.php:31
780
+ msgid "Single Select"
781
+ msgstr "Selección única"
782
+
783
+ #: ../fields/star-rate/config.php:38
784
+ msgid "Star Color"
785
+ msgstr "Color de estrellas"
786
+
787
+ #: ../fields/star-rate/config.php:44
788
+ msgid "Track Color"
789
+ msgstr "Color de rastro"
790
+
791
+ #: ../fields/star-rate/config.php:50
792
+ msgid "Include Cancel"
793
+ msgstr "Incluir Cancelar"
794
+
795
+ #: ../fields/text/config.php:15
796
+ msgid "Masked Input"
797
+ msgstr "Entrada con máscara"
798
+
799
+ #: ../fields/text/config.php:17
800
+ msgid "Enable input mask"
801
+ msgstr "Activar máscara de entrada"
802
+
803
+ #: ../fields/text/config.php:22
804
+ msgid "Mask"
805
+ msgstr "Máscara"
806
+
807
+ #: ../fields/text/config.php:30
808
+ msgid "numeric"
809
+ msgstr "numérica"
810
+
811
+ #: ../fields/text/config.php:31
812
+ msgid "alphabetical"
813
+ msgstr "alfabética"
814
+
815
+ #: ../fields/text/config.php:32
816
+ msgid "alphanumeric"
817
+ msgstr "alfanumérica"
818
+
819
+ #: ../fields/text/config.php:33
820
+ msgid "optional"
821
+ msgstr "opcional"
822
+
823
+ #: ../fields/text/config.php:34
824
+ msgid "length"
825
+ msgstr "largo"
826
+
827
+ #: ../fields/text/config.php:36
828
+ msgid "Any length character only"
829
+ msgstr "Solo caracteres, cualquier largo"
830
+
831
+ #: ../fields/text/config.php:37
832
+ msgid "Any length number only"
833
+ msgstr "Solo números, cualquier largo"
834
+
835
+ #: ../fields/text/config.php:38
836
+ msgid "email"
837
+ msgstr "email"
838
+
839
+ #: ../fields/toggle_switch/config_template.php:2
840
+ msgid "Orientation"
841
+ msgstr "Orientación"
842
+
843
+ #: ../fields/toggle_switch/config_template.php:5
844
+ msgid "Horizontal"
845
+ msgstr "Horizontal"
846
+
847
+ #: ../fields/toggle_switch/config_template.php:6
848
+ msgid "Justified"
849
+ msgstr "Justificado"
850
+
851
+ #: ../fields/toggle_switch/config_template.php:7
852
+ msgid "Vertical"
853
+ msgstr "Vertical"
854
+
855
+ #: ../fields/toggle_switch/config_template.php:13
856
+ msgid "Active Class"
857
+ msgstr "Clase Activa"
858
+
859
+ #: ../fields/toggle_switch/config_template.php:20
860
+ msgid "Inactive Class"
861
+ msgstr "Clase Inactiva"
862
+
863
+ #: ../fields/toggle_switch/field.php:39 ../ui/edit.php:491 ../ui/edit.php:499
864
+ #: ../ui/edit.php:532 ../ui/edit.php:539
865
+ msgid "Enable"
866
+ msgstr "Activar"
867
+
868
+ #: ../includes/cf-ajax/plugin.php:38
869
+ msgid "Ajax Submissions"
870
+ msgstr "Envío con Ajax"
871
+
872
+ #: ../includes/cf-ajax/plugin.php:40
873
+ msgid "Enable Ajax Submissions. (No page reloads)"
874
+ msgstr "Activar envío a través de Ajax. (Sin cargar la página)"
875
+
876
+ #: ../includes/cf-ajax/plugin.php:46
877
+ msgid "Custom Callback"
878
+ msgstr "Respuesta personalizada"
879
+
880
+ #: ../includes/cf-ajax/plugin.php:48
881
+ msgid "Add a custom Javascript callback handlers on submission."
882
+ msgstr ""
883
+ "Añade controladores de respuesta de JavaScript personalizados al enviar el "
884
+ "formulario."
885
+
886
+ #: ../includes/cf-ajax/plugin.php:55
887
+ msgid "Inhibit Notices"
888
+ msgstr "Inhibir Avisos"
889
+
890
+ #: ../includes/cf-ajax/plugin.php:57
891
+ msgid "Don't show default alerts (success etc.)"
892
+ msgstr "No mostrar avisos predeterminados (envío OK, etc.)"
893
+
894
+ #: ../includes/cf-ajax/plugin.php:63
895
+ msgid "Callback Function"
896
+ msgstr "Función de respuesta"
897
+
898
+ #: ../includes/cf-ajax/plugin.php:66
899
+ msgid ""
900
+ "Javascript function to call on submission. Passed an object containing form "
901
+ "submission result."
902
+ msgstr ""
903
+ "Función JavaScript que será llamada al enviar el formulario. Pasa un objeto "
904
+ "que contiene los resultados del envío del formulario."
905
+
906
+ #: ../includes/cf-ajax/plugin.php:91
907
+ msgid "Multiple Ajax Submissions"
908
+ msgstr "Múltiples envíos con Ajax"
909
+
910
+ #: ../includes/cf-ajax/plugin.php:93
911
+ msgid "If set, form can be submitted multiple times with out a new page load."
912
+ msgstr ""
913
+ "Si está activo, el formulario puede ser enviado varias veces sin cargar la "
914
+ "página."
915
+
916
+ #: ../includes/cf-ajax/plugin.php:147 ../includes/cf-ajax/plugin.php:158
917
+ #: ../processors/redirect/config.php:10
918
+ msgid "Redirecting"
919
+ msgstr "Redirección"
920
+
921
+ #: ../includes/custom_field_class.php:21
922
+ msgid "Custom Class"
923
+ msgstr "Clase personalizada"
924
+
925
+ #: ../includes/field_processors.php:22
926
+ msgid "File type not allowed. Allowed types are: "
927
+ msgstr "Tipo de archivo no permitido. Los archivos permitidos son:"
928
+
929
+ #: ../includes/field_processors.php:24
930
+ msgid "File type needs to be"
931
+ msgstr "El tipo de archivo ha de ser"
932
+
933
+ #: ../processors/akismet/config.php:2 ../ui/edit.php:330
934
+ #: ../ui/panels/variables.php:10
935
+ msgid "Name"
936
+ msgstr "Nombre"
937
+
938
+ #: ../processors/akismet/config.php:8
939
+ msgid "Email"
940
+ msgstr "Email"
941
+
942
+ #: ../processors/akismet/config.php:14 ../processors/redirect/config.php:2
943
+ msgid "URL"
944
+ msgstr "URL"
945
+
946
+ #: ../processors/akismet/config.php:27
947
+ msgid "Error Message"
948
+ msgstr "Mensaje de error"
949
+
950
+ #: ../processors/akismet/config.php:29
951
+ msgid "Sorry, that looked very spammy, try rephrasing things"
952
+ msgstr ""
953
+ "Lo sentimos, parece que contiene spam, intenta reemplazar algunos textos"
954
+
955
+ #: ../processors/auto_responder/config.php:2 ../ui/panels/emailer.php:42
956
+ msgid "From Name"
957
+ msgstr "Remitente"
958
+
959
+ #: ../processors/auto_responder/config.php:8 ../ui/panels/emailer.php:49
960
+ msgid "From Email"
961
+ msgstr "Email del remitente"
962
+
963
+ #: ../processors/auto_responder/config.php:14 ../ui/panels/emailer.php:97
964
+ msgid "Email Subject"
965
+ msgstr "Asunto del email"
966
+
967
+ #: ../processors/auto_responder/config.php:20
968
+ msgid "Recipient Name"
969
+ msgstr "Destinatario"
970
+
971
+ #: ../processors/auto_responder/config.php:26
972
+ msgid "Recipient Email"
973
+ msgstr "Email destinatario"
974
+
975
+ #: ../processors/auto_responder/config.php:32
976
+ msgid "Message"
977
+ msgstr "Mensaje"
978
+
979
+ #: ../processors/increment/config.php:2
980
+ msgid "Increment Start"
981
+ msgstr "Incremento de inicio"
982
+
983
+ #: ../processors/increment/config.php:6
984
+ msgid "Number to start incrementing."
985
+ msgstr "Número para comenzar el incremento"
986
+
987
+ #: ../processors/increment/config.php:8
988
+ msgid ""
989
+ "Incremenets started at {{start}}. to reset, delete this and insert a new "
990
+ "increment processor."
991
+ msgstr ""
992
+ "Los incrementos comienzan en {{start}}. para reiniciarlos, borra esto e "
993
+ "inserta un nuevo procesador incremental."
994
+
995
+ #: ../processors/increment/config.php:14
996
+ msgid "Increment Field"
997
+ msgstr "Campo incremental"
998
+
999
+ #: ../processors/increment/config.php:17
1000
+ msgid ""
1001
+ "If you want to show the value in the entries, Select a Hidden field in form "
1002
+ "to capture the value to."
1003
+ msgstr ""
1004
+ "Si quieres mostrar el valor en las entradas, selecciona un Campo Oculto en "
1005
+ "el formulario para capturar el valor también."
1006
+
1007
+ #: ../processors/redirect/config.php:8
1008
+ msgid "Redirect Message"
1009
+ msgstr "Mensaje de redirección"
1010
+
1011
+ #: ../processors/redirect/config.php:11
1012
+ msgid "Message text shown when redirecting in Ajax mode."
1013
+ msgstr "Mensaje de texto mostrado cuando se redirige en modo Ajax."
1014
+
1015
+ #: ../ui/admin.php:26
1016
+ msgid "Create Form"
1017
+ msgstr "Crear Formulario"
1018
+
1019
+ #: ../ui/admin.php:38
1020
+ msgid "Create New Form"
1021
+ msgstr "Crear Nuevo Formulario"
1022
+
1023
+ #: ../ui/admin.php:38
1024
+ msgid "New Form"
1025
+ msgstr "Nuevo Formulario"
1026
+
1027
+ #: ../ui/admin.php:41 ../ui/admin_templates.php:33
1028
+ msgid "Import Form"
1029
+ msgstr "Importar Formulario"
1030
+
1031
+ #: ../ui/admin.php:41
1032
+ msgid "Import"
1033
+ msgstr "Importar"
1034
+
1035
+ #: ../ui/admin.php:47
1036
+ msgid "Front-end Style Includes"
1037
+ msgstr "Estilos incluidos en Frontend"
1038
+
1039
+ #: ../ui/admin.php:51
1040
+ msgid "Includes Bootstrap 3 styles on the frontend for form alert notices"
1041
+ msgstr ""
1042
+ "Incluye estilos Bootstrap 3 en la zona pública para los mensajes de aviso"
1043
+
1044
+ #: ../ui/admin.php:51
1045
+ msgid "Alert"
1046
+ msgstr "Avisos"
1047
+
1048
+ #: ../ui/admin.php:52
1049
+ msgid "Includes Bootstrap 3 styles on the frontend for form fields and buttons"
1050
+ msgstr ""
1051
+ "Incluye estilos Bootstrap 3 en la zona pública para los campos y los botones "
1052
+ "del formulario"
1053
+
1054
+ #: ../ui/admin.php:53
1055
+ msgid "Includes Bootstrap 3 styles on the frontend for form grid layouts"
1056
+ msgstr ""
1057
+ "Incluye estilos Bootstrap 3 en la zona pública para los módulos del diseño"
1058
+
1059
+ #: ../ui/admin.php:53
1060
+ msgid "Grid"
1061
+ msgstr "Bloques"
1062
+
1063
+ #: ../ui/admin.php:69 ../ui/admin.php:124
1064
+ msgid "Entries"
1065
+ msgstr "Entradas"
1066
+
1067
+ #: ../ui/admin.php:86 ../ui/edit.php:492 ../ui/edit.php:500
1068
+ #: ../ui/panels/emailer.php:35
1069
+ msgid "Disabled"
1070
+ msgstr "Desactivado"
1071
+
1072
+ #: ../ui/admin.php:96
1073
+ msgid "Mailer Debug enabled."
1074
+ msgstr "Depuración de correo activada."
1075
+
1076
+ #: ../ui/admin.php:100 ../ui/entries.php:14
1077
+ msgid "Edit"
1078
+ msgstr "Editar"
1079
+
1080
+ #: ../ui/admin.php:125
1081
+ msgid "Export"
1082
+ msgstr "Exportar"
1083
+
1084
+ #: ../ui/admin.php:126
1085
+ msgid "Clone Form"
1086
+ msgstr "Clonar Formulario"
1087
+
1088
+ #: ../ui/admin.php:126
1089
+ msgid "Clone"
1090
+ msgstr "Clonar"
1091
+
1092
+ #: ../ui/admin.php:127
1093
+ msgid "This will delete this form permanently. Continue?"
1094
+ msgstr "Esta acción eliminará el formulario definitivamente. ¿Continuar?"
1095
+
1096
+ #: ../ui/admin.php:127
1097
+ msgid "Delete"
1098
+ msgstr "Eliminar"
1099
+
1100
+ #: ../ui/admin.php:147
1101
+ msgid "You don't have any forms."
1102
+ msgstr "No hay ningún formulario."
1103
+
1104
+ #: ../ui/admin.php:188
1105
+ msgid "An form name is required"
1106
+ msgstr "Es necesario un nombre para el formulario"
1107
+
1108
+ #: ../ui/admin.php:215
1109
+ msgid ""
1110
+ "Looks like something is not working. Please try again a little later or post "
1111
+ "to the <a href=\"http://wordpress.org/support/plugin/caldera-forms\" target="
1112
+ "\"_blank\">support forum</a>."
1113
+ msgstr ""
1114
+ "Parece que algo no funciona bien. Por favor inténtalo un poco más tarde o "
1115
+ "pídenos ayuda en nuestra <a href=\"http://wordpress.org/support/plugin/"
1116
+ "caldera-forms\" target=\"_blank\">zona de ayuda y soporte</a>."
1117
+
1118
+ #: ../ui/admin_templates.php:2 ../ui/admin_templates.php:7
1119
+ msgid "Bulk Actions"
1120
+ msgstr "Acciones en lote"
1121
+
1122
+ #: ../ui/admin_templates.php:3 ../ui/admin_templates.php:8
1123
+ msgid "Export Selected"
1124
+ msgstr "Exportar seleccionado"
1125
+
1126
+ #: ../ui/admin_templates.php:4
1127
+ msgid "Move to Trash"
1128
+ msgstr "Mover a papelera"
1129
+
1130
+ #: ../ui/admin_templates.php:10
1131
+ msgid "Delete Permanently"
1132
+ msgstr "Borrar permanentemente"
1133
+
1134
+ #: ../ui/admin_templates.php:19 ../ui/admin_templates.php:48
1135
+ #: ../ui/edit.php:468
1136
+ msgid "Form Name"
1137
+ msgstr "Nombre de Formulario"
1138
+
1139
+ #: ../ui/admin_templates.php:25
1140
+ msgid "Form File"
1141
+ msgstr "Fichero de Formulario"
1142
+
1143
+ #: ../ui/admin_templates.php:54 ../ui/edit.php:358
1144
+ msgid "Description"
1145
+ msgstr "Descripción"
1146
+
1147
+ #: ../ui/admin_templates.php:72 ../ui/edit.php:323
1148
+ msgid "ID"
1149
+ msgstr "ID"
1150
+
1151
+ #: ../ui/admin_templates.php:73 ../ui/admin_templates.php:111
1152
+ msgid "Submitted"
1153
+ msgstr "Enviado"
1154
+
1155
+ #: ../ui/admin_templates.php:94
1156
+ msgid "No entries found"
1157
+ msgstr "No se encontraron entradas."
1158
+
1159
+ #: ../ui/admin_templates.php:100
1160
+ msgid "No entries yet."
1161
+ msgstr "No hay entradas aún."
1162
+
1163
+ #: ../ui/edit.php:13
1164
+ msgid "Form has successfully been submitted. Thank you."
1165
+ msgstr "El formulario ha sido correctamente enviado. Gracias."
1166
+
1167
+ #: ../ui/edit.php:54
1168
+ msgid "Auto Populate"
1169
+ msgstr "Auto-rellenar."
1170
+
1171
+ #: ../ui/edit.php:60
1172
+ msgid "Auto Type"
1173
+ msgstr "Auto-introducir."
1174
+
1175
+ #: ../ui/edit.php:63
1176
+ msgid "Select a source"
1177
+ msgstr "Selecciona una fuente"
1178
+
1179
+ #: ../ui/edit.php:64 ../ui/edit.php:90
1180
+ msgid "Post Type"
1181
+ msgstr "Tipo de Post"
1182
+
1183
+ #: ../ui/edit.php:65 ../ui/edit.php:74
1184
+ msgid "Taxonomy"
1185
+ msgstr "Clasificación"
1186
+
1187
+ #: ../ui/edit.php:122
1188
+ msgid "Add Option"
1189
+ msgstr "Añadir Opción"
1190
+
1191
+ #: ../ui/edit.php:123
1192
+ msgid "Bulk Insert"
1193
+ msgstr "Insetar en lote"
1194
+
1195
+ #: ../ui/edit.php:126
1196
+ msgid "Single option per line. These replace the current list."
1197
+ msgstr "Una sola opción por línea. Esto reemplazará la lista actual."
1198
+
1199
+ #: ../ui/edit.php:127
1200
+ msgid "Insert Options"
1201
+ msgstr "Opciónes de inserción"
1202
+
1203
+ #: ../ui/edit.php:131
1204
+ msgid "No Default"
1205
+ msgstr "No (Predeterminado)"
1206
+
1207
+ #: ../ui/edit.php:132
1208
+ msgid "Show Values"
1209
+ msgstr "Mostrar valores"
1210
+
1211
+ #: ../ui/edit.php:136
1212
+ msgid "Label"
1213
+ msgstr "Etiqueta"
1214
+
1215
+ #: ../ui/edit.php:297
1216
+ msgid "Elements"
1217
+ msgstr "Elementos"
1218
+
1219
+ #: ../ui/edit.php:305
1220
+ msgid "Settings"
1221
+ msgstr "Configuración"
1222
+
1223
+ #: ../ui/edit.php:306
1224
+ msgid "Conditions"
1225
+ msgstr "Condicionales"
1226
+
1227
+ #: ../ui/edit.php:313
1228
+ msgid "Element Type"
1229
+ msgstr "Tipo de elemento"
1230
+
1231
+ #: ../ui/edit.php:337
1232
+ msgid "Hide Label"
1233
+ msgstr "Ocultar etiqueta"
1234
+
1235
+ #: ../ui/edit.php:344
1236
+ msgid "Slug"
1237
+ msgstr "Slug"
1238
+
1239
+ #: ../ui/edit.php:351
1240
+ msgid "Required"
1241
+ msgstr "Requerido"
1242
+
1243
+ #: ../ui/edit.php:365
1244
+ msgid "Show in Entry List"
1245
+ msgstr "Mostrar en listado de entradas"
1246
+
1247
+ #: ../ui/edit.php:374
1248
+ msgid ""
1249
+ "Are you sure you want to remove this field?. 'Cancel' to stop. 'OK' to delete"
1250
+ msgstr ""
1251
+ "¿Estás seguro de querer eliminar este campo? Pulsa 'Cancelar' si no. 'OK' "
1252
+ "para eliminar"
1253
+
1254
+ #: ../ui/edit.php:374
1255
+ msgid "Delete Element"
1256
+ msgstr "Eliminar elemento"
1257
+
1258
+ #: ../ui/edit.php:380
1259
+ msgid "Show"
1260
+ msgstr "Mostrar"
1261
+
1262
+ #: ../ui/edit.php:381
1263
+ msgid "Hide"
1264
+ msgstr "Ocultar"
1265
+
1266
+ #: ../ui/edit.php:382
1267
+ msgid "Disable"
1268
+ msgstr "Desactivar"
1269
+
1270
+ #: ../ui/edit.php:384 ../ui/panels/processors.php:126
1271
+ msgid "Add Conditional Group"
1272
+ msgstr "Añadir grupo condicional"
1273
+
1274
+ #: ../ui/edit.php:454 ../ui/edit.php:466
1275
+ msgid "General Settings"
1276
+ msgstr "Configuración General"
1277
+
1278
+ #: ../ui/edit.php:459
1279
+ msgid "Updated Successfully"
1280
+ msgstr "Actualizado Correctamente"
1281
+
1282
+ #: ../ui/edit.php:461
1283
+ msgid "Update Form"
1284
+ msgstr "Actualizar Formulario"
1285
+
1286
+ #: ../ui/edit.php:462
1287
+ msgid "Preview Form"
1288
+ msgstr "Previsualizar"
1289
+
1290
+ #: ../ui/edit.php:475
1291
+ msgid "Form Description"
1292
+ msgstr "Descripción del formulario"
1293
+
1294
+ #: ../ui/edit.php:482
1295
+ msgid "State"
1296
+ msgstr "Estado"
1297
+
1298
+ #: ../ui/edit.php:484
1299
+ msgid "Deactivate / Draft"
1300
+ msgstr "Desactivar / Borrador"
1301
+
1302
+ #: ../ui/edit.php:489
1303
+ msgid "Capture Entries"
1304
+ msgstr "Capturar Entradas"
1305
+
1306
+ #: ../ui/edit.php:497
1307
+ msgid "Pin to Menu"
1308
+ msgstr "Agregar al Menú"
1309
+
1310
+ #: ../ui/edit.php:506
1311
+ msgid "View Entries"
1312
+ msgstr "Ver Entradas"
1313
+
1314
+ #: ../ui/edit.php:508
1315
+ msgid "All"
1316
+ msgstr "Todo"
1317
+
1318
+ #: ../ui/edit.php:530
1319
+ msgid "Hide Form"
1320
+ msgstr "Ocultar Formulario"
1321
+
1322
+ #: ../ui/edit.php:532
1323
+ msgid "Hide form after successful submission"
1324
+ msgstr "Ocultar formulario tras envío con éxito"
1325
+
1326
+ #: ../ui/edit.php:537
1327
+ msgid "Honeypot"
1328
+ msgstr "Bote de Miel"
1329
+
1330
+ #: ../ui/edit.php:539
1331
+ msgid "Place an invisible field to trick spambots"
1332
+ msgstr "Coloca un campo invisible para engañar a los programas de Spam"
1333
+
1334
+ #: ../ui/edit.php:544
1335
+ msgid "Success Message"
1336
+ msgstr "Mensaje de Envío con éxito"
1337
+
1338
+ #: ../ui/edit.php:550
1339
+ msgid "Gravatar Field"
1340
+ msgstr "Campo Gavatar"
1341
+
1342
+ #: ../ui/edit.php:557
1343
+ msgid "Used when viewing an entry from a non-logged in user."
1344
+ msgstr "Usado al ver una entrada de un usuario no autenticado."
1345
+
1346
+ #: ../ui/edit.php:631
1347
+ msgid "Add New"
1348
+ msgstr "Añadir Nuevo"
1349
+
1350
+ #: ../ui/edit.php:696 ../ui/edit.php:730
1351
+ msgid "Remove"
1352
+ msgstr "Borrar"
1353
+
1354
+ #: ../ui/edit.php:786
1355
+ msgid "Set Element"
1356
+ msgstr "Añadir Elemento"
1357
+
1358
+ #: ../ui/edit.php:789
1359
+ msgid "No description given"
1360
+ msgstr "No tiene descripción"
1361
+
1362
+ #: ../ui/edit.php:851
1363
+ msgid "or"
1364
+ msgstr "o"
1365
+
1366
+ #: ../ui/edit.php:860 ../ui/edit.php:883
1367
+ msgid "is"
1368
+ msgstr "es"
1369
+
1370
+ #: ../ui/edit.php:861 ../ui/edit.php:884
1371
+ msgid "is not"
1372
+ msgstr "no es"
1373
+
1374
+ #: ../ui/edit.php:862 ../ui/edit.php:885
1375
+ msgid "is greater than"
1376
+ msgstr "es mayor que"
1377
+
1378
+ #: ../ui/edit.php:863 ../ui/edit.php:886
1379
+ msgid "is less than"
1380
+ msgstr "es menor que"
1381
+
1382
+ #: ../ui/edit.php:864 ../ui/edit.php:887
1383
+ msgid "starts with"
1384
+ msgstr "empieza por"
1385
+
1386
+ #: ../ui/edit.php:865 ../ui/edit.php:888
1387
+ msgid "ends with"
1388
+ msgstr "termina en"
1389
+
1390
+ #: ../ui/edit.php:866 ../ui/edit.php:889
1391
+ msgid "contains"
1392
+ msgstr "contiene"
1393
+
1394
+ #: ../ui/edit.php:868 ../ui/edit.php:891
1395
+ msgid "Select field first"
1396
+ msgstr "Selecciona el campo primero"
1397
+
1398
+ #: ../ui/edit.php:873
1399
+ msgid "Add Condition"
1400
+ msgstr "Añadir Condición"
1401
+
1402
+ #: ../ui/edit.php:879
1403
+ msgid "and"
1404
+ msgstr "y"
1405
+
1406
+ #: ../ui/entries_toolbar.php:15
1407
+ msgid "Active"
1408
+ msgstr "Activo"
1409
+
1410
+ #: ../ui/entries_toolbar.php:31
1411
+ msgid "Export Entries"
1412
+ msgstr "Exportar Entradas"
1413
+
1414
+ #: ../ui/entries_toolbar.php:35
1415
+ msgid "Apply"
1416
+ msgstr "Aplicar"
1417
+
1418
+ #: ../ui/entry_navigation.php:23
1419
+ msgid "item"
1420
+ msgstr "elemento"
1421
+
1422
+ #: ../ui/entry_navigation.php:23
1423
+ msgid "items"
1424
+ msgstr "elementos"
1425
+
1426
+ #: ../ui/extend.php:23
1427
+ msgid "No licensed addons installed."
1428
+ msgstr "No hay extensiones Premium instaladas."
1429
+
1430
+ #: ../ui/extend.php:48
1431
+ msgid "Already Installed"
1432
+ msgstr "Ya está instalado"
1433
+
1434
+ #: ../ui/insert_shortcode.php:5
1435
+ msgid "Insert Caldera Form"
1436
+ msgstr "Insertar Caldera Form"
1437
+
1438
+ #: ../ui/insert_shortcode.php:24
1439
+ msgid "You don't have any forms to insert."
1440
+ msgstr "No tienes ningún formulario que insertar."
1441
+
1442
+ #: ../ui/insert_shortcode.php:32
1443
+ msgid "Insert Form"
1444
+ msgstr "Insertar Formulario"
1445
+
1446
+ #: ../ui/insert_shortcode.php:34
1447
+ msgid "Close"
1448
+ msgstr "Cerrar"
1449
+
1450
+ #: ../ui/news_templates.php:21
1451
+ msgid "Unable to connect or no extensions available."
1452
+ msgstr "Incapaz de conectar o no hay extensiones disponibles."
1453
+
1454
+ #: ../ui/panels/emailer.php:36
1455
+ msgid "Enabled"
1456
+ msgstr "Activado"
1457
+
1458
+ #: ../ui/panels/emailer.php:45
1459
+ msgid "Name from which the email comes"
1460
+ msgstr "Nombre de quien envía el email"
1461
+
1462
+ #: ../ui/panels/emailer.php:52
1463
+ msgid ""
1464
+ "Email Address from which the mail comes. Try not to use a field from the "
1465
+ "form. Rather use your own email and use a form field in the \"Reply To Email"
1466
+ "\" below."
1467
+ msgstr ""
1468
+ "Dirección email de quien envía el correo. Intenta no usar un campo del "
1469
+ "formulario. En lugar de ello usa tu propio email y usa un campo de "
1470
+ "formulario en la casilla \"Responder al Email\" de abajo."
1471
+
1472
+ #: ../ui/panels/emailer.php:56
1473
+ msgid "Reply To Email"
1474
+ msgstr "Responder al Email"
1475
+
1476
+ #: ../ui/panels/emailer.php:59
1477
+ msgid ""
1478
+ "The email address of the person filling in the form. This will allow the "
1479
+ "email to be replied directly to the sender."
1480
+ msgstr ""
1481
+ "La dirección email de la persona rellenado en el formulario. Esto permitirá "
1482
+ "al email ser respondido directamente al remitente."
1483
+
1484
+ #: ../ui/panels/emailer.php:64
1485
+ msgid "Email Type"
1486
+ msgstr "Tipo de Email"
1487
+
1488
+ #: ../ui/panels/emailer.php:73
1489
+ msgid "CSV Include"
1490
+ msgstr "Incluir CSV"
1491
+
1492
+ #: ../ui/panels/emailer.php:75
1493
+ msgid "Attach a CSV version of the submission"
1494
+ msgstr "Adjuntar una versión CSV de los datos enviados"
1495
+
1496
+ #: ../ui/panels/emailer.php:81
1497
+ msgid "Recipients"
1498
+ msgstr "Destinatarios"
1499
+
1500
+ #: ../ui/panels/emailer.php:84 ../ui/panels/emailer.php:92
1501
+ msgid "Comma separated list of email addresses."
1502
+ msgstr "Lista de direcciones email separadas por coma."
1503
+
1504
+ #: ../ui/panels/emailer.php:89
1505
+ msgid "BCC"
1506
+ msgstr "CCO"
1507
+
1508
+ #: ../ui/panels/emailer.php:100
1509
+ msgid "Use %field_slug% to use a value from the form"
1510
+ msgstr "Usa %slug_del_campo% para referirte a un campo del formulario"
1511
+
1512
+ #: ../ui/panels/emailer.php:104
1513
+ msgid "Email Message"
1514
+ msgstr "Mensaje del Email"
1515
+
1516
+ #: ../ui/panels/emailer.php:107
1517
+ msgid ""
1518
+ "Magic tags, %field_slug% are replaced with submitted data. Use {summary} to "
1519
+ "build an automatic mail based on form content. Leaving the mailer blank, "
1520
+ "will create and automatic summary."
1521
+ msgstr ""
1522
+ "Etiquetas mágicas, %slug_del_campo% será reemplazado con la información "
1523
+ "introducida en el formulario. Usa {summary} para construir automáticamente "
1524
+ "una versión completa de todo el contenido introducido. Si dejas el correo en "
1525
+ "blanco, se creará un sumario automáticamente."
1526
+
1527
+ #: ../ui/panels/emailer.php:113
1528
+ msgid "Debug Mailer"
1529
+ msgstr "Depurar Envío de Correo"
1530
+
1531
+ #: ../ui/panels/emailer.php:115
1532
+ msgid "Enable email send transation log"
1533
+ msgstr "Activar log de envío de email"
1534
+
1535
+ #: ../ui/panels/emailer.php:116
1536
+ msgid ""
1537
+ "If set, entries will have a \"Mailer Debug\" meta tab to see the transaction "
1538
+ "log. Do not keep this enabled on production as it sends two emails for "
1539
+ "tracking."
1540
+ msgstr ""
1541
+ "Si está activo, las entradas tendrán una pestaña meta llamada \"Depurador de "
1542
+ "Correo\" para ver el log de la transacción. No lo mantengas activado en "
1543
+ "producción ya que esto envía dos emails de seguimiento."
1544
+
1545
+ #: ../ui/panels/emailer.php:125
1546
+ msgid ""
1547
+ "Please add a \"Button\" element and set it to \"Submit\" if you want to have "
1548
+ "the form submittable."
1549
+ msgstr ""
1550
+ "Por favor añade un elemento \"Botón\" y configúralo como \"Enviar\" si "
1551
+ "quieres que el formulario se pueda enviar."
1552
+
1553
+ #: ../ui/panels/layout.php:13
1554
+ msgid "This will remove all the fields in this row. Are you sure?"
1555
+ msgstr "Esto eliminará todos los campos en esta fila. ¿Estás seguro?"
1556
+
1557
+ #: ../ui/panels/layout.php:14 ../ui/panels/layout.php:18
1558
+ #: ../ui/panels/layout.php:22 ../ui/panels/layout.php:108
1559
+ #: ../ui/panels/layout_add_row.php:4 ../ui/panels/pages.php:14
1560
+ msgid "Page"
1561
+ msgstr "Página"
1562
+
1563
+ #: ../ui/panels/layout_add_row.php:1
1564
+ msgid "Add Row"
1565
+ msgstr "Añadir Fila"
1566
+
1567
+ #: ../ui/panels/layout_add_row.php:11
1568
+ msgid "Add Page"
1569
+ msgstr "Añadir Página"
1570
+
1571
+ #: ../ui/panels/layout_add_row.php:12
1572
+ msgid "Drag onto the form grid below"
1573
+ msgstr "Arrastrar dentro de los módulos de abajo"
1574
+
1575
+ #: ../ui/panels/layout_add_row.php:15
1576
+ msgid "Add Element"
1577
+ msgstr "Añadir Elemento"
1578
+
1579
+ #: ../ui/panels/pages.php:2
1580
+ msgid "Progress Bar"
1581
+ msgstr "Barra de progreso"
1582
+
1583
+ #: ../ui/panels/pages.php:4
1584
+ msgid "Show Breadcrumbs"
1585
+ msgstr "Mostrar Migas de Pan"
1586
+
1587
+ #: ../ui/panels/pages.php:5
1588
+ msgid "ProTip: Use an HTML element to build a custom progress per page"
1589
+ msgstr ""
1590
+ "Nota: Usa un elemento HTML para construir un progreso personalizado por cada "
1591
+ "página"
1592
+
1593
+ #: ../ui/panels/processors.php:22 ../ui/panels/processors.php:47
1594
+ #: ../ui/panels/processors.php:100
1595
+ msgid "New Form Processor"
1596
+ msgstr "Nuevo Procesador de Formulario"
1597
+
1598
+ #: ../ui/panels/processors.php:103
1599
+ msgid "Processor Type"
1600
+ msgstr "Tipo de procesador"
1601
+
1602
+ #: ../ui/panels/processors.php:117
1603
+ msgid "Are you sure you want to remove this processor?"
1604
+ msgstr "¿Estás seguro de querer eliminar este procesador?"
1605
+
1606
+ #: ../ui/panels/processors.php:117
1607
+ msgid "Remove Processor"
1608
+ msgstr "Eliminar Procesador"
1609
+
1610
+ #: ../ui/panels/processors.php:123
1611
+ msgid "Use"
1612
+ msgstr "Usar"
1613
+
1614
+ #: ../ui/panels/processors.php:124
1615
+ msgid "Don't Use"
1616
+ msgstr "No usar"
1617
+
1618
+ #: ../ui/panels/processors.php:171
1619
+ msgid "Add Processor"
1620
+ msgstr "Añadir Procesador"
1621
+
1622
+ #: ../ui/panels/processors.php:221
1623
+ msgid "Use Processor"
1624
+ msgstr "Usar Procesador"
1625
+
1626
+ #: ../ui/panels/processors.php:226
1627
+ msgid "by"
1628
+ msgstr "por"
1629
+
1630
+ #: ../ui/panels/processors.php:284
1631
+ msgid "This processor has no configurable options."
1632
+ msgstr "Este procesador no tiene opciones configurables."
1633
+
1634
+ #: ../ui/panels/variable_add.php:1
1635
+ msgid "Add Variable"
1636
+ msgstr "Añadir variable"
1637
+
1638
+ #: ../ui/panels/variables.php:14
1639
+ msgid "Behaviour"
1640
+ msgstr "Comportamiento"
1641
+
1642
+ #: ../ui/panels/variables.php:16
1643
+ msgid "No variables defined"
1644
+ msgstr "No hay variables definidas"
1645
+
1646
+ #: ../ui/panels/variables.php:29 ../ui/panels/variables.php:49
1647
+ msgid "Static"
1648
+ msgstr "Estático"
1649
+
1650
+ #: ../ui/panels/variables.php:30 ../ui/panels/variables.php:50
1651
+ msgid "Passback"
1652
+ msgstr "Transferencias"
1653
+
1654
+ #: ../ui/panels/variables.php:31 ../ui/panels/variables.php:51
1655
+ msgid "Entry List"
1656
+ msgstr "Lista de Entradas"
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Desertsnowman, Shelob9
3
  Tags: forms, formbuilder, form builder, contact form, contact, custom form, custom forms, forms creator, caldera forms
4
  Requires at least: 3.9
5
  Tested up to: 4.2.2
6
- Stable tag: 1.2.1
7
  License: GPLv2
8
 
9
  Create beautiful, responsive forms with a simple drag and drop editor.
@@ -100,6 +100,21 @@ none yet.
100
 
101
  == Changelog ==
102
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  = 1.2.1 ( June, 2015) =
104
 
105
  = Bugs Fixed =
3
  Tags: forms, formbuilder, form builder, contact form, contact, custom form, custom forms, forms creator, caldera forms
4
  Requires at least: 3.9
5
  Tested up to: 4.2.2
6
+ Stable tag: 1.2.2
7
  License: GPLv2
8
 
9
  Create beautiful, responsive forms with a simple drag and drop editor.
100
 
101
  == Changelog ==
102
 
103
+ = 1.2.2 ( June, 2015) =
104
+
105
+ = Bugs Fixed =
106
+ * Fixed widget bug where forms in widget disapeared
107
+ * Fixed conditional logic where multiple forms on a page broke conditions
108
+ * Fixed a bug that stopped forms from saving if visual editor was disabled in profile
109
+ * A bunch of smaller bugs that was causing minor issues... again
110
+
111
+ = New Filters =
112
+ * caldera_forms_autopopulate_options_post_value_field
113
+ * caldera_forms_autopopulate_options_post_label_field
114
+ * caldera_forms_autopopulate_options_taxonomy_value_field
115
+ * caldera_forms_autopopulate_options_taxonomy_label_field
116
+
117
+
118
  = 1.2.1 ( June, 2015) =
119
 
120
  = Bugs Fixed =