Popup Maker – Popup Forms, Optins & More - Version 1.7.17

Version Description

Download this release

Release Info

Developer danieliser
Plugin Icon 128x128 Popup Maker – Popup Forms, Optins & More
Version 1.7.17
Comparing to
See all releases

Code changes from version 1.7.16 to 1.7.17

assets/js/admin-popup-editor.js CHANGED
@@ -744,6 +744,18 @@ var cookies;
744
  return trigger;
745
  },
746
  parseValues: function (values, type) {
 
 
 
 
 
 
 
 
 
 
 
 
747
  return values;
748
  },
749
  select_list: function () {
@@ -1022,6 +1034,7 @@ var cookies;
1022
  var $form = $(this),
1023
  type = $form.find('input#type').val(),
1024
  values = $form.pumSerializeObject(),
 
1025
  index = parseInt(values.index);
1026
 
1027
  event.preventDefault();
@@ -1033,12 +1046,12 @@ var cookies;
1033
  triggers.rows.add($editor, {
1034
  index: index,
1035
  type: type,
1036
- settings: values.trigger_settings
1037
  });
1038
 
1039
  PUM_Admin.modals.closeAll();
1040
 
1041
- if (values.trigger_settings.cookie_name !== undefined && values.trigger_settings.cookie_name !== null && (values.trigger_settings.cookie_name === 'add_new' || values.trigger_settings.cookie_name.indexOf('add_new') >= 0)) {
1042
  PUM_Admin.triggers.new_cookie = values.index;
1043
  $('#pum-popup-settings-container .pum-popup-cookie-editor button.pum-add-new').trigger('click');
1044
  }
@@ -1070,7 +1083,9 @@ var cookies;
1070
  var $form = $(this),
1071
  type = $form.find('input#type').val(),
1072
  index = $form.find('input#index').val(),
1073
- values = $form.pumSerializeObject();
 
 
1074
 
1075
  // Set Current Editor.
1076
  PUM_Admin.triggers.current_editor = $editor;
@@ -1084,12 +1099,12 @@ var cookies;
1084
  triggers.rows.add($editor, {
1085
  index: index,
1086
  type: type,
1087
- settings: values.trigger_settings
1088
  });
1089
 
1090
  PUM_Admin.modals.closeAll();
1091
 
1092
- if (values.trigger_settings.cookie_name !== undefined && values.trigger_settings.cookie_name !== null && (values.trigger_settings.cookie_name === 'add_new' || values.trigger_settings.cookie_name.indexOf('add_new') >= 0)) {
1093
  PUM_Admin.triggers.new_cookie = values.index;
1094
  $('#pum-popup-settings-container .pum-popup-cookie-editor button.pum-add-new').trigger('click');
1095
  }
@@ -1135,6 +1150,7 @@ var cookies;
1135
  var $form = $(this),
1136
  type = $form.find('input#type').val(),
1137
  values = $form.pumSerializeObject(),
 
1138
  index = parseInt(values.index);
1139
 
1140
  // Set Current Editor.
@@ -1149,12 +1165,12 @@ var cookies;
1149
  triggers.rows.add($editor, {
1150
  index: index,
1151
  type: type,
1152
- settings: values.trigger_settings
1153
  });
1154
 
1155
  PUM_Admin.modals.closeAll();
1156
 
1157
- if (values.trigger_settings.cookie_name !== undefined && values.trigger_settings.cookie_name !== null && (values.trigger_settings.cookie_name === 'add_new' || values.trigger_settings.cookie_name.indexOf('add_new') >= 0)) {
1158
  PUM_Admin.triggers.new_cookie = values.index;
1159
  $('#pum-popup-settings-container .pum-popup-cookie-editor button.pum-add-new').trigger('click');
1160
  }
@@ -1187,6 +1203,7 @@ var cookies;
1187
  values = pum_popup_settings_editor.current_values || {};
1188
 
1189
  if ($container.length) {
 
1190
  PUM_Admin.forms.render(args, values, $container);
1191
  }
1192
 
744
  return trigger;
745
  },
746
  parseValues: function (values, type) {
747
+ for (var key in values) {
748
+ if (!values.hasOwnProperty(key)) {
749
+ continue;
750
+ }
751
+
752
+ // Clean measurement fields.
753
+ if (values.hasOwnProperty(key + "_unit")) {
754
+ values[key] += values[key + "_unit"];
755
+ delete values[key + "_unit"];
756
+ }
757
+ }
758
+
759
  return values;
760
  },
761
  select_list: function () {
1034
  var $form = $(this),
1035
  type = $form.find('input#type').val(),
1036
  values = $form.pumSerializeObject(),
1037
+ trigger_settings = triggers.parseValues(values.trigger_settings || {}),
1038
  index = parseInt(values.index);
1039
 
1040
  event.preventDefault();
1046
  triggers.rows.add($editor, {
1047
  index: index,
1048
  type: type,
1049
+ settings: trigger_settings
1050
  });
1051
 
1052
  PUM_Admin.modals.closeAll();
1053
 
1054
+ if (trigger_settings.cookie_name !== undefined && trigger_settings.cookie_name !== null && (trigger_settings.cookie_name === 'add_new' || trigger_settings.cookie_name.indexOf('add_new') >= 0)) {
1055
  PUM_Admin.triggers.new_cookie = values.index;
1056
  $('#pum-popup-settings-container .pum-popup-cookie-editor button.pum-add-new').trigger('click');
1057
  }
1083
  var $form = $(this),
1084
  type = $form.find('input#type').val(),
1085
  index = $form.find('input#index').val(),
1086
+ values = $form.pumSerializeObject(),
1087
+ trigger_settings = triggers.parseValues(values.trigger_settings || {});
1088
+
1089
 
1090
  // Set Current Editor.
1091
  PUM_Admin.triggers.current_editor = $editor;
1099
  triggers.rows.add($editor, {
1100
  index: index,
1101
  type: type,
1102
+ settings: trigger_settings
1103
  });
1104
 
1105
  PUM_Admin.modals.closeAll();
1106
 
1107
+ if (trigger_settings.cookie_name !== undefined && trigger_settings.cookie_name !== null && (trigger_settings.cookie_name === 'add_new' || trigger_settings.cookie_name.indexOf('add_new') >= 0)) {
1108
  PUM_Admin.triggers.new_cookie = values.index;
1109
  $('#pum-popup-settings-container .pum-popup-cookie-editor button.pum-add-new').trigger('click');
1110
  }
1150
  var $form = $(this),
1151
  type = $form.find('input#type').val(),
1152
  values = $form.pumSerializeObject(),
1153
+ trigger_settings = triggers.parseValues(values.trigger_settings || {}),
1154
  index = parseInt(values.index);
1155
 
1156
  // Set Current Editor.
1165
  triggers.rows.add($editor, {
1166
  index: index,
1167
  type: type,
1168
+ settings: trigger_settings
1169
  });
1170
 
1171
  PUM_Admin.modals.closeAll();
1172
 
1173
+ if (trigger_settings.cookie_name !== undefined && trigger_settings.cookie_name !== null && (trigger_settings.cookie_name === 'add_new' || trigger_settings.cookie_name.indexOf('add_new') >= 0)) {
1174
  PUM_Admin.triggers.new_cookie = values.index;
1175
  $('#pum-popup-settings-container .pum-popup-cookie-editor button.pum-add-new').trigger('click');
1176
  }
1203
  values = pum_popup_settings_editor.current_values || {};
1204
 
1205
  if ($container.length) {
1206
+ $container.find('.pum-no-js').hide();
1207
  PUM_Admin.forms.render(args, values, $container);
1208
  }
1209
 
assets/js/admin-popup-editor.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,t,i){"use strict";e(t).on("click","#popup_reset_open_count",function(){var t=e(this);t.is(":checked")&&!confirm(pum_admin_vars.I10n.confirm_count_reset)&&t.prop("checked",!1)})}(jQuery,document),function(e){"use strict";var t={get_conditions:function(){return window.pum_popup_settings_editor.conditions_selectlist},not_operand_checkbox:function(i){return i=i||e(".pum-not-operand"),i.each(function(){var i=e(this),n=i.find("input");n.prop("checked",!n.is(":checked")),t.toggle_not_operand(i)})},toggle_not_operand:function(t){return t=t||e(".pum-not-operand"),t.each(function(){var t=e(this),i=t.find("input"),n=t.parents(".facet-target");i.is(":checked")?n.addClass("not-operand-checked"):n.removeClass("not-operand-checked")})},template:{editor:function(t){var i=e.extend(!0,{},{groups:[]},t);return i.groups=PUM_Admin.utils.object_to_array(i.groups),PUM_Admin.templates.render("pum-condition-editor",i)},group:function(t){var i,n=e.extend(!0,{},{index:"",facets:[]},t);for(n.facets=PUM_Admin.utils.object_to_array(n.facets),i=0;n.facets.length>i;i++)n.facets[i].index=i,n.facets[i].group=n.index;return PUM_Admin.templates.render("pum-condition-group",n)},facet:function(t){var i=e.extend(!0,{},{group:"",index:"",target:"",not_operand:!1,settings:{}},t);return PUM_Admin.templates.render("pum-condition-facet",i)},settings:function(t,i){var n=[],r=e.extend(!0,{},{index:"",group:"",target:null,fields:[]},t);return r.fields.length||void 0===pum_popup_settings_editor.conditions[t.target]||(r.fields=pum_popup_settings_editor.conditions[t.target].fields),void 0===i&&(i={}),_.each(r.fields,function(e,t){e=PUM_Admin.models.field(e),"object"!=typeof e.meta&&(e.meta={}),void 0!==i[t]&&(e.value=i[t]),e.name="popup_settings[conditions]["+r.group+"]["+r.index+"][settings]["+t+"]",""===e.id&&(e.id="popup_settings_conditions_"+r.group+"_"+r.index+"_settings_"+t),n.push(PUM_Admin.templates.field(e))}),PUM_Admin.templates.section({fields:n})},selectbox:function(i){var n=e.extend(!0,{},{id:null,name:null,type:"select",group:"",index:"",value:null,select2:!0,classes:[],options:t.get_conditions()},i);return null===n.id&&(n.id="popup_settings_conditions_"+n.group+"_"+n.index+"_target"),null===n.name&&(n.name="popup_settings[conditions]["+n.group+"]["+n.index+"][target]"),PUM_Admin.templates.field(n)}},groups:{add:function(i,n,r){var o=e(i),s={index:o.find(".facet-group-wrap").length,facets:[{target:n||null,not_operand:r||!1,settings:{}}]};o.find(".facet-groups").append(t.template.group(s)),o.addClass("has-conditions")},remove:function(i){var n=i.parents(".facet-builder");i.prev(".facet-group-wrap").find(".and .add-facet").removeClass("disabled"),i.remove(),t.renumber(),0===n.find(".facet-group-wrap").length&&(n.removeClass("has-conditions"),e("#pum-first-condition").val(null).trigger("change"))}},facets:{add:function(e,i,n){var r={group:e.data("index"),index:e.find(".facet").length,target:i||null,not_operand:n||!1,settings:{}};e.find(".facet-list").append(t.template.facet(r))},remove:function(e){var i=e.parents(".facet-group-wrap");e.remove(),0===i.find(".facet").length?t.groups.remove(i):t.renumber()}},renumber:function(){e(".facet-builder .facet-group-wrap").each(function(){var t=e(this),i=t.parent().children().index(t);t.data("index",i).find(".facet").each(function(){var t=e(this),n=t.parent().children().index(t);t.data("index",n).find("[name]").each(function(){this.name=this.name.replace(/popup_settings\[conditions\]\[\d*?\]\[\d*?\]/,"popup_settings[conditions]["+i+"]["+n+"]"),this.id=this.id.replace(/popup_settings_conditions_\d*?_\d*?_/,"popup_settings_conditions_"+i+"_"+n+"_")})})})}};window.PUM_Admin=window.PUM_Admin||{},window.PUM_Admin.conditions=t,e(document).on("pum_init",function(){t.renumber(),t.toggle_not_operand()}).on("select2:select pumselect2:select","#pum-first-condition",function(i){var n=e(this),r=n.parents(".facet-builder").eq(0),o=n.val(),s=r.find("#pum-first-facet-operand"),d=s.is(":checked");t.groups.add(r,o,d),n.val(null).trigger("change"),s.prop("checked",!1).parents(".facet-target").removeClass("not-operand-checked"),e(document).trigger("pum_init")}).on("click",".facet-builder .pum-not-operand",function(){t.not_operand_checkbox(e(this))}).on("change",".facet-builder .facet-target select",function(i){var n=e(this),r=n.parents(".facet"),o=n.val(),s={target:o};""!==o&&o!==r.data("target")&&(r.data("target",o).find(".facet-settings").html(t.template.settings(s)),e(document).trigger("pum_init"))}).on("click",".facet-builder .facet-group-wrap:last-child .and .add-facet",function(){t.groups.add(e(this).parents(".facet-builder").eq(0)),e(document).trigger("pum_init")}).on("click",".facet-builder .add-or .add-facet:not(.disabled)",function(){t.facets.add(e(this).parents(".facet-group-wrap").eq(0)),e(document).trigger("pum_init")}).on("click",".facet-builder .remove-facet",function(){t.facets.remove(e(this).parents(".facet").eq(0)),e(document).trigger("pum_init")})}(jQuery);var cookies;!function(e,t,i){"use strict";var n,r=pum_admin_vars.I10n,o={get_cookies:function(){return window.pum_popup_settings_editor.cookies},get_cookie:function(e){var t=this.get_cookies(),i="undefined"!==t[e]&&t[e];return!!i&&(i&&"object"==typeof i&&"object"==typeof i.fields&&Object.keys(i.fields).length&&(i=this.parseFields(i)),i)},parseFields:function(e){return _.each(e.fields,function(t,i){_.each(t,function(t,n){e.fields[i][n].name="cookie_settings["+n+"]",""===e.fields[i][n].id&&(e.fields[i][n].id="cookie_settings_"+n)})}),e},parseValues:function(e,t){return e},select_list:function(){var e,t=PUM_Admin.utils.object_to_array(o.get_cookies()),i={};for(e=0;e<t.length;e++)i[t[e].id]=t[e].name;return i},getLabel:function(e){var t=o.get_cookie(e);return!!t&&t.name},getSettingsDesc:function(e,t){var i=o.get_cookie(e);return!!i&&PUM_Admin.templates.renderInline(i.settings_column,t)},refreshDescriptions:function(){e(".pum-popup-cookie-editor table.list-table tbody tr").each(function(){var t=e(this),i=t.find(".popup_cookies_field_event").val(),n=JSON.parse(t.find(".popup_cookies_field_settings:first").val());t.find("td.settings-column").html(o.getSettingsDesc(i,n))})},insertCookie:function(t,i){i=e.extend(!0,{},{event:"on_popup_close",settings:{name:name||"pum-"+e("#post_ID").val()}},i),o.rows.add(t,i)},template:{form:function(t,i,n){var s=o.get_cookie(t),d="pum_cookie_settings",a=Object.keys(s.fields)[0];i=i||{},i.event=t,i.index=i.index>=0?i.index:null,s.fields[a]=e.extend(!0,s.fields[a],{index:{type:"hidden",name:"index"},event:{type:"hidden",name:"event"}}),"string"==typeof i.key&&""!==i.key||delete s.fields.advanced.key,PUM_Admin.modals.reload("#"+d,PUM_Admin.templates.modal({id:d,title:s.modal_title||s.name,classes:"tabbed-content",save_button:null!==i.index?r.update:r.add,content:PUM_Admin.forms.render({id:"pum_cookie_settings_form",tabs:s.tabs||{},fields:s.fields||{}},i||{})})),e("#"+d+" form").on("submit",n||function(e){e.preventDefault(),PUM_Admin.modals.closeAll()})},editor:function(t){var i=e.extend(!0,{},{cookies:[],name:""},t);return i.cookies=PUM_Admin.utils.object_to_array(i.cookies),PUM_Admin.templates.render("pum-cookie-editor",i)},row:function(t){var i=e.extend(!0,{},{index:"",event:"",name:"",settings:{name:"",key:"",session:!1,time:"30 days",path:!0}},t);return PUM_Admin.templates.render("pum-cookie-row",i)},selectbox:function(t){var i=e.extend(!0,{},{id:null,name:null,type:"select",group:"",index:"",value:null,select2:!0,classes:[],options:o.select_list()},t);return null===i.id&&(i.id="popup_settings_cookies_"+i.index+"_event"),null===i.name&&(i.name="popup_settings[cookies]["+i.index+"][event]"),PUM_Admin.templates.field(i)}},rows:{add:function(t,i){var n=e(t),r={index:null!==i.index&&i.index>=0?i.index:n.find("table.list-table tbody tr").length,event:i.event,name:n.data("field_name"),settings:i.settings||{}},s=n.find("tbody tr").eq(r.index),d=PUM_Admin.templates.render("pum-cookie-row",r);s.length?s.replaceWith(d):n.find("tbody").append(d),n.addClass("has-list-items"),o.rows.renumber(),o.refreshDescriptions()},remove:function(t){var i=t.parents(".pum-popup-cookie-editor");t.remove(),o.rows.renumber(),0===i.find("table.list-table tbody tr").length&&(i.removeClass("has-list-items"),e("#pum-first-cookie").val(null).trigger("change"))},renumber:function(){e(".pum-popup-cookie-editor table.list-table tbody tr").each(function(){var t=e(this),i=t.parent().children().index(t);t.attr("data-index",i).data("index",i),t.find(":input, [name]").each(function(){this.name&&""!==this.name&&(this.name=this.name.replace(/\[\d*?\]/,"["+i+"]"))})})}}};window.PUM_Admin=window.PUM_Admin||{},window.PUM_Admin.cookies=o,e(t).on("pum_init",function(){o.refreshDescriptions()}).on("select2:select pumselect2:select","#pum-first-cookie",function(){var t=e(this),i=t.parents(".pum-popup-cookie-editor"),n=t.val(),r={indes:i.find("table.list-table tbody tr").length,name:"pum-"+e("#post_ID").val()};t.val(null).trigger("change"),o.template.form(n,r,function(t){var n=e(this),r=n.find("input#event").val(),s=n.find("input#index").val(),d=n.pumSerializeObject();t.preventDefault(),(!s||s<0)&&(s=i.find("tbody tr").length),o.rows.add(i,{index:s,event:r,settings:d.cookie_settings}),PUM_Admin.modals.closeAll()})}).on("click",".pum-popup-cookie-editor .pum-add-new",function(){n=e(this).parents(".pum-popup-cookie-editor");var t=wp.template("pum-cookie-add-event");PUM_Admin.modals.reload("#pum_cookie_add_event_modal",t({I10n:r}))}).on("click",".pum-popup-cookie-editor .edit",function(t){var i=e(this),n=i.parents(".pum-popup-cookie-editor"),r=i.parents("tr:first"),s=r.find(".popup_cookies_field_event").val(),d=_.extend({},JSON.parse(r.find(".popup_cookies_field_settings:first").val()),{index:r.parent().children().index(r),event:s});t.preventDefault(),o.template.form(s,d,function(t){var i=e(this),r=i.find("input#event").val(),s=i.find("input#index").val(),d=i.pumSerializeObject();t.preventDefault(),(s===!1||s<0)&&(s=n.find("tbody tr").length),o.rows.add(n,{index:s,event:r,settings:d.cookie_settings}),PUM_Admin.modals.closeAll()})}).on("click",".pum-popup-cookie-editor .remove",function(t){var i=e(this),n=i.parents("tr:first");t.preventDefault(),window.confirm(r.confirm_delete_cookie)&&o.rows.remove(n)}).on("click",".pum-field-cookie_key button.reset",function(t){var i=e(this),n=(new Date).getTime().toString(16);i.siblings('input[type="text"]:first').val(n)}).on("submit","#pum_cookie_add_event_modal .pum-form",function(t){var i=n,r=e("#popup_cookie_add_event").val(),s={index:i.find("table.list-table tbody tr").length,name:"pum-"+e("#post_ID").val(),path:"1"};t.preventDefault(),o.template.form(r,s,function(t){var n=e(this),r=n.find("input#event").val(),s=n.find("input#index").val(),d=n.pumSerializeObject();if(t.preventDefault(),(s===!1||s<0)&&(s=i.find("tbody tr").length),o.rows.add(i,{index:s,event:r,settings:d.cookie_settings}),PUM_Admin.modals.closeAll(),"undefined"!=typeof PUM_Admin.triggers&&PUM_Admin.triggers.new_cookie!==!1&&PUM_Admin.triggers.new_cookie>=0){var a=PUM_Admin.triggers.current_editor.find("tbody tr").eq(PUM_Admin.triggers.new_cookie).find(".popup_triggers_field_settings:first"),p=JSON.parse(a.val());"string"==typeof p.cookie_name?p.cookie_name=p.cookie_name.replace("add_new",d.cookie_settings.name):(p.cookie_name[p.cookie_name.indexOf("add_new")]=d.cookie_settings.name,p.cookie_name=p.cookie_name.filter(function(e,t,i){return!(e in this)&&(this[e]=!0)},{})),a.val(JSON.stringify(p)),PUM_Admin.triggers.new_cookie=!1,PUM_Admin.triggers.refreshDescriptions()}})})}(jQuery,document),function(e,t,i){"use strict";var n=pum_admin_vars.I10n,r={current_editor:null,new_cookie:!1,get_triggers:function(){return window.pum_popup_settings_editor.triggers},get_trigger:function(e){var t=this.get_triggers(),i="undefined"!==t[e]&&t[e];return!!i&&(i&&"object"==typeof i&&"object"==typeof i.fields&&Object.keys(i.fields).length&&(i=this.parseFields(i)),i)},parseFields:function(e){return _.each(e.fields,function(t,i){_.each(t,function(t,n){e.fields[i][n].name="trigger_settings["+n+"]",""===e.fields[i][n].id&&(e.fields[i][n].id="trigger_settings_"+n)})}),e},parseValues:function(e,t){return e},select_list:function(){var e,t=PUM_Admin.utils.object_to_array(r.get_triggers()),i={};for(e=0;e<t.length;e++)i[t[e].id]=t[e].name;return i},rows:{add:function(t,i){var n=e(t),o={index:null!==i.index&&i.index>=0?i.index:n.find("table.list-table tbody tr").length,type:i.type,name:n.data("field_name"),settings:i.settings||{}},s=n.find("tbody tr").eq(o.index),d=PUM_Admin.templates.render("pum-trigger-row",o);s.length?s.replaceWith(d):n.find("tbody").append(d),n.addClass("has-list-items"),r.renumber(),r.refreshDescriptions()},remove:function(t){var i=t.parents(".pum-popup-trigger-editor");t.remove(),r.renumber(),0===i.find("table.list-table tbody tr").length&&(i.removeClass("has-list-items"),e("#pum-first-trigger").val(null).trigger("change"))}},template:{form:function(t,i,o){var s=r.get_trigger(t),d="pum_trigger_settings",a=Object.keys(s.fields)[0],p=e(".pum-field-cookies .list-table tbody tr");i=i||{},i.type=t,i.index=i.index>=0?i.index:null,s.fields[a]=e.extend(!0,s.fields[a],{index:{type:"hidden",name:"index"},type:{type:"hidden",name:"type"}}),p.each(function(){var t=JSON.parse(e(this).find(".popup_cookies_field_settings:first").val());"undefined"==typeof s.fields[a].cookie_name.options[t.name]&&(s.fields[a].cookie_name.options[t.name]=t.name)}),PUM_Admin.modals.reload("#"+d,PUM_Admin.templates.modal({id:d,title:s.modal_title||s.name,classes:"tabbed-content",save_button:null!==i.index?n.update:n.add,content:PUM_Admin.forms.render({id:"pum_trigger_settings_form",tabs:s.tabs||{},fields:s.fields||{}},i||{})})),e("#"+d+" form").on("submit",o||function(e){e.preventDefault(),PUM_Admin.modals.closeAll()})},editor:function(t){var i=e.extend(!0,{},{triggers:[],name:""},t);return i.triggers=PUM_Admin.utils.object_to_array(i.triggers),PUM_Admin.templates.render("pum-trigger-editor",i)},row:function(t){var i=e.extend(!0,{},{index:"",type:"",name:"",settings:{cookie_name:""}},t);return PUM_Admin.templates.render("pum-trigger-row",i)},selectbox:function(t){var i=e.extend(!0,{},{id:null,name:null,type:"select",group:"",index:"",value:null,select2:!0,classes:[],options:r.select_list()},t);return null===i.id&&(i.id="popup_settings_triggers_"+i.index+"_type"),null===i.name&&(i.name="popup_settings[triggers]["+i.index+"][type]"),PUM_Admin.templates.field(i)}},getLabel:function(e){var t=r.get_trigger(e);return!!t&&t.name},getSettingsDesc:function(e,t){var i=r.get_trigger(e);return!!i&&PUM_Admin.templates.renderInline(i.settings_column,t)},renumber:function(){e(".pum-popup-trigger-editor table.list-table tbody tr").each(function(){var t=e(this),i=t.parent().children().index(t);t.attr("data-index",i).data("index",i),t.find(":input, [name]").each(function(){this.name&&""!==this.name&&(this.name=this.name.replace(/\[\d*?\]/,"["+i+"]"))})})},refreshDescriptions:function(){e(".pum-popup-trigger-editor table.list-table tbody tr").each(function(){var t=e(this),i=t.find(".popup_triggers_field_type").val(),n=JSON.parse(t.find(".popup_triggers_field_settings:first").val()),r=PUM_Admin.triggers.cookie_column_value(n.cookie_name);t.find("td.settings-column").html(PUM_Admin.triggers.getSettingsDesc(i,n)),t.find("td.cookie-column code").text(r)})},cookie_column_value:function(e){var t=n.no_cookie;return e instanceof Array?t=e.join(", "):null!==e&&e!==i&&""!==e&&(t=e),t},append_click_selector_presets:function(){var t,i,n=e("#extra_selectors");n.length&&!n.hasClass("pum-click-selector-presets-initialized")&&(t=PUM_Admin.templates.render("pum-click-selector-presets"),i=n.parents(".pum-field").find(".pum-click-selector-presets"),i.length||(n.before(t),n.addClass("pum-click-selector-presets-initialized"),i=n.parents(".pum-field").find(".pum-click-selector-presets")),i.position({my:"right center",at:"right center",of:n}))},toggle_click_selector_presets:function(){e(this).parent().toggleClass("open")},reset_click_selector_presets:function(t){t!==i&&e(t.target).parents(".pum-click-selector-presets").length||e(".pum-click-selector-presets").removeClass("open")},insert_click_selector_preset:function(){var t=e(this),i=e("#extra_selectors"),n=i.val();""!==n&&(n+=", "),i.val(n+t.data("preset")),PUM_Admin.triggers.reset_click_selector_presets()}};window.PUM_Admin=window.PUM_Admin||{},window.PUM_Admin.triggers=r,e(t).on("pum_init",function(){PUM_Admin.triggers.append_click_selector_presets(),PUM_Admin.triggers.refreshDescriptions()}).on("click",".pum-click-selector-presets > span",PUM_Admin.triggers.toggle_click_selector_presets).on("click",".pum-click-selector-presets li",PUM_Admin.triggers.insert_click_selector_preset).on("click",PUM_Admin.triggers.reset_click_selector_presets).on("select2:select pumselect2:select","#pum-first-trigger",function(){var t=e(this),n=t.parents(".pum-popup-trigger-editor"),o=t.val(),s={};PUM_Admin.triggers.current_editor=n,"click_open"!==o&&(s.cookie_name="pum-"+e("#post_ID").val()),r.template.form(o,s,function(t){var o=e(this),s=o.find("input#type").val(),d=o.pumSerializeObject(),a=parseInt(d.index);t.preventDefault(),(a===!1||a<0)&&(a=n.find("tbody tr").length),r.rows.add(n,{index:a,type:s,settings:d.trigger_settings}),PUM_Admin.modals.closeAll(),d.trigger_settings.cookie_name!==i&&null!==d.trigger_settings.cookie_name&&("add_new"===d.trigger_settings.cookie_name||d.trigger_settings.cookie_name.indexOf("add_new")>=0)&&(PUM_Admin.triggers.new_cookie=d.index,e("#pum-popup-settings-container .pum-popup-cookie-editor button.pum-add-new").trigger("click"))}),t.val(null).trigger("change")}).on("click",".pum-popup-trigger-editor .pum-add-new",function(){PUM_Admin.triggers.current_editor=e(this).parents(".pum-popup-trigger-editor");var t=wp.template("pum-trigger-add-type");PUM_Admin.modals.reload("#pum_trigger_add_type_modal",t({I10n:n}))}).on("click",".pum-popup-trigger-editor .edit",function(t){var n=e(this),o=n.parents(".pum-popup-trigger-editor"),s=n.parents("tr:first"),d=s.find(".popup_triggers_field_type").val(),a=_.extend({},JSON.parse(s.find(".popup_triggers_field_settings:first").val()),{index:s.parent().children().index(s),type:d});t.preventDefault(),r.template.form(d,a,function(t){var n=e(this),s=n.find("input#type").val(),d=n.find("input#index").val(),a=n.pumSerializeObject();PUM_Admin.triggers.current_editor=o,t.preventDefault(),(d===!1||d<0)&&(d=o.find("tbody tr").length),r.rows.add(o,{index:d,type:s,settings:a.trigger_settings}),PUM_Admin.modals.closeAll(),a.trigger_settings.cookie_name!==i&&null!==a.trigger_settings.cookie_name&&("add_new"===a.trigger_settings.cookie_name||a.trigger_settings.cookie_name.indexOf("add_new")>=0)&&(PUM_Admin.triggers.new_cookie=a.index,e("#pum-popup-settings-container .pum-popup-cookie-editor button.pum-add-new").trigger("click"))})}).on("click",".pum-popup-trigger-editor .remove",function(t){var i=e(this),o=i.parents(".pum-popup-trigger-editor"),s=i.parents("tr:first");PUM_Admin.triggers.current_editor=o,t.preventDefault(),window.confirm(n.confirm_delete_trigger)&&r.rows.remove(s)}).on("submit","#pum_trigger_add_type_modal .pum-form",function(t){var n=PUM_Admin.triggers.current_editor,o=n.parents("#pum-popup-settings-triggers-subtabs_main").find(".pum-field-cookies .pum-popup-cookie-editor"),s=e("#popup_trigger_add_type").val(),d=e("#popup_trigger_add_cookie").is(":checked"),a=e("#popup_trigger_add_cookie_event").val(),p={};t.preventDefault(),d&&(p.cookie_name="pum-"+e("#post_ID").val(),PUM_Admin.cookies.insertCookie(o,{event:a,settings:{time:"1 month",path:"1",name:p.cookie_name}})),r.template.form(s,p,function(t){var o=e(this),s=o.find("input#type").val(),d=o.pumSerializeObject(),a=parseInt(d.index);PUM_Admin.triggers.current_editor=n,t.preventDefault(),(!a||a<0)&&(a=n.find("tbody tr").length),r.rows.add(n,{index:a,type:s,settings:d.trigger_settings}),PUM_Admin.modals.closeAll(),d.trigger_settings.cookie_name!==i&&null!==d.trigger_settings.cookie_name&&("add_new"===d.trigger_settings.cookie_name||d.trigger_settings.cookie_name.indexOf("add_new")>=0)&&(PUM_Admin.triggers.new_cookie=d.index,e("#pum-popup-settings-container .pum-popup-cookie-editor button.pum-add-new").trigger("click"))})})}(jQuery,document),function(e){"use strict";window.PUM_Admin=window.PUM_Admin||{},window.pum_popup_settings_editor=window.pum_popup_settings_editor||{form_args:{},current_values:{}},e(document).ready(function(){e(this).trigger("pum_init"),e("#title").prop("required",!0);var t=e("#pum-popup-settings-container"),i=pum_popup_settings_editor.form_args||{},n=pum_popup_settings_editor.current_values||{};t.length&&PUM_Admin.forms.render(i,n,t),e("a.page-title-action").clone().attr("target","_blank").attr("href",pum_admin_vars.homeurl+"?popup_preview=true&popup="+e("#post_ID").val()).text(pum_admin_vars.I10n.preview_popup).insertAfter("a.page-title-action"),e("#pum-first-condition, #pum-first-trigger, #pum-first-cookie").val(null).trigger("change")}).on("keydown","#popup-title",function(t){var i=t.keyCode||t.which;9===i&&(t.preventDefault(),e("#title").focus())}).on("keydown","#title, #popup-title",function(t){var i,n=t.keyCode||t.which;t.shiftKey||9!==n||(t.preventDefault(),i="title"===e(this).attr("id")?"#popup-title":"#insert-media-button",e(i).focus())}).on("keydown","#popup-title, #insert-media-button",function(t){var i,n=t.keyCode||t.which;t.shiftKey&&9===n&&(t.preventDefault(),i="popup-title"===e(this).attr("id")?"#title":"#popup-title",e(i).focus())})}(jQuery);
1
+ !function(e,t,n){"use strict";e(t).on("click","#popup_reset_open_count",function(){var t=e(this);t.is(":checked")&&!confirm(pum_admin_vars.I10n.confirm_count_reset)&&t.prop("checked",!1)})}(jQuery,document),function(e){"use strict";var t={get_conditions:function(){return window.pum_popup_settings_editor.conditions_selectlist},not_operand_checkbox:function(n){return n=n||e(".pum-not-operand"),n.each(function(){var n=e(this),i=n.find("input");i.prop("checked",!i.is(":checked")),t.toggle_not_operand(n)})},toggle_not_operand:function(t){return t=t||e(".pum-not-operand"),t.each(function(){var t=e(this),n=t.find("input"),i=t.parents(".facet-target");n.is(":checked")?i.addClass("not-operand-checked"):i.removeClass("not-operand-checked")})},template:{editor:function(t){var n=e.extend(!0,{},{groups:[]},t);return n.groups=PUM_Admin.utils.object_to_array(n.groups),PUM_Admin.templates.render("pum-condition-editor",n)},group:function(t){var n,i=e.extend(!0,{},{index:"",facets:[]},t);for(i.facets=PUM_Admin.utils.object_to_array(i.facets),n=0;i.facets.length>n;n++)i.facets[n].index=n,i.facets[n].group=i.index;return PUM_Admin.templates.render("pum-condition-group",i)},facet:function(t){var n=e.extend(!0,{},{group:"",index:"",target:"",not_operand:!1,settings:{}},t);return PUM_Admin.templates.render("pum-condition-facet",n)},settings:function(t,n){var i=[],o=e.extend(!0,{},{index:"",group:"",target:null,fields:[]},t);return o.fields.length||void 0===pum_popup_settings_editor.conditions[t.target]||(o.fields=pum_popup_settings_editor.conditions[t.target].fields),void 0===n&&(n={}),_.each(o.fields,function(e,t){e=PUM_Admin.models.field(e),"object"!=typeof e.meta&&(e.meta={}),void 0!==n[t]&&(e.value=n[t]),e.name="popup_settings[conditions]["+o.group+"]["+o.index+"][settings]["+t+"]",""===e.id&&(e.id="popup_settings_conditions_"+o.group+"_"+o.index+"_settings_"+t),i.push(PUM_Admin.templates.field(e))}),PUM_Admin.templates.section({fields:i})},selectbox:function(n){var i=e.extend(!0,{},{id:null,name:null,type:"select",group:"",index:"",value:null,select2:!0,classes:[],options:t.get_conditions()},n);return null===i.id&&(i.id="popup_settings_conditions_"+i.group+"_"+i.index+"_target"),null===i.name&&(i.name="popup_settings[conditions]["+i.group+"]["+i.index+"][target]"),PUM_Admin.templates.field(i)}},groups:{add:function(n,i,o){var r=e(n),s={index:r.find(".facet-group-wrap").length,facets:[{target:i||null,not_operand:o||!1,settings:{}}]};r.find(".facet-groups").append(t.template.group(s)),r.addClass("has-conditions")},remove:function(n){var i=n.parents(".facet-builder");n.prev(".facet-group-wrap").find(".and .add-facet").removeClass("disabled"),n.remove(),t.renumber(),0===i.find(".facet-group-wrap").length&&(i.removeClass("has-conditions"),e("#pum-first-condition").val(null).trigger("change"))}},facets:{add:function(e,n,i){var o={group:e.data("index"),index:e.find(".facet").length,target:n||null,not_operand:i||!1,settings:{}};e.find(".facet-list").append(t.template.facet(o))},remove:function(e){var n=e.parents(".facet-group-wrap");e.remove(),0===n.find(".facet").length?t.groups.remove(n):t.renumber()}},renumber:function(){e(".facet-builder .facet-group-wrap").each(function(){var t=e(this),n=t.parent().children().index(t);t.data("index",n).find(".facet").each(function(){var t=e(this),i=t.parent().children().index(t);t.data("index",i).find("[name]").each(function(){this.name=this.name.replace(/popup_settings\[conditions\]\[\d*?\]\[\d*?\]/,"popup_settings[conditions]["+n+"]["+i+"]"),this.id=this.id.replace(/popup_settings_conditions_\d*?_\d*?_/,"popup_settings_conditions_"+n+"_"+i+"_")})})})}};window.PUM_Admin=window.PUM_Admin||{},window.PUM_Admin.conditions=t,e(document).on("pum_init",function(){t.renumber(),t.toggle_not_operand()}).on("select2:select pumselect2:select","#pum-first-condition",function(n){var i=e(this),o=i.parents(".facet-builder").eq(0),r=i.val(),s=o.find("#pum-first-facet-operand"),d=s.is(":checked");t.groups.add(o,r,d),i.val(null).trigger("change"),s.prop("checked",!1).parents(".facet-target").removeClass("not-operand-checked"),e(document).trigger("pum_init")}).on("click",".facet-builder .pum-not-operand",function(){t.not_operand_checkbox(e(this))}).on("change",".facet-builder .facet-target select",function(n){var i=e(this),o=i.parents(".facet"),r=i.val(),s={target:r};""!==r&&r!==o.data("target")&&(o.data("target",r).find(".facet-settings").html(t.template.settings(s)),e(document).trigger("pum_init"))}).on("click",".facet-builder .facet-group-wrap:last-child .and .add-facet",function(){t.groups.add(e(this).parents(".facet-builder").eq(0)),e(document).trigger("pum_init")}).on("click",".facet-builder .add-or .add-facet:not(.disabled)",function(){t.facets.add(e(this).parents(".facet-group-wrap").eq(0)),e(document).trigger("pum_init")}).on("click",".facet-builder .remove-facet",function(){t.facets.remove(e(this).parents(".facet").eq(0)),e(document).trigger("pum_init")})}(jQuery);var cookies;!function(e,t,n){"use strict";var i,o=pum_admin_vars.I10n,r={get_cookies:function(){return window.pum_popup_settings_editor.cookies},get_cookie:function(e){var t=this.get_cookies(),n="undefined"!==t[e]&&t[e];return!!n&&(n&&"object"==typeof n&&"object"==typeof n.fields&&Object.keys(n.fields).length&&(n=this.parseFields(n)),n)},parseFields:function(e){return _.each(e.fields,function(t,n){_.each(t,function(t,i){e.fields[n][i].name="cookie_settings["+i+"]",""===e.fields[n][i].id&&(e.fields[n][i].id="cookie_settings_"+i)})}),e},parseValues:function(e,t){return e},select_list:function(){var e,t=PUM_Admin.utils.object_to_array(r.get_cookies()),n={};for(e=0;e<t.length;e++)n[t[e].id]=t[e].name;return n},getLabel:function(e){var t=r.get_cookie(e);return!!t&&t.name},getSettingsDesc:function(e,t){var n=r.get_cookie(e);return!!n&&PUM_Admin.templates.renderInline(n.settings_column,t)},refreshDescriptions:function(){e(".pum-popup-cookie-editor table.list-table tbody tr").each(function(){var t=e(this),n=t.find(".popup_cookies_field_event").val(),i=JSON.parse(t.find(".popup_cookies_field_settings:first").val());t.find("td.settings-column").html(r.getSettingsDesc(n,i))})},insertCookie:function(t,n){n=e.extend(!0,{},{event:"on_popup_close",settings:{name:name||"pum-"+e("#post_ID").val()}},n),r.rows.add(t,n)},template:{form:function(t,n,i){var s=r.get_cookie(t),d="pum_cookie_settings",a=Object.keys(s.fields)[0];n=n||{},n.event=t,n.index=n.index>=0?n.index:null,s.fields[a]=e.extend(!0,s.fields[a],{index:{type:"hidden",name:"index"},event:{type:"hidden",name:"event"}}),"string"==typeof n.key&&""!==n.key||delete s.fields.advanced.key,PUM_Admin.modals.reload("#"+d,PUM_Admin.templates.modal({id:d,title:s.modal_title||s.name,classes:"tabbed-content",save_button:null!==n.index?o.update:o.add,content:PUM_Admin.forms.render({id:"pum_cookie_settings_form",tabs:s.tabs||{},fields:s.fields||{}},n||{})})),e("#"+d+" form").on("submit",i||function(e){e.preventDefault(),PUM_Admin.modals.closeAll()})},editor:function(t){var n=e.extend(!0,{},{cookies:[],name:""},t);return n.cookies=PUM_Admin.utils.object_to_array(n.cookies),PUM_Admin.templates.render("pum-cookie-editor",n)},row:function(t){var n=e.extend(!0,{},{index:"",event:"",name:"",settings:{name:"",key:"",session:!1,time:"30 days",path:!0}},t);return PUM_Admin.templates.render("pum-cookie-row",n)},selectbox:function(t){var n=e.extend(!0,{},{id:null,name:null,type:"select",group:"",index:"",value:null,select2:!0,classes:[],options:r.select_list()},t);return null===n.id&&(n.id="popup_settings_cookies_"+n.index+"_event"),null===n.name&&(n.name="popup_settings[cookies]["+n.index+"][event]"),PUM_Admin.templates.field(n)}},rows:{add:function(t,n){var i=e(t),o={index:null!==n.index&&n.index>=0?n.index:i.find("table.list-table tbody tr").length,event:n.event,name:i.data("field_name"),settings:n.settings||{}},s=i.find("tbody tr").eq(o.index),d=PUM_Admin.templates.render("pum-cookie-row",o);s.length?s.replaceWith(d):i.find("tbody").append(d),i.addClass("has-list-items"),r.rows.renumber(),r.refreshDescriptions()},remove:function(t){var n=t.parents(".pum-popup-cookie-editor");t.remove(),r.rows.renumber(),0===n.find("table.list-table tbody tr").length&&(n.removeClass("has-list-items"),e("#pum-first-cookie").val(null).trigger("change"))},renumber:function(){e(".pum-popup-cookie-editor table.list-table tbody tr").each(function(){var t=e(this),n=t.parent().children().index(t);t.attr("data-index",n).data("index",n),t.find(":input, [name]").each(function(){this.name&&""!==this.name&&(this.name=this.name.replace(/\[\d*?\]/,"["+n+"]"))})})}}};window.PUM_Admin=window.PUM_Admin||{},window.PUM_Admin.cookies=r,e(t).on("pum_init",function(){r.refreshDescriptions()}).on("select2:select pumselect2:select","#pum-first-cookie",function(){var t=e(this),n=t.parents(".pum-popup-cookie-editor"),i=t.val(),o={indes:n.find("table.list-table tbody tr").length,name:"pum-"+e("#post_ID").val()};t.val(null).trigger("change"),r.template.form(i,o,function(t){var i=e(this),o=i.find("input#event").val(),s=i.find("input#index").val(),d=i.pumSerializeObject();t.preventDefault(),(!s||s<0)&&(s=n.find("tbody tr").length),r.rows.add(n,{index:s,event:o,settings:d.cookie_settings}),PUM_Admin.modals.closeAll()})}).on("click",".pum-popup-cookie-editor .pum-add-new",function(){i=e(this).parents(".pum-popup-cookie-editor");var t=wp.template("pum-cookie-add-event");PUM_Admin.modals.reload("#pum_cookie_add_event_modal",t({I10n:o}))}).on("click",".pum-popup-cookie-editor .edit",function(t){var n=e(this),i=n.parents(".pum-popup-cookie-editor"),o=n.parents("tr:first"),s=o.find(".popup_cookies_field_event").val(),d=_.extend({},JSON.parse(o.find(".popup_cookies_field_settings:first").val()),{index:o.parent().children().index(o),event:s});t.preventDefault(),r.template.form(s,d,function(t){var n=e(this),o=n.find("input#event").val(),s=n.find("input#index").val(),d=n.pumSerializeObject();t.preventDefault(),(s===!1||s<0)&&(s=i.find("tbody tr").length),r.rows.add(i,{index:s,event:o,settings:d.cookie_settings}),PUM_Admin.modals.closeAll()})}).on("click",".pum-popup-cookie-editor .remove",function(t){var n=e(this),i=n.parents("tr:first");t.preventDefault(),window.confirm(o.confirm_delete_cookie)&&r.rows.remove(i)}).on("click",".pum-field-cookie_key button.reset",function(t){var n=e(this),i=(new Date).getTime().toString(16);n.siblings('input[type="text"]:first').val(i)}).on("submit","#pum_cookie_add_event_modal .pum-form",function(t){var n=i,o=e("#popup_cookie_add_event").val(),s={index:n.find("table.list-table tbody tr").length,name:"pum-"+e("#post_ID").val(),path:"1"};t.preventDefault(),r.template.form(o,s,function(t){var i=e(this),o=i.find("input#event").val(),s=i.find("input#index").val(),d=i.pumSerializeObject();if(t.preventDefault(),(s===!1||s<0)&&(s=n.find("tbody tr").length),r.rows.add(n,{index:s,event:o,settings:d.cookie_settings}),PUM_Admin.modals.closeAll(),"undefined"!=typeof PUM_Admin.triggers&&PUM_Admin.triggers.new_cookie!==!1&&PUM_Admin.triggers.new_cookie>=0){var a=PUM_Admin.triggers.current_editor.find("tbody tr").eq(PUM_Admin.triggers.new_cookie).find(".popup_triggers_field_settings:first"),p=JSON.parse(a.val());"string"==typeof p.cookie_name?p.cookie_name=p.cookie_name.replace("add_new",d.cookie_settings.name):(p.cookie_name[p.cookie_name.indexOf("add_new")]=d.cookie_settings.name,p.cookie_name=p.cookie_name.filter(function(e,t,n){return!(e in this)&&(this[e]=!0)},{})),a.val(JSON.stringify(p)),PUM_Admin.triggers.new_cookie=!1,PUM_Admin.triggers.refreshDescriptions()}})})}(jQuery,document),function(e,t,n){"use strict";var i=pum_admin_vars.I10n,o={current_editor:null,new_cookie:!1,get_triggers:function(){return window.pum_popup_settings_editor.triggers},get_trigger:function(e){var t=this.get_triggers(),n="undefined"!==t[e]&&t[e];return!!n&&(n&&"object"==typeof n&&"object"==typeof n.fields&&Object.keys(n.fields).length&&(n=this.parseFields(n)),n)},parseFields:function(e){return _.each(e.fields,function(t,n){_.each(t,function(t,i){e.fields[n][i].name="trigger_settings["+i+"]",""===e.fields[n][i].id&&(e.fields[n][i].id="trigger_settings_"+i)})}),e},parseValues:function(e,t){for(var n in e)e.hasOwnProperty(n)&&e.hasOwnProperty(n+"_unit")&&(e[n]+=e[n+"_unit"],delete e[n+"_unit"]);return e},select_list:function(){var e,t=PUM_Admin.utils.object_to_array(o.get_triggers()),n={};for(e=0;e<t.length;e++)n[t[e].id]=t[e].name;return n},rows:{add:function(t,n){var i=e(t),r={index:null!==n.index&&n.index>=0?n.index:i.find("table.list-table tbody tr").length,type:n.type,name:i.data("field_name"),settings:n.settings||{}},s=i.find("tbody tr").eq(r.index),d=PUM_Admin.templates.render("pum-trigger-row",r);s.length?s.replaceWith(d):i.find("tbody").append(d),i.addClass("has-list-items"),o.renumber(),o.refreshDescriptions()},remove:function(t){var n=t.parents(".pum-popup-trigger-editor");t.remove(),o.renumber(),0===n.find("table.list-table tbody tr").length&&(n.removeClass("has-list-items"),e("#pum-first-trigger").val(null).trigger("change"))}},template:{form:function(t,n,r){var s=o.get_trigger(t),d="pum_trigger_settings",a=Object.keys(s.fields)[0],p=e(".pum-field-cookies .list-table tbody tr");n=n||{},n.type=t,n.index=n.index>=0?n.index:null,s.fields[a]=e.extend(!0,s.fields[a],{index:{type:"hidden",name:"index"},type:{type:"hidden",name:"type"}}),p.each(function(){var t=JSON.parse(e(this).find(".popup_cookies_field_settings:first").val());"undefined"==typeof s.fields[a].cookie_name.options[t.name]&&(s.fields[a].cookie_name.options[t.name]=t.name)}),PUM_Admin.modals.reload("#"+d,PUM_Admin.templates.modal({id:d,title:s.modal_title||s.name,classes:"tabbed-content",save_button:null!==n.index?i.update:i.add,content:PUM_Admin.forms.render({id:"pum_trigger_settings_form",tabs:s.tabs||{},fields:s.fields||{}},n||{})})),e("#"+d+" form").on("submit",r||function(e){e.preventDefault(),PUM_Admin.modals.closeAll()})},editor:function(t){var n=e.extend(!0,{},{triggers:[],name:""},t);return n.triggers=PUM_Admin.utils.object_to_array(n.triggers),PUM_Admin.templates.render("pum-trigger-editor",n)},row:function(t){var n=e.extend(!0,{},{index:"",type:"",name:"",settings:{cookie_name:""}},t);return PUM_Admin.templates.render("pum-trigger-row",n)},selectbox:function(t){var n=e.extend(!0,{},{id:null,name:null,type:"select",group:"",index:"",value:null,select2:!0,classes:[],options:o.select_list()},t);return null===n.id&&(n.id="popup_settings_triggers_"+n.index+"_type"),null===n.name&&(n.name="popup_settings[triggers]["+n.index+"][type]"),PUM_Admin.templates.field(n)}},getLabel:function(e){var t=o.get_trigger(e);return!!t&&t.name},getSettingsDesc:function(e,t){var n=o.get_trigger(e);return!!n&&PUM_Admin.templates.renderInline(n.settings_column,t)},renumber:function(){e(".pum-popup-trigger-editor table.list-table tbody tr").each(function(){var t=e(this),n=t.parent().children().index(t);t.attr("data-index",n).data("index",n),t.find(":input, [name]").each(function(){this.name&&""!==this.name&&(this.name=this.name.replace(/\[\d*?\]/,"["+n+"]"))})})},refreshDescriptions:function(){e(".pum-popup-trigger-editor table.list-table tbody tr").each(function(){var t=e(this),n=t.find(".popup_triggers_field_type").val(),i=JSON.parse(t.find(".popup_triggers_field_settings:first").val()),o=PUM_Admin.triggers.cookie_column_value(i.cookie_name);t.find("td.settings-column").html(PUM_Admin.triggers.getSettingsDesc(n,i)),t.find("td.cookie-column code").text(o)})},cookie_column_value:function(e){var t=i.no_cookie;return e instanceof Array?t=e.join(", "):null!==e&&e!==n&&""!==e&&(t=e),t},append_click_selector_presets:function(){var t,n,i=e("#extra_selectors");i.length&&!i.hasClass("pum-click-selector-presets-initialized")&&(t=PUM_Admin.templates.render("pum-click-selector-presets"),n=i.parents(".pum-field").find(".pum-click-selector-presets"),n.length||(i.before(t),i.addClass("pum-click-selector-presets-initialized"),n=i.parents(".pum-field").find(".pum-click-selector-presets")),n.position({my:"right center",at:"right center",of:i}))},toggle_click_selector_presets:function(){e(this).parent().toggleClass("open")},reset_click_selector_presets:function(t){t!==n&&e(t.target).parents(".pum-click-selector-presets").length||e(".pum-click-selector-presets").removeClass("open")},insert_click_selector_preset:function(){var t=e(this),n=e("#extra_selectors"),i=n.val();""!==i&&(i+=", "),n.val(i+t.data("preset")),PUM_Admin.triggers.reset_click_selector_presets()}};window.PUM_Admin=window.PUM_Admin||{},window.PUM_Admin.triggers=o,e(t).on("pum_init",function(){PUM_Admin.triggers.append_click_selector_presets(),PUM_Admin.triggers.refreshDescriptions()}).on("click",".pum-click-selector-presets > span",PUM_Admin.triggers.toggle_click_selector_presets).on("click",".pum-click-selector-presets li",PUM_Admin.triggers.insert_click_selector_preset).on("click",PUM_Admin.triggers.reset_click_selector_presets).on("select2:select pumselect2:select","#pum-first-trigger",function(){var t=e(this),i=t.parents(".pum-popup-trigger-editor"),r=t.val(),s={};PUM_Admin.triggers.current_editor=i,"click_open"!==r&&(s.cookie_name="pum-"+e("#post_ID").val()),o.template.form(r,s,function(t){var r=e(this),s=r.find("input#type").val(),d=r.pumSerializeObject(),a=o.parseValues(d.trigger_settings||{}),p=parseInt(d.index);t.preventDefault(),(p===!1||p<0)&&(p=i.find("tbody tr").length),o.rows.add(i,{index:p,type:s,settings:a}),PUM_Admin.modals.closeAll(),a.cookie_name!==n&&null!==a.cookie_name&&("add_new"===a.cookie_name||a.cookie_name.indexOf("add_new")>=0)&&(PUM_Admin.triggers.new_cookie=d.index,e("#pum-popup-settings-container .pum-popup-cookie-editor button.pum-add-new").trigger("click"))}),t.val(null).trigger("change")}).on("click",".pum-popup-trigger-editor .pum-add-new",function(){PUM_Admin.triggers.current_editor=e(this).parents(".pum-popup-trigger-editor");var t=wp.template("pum-trigger-add-type");PUM_Admin.modals.reload("#pum_trigger_add_type_modal",t({I10n:i}))}).on("click",".pum-popup-trigger-editor .edit",function(t){var i=e(this),r=i.parents(".pum-popup-trigger-editor"),s=i.parents("tr:first"),d=s.find(".popup_triggers_field_type").val(),a=_.extend({},JSON.parse(s.find(".popup_triggers_field_settings:first").val()),{index:s.parent().children().index(s),type:d});t.preventDefault(),o.template.form(d,a,function(t){var i=e(this),s=i.find("input#type").val(),d=i.find("input#index").val(),a=i.pumSerializeObject(),p=o.parseValues(a.trigger_settings||{});PUM_Admin.triggers.current_editor=r,t.preventDefault(),(d===!1||d<0)&&(d=r.find("tbody tr").length),o.rows.add(r,{index:d,type:s,settings:p}),PUM_Admin.modals.closeAll(),p.cookie_name!==n&&null!==p.cookie_name&&("add_new"===p.cookie_name||p.cookie_name.indexOf("add_new")>=0)&&(PUM_Admin.triggers.new_cookie=a.index,e("#pum-popup-settings-container .pum-popup-cookie-editor button.pum-add-new").trigger("click"))})}).on("click",".pum-popup-trigger-editor .remove",function(t){var n=e(this),r=n.parents(".pum-popup-trigger-editor"),s=n.parents("tr:first");PUM_Admin.triggers.current_editor=r,t.preventDefault(),window.confirm(i.confirm_delete_trigger)&&o.rows.remove(s)}).on("submit","#pum_trigger_add_type_modal .pum-form",function(t){var i=PUM_Admin.triggers.current_editor,r=i.parents("#pum-popup-settings-triggers-subtabs_main").find(".pum-field-cookies .pum-popup-cookie-editor"),s=e("#popup_trigger_add_type").val(),d=e("#popup_trigger_add_cookie").is(":checked"),a=e("#popup_trigger_add_cookie_event").val(),p={};t.preventDefault(),d&&(p.cookie_name="pum-"+e("#post_ID").val(),PUM_Admin.cookies.insertCookie(r,{event:a,settings:{time:"1 month",path:"1",name:p.cookie_name}})),o.template.form(s,p,function(t){var r=e(this),s=r.find("input#type").val(),d=r.pumSerializeObject(),a=o.parseValues(d.trigger_settings||{}),p=parseInt(d.index);PUM_Admin.triggers.current_editor=i,t.preventDefault(),(!p||p<0)&&(p=i.find("tbody tr").length),o.rows.add(i,{index:p,type:s,settings:a}),PUM_Admin.modals.closeAll(),a.cookie_name!==n&&null!==a.cookie_name&&("add_new"===a.cookie_name||a.cookie_name.indexOf("add_new")>=0)&&(PUM_Admin.triggers.new_cookie=d.index,e("#pum-popup-settings-container .pum-popup-cookie-editor button.pum-add-new").trigger("click"))})})}(jQuery,document),function(e){"use strict";window.PUM_Admin=window.PUM_Admin||{},window.pum_popup_settings_editor=window.pum_popup_settings_editor||{form_args:{},current_values:{}},e(document).ready(function(){e(this).trigger("pum_init"),e("#title").prop("required",!0);var t=e("#pum-popup-settings-container"),n=pum_popup_settings_editor.form_args||{},i=pum_popup_settings_editor.current_values||{};t.length&&(t.find(".pum-no-js").hide(),PUM_Admin.forms.render(n,i,t)),e("a.page-title-action").clone().attr("target","_blank").attr("href",pum_admin_vars.homeurl+"?popup_preview=true&popup="+e("#post_ID").val()).text(pum_admin_vars.I10n.preview_popup).insertAfter("a.page-title-action"),e("#pum-first-condition, #pum-first-trigger, #pum-first-cookie").val(null).trigger("change")}).on("keydown","#popup-title",function(t){var n=t.keyCode||t.which;9===n&&(t.preventDefault(),e("#title").focus())}).on("keydown","#title, #popup-title",function(t){var n,i=t.keyCode||t.which;t.shiftKey||9!==i||(t.preventDefault(),n="title"===e(this).attr("id")?"#popup-title":"#insert-media-button",e(n).focus())}).on("keydown","#popup-title, #insert-media-button",function(t){var n,i=t.keyCode||t.which;t.shiftKey&&9===i&&(t.preventDefault(),n="popup-title"===e(this).attr("id")?"#title":"#popup-title",e(n).focus())})}(jQuery);
assets/js/admin-settings-page.js CHANGED
@@ -12,6 +12,7 @@
12
  values = pum_settings_editor.current_values || {};
13
 
14
  if ($container.length) {
 
15
  PUM_Admin.forms.render(args, values, $container);
16
  }
17
 
12
  values = pum_settings_editor.current_values || {};
13
 
14
  if ($container.length) {
15
+ $container.find('.pum-no-js').hide();
16
  PUM_Admin.forms.render(args, values, $container);
17
  }
18
 
assets/js/admin-settings-page.min.js CHANGED
@@ -1 +1 @@
1
- !function(n){"use strict";window.PUM_Admin=window.PUM_Admin||{},n(document).ready(function(){var t=n("#pum-settings-container"),e=pum_settings_editor.form_args||{},i=pum_settings_editor.current_values||{};t.length&&PUM_Admin.forms.render(e,i,t)})}(jQuery);
1
+ !function(n){"use strict";window.PUM_Admin=window.PUM_Admin||{},n(document).ready(function(){var e=n("#pum-settings-container"),i=pum_settings_editor.form_args||{},t=pum_settings_editor.current_values||{};e.length&&(e.find(".pum-no-js").hide(),PUM_Admin.forms.render(i,t,e))})}(jQuery);
assets/js/site.js CHANGED
@@ -2593,8 +2593,6 @@ var pum_debug_mode = false,
2593
  var gFormSettings = {},
2594
  pumNFController = false;
2595
 
2596
- debugger;
2597
-
2598
  function initialize_nf_support() {
2599
  /** Ninja Forms Support */
2600
  if (typeof Marionette !== 'undefined' && typeof nfRadio !== 'undefined') {
@@ -3352,6 +3350,7 @@ var pum_debug_mode = false,
3352
  $('.pum').on('pumInit', function () {
3353
  var $popup = PUM.getPopup(this),
3354
  popupID = PUM.getSetting($popup, 'id'),
 
3355
  $forms = $popup.find('form');
3356
 
3357
  /**
2593
  var gFormSettings = {},
2594
  pumNFController = false;
2595
 
 
 
2596
  function initialize_nf_support() {
2597
  /** Ninja Forms Support */
2598
  if (typeof Marionette !== 'undefined' && typeof nfRadio !== 'undefined') {
3350
  $('.pum').on('pumInit', function () {
3351
  var $popup = PUM.getPopup(this),
3352
  popupID = PUM.getSetting($popup, 'id'),
3353
+ enableFormReopen
3354
  $forms = $popup.find('form');
3355
 
3356
  /**
assets/js/site.min.js CHANGED
@@ -1,2 +1,2 @@
1
  !function(e){"use strict";void 0===e.fn.on&&(e.fn.on=function(e,o,t){return this.delegate(o,e,t)}),void 0===e.fn.off&&(e.fn.off=function(e,o,t){return this.undelegate(o,e,t)}),void 0===e.fn.bindFirst&&(e.fn.bindFirst=function(o,t){var n,i,s=e(this);s.unbind(o,t),s.bind(o,t),n=e._data(s[0]).events,i=n[o],i.unshift(i.pop()),n[o]=i}),void 0===e.fn.outerHtml&&(e.fn.outerHtml=function(){var o=e(this).clone(),t=e("<div/>").append(o);return t.html()}),void 0===Date.now&&(Date.now=function(){return(new Date).getTime()})}(jQuery);var PUM;!function(e,o,t){"use strict";function n(e){return!isNaN(e)&&parseInt(Number(e))===parseInt(e)&&!isNaN(parseInt(e,10))}function i(){var e={},o=function(o,n,i){"boolean"==typeof n&&(i=n,n=!1);var s=n?n.selector+" "+o:o;return(t===e[s]||i)&&(e[s]=n?n.find(o):jQuery(o)),e[s]};return o.elementCache=e,o}function s(e,o){function t(e,o,t){return o?e[o.slice(0,t?-1:o.length)]:e}function n(e,o){return o?o.split("[").reduce(t,e):e}return o.split(".").reduce(n,e)}PUM={get:new i,getPopup:function(o){var t;return t=n(o)?PUM.get("#pum-"+o):"current"===o?PUM.get(".pum-overlay.pum-active:eq(0)",!0):"open"===o?PUM.get(".pum-overlay.pum-active",!0):"closed"===o?PUM.get(".pum-overlay:not(.pum-active)",!0):o instanceof jQuery?o:e(o),t.hasClass("pum-overlay")?t:t.hasClass("popmake")?t.parents(".pum-overlay"):t.parents(".pum-overlay").length?t.parents(".pum-overlay"):e()},open:function(e,o){PUM.getPopup(e).popmake("open",o)},close:function(e,o){PUM.getPopup(e).popmake("close",o)},preventOpen:function(e){PUM.getPopup(e).addClass("preventOpen")},getSettings:function(e){var o=PUM.getPopup(e);return o.popmake("getSettings")},getSetting:function(e,o,n){var i=PUM.getSettings(e),p=s(i,o);return"undefined"!=typeof p?p:n!==t?n:null},checkConditions:function(e){return PUM.getPopup(e).popmake("checkConditions")},getCookie:function(o){return e.pm_cookie(o)},setCookie:function(e,o){var t=PUM.getPopup(e);t.popmake("setCookie",jQuery.extend({name:"pum-"+PUM.getSetting(e,"id"),expires:"+30 days"},o))},clearCookie:function(o,t){e.pm_remove_cookie(o),"function"==typeof t&&t()},clearCookies:function(o,n){var i,s=PUM.getPopup(o),p=s.popmake("getSettings"),r=p.cookies;if(r!==t&&r.length)for(i=0;r.length>i;i+=1)e.pm_remove_cookie(r[i].settings.name);"function"==typeof n&&n()},getClickTriggerSelector:function(e,o){var t=PUM.getPopup(e),n=PUM.getSettings(e),i=[".popmake-"+n.id,".popmake-"+decodeURIComponent(n.slug),'a[href$="#popmake-'+n.id+'"]'];return o.extra_selectors&&""!==o.extra_selectors&&i.push(o.extra_selectors),i=pum.hooks.applyFilters("pum.trigger.click_open.selectors",i,o,t),i.join(", ")},disableClickTriggers:function(n,i){if(n!==t)if(i!==t){var s=PUM.getClickTriggerSelector(n,i);e(s).removeClass("pum-trigger"),e(o).off("click.pumTrigger click.popmakeOpen",s)}else{var p=PUM.getSetting(n,"triggers",[]);if(p.length)for(var r=0;p.length>r;r++)if(pum.hooks.applyFilters("pum.disableClickTriggers.clickTriggerTypes",["click_open"]).indexOf(p[r].type)!==-1){var s=PUM.getClickTriggerSelector(n,p[r].settings);e(s).removeClass("pum-trigger"),e(o).off("click.pumTrigger click.popmakeOpen",s)}}}},e.fn.popmake=function(t){return e.fn.popmake.methods[t]?(e(o).trigger("pumMethodCall",arguments),e.fn.popmake.methods[t].apply(this,Array.prototype.slice.call(arguments,1))):"object"!=typeof t&&t?void(window.console&&console.warn("Method "+t+" does not exist on $.fn.popmake")):e.fn.popmake.methods.init.apply(this,arguments)},e.fn.popmake.methods={init:function(){return this.each(function(){var o=PUM.getPopup(this),n=o.popmake("getSettings");return n.theme_id<=0&&(n.theme_id=pum_vars.default_theme),n.disable_reposition!==t&&n.disable_reposition||e(window).on("resize",function(){(o.hasClass("pum-active")||o.find(".popmake.active").length)&&e.fn.popmake.utilities.throttle(setTimeout(function(){o.popmake("reposition")},25),500,!1)}),o.find(".pum-container").data("popmake",n),o.data("popmake",n).trigger("pumInit"),this})},getOverlay:function(){return PUM.getPopup(this)},getContainer:function(){return PUM.getPopup(this).find(".pum-container")},getTitle:function(){return PUM.getPopup(this).find(".pum-title")||null},getContent:function(){return PUM.getPopup(this).find(".pum-content")||null},getClose:function(){return PUM.getPopup(this).find(".pum-content + .pum-close")||null},getSettings:function(){var o=PUM.getPopup(this);return e.extend(!0,{},e.fn.popmake.defaults,o.data("popmake")||{},pum_vars.popups[o.attr("id")]||{})},state:function(e){var o=PUM.getPopup(this);if(t!==e)switch(e){case"isOpen":return o.hasClass("pum-open")||o.popmake("getContainer").hasClass("active");case"isClosed":return!o.hasClass("pum-open")&&!o.popmake("getContainer").hasClass("active")}},open:function(o){var n=PUM.getPopup(this),i=n.popmake("getContainer"),s=n.popmake("getClose"),p=n.popmake("getSettings"),r=e("html");return n.trigger("pumBeforeOpen"),n.hasClass("preventOpen")||i.hasClass("preventOpen")?(console.log("prevented"),n.removeClass("preventOpen").removeClass("pum-active").trigger("pumOpenPrevented"),this):(p.stackable||n.popmake("close_all"),n.addClass("pum-active"),p.close_button_delay>0&&s.fadeOut(0),r.addClass("pum-open"),p.overlay_disabled?r.addClass("pum-open-overlay-disabled"):r.addClass("pum-open-overlay"),p.position_fixed?r.addClass("pum-open-fixed"):r.addClass("pum-open-scrollable"),n.popmake("setup_close").popmake("reposition").popmake("animate",p.animation_type,function(){p.close_button_delay>0&&setTimeout(function(){s.fadeIn()},p.close_button_delay),n.trigger("pumAfterOpen"),e.fn.popmake.last_open_popup=n,o!==t&&o()}),this)},setup_close:function(){var n=PUM.getPopup(this),i=n.popmake("getClose"),s=n.popmake("getSettings");return i=i.add(e(".popmake-close, .pum-close",n).not(i)),i.off("click.pum").on("click.pum",function(o){var i=e(this),s=i.hasClass("pum-do-default")||i.data("do-default")!==t&&i.data("do-default");s||o.preventDefault(),e.fn.popmake.last_close_trigger="Close Button",n.popmake("close")}),(s.close_on_esc_press||s.close_on_f4_press)&&e(window).off("keyup.popmake").on("keyup.popmake",function(o){27===o.keyCode&&s.close_on_esc_press&&(e.fn.popmake.last_close_trigger="ESC Key",n.popmake("close")),115===o.keyCode&&s.close_on_f4_press&&(e.fn.popmake.last_close_trigger="F4 Key",n.popmake("close"))}),s.close_on_overlay_click&&(n.on("pumAfterOpen",function(){e(o).on("click.pumCloseOverlay",function(o){var t=e(o.target),i=t.closest(".pum-container");i.length||(e.fn.popmake.last_close_trigger="Overlay Click",n.popmake("close"))})}),n.on("pumAfterClose",function(){e(o).off("click.pumCloseOverlay")})),n.trigger("pumSetupClose"),this},close:function(o){return this.each(function(){var n=PUM.getPopup(this),i=n.popmake("getContainer"),s=n.popmake("getClose");return s=s.add(e(".popmake-close, .pum-close",n).not(s)),n.trigger("pumBeforeClose"),n.hasClass("preventClose")||i.hasClass("preventClose")?(n.removeClass("preventClose").trigger("pumClosePrevented"),this):(i.fadeOut("fast",function(){n.is(":visible")&&n.fadeOut("fast"),e(window).off("keyup.popmake"),n.off("click.popmake"),s.off("click.popmake"),1===e(".pum-active").length&&e("html").removeClass("pum-open").removeClass("pum-open-scrollable").removeClass("pum-open-overlay").removeClass("pum-open-overlay-disabled").removeClass("pum-open-fixed"),n.removeClass("pum-active").trigger("pumAfterClose"),i.find("iframe").filter('[src*="youtube"],[src*="vimeo"]').each(function(){var o=e(this),t=o.attr("src"),n=t.replace("autoplay=1","1=1");n!==t&&(t=n),o.prop("src",t)}),i.find("video").each(function(){this.pause()}),o!==t&&o()}),this)})},close_all:function(){return e(".pum-active").popmake("close"),this},reposition:function(o){var t=PUM.getPopup(this).trigger("pumBeforeReposition"),n=t.popmake("getContainer"),i=t.popmake("getSettings"),s=i.location,p={my:"",at:"",of:window,collision:"none",using:"function"==typeof o?o:e.fn.popmake.callbacks.reposition_using},r={overlay:null,container:null},a=null;try{a=e(e.fn.popmake.last_open_trigger)}catch(u){a=e()}return i.position_from_trigger&&a.length?(p.of=a,s.indexOf("left")>=0&&(p.my+=" right",p.at+=" left"+(0!==i.position_left?"-"+i.position_left:"")),s.indexOf("right")>=0&&(p.my+=" left",p.at+=" right"+(0!==i.position_right?"+"+i.position_right:"")),s.indexOf("center")>=0&&(p.my="center"===s?"center":p.my+" center",p.at="center"===s?"center":p.at+" center"),s.indexOf("top")>=0&&(p.my+=" bottom",p.at+=" top"+(0!==i.position_top?"-"+i.position_top:"")),s.indexOf("bottom")>=0&&(p.my+=" top",p.at+=" bottom"+(0!==i.position_bottom?"+"+i.position_bottom:""))):(s.indexOf("left")>=0&&(p.my+=" left"+(0!==i.position_left?"+"+i.position_left:""),p.at+=" left"),s.indexOf("right")>=0&&(p.my+=" right"+(0!==i.position_right?"-"+i.position_right:""),p.at+=" right"),s.indexOf("center")>=0&&(p.my="center"===s?"center":p.my+" center",p.at="center"===s?"center":p.at+" center"),s.indexOf("top")>=0&&(p.my+=" top"+(0!==i.position_top?"+"+(e("body").hasClass("admin-bar")?parseInt(i.position_top,10)+32:i.position_top):""),p.at+=" top"),s.indexOf("bottom")>=0&&(p.my+=" bottom"+(0!==i.position_bottom?"-"+i.position_bottom:""),p.at+=" bottom")),p.my=e.trim(p.my),p.at=e.trim(p.at),t.is(":hidden")&&(r.overlay=t.css("opacity"),t.css({opacity:0}).show(0)),n.is(":hidden")&&(r.container=n.css("opacity"),n.css({opacity:0}).show(0)),i.position_fixed&&n.addClass("fixed"),"custom"===i.size?n.css({width:i.custom_width,height:i.custom_height_auto?"auto":i.custom_height}):"auto"!==i.size&&n.addClass("responsive").css({minWidth:""!==i.responsive_min_width?i.responsive_min_width:"auto",maxWidth:""!==i.responsive_max_width?i.responsive_max_width:"auto"}),t.trigger("pumAfterReposition"),n.addClass("custom-position").position(p).trigger("popmakeAfterReposition"),r.overlay&&t.css({opacity:r.overlay}).hide(0),r.container&&n.css({opacity:r.container}).hide(0),this},animation_origin:function(o){var t=PUM.getPopup(this),n=t.popmake("getContainer"),i={my:"",at:""};switch(o){case"top":i={my:"left+"+n.offset().left+" bottom-100",at:"left top"};break;case"bottom":i={my:"left+"+n.offset().left+" top+100",at:"left bottom"};break;case"left":i={my:"right top+"+n.offset().top,at:"left top"};break;case"right":i={my:"left top+"+n.offset().top,at:"right top"};break;default:o.indexOf("left")>=0&&(i={my:i.my+" right",at:i.at+" left"}),o.indexOf("right")>=0&&(i={my:i.my+" left",at:i.at+" right"}),o.indexOf("center")>=0&&(i={my:i.my+" center",at:i.at+" center"}),o.indexOf("top")>=0&&(i={my:i.my+" bottom-100",at:i.at+" top"}),o.indexOf("bottom")>=0&&(i={my:i.my+" top+100",at:i.at+" bottom"}),i.my=e.trim(i.my),i.at=e.trim(i.at)}return i.of=window,i.collision="none",i}}}(jQuery,document);var PUM_Accessibility;!function(e,o,t){"use strict";var n,i,s,p="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]";PUM_Accessibility={forceFocus:function(e){s&&s.length&&!s[0].contains(e.target)&&(e.stopPropagation(),PUM_Accessibility.setFocusToFirstItem())},trapTabKey:function(o){if(9===o.keyCode){var t=s.find(".pum-container *").filter(p).filter(":visible"),n=e(":focus"),i=t.length,r=t.index(n);o.shiftKey?0===r&&(t.get(i-1).focus(),o.preventDefault()):r===i-1&&(t.get(0).focus(),o.preventDefault())}},setFocusToFirstItem:function(){s.find(".pum-container *").filter(p).filter(":visible").filter(":not(.pum-close)").first().focus()}},e(o).on("pumInit",".pum",function(){PUM.getPopup(this).find("[tabindex]").each(function(){var o=e(this);o.data("tabindex",o.attr("tabindex")).prop("tabindex","0")})}).on("pumBeforeOpen",".pum",function(){var t=PUM.getPopup(this),p=e(":focus");t.has(p).length||(i=p),s=t.on("keydown.pum_accessibility",PUM_Accessibility.trapTabKey).attr("aria-hidden","false"),n=e("body > *").filter(":visible").not(s),n.attr("aria-hidden","true"),e(o).one("focusin.pum_accessibility",PUM_Accessibility.forceFocus),PUM_Accessibility.setFocusToFirstItem()}).on("pumAfterOpen",".pum",function(){}).on("pumBeforeClose",".pum",function(){}).on("pumAfterClose",".pum",function(){var p=PUM.getPopup(this);p.off("keydown.pum_accessibility").attr("aria-hidden","true"),n&&(n.attr("aria-hidden","false"),n=null),i!==t&&i.length&&i.focus(),s=null,e(o).off("focusin.pum_accessibility")}).on("pumSetupClose",".pum",function(){}).on("pumOpenPrevented",".pum",function(){}).on("pumClosePrevented",".pum",function(){}).on("pumBeforeReposition",".pum",function(){})}(jQuery,document);var PUM_Analytics;!function(e){"use strict";e.fn.popmake.last_open_trigger=null,e.fn.popmake.last_close_trigger=null,e.fn.popmake.conversion_trigger=null;var o=!("undefined"==typeof pum_vars.restapi||!pum_vars.restapi);PUM_Analytics={beacon:function(t,n){var i=new Image,s=o?pum_vars.restapi:pum_vars.ajaxurl,p={route:"/analytics/",data:e.extend({event:"open",pid:null,_cache:+new Date},t),callback:"function"==typeof n?n:function(){}};o?s+=p.route:p.data.action="pum_analytics",s&&(e(i).on("error success load done",p.callback),i.src=s+"?"+e.param(p.data))}},"undefined"!=typeof pum_vars.disable_tracking&&pum_vars.disable_tracking||e(document).on("pumAfterOpen.core_analytics","body > .pum",function(){var o=PUM.getPopup(this),t={pid:parseInt(o.popmake("getSettings").id,10)||null};t.pid>0&&!e("body").hasClass("single-popup")&&PUM_Analytics.beacon(t)})}(jQuery),function(e,o,t){"use strict";e.fn.popmake.methods.animate_overlay=function(o,t,n){var i=PUM.getPopup(this).popmake("getSettings");return i.overlay_disabled?e.fn.popmake.overlay_animations.none.apply(this,[t,n]):e.fn.popmake.overlay_animations[o]?e.fn.popmake.overlay_animations[o].apply(this,[t,n]):(window.console&&console.warn("Animation style "+o+" does not exist."),this)},e.fn.popmake.methods.animate=function(o){return e.fn.popmake.animations[o]?e.fn.popmake.animations[o].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Animation style "+o+" does not exist."),this)},e.fn.popmake.animations={none:function(e){var o=PUM.getPopup(this);return o.popmake("getContainer").show(0),o.popmake("animate_overlay","none",0,function(){e!==t&&e()}),this},slide:function(e){var o=PUM.getPopup(this).show(0).css({opacity:0}),n=o.popmake("getContainer").show(0).css({opacity:0}),i=o.popmake("getSettings"),s=i.animation_speed/2,p=o.popmake("animation_origin",i.animation_origin);return n.position(p).css({opacity:1}),o.css({opacity:1}).popmake("animate_overlay","fade",s,function(){n.popmake("reposition",function(o){n.animate(o,s,"swing",function(){e!==t&&e()})})}),this},fade:function(e){var o=PUM.getPopup(this),n=o.popmake("getContainer"),i=o.popmake("getSettings"),s=i.animation_speed/2;return n.show(0).css({opacity:0}),o.popmake("animate_overlay","fade",s,function(){n.animate({opacity:1},s,"swing",function(){e!==t&&e()})}),this},fadeAndSlide:function(e){var o=PUM.getPopup(this).show(0).css({opacity:0}),n=o.popmake("getContainer").show(0).css({opacity:0}),i=o.popmake("getSettings"),s=i.animation_speed/2,p=o.popmake("animation_origin",i.animation_origin);return n.position(p),o.hide().css({opacity:1}).popmake("animate_overlay","fade",s,function(){n.popmake("reposition",function(o){o.opacity=1,n.animate(o,s,"swing",function(){e!==t&&e()})})}),this},grow:function(o){return e.fn.popmake.animations.fade.apply(this,arguments)},growAndSlide:function(o){return e.fn.popmake.animations.fadeAndSlide.apply(this,arguments)}},e.fn.popmake.overlay_animations={none:function(e,o){PUM.getPopup(this).show(e,o)},fade:function(e,o){PUM.getPopup(this).fadeIn(e,o)},slide:function(e,o){PUM.getPopup(this).slideDown(e,o)}}}(jQuery,document),function(e,o,t){"use strict";e(o).on("pumInit",".pum",function(){e(this).popmake("getContainer").trigger("popmakeInit")}).on("pumBeforeOpen",".pum",function(){e(this).popmake("getContainer").addClass("active").trigger("popmakeBeforeOpen")}).on("pumAfterOpen",".pum",function(){e(this).popmake("getContainer").trigger("popmakeAfterOpen")}).on("pumBeforeClose",".pum",function(){e(this).popmake("getContainer").trigger("popmakeBeforeClose")}).on("pumAfterClose",".pum",function(){e(this).popmake("getContainer").removeClass("active").trigger("popmakeAfterClose")}).on("pumSetupClose",".pum",function(){e(this).popmake("getContainer").trigger("popmakeSetupClose")}).on("pumOpenPrevented",".pum",function(){e(this).popmake("getContainer").removeClass("preventOpen").removeClass("active")}).on("pumClosePrevented",".pum",function(){e(this).popmake("getContainer").removeClass("preventClose")}).on("pumBeforeReposition",".pum",function(){e(this).popmake("getContainer").trigger("popmakeBeforeReposition")})}(jQuery,document),function(e,o,t){"use strict";e.fn.popmake.callbacks={reposition_using:function(o){e(this).css(o)}}}(jQuery,document),function(e,o,t){"use strict";var n,i=function(){return n===t&&(n="undefined"!=typeof MobileDetect?new MobileDetect(window.navigator.userAgent):{phone:function(){return!1},tablet:function(){return!1}}),n};e.extend(e.fn.popmake.methods,{checkConditions:function(){var o,t,n,s,p,r=PUM.getPopup(this),a=r.popmake("getSettings"),u=!0;if(a.disable_on_mobile&&i().phone())return!1;if(a.disable_on_tablet&&i().tablet())return!1;if(a.conditions.length)for(t=0;a.conditions.length>t;t++){for(s=a.conditions[t],o=!1,n=0;s.length>n&&(p=e.extend({},{not_operand:!1},s[n]),!p.not_operand&&r.popmake("checkCondition",p)?o=!0:p.not_operand&&!r.popmake("checkCondition",p)&&(o=!0),e(this).trigger("pumCheckingCondition",[o,p]),!o);n++);o||(u=!1)}return u},checkCondition:function(o){var t=o.target||null;o.settings||o;return t?e.fn.popmake.conditions[t]?e.fn.popmake.conditions[t].apply(this,[o]):window.console?(console.warn("Condition "+t+" does not exist."),!0):void 0:(console.warn("Condition type not set."),!1)}}),e.fn.popmake.conditions={}}(jQuery,document);var pm_cookie,pm_cookie_json,pm_remove_cookie;!function(e){"use strict";function o(o){function t(n,i,s){var p,r=new Date;if("undefined"!=typeof document){if(arguments.length>1){switch(s=e.extend({path:pum_vars.home_url},t.defaults,s),typeof s.expires){case"number":r.setMilliseconds(r.getMilliseconds()+864e5*s.expires),s.expires=r;break;case"string":r.setTime(1e3*e.fn.popmake.utilities.strtotime("+"+s.expires)),s.expires=r}try{p=JSON.stringify(i),/^[\{\[]/.test(p)&&(i=p)}catch(a){}return i=o.write?o.write(i,n):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)),n=n.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),n=n.replace(/[\(\)]/g,escape),document.cookie=[n,"=",i,s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}n||(p={});for(var u=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,l=0;l<u.length;l++){var m=u[l].split("="),d=m.slice(1).join("=");'"'===d.charAt(0)&&(d=d.slice(1,-1));try{var f=m[0].replace(c,decodeURIComponent);if(d=o.read?o.read(d,f):o(d,f)||d.replace(c,decodeURIComponent),this.json)try{d=JSON.parse(d)}catch(a){}if(n===f){p=d;break}n||(p[f]=d)}catch(a){}}return p}}return void 0===o&&(o=function(){}),t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={},t.remove=function(o,n){t(o,"",e.extend({},n,{expires:-1,path:""})),t(o,"",e.extend({},n,{expires:-1}))},t.process=function(e,o,n,i){return arguments.length>3&&"object"!=typeof arguments[2]&&void 0!==o?t.apply(t,[e,o,{expires:n,path:i}]):t.apply(t,[].slice.call(arguments,[0,2]))},t.withConverter=e.fn.popmake.cookie,t}e.extend(e.fn.popmake,{cookie:o()}),pm_cookie=e.pm_cookie=e.fn.popmake.cookie.process,pm_cookie_json=e.pm_cookie_json=e.fn.popmake.cookie.getJSON,pm_remove_cookie=e.pm_remove_cookie=e.fn.popmake.cookie.remove}(jQuery),function(e,o,t){"use strict";e.extend(e.fn.popmake.methods,{addCookie:function(o){return pum.hooks.doAction("popmake.addCookie",arguments),e.fn.popmake.cookies[o]?e.fn.popmake.cookies[o].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Cookie type "+o+" does not exist."),this)},setCookie:function(o){e.pm_cookie(o.name,!0,o.session?null:o.time,o.path?pum_vars.home_url||"/":null),pum.hooks.doAction("popmake.setCookie",o)},checkCookies:function(o){var n,i=!1;if(o.cookie_name===t||null===o.cookie_name||""===o.cookie_name)return!1;switch(typeof o.cookie_name){case"object":case"array":for(n=0;o.cookie_name.length>n;n+=1)e.pm_cookie(o.cookie_name[n])!==t&&(i=!0);break;case"string":e.pm_cookie(o.cookie_name)!==t&&(i=!0)}return pum.hooks.doAction("popmake.checkCookies",o,i),i}}),e.fn.popmake.cookies=e.fn.popmake.cookies||{},e.extend(e.fn.popmake.cookies,{on_popup_open:function(e){var o=PUM.getPopup(this);o.on("pumAfterOpen",function(){o.popmake("setCookie",e)})},on_popup_close:function(e){var o=PUM.getPopup(this);o.on("pumBeforeClose",function(){o.popmake("setCookie",e)})},manual:function(e){var o=PUM.getPopup(this);o.on("pumSetCookie",function(){o.popmake("setCookie",e)})},form_success:function(e){var o=PUM.getPopup(this);o.on("pumFormSuccess",function(){o.popmake("setCookie",e)})},pum_sub_form_success:function(e){var o=PUM.getPopup(this);o.find("form.pum-sub-form").on("success",function(){o.popmake("setCookie",e)})},pum_sub_form_already_subscribed:function(e){var o=PUM.getPopup(this);o.find("form.pum-sub-form").on("success",function(){o.popmake("setCookie",e)})},ninja_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)},cf7_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)},gforms_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)}}),e(o).on("pumInit",".pum",function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings"),n=t.cookies||[],i=null;if(n.length)for(e=0;n.length>e;e+=1)i=n[e],o.popmake("addCookie",i.event,i.settings)})}(jQuery,document);var pum_debug_mode=!1,pum_debug;!function(e,o){if(o=window.pum_vars||{debug_mode:!1},pum_debug_mode=void 0!==o.debug_mode&&o.debug_mode,pum_debug_mode||window.location.href.indexOf("pum_debug")===-1||(pum_debug_mode=!0),pum_debug_mode){var t=!1,n=!1,i=window.pum_debug_vars||{};pum_debug={odump:function(o){return e.extend({},o)},logo:function(){console.log(" -------------------------------------------------------------\n| ____ __ __ _ |\n| | _ \\ ___ _ __ _ _ _ __ | \\/ | __ _| | _____ _ __ |\n| | |_) / _ \\| '_ \\| | | | '_ \\ | |\\/| |/ _` | |/ / _ \\ '__| |\n| | __/ (_) | |_) | |_| | |_) | | | | | (_| | < __/ | |\n| |_| \\___/| .__/ \\__,_| .__/ |_| |_|\\__,_|_|\\_\\___|_| |\n| |_| |_| |\n -------------------------------------------------------------")},initialize:function(){t=!0,pum_debug.logo(),console.debug(i.debug_mode_enabled),console.log(i.debug_started_at,new Date),console.info(i.debug_more_info),pum_debug.divider(i.global_info),console.groupCollapsed(i.localized_vars),console.log("pum_vars:",pum_debug.odump(o)),e(document).trigger("pum_debug_initialize_localized_vars"),console.groupEnd(),e(document).trigger("pum_debug_initialize")},popup_event_header:function(e){var o=e.popmake("getSettings");n!==o.id&&(n=o.id,pum_debug.divider(i.single_popup_label+o.id+" - "+o.slug))},divider:function(e){var o=62,t=62,n=0,i=" "+new Array(o+1).join("-")+" ";"string"==typeof e?(t=o-e.length,n={left:Math.floor(t/2),right:Math.floor(t/2)},n.left+n.right===t-1&&n.right++,n.left=new Array(n.left+1).join(" "),n.right=new Array(n.right+1).join(" "),console.log(""+i+"\n|"+n.left+e+n.right+"|\n"+i)):console.log(i)},click_trigger:function(e,o){var t,n=e.popmake("getSettings"),s=[".popmake-"+n.id,".popmake-"+decodeURIComponent(n.slug),'a[href$="#popmake-'+n.id+'"]'];o.extra_selectors&&""!==o.extra_selectors&&s.push(o.extra_selectors),s=pum.hooks.applyFilters("pum.trigger.click_open.selectors",s,o,e),t=s.join(", "),console.log(i.label_selector,t)},trigger:function(o,t){if("string"==typeof i.triggers[t.type]){switch(console.groupCollapsed(i.triggers[t.type]),t.type){case"auto_open":console.log(i.label_delay,t.settings.delay),console.log(i.label_cookie,t.settings.cookie_name);break;case"click_open":pum_debug.click_trigger(o,t.settings),console.log(i.label_cookie,t.settings.cookie_name)}e(document).trigger("pum_debug_render_trigger",o,t),console.groupEnd()}},cookie:function(o,t){if("string"==typeof i.cookies[t.event]){switch(console.groupCollapsed(i.cookies[t.event]),t.event){case"on_popup_open":case"on_popup_close":case"manual":case"ninja_form_success":console.log(i.label_cookie,pum_debug.odump(t.settings))}e(document).trigger("pum_debug_render_trigger",o,t),console.groupEnd()}}},e(document).on("pumInit",".pum",function(){var o=PUM.getPopup(e(this)),n=o.popmake("getSettings"),s=n.triggers||[],p=n.cookies||[],r=n.conditions||[],a=0;if(t||(pum_debug.initialize(),pum_debug.divider(i.popups_initializing)),console.groupCollapsed(i.single_popup_label+n.id+" - "+n.slug),console.log(i.theme_id,n.theme_id),s.length){for(console.groupCollapsed(i.label_triggers),a=0;s.length>a;a++)pum_debug.trigger(o,s[a]);console.groupEnd()}if(p.length){for(console.groupCollapsed(i.label_cookies),a=0;p.length>a;a+=1)pum_debug.cookie(o,p[a]);console.groupEnd()}r.length&&(console.groupCollapsed(i.label_conditions),console.log(r),console.groupEnd()),console.groupCollapsed(i.label_popup_settings),console.log(i.label_mobile_disabled,n.disable_on_mobile!==!1),console.log(i.label_tablet_disabled,n.disable_on_tablet!==!1),console.log(i.label_display_settings,pum_debug.odump(n)),o.trigger("pum_debug_popup_settings"),console.groupEnd(),console.groupEnd()}).on("pumBeforeOpen",".pum",function(){var o=PUM.getPopup(e(this)),t=e.fn.popmake.last_open_trigger;pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumBeforeOpen"));try{t=e(e.fn.popmake.last_open_trigger),t=t.length?t:e.fn.popmake.last_open_trigger.toString()}catch(n){t=""}finally{console.log(i.label_triggers,[t])}console.groupEnd()}).on("pumOpenPrevented",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumOpenPrevented")),console.groupEnd()}).on("pumAfterOpen",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumAfterOpen")),console.groupEnd()}).on("pumSetupClose",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumSetupClose")),console.groupEnd()}).on("pumClosePrevented",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumClosePrevented")),console.groupEnd()}).on("pumBeforeClose",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumBeforeClose")),console.groupEnd()}).on("pumAfterClose",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumAfterClose")),console.groupEnd()}).on("pumBeforeReposition",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumBeforeReposition")),console.groupEnd()}).on("pumAfterReposition",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumAfterReposition")),console.groupEnd()}).on("pumCheckingCondition",".pum",function(o,t,n){var s=PUM.getPopup(e(this));pum_debug.popup_event_header(s),console.groupCollapsed(i.label_event.replace("%s","pumCheckingCondition")),console.log((n.not_operand?"(!) ":"")+n.target+": "+t,n),console.groupEnd()})}}(jQuery),function(e,o,t){"use strict";e.fn.popmake.defaults={id:null,slug:"",theme_id:null,cookies:[],triggers:[],conditions:[],mobile_disabled:null,tablet_disabled:null,custom_height_auto:!1,scrollable_content:!1,position_from_trigger:!1,position_fixed:!1,overlay_disabled:!1,stackable:!1,disable_reposition:!1,close_on_overlay_click:!1,close_on_esc_press:!1,close_on_f4_press:!1,disable_on_mobile:!1,disable_on_tablet:!1,size:"medium",responsive_min_width:"0%",responsive_max_width:"100%",custom_width:"640px",custom_height:"380px",animation_type:"fade",animation_speed:"350",animation_origin:"center top",location:"center top",position_top:"100",position_bottom:"0",position_left:"0",position_right:"0",zindex:"1999999999",close_button_delay:"0",meta:{display:{stackable:!1,overlay_disabled:!1,size:"medium",responsive_max_width:"100",responsive_max_width_unit:"%",responsive_min_width:"0",responsive_min_width_unit:"%",custom_width:"640",custom_width_unit:"px",custom_height:"380",custom_height_unit:"px",custom_height_auto:!1,location:"center top",position_top:100,position_left:0,position_bottom:0,position_right:0,position_fixed:!1,animation_type:"fade",animation_speed:350,animation_origin:"center top",scrollable_content:!1,disable_reposition:!1,position_from_trigger:!1,overlay_zindex:!1,zindex:"1999999999"},close:{overlay_click:!1,esc_press:!1,f4_press:!1,text:"",button_delay:0},click_open:[]},container:{active_class:"active",attr:{"class":"popmake"}},title:{attr:{"class":"popmake-title"}},content:{attr:{"class":"popmake-content"}},close:{close_speed:0,attr:{"class":"popmake-close"}},overlay:{attr:{id:"popmake-overlay","class":"popmake-overlay"}}}}(jQuery,document),function(e){"use strict";var o={openpopup:!1,openpopup_id:0,closepopup:!1,closedelay:0,redirect_enabled:!1,redirect:"",cookie:!1};window.PUM=window.PUM||{},window.PUM.forms=window.PUM.forms||{},e.extend(window.PUM.forms,{form:{validation:{errors:[]},responseHandler:function(e,o){var t=o.data;o.success?window.PUM.forms.form.success(e,t):window.PUM.forms.form.errors(e,t)},display_errors:function(e,o){window.PUM.forms.messages.add(e,o||this.validation.errors,"error")},beforeAjax:function(o){var t=o.find('[type="submit"]'),n=t.find(".pum-form__loader");window.PUM.forms.messages.clear_all(o),n.length||(n=e('<span class="pum-form__loader"></span>'),""!==t.attr("value")?n.insertAfter(t):t.append(n)),t.prop("disabled",!0),n.show(),o.addClass("pum-form--loading").removeClass("pum-form--errors")},afterAjax:function(e){var o=e.find('[type="submit"]'),t=o.find(".pum-form__loader");o.prop("disabled",!1),t.hide(),e.removeClass("pum-form--loading")},success:function(e,o){void 0!==o.message&&""!==o.message&&window.PUM.forms.messages.add(e,[{message:o.message}]),e.trigger("success",[o]),!e.data("noredirect")&&void 0!==e.data("redirect_enabled")&&o.redirect&&(""!==o.redirect?window.location=o.redirect:window.location.reload(!0))},errors:function(e,o){void 0!==o.errors&&o.errors.length&&(console.log(o.errors),window.PUM.forms.form.display_errors(e,o.errors),window.PUM.forms.messages.scroll_to_first(e),e.addClass("pum-form--errors").trigger("errors",[o]))},submit:function(o){var t=e(this),n=t.pumSerializeObject();o.preventDefault(),o.stopPropagation(),window.PUM.forms.form.beforeAjax(t),e.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_form",values:n}}).always(function(){window.PUM.forms.form.afterAjax(t)}).done(function(e){window.PUM.forms.form.responseHandler(t,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}},messages:{add:function(o,t,n){var i=o.find(".pum-form__messages"),s=0;if(n=n||"success",t=t||[],!i.length)switch(i=e('<div class="pum-form__messages">').hide(),pum_vars.message_position){case"bottom":o.append(i.addClass("pum-form__messages--bottom"));break;case"top":o.prepend(i.addClass("pum-form__messages--top"))}if(["bottom","top"].indexOf(pum_vars.message_position)>=0)for(;t.length>s;s++)this.add_message(i,t[s].message,n);else for(;t.length>s;s++)void 0!==t[s].field?this.add_field_error(o,t[s]):this.add_message(i,t[s].message,n);i.is(":hidden")&&e(".pum-form__message",i).length&&i.slideDown();
2
- },add_message:function(o,t,n){var i=e('<p class="pum-form__message">').html(t);n=n||"success",i.addClass("pum-form__message--"+n),o.append(i),o.is(":visible")&&i.hide().slideDown()},add_field_error:function(o,t){var n=e('[name="'+t.field+'"]',o),i=n.parents(".pum-form__field").addClass("pum-form__field--error");this.add_message(i,t.message,"error")},clear_all:function(o,t){var n=o.find(".pum-form__messages"),i=n.find(".pum-form__message"),s=o.find(".pum-form__field.pum-form__field--error");t=t||!1,n.length&&i.slideUp("fast",function(){e(this).remove(),t&&n.hide()}),s.length&&s.removeClass("pum-form__field--error").find("p.pum-form__message").remove()},scroll_to_first:function(o){window.PUM.utilities.scrollTo(e(".pum-form__field.pum-form__field--error",o).eq(0))}},success:function(t,n){if(n=e.extend({},o,n)){var i=PUM.getPopup(t),s={},p=function(){n.redirect_enabled&&(""!==n.redirect?window.location=n.redirect:window.location.reload(!0))},r=function(){n.openpopup&&PUM.getPopup(n.openpopup_id).length?PUM.open(n.openpopup_id):p()};i.length&&(i.trigger("pumFormSuccess"),n.cookie&&(s=e.extend({name:"pum-"+PUM.getSetting(i,"id"),expires:"+1 year"},"object"==typeof n.cookie?n.cookie:{}),PUM.setCookie(i,s))),i.length&&n.closepopup?setTimeout(function(){i.popmake("close",r)},1e3*parseInt(n.closedelay)):r()}}})}(jQuery),function(e,o){"use strict";var t=function(){function e(e,o,t,n){return"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),r("actions",e,o,t,n)),l}function o(){var e=c.call(arguments),o=e.shift();return"string"==typeof o&&u("actions",o,e),l}function t(e,o){return"string"==typeof e&&p("actions",e,o),l}function n(e,o,t,n){return"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),r("filters",e,o,t,n)),l}function i(){var e=c.call(arguments),o=e.shift();return"string"==typeof o?u("filters",o,e):l}function s(e,o){return"string"==typeof e&&p("filters",e,o),l}function p(e,o,t,n){var i,s,p;if(m[e][o])if(t)if(i=m[e][o],n)for(p=i.length;p--;)s=i[p],s.callback===t&&s.context===n&&i.splice(p,1);else for(p=i.length;p--;)i[p].callback===t&&i.splice(p,1);else m[e][o]=[]}function r(e,o,t,n,i){var s={callback:t,priority:n,context:i},p=m[e][o];p?(p.push(s),p=a(p)):p=[s],m[e][o]=p}function a(e){for(var o,t,n,i=1,s=e.length;i<s;i++){for(o=e[i],t=i;(n=e[t-1])&&n.priority>o.priority;)e[t]=e[t-1],--t;e[t]=o}return e}function u(e,o,t){var n,i,s=m[e][o];if(!s)return"filters"===e&&t[0];if(i=s.length,"filters"===e)for(n=0;n<i;n++)t[0]=s[n].callback.apply(s[n].context,t);else for(n=0;n<i;n++)s[n].callback.apply(s[n].context,t);return"filters"!==e||t[0]}var c=Array.prototype.slice,l={removeFilter:s,applyFilters:i,addFilter:n,removeAction:t,doAction:o,addAction:e},m={actions:{},filters:{}};return l};e.pum=e.pum||{},e.pum.hooks=e.pum.hooks||new t}(window),function(e){"use strict";function o(){"undefined"!=typeof Marionette&&"undefined"!=typeof nfRadio&&(n=Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.popupMaker)},popupMaker:function(o,t,n,i){var s=e("#nf-form-"+i+"-cont"),p={};o.errors.length||("undefined"!=typeof o.data.actions&&(p.openpopup="undefined"!=typeof o.data.actions.openpopup,p.openpopup_id=p.openpopup?parseInt(o.data.actions.openpopup):0,p.closepopup="undefined"!=typeof o.data.actions.closepopup,p.closedelay=p.closepopup?parseInt(o.data.actions.closepopup):0,p.closepopup&&o.data.actions.closedelay&&(p.closedelay=parseInt(o.data.actions.closedelay))),window.PUM.forms.success(s,p))}}))}var t={},n=!1;e(document).ready(function(){n===!1&&o(),n!==!1&&new n,e(".gform_wrapper > form").each(function(){var o=e(this),n=o.attr("id").replace("gform_",""),i=o.find("input.gforms-pum"),s=!!i.length&&JSON.parse(i.val());s&&"object"==typeof s&&("object"==typeof s&&void 0!==s.closedelay&&s.closedelay.toString().length>=3&&(s.closedelay=s.closedelay/1e3),t[n]=s)})}).on("gform_confirmation_loaded",function(o,n){var i=e("#gform_confirmation_wrapper_"+n+",#gforms_confirmation_message_"+n),s=t[n]||!1;window.PUM.forms.success(i,s)}).on("wpcf7:mailsent",".wpcf7",function(o){var t=e(o.target),n=t.find("input.wpcf7-pum"),i=!!n.length&&JSON.parse(n.val());"object"==typeof i&&void 0!==i.closedelay&&i.closedelay.toString().length>=3&&(i.closedelay=i.closedelay/1e3),window.PUM.forms.success(t,i)})}(jQuery),function(e){"use strict";pum_vars&&void 0!==pum_vars.core_sub_forms_enabled&&!pum_vars.core_sub_forms_enabled||(window.PUM=window.PUM||{},window.PUM.newsletter=window.PUM.newsletter||{},e.extend(window.PUM.newsletter,{form:e.extend({},window.PUM.forms.form,{submit:function(o){var t=e(this),n=t.pumSerializeObject();o.preventDefault(),o.stopPropagation(),window.PUM.newsletter.form.beforeAjax(t),e.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_sub_form",values:n}}).always(function(){window.PUM.newsletter.form.afterAjax(t)}).done(function(e){window.PUM.newsletter.form.responseHandler(t,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}})}),e(document).on("submit","form.pum-sub-form",window.PUM.newsletter.form.submit).on("success","form.pum-sub-form",function(o,t){var n=e(o.target),i=n.data("settings")||{};n.trigger("pumNewsletterSuccess",[t]).addClass("pum-newsletter-success"),n[0].reset(),window.pum.hooks.doAction("pum-sub-form.success",t,n),"string"==typeof i.redirect&&""!==i.redirect&&(i.redirect=atob(i.redirect)),window.PUM.forms.success(n,i)}).on("error","form.pum-sub-form",function(o,t){var n=e(o.target);n.trigger("pumNewsletterError",[t]),window.pum.hooks.doAction("pum-sub-form.errors",t,n)}))}(jQuery),function(e,o,t){"use strict";e.extend(e.fn.popmake.methods,{addTrigger:function(o){return e.fn.popmake.triggers[o]?e.fn.popmake.triggers[o].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Trigger type "+o+" does not exist."),this)}}),e.fn.popmake.triggers={auto_open:function(o){var t=PUM.getPopup(this);setTimeout(function(){t.popmake("state","isOpen")||!t.popmake("checkCookies",o)&&t.popmake("checkConditions")&&(e.fn.popmake.last_open_trigger="Auto Open - Delay: "+o.delay,t.popmake("open"))},o.delay)},click_open:function(t){var n,i=PUM.getPopup(this),s=i.popmake("getSettings"),p=[".popmake-"+s.id,".popmake-"+decodeURIComponent(s.slug),'a[href$="#popmake-'+s.id+'"]'];t.extra_selectors&&""!==t.extra_selectors&&p.push(t.extra_selectors),p=pum.hooks.applyFilters("pum.trigger.click_open.selectors",p,t,i),n=p.join(", "),e(n).addClass("pum-trigger").css({cursor:"pointer"}),e(o).on("click.pumTrigger",n,function(o){var n=e(this),s=t.do_default||!1;i.has(n).length>0||i.popmake("state","isOpen")||!i.popmake("checkCookies",t)&&i.popmake("checkConditions")&&(n.data("do-default")?s=n.data("do-default"):(n.hasClass("do-default")||n.hasClass("popmake-do-default")||n.hasClass("pum-do-default"))&&(s=!0),o.ctrlKey||pum.hooks.applyFilters("pum.trigger.click_open.do_default",s,i,n)||(o.preventDefault(),o.stopPropagation()),e.fn.popmake.last_open_trigger=n,i.popmake("open"))})},admin_debug:function(){PUM.getPopup(this).popmake("open")}},e(o).on("pumInit",".pum",function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings"),n=t.triggers||[],i=null;if(n.length)for(e=0;n.length>e;e+=1)i=n[e],o.popmake("addTrigger",i.type,i.settings)})}(jQuery,document),function(e,o,t){"use strict";function n(e,o,t){var i=o[0];o.length>1?(e[i]||(e[i]=o[1]?{}:[]),n(e[i],o.slice(1),t)):(i||(i=e.length),e[i]=t)}var i="color,date,datetime,datetime-local,email,hidden,month,number,password,range,search,tel,text,time,url,week".split(","),s="select,textarea".split(","),p=/\[([^\]]*)\]/g;Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(void 0===this||null===this)throw new TypeError;var o=Object(this),t=o.length>>>0;if(0===t)return-1;var n=0;if(arguments.length>0&&(n=Number(arguments[1]),n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n)))),n>=t)return-1;for(var i=n>=0?n:Math.max(t-Math.abs(n),0);i<t;i++)if(i in o&&o[i]===e)return i;return-1}),e.fn.popmake.utilities={scrollTo:function(o,t){var n=e(o)||e();n.length&&e("html, body").animate({scrollTop:n.offset().top-100},1e3,"swing",function(){var e=n.find(':input:not([type="button"]):not([type="hidden"]):not(button)').eq(0);e.hasClass("wp-editor-area")?tinyMCE.execCommand("mceFocus",!1,e.attr("id")):e.focus(),"function"==typeof t&&t()})},inArray:function(e,o){return!!~o.indexOf(e)},convert_hex:function(e,o){e=e.replace("#","");var t=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),i=parseInt(e.substring(4,6),16);return"rgba("+t+","+n+","+i+","+o/100+")"},debounce:function(e,o){var t;return function(){var n=this,i=arguments;window.clearTimeout(t),t=window.setTimeout(function(){e.apply(n,i)},o)}},throttle:function(e,o){var t=!1,n=function(){t=!1};return function(){t||(e.apply(this,arguments),window.setTimeout(n,o),t=!0)}},getXPath:function(o){var t,n,i,s,p,r=[];return e.each(e(o).parents(),function(o,a){return t=e(a),n=t.attr("id")||"",i=t.attr("class")||"",s=t.get(0).tagName.toLowerCase(),p=t.parent().children(s).index(t),"body"!==s&&(i.length>0&&(i=i.split(" "),i=i[0]),void r.push(s+(n.length>0?"#"+n:i.length>0?"."+i.split(" ").join("."):":eq("+p+")")))}),r.reverse().join(" > ")},strtotime:function(e,o){function n(e,o,n){var i,s=c[o];s!==t&&(i=s-u.getDay(),0===i?i=7*n:i>0&&"last"===e?i-=7:i<0&&"next"===e&&(i+=7),u.setDate(u.getDate()+i))}function i(e){var o=e.split(" "),t=o[0],i=o[1].substring(0,3),s=/\d+/.test(t),p="ago"===o[2],r=("last"===t?-1:1)*(p?-1:1);if(s&&(r*=parseInt(t,10)),l.hasOwnProperty(i)&&!o[1].match(/^mon(day|\.)?$/i))return u["set"+l[i]](u["get"+l[i]]()+r);if("wee"===i)return u.setDate(u.getDate()+7*r);if("next"===t||"last"===t)n(t,i,r);else if(!s)return!1;return!0}var s,p,r,a,u,c,l,m,d,f,g,_=!1;if(!e)return _;if(e=e.replace(/^\s+|\s+$/g,"").replace(/\s{2,}/g," ").replace(/[\t\r\n]/g,"").toLowerCase(),p=e.match(/^(\d{1,4})([\-\.\/\:])(\d{1,2})([\-\.\/\:])(\d{1,4})(?:\s(\d{1,2}):(\d{2})?:?(\d{2})?)?(?:\s([A-Z]+)?)?$/),p&&p[2]===p[4])if(p[1]>1901)switch(p[2]){case"-":return p[3]>12||p[5]>31?_:new Date(p[1],parseInt(p[3],10)-1,p[5],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3;case".":return _;case"/":return p[3]>12||p[5]>31?_:new Date(p[1],parseInt(p[3],10)-1,p[5],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3}else if(p[5]>1901)switch(p[2]){case"-":return p[3]>12||p[1]>31?_:new Date(p[5],parseInt(p[3],10)-1,p[1],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3;case".":return p[3]>12||p[1]>31?_:new Date(p[5],parseInt(p[3],10)-1,p[1],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3;case"/":return p[1]>12||p[3]>31?_:new Date(p[5],parseInt(p[1],10)-1,p[3],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3}else switch(p[2]){case"-":return p[3]>12||p[5]>31||p[1]<70&&p[1]>38?_:(a=p[1]>=0&&p[1]<=38?+p[1]+2e3:p[1],new Date(a,parseInt(p[3],10)-1,p[5],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3);case".":return p[5]>=70?p[3]>12||p[1]>31?_:new Date(p[5],parseInt(p[3],10)-1,p[1],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3:p[5]<60&&!p[6]?p[1]>23||p[3]>59?_:(r=new Date,new Date(r.getFullYear(),r.getMonth(),r.getDate(),p[1]||0,p[3]||0,p[5]||0,p[9]||0)/1e3):_;case"/":return p[1]>12||p[3]>31||p[5]<70&&p[5]>38?_:(a=p[5]>=0&&p[5]<=38?+p[5]+2e3:p[5],new Date(a,parseInt(p[1],10)-1,p[3],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3);case":":return p[1]>23||p[3]>59||p[5]>59?_:(r=new Date,new Date(r.getFullYear(),r.getMonth(),r.getDate(),p[1]||0,p[3]||0,p[5]||0)/1e3)}if("now"===e)return null===o||isNaN(o)?(new Date).getTime()/1e3||0:o||0;if(s=Date.parse(e),!isNaN(s))return s/1e3||0;if(u=o?new Date(1e3*o):new Date,c={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},l={yea:"FullYear",mon:"Month",day:"Date",hou:"Hours",min:"Minutes",sec:"Seconds"},d="(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?)",f="([+-]?\\d+\\s"+d+"|(last|next)\\s"+d+")(\\sago)?",p=e.match(new RegExp(f,"gi")),!p)return _;for(g=0,m=p.length;g<m;g+=1)if(!i(p[g]))return _;return u.getTime()/1e3},serializeObject:function(o){e.extend({},o);var t={},r=e.extend(!0,{include:[],exclude:[],includeByClass:""},o);return this.find(":input").each(function(){var o;!this.name||this.disabled||window.PUM.utilities.inArray(this.name,r.exclude)||r.include.length&&!window.PUM.utilities.inArray(this.name,r.include)||this.className.indexOf(r.includeByClass)===-1||(o=this.name.replace(p,"[$1").split("["),o[0]&&(this.checked||window.PUM.utilities.inArray(this.type,i)||window.PUM.utilities.inArray(this.nodeName.toLowerCase(),s))&&("checkbox"===this.type&&o.push(""),n(t,o,e(this).val())))}),t}},e.fn.pumSerializeObject=e.fn.popmake.utilities.serializeObject,e.fn.popmake.utilies=e.fn.popmake.utilities,window.PUM=window.PUM||{},window.PUM.utilities=window.PUM.utilities||{},window.PUM.utilities=e.extend(window.PUM.utilities,e.fn.popmake.utilities)}(jQuery,document),function(e,o,t){"use strict";e.fn.popmake.version=1.7,e.fn.popmake.last_open_popup=null,e(o).ready(function(){e(".pum").popmake(),e(o).trigger("pumInitialized"),"object"==typeof pum_vars.form_success&&(pum_vars.form_success=e.extend({popup_id:null,settings:{}}),PUM.forms.success(pum_vars.form_success.popup_id,pum_vars.form_success.settings))}),e(".pum").on("pumInit",function(){var e=PUM.getPopup(this),o=PUM.getSetting(e,"id"),t=e.find("form");t.length&&t.prepend('<input type="hidden" name="pum_form_popup_id" value="'+o+'" />')})}(jQuery);
1
  !function(e){"use strict";void 0===e.fn.on&&(e.fn.on=function(e,o,t){return this.delegate(o,e,t)}),void 0===e.fn.off&&(e.fn.off=function(e,o,t){return this.undelegate(o,e,t)}),void 0===e.fn.bindFirst&&(e.fn.bindFirst=function(o,t){var n,i,s=e(this);s.unbind(o,t),s.bind(o,t),n=e._data(s[0]).events,i=n[o],i.unshift(i.pop()),n[o]=i}),void 0===e.fn.outerHtml&&(e.fn.outerHtml=function(){var o=e(this).clone(),t=e("<div/>").append(o);return t.html()}),void 0===Date.now&&(Date.now=function(){return(new Date).getTime()})}(jQuery);var PUM;!function(e,o,t){"use strict";function n(e){return!isNaN(e)&&parseInt(Number(e))===parseInt(e)&&!isNaN(parseInt(e,10))}function i(){var e={},o=function(o,n,i){"boolean"==typeof n&&(i=n,n=!1);var s=n?n.selector+" "+o:o;return(t===e[s]||i)&&(e[s]=n?n.find(o):jQuery(o)),e[s]};return o.elementCache=e,o}function s(e,o){function t(e,o,t){return o?e[o.slice(0,t?-1:o.length)]:e}function n(e,o){return o?o.split("[").reduce(t,e):e}return o.split(".").reduce(n,e)}PUM={get:new i,getPopup:function(o){var t;return t=n(o)?PUM.get("#pum-"+o):"current"===o?PUM.get(".pum-overlay.pum-active:eq(0)",!0):"open"===o?PUM.get(".pum-overlay.pum-active",!0):"closed"===o?PUM.get(".pum-overlay:not(.pum-active)",!0):o instanceof jQuery?o:e(o),t.hasClass("pum-overlay")?t:t.hasClass("popmake")?t.parents(".pum-overlay"):t.parents(".pum-overlay").length?t.parents(".pum-overlay"):e()},open:function(e,o){PUM.getPopup(e).popmake("open",o)},close:function(e,o){PUM.getPopup(e).popmake("close",o)},preventOpen:function(e){PUM.getPopup(e).addClass("preventOpen")},getSettings:function(e){var o=PUM.getPopup(e);return o.popmake("getSettings")},getSetting:function(e,o,n){var i=PUM.getSettings(e),p=s(i,o);return"undefined"!=typeof p?p:n!==t?n:null},checkConditions:function(e){return PUM.getPopup(e).popmake("checkConditions")},getCookie:function(o){return e.pm_cookie(o)},setCookie:function(e,o){var t=PUM.getPopup(e);t.popmake("setCookie",jQuery.extend({name:"pum-"+PUM.getSetting(e,"id"),expires:"+30 days"},o))},clearCookie:function(o,t){e.pm_remove_cookie(o),"function"==typeof t&&t()},clearCookies:function(o,n){var i,s=PUM.getPopup(o),p=s.popmake("getSettings"),r=p.cookies;if(r!==t&&r.length)for(i=0;r.length>i;i+=1)e.pm_remove_cookie(r[i].settings.name);"function"==typeof n&&n()},getClickTriggerSelector:function(e,o){var t=PUM.getPopup(e),n=PUM.getSettings(e),i=[".popmake-"+n.id,".popmake-"+decodeURIComponent(n.slug),'a[href$="#popmake-'+n.id+'"]'];return o.extra_selectors&&""!==o.extra_selectors&&i.push(o.extra_selectors),i=pum.hooks.applyFilters("pum.trigger.click_open.selectors",i,o,t),i.join(", ")},disableClickTriggers:function(n,i){if(n!==t)if(i!==t){var s=PUM.getClickTriggerSelector(n,i);e(s).removeClass("pum-trigger"),e(o).off("click.pumTrigger click.popmakeOpen",s)}else{var p=PUM.getSetting(n,"triggers",[]);if(p.length)for(var r=0;p.length>r;r++)if(pum.hooks.applyFilters("pum.disableClickTriggers.clickTriggerTypes",["click_open"]).indexOf(p[r].type)!==-1){var s=PUM.getClickTriggerSelector(n,p[r].settings);e(s).removeClass("pum-trigger"),e(o).off("click.pumTrigger click.popmakeOpen",s)}}}},e.fn.popmake=function(t){return e.fn.popmake.methods[t]?(e(o).trigger("pumMethodCall",arguments),e.fn.popmake.methods[t].apply(this,Array.prototype.slice.call(arguments,1))):"object"!=typeof t&&t?void(window.console&&console.warn("Method "+t+" does not exist on $.fn.popmake")):e.fn.popmake.methods.init.apply(this,arguments)},e.fn.popmake.methods={init:function(){return this.each(function(){var o=PUM.getPopup(this),n=o.popmake("getSettings");return n.theme_id<=0&&(n.theme_id=pum_vars.default_theme),n.disable_reposition!==t&&n.disable_reposition||e(window).on("resize",function(){(o.hasClass("pum-active")||o.find(".popmake.active").length)&&e.fn.popmake.utilities.throttle(setTimeout(function(){o.popmake("reposition")},25),500,!1)}),o.find(".pum-container").data("popmake",n),o.data("popmake",n).trigger("pumInit"),this})},getOverlay:function(){return PUM.getPopup(this)},getContainer:function(){return PUM.getPopup(this).find(".pum-container")},getTitle:function(){return PUM.getPopup(this).find(".pum-title")||null},getContent:function(){return PUM.getPopup(this).find(".pum-content")||null},getClose:function(){return PUM.getPopup(this).find(".pum-content + .pum-close")||null},getSettings:function(){var o=PUM.getPopup(this);return e.extend(!0,{},e.fn.popmake.defaults,o.data("popmake")||{},pum_vars.popups[o.attr("id")]||{})},state:function(e){var o=PUM.getPopup(this);if(t!==e)switch(e){case"isOpen":return o.hasClass("pum-open")||o.popmake("getContainer").hasClass("active");case"isClosed":return!o.hasClass("pum-open")&&!o.popmake("getContainer").hasClass("active")}},open:function(o){var n=PUM.getPopup(this),i=n.popmake("getContainer"),s=n.popmake("getClose"),p=n.popmake("getSettings"),r=e("html");return n.trigger("pumBeforeOpen"),n.hasClass("preventOpen")||i.hasClass("preventOpen")?(console.log("prevented"),n.removeClass("preventOpen").removeClass("pum-active").trigger("pumOpenPrevented"),this):(p.stackable||n.popmake("close_all"),n.addClass("pum-active"),p.close_button_delay>0&&s.fadeOut(0),r.addClass("pum-open"),p.overlay_disabled?r.addClass("pum-open-overlay-disabled"):r.addClass("pum-open-overlay"),p.position_fixed?r.addClass("pum-open-fixed"):r.addClass("pum-open-scrollable"),n.popmake("setup_close").popmake("reposition").popmake("animate",p.animation_type,function(){p.close_button_delay>0&&setTimeout(function(){s.fadeIn()},p.close_button_delay),n.trigger("pumAfterOpen"),e.fn.popmake.last_open_popup=n,o!==t&&o()}),this)},setup_close:function(){var n=PUM.getPopup(this),i=n.popmake("getClose"),s=n.popmake("getSettings");return i=i.add(e(".popmake-close, .pum-close",n).not(i)),i.off("click.pum").on("click.pum",function(o){var i=e(this),s=i.hasClass("pum-do-default")||i.data("do-default")!==t&&i.data("do-default");s||o.preventDefault(),e.fn.popmake.last_close_trigger="Close Button",n.popmake("close")}),(s.close_on_esc_press||s.close_on_f4_press)&&e(window).off("keyup.popmake").on("keyup.popmake",function(o){27===o.keyCode&&s.close_on_esc_press&&(e.fn.popmake.last_close_trigger="ESC Key",n.popmake("close")),115===o.keyCode&&s.close_on_f4_press&&(e.fn.popmake.last_close_trigger="F4 Key",n.popmake("close"))}),s.close_on_overlay_click&&(n.on("pumAfterOpen",function(){e(o).on("click.pumCloseOverlay",function(o){var t=e(o.target),i=t.closest(".pum-container");i.length||(e.fn.popmake.last_close_trigger="Overlay Click",n.popmake("close"))})}),n.on("pumAfterClose",function(){e(o).off("click.pumCloseOverlay")})),n.trigger("pumSetupClose"),this},close:function(o){return this.each(function(){var n=PUM.getPopup(this),i=n.popmake("getContainer"),s=n.popmake("getClose");return s=s.add(e(".popmake-close, .pum-close",n).not(s)),n.trigger("pumBeforeClose"),n.hasClass("preventClose")||i.hasClass("preventClose")?(n.removeClass("preventClose").trigger("pumClosePrevented"),this):(i.fadeOut("fast",function(){n.is(":visible")&&n.fadeOut("fast"),e(window).off("keyup.popmake"),n.off("click.popmake"),s.off("click.popmake"),1===e(".pum-active").length&&e("html").removeClass("pum-open").removeClass("pum-open-scrollable").removeClass("pum-open-overlay").removeClass("pum-open-overlay-disabled").removeClass("pum-open-fixed"),n.removeClass("pum-active").trigger("pumAfterClose"),i.find("iframe").filter('[src*="youtube"],[src*="vimeo"]').each(function(){var o=e(this),t=o.attr("src"),n=t.replace("autoplay=1","1=1");n!==t&&(t=n),o.prop("src",t)}),i.find("video").each(function(){this.pause()}),o!==t&&o()}),this)})},close_all:function(){return e(".pum-active").popmake("close"),this},reposition:function(o){var t=PUM.getPopup(this).trigger("pumBeforeReposition"),n=t.popmake("getContainer"),i=t.popmake("getSettings"),s=i.location,p={my:"",at:"",of:window,collision:"none",using:"function"==typeof o?o:e.fn.popmake.callbacks.reposition_using},r={overlay:null,container:null},a=null;try{a=e(e.fn.popmake.last_open_trigger)}catch(u){a=e()}return i.position_from_trigger&&a.length?(p.of=a,s.indexOf("left")>=0&&(p.my+=" right",p.at+=" left"+(0!==i.position_left?"-"+i.position_left:"")),s.indexOf("right")>=0&&(p.my+=" left",p.at+=" right"+(0!==i.position_right?"+"+i.position_right:"")),s.indexOf("center")>=0&&(p.my="center"===s?"center":p.my+" center",p.at="center"===s?"center":p.at+" center"),s.indexOf("top")>=0&&(p.my+=" bottom",p.at+=" top"+(0!==i.position_top?"-"+i.position_top:"")),s.indexOf("bottom")>=0&&(p.my+=" top",p.at+=" bottom"+(0!==i.position_bottom?"+"+i.position_bottom:""))):(s.indexOf("left")>=0&&(p.my+=" left"+(0!==i.position_left?"+"+i.position_left:""),p.at+=" left"),s.indexOf("right")>=0&&(p.my+=" right"+(0!==i.position_right?"-"+i.position_right:""),p.at+=" right"),s.indexOf("center")>=0&&(p.my="center"===s?"center":p.my+" center",p.at="center"===s?"center":p.at+" center"),s.indexOf("top")>=0&&(p.my+=" top"+(0!==i.position_top?"+"+(e("body").hasClass("admin-bar")?parseInt(i.position_top,10)+32:i.position_top):""),p.at+=" top"),s.indexOf("bottom")>=0&&(p.my+=" bottom"+(0!==i.position_bottom?"-"+i.position_bottom:""),p.at+=" bottom")),p.my=e.trim(p.my),p.at=e.trim(p.at),t.is(":hidden")&&(r.overlay=t.css("opacity"),t.css({opacity:0}).show(0)),n.is(":hidden")&&(r.container=n.css("opacity"),n.css({opacity:0}).show(0)),i.position_fixed&&n.addClass("fixed"),"custom"===i.size?n.css({width:i.custom_width,height:i.custom_height_auto?"auto":i.custom_height}):"auto"!==i.size&&n.addClass("responsive").css({minWidth:""!==i.responsive_min_width?i.responsive_min_width:"auto",maxWidth:""!==i.responsive_max_width?i.responsive_max_width:"auto"}),t.trigger("pumAfterReposition"),n.addClass("custom-position").position(p).trigger("popmakeAfterReposition"),r.overlay&&t.css({opacity:r.overlay}).hide(0),r.container&&n.css({opacity:r.container}).hide(0),this},animation_origin:function(o){var t=PUM.getPopup(this),n=t.popmake("getContainer"),i={my:"",at:""};switch(o){case"top":i={my:"left+"+n.offset().left+" bottom-100",at:"left top"};break;case"bottom":i={my:"left+"+n.offset().left+" top+100",at:"left bottom"};break;case"left":i={my:"right top+"+n.offset().top,at:"left top"};break;case"right":i={my:"left top+"+n.offset().top,at:"right top"};break;default:o.indexOf("left")>=0&&(i={my:i.my+" right",at:i.at+" left"}),o.indexOf("right")>=0&&(i={my:i.my+" left",at:i.at+" right"}),o.indexOf("center")>=0&&(i={my:i.my+" center",at:i.at+" center"}),o.indexOf("top")>=0&&(i={my:i.my+" bottom-100",at:i.at+" top"}),o.indexOf("bottom")>=0&&(i={my:i.my+" top+100",at:i.at+" bottom"}),i.my=e.trim(i.my),i.at=e.trim(i.at)}return i.of=window,i.collision="none",i}}}(jQuery,document);var PUM_Accessibility;!function(e,o,t){"use strict";var n,i,s,p="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]";PUM_Accessibility={forceFocus:function(e){s&&s.length&&!s[0].contains(e.target)&&(e.stopPropagation(),PUM_Accessibility.setFocusToFirstItem())},trapTabKey:function(o){if(9===o.keyCode){var t=s.find(".pum-container *").filter(p).filter(":visible"),n=e(":focus"),i=t.length,r=t.index(n);o.shiftKey?0===r&&(t.get(i-1).focus(),o.preventDefault()):r===i-1&&(t.get(0).focus(),o.preventDefault())}},setFocusToFirstItem:function(){s.find(".pum-container *").filter(p).filter(":visible").filter(":not(.pum-close)").first().focus()}},e(o).on("pumInit",".pum",function(){PUM.getPopup(this).find("[tabindex]").each(function(){var o=e(this);o.data("tabindex",o.attr("tabindex")).prop("tabindex","0")})}).on("pumBeforeOpen",".pum",function(){var t=PUM.getPopup(this),p=e(":focus");t.has(p).length||(i=p),s=t.on("keydown.pum_accessibility",PUM_Accessibility.trapTabKey).attr("aria-hidden","false"),n=e("body > *").filter(":visible").not(s),n.attr("aria-hidden","true"),e(o).one("focusin.pum_accessibility",PUM_Accessibility.forceFocus),PUM_Accessibility.setFocusToFirstItem()}).on("pumAfterOpen",".pum",function(){}).on("pumBeforeClose",".pum",function(){}).on("pumAfterClose",".pum",function(){var p=PUM.getPopup(this);p.off("keydown.pum_accessibility").attr("aria-hidden","true"),n&&(n.attr("aria-hidden","false"),n=null),i!==t&&i.length&&i.focus(),s=null,e(o).off("focusin.pum_accessibility")}).on("pumSetupClose",".pum",function(){}).on("pumOpenPrevented",".pum",function(){}).on("pumClosePrevented",".pum",function(){}).on("pumBeforeReposition",".pum",function(){})}(jQuery,document);var PUM_Analytics;!function(e){"use strict";e.fn.popmake.last_open_trigger=null,e.fn.popmake.last_close_trigger=null,e.fn.popmake.conversion_trigger=null;var o=!("undefined"==typeof pum_vars.restapi||!pum_vars.restapi);PUM_Analytics={beacon:function(t,n){var i=new Image,s=o?pum_vars.restapi:pum_vars.ajaxurl,p={route:"/analytics/",data:e.extend({event:"open",pid:null,_cache:+new Date},t),callback:"function"==typeof n?n:function(){}};o?s+=p.route:p.data.action="pum_analytics",s&&(e(i).on("error success load done",p.callback),i.src=s+"?"+e.param(p.data))}},"undefined"!=typeof pum_vars.disable_tracking&&pum_vars.disable_tracking||e(document).on("pumAfterOpen.core_analytics","body > .pum",function(){var o=PUM.getPopup(this),t={pid:parseInt(o.popmake("getSettings").id,10)||null};t.pid>0&&!e("body").hasClass("single-popup")&&PUM_Analytics.beacon(t)})}(jQuery),function(e,o,t){"use strict";e.fn.popmake.methods.animate_overlay=function(o,t,n){var i=PUM.getPopup(this).popmake("getSettings");return i.overlay_disabled?e.fn.popmake.overlay_animations.none.apply(this,[t,n]):e.fn.popmake.overlay_animations[o]?e.fn.popmake.overlay_animations[o].apply(this,[t,n]):(window.console&&console.warn("Animation style "+o+" does not exist."),this)},e.fn.popmake.methods.animate=function(o){return e.fn.popmake.animations[o]?e.fn.popmake.animations[o].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Animation style "+o+" does not exist."),this)},e.fn.popmake.animations={none:function(e){var o=PUM.getPopup(this);return o.popmake("getContainer").show(0),o.popmake("animate_overlay","none",0,function(){e!==t&&e()}),this},slide:function(e){var o=PUM.getPopup(this).show(0).css({opacity:0}),n=o.popmake("getContainer").show(0).css({opacity:0}),i=o.popmake("getSettings"),s=i.animation_speed/2,p=o.popmake("animation_origin",i.animation_origin);return n.position(p).css({opacity:1}),o.css({opacity:1}).popmake("animate_overlay","fade",s,function(){n.popmake("reposition",function(o){n.animate(o,s,"swing",function(){e!==t&&e()})})}),this},fade:function(e){var o=PUM.getPopup(this),n=o.popmake("getContainer"),i=o.popmake("getSettings"),s=i.animation_speed/2;return n.show(0).css({opacity:0}),o.popmake("animate_overlay","fade",s,function(){n.animate({opacity:1},s,"swing",function(){e!==t&&e()})}),this},fadeAndSlide:function(e){var o=PUM.getPopup(this).show(0).css({opacity:0}),n=o.popmake("getContainer").show(0).css({opacity:0}),i=o.popmake("getSettings"),s=i.animation_speed/2,p=o.popmake("animation_origin",i.animation_origin);return n.position(p),o.hide().css({opacity:1}).popmake("animate_overlay","fade",s,function(){n.popmake("reposition",function(o){o.opacity=1,n.animate(o,s,"swing",function(){e!==t&&e()})})}),this},grow:function(o){return e.fn.popmake.animations.fade.apply(this,arguments)},growAndSlide:function(o){return e.fn.popmake.animations.fadeAndSlide.apply(this,arguments)}},e.fn.popmake.overlay_animations={none:function(e,o){PUM.getPopup(this).show(e,o)},fade:function(e,o){PUM.getPopup(this).fadeIn(e,o)},slide:function(e,o){PUM.getPopup(this).slideDown(e,o)}}}(jQuery,document),function(e,o,t){"use strict";e(o).on("pumInit",".pum",function(){e(this).popmake("getContainer").trigger("popmakeInit")}).on("pumBeforeOpen",".pum",function(){e(this).popmake("getContainer").addClass("active").trigger("popmakeBeforeOpen")}).on("pumAfterOpen",".pum",function(){e(this).popmake("getContainer").trigger("popmakeAfterOpen")}).on("pumBeforeClose",".pum",function(){e(this).popmake("getContainer").trigger("popmakeBeforeClose")}).on("pumAfterClose",".pum",function(){e(this).popmake("getContainer").removeClass("active").trigger("popmakeAfterClose")}).on("pumSetupClose",".pum",function(){e(this).popmake("getContainer").trigger("popmakeSetupClose")}).on("pumOpenPrevented",".pum",function(){e(this).popmake("getContainer").removeClass("preventOpen").removeClass("active")}).on("pumClosePrevented",".pum",function(){e(this).popmake("getContainer").removeClass("preventClose")}).on("pumBeforeReposition",".pum",function(){e(this).popmake("getContainer").trigger("popmakeBeforeReposition")})}(jQuery,document),function(e,o,t){"use strict";e.fn.popmake.callbacks={reposition_using:function(o){e(this).css(o)}}}(jQuery,document),function(e,o,t){"use strict";var n,i=function(){return n===t&&(n="undefined"!=typeof MobileDetect?new MobileDetect(window.navigator.userAgent):{phone:function(){return!1},tablet:function(){return!1}}),n};e.extend(e.fn.popmake.methods,{checkConditions:function(){var o,t,n,s,p,r=PUM.getPopup(this),a=r.popmake("getSettings"),u=!0;if(a.disable_on_mobile&&i().phone())return!1;if(a.disable_on_tablet&&i().tablet())return!1;if(a.conditions.length)for(t=0;a.conditions.length>t;t++){for(s=a.conditions[t],o=!1,n=0;s.length>n&&(p=e.extend({},{not_operand:!1},s[n]),!p.not_operand&&r.popmake("checkCondition",p)?o=!0:p.not_operand&&!r.popmake("checkCondition",p)&&(o=!0),e(this).trigger("pumCheckingCondition",[o,p]),!o);n++);o||(u=!1)}return u},checkCondition:function(o){var t=o.target||null;o.settings||o;return t?e.fn.popmake.conditions[t]?e.fn.popmake.conditions[t].apply(this,[o]):window.console?(console.warn("Condition "+t+" does not exist."),!0):void 0:(console.warn("Condition type not set."),!1)}}),e.fn.popmake.conditions={}}(jQuery,document);var pm_cookie,pm_cookie_json,pm_remove_cookie;!function(e){"use strict";function o(o){function t(n,i,s){var p,r=new Date;if("undefined"!=typeof document){if(arguments.length>1){switch(s=e.extend({path:pum_vars.home_url},t.defaults,s),typeof s.expires){case"number":r.setMilliseconds(r.getMilliseconds()+864e5*s.expires),s.expires=r;break;case"string":r.setTime(1e3*e.fn.popmake.utilities.strtotime("+"+s.expires)),s.expires=r}try{p=JSON.stringify(i),/^[\{\[]/.test(p)&&(i=p)}catch(a){}return i=o.write?o.write(i,n):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)),n=n.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),n=n.replace(/[\(\)]/g,escape),document.cookie=[n,"=",i,s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}n||(p={});for(var u=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,l=0;l<u.length;l++){var m=u[l].split("="),d=m.slice(1).join("=");'"'===d.charAt(0)&&(d=d.slice(1,-1));try{var f=m[0].replace(c,decodeURIComponent);if(d=o.read?o.read(d,f):o(d,f)||d.replace(c,decodeURIComponent),this.json)try{d=JSON.parse(d)}catch(a){}if(n===f){p=d;break}n||(p[f]=d)}catch(a){}}return p}}return void 0===o&&(o=function(){}),t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={},t.remove=function(o,n){t(o,"",e.extend({},n,{expires:-1,path:""})),t(o,"",e.extend({},n,{expires:-1}))},t.process=function(e,o,n,i){return arguments.length>3&&"object"!=typeof arguments[2]&&void 0!==o?t.apply(t,[e,o,{expires:n,path:i}]):t.apply(t,[].slice.call(arguments,[0,2]))},t.withConverter=e.fn.popmake.cookie,t}e.extend(e.fn.popmake,{cookie:o()}),pm_cookie=e.pm_cookie=e.fn.popmake.cookie.process,pm_cookie_json=e.pm_cookie_json=e.fn.popmake.cookie.getJSON,pm_remove_cookie=e.pm_remove_cookie=e.fn.popmake.cookie.remove}(jQuery),function(e,o,t){"use strict";e.extend(e.fn.popmake.methods,{addCookie:function(o){return pum.hooks.doAction("popmake.addCookie",arguments),e.fn.popmake.cookies[o]?e.fn.popmake.cookies[o].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Cookie type "+o+" does not exist."),this)},setCookie:function(o){e.pm_cookie(o.name,!0,o.session?null:o.time,o.path?pum_vars.home_url||"/":null),pum.hooks.doAction("popmake.setCookie",o)},checkCookies:function(o){var n,i=!1;if(o.cookie_name===t||null===o.cookie_name||""===o.cookie_name)return!1;switch(typeof o.cookie_name){case"object":case"array":for(n=0;o.cookie_name.length>n;n+=1)e.pm_cookie(o.cookie_name[n])!==t&&(i=!0);break;case"string":e.pm_cookie(o.cookie_name)!==t&&(i=!0)}return pum.hooks.doAction("popmake.checkCookies",o,i),i}}),e.fn.popmake.cookies=e.fn.popmake.cookies||{},e.extend(e.fn.popmake.cookies,{on_popup_open:function(e){var o=PUM.getPopup(this);o.on("pumAfterOpen",function(){o.popmake("setCookie",e)})},on_popup_close:function(e){var o=PUM.getPopup(this);o.on("pumBeforeClose",function(){o.popmake("setCookie",e)})},manual:function(e){var o=PUM.getPopup(this);o.on("pumSetCookie",function(){o.popmake("setCookie",e)})},form_success:function(e){var o=PUM.getPopup(this);o.on("pumFormSuccess",function(){o.popmake("setCookie",e)})},pum_sub_form_success:function(e){var o=PUM.getPopup(this);o.find("form.pum-sub-form").on("success",function(){o.popmake("setCookie",e)})},pum_sub_form_already_subscribed:function(e){var o=PUM.getPopup(this);o.find("form.pum-sub-form").on("success",function(){o.popmake("setCookie",e)})},ninja_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)},cf7_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)},gforms_form_success:function(o){return e.fn.popmake.cookies.form_success.apply(this,arguments)}}),e(o).on("pumInit",".pum",function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings"),n=t.cookies||[],i=null;if(n.length)for(e=0;n.length>e;e+=1)i=n[e],o.popmake("addCookie",i.event,i.settings)})}(jQuery,document);var pum_debug_mode=!1,pum_debug;!function(e,o){if(o=window.pum_vars||{debug_mode:!1},pum_debug_mode=void 0!==o.debug_mode&&o.debug_mode,pum_debug_mode||window.location.href.indexOf("pum_debug")===-1||(pum_debug_mode=!0),pum_debug_mode){var t=!1,n=!1,i=window.pum_debug_vars||{};pum_debug={odump:function(o){return e.extend({},o)},logo:function(){console.log(" -------------------------------------------------------------\n| ____ __ __ _ |\n| | _ \\ ___ _ __ _ _ _ __ | \\/ | __ _| | _____ _ __ |\n| | |_) / _ \\| '_ \\| | | | '_ \\ | |\\/| |/ _` | |/ / _ \\ '__| |\n| | __/ (_) | |_) | |_| | |_) | | | | | (_| | < __/ | |\n| |_| \\___/| .__/ \\__,_| .__/ |_| |_|\\__,_|_|\\_\\___|_| |\n| |_| |_| |\n -------------------------------------------------------------")},initialize:function(){t=!0,pum_debug.logo(),console.debug(i.debug_mode_enabled),console.log(i.debug_started_at,new Date),console.info(i.debug_more_info),pum_debug.divider(i.global_info),console.groupCollapsed(i.localized_vars),console.log("pum_vars:",pum_debug.odump(o)),e(document).trigger("pum_debug_initialize_localized_vars"),console.groupEnd(),e(document).trigger("pum_debug_initialize")},popup_event_header:function(e){var o=e.popmake("getSettings");n!==o.id&&(n=o.id,pum_debug.divider(i.single_popup_label+o.id+" - "+o.slug))},divider:function(e){var o=62,t=62,n=0,i=" "+new Array(o+1).join("-")+" ";"string"==typeof e?(t=o-e.length,n={left:Math.floor(t/2),right:Math.floor(t/2)},n.left+n.right===t-1&&n.right++,n.left=new Array(n.left+1).join(" "),n.right=new Array(n.right+1).join(" "),console.log(""+i+"\n|"+n.left+e+n.right+"|\n"+i)):console.log(i)},click_trigger:function(e,o){var t,n=e.popmake("getSettings"),s=[".popmake-"+n.id,".popmake-"+decodeURIComponent(n.slug),'a[href$="#popmake-'+n.id+'"]'];o.extra_selectors&&""!==o.extra_selectors&&s.push(o.extra_selectors),s=pum.hooks.applyFilters("pum.trigger.click_open.selectors",s,o,e),t=s.join(", "),console.log(i.label_selector,t)},trigger:function(o,t){if("string"==typeof i.triggers[t.type]){switch(console.groupCollapsed(i.triggers[t.type]),t.type){case"auto_open":console.log(i.label_delay,t.settings.delay),console.log(i.label_cookie,t.settings.cookie_name);break;case"click_open":pum_debug.click_trigger(o,t.settings),console.log(i.label_cookie,t.settings.cookie_name)}e(document).trigger("pum_debug_render_trigger",o,t),console.groupEnd()}},cookie:function(o,t){if("string"==typeof i.cookies[t.event]){switch(console.groupCollapsed(i.cookies[t.event]),t.event){case"on_popup_open":case"on_popup_close":case"manual":case"ninja_form_success":console.log(i.label_cookie,pum_debug.odump(t.settings))}e(document).trigger("pum_debug_render_trigger",o,t),console.groupEnd()}}},e(document).on("pumInit",".pum",function(){var o=PUM.getPopup(e(this)),n=o.popmake("getSettings"),s=n.triggers||[],p=n.cookies||[],r=n.conditions||[],a=0;if(t||(pum_debug.initialize(),pum_debug.divider(i.popups_initializing)),console.groupCollapsed(i.single_popup_label+n.id+" - "+n.slug),console.log(i.theme_id,n.theme_id),s.length){for(console.groupCollapsed(i.label_triggers),a=0;s.length>a;a++)pum_debug.trigger(o,s[a]);console.groupEnd()}if(p.length){for(console.groupCollapsed(i.label_cookies),a=0;p.length>a;a+=1)pum_debug.cookie(o,p[a]);console.groupEnd()}r.length&&(console.groupCollapsed(i.label_conditions),console.log(r),console.groupEnd()),console.groupCollapsed(i.label_popup_settings),console.log(i.label_mobile_disabled,n.disable_on_mobile!==!1),console.log(i.label_tablet_disabled,n.disable_on_tablet!==!1),console.log(i.label_display_settings,pum_debug.odump(n)),o.trigger("pum_debug_popup_settings"),console.groupEnd(),console.groupEnd()}).on("pumBeforeOpen",".pum",function(){var o=PUM.getPopup(e(this)),t=e.fn.popmake.last_open_trigger;pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumBeforeOpen"));try{t=e(e.fn.popmake.last_open_trigger),t=t.length?t:e.fn.popmake.last_open_trigger.toString()}catch(n){t=""}finally{console.log(i.label_triggers,[t])}console.groupEnd()}).on("pumOpenPrevented",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumOpenPrevented")),console.groupEnd()}).on("pumAfterOpen",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumAfterOpen")),console.groupEnd()}).on("pumSetupClose",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumSetupClose")),console.groupEnd()}).on("pumClosePrevented",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumClosePrevented")),console.groupEnd()}).on("pumBeforeClose",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumBeforeClose")),console.groupEnd()}).on("pumAfterClose",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumAfterClose")),console.groupEnd()}).on("pumBeforeReposition",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumBeforeReposition")),console.groupEnd()}).on("pumAfterReposition",".pum",function(){var o=PUM.getPopup(e(this));pum_debug.popup_event_header(o),console.groupCollapsed(i.label_event.replace("%s","pumAfterReposition")),console.groupEnd()}).on("pumCheckingCondition",".pum",function(o,t,n){var s=PUM.getPopup(e(this));pum_debug.popup_event_header(s),console.groupCollapsed(i.label_event.replace("%s","pumCheckingCondition")),console.log((n.not_operand?"(!) ":"")+n.target+": "+t,n),console.groupEnd()})}}(jQuery),function(e,o,t){"use strict";e.fn.popmake.defaults={id:null,slug:"",theme_id:null,cookies:[],triggers:[],conditions:[],mobile_disabled:null,tablet_disabled:null,custom_height_auto:!1,scrollable_content:!1,position_from_trigger:!1,position_fixed:!1,overlay_disabled:!1,stackable:!1,disable_reposition:!1,close_on_overlay_click:!1,close_on_esc_press:!1,close_on_f4_press:!1,disable_on_mobile:!1,disable_on_tablet:!1,size:"medium",responsive_min_width:"0%",responsive_max_width:"100%",custom_width:"640px",custom_height:"380px",animation_type:"fade",animation_speed:"350",animation_origin:"center top",location:"center top",position_top:"100",position_bottom:"0",position_left:"0",position_right:"0",zindex:"1999999999",close_button_delay:"0",meta:{display:{stackable:!1,overlay_disabled:!1,size:"medium",responsive_max_width:"100",responsive_max_width_unit:"%",responsive_min_width:"0",responsive_min_width_unit:"%",custom_width:"640",custom_width_unit:"px",custom_height:"380",custom_height_unit:"px",custom_height_auto:!1,location:"center top",position_top:100,position_left:0,position_bottom:0,position_right:0,position_fixed:!1,animation_type:"fade",animation_speed:350,animation_origin:"center top",scrollable_content:!1,disable_reposition:!1,position_from_trigger:!1,overlay_zindex:!1,zindex:"1999999999"},close:{overlay_click:!1,esc_press:!1,f4_press:!1,text:"",button_delay:0},click_open:[]},container:{active_class:"active",attr:{"class":"popmake"}},title:{attr:{"class":"popmake-title"}},content:{attr:{"class":"popmake-content"}},close:{close_speed:0,attr:{"class":"popmake-close"}},overlay:{attr:{id:"popmake-overlay","class":"popmake-overlay"}}}}(jQuery,document),function(e){"use strict";var o={openpopup:!1,openpopup_id:0,closepopup:!1,closedelay:0,redirect_enabled:!1,redirect:"",cookie:!1};window.PUM=window.PUM||{},window.PUM.forms=window.PUM.forms||{},e.extend(window.PUM.forms,{form:{validation:{errors:[]},responseHandler:function(e,o){var t=o.data;o.success?window.PUM.forms.form.success(e,t):window.PUM.forms.form.errors(e,t)},display_errors:function(e,o){window.PUM.forms.messages.add(e,o||this.validation.errors,"error")},beforeAjax:function(o){var t=o.find('[type="submit"]'),n=t.find(".pum-form__loader");window.PUM.forms.messages.clear_all(o),n.length||(n=e('<span class="pum-form__loader"></span>'),""!==t.attr("value")?n.insertAfter(t):t.append(n)),t.prop("disabled",!0),n.show(),o.addClass("pum-form--loading").removeClass("pum-form--errors")},afterAjax:function(e){var o=e.find('[type="submit"]'),t=o.find(".pum-form__loader");o.prop("disabled",!1),t.hide(),e.removeClass("pum-form--loading")},success:function(e,o){void 0!==o.message&&""!==o.message&&window.PUM.forms.messages.add(e,[{message:o.message}]),e.trigger("success",[o]),!e.data("noredirect")&&void 0!==e.data("redirect_enabled")&&o.redirect&&(""!==o.redirect?window.location=o.redirect:window.location.reload(!0))},errors:function(e,o){void 0!==o.errors&&o.errors.length&&(console.log(o.errors),window.PUM.forms.form.display_errors(e,o.errors),window.PUM.forms.messages.scroll_to_first(e),e.addClass("pum-form--errors").trigger("errors",[o]))},submit:function(o){var t=e(this),n=t.pumSerializeObject();o.preventDefault(),o.stopPropagation(),window.PUM.forms.form.beforeAjax(t),e.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_form",values:n}}).always(function(){window.PUM.forms.form.afterAjax(t)}).done(function(e){window.PUM.forms.form.responseHandler(t,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}},messages:{add:function(o,t,n){var i=o.find(".pum-form__messages"),s=0;if(n=n||"success",t=t||[],!i.length)switch(i=e('<div class="pum-form__messages">').hide(),pum_vars.message_position){case"bottom":o.append(i.addClass("pum-form__messages--bottom"));break;case"top":o.prepend(i.addClass("pum-form__messages--top"))}if(["bottom","top"].indexOf(pum_vars.message_position)>=0)for(;t.length>s;s++)this.add_message(i,t[s].message,n);else for(;t.length>s;s++)void 0!==t[s].field?this.add_field_error(o,t[s]):this.add_message(i,t[s].message,n);i.is(":hidden")&&e(".pum-form__message",i).length&&i.slideDown();
2
+ },add_message:function(o,t,n){var i=e('<p class="pum-form__message">').html(t);n=n||"success",i.addClass("pum-form__message--"+n),o.append(i),o.is(":visible")&&i.hide().slideDown()},add_field_error:function(o,t){var n=e('[name="'+t.field+'"]',o),i=n.parents(".pum-form__field").addClass("pum-form__field--error");this.add_message(i,t.message,"error")},clear_all:function(o,t){var n=o.find(".pum-form__messages"),i=n.find(".pum-form__message"),s=o.find(".pum-form__field.pum-form__field--error");t=t||!1,n.length&&i.slideUp("fast",function(){e(this).remove(),t&&n.hide()}),s.length&&s.removeClass("pum-form__field--error").find("p.pum-form__message").remove()},scroll_to_first:function(o){window.PUM.utilities.scrollTo(e(".pum-form__field.pum-form__field--error",o).eq(0))}},success:function(t,n){if(n=e.extend({},o,n)){var i=PUM.getPopup(t),s={},p=function(){n.redirect_enabled&&(""!==n.redirect?window.location=n.redirect:window.location.reload(!0))},r=function(){n.openpopup&&PUM.getPopup(n.openpopup_id).length?PUM.open(n.openpopup_id):p()};i.length&&(i.trigger("pumFormSuccess"),n.cookie&&(s=e.extend({name:"pum-"+PUM.getSetting(i,"id"),expires:"+1 year"},"object"==typeof n.cookie?n.cookie:{}),PUM.setCookie(i,s))),i.length&&n.closepopup?setTimeout(function(){i.popmake("close",r)},1e3*parseInt(n.closedelay)):r()}}})}(jQuery),function(e,o){"use strict";var t=function(){function e(e,o,t,n){return"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),r("actions",e,o,t,n)),l}function o(){var e=c.call(arguments),o=e.shift();return"string"==typeof o&&u("actions",o,e),l}function t(e,o){return"string"==typeof e&&p("actions",e,o),l}function n(e,o,t,n){return"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),r("filters",e,o,t,n)),l}function i(){var e=c.call(arguments),o=e.shift();return"string"==typeof o?u("filters",o,e):l}function s(e,o){return"string"==typeof e&&p("filters",e,o),l}function p(e,o,t,n){var i,s,p;if(m[e][o])if(t)if(i=m[e][o],n)for(p=i.length;p--;)s=i[p],s.callback===t&&s.context===n&&i.splice(p,1);else for(p=i.length;p--;)i[p].callback===t&&i.splice(p,1);else m[e][o]=[]}function r(e,o,t,n,i){var s={callback:t,priority:n,context:i},p=m[e][o];p?(p.push(s),p=a(p)):p=[s],m[e][o]=p}function a(e){for(var o,t,n,i=1,s=e.length;i<s;i++){for(o=e[i],t=i;(n=e[t-1])&&n.priority>o.priority;)e[t]=e[t-1],--t;e[t]=o}return e}function u(e,o,t){var n,i,s=m[e][o];if(!s)return"filters"===e&&t[0];if(i=s.length,"filters"===e)for(n=0;n<i;n++)t[0]=s[n].callback.apply(s[n].context,t);else for(n=0;n<i;n++)s[n].callback.apply(s[n].context,t);return"filters"!==e||t[0]}var c=Array.prototype.slice,l={removeFilter:s,applyFilters:i,addFilter:n,removeAction:t,doAction:o,addAction:e},m={actions:{},filters:{}};return l};e.pum=e.pum||{},e.pum.hooks=e.pum.hooks||new t}(window),function(e){"use strict";function o(){"undefined"!=typeof Marionette&&"undefined"!=typeof nfRadio&&(n=Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.popupMaker)},popupMaker:function(o,t,n,i){var s=e("#nf-form-"+i+"-cont"),p={};o.errors.length||("undefined"!=typeof o.data.actions&&(p.openpopup="undefined"!=typeof o.data.actions.openpopup,p.openpopup_id=p.openpopup?parseInt(o.data.actions.openpopup):0,p.closepopup="undefined"!=typeof o.data.actions.closepopup,p.closedelay=p.closepopup?parseInt(o.data.actions.closepopup):0,p.closepopup&&o.data.actions.closedelay&&(p.closedelay=parseInt(o.data.actions.closedelay))),window.PUM.forms.success(s,p))}}))}var t={},n=!1;e(document).ready(function(){n===!1&&o(),n!==!1&&new n,e(".gform_wrapper > form").each(function(){var o=e(this),n=o.attr("id").replace("gform_",""),i=o.find("input.gforms-pum"),s=!!i.length&&JSON.parse(i.val());s&&"object"==typeof s&&("object"==typeof s&&void 0!==s.closedelay&&s.closedelay.toString().length>=3&&(s.closedelay=s.closedelay/1e3),t[n]=s)})}).on("gform_confirmation_loaded",function(o,n){var i=e("#gform_confirmation_wrapper_"+n+",#gforms_confirmation_message_"+n),s=t[n]||!1;window.PUM.forms.success(i,s)}).on("wpcf7:mailsent",".wpcf7",function(o){var t=e(o.target),n=t.find("input.wpcf7-pum"),i=!!n.length&&JSON.parse(n.val());"object"==typeof i&&void 0!==i.closedelay&&i.closedelay.toString().length>=3&&(i.closedelay=i.closedelay/1e3),window.PUM.forms.success(t,i)})}(jQuery),function(e){"use strict";pum_vars&&void 0!==pum_vars.core_sub_forms_enabled&&!pum_vars.core_sub_forms_enabled||(window.PUM=window.PUM||{},window.PUM.newsletter=window.PUM.newsletter||{},e.extend(window.PUM.newsletter,{form:e.extend({},window.PUM.forms.form,{submit:function(o){var t=e(this),n=t.pumSerializeObject();o.preventDefault(),o.stopPropagation(),window.PUM.newsletter.form.beforeAjax(t),e.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_sub_form",values:n}}).always(function(){window.PUM.newsletter.form.afterAjax(t)}).done(function(e){window.PUM.newsletter.form.responseHandler(t,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}})}),e(document).on("submit","form.pum-sub-form",window.PUM.newsletter.form.submit).on("success","form.pum-sub-form",function(o,t){var n=e(o.target),i=n.data("settings")||{};n.trigger("pumNewsletterSuccess",[t]).addClass("pum-newsletter-success"),n[0].reset(),window.pum.hooks.doAction("pum-sub-form.success",t,n),"string"==typeof i.redirect&&""!==i.redirect&&(i.redirect=atob(i.redirect)),window.PUM.forms.success(n,i)}).on("error","form.pum-sub-form",function(o,t){var n=e(o.target);n.trigger("pumNewsletterError",[t]),window.pum.hooks.doAction("pum-sub-form.errors",t,n)}))}(jQuery),function(e,o,t){"use strict";e.extend(e.fn.popmake.methods,{addTrigger:function(o){return e.fn.popmake.triggers[o]?e.fn.popmake.triggers[o].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Trigger type "+o+" does not exist."),this)}}),e.fn.popmake.triggers={auto_open:function(o){var t=PUM.getPopup(this);setTimeout(function(){t.popmake("state","isOpen")||!t.popmake("checkCookies",o)&&t.popmake("checkConditions")&&(e.fn.popmake.last_open_trigger="Auto Open - Delay: "+o.delay,t.popmake("open"))},o.delay)},click_open:function(t){var n,i=PUM.getPopup(this),s=i.popmake("getSettings"),p=[".popmake-"+s.id,".popmake-"+decodeURIComponent(s.slug),'a[href$="#popmake-'+s.id+'"]'];t.extra_selectors&&""!==t.extra_selectors&&p.push(t.extra_selectors),p=pum.hooks.applyFilters("pum.trigger.click_open.selectors",p,t,i),n=p.join(", "),e(n).addClass("pum-trigger").css({cursor:"pointer"}),e(o).on("click.pumTrigger",n,function(o){var n=e(this),s=t.do_default||!1;i.has(n).length>0||i.popmake("state","isOpen")||!i.popmake("checkCookies",t)&&i.popmake("checkConditions")&&(n.data("do-default")?s=n.data("do-default"):(n.hasClass("do-default")||n.hasClass("popmake-do-default")||n.hasClass("pum-do-default"))&&(s=!0),o.ctrlKey||pum.hooks.applyFilters("pum.trigger.click_open.do_default",s,i,n)||(o.preventDefault(),o.stopPropagation()),e.fn.popmake.last_open_trigger=n,i.popmake("open"))})},admin_debug:function(){PUM.getPopup(this).popmake("open")}},e(o).on("pumInit",".pum",function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings"),n=t.triggers||[],i=null;if(n.length)for(e=0;n.length>e;e+=1)i=n[e],o.popmake("addTrigger",i.type,i.settings)})}(jQuery,document),function(e,o,t){"use strict";function n(e,o,t){var i=o[0];o.length>1?(e[i]||(e[i]=o[1]?{}:[]),n(e[i],o.slice(1),t)):(i||(i=e.length),e[i]=t)}var i="color,date,datetime,datetime-local,email,hidden,month,number,password,range,search,tel,text,time,url,week".split(","),s="select,textarea".split(","),p=/\[([^\]]*)\]/g;Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(void 0===this||null===this)throw new TypeError;var o=Object(this),t=o.length>>>0;if(0===t)return-1;var n=0;if(arguments.length>0&&(n=Number(arguments[1]),n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n)))),n>=t)return-1;for(var i=n>=0?n:Math.max(t-Math.abs(n),0);i<t;i++)if(i in o&&o[i]===e)return i;return-1}),e.fn.popmake.utilities={scrollTo:function(o,t){var n=e(o)||e();n.length&&e("html, body").animate({scrollTop:n.offset().top-100},1e3,"swing",function(){var e=n.find(':input:not([type="button"]):not([type="hidden"]):not(button)').eq(0);e.hasClass("wp-editor-area")?tinyMCE.execCommand("mceFocus",!1,e.attr("id")):e.focus(),"function"==typeof t&&t()})},inArray:function(e,o){return!!~o.indexOf(e)},convert_hex:function(e,o){e=e.replace("#","");var t=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),i=parseInt(e.substring(4,6),16);return"rgba("+t+","+n+","+i+","+o/100+")"},debounce:function(e,o){var t;return function(){var n=this,i=arguments;window.clearTimeout(t),t=window.setTimeout(function(){e.apply(n,i)},o)}},throttle:function(e,o){var t=!1,n=function(){t=!1};return function(){t||(e.apply(this,arguments),window.setTimeout(n,o),t=!0)}},getXPath:function(o){var t,n,i,s,p,r=[];return e.each(e(o).parents(),function(o,a){return t=e(a),n=t.attr("id")||"",i=t.attr("class")||"",s=t.get(0).tagName.toLowerCase(),p=t.parent().children(s).index(t),"body"!==s&&(i.length>0&&(i=i.split(" "),i=i[0]),void r.push(s+(n.length>0?"#"+n:i.length>0?"."+i.split(" ").join("."):":eq("+p+")")))}),r.reverse().join(" > ")},strtotime:function(e,o){function n(e,o,n){var i,s=c[o];s!==t&&(i=s-u.getDay(),0===i?i=7*n:i>0&&"last"===e?i-=7:i<0&&"next"===e&&(i+=7),u.setDate(u.getDate()+i))}function i(e){var o=e.split(" "),t=o[0],i=o[1].substring(0,3),s=/\d+/.test(t),p="ago"===o[2],r=("last"===t?-1:1)*(p?-1:1);if(s&&(r*=parseInt(t,10)),l.hasOwnProperty(i)&&!o[1].match(/^mon(day|\.)?$/i))return u["set"+l[i]](u["get"+l[i]]()+r);if("wee"===i)return u.setDate(u.getDate()+7*r);if("next"===t||"last"===t)n(t,i,r);else if(!s)return!1;return!0}var s,p,r,a,u,c,l,m,d,f,g,_=!1;if(!e)return _;if(e=e.replace(/^\s+|\s+$/g,"").replace(/\s{2,}/g," ").replace(/[\t\r\n]/g,"").toLowerCase(),p=e.match(/^(\d{1,4})([\-\.\/\:])(\d{1,2})([\-\.\/\:])(\d{1,4})(?:\s(\d{1,2}):(\d{2})?:?(\d{2})?)?(?:\s([A-Z]+)?)?$/),p&&p[2]===p[4])if(p[1]>1901)switch(p[2]){case"-":return p[3]>12||p[5]>31?_:new Date(p[1],parseInt(p[3],10)-1,p[5],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3;case".":return _;case"/":return p[3]>12||p[5]>31?_:new Date(p[1],parseInt(p[3],10)-1,p[5],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3}else if(p[5]>1901)switch(p[2]){case"-":return p[3]>12||p[1]>31?_:new Date(p[5],parseInt(p[3],10)-1,p[1],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3;case".":return p[3]>12||p[1]>31?_:new Date(p[5],parseInt(p[3],10)-1,p[1],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3;case"/":return p[1]>12||p[3]>31?_:new Date(p[5],parseInt(p[1],10)-1,p[3],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3}else switch(p[2]){case"-":return p[3]>12||p[5]>31||p[1]<70&&p[1]>38?_:(a=p[1]>=0&&p[1]<=38?+p[1]+2e3:p[1],new Date(a,parseInt(p[3],10)-1,p[5],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3);case".":return p[5]>=70?p[3]>12||p[1]>31?_:new Date(p[5],parseInt(p[3],10)-1,p[1],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3:p[5]<60&&!p[6]?p[1]>23||p[3]>59?_:(r=new Date,new Date(r.getFullYear(),r.getMonth(),r.getDate(),p[1]||0,p[3]||0,p[5]||0,p[9]||0)/1e3):_;case"/":return p[1]>12||p[3]>31||p[5]<70&&p[5]>38?_:(a=p[5]>=0&&p[5]<=38?+p[5]+2e3:p[5],new Date(a,parseInt(p[1],10)-1,p[3],p[6]||0,p[7]||0,p[8]||0,p[9]||0)/1e3);case":":return p[1]>23||p[3]>59||p[5]>59?_:(r=new Date,new Date(r.getFullYear(),r.getMonth(),r.getDate(),p[1]||0,p[3]||0,p[5]||0)/1e3)}if("now"===e)return null===o||isNaN(o)?(new Date).getTime()/1e3||0:o||0;if(s=Date.parse(e),!isNaN(s))return s/1e3||0;if(u=o?new Date(1e3*o):new Date,c={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},l={yea:"FullYear",mon:"Month",day:"Date",hou:"Hours",min:"Minutes",sec:"Seconds"},d="(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?)",f="([+-]?\\d+\\s"+d+"|(last|next)\\s"+d+")(\\sago)?",p=e.match(new RegExp(f,"gi")),!p)return _;for(g=0,m=p.length;g<m;g+=1)if(!i(p[g]))return _;return u.getTime()/1e3},serializeObject:function(o){e.extend({},o);var t={},r=e.extend(!0,{include:[],exclude:[],includeByClass:""},o);return this.find(":input").each(function(){var o;!this.name||this.disabled||window.PUM.utilities.inArray(this.name,r.exclude)||r.include.length&&!window.PUM.utilities.inArray(this.name,r.include)||this.className.indexOf(r.includeByClass)===-1||(o=this.name.replace(p,"[$1").split("["),o[0]&&(this.checked||window.PUM.utilities.inArray(this.type,i)||window.PUM.utilities.inArray(this.nodeName.toLowerCase(),s))&&("checkbox"===this.type&&o.push(""),n(t,o,e(this).val())))}),t}},e.fn.pumSerializeObject=e.fn.popmake.utilities.serializeObject,e.fn.popmake.utilies=e.fn.popmake.utilities,window.PUM=window.PUM||{},window.PUM.utilities=window.PUM.utilities||{},window.PUM.utilities=e.extend(window.PUM.utilities,e.fn.popmake.utilities)}(jQuery,document),function(e,o,t){"use strict";e.fn.popmake.version=1.7,e.fn.popmake.last_open_popup=null,e(o).ready(function(){e(".pum").popmake(),e(o).trigger("pumInitialized"),"object"==typeof pum_vars.form_success&&(pum_vars.form_success=e.extend({popup_id:null,settings:{}}),PUM.forms.success(pum_vars.form_success.popup_id,pum_vars.form_success.settings))}),e(".pum").on("pumInit",function(){var e=PUM.getPopup(this),o=PUM.getSetting(e,"id");$forms=e.find("form"),$forms.length&&$forms.prepend('<input type="hidden" name="pum_form_popup_id" value="'+o+'" />')})}(jQuery);
classes/Abstract/Upgrade/Popups.php CHANGED
@@ -16,142 +16,22 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  * @see PUM_Interface_Batch_PrefetchProcess
17
  * @see PUM_Interface_Upgrade_Posts
18
  */
19
- abstract class PUM_Abstract_Upgrade_Popups extends PUM_Abstract_Upgrade implements PUM_Interface_Upgrade_Posts {
20
 
21
  /**
22
- * Batch process ID.
23
  *
24
  * @var string
25
  */
26
- public $batch_id;
27
 
28
  /**
29
- * Number of popups to migrate per step.
30
  *
31
- * @var int
32
  */
33
- public $per_step = 1;
34
-
35
- public function init( $data = null ) {
36
- }
37
-
38
- public function pre_fetch() {
39
- $total_to_migrate = $this->get_total_count();
40
-
41
- if ( false === $total_to_migrate ) {
42
- $popups = $this->get_popups( array(
43
- 'fields' => 'ids',
44
- 'posts_per_page' => - 1,
45
- ) );
46
-
47
- $total_to_migrate = count( $popups );
48
-
49
- $this->set_total_count( $total_to_migrate );
50
- }
51
- }
52
-
53
- /**
54
- * Gets the results of a custom popup query.
55
- *
56
- * @param array $args
57
- *
58
- * @return array
59
- */
60
- public function get_popups( $args = array() ) {
61
- return get_posts( $this->query_args( $args ) );
62
- }
63
-
64
- /**
65
- * Generates an array of query args for this upgrade.
66
- *
67
- * @uses PUM_Abstract_Upgrade_Popups::custom_query_args();
68
- *
69
- * @param array $args
70
- *
71
- * @return array
72
- */
73
- public function query_args( $args = array() ) {
74
-
75
- $defaults = wp_parse_args( $this->custom_query_args(), array(
76
- 'post_status' => array( 'publish', 'pending', 'draft', 'auto-draft', 'future', 'private', 'inherit', 'trash' ),
77
- 'post_type' => 'popup',
78
- ) );
79
-
80
- return wp_parse_args( $args, $defaults );
81
- }
82
-
83
-
84
- /**
85
- * @return array
86
- */
87
- public function custom_query_args() {
88
- return array();
89
- }
90
-
91
- /**
92
- * Executes a single step in the batch process.
93
- *
94
- * @return int|string|WP_Error Next step number, 'done', or a WP_Error object.
95
- */
96
- public function process_step() {
97
- $current_count = $this->get_current_count();
98
-
99
- $popups = $this->get_popups( array(
100
- 'fields' => 'ids',
101
- 'posts_per_page' => $this->per_step,
102
- 'offset' => $this->get_offset(),
103
- 'orderby' => 'ID',
104
- 'order' => 'ASC',
105
- ) );
106
-
107
- if ( empty( $popups ) ) {
108
- return 'done';
109
- }
110
-
111
- $updated = array();
112
-
113
- foreach ( $popups as $popup_id ) {
114
- $this->process_popup( $popup_id );
115
- $updated[] = $popup_id;
116
- }
117
-
118
- // Deduplicate.
119
- $updated = wp_parse_id_list( $updated );
120
-
121
- $this->set_current_count( absint( $current_count ) + count( $updated ) );
122
-
123
- return ++ $this->step;
124
- }
125
-
126
- /**
127
- * Retrieves a message for the given code.
128
- *
129
- * @param string $code Message code.
130
- *
131
- * @return string Message.
132
- */
133
- public function get_message( $code ) {
134
-
135
- switch ( $code ) {
136
-
137
- case 'start':
138
- $total_count = $this->get_total_count();
139
-
140
- $message = sprintf( _n( 'Updating %d popup for v%s compatibility.', 'Updating %d popups for v%s compatibility.', $total_count, 'popup-maker' ), number_format_i18n( $total_count ), '1.7' );
141
- break;
142
-
143
- case 'done':
144
- $final_count = $this->get_current_count();
145
-
146
- $message = sprintf( _n( '%s popup was updated successfully.', '%s popups were updated successfully.', $final_count, 'popup-maker' ), number_format_i18n( $final_count ) );
147
- break;
148
-
149
- default:
150
- $message = '';
151
- break;
152
- }
153
-
154
- return $message;
155
  }
156
 
157
  /**
@@ -160,4 +40,5 @@ abstract class PUM_Abstract_Upgrade_Popups extends PUM_Abstract_Upgrade implemen
160
  * @param int $popup_id
161
  */
162
  abstract public function process_popup( $popup_id = 0 );
 
163
  }
16
  * @see PUM_Interface_Batch_PrefetchProcess
17
  * @see PUM_Interface_Upgrade_Posts
18
  */
19
+ abstract class PUM_Abstract_Upgrade_Popups extends PUM_Abstract_Upgrade_Posts implements PUM_Interface_Upgrade_Posts {
20
 
21
  /**
22
+ * Post type.
23
  *
24
  * @var string
25
  */
26
+ public $post_type = 'popup';
27
 
28
  /**
29
+ * Process needed upgrades on each post.
30
  *
31
+ * @param int $post_id
32
  */
33
+ public function process_post( $post_id = 0 ) {
34
+ $this->process_popup( $post_id );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  }
36
 
37
  /**
40
  * @param int $popup_id
41
  */
42
  abstract public function process_popup( $popup_id = 0 );
43
+
44
  }
classes/Abstract/Upgrade/Themes.php CHANGED
@@ -16,140 +16,22 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  * @see PUM_Interface_Batch_PrefetchProcess
17
  * @see PUM_Interface_Upgrade_Posts
18
  */
19
- abstract class PUM_Abstract_Upgrade_Themes extends PUM_Abstract_Upgrade implements PUM_Interface_Upgrade_Posts {
20
 
21
  /**
22
- * Batch process ID.
23
  *
24
  * @var string
25
  */
26
- public $batch_id = '';
27
 
28
  /**
29
- * Number of popups to migrate per step.
30
  *
31
- * @var int
32
  */
33
- public $per_step = 1;
34
-
35
- public function init( $data = null ) {}
36
-
37
- /**
38
- * Count all themes to be upgraded.
39
- */
40
- public function pre_fetch() {
41
- $total_to_migrate = $this->get_total_count();
42
-
43
- if ( false === $total_to_migrate ) {
44
- $themes = $this->get_themes( array(
45
- 'fields' => 'ids',
46
- 'posts_per_page' => - 1,
47
- ) );
48
-
49
- $total_to_migrate = count( $themes );
50
-
51
- $this->set_total_count( $total_to_migrate );
52
- }
53
- }
54
-
55
- /**
56
- * Gets the results of a custom popup query.
57
- *
58
- * @param array $args
59
- *
60
- * @return array
61
- */
62
- public function get_themes( $args = array() ) {
63
- return get_posts( $this->query_args( $args ) );
64
- }
65
-
66
- /**
67
- * Generates an array of query args for this upgrade.
68
- *
69
- * @uses PUM_Abstract_Upgrade_Themes::custom_query_args();
70
- *
71
- * @param array $args
72
- *
73
- * @return array
74
- */
75
- public function query_args( $args = array() ) {
76
-
77
- $defaults = wp_parse_args( $this->custom_query_args(), array(
78
- 'post_status' => 'any',
79
- 'post_type' => 'popup_theme',
80
- ) );
81
-
82
- return wp_parse_args( $args, $defaults );
83
- }
84
-
85
-
86
- public function custom_query_args() {
87
- return array();
88
- }
89
-
90
- /**
91
- * Executes a single step in the batch process.
92
- *
93
- * @return int|string|WP_Error Next step number, 'done', or a WP_Error object.
94
- */
95
- public function process_step() {
96
- $current_count = $this->get_current_count();
97
-
98
- $themes = $this->get_themes( array(
99
- 'fields' => 'ids',
100
- 'posts_per_page' => $this->per_step,
101
- 'offset' => $this->get_offset(),
102
- 'orderby' => 'ID',
103
- 'order' => 'ASC',
104
- ) );
105
-
106
- if ( empty( $themes ) ) {
107
- return 'done';
108
- }
109
-
110
- $updated = array();
111
-
112
- foreach ( $themes as $theme_id ) {
113
- $updated[] = $this->process_theme( $theme_id );
114
- }
115
-
116
- // Deduplicate.
117
- $updated = wp_parse_id_list( $updated );
118
-
119
- $this->set_current_count( absint( $current_count ) + count( $updated ) );
120
-
121
- return ++ $this->step;
122
- }
123
-
124
- /**
125
- * Retrieves a message for the given code.
126
- *
127
- * @param string $code Message code.
128
- *
129
- * @return string Message.
130
- */
131
- public function get_message( $code ) {
132
-
133
- switch ( $code ) {
134
-
135
- case 'start':
136
- $total_count = $this->get_total_count();
137
-
138
- $message = sprintf( _n( 'Updating %d popup theme for v%s compatibility.', 'Updating %d popup themes for v%s compatibility.', $total_count, 'popup-maker' ), number_format_i18n( $total_count ), '1.7' );
139
- break;
140
-
141
- case 'done':
142
- $final_count = $this->get_current_count();
143
-
144
- $message = sprintf( _n( '%s popup theme was updated successfully.', '%s popup themes were updated successfully.', $final_count, 'popup-maker' ), number_format_i18n( $final_count ) );
145
- break;
146
-
147
- default:
148
- $message = '';
149
- break;
150
- }
151
-
152
- return $message;
153
  }
154
 
155
  /**
@@ -160,4 +42,5 @@ abstract class PUM_Abstract_Upgrade_Themes extends PUM_Abstract_Upgrade implemen
160
  * @return int $theme_id
161
  */
162
  abstract public function process_theme( $theme_id = 0 );
 
163
  }
16
  * @see PUM_Interface_Batch_PrefetchProcess
17
  * @see PUM_Interface_Upgrade_Posts
18
  */
19
+ abstract class PUM_Abstract_Upgrade_Themes extends PUM_Abstract_Upgrade_Posts implements PUM_Interface_Upgrade_Posts {
20
 
21
  /**
22
+ * Post type.
23
  *
24
  * @var string
25
  */
26
+ public $post_type = 'popup_theme';
27
 
28
  /**
29
+ * Process needed upgrades on each post.
30
  *
31
+ * @param int $post_id
32
  */
33
+ public function process_post( $post_id = 0 ) {
34
+ $this->process_theme( $post_id );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  }
36
 
37
  /**
42
  * @return int $theme_id
43
  */
44
  abstract public function process_theme( $theme_id = 0 );
45
+
46
  }
classes/Admin/Popups.php CHANGED
@@ -162,7 +162,12 @@ class PUM_Admin_Popups {
162
  ) ) ); ?>;
163
  </script>
164
 
165
- <div id="pum-popup-settings-container" class="pum-popup-settings-container"></div><?php
 
 
 
 
 
166
  }
167
 
168
  /**
@@ -304,7 +309,8 @@ class PUM_Admin_Popups {
304
  'main' => __( 'General Settings', 'popup-maker' ),
305
  ),
306
  'triggers' => array(
307
- 'main' => __( 'Triggers', 'popup-maker' ),
 
308
  ),
309
  'targeting' => array(
310
  'main' => __( 'Conditions', 'popup-maker' ),
@@ -354,6 +360,13 @@ class PUM_Admin_Popups {
354
  'priority' => 20,
355
  ),
356
  ),
 
 
 
 
 
 
 
357
  ) ),
358
  'targeting' => apply_filters( 'pum_popup_targeting_settings_fields', array(
359
  'main' => array(
@@ -639,10 +652,10 @@ class PUM_Admin_Popups {
639
  'label' => __( 'Popup Z-Index', 'popup-maker' ),
640
  'desc' => __( 'Change the z-index layer level for the popup.', 'popup-maker' ),
641
  'type' => 'number',
642
- 'std' => 1999999999,
643
- 'priority' => 40,
644
  'min' => 999,
645
  'max' => 2147483647,
 
 
646
  ),
647
  ),
648
  ) ),
162
  ) ) ); ?>;
163
  </script>
164
 
165
+ <div id="pum-popup-settings-container" class="pum-popup-settings-container">
166
+ <div class="pum-no-js" style="padding: 0 12px;">
167
+ <p><?php printf( __( 'If you are seeing this, the most likely cause is that there are Javascript errors on this page. %sView troubleshooting guide%s', 'popup-maker' ), '<a href="https://docs.wppopupmaker.com/article/373-checking-for-javascript-errors" target="_blank">', '</a>' ); ?></p>
168
+ </div>
169
+ </div>
170
+ <?php
171
  }
172
 
173
  /**
309
  'main' => __( 'General Settings', 'popup-maker' ),
310
  ),
311
  'triggers' => array(
312
+ 'main' => __( 'Triggers & Cookies', 'popup-maker' ),
313
+ 'advanced' => __( 'Advanced', 'popup-maker' ),
314
  ),
315
  'targeting' => array(
316
  'main' => __( 'Conditions', 'popup-maker' ),
360
  'priority' => 20,
361
  ),
362
  ),
363
+ 'advanced' => array(
364
+ 'disable_form_reopen' => array(
365
+ 'label' => __( 'Disable automatic re-triggering of popup after non-ajax form submission.', 'popup-maker' ),
366
+ 'type' => 'checkbox',
367
+ 'priority' => 10,
368
+ ),
369
+ ),
370
  ) ),
371
  'targeting' => apply_filters( 'pum_popup_targeting_settings_fields', array(
372
  'main' => array(
652
  'label' => __( 'Popup Z-Index', 'popup-maker' ),
653
  'desc' => __( 'Change the z-index layer level for the popup.', 'popup-maker' ),
654
  'type' => 'number',
 
 
655
  'min' => 999,
656
  'max' => 2147483647,
657
+ 'std' => 1999999999,
658
+ 'priority' => 40,
659
  ),
660
  ),
661
  ) ),
classes/Admin/Settings.php CHANGED
@@ -411,7 +411,11 @@ class PUM_Admin_Settings {
411
 
412
  <h1><?php _e( 'Popup Maker Settings', 'popup-maker' ); ?></h1>
413
 
414
- <div id="pum-settings-container" class="pum-settings-container"></div>
 
 
 
 
415
 
416
  <script type="text/javascript">
417
  window.pum_settings_editor = <?php echo json_encode( apply_filters( 'pum_settings_editor_args', array(
411
 
412
  <h1><?php _e( 'Popup Maker Settings', 'popup-maker' ); ?></h1>
413
 
414
+ <div id="pum-settings-container" class="pum-settings-container">
415
+ <div class="pum-no-js" style="padding: 0 12px;">
416
+ <p><?php printf( __( 'If you are seeing this, the most likely cause is that there are Javascript errors on this page. %sView troubleshooting guide%s', 'popup-maker' ), '<a href="https://docs.wppopupmaker.com/article/373-checking-for-javascript-errors" target="_blank">', '</a>' ); ?></p>
417
+ </div>
418
+ </div>
419
 
420
  <script type="text/javascript">
421
  window.pum_settings_editor = <?php echo json_encode( apply_filters( 'pum_settings_editor_args', array(
classes/AssetCache.php CHANGED
@@ -51,12 +51,13 @@ class PUM_AssetCache {
51
  self::$js_url = self::$asset_url . 'js/';
52
  self::$css_url = self::$asset_url . 'css/';
53
 
54
- add_action( 'pum_extension_updated', array( __CLASS__, 'regenerate_cache' ) );
55
- add_action( 'pum_extension_deactivated', array( __CLASS__, 'regenerate_cache' ) );
56
- add_action( 'pum_extension_activated', array( __CLASS__, 'regenerate_cache' ) );
57
- add_action( 'pum_regenerate_asset_cache', array( __CLASS__, 'regenerate_cache' ) );
58
- add_action( 'pum_save_popup', array( __CLASS__, 'regenerate_cache' ) );
59
- add_action( 'popmake_save_popup_theme', array( __CLASS__, 'regenerate_cache' ) );
 
60
 
61
  // Prevent reinitialization.
62
  self::$initialized = true;
51
  self::$js_url = self::$asset_url . 'js/';
52
  self::$css_url = self::$asset_url . 'css/';
53
 
54
+ add_action( 'pum_extension_updated', array( __CLASS__, 'reset_cache' ) );
55
+ add_action( 'pum_extension_deactivated', array( __CLASS__, 'reset_cache' ) );
56
+ add_action( 'pum_extension_activated', array( __CLASS__, 'reset_cache' ) );
57
+ add_action( 'pum_regenerate_asset_cache', array( __CLASS__, 'reset_cache' ) );
58
+ add_action( 'pum_save_popup', array( __CLASS__, 'reset_cache' ) );
59
+ add_action( 'popmake_save_popup_theme', array( __CLASS__, 'reset_cache' ) );
60
+ add_action( 'pum_update_core_version', array( __CLASS__, 'reset_cache' ) );
61
 
62
  // Prevent reinitialization.
63
  self::$initialized = true;
classes/Integrations.php CHANGED
@@ -199,7 +199,7 @@ class PUM_Integrations {
199
  /**
200
  * If submission exists for this popup remove auto open triggers and add an admin_debug trigger to reshow the popup.
201
  */
202
- if ( $form_popup_id && $popup_id == $form_popup_id ) {
203
  $triggers = ! empty( $settings['triggers'] ) ? $settings['triggers'] : array();
204
 
205
  foreach ( $triggers as $key => $trigger ) {
199
  /**
200
  * If submission exists for this popup remove auto open triggers and add an admin_debug trigger to reshow the popup.
201
  */
202
+ if ( ( empty( $settings['disable_form_reopen'] ) || ! $settings['disable_form_reopen'] ) && $form_popup_id && $popup_id == $form_popup_id ) {
203
  $triggers = ! empty( $settings['triggers'] ) ? $settings['triggers'] : array();
204
 
205
  foreach ( $triggers as $key => $trigger ) {
classes/Triggers.php CHANGED
@@ -180,6 +180,13 @@ class PUM_Triggers {
180
 
181
  ) );
182
 
 
 
 
 
 
 
 
183
  // @deprecated filter.
184
  $old_triggers = apply_filters( 'pum_get_triggers', array() );
185
 
180
 
181
  ) );
182
 
183
+ foreach( $triggers as $key => $trigger ) {
184
+ $triggers[ $key ]['fields'] = PUM_Admin_Helpers::parse_tab_fields( $triggers[ $key ]['fields'], array(
185
+ 'has_subtabs' => false,
186
+ 'name' => '%s',
187
+ ) );
188
+ }
189
+
190
  // @deprecated filter.
191
  $old_triggers = apply_filters( 'pum_get_triggers', array() );
192
 
classes/Upsell.php CHANGED
@@ -4,25 +4,21 @@ class PUM_Upsell {
4
 
5
 
6
  public static function init() {
7
-
8
- if ( ! pum_extension_enabled( 'forced-interaction' ) ) {
9
- add_filter( 'pum_popup_close_settings_fields', array( __CLASS__, 'fi_promotion' ) );
10
- }
11
-
12
- if ( ! pum_extension_enabled( 'advanced-targetng-conditions' ) ) {
13
- add_filter( 'pum_popup_targeting_settings_fields', array( __CLASS__, 'atc_promotion' ) );
14
- }
15
-
16
-
17
  }
18
 
19
  public static function fi_promotion( $fields ) {
 
 
 
 
20
  ob_start();
21
 
22
  ?>
23
 
24
  <div class="pum-upgrade-tip">
25
- <img src="<?php echo Popup_Maker::$URL; ?>/assets/images/upsell-icon-forced-interaction.png"/>
26
  <?php printf( _x( 'Want to disable the close button? Check out %sForced Interaction%s!', '%s represent the opening & closing link html', 'popup-maker' ), '<a href="https://wppopupmaker.com/extensions/forced-interaction/?utm_source=plugin-theme-editor&utm_medium=text-link&utm_campaign=Upsell&utm_content=close-button-settings" target="_blank">', '</a>' ); ?>
27
  </div>
28
 
@@ -42,12 +38,16 @@ class PUM_Upsell {
42
  }
43
 
44
  public static function atc_promotion( $fields ) {
 
 
 
 
45
  ob_start();
46
 
47
  ?>
48
 
49
  <div class="pum-upgrade-tip">
50
- <img src="<?php echo Popup_Maker::$URL; ?>/assets/images/logo.png" height="28"/>
51
  <?php printf( __( 'Need more %sadvanced targeting%s options?', 'popup-maker' ), '<a href="https://wppopupmaker.com/extensions/advanced-targeting-conditions/?utm_campaign=Upsell&utm_source=plugin-popup-editor&utm_medium=text-link&utm_content=conditions-editor" target="_blank">', '</a>' ); ?>
52
  </div>
53
 
4
 
5
 
6
  public static function init() {
7
+ add_filter( 'pum_popup_close_settings_fields', array( __CLASS__, 'fi_promotion' ) );
8
+ add_filter( 'pum_popup_targeting_settings_fields', array( __CLASS__, 'atc_promotion' ) );
 
 
 
 
 
 
 
 
9
  }
10
 
11
  public static function fi_promotion( $fields ) {
12
+ if ( pum_extension_enabled( 'forced-interaction' ) ) {
13
+ return $fields;
14
+ }
15
+
16
  ob_start();
17
 
18
  ?>
19
 
20
  <div class="pum-upgrade-tip">
21
+ <img src="<?php echo Popup_Maker::$URL; ?>/assets/images/upsell-icon-forced-interaction.png" />
22
  <?php printf( _x( 'Want to disable the close button? Check out %sForced Interaction%s!', '%s represent the opening & closing link html', 'popup-maker' ), '<a href="https://wppopupmaker.com/extensions/forced-interaction/?utm_source=plugin-theme-editor&utm_medium=text-link&utm_campaign=Upsell&utm_content=close-button-settings" target="_blank">', '</a>' ); ?>
23
  </div>
24
 
38
  }
39
 
40
  public static function atc_promotion( $fields ) {
41
+ if ( pum_extension_enabled( 'advanced-targetng-conditions' ) ) {
42
+ return $fields;
43
+ }
44
+
45
  ob_start();
46
 
47
  ?>
48
 
49
  <div class="pum-upgrade-tip">
50
+ <img src="<?php echo Popup_Maker::$URL; ?>/assets/images/logo.png" height="28" />
51
  <?php printf( __( 'Need more %sadvanced targeting%s options?', 'popup-maker' ), '<a href="https://wppopupmaker.com/extensions/advanced-targeting-conditions/?utm_campaign=Upsell&utm_source=plugin-popup-editor&utm_medium=text-link&utm_content=conditions-editor" target="_blank">', '</a>' ); ?>
52
  </div>
53
 
includes/class-pum.php CHANGED
@@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) {
7
 
8
  class PUM {
9
 
10
- const VER = '1.7.16';
11
 
12
  const DB_VER = 8;
13
 
7
 
8
  class PUM {
9
 
10
+ const VER = '1.7.17';
11
 
12
  const DB_VER = 8;
13
 
includes/extension-list.json CHANGED
@@ -151,6 +151,28 @@
151
  "package": "",
152
  "download_link": "",
153
  "image": "https:\/\/wppopupmaker.com\/wp-content\/uploads\/edd\/2015\/12\/Aweber-Integration.png",
154
- "excerpt": "With this extension, you can now easily and quickly add a sign up form to your popups to add users to your mailing list in MailChimp."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  }
156
  ]
151
  "package": "",
152
  "download_link": "",
153
  "image": "https:\/\/wppopupmaker.com\/wp-content\/uploads\/edd\/2015\/12\/Aweber-Integration.png",
154
+ "excerpt": "With this extension, you can now easily and quickly add a sign up form to your popups to add users to your mailing list in Aweber."
155
+ },
156
+ {
157
+ "new_version": "1.1.0",
158
+ "name": "Scheduling",
159
+ "slug": "scheduling",
160
+ "url": "https:\/\/wppopupmaker.com\/extensions\/scheduling\/?changelog=1",
161
+ "homepage": "https:\/\/wppopupmaker.com\/extensions\/scheduling\/",
162
+ "package": "",
163
+ "download_link": "",
164
+ "image": "https:\/\/wppopupmaker.com\/wp-content\/uploads\/edd\/2016\/12\/scheduling.png",
165
+ "excerpt": "Add scheduling options to your popups. With multiple schedule types, you can precisely schedule your popups in just a few minutes."
166
+ },
167
+ {
168
+ "new_version": "1.0.0",
169
+ "name": "Videos",
170
+ "slug": "videos",
171
+ "url": "https:\/\/wppopupmaker.com\/extensions\/videos\/?changelog=1",
172
+ "homepage": "https:\/\/wppopupmaker.com\/extensions\/videos\/",
173
+ "package": "",
174
+ "download_link": "",
175
+ "image": "https:\/\/wppopupmaker.com\/wp-content\/uploads\/edd\/2017\/03\/video-popups.jpg",
176
+ "excerpt": "Create the ultimate WordPress Video Popup for your marketing videos in minutes - customize your player, control video play\/pause commands, and much more."
177
  }
178
  ]
includes/extensions-functions.php CHANGED
@@ -6,19 +6,13 @@ if ( ! defined( 'ABSPATH' ) ) {
6
  }
7
 
8
  function pum_enabled_extensions() {
9
- static $enabled_extensions;
10
-
11
- if ( ! isset( $enabled_extensions ) ) {
12
- $enabled_extensions = apply_filters( 'pum_enabled_extensions', array() );
13
- }
14
-
15
- return $enabled_extensions;
16
  }
17
 
18
  function pum_extension_enabled( $extension = '' ) {
19
  $enabled_extensions = pum_enabled_extensions();
20
 
21
- return ! empty( $extension ) && in_array( $extension, $enabled_extensions );
22
  }
23
 
24
  function popmake_available_extensions() {
6
  }
7
 
8
  function pum_enabled_extensions() {
9
+ return apply_filters( 'pum_enabled_extensions', array() );
 
 
 
 
 
 
10
  }
11
 
12
  function pum_extension_enabled( $extension = '' ) {
13
  $enabled_extensions = pum_enabled_extensions();
14
 
15
+ return ! empty( $extension ) && array_key_exists( $extension, $enabled_extensions );
16
  }
17
 
18
  function popmake_available_extensions() {
languages/popup-maker.pot CHANGED
@@ -22,15 +22,15 @@ msgid_plural "%s items were successfully processed."
22
  msgstr[0] ""
23
  msgstr[1] ""
24
 
25
- #: classes/Abstract/Upgrade/Popups.php:140
26
- msgid "Updating %d popup for v%s compatibility."
27
- msgid_plural "Updating %d popups for v%s compatibility."
28
  msgstr[0] ""
29
  msgstr[1] ""
30
 
31
- #: classes/Abstract/Upgrade/Popups.php:146
32
- msgid "%s popup was updated successfully."
33
- msgid_plural "%s popups were updated successfully."
34
  msgstr[0] ""
35
  msgstr[1] ""
36
 
@@ -42,18 +42,6 @@ msgstr ""
42
  msgid "Settings updated successfully."
43
  msgstr ""
44
 
45
- #: classes/Abstract/Upgrade/Themes.php:138
46
- msgid "Updating %d popup theme for v%s compatibility."
47
- msgid_plural "Updating %d popup themes for v%s compatibility."
48
- msgstr[0] ""
49
- msgstr[1] ""
50
-
51
- #: classes/Abstract/Upgrade/Themes.php:144
52
- msgid "%s popup theme was updated successfully."
53
- msgid_plural "%s popup themes were updated successfully."
54
- msgstr[0] ""
55
- msgstr[1] ""
56
-
57
  #: classes/Admin/Ajax.php:126, classes/Admin/Ajax.php:293, classes/Upgrades.php:391
58
  msgid "A batch process ID must be present to continue."
59
  msgstr ""
@@ -102,7 +90,7 @@ msgstr ""
102
  msgid "Add"
103
  msgstr ""
104
 
105
- #: classes/Admin/Assets.php:68, classes/Admin/Settings.php:410, classes/Admin/Settings.php:435, classes/Admin/Tools.php:86, classes/Admin/Tools.php:504, includes/integrations/class-pum-gravity-forms.php:175
106
  msgid "Save"
107
  msgstr ""
108
 
@@ -126,7 +114,7 @@ msgstr ""
126
  msgid "Are you sure you want to delete this cookie?"
127
  msgstr ""
128
 
129
- #: classes/Admin/Assets.php:74, classes/Admin/Popups.php:482, classes/Admin/Settings.php:249, classes/Shortcode/Subscribe.php:113, classes/Shortcode/Subscribe.php:124, classes/Shortcode/Subscribe.php:280, includes/input-options.php:26, includes/input-options.php:115
130
  msgid "None"
131
  msgstr ""
132
 
@@ -150,11 +138,11 @@ msgstr ""
150
  msgid "We are sorry but your browser is not compatible with this kind of file upload. Please upgrade your browser."
151
  msgstr ""
152
 
153
- #: classes/Admin/Helpers.php:199, classes/Admin/Popups.php:498, classes/Admin/Popups.php:666, classes/Admin/Popups.php:748, classes/Shortcode/Popup.php:240, includes/class-popmake-fields.php:175
154
  msgid "ms"
155
  msgstr ""
156
 
157
- #: classes/Admin/Helpers.php:387, classes/Admin/Popups.php:290, classes/Admin/Popups.php:653, classes/Admin/Templates.php:334, classes/Shortcode/Popup.php:55, classes/Shortcode/Popup.php:77, templates/popup.php:44
158
  msgid "Close"
159
  msgstr ""
160
 
@@ -194,11 +182,11 @@ msgstr ""
194
  msgid "All Themes"
195
  msgstr ""
196
 
197
- #: classes/Admin/Pages.php:144, classes/Admin/Popups.php:994, classes/Conditions.php:110
198
  msgid "Categories"
199
  msgstr ""
200
 
201
- #: classes/Admin/Pages.php:145, classes/Admin/Popups.php:990, classes/Conditions.php:111
202
  msgid "Tags"
203
  msgstr ""
204
 
@@ -206,7 +194,7 @@ msgstr ""
206
  msgid "Popup"
207
  msgstr ""
208
 
209
- #: classes/Admin/Popups.php:63, classes/Admin/Popups.php:381, classes/Shortcode/Popup.php:117, classes/Types.php:52, classes/Types.php:165
210
  msgid "Popup Theme"
211
  msgstr ""
212
 
@@ -246,428 +234,440 @@ msgstr ""
246
  msgid "Analytics"
247
  msgstr ""
248
 
249
- #: classes/Admin/Popups.php:288, classes/Admin/Settings.php:470, classes/Admin/Settings.php:493, classes/Admin/Settings.php:496, classes/Conditions.php:107, classes/Conditions.php:409, classes/Conditions.php:423, classes/Conditions.php:429, classes/Cookies.php:157, classes/Shortcode.php:151, classes/Shortcode.php:163, classes/Shortcode.php:176, classes/Shortcode/Popup.php:51, classes/Shortcode/Popup.php:65, classes/Shortcode/Subscribe.php:60, classes/Shortcode/Subscribe.php:79, classes/Triggers.php:281, includes/class-popmake-fields.php:57
 
 
 
 
250
  msgid "General"
251
  msgstr ""
252
 
253
- #: classes/Admin/Popups.php:289, classes/Shortcode/Popup.php:52, classes/Shortcode/Popup.php:68
254
  msgid "Display"
255
  msgstr ""
256
 
257
- #: classes/Admin/Popups.php:291, classes/Admin/Popups.php:307, classes/Admin/Templates.php:406, classes/Site/Assets.php:247
258
  msgid "Triggers"
259
  msgstr ""
260
 
261
- #: classes/Admin/Popups.php:292
262
  msgid "Targeting"
263
  msgstr ""
264
 
265
- #: classes/Admin/Popups.php:304
266
  msgid "General Settings"
267
  msgstr ""
268
 
269
- #: classes/Admin/Popups.php:310, classes/Site/Assets.php:250
 
 
 
 
 
 
 
 
270
  msgid "Conditions"
271
  msgstr ""
272
 
273
- #: classes/Admin/Popups.php:313, classes/Shortcode/Subscribe.php:82
274
  msgid "Appearance"
275
  msgstr ""
276
 
277
- #: classes/Admin/Popups.php:314, classes/Admin/Popups.php:390, classes/Shortcode/Popup.php:134, includes/admin/themes/metabox-close-fields.php:156, includes/admin/themes/metabox-title-fields.php:31, includes/class-popmake-popup-theme-fields.php:395
278
  msgid "Size"
279
  msgstr ""
280
 
281
- #: classes/Admin/Popups.php:315, classes/Shortcode/Popup.php:54, classes/Shortcode/Popup.php:74
282
  msgid "Animation"
283
  msgstr ""
284
 
285
- #: classes/Admin/Popups.php:316, classes/Shortcode/Popup.php:53, classes/Shortcode/Popup.php:71, includes/admin/themes/metabox-close-fields.php:99
286
  msgid "Position"
287
  msgstr ""
288
 
289
- #: classes/Admin/Popups.php:317, classes/Cookies.php:158, classes/Triggers.php:283
290
- msgid "Advanced"
291
- msgstr ""
292
-
293
- #: classes/Admin/Popups.php:320
294
  msgid "Button"
295
  msgstr ""
296
 
297
- #: classes/Admin/Popups.php:321
298
  msgid "Alternate Methods"
299
  msgstr ""
300
 
301
- #: classes/Admin/Popups.php:367
 
 
 
 
302
  msgid "Disable this popup on mobile devices."
303
  msgstr ""
304
 
305
- #: classes/Admin/Popups.php:372
306
  msgid "Disable this popup on tablet devices."
307
  msgstr ""
308
 
309
- #: classes/Admin/Popups.php:382
310
  msgid "Choose a theme for this popup."
311
  msgstr ""
312
 
313
- #: classes/Admin/Popups.php:382
314
  msgid "Customize This Theme"
315
  msgstr ""
316
 
317
- #: classes/Admin/Popups.php:391, classes/Shortcode/Popup.php:135
318
  msgid "Select the size of the popup."
319
  msgstr ""
320
 
321
- #: classes/Admin/Popups.php:396
322
  msgid "Responsive Sizes"
323
  msgstr ""
324
 
325
- #: classes/Admin/Popups.php:397, includes/input-options.php:96
326
  msgid "Nano - 10%"
327
  msgstr ""
328
 
329
- #: classes/Admin/Popups.php:398, includes/input-options.php:97
330
  msgid "Micro - 20%"
331
  msgstr ""
332
 
333
- #: classes/Admin/Popups.php:399, includes/input-options.php:98
334
  msgid "Tiny - 30%"
335
  msgstr ""
336
 
337
- #: classes/Admin/Popups.php:400, includes/input-options.php:99
338
  msgid "Small - 40%"
339
  msgstr ""
340
 
341
- #: classes/Admin/Popups.php:401, includes/input-options.php:100
342
  msgid "Medium - 60%"
343
  msgstr ""
344
 
345
- #: classes/Admin/Popups.php:402, includes/input-options.php:101
346
  msgid "Normal - 70%"
347
  msgstr ""
348
 
349
- #: classes/Admin/Popups.php:403, includes/input-options.php:102
350
  msgid "Large - 80%"
351
  msgstr ""
352
 
353
- #: classes/Admin/Popups.php:404, includes/input-options.php:103
354
  msgid "X Large - 95%"
355
  msgstr ""
356
 
357
- #: classes/Admin/Popups.php:406
358
  msgid "Other Sizes"
359
  msgstr ""
360
 
361
- #: classes/Admin/Popups.php:407, includes/input-options.php:105
362
  msgid "Auto"
363
  msgstr ""
364
 
365
- #: classes/Admin/Popups.php:408, classes/Shortcode/PopupTrigger.php:86, includes/input-options.php:106
366
  msgid "Custom"
367
  msgstr ""
368
 
369
- #: classes/Admin/Popups.php:413
370
  msgid "Min Width"
371
  msgstr ""
372
 
373
- #: classes/Admin/Popups.php:414
374
  msgid "Set a minimum width for the popup."
375
  msgstr ""
376
 
377
- #: classes/Admin/Popups.php:423
378
  msgid "Max Width"
379
  msgstr ""
380
 
381
- #: classes/Admin/Popups.php:424
382
  msgid "Set a maximum width for the popup."
383
  msgstr ""
384
 
385
- #: classes/Admin/Popups.php:433, classes/Shortcode/Popup.php:142, includes/admin/themes/metabox-close-fields.php:71, includes/class-popmake-popup-theme-fields.php:321
386
  msgid "Width"
387
  msgstr ""
388
 
389
- #: classes/Admin/Popups.php:434
390
  msgid "Set a custom width for the popup."
391
  msgstr ""
392
 
393
- #: classes/Admin/Popups.php:443
394
  msgid "Auto Adjusted Height"
395
  msgstr ""
396
 
397
- #: classes/Admin/Popups.php:444
398
  msgid "Checking this option will set height to fit the content."
399
  msgstr ""
400
 
401
- #: classes/Admin/Popups.php:452, classes/Shortcode/Popup.php:153, includes/admin/themes/metabox-close-fields.php:62, includes/class-popmake-popup-theme-fields.php:311
402
  msgid "Height"
403
  msgstr ""
404
 
405
- #: classes/Admin/Popups.php:453
406
  msgid "Set a custom height for the popup."
407
  msgstr ""
408
 
409
- #: classes/Admin/Popups.php:463
410
  msgid "Scrollable Content"
411
  msgstr ""
412
 
413
- #: classes/Admin/Popups.php:464
414
  msgid "Checking this option will add a scroll bar to your content."
415
  msgstr ""
416
 
417
- #: classes/Admin/Popups.php:476, classes/Shortcode/Popup.php:224
418
  msgid "Animation Type"
419
  msgstr ""
420
 
421
- #: classes/Admin/Popups.php:477, classes/Shortcode/Popup.php:225
422
  msgid "Select an animation type for your popup."
423
  msgstr ""
424
 
425
- #: classes/Admin/Popups.php:483, includes/input-options.php:116
426
  msgid "Slide"
427
  msgstr ""
428
 
429
- #: classes/Admin/Popups.php:484, includes/input-options.php:117
430
  msgid "Fade"
431
  msgstr ""
432
 
433
- #: classes/Admin/Popups.php:485, includes/input-options.php:118
434
  msgid "Fade and Slide"
435
  msgstr ""
436
 
437
- #: classes/Admin/Popups.php:486, includes/input-options.php:119
438
  msgid "Grow"
439
  msgstr ""
440
 
441
- #: classes/Admin/Popups.php:487, includes/input-options.php:120
442
  msgid "Grow and Slide"
443
  msgstr ""
444
 
445
- #: classes/Admin/Popups.php:491, classes/Shortcode/Popup.php:232
446
  msgid "Animation Speed"
447
  msgstr ""
448
 
449
- #: classes/Admin/Popups.php:492, classes/Shortcode/Popup.php:233
450
  msgid "Set the animation speed for the popup."
451
  msgstr ""
452
 
453
- #: classes/Admin/Popups.php:505, classes/Shortcode/Popup.php:243
454
  msgid "Animation Origin"
455
  msgstr ""
456
 
457
- #: classes/Admin/Popups.php:506, classes/Shortcode/Popup.php:244
458
  msgid "Choose where the animation will begin."
459
  msgstr ""
460
 
461
- #: classes/Admin/Popups.php:510, classes/Admin/Popups.php:550, classes/Admin/Popups.php:551, classes/Shortcode/Popup.php:176, classes/Shortcode/Popup.php:177, includes/admin/themes/metabox-close-fields.php:103, includes/class-popmake-popup-theme-fields.php:339, includes/input-options.php:129
462
  msgid "Top"
463
  msgstr ""
464
 
465
- #: classes/Admin/Popups.php:511, classes/Admin/Popups.php:578, classes/Admin/Popups.php:579, classes/Shortcode/Popup.php:198, classes/Shortcode/Popup.php:199, classes/Shortcode/Subscribe.php:268, includes/admin/themes/metabox-close-fields.php:112, includes/class-popmake-popup-theme-fields.php:349, includes/input-options.php:85, includes/input-options.php:130
466
  msgid "Left"
467
  msgstr ""
468
 
469
- #: classes/Admin/Popups.php:512, classes/Admin/Popups.php:564, classes/Admin/Popups.php:565, classes/Shortcode/Popup.php:187, classes/Shortcode/Popup.php:188, includes/admin/themes/metabox-close-fields.php:121, includes/class-popmake-popup-theme-fields.php:359, includes/input-options.php:131
470
  msgid "Bottom"
471
  msgstr ""
472
 
473
- #: classes/Admin/Popups.php:513, classes/Admin/Popups.php:592, classes/Admin/Popups.php:593, classes/Shortcode/Popup.php:209, classes/Shortcode/Popup.php:210, classes/Shortcode/Subscribe.php:270, includes/admin/themes/metabox-close-fields.php:130, includes/class-popmake-popup-theme-fields.php:369, includes/input-options.php:87, includes/input-options.php:132
474
  msgid "Right"
475
  msgstr ""
476
 
477
- #: classes/Admin/Popups.php:514, classes/Admin/Popups.php:538, includes/input-options.php:133, includes/input-options.php:150, includes/input-options.php:167
478
  msgid "Top Left"
479
  msgstr ""
480
 
481
- #: classes/Admin/Popups.php:515, classes/Admin/Popups.php:539, includes/input-options.php:134, includes/input-options.php:151
482
  msgid "Top Center"
483
  msgstr ""
484
 
485
- #: classes/Admin/Popups.php:516, classes/Admin/Popups.php:540, includes/input-options.php:135, includes/input-options.php:152, includes/input-options.php:168
486
  msgid "Top Right"
487
  msgstr ""
488
 
489
- #: classes/Admin/Popups.php:517, classes/Admin/Popups.php:541, includes/input-options.php:136, includes/input-options.php:153
490
  msgid "Middle Left"
491
  msgstr ""
492
 
493
- #: classes/Admin/Popups.php:518, classes/Admin/Popups.php:542, includes/input-options.php:137, includes/input-options.php:154
494
  msgid "Middle Center"
495
  msgstr ""
496
 
497
- #: classes/Admin/Popups.php:519, classes/Admin/Popups.php:543, includes/input-options.php:138, includes/input-options.php:155
498
  msgid "Middle Right"
499
  msgstr ""
500
 
501
- #: classes/Admin/Popups.php:520, classes/Admin/Popups.php:544, includes/input-options.php:139, includes/input-options.php:156, includes/input-options.php:169
502
  msgid "Bottom Left"
503
  msgstr ""
504
 
505
- #: classes/Admin/Popups.php:521, classes/Admin/Popups.php:545, includes/input-options.php:140, includes/input-options.php:157
506
  msgid "Bottom Center"
507
  msgstr ""
508
 
509
- #: classes/Admin/Popups.php:522, classes/Admin/Popups.php:546, includes/input-options.php:141, includes/input-options.php:158, includes/input-options.php:170
510
  msgid "Bottom Right"
511
  msgstr ""
512
 
513
- #: classes/Admin/Popups.php:532, classes/Shortcode/Popup.php:168, includes/admin/themes/metabox-close-fields.php:85, includes/class-popmake-popup-theme-fields.php:331
514
  msgid "Location"
515
  msgstr ""
516
 
517
- #: classes/Admin/Popups.php:533, classes/Shortcode/Popup.php:169
518
  msgid "Choose where the popup will be displayed."
519
  msgstr ""
520
 
521
- #: classes/Admin/Popups.php:551, classes/Admin/Popups.php:565, classes/Admin/Popups.php:579, classes/Admin/Popups.php:593, classes/Shortcode/Popup.php:177, classes/Shortcode/Popup.php:188, classes/Shortcode/Popup.php:199, classes/Shortcode/Popup.php:210
522
  msgctxt "Screen Edge: top, bottom"
523
  msgid "Distance from the %s edge of the screen."
524
  msgstr ""
525
 
526
- #: classes/Admin/Popups.php:606
527
  msgid "Position from Trigger"
528
  msgstr ""
529
 
530
- #: classes/Admin/Popups.php:607
531
  msgid "This will position the popup in relation to the %sClick Trigger%s."
532
  msgstr ""
533
 
534
- #: classes/Admin/Popups.php:613
535
  msgid "Fixed Postioning"
536
  msgstr ""
537
 
538
- #: classes/Admin/Popups.php:614
539
  msgid "Checking this sets the positioning of the popup to fixed."
540
  msgstr ""
541
 
542
- #: classes/Admin/Popups.php:621, classes/Shortcode/Popup.php:127
543
  msgid "Disable Overlay"
544
  msgstr ""
545
 
546
- #: classes/Admin/Popups.php:622, classes/Shortcode/Popup.php:128
547
  msgid "Checking this will disable and hide the overlay for this popup."
548
  msgstr ""
549
 
550
- #: classes/Admin/Popups.php:627
551
  msgid "Stackable"
552
  msgstr ""
553
 
554
- #: classes/Admin/Popups.php:628
555
  msgid "This enables other popups to remain open."
556
  msgstr ""
557
 
558
- #: classes/Admin/Popups.php:633
559
  msgid "Disable Repositioning"
560
  msgstr ""
561
 
562
- #: classes/Admin/Popups.php:634
563
  msgid "This will disable automatic repositioning of the popup on window resizing."
564
  msgstr ""
565
 
566
- #: classes/Admin/Popups.php:639
567
  msgid "Popup Z-Index"
568
  msgstr ""
569
 
570
- #: classes/Admin/Popups.php:640
571
  msgid "Change the z-index layer level for the popup."
572
  msgstr ""
573
 
574
- #: classes/Admin/Popups.php:652
575
  msgid "Close Text"
576
  msgstr ""
577
 
578
- #: classes/Admin/Popups.php:654
579
  msgid "Override the default close text."
580
  msgstr ""
581
 
582
- #: classes/Admin/Popups.php:659
583
  msgid "Close Button Delay"
584
  msgstr ""
585
 
586
- #: classes/Admin/Popups.php:660
587
  msgid "This delays the display of the close button."
588
  msgstr ""
589
 
590
- #: classes/Admin/Popups.php:672, classes/Shortcode/Popup.php:255
591
  msgid "Click Overlay to Close"
592
  msgstr ""
593
 
594
- #: classes/Admin/Popups.php:673, classes/Shortcode/Popup.php:256
595
  msgid "Checking this will cause popup to close when user clicks on overlay."
596
  msgstr ""
597
 
598
- #: classes/Admin/Popups.php:678
599
  msgid "Press ESC to Close"
600
  msgstr ""
601
 
602
- #: classes/Admin/Popups.php:679
603
  msgid "Checking this will cause popup to close when user presses ESC key."
604
  msgstr ""
605
 
606
- #: classes/Admin/Popups.php:684
607
  msgid "Press F4 to Close"
608
  msgstr ""
609
 
610
- #: classes/Admin/Popups.php:685
611
  msgid "Checking this will cause popup to close when user presses F4 key."
612
  msgstr ""
613
 
614
- #: classes/Admin/Popups.php:868, classes/Admin/Popups.php:979
615
  msgid "Opens"
616
  msgstr ""
617
 
618
- #: classes/Admin/Popups.php:873, classes/Admin/Popups.php:980
619
  msgid "Conversions"
620
  msgstr ""
621
 
622
- #: classes/Admin/Popups.php:879, classes/Admin/Popups.php:981
623
  msgid "Conversion Rate"
624
  msgstr ""
625
 
626
- #: classes/Admin/Popups.php:886
627
  msgid "Reset Counts"
628
  msgstr ""
629
 
630
- #: classes/Admin/Popups.php:890
631
  msgid "Last Reset"
632
  msgstr ""
633
 
634
- #: classes/Admin/Popups.php:891
635
  msgid "Previous Opens"
636
  msgstr ""
637
 
638
- #: classes/Admin/Popups.php:895
639
  msgid "Previous Conversions"
640
  msgstr ""
641
 
642
- #: classes/Admin/Popups.php:898
643
  msgid "Lifetime Opens"
644
  msgstr ""
645
 
646
- #: classes/Admin/Popups.php:902
647
  msgid "Lifetime Conversions"
648
  msgstr ""
649
 
650
- #: classes/Admin/Popups.php:976, classes/Admin/Templates.php:642, classes/Shortcode/Subscribe.php:171, classes/Shortcode/Subscribe.php:225
651
  msgid "Name"
652
  msgstr ""
653
 
654
- #: classes/Admin/Popups.php:977
655
  msgid "Title"
656
  msgstr ""
657
 
658
- #: classes/Admin/Popups.php:978
659
  msgid "CSS Classes"
660
  msgstr ""
661
 
662
- #: classes/Admin/Popups.php:1053, classes/Admin/Subscribers/Table.php:281
663
  msgid "N/A"
664
  msgstr ""
665
 
666
- #: classes/Admin/Popups.php:1139
667
  msgid "Show all categories"
668
  msgstr ""
669
 
670
- #: classes/Admin/Popups.php:1152
671
  msgid "Show all tags"
672
  msgstr ""
673
 
@@ -843,27 +843,27 @@ msgstr ""
843
  msgid "Popup Maker Settings"
844
  msgstr ""
845
 
846
- #: classes/Admin/Settings.php:471
847
  msgid "Subscriptions"
848
  msgstr ""
849
 
850
- #: classes/Admin/Settings.php:472, includes/admin/admin-setup.php:23, includes/admin/extensions/extensions-page.php:26
851
  msgid "Extensions"
852
  msgstr ""
853
 
854
- #: classes/Admin/Settings.php:473, classes/Admin/Settings.php:502
855
  msgid "Licenses"
856
  msgstr ""
857
 
858
- #: classes/Admin/Settings.php:474, classes/Admin/Settings.php:505
859
  msgid "Misc"
860
  msgstr ""
861
 
862
- #: classes/Admin/Settings.php:499
863
  msgid "Extension Settings"
864
  msgstr ""
865
 
866
- #: classes/Admin/Settings.php:506
867
  msgid "Assets"
868
  msgstr ""
869
 
@@ -1006,7 +1006,7 @@ msgstr ""
1006
  msgid "Type"
1007
  msgstr ""
1008
 
1009
- #: classes/Admin/Templates.php:414, classes/Triggers.php:282
1010
  msgid "Cookie"
1011
  msgstr ""
1012
 
@@ -1116,7 +1116,7 @@ msgstr ""
1116
  msgid "Remove Condition"
1117
  msgstr ""
1118
 
1119
- #: classes/Admin/Templates.php:628, classes/Triggers.php:262
1120
  msgid "Add New Cookie"
1121
  msgstr ""
1122
 
@@ -1356,7 +1356,7 @@ msgstr ""
1356
  msgid "Sessions"
1357
  msgstr ""
1358
 
1359
- #: classes/Cookies.php:174, classes/Triggers.php:255
1360
  msgid "Cookie Name"
1361
  msgstr ""
1362
 
@@ -1900,7 +1900,7 @@ msgstr ""
1900
  msgid "The delay before the popup will open in milliseconds."
1901
  msgstr ""
1902
 
1903
- #: classes/Triggers.php:256
1904
  msgid "Choose which cookies will disable this trigger?"
1905
  msgstr ""
1906
 
@@ -2001,7 +2001,7 @@ msgstr ""
2001
  msgid "No upgrades currently required."
2002
  msgstr ""
2003
 
2004
- #: classes/Upsell.php:26, includes/admin/themes/metabox-close-fields.php:35
2005
  msgctxt "%s represent the opening & closing link html"
2006
  msgid "Want to disable the close button? Check out %sForced Interaction%s!"
2007
  msgstr ""
22
  msgstr[0] ""
23
  msgstr[1] ""
24
 
25
+ #: classes/Abstract/Upgrade/Posts.php:197
26
+ msgid "Updating %d %2$s."
27
+ msgid_plural "Updating %d %3$s."
28
  msgstr[0] ""
29
  msgstr[1] ""
30
 
31
+ #: classes/Abstract/Upgrade/Posts.php:203
32
+ msgid "%s %2$s was updated successfully."
33
+ msgid_plural "%s %3$s were updated successfully."
34
  msgstr[0] ""
35
  msgstr[1] ""
36
 
42
  msgid "Settings updated successfully."
43
  msgstr ""
44
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  #: classes/Admin/Ajax.php:126, classes/Admin/Ajax.php:293, classes/Upgrades.php:391
46
  msgid "A batch process ID must be present to continue."
47
  msgstr ""
90
  msgid "Add"
91
  msgstr ""
92
 
93
+ #: classes/Admin/Assets.php:68, classes/Admin/Settings.php:410, classes/Admin/Settings.php:439, classes/Admin/Tools.php:86, classes/Admin/Tools.php:504, includes/integrations/class-pum-gravity-forms.php:175
94
  msgid "Save"
95
  msgstr ""
96
 
114
  msgid "Are you sure you want to delete this cookie?"
115
  msgstr ""
116
 
117
+ #: classes/Admin/Assets.php:74, classes/Admin/Popups.php:495, classes/Admin/Settings.php:249, classes/Shortcode/Subscribe.php:113, classes/Shortcode/Subscribe.php:124, classes/Shortcode/Subscribe.php:280, includes/input-options.php:26, includes/input-options.php:115
118
  msgid "None"
119
  msgstr ""
120
 
138
  msgid "We are sorry but your browser is not compatible with this kind of file upload. Please upgrade your browser."
139
  msgstr ""
140
 
141
+ #: classes/Admin/Helpers.php:199, classes/Admin/Popups.php:511, classes/Admin/Popups.php:679, classes/Admin/Popups.php:761, classes/Shortcode/Popup.php:240, includes/class-popmake-fields.php:175
142
  msgid "ms"
143
  msgstr ""
144
 
145
+ #: classes/Admin/Helpers.php:387, classes/Admin/Popups.php:295, classes/Admin/Popups.php:666, classes/Admin/Templates.php:334, classes/Shortcode/Popup.php:55, classes/Shortcode/Popup.php:77, templates/popup.php:44
146
  msgid "Close"
147
  msgstr ""
148
 
182
  msgid "All Themes"
183
  msgstr ""
184
 
185
+ #: classes/Admin/Pages.php:144, classes/Admin/Popups.php:1007, classes/Conditions.php:110
186
  msgid "Categories"
187
  msgstr ""
188
 
189
+ #: classes/Admin/Pages.php:145, classes/Admin/Popups.php:1003, classes/Conditions.php:111
190
  msgid "Tags"
191
  msgstr ""
192
 
194
  msgid "Popup"
195
  msgstr ""
196
 
197
+ #: classes/Admin/Popups.php:63, classes/Admin/Popups.php:394, classes/Shortcode/Popup.php:117, classes/Types.php:52, classes/Types.php:165
198
  msgid "Popup Theme"
199
  msgstr ""
200
 
234
  msgid "Analytics"
235
  msgstr ""
236
 
237
+ #: classes/Admin/Popups.php:167, classes/Admin/Settings.php:416
238
+ msgid "If you are seeing this, the most likely cause is that there are Javascript errors on this page. %sView troubleshooting guide%s"
239
+ msgstr ""
240
+
241
+ #: classes/Admin/Popups.php:293, classes/Admin/Settings.php:474, classes/Admin/Settings.php:497, classes/Admin/Settings.php:500, classes/Conditions.php:107, classes/Conditions.php:409, classes/Conditions.php:423, classes/Conditions.php:429, classes/Cookies.php:157, classes/Shortcode.php:151, classes/Shortcode.php:163, classes/Shortcode.php:176, classes/Shortcode/Popup.php:51, classes/Shortcode/Popup.php:65, classes/Shortcode/Subscribe.php:60, classes/Shortcode/Subscribe.php:79, classes/Triggers.php:288, includes/class-popmake-fields.php:57
242
  msgid "General"
243
  msgstr ""
244
 
245
+ #: classes/Admin/Popups.php:294, classes/Shortcode/Popup.php:52, classes/Shortcode/Popup.php:68
246
  msgid "Display"
247
  msgstr ""
248
 
249
+ #: classes/Admin/Popups.php:296, classes/Admin/Templates.php:406, classes/Site/Assets.php:247
250
  msgid "Triggers"
251
  msgstr ""
252
 
253
+ #: classes/Admin/Popups.php:297
254
  msgid "Targeting"
255
  msgstr ""
256
 
257
+ #: classes/Admin/Popups.php:309
258
  msgid "General Settings"
259
  msgstr ""
260
 
261
+ #: classes/Admin/Popups.php:312
262
+ msgid "Triggers & Cookies"
263
+ msgstr ""
264
+
265
+ #: classes/Admin/Popups.php:313, classes/Admin/Popups.php:323, classes/Cookies.php:158, classes/Triggers.php:290
266
+ msgid "Advanced"
267
+ msgstr ""
268
+
269
+ #: classes/Admin/Popups.php:316, classes/Site/Assets.php:250
270
  msgid "Conditions"
271
  msgstr ""
272
 
273
+ #: classes/Admin/Popups.php:319, classes/Shortcode/Subscribe.php:82
274
  msgid "Appearance"
275
  msgstr ""
276
 
277
+ #: classes/Admin/Popups.php:320, classes/Admin/Popups.php:403, classes/Shortcode/Popup.php:134, includes/admin/themes/metabox-close-fields.php:156, includes/admin/themes/metabox-title-fields.php:31, includes/class-popmake-popup-theme-fields.php:395
278
  msgid "Size"
279
  msgstr ""
280
 
281
+ #: classes/Admin/Popups.php:321, classes/Shortcode/Popup.php:54, classes/Shortcode/Popup.php:74
282
  msgid "Animation"
283
  msgstr ""
284
 
285
+ #: classes/Admin/Popups.php:322, classes/Shortcode/Popup.php:53, classes/Shortcode/Popup.php:71, includes/admin/themes/metabox-close-fields.php:99
286
  msgid "Position"
287
  msgstr ""
288
 
289
+ #: classes/Admin/Popups.php:326
 
 
 
 
290
  msgid "Button"
291
  msgstr ""
292
 
293
+ #: classes/Admin/Popups.php:327
294
  msgid "Alternate Methods"
295
  msgstr ""
296
 
297
+ #: classes/Admin/Popups.php:365
298
+ msgid "Disable automatic re-triggering of popup after non-ajax form submission."
299
+ msgstr ""
300
+
301
+ #: classes/Admin/Popups.php:380
302
  msgid "Disable this popup on mobile devices."
303
  msgstr ""
304
 
305
+ #: classes/Admin/Popups.php:385
306
  msgid "Disable this popup on tablet devices."
307
  msgstr ""
308
 
309
+ #: classes/Admin/Popups.php:395
310
  msgid "Choose a theme for this popup."
311
  msgstr ""
312
 
313
+ #: classes/Admin/Popups.php:395
314
  msgid "Customize This Theme"
315
  msgstr ""
316
 
317
+ #: classes/Admin/Popups.php:404, classes/Shortcode/Popup.php:135
318
  msgid "Select the size of the popup."
319
  msgstr ""
320
 
321
+ #: classes/Admin/Popups.php:409
322
  msgid "Responsive Sizes"
323
  msgstr ""
324
 
325
+ #: classes/Admin/Popups.php:410, includes/input-options.php:96
326
  msgid "Nano - 10%"
327
  msgstr ""
328
 
329
+ #: classes/Admin/Popups.php:411, includes/input-options.php:97
330
  msgid "Micro - 20%"
331
  msgstr ""
332
 
333
+ #: classes/Admin/Popups.php:412, includes/input-options.php:98
334
  msgid "Tiny - 30%"
335
  msgstr ""
336
 
337
+ #: classes/Admin/Popups.php:413, includes/input-options.php:99
338
  msgid "Small - 40%"
339
  msgstr ""
340
 
341
+ #: classes/Admin/Popups.php:414, includes/input-options.php:100
342
  msgid "Medium - 60%"
343
  msgstr ""
344
 
345
+ #: classes/Admin/Popups.php:415, includes/input-options.php:101
346
  msgid "Normal - 70%"
347
  msgstr ""
348
 
349
+ #: classes/Admin/Popups.php:416, includes/input-options.php:102
350
  msgid "Large - 80%"
351
  msgstr ""
352
 
353
+ #: classes/Admin/Popups.php:417, includes/input-options.php:103
354
  msgid "X Large - 95%"
355
  msgstr ""
356
 
357
+ #: classes/Admin/Popups.php:419
358
  msgid "Other Sizes"
359
  msgstr ""
360
 
361
+ #: classes/Admin/Popups.php:420, includes/input-options.php:105
362
  msgid "Auto"
363
  msgstr ""
364
 
365
+ #: classes/Admin/Popups.php:421, classes/Shortcode/PopupTrigger.php:86, includes/input-options.php:106
366
  msgid "Custom"
367
  msgstr ""
368
 
369
+ #: classes/Admin/Popups.php:426
370
  msgid "Min Width"
371
  msgstr ""
372
 
373
+ #: classes/Admin/Popups.php:427
374
  msgid "Set a minimum width for the popup."
375
  msgstr ""
376
 
377
+ #: classes/Admin/Popups.php:436
378
  msgid "Max Width"
379
  msgstr ""
380
 
381
+ #: classes/Admin/Popups.php:437
382
  msgid "Set a maximum width for the popup."
383
  msgstr ""
384
 
385
+ #: classes/Admin/Popups.php:446, classes/Shortcode/Popup.php:142, includes/admin/themes/metabox-close-fields.php:71, includes/class-popmake-popup-theme-fields.php:321
386
  msgid "Width"
387
  msgstr ""
388
 
389
+ #: classes/Admin/Popups.php:447
390
  msgid "Set a custom width for the popup."
391
  msgstr ""
392
 
393
+ #: classes/Admin/Popups.php:456
394
  msgid "Auto Adjusted Height"
395
  msgstr ""
396
 
397
+ #: classes/Admin/Popups.php:457
398
  msgid "Checking this option will set height to fit the content."
399
  msgstr ""
400
 
401
+ #: classes/Admin/Popups.php:465, classes/Shortcode/Popup.php:153, includes/admin/themes/metabox-close-fields.php:62, includes/class-popmake-popup-theme-fields.php:311
402
  msgid "Height"
403
  msgstr ""
404
 
405
+ #: classes/Admin/Popups.php:466
406
  msgid "Set a custom height for the popup."
407
  msgstr ""
408
 
409
+ #: classes/Admin/Popups.php:476
410
  msgid "Scrollable Content"
411
  msgstr ""
412
 
413
+ #: classes/Admin/Popups.php:477
414
  msgid "Checking this option will add a scroll bar to your content."
415
  msgstr ""
416
 
417
+ #: classes/Admin/Popups.php:489, classes/Shortcode/Popup.php:224
418
  msgid "Animation Type"
419
  msgstr ""
420
 
421
+ #: classes/Admin/Popups.php:490, classes/Shortcode/Popup.php:225
422
  msgid "Select an animation type for your popup."
423
  msgstr ""
424
 
425
+ #: classes/Admin/Popups.php:496, includes/input-options.php:116
426
  msgid "Slide"
427
  msgstr ""
428
 
429
+ #: classes/Admin/Popups.php:497, includes/input-options.php:117
430
  msgid "Fade"
431
  msgstr ""
432
 
433
+ #: classes/Admin/Popups.php:498, includes/input-options.php:118
434
  msgid "Fade and Slide"
435
  msgstr ""
436
 
437
+ #: classes/Admin/Popups.php:499, includes/input-options.php:119
438
  msgid "Grow"
439
  msgstr ""
440
 
441
+ #: classes/Admin/Popups.php:500, includes/input-options.php:120
442
  msgid "Grow and Slide"
443
  msgstr ""
444
 
445
+ #: classes/Admin/Popups.php:504, classes/Shortcode/Popup.php:232
446
  msgid "Animation Speed"
447
  msgstr ""
448
 
449
+ #: classes/Admin/Popups.php:505, classes/Shortcode/Popup.php:233
450
  msgid "Set the animation speed for the popup."
451
  msgstr ""
452
 
453
+ #: classes/Admin/Popups.php:518, classes/Shortcode/Popup.php:243
454
  msgid "Animation Origin"
455
  msgstr ""
456
 
457
+ #: classes/Admin/Popups.php:519, classes/Shortcode/Popup.php:244
458
  msgid "Choose where the animation will begin."
459
  msgstr ""
460
 
461
+ #: classes/Admin/Popups.php:523, classes/Admin/Popups.php:563, classes/Admin/Popups.php:564, classes/Shortcode/Popup.php:176, classes/Shortcode/Popup.php:177, includes/admin/themes/metabox-close-fields.php:103, includes/class-popmake-popup-theme-fields.php:339, includes/input-options.php:129
462
  msgid "Top"
463
  msgstr ""
464
 
465
+ #: classes/Admin/Popups.php:524, classes/Admin/Popups.php:591, classes/Admin/Popups.php:592, classes/Shortcode/Popup.php:198, classes/Shortcode/Popup.php:199, classes/Shortcode/Subscribe.php:268, includes/admin/themes/metabox-close-fields.php:112, includes/class-popmake-popup-theme-fields.php:349, includes/input-options.php:85, includes/input-options.php:130
466
  msgid "Left"
467
  msgstr ""
468
 
469
+ #: classes/Admin/Popups.php:525, classes/Admin/Popups.php:577, classes/Admin/Popups.php:578, classes/Shortcode/Popup.php:187, classes/Shortcode/Popup.php:188, includes/admin/themes/metabox-close-fields.php:121, includes/class-popmake-popup-theme-fields.php:359, includes/input-options.php:131
470
  msgid "Bottom"
471
  msgstr ""
472
 
473
+ #: classes/Admin/Popups.php:526, classes/Admin/Popups.php:605, classes/Admin/Popups.php:606, classes/Shortcode/Popup.php:209, classes/Shortcode/Popup.php:210, classes/Shortcode/Subscribe.php:270, includes/admin/themes/metabox-close-fields.php:130, includes/class-popmake-popup-theme-fields.php:369, includes/input-options.php:87, includes/input-options.php:132
474
  msgid "Right"
475
  msgstr ""
476
 
477
+ #: classes/Admin/Popups.php:527, classes/Admin/Popups.php:551, includes/input-options.php:133, includes/input-options.php:150, includes/input-options.php:167
478
  msgid "Top Left"
479
  msgstr ""
480
 
481
+ #: classes/Admin/Popups.php:528, classes/Admin/Popups.php:552, includes/input-options.php:134, includes/input-options.php:151
482
  msgid "Top Center"
483
  msgstr ""
484
 
485
+ #: classes/Admin/Popups.php:529, classes/Admin/Popups.php:553, includes/input-options.php:135, includes/input-options.php:152, includes/input-options.php:168
486
  msgid "Top Right"
487
  msgstr ""
488
 
489
+ #: classes/Admin/Popups.php:530, classes/Admin/Popups.php:554, includes/input-options.php:136, includes/input-options.php:153
490
  msgid "Middle Left"
491
  msgstr ""
492
 
493
+ #: classes/Admin/Popups.php:531, classes/Admin/Popups.php:555, includes/input-options.php:137, includes/input-options.php:154
494
  msgid "Middle Center"
495
  msgstr ""
496
 
497
+ #: classes/Admin/Popups.php:532, classes/Admin/Popups.php:556, includes/input-options.php:138, includes/input-options.php:155
498
  msgid "Middle Right"
499
  msgstr ""
500
 
501
+ #: classes/Admin/Popups.php:533, classes/Admin/Popups.php:557, includes/input-options.php:139, includes/input-options.php:156, includes/input-options.php:169
502
  msgid "Bottom Left"
503
  msgstr ""
504
 
505
+ #: classes/Admin/Popups.php:534, classes/Admin/Popups.php:558, includes/input-options.php:140, includes/input-options.php:157
506
  msgid "Bottom Center"
507
  msgstr ""
508
 
509
+ #: classes/Admin/Popups.php:535, classes/Admin/Popups.php:559, includes/input-options.php:141, includes/input-options.php:158, includes/input-options.php:170
510
  msgid "Bottom Right"
511
  msgstr ""
512
 
513
+ #: classes/Admin/Popups.php:545, classes/Shortcode/Popup.php:168, includes/admin/themes/metabox-close-fields.php:85, includes/class-popmake-popup-theme-fields.php:331
514
  msgid "Location"
515
  msgstr ""
516
 
517
+ #: classes/Admin/Popups.php:546, classes/Shortcode/Popup.php:169
518
  msgid "Choose where the popup will be displayed."
519
  msgstr ""
520
 
521
+ #: classes/Admin/Popups.php:564, classes/Admin/Popups.php:578, classes/Admin/Popups.php:592, classes/Admin/Popups.php:606, classes/Shortcode/Popup.php:177, classes/Shortcode/Popup.php:188, classes/Shortcode/Popup.php:199, classes/Shortcode/Popup.php:210
522
  msgctxt "Screen Edge: top, bottom"
523
  msgid "Distance from the %s edge of the screen."
524
  msgstr ""
525
 
526
+ #: classes/Admin/Popups.php:619
527
  msgid "Position from Trigger"
528
  msgstr ""
529
 
530
+ #: classes/Admin/Popups.php:620
531
  msgid "This will position the popup in relation to the %sClick Trigger%s."
532
  msgstr ""
533
 
534
+ #: classes/Admin/Popups.php:626
535
  msgid "Fixed Postioning"
536
  msgstr ""
537
 
538
+ #: classes/Admin/Popups.php:627
539
  msgid "Checking this sets the positioning of the popup to fixed."
540
  msgstr ""
541
 
542
+ #: classes/Admin/Popups.php:634, classes/Shortcode/Popup.php:127
543
  msgid "Disable Overlay"
544
  msgstr ""
545
 
546
+ #: classes/Admin/Popups.php:635, classes/Shortcode/Popup.php:128
547
  msgid "Checking this will disable and hide the overlay for this popup."
548
  msgstr ""
549
 
550
+ #: classes/Admin/Popups.php:640
551
  msgid "Stackable"
552
  msgstr ""
553
 
554
+ #: classes/Admin/Popups.php:641
555
  msgid "This enables other popups to remain open."
556
  msgstr ""
557
 
558
+ #: classes/Admin/Popups.php:646
559
  msgid "Disable Repositioning"
560
  msgstr ""
561
 
562
+ #: classes/Admin/Popups.php:647
563
  msgid "This will disable automatic repositioning of the popup on window resizing."
564
  msgstr ""
565
 
566
+ #: classes/Admin/Popups.php:652
567
  msgid "Popup Z-Index"
568
  msgstr ""
569
 
570
+ #: classes/Admin/Popups.php:653
571
  msgid "Change the z-index layer level for the popup."
572
  msgstr ""
573
 
574
+ #: classes/Admin/Popups.php:665
575
  msgid "Close Text"
576
  msgstr ""
577
 
578
+ #: classes/Admin/Popups.php:667
579
  msgid "Override the default close text."
580
  msgstr ""
581
 
582
+ #: classes/Admin/Popups.php:672
583
  msgid "Close Button Delay"
584
  msgstr ""
585
 
586
+ #: classes/Admin/Popups.php:673
587
  msgid "This delays the display of the close button."
588
  msgstr ""
589
 
590
+ #: classes/Admin/Popups.php:685, classes/Shortcode/Popup.php:255
591
  msgid "Click Overlay to Close"
592
  msgstr ""
593
 
594
+ #: classes/Admin/Popups.php:686, classes/Shortcode/Popup.php:256
595
  msgid "Checking this will cause popup to close when user clicks on overlay."
596
  msgstr ""
597
 
598
+ #: classes/Admin/Popups.php:691
599
  msgid "Press ESC to Close"
600
  msgstr ""
601
 
602
+ #: classes/Admin/Popups.php:692
603
  msgid "Checking this will cause popup to close when user presses ESC key."
604
  msgstr ""
605
 
606
+ #: classes/Admin/Popups.php:697
607
  msgid "Press F4 to Close"
608
  msgstr ""
609
 
610
+ #: classes/Admin/Popups.php:698
611
  msgid "Checking this will cause popup to close when user presses F4 key."
612
  msgstr ""
613
 
614
+ #: classes/Admin/Popups.php:881, classes/Admin/Popups.php:992
615
  msgid "Opens"
616
  msgstr ""
617
 
618
+ #: classes/Admin/Popups.php:886, classes/Admin/Popups.php:993
619
  msgid "Conversions"
620
  msgstr ""
621
 
622
+ #: classes/Admin/Popups.php:892, classes/Admin/Popups.php:994
623
  msgid "Conversion Rate"
624
  msgstr ""
625
 
626
+ #: classes/Admin/Popups.php:899
627
  msgid "Reset Counts"
628
  msgstr ""
629
 
630
+ #: classes/Admin/Popups.php:903
631
  msgid "Last Reset"
632
  msgstr ""
633
 
634
+ #: classes/Admin/Popups.php:904
635
  msgid "Previous Opens"
636
  msgstr ""
637
 
638
+ #: classes/Admin/Popups.php:908
639
  msgid "Previous Conversions"
640
  msgstr ""
641
 
642
+ #: classes/Admin/Popups.php:911
643
  msgid "Lifetime Opens"
644
  msgstr ""
645
 
646
+ #: classes/Admin/Popups.php:915
647
  msgid "Lifetime Conversions"
648
  msgstr ""
649
 
650
+ #: classes/Admin/Popups.php:989, classes/Admin/Templates.php:642, classes/Shortcode/Subscribe.php:171, classes/Shortcode/Subscribe.php:225
651
  msgid "Name"
652
  msgstr ""
653
 
654
+ #: classes/Admin/Popups.php:990
655
  msgid "Title"
656
  msgstr ""
657
 
658
+ #: classes/Admin/Popups.php:991
659
  msgid "CSS Classes"
660
  msgstr ""
661
 
662
+ #: classes/Admin/Popups.php:1066, classes/Admin/Subscribers/Table.php:281
663
  msgid "N/A"
664
  msgstr ""
665
 
666
+ #: classes/Admin/Popups.php:1152
667
  msgid "Show all categories"
668
  msgstr ""
669
 
670
+ #: classes/Admin/Popups.php:1165
671
  msgid "Show all tags"
672
  msgstr ""
673
 
843
  msgid "Popup Maker Settings"
844
  msgstr ""
845
 
846
+ #: classes/Admin/Settings.php:475
847
  msgid "Subscriptions"
848
  msgstr ""
849
 
850
+ #: classes/Admin/Settings.php:476, includes/admin/admin-setup.php:23, includes/admin/extensions/extensions-page.php:26
851
  msgid "Extensions"
852
  msgstr ""
853
 
854
+ #: classes/Admin/Settings.php:477, classes/Admin/Settings.php:506
855
  msgid "Licenses"
856
  msgstr ""
857
 
858
+ #: classes/Admin/Settings.php:478, classes/Admin/Settings.php:509
859
  msgid "Misc"
860
  msgstr ""
861
 
862
+ #: classes/Admin/Settings.php:503
863
  msgid "Extension Settings"
864
  msgstr ""
865
 
866
+ #: classes/Admin/Settings.php:510
867
  msgid "Assets"
868
  msgstr ""
869
 
1006
  msgid "Type"
1007
  msgstr ""
1008
 
1009
+ #: classes/Admin/Templates.php:414, classes/Triggers.php:289
1010
  msgid "Cookie"
1011
  msgstr ""
1012
 
1116
  msgid "Remove Condition"
1117
  msgstr ""
1118
 
1119
+ #: classes/Admin/Templates.php:628, classes/Triggers.php:269
1120
  msgid "Add New Cookie"
1121
  msgstr ""
1122
 
1356
  msgid "Sessions"
1357
  msgstr ""
1358
 
1359
+ #: classes/Cookies.php:174, classes/Triggers.php:262
1360
  msgid "Cookie Name"
1361
  msgstr ""
1362
 
1900
  msgid "The delay before the popup will open in milliseconds."
1901
  msgstr ""
1902
 
1903
+ #: classes/Triggers.php:263
1904
  msgid "Choose which cookies will disable this trigger?"
1905
  msgstr ""
1906
 
2001
  msgid "No upgrades currently required."
2002
  msgstr ""
2003
 
2004
+ #: classes/Upsell.php:22, includes/admin/themes/metabox-close-fields.php:35
2005
  msgctxt "%s represent the opening & closing link html"
2006
  msgid "Want to disable the close button? Check out %sForced Interaction%s!"
2007
  msgstr ""
popup-maker.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=plugin-uri
5
  * Description: Easily create & style popups with any content. Theme editor to quickly style your popups. Add forms, social media boxes, videos & more.
6
  * Author: WP Popup Maker
7
- * Version: 1.7.16
8
  * Author URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=author-uri
9
  * Text Domain: popup-maker
10
  *
@@ -93,7 +93,7 @@ class Popup_Maker {
93
  /**
94
  * @var string Plugin Version
95
  */
96
- public static $VER = '1.7.16';
97
 
98
  /**
99
  * @var int DB Version
4
  * Plugin URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=plugin-uri
5
  * Description: Easily create & style popups with any content. Theme editor to quickly style your popups. Add forms, social media boxes, videos & more.
6
  * Author: WP Popup Maker
7
+ * Version: 1.7.17
8
  * Author URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=author-uri
9
  * Text Domain: popup-maker
10
  *
93
  /**
94
  * @var string Plugin Version
95
  */
96
+ public static $VER = '1.7.17';
97
 
98
  /**
99
  * @var int DB Version
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link:
6
  Tags: marketing, popup, popups, optin, advertising, conversion, responsive popups, promotion, popover, pop-up, pop over, lightbox, conversion, modal
7
  Requires at least: 3.6
8
  Tested up to: 4.9.4
9
- Stable tag: 1.7.16
10
  License: GNU Version 3 or Any Later Version
11
 
12
  Everything you need to create unique user experiences. Insert forms & other content from your favorite plugins to create custom responsive popups.
@@ -100,6 +100,15 @@ There are several common causes for this which include:
100
  9. Create any popup imaginable using our color pickers and sliders!
101
 
102
  == Changelog ==
 
 
 
 
 
 
 
 
 
103
  = v1.7.16 - 04/24/2018 =
104
  * Tweak: Removed debug code.
105
  * Fix: Issue with valueless shortcode attributes not processing properly.
6
  Tags: marketing, popup, popups, optin, advertising, conversion, responsive popups, promotion, popover, pop-up, pop over, lightbox, conversion, modal
7
  Requires at least: 3.6
8
  Tested up to: 4.9.4
9
+ Stable tag: 1.7.17
10
  License: GNU Version 3 or Any Later Version
11
 
12
  Everything you need to create unique user experiences. Insert forms & other content from your favorite plugins to create custom responsive popups.
100
  9. Create any popup imaginable using our color pickers and sliders!
101
 
102
  == Changelog ==
103
+
104
+ = v1.7.17 - 05/01/2018 =
105
+ * Improvement: Added popup option to disable automatic re-triggering of popup after non-ajax form submission.
106
+ * Improvement: Added notice when JS errors occur in Popup Maker admin interfaces with link to documentation for proper diagnosis & reporting.
107
+ * Tweak: Added asset cache reset on update of core version & db version.
108
+ * Tweak: Removed debug code.
109
+ * Tweak: Simplified the post type batch processor setup for extensions.
110
+ * Dev: Added base PUM_Extension_Activator class to standardize extension activation and various other things.
111
+
112
  = v1.7.16 - 04/24/2018 =
113
  * Tweak: Removed debug code.
114
  * Fix: Issue with valueless shortcode attributes not processing properly.