Version Description
Download this release
Release Info
Developer | danieliser |
Plugin | Popup Maker – Popup Forms, Optins & More |
Version | 1.16.3 |
Comparing to | |
See all releases |
Code changes from version 1.16.2 to 1.16.3
- assets/js/site.js +37 -34
- assets/js/site.min.js +1 -1
- classes/Analytics.php +22 -2
- classes/Model/Popup.php +6 -10
- classes/Site/Popups.php +2 -2
- classes/Utils/Array.php +40 -36
- dist/block-editor/block-editor-styles.asset.php +1 -1
- dist/block-editor/block-editor-styles.css +61 -45
- dist/block-editor/block-editor-styles.css.map +1 -1
- dist/block-editor/block-editor.asset.php +1 -1
- dist/block-editor/block-editor.js +14 -9
- dist/block-editor/block-editor.js.map +1 -1
- includes/modules/admin-bar.php +1 -1
- languages/popup-maker.pot +2 -2
- popup-maker.php +2 -2
- readme.txt +6 -28
assets/js/site.js
CHANGED
@@ -1031,7 +1031,7 @@ var PUM_Accessibility;
|
|
1031 |
*/
|
1032 |
|
1033 |
var PUM_Analytics;
|
1034 |
-
( function( $ ) {
|
1035 |
'use strict';
|
1036 |
|
1037 |
$.fn.popmake.last_open_trigger = null;
|
@@ -1043,7 +1043,7 @@ var PUM_Analytics;
|
|
1043 |
);
|
1044 |
|
1045 |
PUM_Analytics = {
|
1046 |
-
beacon: function( data, callback ) {
|
1047 |
var beacon = new Image(),
|
1048 |
url = rest_enabled ? pum_vars.analytics_api : pum_vars.ajaxurl,
|
1049 |
opts = {
|
@@ -1066,7 +1066,7 @@ var PUM_Analytics;
|
|
1066 |
callback:
|
1067 |
typeof callback === 'function'
|
1068 |
? callback
|
1069 |
-
: function() {},
|
1070 |
};
|
1071 |
|
1072 |
if ( ! rest_enabled ) {
|
@@ -1087,15 +1087,18 @@ var PUM_Analytics;
|
|
1087 |
};
|
1088 |
|
1089 |
if (
|
1090 |
-
typeof pum_vars.disable_tracking === 'undefined' ||
|
1091 |
-
|
|
|
|
|
|
|
1092 |
) {
|
1093 |
// Only popups from the editor should fire analytics events.
|
1094 |
$( document )
|
1095 |
/**
|
1096 |
* Track opens for popups.
|
1097 |
*/
|
1098 |
-
.on( 'pumAfterOpen.core_analytics', '.pum', function() {
|
1099 |
var $popup = PUM.getPopup( this ),
|
1100 |
data = {
|
1101 |
pid:
|
@@ -1116,37 +1119,37 @@ var PUM_Analytics;
|
|
1116 |
/**
|
1117 |
* Track form submission conversions
|
1118 |
*/
|
1119 |
-
$( function() {
|
1120 |
-
PUM.hooks.addAction(
|
1121 |
-
form,
|
1122 |
-
args
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
}
|
1128 |
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
|
1141 |
|
1142 |
-
|
1143 |
-
|
1144 |
-
|
1145 |
-
|
1146 |
-
|
1147 |
-
|
|
|
1148 |
}
|
1149 |
-
|
1150 |
} );
|
1151 |
}
|
1152 |
} )( jQuery );
|
1031 |
*/
|
1032 |
|
1033 |
var PUM_Analytics;
|
1034 |
+
( function ( $ ) {
|
1035 |
'use strict';
|
1036 |
|
1037 |
$.fn.popmake.last_open_trigger = null;
|
1043 |
);
|
1044 |
|
1045 |
PUM_Analytics = {
|
1046 |
+
beacon: function ( data, callback ) {
|
1047 |
var beacon = new Image(),
|
1048 |
url = rest_enabled ? pum_vars.analytics_api : pum_vars.ajaxurl,
|
1049 |
opts = {
|
1066 |
callback:
|
1067 |
typeof callback === 'function'
|
1068 |
? callback
|
1069 |
+
: function () {},
|
1070 |
};
|
1071 |
|
1072 |
if ( ! rest_enabled ) {
|
1087 |
};
|
1088 |
|
1089 |
if (
|
1090 |
+
( typeof pum_vars.disable_tracking === 'undefined' ||
|
1091 |
+
! pum_vars.disable_tracking ) &&
|
1092 |
+
// Check for extensions disabling core tracking events.
|
1093 |
+
( typeof pum_vars.disable_core_tracking === 'undefined' ||
|
1094 |
+
! pum_vars.disable_core_tracking )
|
1095 |
) {
|
1096 |
// Only popups from the editor should fire analytics events.
|
1097 |
$( document )
|
1098 |
/**
|
1099 |
* Track opens for popups.
|
1100 |
*/
|
1101 |
+
.on( 'pumAfterOpen.core_analytics', '.pum', function () {
|
1102 |
var $popup = PUM.getPopup( this ),
|
1103 |
data = {
|
1104 |
pid:
|
1119 |
/**
|
1120 |
* Track form submission conversions
|
1121 |
*/
|
1122 |
+
$( function () {
|
1123 |
+
PUM.hooks.addAction(
|
1124 |
+
'pum.integration.form.success',
|
1125 |
+
function ( form, args ) {
|
1126 |
+
// If the submission has already been counted in the backend, we can bail early.
|
1127 |
+
if ( args.ajax === false ) {
|
1128 |
+
return;
|
1129 |
+
}
|
|
|
1130 |
|
1131 |
+
// If no popup is included in the args, we can bail early since we only record conversions within popups.
|
1132 |
+
if ( args.popup.length === 0 ) {
|
1133 |
+
return;
|
1134 |
+
}
|
1135 |
+
var data = {
|
1136 |
+
pid:
|
1137 |
+
parseInt(
|
1138 |
+
args.popup.popmake( 'getSettings' ).id,
|
1139 |
+
10
|
1140 |
+
) || null,
|
1141 |
+
event: 'conversion',
|
1142 |
+
};
|
1143 |
|
1144 |
+
// Shortcode popups use negative numbers, and single-popup (preview mode) shouldn't be tracked.
|
1145 |
+
if (
|
1146 |
+
data.pid > 0 &&
|
1147 |
+
! $( 'body' ).hasClass( 'single-popup' )
|
1148 |
+
) {
|
1149 |
+
PUM_Analytics.beacon( data );
|
1150 |
+
}
|
1151 |
}
|
1152 |
+
);
|
1153 |
} );
|
1154 |
}
|
1155 |
} )( jQuery );
|
assets/js/site.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var PUM,PUM_Accessibility,PUM_Analytics,pm_cookie,pm_cookie_json,pm_remove_cookie;!function(i){"use strict";void 0===i.fn.on&&(i.fn.on=function(e,o,t){return this.delegate(o,e,t)}),void 0===i.fn.off&&(i.fn.off=function(e,o,t){return this.undelegate(o,e,t)}),void 0===i.fn.bindFirst&&(i.fn.bindFirst=function(e,o){var t=i(this);t.unbind(e,o),t.bind(e,o),(t=(o=i._data(t[0]).events)[e]).unshift(t.pop()),o[e]=t}),void 0===i.fn.outerHtml&&(i.fn.outerHtml=function(){var e=i(this).clone();return i("<div/>").append(e).html()}),void 0===i.fn.isInViewport&&(i.fn.isInViewport=function(){var e=i(this).offset().top,o=e+i(this).outerHeight(),t=i(window).scrollTop(),n=t+i(window).height();return t<o&&e<n}),void 0===Date.now&&(Date.now=function(){return(new Date).getTime()})}(jQuery),function(a,r,s){"use strict";function n(e,o){function t(e,o,t){return o?e[o.slice(0,t?-1:o.length)]:e}return o.split(".").reduce(function(e,o){return o?o.split("[").reduce(t,e):e},e)}window.pum_vars=window.pum_vars||{default_theme:"0",home_url:"/",version:1.7,pm_dir_url:"",ajaxurl:"",restapi:!1,analytics_api:!1,rest_nonce:null,debug_mode:!1,disable_tracking:!0,message_position:"top",core_sub_forms_enabled:!0,popups:{}},window.pum_popups=window.pum_popups||{},window.pum_vars.popups=window.pum_popups,PUM={get:new function(){function e(e,o,t){"boolean"==typeof o&&(t=o,o=!1);var n=o?o.selector+" "+e:e;return s!==i[n]&&!t||(i[n]=o?o.find(e):jQuery(e)),i[n]}var i={};return e.elementCache=i,e},getPopup:function(e){var o;return o=e,(e=isNaN(o)||parseInt(Number(o))!==parseInt(o)||isNaN(parseInt(o,10))?"current"===e?PUM.get(".pum-overlay.pum-active:eq(0)",!0):"open"===e?PUM.get(".pum-overlay.pum-active",!0):"closed"===e?PUM.get(".pum-overlay:not(.pum-active)",!0):e instanceof jQuery?e:a(e):PUM.get("#pum-"+e)).hasClass("pum-overlay")?e:e.hasClass("popmake")||e.parents(".pum-overlay").length?e.parents(".pum-overlay"):a()},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){return PUM.getPopup(e).popmake("getSettings")},getSetting:function(e,o,t){o=n(PUM.getSettings(e),o);return void 0!==o?o:t!==s?t:null},checkConditions:function(e){return PUM.getPopup(e).popmake("checkConditions")},getCookie:function(e){return a.pm_cookie(e)},getJSONCookie:function(e){return a.pm_cookie_json(e)},setCookie:function(e,o){PUM.getPopup(e).popmake("setCookie",jQuery.extend({name:"pum-"+PUM.getSetting(e,"id"),expires:"+30 days"},o))},clearCookie:function(e,o){a.pm_remove_cookie(e),"function"==typeof o&&o()},clearCookies:function(e,o){var t,n=PUM.getPopup(e).popmake("getSettings").cookies;if(n!==s&&n.length)for(t=0;n.length>t;t+=1)a.pm_remove_cookie(n[t].settings.name);"function"==typeof o&&o()},getClickTriggerSelector:function(e,o){var t=PUM.getPopup(e),e=PUM.getSettings(e),e=[".popmake-"+e.id,".popmake-"+decodeURIComponent(e.slug),'a[href$="#popmake-'+e.id+'"]'];return o.extra_selectors&&""!==o.extra_selectors&&e.push(o.extra_selectors),(e=pum.hooks.applyFilters("pum.trigger.click_open.selectors",e,o,t)).join(", ")},disableClickTriggers:function(e,o){if(e!==s)if(o!==s){var t=PUM.getClickTriggerSelector(e,o);a(t).removeClass("pum-trigger"),a(r).off("click.pumTrigger click.popmakeOpen",t)}else{var n=PUM.getSetting(e,"triggers",[]);if(n.length)for(var i=0;n.length>i;i++)-1!==pum.hooks.applyFilters("pum.disableClickTriggers.clickTriggerTypes",["click_open"]).indexOf(n[i].type)&&(t=PUM.getClickTriggerSelector(e,n[i].settings),a(t).removeClass("pum-trigger"),a(r).off("click.pumTrigger click.popmakeOpen",t))}},actions:{stopIframeVideosPlaying:function(){var e=PUM.getPopup(this),o=e.popmake("getContainer");e.hasClass("pum-has-videos")||(o.find("iframe").filter('[src*="youtube"],[src*="vimeo"]').each(function(){var e=a(this),o=e.attr("src"),t=o.replace("autoplay=1","1=1");t!==o&&(o=t),e.prop("src",o)}),o.find("video").each(function(){this.pause()}))}}},a.fn.popmake=function(e){return a.fn.popmake.methods[e]?(a(r).trigger("pumMethodCall",arguments),a.fn.popmake.methods[e].apply(this,Array.prototype.slice.call(arguments,1))):"object"!=typeof e&&e?void(window.console&&console.warn("Method "+e+" does not exist on $.fn.popmake")):a.fn.popmake.methods.init.apply(this,arguments)},a.fn.popmake.methods={init:function(){return this.each(function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings");return t.theme_id<=0&&(t.theme_id=pum_vars.default_theme),t.disable_reposition!==s&&t.disable_reposition||a(window).on("resize",function(){(o.hasClass("pum-active")||o.find(".popmake.active").length)&&a.fn.popmake.utilities.throttle(setTimeout(function(){o.popmake("reposition")},25),500,!1)}),o.find(".pum-container").data("popmake",t),o.data("popmake",t).trigger("pumInit"),t.open_sound&&"none"!==t.open_sound&&((e="custom"!==t.open_sound?new Audio(pum_vars.pm_dir_url+"/assets/sounds/"+t.open_sound):new Audio(t.custom_sound)).addEventListener("canplaythrough",function(){o.data("popAudio",e)}),e.addEventListener("error",function(){console.warn("Error occurred when trying to load Popup opening sound.")}),e.load()),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 e=PUM.getPopup(this);return a.extend(!0,{},a.fn.popmake.defaults,e.data("popmake")||{},"object"==typeof pum_popups&&void 0!==pum_popups[e.attr("id")]?pum_popups[e.attr("id")]:{})},state:function(e){var o=PUM.getPopup(this);if(s!==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(e){var o=PUM.getPopup(this),t=o.popmake("getContainer"),n=o.popmake("getClose"),i=o.popmake("getSettings"),r=a("html");return o.trigger("pumBeforeOpen"),o.hasClass("preventOpen")||t.hasClass("preventOpen")?(console.log("prevented"),o.removeClass("preventOpen").removeClass("pum-active").trigger("pumOpenPrevented")):(i.stackable||o.popmake("close_all"),o.addClass("pum-active"),0<i.close_button_delay&&n.fadeOut(0),r.addClass("pum-open"),i.overlay_disabled?r.addClass("pum-open-overlay-disabled"):r.addClass("pum-open-overlay"),i.position_fixed?r.addClass("pum-open-fixed"):r.addClass("pum-open-scrollable"),o.popmake("setup_close").popmake("reposition").popmake("animate",i.animation_type,function(){0<i.close_button_delay&&setTimeout(function(){n.fadeIn()},i.close_button_delay),o.trigger("pumAfterOpen"),a(window).trigger("resize"),a.fn.popmake.last_open_popup=o,e!==s&&e()}),void 0!==o.data("popAudio")&&o.data("popAudio").play().catch(function(e){console.warn("Sound was not able to play when popup opened. Reason: "+e)})),this},setup_close:function(){var t=PUM.getPopup(this),e=t.popmake("getClose"),n=t.popmake("getSettings");return(e=e.add(a(".popmake-close, .pum-close",t).not(e))).off("click.pum").on("click.pum",function(e){var o=a(this);o.hasClass("pum-do-default")||o.data("do-default")!==s&&o.data("do-default")||e.preventDefault(),a.fn.popmake.last_close_trigger="Close Button",t.popmake("close")}),(n.close_on_esc_press||n.close_on_f4_press)&&a(window).off("keyup.popmake").on("keyup.popmake",function(e){27===e.keyCode&&n.close_on_esc_press&&(a.fn.popmake.last_close_trigger="ESC Key",t.popmake("close")),115===e.keyCode&&n.close_on_f4_press&&(a.fn.popmake.last_close_trigger="F4 Key",t.popmake("close"))}),n.close_on_overlay_click&&(t.on("pumAfterOpen",function(){a(r).on("click.pumCloseOverlay",function(e){a(e.target).closest(".pum-container").length||(a.fn.popmake.last_close_trigger="Overlay Click",t.popmake("close"))})}),t.on("pumAfterClose",function(){a(r).off("click.pumCloseOverlay")})),n.close_on_form_submission&&PUM.hooks.addAction("pum.integration.form.success",function(e,o){o.popup&&o.popup[0]===t[0]&&setTimeout(function(){a.fn.popmake.last_close_trigger="Form Submission",t.popmake("close")},n.close_on_form_submission_delay||0)}),t.trigger("pumSetupClose"),this},close:function(n){return this.each(function(){var e=PUM.getPopup(this),o=e.popmake("getContainer"),t=(t=e.popmake("getClose")).add(a(".popmake-close, .pum-close",e).not(t));return e.trigger("pumBeforeClose"),e.hasClass("preventClose")||o.hasClass("preventClose")?e.removeClass("preventClose").trigger("pumClosePrevented"):o.fadeOut("fast",function(){e.is(":visible")&&e.fadeOut("fast"),a(window).off("keyup.popmake"),e.off("click.popmake"),t.off("click.popmake"),1===a(".pum-active").length&&a("html").removeClass("pum-open").removeClass("pum-open-scrollable").removeClass("pum-open-overlay").removeClass("pum-open-overlay-disabled").removeClass("pum-open-fixed"),e.removeClass("pum-active").trigger("pumAfterClose"),n!==s&&n()}),this})},close_all:function(){return a(".pum-active").popmake("close"),this},reposition:function(e){var o=PUM.getPopup(this).trigger("pumBeforeReposition"),t=o.popmake("getContainer"),n=o.popmake("getSettings"),i=n.location,r={my:"",at:"",of:window,collision:"none",using:"function"==typeof e?e:a.fn.popmake.callbacks.reposition_using},e={overlay:null,container:null},s=null;try{s=a(a.fn.popmake.last_open_trigger)}catch(e){s=a()}return n.position_from_trigger&&s.length?(r.of=s,0<=i.indexOf("left")&&(r.my+=" right",r.at+=" left"+(0!==n.position_left?"-"+n.position_left:"")),0<=i.indexOf("right")&&(r.my+=" left",r.at+=" right"+(0!==n.position_right?"+"+n.position_right:"")),0<=i.indexOf("center")&&(r.my="center"===i?"center":r.my+" center",r.at="center"===i?"center":r.at+" center"),0<=i.indexOf("top")&&(r.my+=" bottom",r.at+=" top"+(0!==n.position_top?"-"+n.position_top:"")),0<=i.indexOf("bottom")&&(r.my+=" top",r.at+=" bottom"+(0!==n.position_bottom?"+"+n.position_bottom:""))):(0<=i.indexOf("left")&&(r.my+=" left"+(0!==n.position_left?"+"+n.position_left:""),r.at+=" left"),0<=i.indexOf("right")&&(r.my+=" right"+(0!==n.position_right?"-"+n.position_right:""),r.at+=" right"),0<=i.indexOf("center")&&(r.my="center"===i?"center":r.my+" center",r.at="center"===i?"center":r.at+" center"),0<=i.indexOf("top")&&(r.my+=" top"+(0!==n.position_top?"+"+(a("body").hasClass("admin-bar")?parseInt(n.position_top,10)+32:n.position_top):""),r.at+=" top"),0<=i.indexOf("bottom")&&(r.my+=" bottom"+(0!==n.position_bottom?"-"+n.position_bottom:""),r.at+=" bottom")),r.my=a.trim(r.my),r.at=a.trim(r.at),o.is(":hidden")&&(e.overlay=o.css("opacity"),o.css({opacity:0}).show(0)),t.is(":hidden")&&(e.container=t.css("opacity"),t.css({opacity:0}).show(0)),n.position_fixed&&t.addClass("fixed"),"custom"===n.size?t.css({width:n.custom_width,height:n.custom_height_auto?"auto":n.custom_height}):"auto"!==n.size&&t.addClass("responsive").css({minWidth:""!==n.responsive_min_width?n.responsive_min_width:"auto",maxWidth:""!==n.responsive_max_width?n.responsive_max_width:"auto"}),o.trigger("pumAfterReposition"),t.addClass("custom-position").position(r).trigger("popmakeAfterReposition"),"center"===i&&t[0].offsetTop<0&&t.css({top:a("body").hasClass("admin-bar")?42:10}),e.overlay&&o.css({opacity:e.overlay}).hide(0),e.container&&t.css({opacity:e.container}).hide(0),this},animation_origin:function(e){var o=PUM.getPopup(this).popmake("getContainer"),t={my:"",at:""};switch(e){case"top":t={my:"left+"+o.offset().left+" bottom-100",at:"left top"};break;case"bottom":t={my:"left+"+o.offset().left+" top+100",at:"left bottom"};break;case"left":t={my:"right top+"+o.offset().top,at:"left top"};break;case"right":t={my:"left top+"+o.offset().top,at:"right top"};break;default:0<=e.indexOf("left")&&(t={my:t.my+" right",at:t.at+" left"}),0<=e.indexOf("right")&&(t={my:t.my+" left",at:t.at+" right"}),0<=e.indexOf("center")&&(t={my:t.my+" center",at:t.at+" center"}),0<=e.indexOf("top")&&(t={my:t.my+" bottom-100",at:t.at+" top"}),(t=0<=e.indexOf("bottom")?{my:t.my+" top+100",at:t.at+" bottom"}:t).my=a.trim(t.my),t.at=a.trim(t.at)}return t.of=window,t.collision="none",t}}}(jQuery,document),function(e){"use strict";e.fn.popmake.version=1.8,e.fn.popmake.last_open_popup=null,window.ajaxurl=window.pum_vars.ajaxurl,window.PUM.init=function(){console.log("init popups ✔"),e(".pum").popmake(),e(void 0).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)),PUM.integrations.init()},e(function(){var e=PUM.hooks.applyFilters("pum.initHandler",PUM.init),o=PUM.hooks.applyFilters("pum.initPromises",[]);Promise.all(o).then(e)}),e(".pum").on("pumInit",function(){var e=PUM.getPopup(this),o=PUM.getSetting(e,"id"),e=e.find("form");e.length&&e.append('<input type="hidden" name="pum_form_popup_id" value="'+o+'" />')}).on("pumAfterClose",window.PUM.actions.stopIframeVideosPlaying)}(jQuery),function(i,t){"use strict";var n,r,s,a="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",e=".pum:not(.pum-accessibility-disabled)";PUM_Accessibility={forceFocus:function(e){s&&s.length&&!s[0].contains(e.target)&&(e.stopPropagation(),PUM_Accessibility.setFocusToFirstItem())},trapTabKey:function(e){var o,t,n;9===e.keyCode&&(o=s.find(".pum-container *").filter(a).filter(":visible"),n=i(":focus"),t=o.length,n=o.index(n),e.shiftKey?0===n&&(o.get(t-1).focus(),e.preventDefault()):n===t-1&&(o.get(0).focus(),e.preventDefault()))},setFocusToFirstItem:function(){s.find(".pum-container *").filter(a).filter(":visible").first().focus()},initiateFocusLock:function(){var e=PUM.getPopup(this),o=i(":focus");e.has(o).length||(r=o),s=e.on("keydown.pum_accessibility",PUM_Accessibility.trapTabKey).attr("aria-hidden","false"),(n=i("body > *").filter(":visible").not(s)).attr("aria-hidden","true"),i(t).one("focusin.pum_accessibility",PUM_Accessibility.forceFocus),PUM_Accessibility.setFocusToFirstItem()}},i(t).on("pumInit",e,function(){PUM.getPopup(this).find("[tabindex]").each(function(){var e=i(this);e.data("tabindex",e.attr("tabindex")).prop("tabindex","0")})}).on("pumBeforeOpen",e,function(){}).on("pumAfterOpen",e,PUM_Accessibility.initiateFocusLock).on("pumBeforeClose",e,function(){}).on("pumAfterClose",e,function(){PUM.getPopup(this).off("keydown.pum_accessibility").attr("aria-hidden","true"),n&&(n.attr("aria-hidden","false"),n=null),void 0!==r&&r.length&&r.focus(),s=null,i(t).off("focusin.pum_accessibility")}).on("pumSetupClose",e,function(){}).on("pumOpenPrevented",e,function(){}).on("pumClosePrevented",e,function(){}).on("pumBeforeReposition",e,function(){})}(jQuery,document),function(i){"use strict";i.fn.popmake.last_open_trigger=null,i.fn.popmake.last_close_trigger=null,i.fn.popmake.conversion_trigger=null;var r=!(void 0===pum_vars.analytics_api||!pum_vars.analytics_api);PUM_Analytics={beacon:function(e,o){var t=new Image,n=r?pum_vars.analytics_api:pum_vars.ajaxurl,o={route:pum.hooks.applyFilters("pum.analyticsBeaconRoute","/"+pum_vars.analytics_route+"/"),data:pum.hooks.applyFilters("pum.AnalyticsBeaconData",i.extend(!0,{event:"open",pid:null,_cache:+new Date},e)),callback:"function"==typeof o?o:function(){}};r?n+=o.route:o.data.action="pum_analytics",n&&(i(t).on("error success load done",o.callback),t.src=n+"?"+i.param(o.data))}},void 0!==pum_vars.disable_tracking&&pum_vars.disable_tracking||(i(document).on("pumAfterOpen.core_analytics",".pum",function(){var e=PUM.getPopup(this),e={pid:parseInt(e.popmake("getSettings").id,10)||null};0<e.pid&&!i("body").hasClass("single-popup")&&PUM_Analytics.beacon(e)}),i(function(){PUM.hooks.addAction("pum.integration.form.success",function(e,o){!1!==o.ajax&&(0===o.popup.length||0<(o={pid:parseInt(o.popup.popmake("getSettings").id,10)||null,event:"conversion"}).pid&&!i("body").hasClass("single-popup")&&PUM_Analytics.beacon(o))})}))}(jQuery),function(n,r){"use strict";function s(e){var o=e.popmake("getContainer"),t={display:"",opacity:""};e.css(t),o.css(t)}function a(e){return e.overlay_disabled?0:e.animation_speed/2}function p(e){return e.overlay_disabled?parseInt(e.animation_speed):e.animation_speed/2}n.fn.popmake.methods.animate_overlay=function(e,o,t){return PUM.getPopup(this).popmake("getSettings").overlay_disabled?n.fn.popmake.overlay_animations.none.apply(this,[o,t]):n.fn.popmake.overlay_animations[e]?n.fn.popmake.overlay_animations[e].apply(this,[o,t]):(window.console&&console.warn("Animation style "+e+" does not exist."),this)},n.fn.popmake.methods.animate=function(e){return n.fn.popmake.animations[e]?n.fn.popmake.animations[e].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Animation style "+e+" does not exist."),this)},n.fn.popmake.animations={none:function(e){var o=PUM.getPopup(this);return o.popmake("getContainer").css({opacity:1,display:"block"}),o.popmake("animate_overlay","none",0,function(){e!==r&&e()}),this},slide:function(o){var e=PUM.getPopup(this),t=e.popmake("getContainer"),n=e.popmake("getSettings"),i=e.popmake("animation_origin",n.animation_origin);return s(e),t.position(i),e.popmake("animate_overlay","fade",a(n),function(){t.popmake("reposition",function(e){t.animate(e,p(n),"swing",function(){o!==r&&o()})})}),this},fade:function(e){var o=PUM.getPopup(this),t=o.popmake("getContainer"),n=o.popmake("getSettings");return s(o),o.css({opacity:0,display:"block"}),t.css({opacity:0,display:"block"}),o.popmake("animate_overlay","fade",a(n),function(){t.animate({opacity:1},p(n),"swing",function(){e!==r&&e()})}),this},fadeAndSlide:function(o){var e=PUM.getPopup(this),t=e.popmake("getContainer"),n=e.popmake("getSettings"),i=e.popmake("animation_origin",n.animation_origin);return s(e),e.css({display:"block",opacity:0}),t.css({display:"block",opacity:0}),t.position(i),e.popmake("animate_overlay","fade",a(n),function(){t.popmake("reposition",function(e){e.opacity=1,t.animate(e,p(n),"swing",function(){o!==r&&o()})})}),this},grow:function(e){return n.fn.popmake.animations.fade.apply(this,arguments)},growAndSlide:function(e){return n.fn.popmake.animations.fadeAndSlide.apply(this,arguments)}},n.fn.popmake.overlay_animations={none:function(e,o){PUM.getPopup(this).css({opacity:1,display:"block"}),"function"==typeof o&&o()},fade:function(e,o){PUM.getPopup(this).css({opacity:0,display:"block"}).animate({opacity:1},e,"swing",o)},slide:function(e,o){PUM.getPopup(this).slideDown(e,o)}}}(jQuery,void document),function(e,o){"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(o){"use strict";o.fn.popmake.callbacks={reposition_using:function(e){o(this).css(e)}}}(jQuery,document),function(p){"use strict";function u(){return e=void 0===e?"undefined"!=typeof MobileDetect?new MobileDetect(window.navigator.userAgent):{phone:function(){return!1},tablet:function(){return!1}}:e}var e;p.extend(p.fn.popmake.methods,{checkConditions:function(){var e,o,t,n,i,r=PUM.getPopup(this),s=r.popmake("getSettings"),a=!0;if(s.disable_on_mobile&&u().phone())return!1;if(s.disable_on_tablet&&u().tablet())return!1;if(s.conditions.length)for(o=0;s.conditions.length>o;o++){for(n=s.conditions[o],e=!1,t=0;n.length>t&&((!(i=p.extend({},{not_operand:!1},n[t])).not_operand&&r.popmake("checkCondition",i)||i.not_operand&&!r.popmake("checkCondition",i))&&(e=!0),p(this).trigger("pumCheckingCondition",[e,i]),!e);t++);e||(a=!1)}return a},checkCondition:function(e){var o=e.target||null;e.settings;return o?p.fn.popmake.conditions[o]?p.fn.popmake.conditions[o].apply(this,[e]):window.console?(console.warn("Condition "+o+" does not exist."),!0):void 0:(console.warn("Condition type not set."),!1)}}),p.fn.popmake.conditions={}}(jQuery,document),function(c){"use strict";function d(e,o,t){var n,i=new Date;if("undefined"!=typeof document){if(1<arguments.length){switch(typeof(t=c.extend({path:pum_vars.home_url},d.defaults,t)).expires){case"number":i.setMilliseconds(i.getMilliseconds()+864e5*t.expires),t.expires=i;break;case"string":i.setTime(1e3*c.fn.popmake.utilities.strtotime("+"+t.expires)),t.expires=i}try{n=JSON.stringify(o),/^[\{\[]/.test(n)&&(o=n)}catch(e){}return o=f.write?f.write(o,e):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[e,"=",o,t.expires?"; expires="+t.expires.toUTCString():"",t.path?"; path="+t.path:"",t.domain?"; domain="+t.domain:"",t.secure?"; secure":""].join("")}e||(n={});for(var r=document.cookie?document.cookie.split("; "):[],s=/(%[0-9A-Z]{2})+/g,a=0;a<r.length;a++){var p=r[a].split("=");'"'===(l=p.slice(1).join("=")).charAt(0)&&(l=l.slice(1,-1));try{var u=p[0].replace(s,decodeURIComponent),l=f.read?f.read(l,u):f(l,u)||l.replace(s,decodeURIComponent);if(this.json)try{l=JSON.parse(l)}catch(e){}if(e===u){n=l;break}e||(n[u]=l)}catch(e){}}return n}}var f;c.extend(c.fn.popmake,{cookie:(void 0===f&&(f=function(){}),(d.set=d).get=function(e){return d.call(d,e)},d.getJSON=function(){return d.apply({json:!0},[].slice.call(arguments))},d.defaults={},d.remove=function(e,o){d(e,"",c.extend({},o,{expires:-1,path:""})),d(e,"",c.extend({},o,{expires:-1}))},d.process=function(e,o,t,n){return d.apply(d,3<arguments.length&&"object"!=typeof t&&void 0!==o?[e,o,{expires:t,path:n}]:[].slice.call(arguments,[0,2]))},d.withConverter=c.fn.popmake.cookie,d)}),pm_cookie=c.pm_cookie=c.fn.popmake.cookie.process,pm_cookie_json=c.pm_cookie_json=c.fn.popmake.cookie.getJSON,pm_remove_cookie=c.pm_remove_cookie=c.fn.popmake.cookie.remove}(jQuery),function(i,e,n){"use strict";function r(e){i.pm_cookie(e.name,!0,e.session?null:e.time,e.path?pum_vars.home_url||"/":null),pum.hooks.doAction("popmake.setCookie",e)}i.extend(i.fn.popmake.methods,{addCookie:function(e){return pum.hooks.doAction("popmake.addCookie",arguments),i.fn.popmake.cookies[e]?i.fn.popmake.cookies[e].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Cookie type "+e+" does not exist."),this)},setCookie:r,checkCookies:function(e){var o,t=!1;if(e.cookie_name===n||null===e.cookie_name||""===e.cookie_name)return!1;switch(typeof e.cookie_name){case"object":case"array":for(o=0;e.cookie_name.length>o;o+=1)i.pm_cookie(e.cookie_name[o])!==n&&(t=!0);break;case"string":i.pm_cookie(e.cookie_name)!==n&&(t=!0)}return pum.hooks.doAction("popmake.checkCookies",e,t),t}}),i.fn.popmake.cookies=i.fn.popmake.cookies||{},i.extend(i.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)})},form_submission:function(t){var n=PUM.getPopup(this);t=i.extend({form:"",formInstanceId:"",only_in_popup:!1},t),PUM.hooks.addAction("pum.integration.form.success",function(e,o){t.form.length&&PUM.integrations.checkFormKeyMatches(t.form,t.formInstanceId,o)&&(t.only_in_popup&&o.popup.length&&o.popup.is(n)||!t.only_in_popup)&&n.popmake("setCookie",t)})},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(e){return i.fn.popmake.cookies.form_success.apply(this,arguments)},cf7_form_success:function(e){return i.fn.popmake.cookies.form_success.apply(this,arguments)},gforms_form_success:function(e){return i.fn.popmake.cookies.form_success.apply(this,arguments)}}),i(e).on("pumInit",".pum",function(){var e,o,t=PUM.getPopup(this),n=t.popmake("getSettings").cookies||[];if(n.length)for(o=0;o<n.length;o+=1)e=n[o],t.popmake("addCookie",e.event,e.settings)}),i(function(){var e=i(".pum-cookie");e.each(function(){var o=i(this),t=e.index(o),n=o.data("cookie-args");!o.data("only-onscreen")||o.isInViewport()&&o.is(":visible")?r(n):i(window).on("scroll.pum-cookie-"+t,i.fn.popmake.utilities.throttle(function(e){o.isInViewport()&&o.is(":visible")&&(r(n),i(window).off("scroll.pum-cookie-"+t))},100))})})}(jQuery,document);var pum_debug,pum_debug_mode=!1;!function(s,e){var a,o,p;e=window.pum_vars||{debug_mode:!1},(pum_debug_mode=!(pum_debug_mode=void 0!==e.debug_mode&&e.debug_mode)&&-1!==window.location.href.indexOf("pum_debug")?!0:pum_debug_mode)&&(o=a=!1,p=window.pum_debug_vars||{debug_mode_enabled:"Popup Maker: Debug Mode Enabled",debug_started_at:"Debug started at:",debug_more_info:"For more information on how to use this information visit https://docs.wppopupmaker.com/?utm_medium=js-debug-info&utm_campaign=contextual-help&utm_source=browser-console&utm_content=more-info",global_info:"Global Information",localized_vars:"Localized variables",popups_initializing:"Popups Initializing",popups_initialized:"Popups Initialized",single_popup_label:"Popup: #",theme_id:"Theme ID: ",label_method_call:"Method Call:",label_method_args:"Method Arguments:",label_popup_settings:"Settings",label_triggers:"Triggers",label_cookies:"Cookies",label_delay:"Delay:",label_conditions:"Conditions",label_cookie:"Cookie:",label_settings:"Settings:",label_selector:"Selector:",label_mobile_disabled:"Mobile Disabled:",label_tablet_disabled:"Tablet Disabled:",label_event:"Event: %s",triggers:[],cookies:[]},pum_debug={odump:function(e){return s.extend({},e)},logo:function(){console.log(" -------------------------------------------------------------\n| ____ __ __ _ |\n| | _ \\ ___ _ __ _ _ _ __ | \\/ | __ _| | _____ _ __ |\n| | |_) / _ \\| '_ \\| | | | '_ \\ | |\\/| |/ _` | |/ / _ \\ '__| |\n| | __/ (_) | |_) | |_| | |_) | | | | | (_| | < __/ | |\n| |_| \\___/| .__/ \\__,_| .__/ |_| |_|\\__,_|_|\\_\\___|_| |\n| |_| |_| |\n -------------------------------------------------------------")},initialize:function(){a=!0,pum_debug.logo(),console.debug(p.debug_mode_enabled),console.log(p.debug_started_at,new Date),console.info(p.debug_more_info),pum_debug.divider(p.global_info),console.groupCollapsed(p.localized_vars),console.log("pum_vars:",pum_debug.odump(e)),s(document).trigger("pum_debug_initialize_localized_vars"),console.groupEnd(),s(document).trigger("pum_debug_initialize")},popup_event_header:function(e){e=e.popmake("getSettings");o!==e.id&&(o=e.id,pum_debug.divider(p.single_popup_label+e.id+" - "+e.slug))},divider:function(e){var o,t=0,n=" "+new Array(63).join("-")+" ";"string"==typeof e?(o=62-e.length,(t={left:Math.floor(o/2),right:Math.floor(o/2)}).left+t.right===o-1&&t.right++,t.left=new Array(t.left+1).join(" "),t.right=new Array(t.right+1).join(" "),console.log(n+"\n|"+t.left+e+t.right+"|\n"+n)):console.log(n)},click_trigger:function(e,o){var t=e.popmake("getSettings"),t=[".popmake-"+t.id,".popmake-"+decodeURIComponent(t.slug),'a[href$="#popmake-'+t.id+'"]'];o.extra_selectors&&""!==o.extra_selectors&&t.push(o.extra_selectors),t=(t=pum.hooks.applyFilters("pum.trigger.click_open.selectors",t,o,e)).join(", "),console.log(p.label_selector,t)},trigger:function(e,o){if("string"==typeof p.triggers[o.type]){switch(console.groupCollapsed(p.triggers[o.type]),o.type){case"auto_open":console.log(p.label_delay,o.settings.delay),console.log(p.label_cookie,o.settings.cookie_name);break;case"click_open":pum_debug.click_trigger(e,o.settings),console.log(p.label_cookie,o.settings.cookie_name)}s(document).trigger("pum_debug_render_trigger",e,o),console.groupEnd()}},cookie:function(e,o){if("string"==typeof p.cookies[o.event]){switch(console.groupCollapsed(p.cookies[o.event]),o.event){case"on_popup_open":case"on_popup_close":case"manual":case"ninja_form_success":console.log(p.label_cookie,pum_debug.odump(o.settings))}s(document).trigger("pum_debug_render_trigger",e,o),console.groupEnd()}}},s(document).on("pumInit",".pum",function(){var e=PUM.getPopup(s(this)),o=e.popmake("getSettings"),t=o.triggers||[],n=o.cookies||[],i=o.conditions||[],r=0;if(a||(pum_debug.initialize(),pum_debug.divider(p.popups_initializing)),console.groupCollapsed(p.single_popup_label+o.id+" - "+o.slug),console.log(p.theme_id,o.theme_id),t.length){for(console.groupCollapsed(p.label_triggers),r=0;r<t.length;r++)pum_debug.trigger(e,t[r]);console.groupEnd()}if(n.length){for(console.groupCollapsed(p.label_cookies),r=0;r<n.length;r+=1)pum_debug.cookie(e,n[r]);console.groupEnd()}i.length&&(console.groupCollapsed(p.label_conditions),console.log(i),console.groupEnd()),console.groupCollapsed(p.label_popup_settings),console.log(p.label_mobile_disabled,!1!==o.disable_on_mobile),console.log(p.label_tablet_disabled,!1!==o.disable_on_tablet),console.log(p.label_display_settings,pum_debug.odump(o)),e.trigger("pum_debug_popup_settings"),console.groupEnd(),console.groupEnd()}).on("pumBeforeOpen",".pum",function(){var e=PUM.getPopup(s(this)),o=s.fn.popmake.last_open_trigger;pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumBeforeOpen"));try{o=(o=s(s.fn.popmake.last_open_trigger)).length?o:s.fn.popmake.last_open_trigger.toString()}catch(e){o=""}finally{console.log(p.label_triggers,[o])}console.groupEnd()}).on("pumOpenPrevented",".pum",function(){var e=PUM.getPopup(s(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumOpenPrevented")),console.groupEnd()}).on("pumAfterOpen",".pum",function(){var e=PUM.getPopup(s(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumAfterOpen")),console.groupEnd()}).on("pumSetupClose",".pum",function(){var e=PUM.getPopup(s(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumSetupClose")),console.groupEnd()}).on("pumClosePrevented",".pum",function(){var e=PUM.getPopup(s(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumClosePrevented")),console.groupEnd()}).on("pumBeforeClose",".pum",function(){var e=PUM.getPopup(s(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumBeforeClose")),console.groupEnd()}).on("pumAfterClose",".pum",function(){var e=PUM.getPopup(s(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumAfterClose")),console.groupEnd()}).on("pumBeforeReposition",".pum",function(){var e=PUM.getPopup(s(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumBeforeReposition")),console.groupEnd()}).on("pumAfterReposition",".pum",function(){var e=PUM.getPopup(s(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumAfterReposition")),console.groupEnd()}).on("pumCheckingCondition",".pum",function(e,o,t){var n=PUM.getPopup(s(this));pum_debug.popup_event_header(n),console.groupCollapsed(p.label_event.replace("%s","pumCheckingCondition")),console.log((t.not_operand?"(!) ":"")+t.target+": "+o,t),console.groupEnd()}))}(jQuery),function(e){"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_form_submission:!1,close_on_form_submission_delay:0,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(r){"use strict";var i={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||{},r.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(e){var o=e.find('[type="submit"]'),t=o.find(".pum-form__loader");window.PUM.forms.messages.clear_all(e),t.length||(t=r('<span class="pum-form__loader"></span>'),""!==o.attr("value")?t.insertAfter(o):o.append(t)),o.prop("disabled",!0),t.show(),e.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(e){var o=r(this),t=o.pumSerializeObject();e.preventDefault(),e.stopPropagation(),window.PUM.forms.form.beforeAjax(o),r.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_form",values:t}}).always(function(){window.PUM.forms.form.afterAjax(o)}).done(function(e){window.PUM.forms.form.responseHandler(o,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}},messages:{add:function(e,o,t){var n=e.find(".pum-form__messages"),i=0;if(t=t||"success",o=o||[],!n.length)switch(n=r('<div class="pum-form__messages">').hide(),pum_vars.message_position){case"bottom":e.append(n.addClass("pum-form__messages--bottom"));break;case"top":e.prepend(n.addClass("pum-form__messages--top"))}if(0<=["bottom","top"].indexOf(pum_vars.message_position))for(;o.length>i;i++)this.add_message(n,o[i].message,t);else for(;o.length>i;i++)void 0!==o[i].field?this.add_field_error(e,o[i]):this.add_message(n,o[i].message,t);n.is(":hidden")&&r(".pum-form__message",n).length&&n.slideDown()},add_message:function(e,o,t){o=r('<p class="pum-form__message">').html(o);t=t||"success",o.addClass("pum-form__message--"+t),e.append(o),e.is(":visible")&&o.hide().slideDown()},add_field_error:function(e,o){e=r('[name="'+o.field+'"]',e).parents(".pum-form__field").addClass("pum-form__field--error");this.add_message(e,o.message,"error")},clear_all:function(e,o){var t=e.find(".pum-form__messages"),n=t.find(".pum-form__message"),e=e.find(".pum-form__field.pum-form__field--error");o=o||!1,t.length&&n.slideUp("fast",function(){r(this).remove(),o&&t.hide()}),e.length&&e.removeClass("pum-form__field--error").find("p.pum-form__message").remove()},scroll_to_first:function(e){window.PUM.utilities.scrollTo(r(".pum-form__field.pum-form__field--error",e).eq(0))}},success:function(e,o){var t,n;(o=r.extend({},i,o))&&(t=PUM.getPopup(e),e={},n=function(){o.openpopup&&PUM.getPopup(o.openpopup_id).length?PUM.open(o.openpopup_id):o.redirect_enabled&&(""!==o.redirect?window.location=o.redirect:window.location.reload(!0))},t.length&&(t.trigger("pumFormSuccess"),o.cookie&&(e=r.extend({name:"pum-"+PUM.getSetting(t,"id"),expires:"+1 year"},"object"==typeof o.cookie?o.cookie:{}),PUM.setCookie(t,e))),t.length&&o.closepopup?setTimeout(function(){t.popmake("close",n)},1e3*parseInt(o.closedelay)):n())}})}(jQuery),function(e){"use strict";e.pum=e.pum||{},e.pum.hooks=e.pum.hooks||new function(){var t=Array.prototype.slice,i={removeFilter:function(e,o){"string"==typeof e&&n("filters",e,o);return i},applyFilters:function(){var e=t.call(arguments),o=e.shift();return"string"!=typeof o?i:s("filters",o,e)},addFilter:function(e,o,t,n){"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),r("filters",e,o,t,n));return i},removeAction:function(e,o){"string"==typeof e&&n("actions",e,o);return i},doAction:function(){var e=t.call(arguments),o=e.shift();"string"==typeof o&&s("actions",o,e);return i},addAction:function(e,o,t,n){"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),r("actions",e,o,t,n));return i}},a={actions:{},filters:{}};function n(e,o,t,n){var i,r,s;if(a[e][o])if(t)if(i=a[e][o],n)for(s=i.length;s--;)(r=i[s]).callback===t&&r.context===n&&i.splice(s,1);else for(s=i.length;s--;)i[s].callback===t&&i.splice(s,1);else a[e][o]=[]}function r(e,o,t,n,i){n={callback:t,priority:n,context:i},i=(i=a[e][o])?(i.push(n),function(e){for(var o,t,n,i=1,r=e.length;i<r;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}(i)):[n];a[e][o]=i}function s(e,o,t){var n,i,r=a[e][o];if(!r)return"filters"===e&&t[0];if(i=r.length,"filters"===e)for(n=0;n<i;n++)t[0]=r[n].callback.apply(r[n].context,t);else for(n=0;n<i;n++)r[n].callback.apply(r[n].context,t);return"filters"!==e||t[0]}return i},e.PUM=e.PUM||{},e.PUM.hooks=e.pum.hooks}(window),function(t){"use strict";function n(e){return e}window.PUM=window.PUM||{},window.PUM.integrations=window.PUM.integrations||{},t.extend(window.PUM.integrations,{init:function(){var e;void 0!==pum_vars.form_submission&&((e=pum_vars.form_submission).ajax=!1,e.popup=0<e.popupId?PUM.getPopup(e.popupId):null,PUM.integrations.formSubmission(null,e))},formSubmission:function(e,o){(o=t.extend({popup:PUM.getPopup(e),formProvider:null,formId:null,formInstanceId:null,formKey:null,ajax:!0,tracked:!1},o)).formKey=o.formKey||[o.formProvider,o.formId,o.formInstanceId].filter(n).join("_"),o.popup&&o.popup.length&&(o.popupId=PUM.getSetting(o.popup,"id")),window.PUM.hooks.doAction("pum.integration.form.success",e,o)},checkFormKeyMatches:function(e,o,t){o=""===o&&o;var n=-1!==["any"===e,"pumsubform"===e&&"pumsubform"===t.formProvider,e===t.formProvider+"_any",!o&&new RegExp("^"+e+"(_[d]*)?").test(t.formKey),!!o&&e+"_"+o===t.formKey].indexOf(!0);return window.PUM.hooks.applyFilters("pum.integration.checkFormKeyMatches",n,{formIdentifier:e,formInstanceId:o,submittedFormArgs:t})}})}(window.jQuery),function(s){"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||{},s.extend(window.PUM.newsletter,{form:s.extend({},window.PUM.forms.form,{submit:function(e){var o=s(this),t=o.pumSerializeObject();e.preventDefault(),e.stopPropagation(),window.PUM.newsletter.form.beforeAjax(o),s.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_sub_form",values:t}}).always(function(){window.PUM.newsletter.form.afterAjax(o)}).done(function(e){window.PUM.newsletter.form.responseHandler(o,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}})}),s(document).on("submit","form.pum-sub-form",window.PUM.newsletter.form.submit).on("success","form.pum-sub-form",function(e,o){var t=s(e.target),n=t.data("settings")||{},i=t.pumSerializeObject(),r=PUM.getPopup(t),e=PUM.getSetting(r,"id"),r=s("form.pum-sub-form",r).index(t)+1;window.PUM.integrations.formSubmission(t,{formProvider:"pumsubform",formId:e,formInstanceId:r,extras:{data:o,values:i,settings:n}}),t.trigger("pumNewsletterSuccess",[o]).addClass("pum-newsletter-success"),t[0].reset(),window.pum.hooks.doAction("pum-sub-form.success",o,t),"string"==typeof n.redirect&&""!==n.redirect&&(n.redirect=atob(n.redirect)),window.PUM.forms.success(t,n)}).on("error","form.pum-sub-form",function(e,o){e=s(e.target);e.trigger("pumNewsletterError",[o]),window.pum.hooks.doAction("pum-sub-form.errors",o,e)}))}(jQuery),function(r,o){"use strict";r.extend(r.fn.popmake.methods,{addTrigger:function(e){return r.fn.popmake.triggers[e]?r.fn.popmake.triggers[e].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Trigger type "+e+" does not exist."),this)}}),r.fn.popmake.triggers={auto_open:function(e){var o=PUM.getPopup(this);setTimeout(function(){o.popmake("state","isOpen")||!o.popmake("checkCookies",e)&&o.popmake("checkConditions")&&(r.fn.popmake.last_open_trigger="Auto Open - Delay: "+e.delay,o.popmake("open"))},e.delay)},click_open:function(n){var i=PUM.getPopup(this),e=i.popmake("getSettings"),e=[".popmake-"+e.id,".popmake-"+decodeURIComponent(e.slug),'a[href$="#popmake-'+e.id+'"]'];n.extra_selectors&&""!==n.extra_selectors&&e.push(n.extra_selectors),e=(e=pum.hooks.applyFilters("pum.trigger.click_open.selectors",e,n,i)).join(", "),r(e).addClass("pum-trigger").css({cursor:"pointer"}),r(o).on("click.pumTrigger",e,function(e){var o=r(this),t=n.do_default||!1;0<i.has(o).length||i.popmake("state","isOpen")||!i.popmake("checkCookies",n)&&i.popmake("checkConditions")&&(o.data("do-default")?t=o.data("do-default"):(o.hasClass("do-default")||o.hasClass("popmake-do-default")||o.hasClass("pum-do-default"))&&(t=!0),e.ctrlKey||pum.hooks.applyFilters("pum.trigger.click_open.do_default",t,i,o)||(e.preventDefault(),e.stopPropagation()),r.fn.popmake.last_open_trigger=o,i.popmake("open"))})},form_submission:function(t){var n=PUM.getPopup(this);t=r.extend({form:"",formInstanceId:"",delay:0},t);PUM.hooks.addAction("pum.integration.form.success",function(e,o){t.form.length&&PUM.integrations.checkFormKeyMatches(t.form,t.formInstanceId,o)&&setTimeout(function(){n.popmake("state","isOpen")||!n.popmake("checkCookies",t)&&n.popmake("checkConditions")&&(r.fn.popmake.last_open_trigger="Form Submission",n.popmake("open"))},t.delay)})},admin_debug:function(){PUM.getPopup(this).popmake("open")}},r(o).on("pumInit",".pum",function(){var e,o,t=PUM.getPopup(this),n=t.popmake("getSettings").triggers||[];if(n.length)for(o=0;o<n.length;o+=1)e=n[o],t.popmake("addTrigger",e.type,e.settings)})}(jQuery,document),function(a){"use strict";var n="color,date,datetime,datetime-local,email,hidden,month,number,password,range,search,tel,text,time,url,week".split(","),i="select,textarea".split(","),r=/\[([^\]]*)\]/g;Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(null==this)throw new TypeError;var o=Object(this),t=o.length>>>0;if(0==t)return-1;var n=0;if(0<arguments.length&&((n=Number(arguments[1]))!=n?n=0:0!==n&&n!==1/0&&n!==-1/0&&(n=(0<n||-1)*Math.floor(Math.abs(n)))),t<=n)return-1;for(var i=0<=n?n:Math.max(t-Math.abs(n),0);i<t;i++)if(i in o&&o[i]===e)return i;return-1}),a.fn.popmake.utilities={scrollTo:function(e,o){var t=a(e)||a();t.length&&a("html, body").animate({scrollTop:t.offset().top-100},1e3,"swing",function(){var e=t.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 o&&o()})},inArray:function(e,o){return!!~o.indexOf(e)},convert_hex:function(e,o){return e=e.replace("#",""),"rgba("+parseInt(e.substring(0,2),16)+","+parseInt(e.substring(2,4),16)+","+parseInt(e.substring(4,6),16)+","+o/100+")"},debounce:function(t,n){var i;return function(){var e=this,o=arguments;window.clearTimeout(i),i=window.setTimeout(function(){t.apply(e,o)},n)}},throttle:function(e,o){function t(){n=!1}var n=!1;return function(){n||(e.apply(this,arguments),window.setTimeout(t,o),n=!0)}},getXPath:function(e){var t,n,i,r,s=[];return a.each(a(e).parents(),function(e,o){return r=a(o),t=r.attr("id")||"",n=r.attr("class")||"",i=r.get(0).tagName.toLowerCase(),r=r.parent().children(i).index(r),"body"!==i&&(0<n.length&&(n=(n=n.split(" "))[0]),void s.push(i+(0<t.length?"#"+t:0<n.length?"."+n.split(" ").join("."):":eq("+r+")")))}),s.reverse().join(" > ")},strtotime:function(e,o){var t,n,i,r,s,a,p,u,l;if(!e)return!1;if((n=(e=e.replace(/^\s+|\s+$/g,"").replace(/\s{2,}/g," ").replace(/[\t\r\n]/g,"").toLowerCase()).match(/^(\d{1,4})([\-\.\/\:])(\d{1,2})([\-\.\/\:])(\d{1,4})(?:\s(\d{1,2}):(\d{2})?:?(\d{2})?)?(?:\s([A-Z]+)?)?$/))&&n[2]===n[4])if(1901<n[1])switch(n[2]){case"-":return 12<n[3]||31<n[5]?!1:new Date(n[1],parseInt(n[3],10)-1,n[5],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3;case".":return!1;case"/":return 12<n[3]||31<n[5]?!1:new Date(n[1],parseInt(n[3],10)-1,n[5],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3}else if(1901<n[5])switch(n[2]){case"-":case".":return 12<n[3]||31<n[1]?!1:new Date(n[5],parseInt(n[3],10)-1,n[1],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3;case"/":return 12<n[1]||31<n[3]?!1:new Date(n[5],parseInt(n[1],10)-1,n[3],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3}else switch(n[2]){case"-":return 12<n[3]||31<n[5]||n[1]<70&&38<n[1]?!1:(r=0<=n[1]&&n[1]<=38?+n[1]+2e3:n[1],new Date(r,parseInt(n[3],10)-1,n[5],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3);case".":return 70<=n[5]?!(12<n[3]||31<n[1])&&new Date(n[5],parseInt(n[3],10)-1,n[1],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3:n[5]<60&&!n[6]&&(!(23<n[1]||59<n[3])&&(i=new Date,new Date(i.getFullYear(),i.getMonth(),i.getDate(),n[1]||0,n[3]||0,n[5]||0,n[9]||0)/1e3));case"/":return 12<n[1]||31<n[3]||n[5]<70&&38<n[5]?!1:(r=0<=n[5]&&n[5]<=38?+n[5]+2e3:n[5],new Date(r,parseInt(n[1],10)-1,n[3],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3);case":":return 23<n[1]||59<n[3]||59<n[5]?!1:(i=new Date,new Date(i.getFullYear(),i.getMonth(),i.getDate(),n[1]||0,n[3]||0,n[5]||0)/1e3)}if("now"===e)return null===o||isNaN(o)?(new Date).getTime()/1e3||0:o||0;if(t=Date.parse(e),!isNaN(t))return t/1e3||0;function c(e){var o=e.split(" "),t=o[0],n=o[1].substring(0,3),i=/\d+/.test(t),e=("last"===t?-1:1)*("ago"===o[2]?-1:1);if(i&&(e*=parseInt(t,10)),p.hasOwnProperty(n)&&!o[1].match(/^mon(day|\.)?$/i))return s["set"+p[n]](s["get"+p[n]]()+e);if("wee"===n)return s.setDate(s.getDate()+7*e);if("next"===t||"last"===t)t=t,e=e,void 0!==(n=a[n=n])&&(0===(n=n-s.getDay())?n=7*e:0<n&&"last"===t?n-=7:n<0&&"next"===t&&(n+=7),s.setDate(s.getDate()+n));else if(!i)return;return 1}if(s=o?new Date(1e3*o):new Date,a={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},p={yea:"FullYear",mon:"Month",day:"Date",hou:"Hours",min:"Minutes",sec:"Seconds"},o="(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?)",!(n=e.match(new RegExp("([+-]?\\d+\\s(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?)|(last|next)\\s(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?))(\\sago)?","gi"))))return!1;for(l=0,u=n.length;l<u;l+=1)if(!c(n[l]))return!1;return s.getTime()/1e3},serializeObject:function(e){a.extend({},e);var o={},t=a.extend(!0,{include:[],exclude:[],includeByClass:""},e);return this.find(":input").each(function(){var e;!this.name||this.disabled||window.PUM.utilities.inArray(this.name,t.exclude)||t.include.length&&!window.PUM.utilities.inArray(this.name,t.include)||-1===this.className.indexOf(t.includeByClass)||(e=this.name.replace(r,"[$1").split("["))[0]&&(this.checked||window.PUM.utilities.inArray(this.type,n)||window.PUM.utilities.inArray(this.nodeName.toLowerCase(),i))&&("checkbox"===this.type&&e.push(""),function e(o,t,n){var i=t[0];1<t.length?(o[i]||(o[i]=t[1]?{}:[]),e(o[i],t.slice(1),n)):o[i=i||o.length]=n}(o,e,a(this).val()))}),o}},a.fn.popmake.utilies=a.fn.popmake.utilities,window.PUM=window.PUM||{},window.PUM.utilities=window.PUM.utilities||{},window.PUM.utilities=a.extend(window.PUM.utilities,a.fn.popmake.utilities)}(jQuery,document),function(e){function o(n,o){var t={},i={};function r(e,o,t){return e[o]=t,e}function s(e,o){var t,n=e.match(p.key);try{o=JSON.parse(o)}catch(e){}for(;void 0!==(t=n.pop());)p.push.test(t)?o=r([],function(e){void 0===i[e]&&(i[e]=0);return i[e]++}(e.replace(/\[\]$/,"")),o):p.fixed.test(t)?o=r([],t,o):p.named.test(t)&&(o=r({},t,o));return o}function e(){return t}this.addPair=function(e){return p.validate.test(e.name)&&(e=s(e.name,"checkbox"===a('[name="'+(e=e).name+'"]',o).attr("type")&&"1"===e.value||e.value),t=n.extend(!0,t,e)),this},this.addPairs=function(e){if(!n.isArray(e))throw new Error("formSerializer.addPairs expects an Array");for(var o=0,t=e.length;o<t;o++)this.addPair(e[o]);return this},this.serialize=e,this.serializeJSON=function(){return JSON.stringify(t)}}var t,a,p;a=(t=e).jQuery||e.Zepto||e.ender||e.$,o.patterns=p={validate:/^[a-z_][a-z0-9_]*(?:\[(?:\d*|[a-z0-9_]+)\])*$/i,key:/[a-z0-9_]+|(?=\[\])/gi,push:/^$/,fixed:/^\d+$/,named:/^[a-z0-9_]+$/i},o.serializeObject=function(){var e=(this.is("form")?this:this.find(":input")).serializeArray();return new o(a,this).addPairs(e).serialize()},o.serializeJSON=function(){var e=(this.is("form")?this:this.find(":input")).serializeArray();return new o(a,this).addPairs(e).serializeJSON()},void 0!==a.fn&&(a.fn.pumSerializeObject=o.serializeObject,a.fn.pumSerializeJSON=o.serializeJSON),t.FormSerializer=o}(this),function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(o,e){if(1&e&&(o=i(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var n in o)i.d(t,n,function(e){return o[e]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s="./assets/js/src/integration/calderaforms.js")}({"./assets/js/src/integration/calderaforms.js":function(e,o,t){"use strict";t.r(o);var n,o=t("./node_modules/@babel/runtime/helpers/slicedToArray.js"),i=t.n(o);(0,window.jQuery)(document).on("cf.ajax.request",function(e,o){return n=o.$form}).on("cf.submission",function(e,o){var t;"complete"!==o.data.status&&"success"!==o.data.status||(t=n.attr("id").split("_"),t=(o=i()(t,2))[0],o=void 0===(o=o[1])?null:o,window.PUM.integrations.formSubmission(n,{formProvider:"calderaforms",formId:t,formInstanceId:o,extras:{state:window.cfstate.hasOwnProperty(t)?window.cfstate[t]:null}}))})},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(e,o){e.exports=function(e,o){(null==o||o>e.length)&&(o=e.length);for(var t=0,n=new Array(o);t<o;t++)n[t]=e[t];return n}},"./node_modules/@babel/runtime/helpers/arrayWithHoles.js":function(e,o){e.exports=function(e){if(Array.isArray(e))return e}},"./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":function(e,o){e.exports=function(e,o){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,i=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(t.push(s.value),!o||t.length!==o);n=!0);}catch(e){i=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}return t}}},"./node_modules/@babel/runtime/helpers/nonIterableRest.js":function(e,o){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},"./node_modules/@babel/runtime/helpers/slicedToArray.js":function(e,o,t){var n=t("./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),i=t("./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),r=t("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),s=t("./node_modules/@babel/runtime/helpers/nonIterableRest.js");e.exports=function(e,o){return n(e)||i(e,o)||r(e,o)||s()}},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,o,t){var n=t("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,o){if(e){if("string"==typeof e)return n(e,o);var t=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(t="Object"===t&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,o):void 0}}}}),function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(o,e){if(1&e&&(o=i(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var n in o)i.d(t,n,function(e){return o[e]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s="./assets/js/src/integration/contactform7.js")}({"./assets/js/src/integration/contactform7.js":function(e,o,t){"use strict";t.r(o);var o=t("./node_modules/@babel/runtime/helpers/typeof.js"),i=t.n(o),r=window.jQuery;r(document).on("wpcf7mailsent",function(e,o){var t=e.detail.contactFormId,n=r(e.target),e=(e.detail.id||e.detail.unitTag).split("-").pop().replace("o","");window.PUM.integrations.formSubmission(n,{formProvider:"contactform7",formId:t,formInstanceId:e,extras:{details:o}});o=n.find("input.wpcf7-pum"),o=!!o.length&&JSON.parse(o.val());"object"===i()(o)&&void 0!==o.closedelay&&3<=o.closedelay.toString().length&&(o.closedelay=o.closedelay/1e3),window.PUM.forms.success(n,o)})},"./node_modules/@babel/runtime/helpers/typeof.js":function(o,e){function t(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?o.exports=t=function(e){return typeof e}:o.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}o.exports=t}}),function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(o,e){if(1&e&&(o=i(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var n in o)i.d(t,n,function(e){return o[e]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s="./assets/js/src/integration/formidableforms.js")}({"./assets/js/src/integration/formidableforms.js":function(e,o){var r=window.jQuery;r(document).on("frmFormComplete",function(e,o,t){var n=r(o),i=n.find('input[name="form_id"]').val(),o=PUM.getPopup(n.find('input[name="pum_form_popup_id"]').val());window.PUM.integrations.formSubmission(n,{popup:o,formProvider:"formidableforms",formId:i,extras:{response:t}})})}}),function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(o,e){if(1&e&&(o=i(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var n in o)i.d(t,n,function(e){return o[e]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s="./assets/js/src/integration/gravityforms.js")}({"./assets/js/src/integration/gravityforms.js":function(e,o,t){"use strict";t.r(o);var o=t("./node_modules/@babel/runtime/helpers/typeof.js"),n=t.n(o),i=window.jQuery,r={};i(document).on("gform_confirmation_loaded",function(e,o){var t=i("#gform_confirmation_wrapper_"+o+",#gforms_confirmation_message_"+o)[0];window.PUM.integrations.formSubmission(t,{formProvider:"gravityforms",formId:o}),window.PUM.forms.success(t,r[o]||{})}),i(function(){i(".gform_wrapper > form").each(function(){var e=i(this),o=e.attr("id").replace("gform_",""),e=e.find("input.gforms-pum"),e=!!e.length&&JSON.parse(e.val());e&&"object"===n()(e)&&("object"===n()(e)&&void 0!==e.closedelay&&3<=e.closedelay.toString().length&&(e.closedelay=e.closedelay/1e3),r[o]=e)})})},"./node_modules/@babel/runtime/helpers/typeof.js":function(o,e){function t(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?o.exports=t=function(e){return typeof e}:o.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}o.exports=t}}),function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(o,e){if(1&e&&(o=i(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var n in o)i.d(t,n,function(e){return o[e]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s="./assets/js/src/integration/mc4wp.js")}({"./assets/js/src/integration/mc4wp.js":function(e,o){var r=window.jQuery;r(function(){"undefined"!=typeof mc4wp&&mc4wp.forms.on("success",function(e,o){var t=r(e.element),n=e.id,i=r(".mc4wp-form-"+e.id).index(t)+1;window.PUM.integrations.formSubmission(t,{formProvider:"mc4wp",formId:n,formInstanceId:i,extras:{form:e,data:o}})})})}}),function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(o,e){if(1&e&&(o=i(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var n in o)i.d(t,n,function(e){return o[e]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s="./assets/js/src/integration/ninjaforms.js")}({"./assets/js/src/integration/ninjaforms.js":function(e,o,t){"use strict";t.r(o);var o=t("./node_modules/@babel/runtime/helpers/slicedToArray.js"),a=t.n(o),p=window.jQuery,n=!1;p(function(){"undefined"!=typeof Marionette&&"undefined"!=typeof nfRadio&&!1===n&&new(n=Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.popupMaker)},popupMaker:function(e,o,t,n){var i=p("#nf-form-"+n+"-cont"),r=n.split("_"),s=a()(r,2),n=s[0],r=s[1],s=void 0===r?null:r,r={};e.errors&&e.errors.length||(window.PUM.integrations.formSubmission(i,{formProvider:"ninjaforms",formId:n,formInstanceId:s,extras:{response:e}}),e.data&&e.data.actions&&(r.openpopup=void 0!==e.data.actions.openpopup,r.openpopup_id=r.openpopup?parseInt(e.data.actions.openpopup):0,r.closepopup=void 0!==e.data.actions.closepopup,r.closedelay=r.closepopup?parseInt(e.data.actions.closepopup):0,r.closepopup&&e.data.actions.closedelay&&(r.closedelay=parseInt(e.data.actions.closedelay))),window.PUM.forms.success(i,r))}}))})},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(e,o){e.exports=function(e,o){(null==o||o>e.length)&&(o=e.length);for(var t=0,n=new Array(o);t<o;t++)n[t]=e[t];return n}},"./node_modules/@babel/runtime/helpers/arrayWithHoles.js":function(e,o){e.exports=function(e){if(Array.isArray(e))return e}},"./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":function(e,o){e.exports=function(e,o){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,i=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(t.push(s.value),!o||t.length!==o);n=!0);}catch(e){i=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}return t}}},"./node_modules/@babel/runtime/helpers/nonIterableRest.js":function(e,o){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},"./node_modules/@babel/runtime/helpers/slicedToArray.js":function(e,o,t){var n=t("./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),i=t("./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),r=t("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),s=t("./node_modules/@babel/runtime/helpers/nonIterableRest.js");e.exports=function(e,o){return n(e)||i(e,o)||r(e,o)||s()}},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,o,t){var n=t("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,o){if(e){if("string"==typeof e)return n(e,o);var t=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(t="Object"===t&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,o):void 0}}}}),function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(o,e){if(1&e&&(o=i(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var n in o)i.d(t,n,function(e){return o[e]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s="./assets/js/src/integration/wpforms.js")}({"./assets/js/src/integration/wpforms.js":function(e,o){var r=window.jQuery;r(document).on("wpformsAjaxSubmitSuccess",".wpforms-ajax-form",function(e,o){var t=r(this),n=t.data("formid"),i=r("form#"+t.attr("id")).index(t)+1;window.PUM.integrations.formSubmission(t,{formProvider:"wpforms",formId:n,formInstanceId:i})})}}),function(e){("object"!=typeof exports||"undefined"==typeof module)&&"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";function e(o){var t=this.constructor;return this.then(function(e){return t.resolve(o()).then(function(){return e})},function(e){return t.resolve(o()).then(function(){return t.reject(e)})})}var o=setTimeout;function p(e){return Boolean(e&&void 0!==e.length)}function n(){}function r(e){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function i(t,n){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,r._immediateFn(function(){var e,o=1===t._state?n.onFulfilled:n.onRejected;if(null!==o){try{e=o(t._value)}catch(e){return void a(n.promise,e)}s(n.promise,e)}else(1===t._state?s:a)(n.promise,t._value)})):t._deferreds.push(n)}function s(o,e){try{if(e===o)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if(e instanceof r)return o._state=3,o._value=e,void u(o);if("function"==typeof t)return void c((n=t,i=e,function(){n.apply(i,arguments)}),o)}o._state=1,o._value=e,u(o)}catch(e){a(o,e)}var n,i}function a(e,o){e._state=2,e._value=o,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&r._immediateFn(function(){e._handled||r._unhandledRejectionFn(e._value)});for(var o=0,t=e._deferreds.length;o<t;o++)i(e,e._deferreds[o]);e._deferreds=null}function l(e,o,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof o?o:null,this.promise=t}function c(e,o){var t=!1;try{e(function(e){t||(t=!0,s(o,e))},function(e){t||(t=!0,a(o,e))})}catch(e){if(t)return;t=!0,a(o,e)}}r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,o){var t=new this.constructor(n);return i(this,new l(e,o,t)),t},r.prototype.finally=e,r.all=function(o){return new r(function(i,r){if(!p(o))return r(new TypeError("Promise.all accepts an array"));var s=Array.prototype.slice.call(o);if(0===s.length)return i([]);var a=s.length;for(var e=0;e<s.length;e++)!function o(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){o(t,e)},r)}s[t]=e,0==--a&&i(s)}catch(e){r(e)}}(e,s[e])})},r.resolve=function(o){return o&&"object"==typeof o&&o.constructor===r?o:new r(function(e){e(o)})},r.reject=function(t){return new r(function(e,o){o(t)})},r.race=function(i){return new r(function(e,o){if(!p(i))return o(new TypeError("Promise.race accepts an array"));for(var t=0,n=i.length;t<n;t++)r.resolve(i[t]).then(e,o)})},r._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){o(e,0)},r._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var t=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"Promise"in t?t.Promise.prototype.finally||(t.Promise.prototype.finally=e):t.Promise=r});
|
1 |
+
var PUM,PUM_Accessibility,PUM_Analytics,pm_cookie,pm_cookie_json,pm_remove_cookie;!function(i){"use strict";void 0===i.fn.on&&(i.fn.on=function(e,o,t){return this.delegate(o,e,t)}),void 0===i.fn.off&&(i.fn.off=function(e,o,t){return this.undelegate(o,e,t)}),void 0===i.fn.bindFirst&&(i.fn.bindFirst=function(e,o){var t=i(this);t.unbind(e,o),t.bind(e,o),(t=(o=i._data(t[0]).events)[e]).unshift(t.pop()),o[e]=t}),void 0===i.fn.outerHtml&&(i.fn.outerHtml=function(){var e=i(this).clone();return i("<div/>").append(e).html()}),void 0===i.fn.isInViewport&&(i.fn.isInViewport=function(){var e=i(this).offset().top,o=e+i(this).outerHeight(),t=i(window).scrollTop(),n=t+i(window).height();return t<o&&e<n}),void 0===Date.now&&(Date.now=function(){return(new Date).getTime()})}(jQuery),function(a,r,s){"use strict";function n(e,o){function t(e,o,t){return o?e[o.slice(0,t?-1:o.length)]:e}return o.split(".").reduce(function(e,o){return o?o.split("[").reduce(t,e):e},e)}window.pum_vars=window.pum_vars||{default_theme:"0",home_url:"/",version:1.7,pm_dir_url:"",ajaxurl:"",restapi:!1,analytics_api:!1,rest_nonce:null,debug_mode:!1,disable_tracking:!0,message_position:"top",core_sub_forms_enabled:!0,popups:{}},window.pum_popups=window.pum_popups||{},window.pum_vars.popups=window.pum_popups,PUM={get:new function(){function e(e,o,t){"boolean"==typeof o&&(t=o,o=!1);var n=o?o.selector+" "+e:e;return s!==i[n]&&!t||(i[n]=o?o.find(e):jQuery(e)),i[n]}var i={};return e.elementCache=i,e},getPopup:function(e){var o;return o=e,(e=isNaN(o)||parseInt(Number(o))!==parseInt(o)||isNaN(parseInt(o,10))?"current"===e?PUM.get(".pum-overlay.pum-active:eq(0)",!0):"open"===e?PUM.get(".pum-overlay.pum-active",!0):"closed"===e?PUM.get(".pum-overlay:not(.pum-active)",!0):e instanceof jQuery?e:a(e):PUM.get("#pum-"+e)).hasClass("pum-overlay")?e:e.hasClass("popmake")||e.parents(".pum-overlay").length?e.parents(".pum-overlay"):a()},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){return PUM.getPopup(e).popmake("getSettings")},getSetting:function(e,o,t){o=n(PUM.getSettings(e),o);return void 0!==o?o:t!==s?t:null},checkConditions:function(e){return PUM.getPopup(e).popmake("checkConditions")},getCookie:function(e){return a.pm_cookie(e)},getJSONCookie:function(e){return a.pm_cookie_json(e)},setCookie:function(e,o){PUM.getPopup(e).popmake("setCookie",jQuery.extend({name:"pum-"+PUM.getSetting(e,"id"),expires:"+30 days"},o))},clearCookie:function(e,o){a.pm_remove_cookie(e),"function"==typeof o&&o()},clearCookies:function(e,o){var t,n=PUM.getPopup(e).popmake("getSettings").cookies;if(n!==s&&n.length)for(t=0;n.length>t;t+=1)a.pm_remove_cookie(n[t].settings.name);"function"==typeof o&&o()},getClickTriggerSelector:function(e,o){var t=PUM.getPopup(e),e=PUM.getSettings(e),e=[".popmake-"+e.id,".popmake-"+decodeURIComponent(e.slug),'a[href$="#popmake-'+e.id+'"]'];return o.extra_selectors&&""!==o.extra_selectors&&e.push(o.extra_selectors),(e=pum.hooks.applyFilters("pum.trigger.click_open.selectors",e,o,t)).join(", ")},disableClickTriggers:function(e,o){if(e!==s)if(o!==s){var t=PUM.getClickTriggerSelector(e,o);a(t).removeClass("pum-trigger"),a(r).off("click.pumTrigger click.popmakeOpen",t)}else{var n=PUM.getSetting(e,"triggers",[]);if(n.length)for(var i=0;n.length>i;i++)-1!==pum.hooks.applyFilters("pum.disableClickTriggers.clickTriggerTypes",["click_open"]).indexOf(n[i].type)&&(t=PUM.getClickTriggerSelector(e,n[i].settings),a(t).removeClass("pum-trigger"),a(r).off("click.pumTrigger click.popmakeOpen",t))}},actions:{stopIframeVideosPlaying:function(){var e=PUM.getPopup(this),o=e.popmake("getContainer");e.hasClass("pum-has-videos")||(o.find("iframe").filter('[src*="youtube"],[src*="vimeo"]').each(function(){var e=a(this),o=e.attr("src"),t=o.replace("autoplay=1","1=1");t!==o&&(o=t),e.prop("src",o)}),o.find("video").each(function(){this.pause()}))}}},a.fn.popmake=function(e){return a.fn.popmake.methods[e]?(a(r).trigger("pumMethodCall",arguments),a.fn.popmake.methods[e].apply(this,Array.prototype.slice.call(arguments,1))):"object"!=typeof e&&e?void(window.console&&console.warn("Method "+e+" does not exist on $.fn.popmake")):a.fn.popmake.methods.init.apply(this,arguments)},a.fn.popmake.methods={init:function(){return this.each(function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings");return t.theme_id<=0&&(t.theme_id=pum_vars.default_theme),t.disable_reposition!==s&&t.disable_reposition||a(window).on("resize",function(){(o.hasClass("pum-active")||o.find(".popmake.active").length)&&a.fn.popmake.utilities.throttle(setTimeout(function(){o.popmake("reposition")},25),500,!1)}),o.find(".pum-container").data("popmake",t),o.data("popmake",t).trigger("pumInit"),t.open_sound&&"none"!==t.open_sound&&((e="custom"!==t.open_sound?new Audio(pum_vars.pm_dir_url+"/assets/sounds/"+t.open_sound):new Audio(t.custom_sound)).addEventListener("canplaythrough",function(){o.data("popAudio",e)}),e.addEventListener("error",function(){console.warn("Error occurred when trying to load Popup opening sound.")}),e.load()),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 e=PUM.getPopup(this);return a.extend(!0,{},a.fn.popmake.defaults,e.data("popmake")||{},"object"==typeof pum_popups&&void 0!==pum_popups[e.attr("id")]?pum_popups[e.attr("id")]:{})},state:function(e){var o=PUM.getPopup(this);if(s!==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(e){var o=PUM.getPopup(this),t=o.popmake("getContainer"),n=o.popmake("getClose"),i=o.popmake("getSettings"),r=a("html");return o.trigger("pumBeforeOpen"),o.hasClass("preventOpen")||t.hasClass("preventOpen")?(console.log("prevented"),o.removeClass("preventOpen").removeClass("pum-active").trigger("pumOpenPrevented")):(i.stackable||o.popmake("close_all"),o.addClass("pum-active"),0<i.close_button_delay&&n.fadeOut(0),r.addClass("pum-open"),i.overlay_disabled?r.addClass("pum-open-overlay-disabled"):r.addClass("pum-open-overlay"),i.position_fixed?r.addClass("pum-open-fixed"):r.addClass("pum-open-scrollable"),o.popmake("setup_close").popmake("reposition").popmake("animate",i.animation_type,function(){0<i.close_button_delay&&setTimeout(function(){n.fadeIn()},i.close_button_delay),o.trigger("pumAfterOpen"),a(window).trigger("resize"),a.fn.popmake.last_open_popup=o,e!==s&&e()}),void 0!==o.data("popAudio")&&o.data("popAudio").play().catch(function(e){console.warn("Sound was not able to play when popup opened. Reason: "+e)})),this},setup_close:function(){var t=PUM.getPopup(this),e=t.popmake("getClose"),n=t.popmake("getSettings");return(e=e.add(a(".popmake-close, .pum-close",t).not(e))).off("click.pum").on("click.pum",function(e){var o=a(this);o.hasClass("pum-do-default")||o.data("do-default")!==s&&o.data("do-default")||e.preventDefault(),a.fn.popmake.last_close_trigger="Close Button",t.popmake("close")}),(n.close_on_esc_press||n.close_on_f4_press)&&a(window).off("keyup.popmake").on("keyup.popmake",function(e){27===e.keyCode&&n.close_on_esc_press&&(a.fn.popmake.last_close_trigger="ESC Key",t.popmake("close")),115===e.keyCode&&n.close_on_f4_press&&(a.fn.popmake.last_close_trigger="F4 Key",t.popmake("close"))}),n.close_on_overlay_click&&(t.on("pumAfterOpen",function(){a(r).on("click.pumCloseOverlay",function(e){a(e.target).closest(".pum-container").length||(a.fn.popmake.last_close_trigger="Overlay Click",t.popmake("close"))})}),t.on("pumAfterClose",function(){a(r).off("click.pumCloseOverlay")})),n.close_on_form_submission&&PUM.hooks.addAction("pum.integration.form.success",function(e,o){o.popup&&o.popup[0]===t[0]&&setTimeout(function(){a.fn.popmake.last_close_trigger="Form Submission",t.popmake("close")},n.close_on_form_submission_delay||0)}),t.trigger("pumSetupClose"),this},close:function(n){return this.each(function(){var e=PUM.getPopup(this),o=e.popmake("getContainer"),t=(t=e.popmake("getClose")).add(a(".popmake-close, .pum-close",e).not(t));return e.trigger("pumBeforeClose"),e.hasClass("preventClose")||o.hasClass("preventClose")?e.removeClass("preventClose").trigger("pumClosePrevented"):o.fadeOut("fast",function(){e.is(":visible")&&e.fadeOut("fast"),a(window).off("keyup.popmake"),e.off("click.popmake"),t.off("click.popmake"),1===a(".pum-active").length&&a("html").removeClass("pum-open").removeClass("pum-open-scrollable").removeClass("pum-open-overlay").removeClass("pum-open-overlay-disabled").removeClass("pum-open-fixed"),e.removeClass("pum-active").trigger("pumAfterClose"),n!==s&&n()}),this})},close_all:function(){return a(".pum-active").popmake("close"),this},reposition:function(e){var o=PUM.getPopup(this).trigger("pumBeforeReposition"),t=o.popmake("getContainer"),n=o.popmake("getSettings"),i=n.location,r={my:"",at:"",of:window,collision:"none",using:"function"==typeof e?e:a.fn.popmake.callbacks.reposition_using},e={overlay:null,container:null},s=null;try{s=a(a.fn.popmake.last_open_trigger)}catch(e){s=a()}return n.position_from_trigger&&s.length?(r.of=s,0<=i.indexOf("left")&&(r.my+=" right",r.at+=" left"+(0!==n.position_left?"-"+n.position_left:"")),0<=i.indexOf("right")&&(r.my+=" left",r.at+=" right"+(0!==n.position_right?"+"+n.position_right:"")),0<=i.indexOf("center")&&(r.my="center"===i?"center":r.my+" center",r.at="center"===i?"center":r.at+" center"),0<=i.indexOf("top")&&(r.my+=" bottom",r.at+=" top"+(0!==n.position_top?"-"+n.position_top:"")),0<=i.indexOf("bottom")&&(r.my+=" top",r.at+=" bottom"+(0!==n.position_bottom?"+"+n.position_bottom:""))):(0<=i.indexOf("left")&&(r.my+=" left"+(0!==n.position_left?"+"+n.position_left:""),r.at+=" left"),0<=i.indexOf("right")&&(r.my+=" right"+(0!==n.position_right?"-"+n.position_right:""),r.at+=" right"),0<=i.indexOf("center")&&(r.my="center"===i?"center":r.my+" center",r.at="center"===i?"center":r.at+" center"),0<=i.indexOf("top")&&(r.my+=" top"+(0!==n.position_top?"+"+(a("body").hasClass("admin-bar")?parseInt(n.position_top,10)+32:n.position_top):""),r.at+=" top"),0<=i.indexOf("bottom")&&(r.my+=" bottom"+(0!==n.position_bottom?"-"+n.position_bottom:""),r.at+=" bottom")),r.my=a.trim(r.my),r.at=a.trim(r.at),o.is(":hidden")&&(e.overlay=o.css("opacity"),o.css({opacity:0}).show(0)),t.is(":hidden")&&(e.container=t.css("opacity"),t.css({opacity:0}).show(0)),n.position_fixed&&t.addClass("fixed"),"custom"===n.size?t.css({width:n.custom_width,height:n.custom_height_auto?"auto":n.custom_height}):"auto"!==n.size&&t.addClass("responsive").css({minWidth:""!==n.responsive_min_width?n.responsive_min_width:"auto",maxWidth:""!==n.responsive_max_width?n.responsive_max_width:"auto"}),o.trigger("pumAfterReposition"),t.addClass("custom-position").position(r).trigger("popmakeAfterReposition"),"center"===i&&t[0].offsetTop<0&&t.css({top:a("body").hasClass("admin-bar")?42:10}),e.overlay&&o.css({opacity:e.overlay}).hide(0),e.container&&t.css({opacity:e.container}).hide(0),this},animation_origin:function(e){var o=PUM.getPopup(this).popmake("getContainer"),t={my:"",at:""};switch(e){case"top":t={my:"left+"+o.offset().left+" bottom-100",at:"left top"};break;case"bottom":t={my:"left+"+o.offset().left+" top+100",at:"left bottom"};break;case"left":t={my:"right top+"+o.offset().top,at:"left top"};break;case"right":t={my:"left top+"+o.offset().top,at:"right top"};break;default:0<=e.indexOf("left")&&(t={my:t.my+" right",at:t.at+" left"}),0<=e.indexOf("right")&&(t={my:t.my+" left",at:t.at+" right"}),0<=e.indexOf("center")&&(t={my:t.my+" center",at:t.at+" center"}),0<=e.indexOf("top")&&(t={my:t.my+" bottom-100",at:t.at+" top"}),(t=0<=e.indexOf("bottom")?{my:t.my+" top+100",at:t.at+" bottom"}:t).my=a.trim(t.my),t.at=a.trim(t.at)}return t.of=window,t.collision="none",t}}}(jQuery,document),function(e){"use strict";e.fn.popmake.version=1.8,e.fn.popmake.last_open_popup=null,window.ajaxurl=window.pum_vars.ajaxurl,window.PUM.init=function(){console.log("init popups ✔"),e(".pum").popmake(),e(void 0).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)),PUM.integrations.init()},e(function(){var e=PUM.hooks.applyFilters("pum.initHandler",PUM.init),o=PUM.hooks.applyFilters("pum.initPromises",[]);Promise.all(o).then(e)}),e(".pum").on("pumInit",function(){var e=PUM.getPopup(this),o=PUM.getSetting(e,"id"),e=e.find("form");e.length&&e.append('<input type="hidden" name="pum_form_popup_id" value="'+o+'" />')}).on("pumAfterClose",window.PUM.actions.stopIframeVideosPlaying)}(jQuery),function(i,t){"use strict";var n,r,s,a="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",e=".pum:not(.pum-accessibility-disabled)";PUM_Accessibility={forceFocus:function(e){s&&s.length&&!s[0].contains(e.target)&&(e.stopPropagation(),PUM_Accessibility.setFocusToFirstItem())},trapTabKey:function(e){var o,t,n;9===e.keyCode&&(o=s.find(".pum-container *").filter(a).filter(":visible"),n=i(":focus"),t=o.length,n=o.index(n),e.shiftKey?0===n&&(o.get(t-1).focus(),e.preventDefault()):n===t-1&&(o.get(0).focus(),e.preventDefault()))},setFocusToFirstItem:function(){s.find(".pum-container *").filter(a).filter(":visible").first().focus()},initiateFocusLock:function(){var e=PUM.getPopup(this),o=i(":focus");e.has(o).length||(r=o),s=e.on("keydown.pum_accessibility",PUM_Accessibility.trapTabKey).attr("aria-hidden","false"),(n=i("body > *").filter(":visible").not(s)).attr("aria-hidden","true"),i(t).one("focusin.pum_accessibility",PUM_Accessibility.forceFocus),PUM_Accessibility.setFocusToFirstItem()}},i(t).on("pumInit",e,function(){PUM.getPopup(this).find("[tabindex]").each(function(){var e=i(this);e.data("tabindex",e.attr("tabindex")).prop("tabindex","0")})}).on("pumBeforeOpen",e,function(){}).on("pumAfterOpen",e,PUM_Accessibility.initiateFocusLock).on("pumBeforeClose",e,function(){}).on("pumAfterClose",e,function(){PUM.getPopup(this).off("keydown.pum_accessibility").attr("aria-hidden","true"),n&&(n.attr("aria-hidden","false"),n=null),void 0!==r&&r.length&&r.focus(),s=null,i(t).off("focusin.pum_accessibility")}).on("pumSetupClose",e,function(){}).on("pumOpenPrevented",e,function(){}).on("pumClosePrevented",e,function(){}).on("pumBeforeReposition",e,function(){})}(jQuery,document),function(i){"use strict";i.fn.popmake.last_open_trigger=null,i.fn.popmake.last_close_trigger=null,i.fn.popmake.conversion_trigger=null;var r=!(void 0===pum_vars.analytics_api||!pum_vars.analytics_api);PUM_Analytics={beacon:function(e,o){var t=new Image,n=r?pum_vars.analytics_api:pum_vars.ajaxurl,o={route:pum.hooks.applyFilters("pum.analyticsBeaconRoute","/"+pum_vars.analytics_route+"/"),data:pum.hooks.applyFilters("pum.AnalyticsBeaconData",i.extend(!0,{event:"open",pid:null,_cache:+new Date},e)),callback:"function"==typeof o?o:function(){}};r?n+=o.route:o.data.action="pum_analytics",n&&(i(t).on("error success load done",o.callback),t.src=n+"?"+i.param(o.data))}},void 0!==pum_vars.disable_tracking&&pum_vars.disable_tracking||void 0!==pum_vars.disable_core_tracking&&pum_vars.disable_core_tracking||(i(document).on("pumAfterOpen.core_analytics",".pum",function(){var e=PUM.getPopup(this),e={pid:parseInt(e.popmake("getSettings").id,10)||null};0<e.pid&&!i("body").hasClass("single-popup")&&PUM_Analytics.beacon(e)}),i(function(){PUM.hooks.addAction("pum.integration.form.success",function(e,o){!1!==o.ajax&&(0===o.popup.length||0<(o={pid:parseInt(o.popup.popmake("getSettings").id,10)||null,event:"conversion"}).pid&&!i("body").hasClass("single-popup")&&PUM_Analytics.beacon(o))})}))}(jQuery),function(n,r){"use strict";function s(e){var o=e.popmake("getContainer"),t={display:"",opacity:""};e.css(t),o.css(t)}function a(e){return e.overlay_disabled?0:e.animation_speed/2}function p(e){return e.overlay_disabled?parseInt(e.animation_speed):e.animation_speed/2}n.fn.popmake.methods.animate_overlay=function(e,o,t){return PUM.getPopup(this).popmake("getSettings").overlay_disabled?n.fn.popmake.overlay_animations.none.apply(this,[o,t]):n.fn.popmake.overlay_animations[e]?n.fn.popmake.overlay_animations[e].apply(this,[o,t]):(window.console&&console.warn("Animation style "+e+" does not exist."),this)},n.fn.popmake.methods.animate=function(e){return n.fn.popmake.animations[e]?n.fn.popmake.animations[e].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Animation style "+e+" does not exist."),this)},n.fn.popmake.animations={none:function(e){var o=PUM.getPopup(this);return o.popmake("getContainer").css({opacity:1,display:"block"}),o.popmake("animate_overlay","none",0,function(){e!==r&&e()}),this},slide:function(o){var e=PUM.getPopup(this),t=e.popmake("getContainer"),n=e.popmake("getSettings"),i=e.popmake("animation_origin",n.animation_origin);return s(e),t.position(i),e.popmake("animate_overlay","fade",a(n),function(){t.popmake("reposition",function(e){t.animate(e,p(n),"swing",function(){o!==r&&o()})})}),this},fade:function(e){var o=PUM.getPopup(this),t=o.popmake("getContainer"),n=o.popmake("getSettings");return s(o),o.css({opacity:0,display:"block"}),t.css({opacity:0,display:"block"}),o.popmake("animate_overlay","fade",a(n),function(){t.animate({opacity:1},p(n),"swing",function(){e!==r&&e()})}),this},fadeAndSlide:function(o){var e=PUM.getPopup(this),t=e.popmake("getContainer"),n=e.popmake("getSettings"),i=e.popmake("animation_origin",n.animation_origin);return s(e),e.css({display:"block",opacity:0}),t.css({display:"block",opacity:0}),t.position(i),e.popmake("animate_overlay","fade",a(n),function(){t.popmake("reposition",function(e){e.opacity=1,t.animate(e,p(n),"swing",function(){o!==r&&o()})})}),this},grow:function(e){return n.fn.popmake.animations.fade.apply(this,arguments)},growAndSlide:function(e){return n.fn.popmake.animations.fadeAndSlide.apply(this,arguments)}},n.fn.popmake.overlay_animations={none:function(e,o){PUM.getPopup(this).css({opacity:1,display:"block"}),"function"==typeof o&&o()},fade:function(e,o){PUM.getPopup(this).css({opacity:0,display:"block"}).animate({opacity:1},e,"swing",o)},slide:function(e,o){PUM.getPopup(this).slideDown(e,o)}}}(jQuery,void document),function(e,o){"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(o){"use strict";o.fn.popmake.callbacks={reposition_using:function(e){o(this).css(e)}}}(jQuery,document),function(p){"use strict";function u(){return e=void 0===e?"undefined"!=typeof MobileDetect?new MobileDetect(window.navigator.userAgent):{phone:function(){return!1},tablet:function(){return!1}}:e}var e;p.extend(p.fn.popmake.methods,{checkConditions:function(){var e,o,t,n,i,r=PUM.getPopup(this),s=r.popmake("getSettings"),a=!0;if(s.disable_on_mobile&&u().phone())return!1;if(s.disable_on_tablet&&u().tablet())return!1;if(s.conditions.length)for(o=0;s.conditions.length>o;o++){for(n=s.conditions[o],e=!1,t=0;n.length>t&&((!(i=p.extend({},{not_operand:!1},n[t])).not_operand&&r.popmake("checkCondition",i)||i.not_operand&&!r.popmake("checkCondition",i))&&(e=!0),p(this).trigger("pumCheckingCondition",[e,i]),!e);t++);e||(a=!1)}return a},checkCondition:function(e){var o=e.target||null;e.settings;return o?p.fn.popmake.conditions[o]?p.fn.popmake.conditions[o].apply(this,[e]):window.console?(console.warn("Condition "+o+" does not exist."),!0):void 0:(console.warn("Condition type not set."),!1)}}),p.fn.popmake.conditions={}}(jQuery,document),function(c){"use strict";function d(e,o,t){var n,i=new Date;if("undefined"!=typeof document){if(1<arguments.length){switch(typeof(t=c.extend({path:pum_vars.home_url},d.defaults,t)).expires){case"number":i.setMilliseconds(i.getMilliseconds()+864e5*t.expires),t.expires=i;break;case"string":i.setTime(1e3*c.fn.popmake.utilities.strtotime("+"+t.expires)),t.expires=i}try{n=JSON.stringify(o),/^[\{\[]/.test(n)&&(o=n)}catch(e){}return o=f.write?f.write(o,e):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[e,"=",o,t.expires?"; expires="+t.expires.toUTCString():"",t.path?"; path="+t.path:"",t.domain?"; domain="+t.domain:"",t.secure?"; secure":""].join("")}e||(n={});for(var r=document.cookie?document.cookie.split("; "):[],s=/(%[0-9A-Z]{2})+/g,a=0;a<r.length;a++){var p=r[a].split("=");'"'===(l=p.slice(1).join("=")).charAt(0)&&(l=l.slice(1,-1));try{var u=p[0].replace(s,decodeURIComponent),l=f.read?f.read(l,u):f(l,u)||l.replace(s,decodeURIComponent);if(this.json)try{l=JSON.parse(l)}catch(e){}if(e===u){n=l;break}e||(n[u]=l)}catch(e){}}return n}}var f;c.extend(c.fn.popmake,{cookie:(void 0===f&&(f=function(){}),(d.set=d).get=function(e){return d.call(d,e)},d.getJSON=function(){return d.apply({json:!0},[].slice.call(arguments))},d.defaults={},d.remove=function(e,o){d(e,"",c.extend({},o,{expires:-1,path:""})),d(e,"",c.extend({},o,{expires:-1}))},d.process=function(e,o,t,n){return d.apply(d,3<arguments.length&&"object"!=typeof t&&void 0!==o?[e,o,{expires:t,path:n}]:[].slice.call(arguments,[0,2]))},d.withConverter=c.fn.popmake.cookie,d)}),pm_cookie=c.pm_cookie=c.fn.popmake.cookie.process,pm_cookie_json=c.pm_cookie_json=c.fn.popmake.cookie.getJSON,pm_remove_cookie=c.pm_remove_cookie=c.fn.popmake.cookie.remove}(jQuery),function(i,e,n){"use strict";function r(e){i.pm_cookie(e.name,!0,e.session?null:e.time,e.path?pum_vars.home_url||"/":null),pum.hooks.doAction("popmake.setCookie",e)}i.extend(i.fn.popmake.methods,{addCookie:function(e){return pum.hooks.doAction("popmake.addCookie",arguments),i.fn.popmake.cookies[e]?i.fn.popmake.cookies[e].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Cookie type "+e+" does not exist."),this)},setCookie:r,checkCookies:function(e){var o,t=!1;if(e.cookie_name===n||null===e.cookie_name||""===e.cookie_name)return!1;switch(typeof e.cookie_name){case"object":case"array":for(o=0;e.cookie_name.length>o;o+=1)i.pm_cookie(e.cookie_name[o])!==n&&(t=!0);break;case"string":i.pm_cookie(e.cookie_name)!==n&&(t=!0)}return pum.hooks.doAction("popmake.checkCookies",e,t),t}}),i.fn.popmake.cookies=i.fn.popmake.cookies||{},i.extend(i.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)})},form_submission:function(t){var n=PUM.getPopup(this);t=i.extend({form:"",formInstanceId:"",only_in_popup:!1},t),PUM.hooks.addAction("pum.integration.form.success",function(e,o){t.form.length&&PUM.integrations.checkFormKeyMatches(t.form,t.formInstanceId,o)&&(t.only_in_popup&&o.popup.length&&o.popup.is(n)||!t.only_in_popup)&&n.popmake("setCookie",t)})},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(e){return i.fn.popmake.cookies.form_success.apply(this,arguments)},cf7_form_success:function(e){return i.fn.popmake.cookies.form_success.apply(this,arguments)},gforms_form_success:function(e){return i.fn.popmake.cookies.form_success.apply(this,arguments)}}),i(e).on("pumInit",".pum",function(){var e,o,t=PUM.getPopup(this),n=t.popmake("getSettings").cookies||[];if(n.length)for(o=0;o<n.length;o+=1)e=n[o],t.popmake("addCookie",e.event,e.settings)}),i(function(){var e=i(".pum-cookie");e.each(function(){var o=i(this),t=e.index(o),n=o.data("cookie-args");!o.data("only-onscreen")||o.isInViewport()&&o.is(":visible")?r(n):i(window).on("scroll.pum-cookie-"+t,i.fn.popmake.utilities.throttle(function(e){o.isInViewport()&&o.is(":visible")&&(r(n),i(window).off("scroll.pum-cookie-"+t))},100))})})}(jQuery,document);var pum_debug,pum_debug_mode=!1;!function(s,e){var a,o,p;e=window.pum_vars||{debug_mode:!1},(pum_debug_mode=!(pum_debug_mode=void 0!==e.debug_mode&&e.debug_mode)&&-1!==window.location.href.indexOf("pum_debug")?!0:pum_debug_mode)&&(o=a=!1,p=window.pum_debug_vars||{debug_mode_enabled:"Popup Maker: Debug Mode Enabled",debug_started_at:"Debug started at:",debug_more_info:"For more information on how to use this information visit https://docs.wppopupmaker.com/?utm_medium=js-debug-info&utm_campaign=contextual-help&utm_source=browser-console&utm_content=more-info",global_info:"Global Information",localized_vars:"Localized variables",popups_initializing:"Popups Initializing",popups_initialized:"Popups Initialized",single_popup_label:"Popup: #",theme_id:"Theme ID: ",label_method_call:"Method Call:",label_method_args:"Method Arguments:",label_popup_settings:"Settings",label_triggers:"Triggers",label_cookies:"Cookies",label_delay:"Delay:",label_conditions:"Conditions",label_cookie:"Cookie:",label_settings:"Settings:",label_selector:"Selector:",label_mobile_disabled:"Mobile Disabled:",label_tablet_disabled:"Tablet Disabled:",label_event:"Event: %s",triggers:[],cookies:[]},pum_debug={odump:function(e){return s.extend({},e)},logo:function(){console.log(" -------------------------------------------------------------\n| ____ __ __ _ |\n| | _ \\ ___ _ __ _ _ _ __ | \\/ | __ _| | _____ _ __ |\n| | |_) / _ \\| '_ \\| | | | '_ \\ | |\\/| |/ _` | |/ / _ \\ '__| |\n| | __/ (_) | |_) | |_| | |_) | | | | | (_| | < __/ | |\n| |_| \\___/| .__/ \\__,_| .__/ |_| |_|\\__,_|_|\\_\\___|_| |\n| |_| |_| |\n -------------------------------------------------------------")},initialize:function(){a=!0,pum_debug.logo(),console.debug(p.debug_mode_enabled),console.log(p.debug_started_at,new Date),console.info(p.debug_more_info),pum_debug.divider(p.global_info),console.groupCollapsed(p.localized_vars),console.log("pum_vars:",pum_debug.odump(e)),s(document).trigger("pum_debug_initialize_localized_vars"),console.groupEnd(),s(document).trigger("pum_debug_initialize")},popup_event_header:function(e){e=e.popmake("getSettings");o!==e.id&&(o=e.id,pum_debug.divider(p.single_popup_label+e.id+" - "+e.slug))},divider:function(e){var o,t=0,n=" "+new Array(63).join("-")+" ";"string"==typeof e?(o=62-e.length,(t={left:Math.floor(o/2),right:Math.floor(o/2)}).left+t.right===o-1&&t.right++,t.left=new Array(t.left+1).join(" "),t.right=new Array(t.right+1).join(" "),console.log(n+"\n|"+t.left+e+t.right+"|\n"+n)):console.log(n)},click_trigger:function(e,o){var t=e.popmake("getSettings"),t=[".popmake-"+t.id,".popmake-"+decodeURIComponent(t.slug),'a[href$="#popmake-'+t.id+'"]'];o.extra_selectors&&""!==o.extra_selectors&&t.push(o.extra_selectors),t=(t=pum.hooks.applyFilters("pum.trigger.click_open.selectors",t,o,e)).join(", "),console.log(p.label_selector,t)},trigger:function(e,o){if("string"==typeof p.triggers[o.type]){switch(console.groupCollapsed(p.triggers[o.type]),o.type){case"auto_open":console.log(p.label_delay,o.settings.delay),console.log(p.label_cookie,o.settings.cookie_name);break;case"click_open":pum_debug.click_trigger(e,o.settings),console.log(p.label_cookie,o.settings.cookie_name)}s(document).trigger("pum_debug_render_trigger",e,o),console.groupEnd()}},cookie:function(e,o){if("string"==typeof p.cookies[o.event]){switch(console.groupCollapsed(p.cookies[o.event]),o.event){case"on_popup_open":case"on_popup_close":case"manual":case"ninja_form_success":console.log(p.label_cookie,pum_debug.odump(o.settings))}s(document).trigger("pum_debug_render_trigger",e,o),console.groupEnd()}}},s(document).on("pumInit",".pum",function(){var e=PUM.getPopup(s(this)),o=e.popmake("getSettings"),t=o.triggers||[],n=o.cookies||[],i=o.conditions||[],r=0;if(a||(pum_debug.initialize(),pum_debug.divider(p.popups_initializing)),console.groupCollapsed(p.single_popup_label+o.id+" - "+o.slug),console.log(p.theme_id,o.theme_id),t.length){for(console.groupCollapsed(p.label_triggers),r=0;r<t.length;r++)pum_debug.trigger(e,t[r]);console.groupEnd()}if(n.length){for(console.groupCollapsed(p.label_cookies),r=0;r<n.length;r+=1)pum_debug.cookie(e,n[r]);console.groupEnd()}i.length&&(console.groupCollapsed(p.label_conditions),console.log(i),console.groupEnd()),console.groupCollapsed(p.label_popup_settings),console.log(p.label_mobile_disabled,!1!==o.disable_on_mobile),console.log(p.label_tablet_disabled,!1!==o.disable_on_tablet),console.log(p.label_display_settings,pum_debug.odump(o)),e.trigger("pum_debug_popup_settings"),console.groupEnd(),console.groupEnd()}).on("pumBeforeOpen",".pum",function(){var e=PUM.getPopup(s(this)),o=s.fn.popmake.last_open_trigger;pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumBeforeOpen"));try{o=(o=s(s.fn.popmake.last_open_trigger)).length?o:s.fn.popmake.last_open_trigger.toString()}catch(e){o=""}finally{console.log(p.label_triggers,[o])}console.groupEnd()}).on("pumOpenPrevented",".pum",function(){var e=PUM.getPopup(s(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumOpenPrevented")),console.groupEnd()}).on("pumAfterOpen",".pum",function(){var e=PUM.getPopup(s(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumAfterOpen")),console.groupEnd()}).on("pumSetupClose",".pum",function(){var e=PUM.getPopup(s(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumSetupClose")),console.groupEnd()}).on("pumClosePrevented",".pum",function(){var e=PUM.getPopup(s(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumClosePrevented")),console.groupEnd()}).on("pumBeforeClose",".pum",function(){var e=PUM.getPopup(s(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumBeforeClose")),console.groupEnd()}).on("pumAfterClose",".pum",function(){var e=PUM.getPopup(s(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumAfterClose")),console.groupEnd()}).on("pumBeforeReposition",".pum",function(){var e=PUM.getPopup(s(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumBeforeReposition")),console.groupEnd()}).on("pumAfterReposition",".pum",function(){var e=PUM.getPopup(s(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumAfterReposition")),console.groupEnd()}).on("pumCheckingCondition",".pum",function(e,o,t){var n=PUM.getPopup(s(this));pum_debug.popup_event_header(n),console.groupCollapsed(p.label_event.replace("%s","pumCheckingCondition")),console.log((t.not_operand?"(!) ":"")+t.target+": "+o,t),console.groupEnd()}))}(jQuery),function(e){"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_form_submission:!1,close_on_form_submission_delay:0,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(r){"use strict";var i={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||{},r.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(e){var o=e.find('[type="submit"]'),t=o.find(".pum-form__loader");window.PUM.forms.messages.clear_all(e),t.length||(t=r('<span class="pum-form__loader"></span>'),""!==o.attr("value")?t.insertAfter(o):o.append(t)),o.prop("disabled",!0),t.show(),e.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(e){var o=r(this),t=o.pumSerializeObject();e.preventDefault(),e.stopPropagation(),window.PUM.forms.form.beforeAjax(o),r.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_form",values:t}}).always(function(){window.PUM.forms.form.afterAjax(o)}).done(function(e){window.PUM.forms.form.responseHandler(o,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}},messages:{add:function(e,o,t){var n=e.find(".pum-form__messages"),i=0;if(t=t||"success",o=o||[],!n.length)switch(n=r('<div class="pum-form__messages">').hide(),pum_vars.message_position){case"bottom":e.append(n.addClass("pum-form__messages--bottom"));break;case"top":e.prepend(n.addClass("pum-form__messages--top"))}if(0<=["bottom","top"].indexOf(pum_vars.message_position))for(;o.length>i;i++)this.add_message(n,o[i].message,t);else for(;o.length>i;i++)void 0!==o[i].field?this.add_field_error(e,o[i]):this.add_message(n,o[i].message,t);n.is(":hidden")&&r(".pum-form__message",n).length&&n.slideDown()},add_message:function(e,o,t){o=r('<p class="pum-form__message">').html(o);t=t||"success",o.addClass("pum-form__message--"+t),e.append(o),e.is(":visible")&&o.hide().slideDown()},add_field_error:function(e,o){e=r('[name="'+o.field+'"]',e).parents(".pum-form__field").addClass("pum-form__field--error");this.add_message(e,o.message,"error")},clear_all:function(e,o){var t=e.find(".pum-form__messages"),n=t.find(".pum-form__message"),e=e.find(".pum-form__field.pum-form__field--error");o=o||!1,t.length&&n.slideUp("fast",function(){r(this).remove(),o&&t.hide()}),e.length&&e.removeClass("pum-form__field--error").find("p.pum-form__message").remove()},scroll_to_first:function(e){window.PUM.utilities.scrollTo(r(".pum-form__field.pum-form__field--error",e).eq(0))}},success:function(e,o){var t,n;(o=r.extend({},i,o))&&(t=PUM.getPopup(e),e={},n=function(){o.openpopup&&PUM.getPopup(o.openpopup_id).length?PUM.open(o.openpopup_id):o.redirect_enabled&&(""!==o.redirect?window.location=o.redirect:window.location.reload(!0))},t.length&&(t.trigger("pumFormSuccess"),o.cookie&&(e=r.extend({name:"pum-"+PUM.getSetting(t,"id"),expires:"+1 year"},"object"==typeof o.cookie?o.cookie:{}),PUM.setCookie(t,e))),t.length&&o.closepopup?setTimeout(function(){t.popmake("close",n)},1e3*parseInt(o.closedelay)):n())}})}(jQuery),function(e){"use strict";e.pum=e.pum||{},e.pum.hooks=e.pum.hooks||new function(){var t=Array.prototype.slice,i={removeFilter:function(e,o){"string"==typeof e&&n("filters",e,o);return i},applyFilters:function(){var e=t.call(arguments),o=e.shift();return"string"!=typeof o?i:s("filters",o,e)},addFilter:function(e,o,t,n){"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),r("filters",e,o,t,n));return i},removeAction:function(e,o){"string"==typeof e&&n("actions",e,o);return i},doAction:function(){var e=t.call(arguments),o=e.shift();"string"==typeof o&&s("actions",o,e);return i},addAction:function(e,o,t,n){"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),r("actions",e,o,t,n));return i}},a={actions:{},filters:{}};function n(e,o,t,n){var i,r,s;if(a[e][o])if(t)if(i=a[e][o],n)for(s=i.length;s--;)(r=i[s]).callback===t&&r.context===n&&i.splice(s,1);else for(s=i.length;s--;)i[s].callback===t&&i.splice(s,1);else a[e][o]=[]}function r(e,o,t,n,i){n={callback:t,priority:n,context:i},i=(i=a[e][o])?(i.push(n),function(e){for(var o,t,n,i=1,r=e.length;i<r;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}(i)):[n];a[e][o]=i}function s(e,o,t){var n,i,r=a[e][o];if(!r)return"filters"===e&&t[0];if(i=r.length,"filters"===e)for(n=0;n<i;n++)t[0]=r[n].callback.apply(r[n].context,t);else for(n=0;n<i;n++)r[n].callback.apply(r[n].context,t);return"filters"!==e||t[0]}return i},e.PUM=e.PUM||{},e.PUM.hooks=e.pum.hooks}(window),function(t){"use strict";function n(e){return e}window.PUM=window.PUM||{},window.PUM.integrations=window.PUM.integrations||{},t.extend(window.PUM.integrations,{init:function(){var e;void 0!==pum_vars.form_submission&&((e=pum_vars.form_submission).ajax=!1,e.popup=0<e.popupId?PUM.getPopup(e.popupId):null,PUM.integrations.formSubmission(null,e))},formSubmission:function(e,o){(o=t.extend({popup:PUM.getPopup(e),formProvider:null,formId:null,formInstanceId:null,formKey:null,ajax:!0,tracked:!1},o)).formKey=o.formKey||[o.formProvider,o.formId,o.formInstanceId].filter(n).join("_"),o.popup&&o.popup.length&&(o.popupId=PUM.getSetting(o.popup,"id")),window.PUM.hooks.doAction("pum.integration.form.success",e,o)},checkFormKeyMatches:function(e,o,t){o=""===o&&o;var n=-1!==["any"===e,"pumsubform"===e&&"pumsubform"===t.formProvider,e===t.formProvider+"_any",!o&&new RegExp("^"+e+"(_[d]*)?").test(t.formKey),!!o&&e+"_"+o===t.formKey].indexOf(!0);return window.PUM.hooks.applyFilters("pum.integration.checkFormKeyMatches",n,{formIdentifier:e,formInstanceId:o,submittedFormArgs:t})}})}(window.jQuery),function(s){"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||{},s.extend(window.PUM.newsletter,{form:s.extend({},window.PUM.forms.form,{submit:function(e){var o=s(this),t=o.pumSerializeObject();e.preventDefault(),e.stopPropagation(),window.PUM.newsletter.form.beforeAjax(o),s.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_sub_form",values:t}}).always(function(){window.PUM.newsletter.form.afterAjax(o)}).done(function(e){window.PUM.newsletter.form.responseHandler(o,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}})}),s(document).on("submit","form.pum-sub-form",window.PUM.newsletter.form.submit).on("success","form.pum-sub-form",function(e,o){var t=s(e.target),n=t.data("settings")||{},i=t.pumSerializeObject(),r=PUM.getPopup(t),e=PUM.getSetting(r,"id"),r=s("form.pum-sub-form",r).index(t)+1;window.PUM.integrations.formSubmission(t,{formProvider:"pumsubform",formId:e,formInstanceId:r,extras:{data:o,values:i,settings:n}}),t.trigger("pumNewsletterSuccess",[o]).addClass("pum-newsletter-success"),t[0].reset(),window.pum.hooks.doAction("pum-sub-form.success",o,t),"string"==typeof n.redirect&&""!==n.redirect&&(n.redirect=atob(n.redirect)),window.PUM.forms.success(t,n)}).on("error","form.pum-sub-form",function(e,o){e=s(e.target);e.trigger("pumNewsletterError",[o]),window.pum.hooks.doAction("pum-sub-form.errors",o,e)}))}(jQuery),function(r,o){"use strict";r.extend(r.fn.popmake.methods,{addTrigger:function(e){return r.fn.popmake.triggers[e]?r.fn.popmake.triggers[e].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Trigger type "+e+" does not exist."),this)}}),r.fn.popmake.triggers={auto_open:function(e){var o=PUM.getPopup(this);setTimeout(function(){o.popmake("state","isOpen")||!o.popmake("checkCookies",e)&&o.popmake("checkConditions")&&(r.fn.popmake.last_open_trigger="Auto Open - Delay: "+e.delay,o.popmake("open"))},e.delay)},click_open:function(n){var i=PUM.getPopup(this),e=i.popmake("getSettings"),e=[".popmake-"+e.id,".popmake-"+decodeURIComponent(e.slug),'a[href$="#popmake-'+e.id+'"]'];n.extra_selectors&&""!==n.extra_selectors&&e.push(n.extra_selectors),e=(e=pum.hooks.applyFilters("pum.trigger.click_open.selectors",e,n,i)).join(", "),r(e).addClass("pum-trigger").css({cursor:"pointer"}),r(o).on("click.pumTrigger",e,function(e){var o=r(this),t=n.do_default||!1;0<i.has(o).length||i.popmake("state","isOpen")||!i.popmake("checkCookies",n)&&i.popmake("checkConditions")&&(o.data("do-default")?t=o.data("do-default"):(o.hasClass("do-default")||o.hasClass("popmake-do-default")||o.hasClass("pum-do-default"))&&(t=!0),e.ctrlKey||pum.hooks.applyFilters("pum.trigger.click_open.do_default",t,i,o)||(e.preventDefault(),e.stopPropagation()),r.fn.popmake.last_open_trigger=o,i.popmake("open"))})},form_submission:function(t){var n=PUM.getPopup(this);t=r.extend({form:"",formInstanceId:"",delay:0},t);PUM.hooks.addAction("pum.integration.form.success",function(e,o){t.form.length&&PUM.integrations.checkFormKeyMatches(t.form,t.formInstanceId,o)&&setTimeout(function(){n.popmake("state","isOpen")||!n.popmake("checkCookies",t)&&n.popmake("checkConditions")&&(r.fn.popmake.last_open_trigger="Form Submission",n.popmake("open"))},t.delay)})},admin_debug:function(){PUM.getPopup(this).popmake("open")}},r(o).on("pumInit",".pum",function(){var e,o,t=PUM.getPopup(this),n=t.popmake("getSettings").triggers||[];if(n.length)for(o=0;o<n.length;o+=1)e=n[o],t.popmake("addTrigger",e.type,e.settings)})}(jQuery,document),function(a){"use strict";var n="color,date,datetime,datetime-local,email,hidden,month,number,password,range,search,tel,text,time,url,week".split(","),i="select,textarea".split(","),r=/\[([^\]]*)\]/g;Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(null==this)throw new TypeError;var o=Object(this),t=o.length>>>0;if(0==t)return-1;var n=0;if(0<arguments.length&&((n=Number(arguments[1]))!=n?n=0:0!==n&&n!==1/0&&n!==-1/0&&(n=(0<n||-1)*Math.floor(Math.abs(n)))),t<=n)return-1;for(var i=0<=n?n:Math.max(t-Math.abs(n),0);i<t;i++)if(i in o&&o[i]===e)return i;return-1}),a.fn.popmake.utilities={scrollTo:function(e,o){var t=a(e)||a();t.length&&a("html, body").animate({scrollTop:t.offset().top-100},1e3,"swing",function(){var e=t.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 o&&o()})},inArray:function(e,o){return!!~o.indexOf(e)},convert_hex:function(e,o){return e=e.replace("#",""),"rgba("+parseInt(e.substring(0,2),16)+","+parseInt(e.substring(2,4),16)+","+parseInt(e.substring(4,6),16)+","+o/100+")"},debounce:function(t,n){var i;return function(){var e=this,o=arguments;window.clearTimeout(i),i=window.setTimeout(function(){t.apply(e,o)},n)}},throttle:function(e,o){function t(){n=!1}var n=!1;return function(){n||(e.apply(this,arguments),window.setTimeout(t,o),n=!0)}},getXPath:function(e){var t,n,i,r,s=[];return a.each(a(e).parents(),function(e,o){return r=a(o),t=r.attr("id")||"",n=r.attr("class")||"",i=r.get(0).tagName.toLowerCase(),r=r.parent().children(i).index(r),"body"!==i&&(0<n.length&&(n=(n=n.split(" "))[0]),void s.push(i+(0<t.length?"#"+t:0<n.length?"."+n.split(" ").join("."):":eq("+r+")")))}),s.reverse().join(" > ")},strtotime:function(e,o){var t,n,i,r,s,a,p,u,l;if(!e)return!1;if((n=(e=e.replace(/^\s+|\s+$/g,"").replace(/\s{2,}/g," ").replace(/[\t\r\n]/g,"").toLowerCase()).match(/^(\d{1,4})([\-\.\/\:])(\d{1,2})([\-\.\/\:])(\d{1,4})(?:\s(\d{1,2}):(\d{2})?:?(\d{2})?)?(?:\s([A-Z]+)?)?$/))&&n[2]===n[4])if(1901<n[1])switch(n[2]){case"-":return 12<n[3]||31<n[5]?!1:new Date(n[1],parseInt(n[3],10)-1,n[5],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3;case".":return!1;case"/":return 12<n[3]||31<n[5]?!1:new Date(n[1],parseInt(n[3],10)-1,n[5],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3}else if(1901<n[5])switch(n[2]){case"-":case".":return 12<n[3]||31<n[1]?!1:new Date(n[5],parseInt(n[3],10)-1,n[1],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3;case"/":return 12<n[1]||31<n[3]?!1:new Date(n[5],parseInt(n[1],10)-1,n[3],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3}else switch(n[2]){case"-":return 12<n[3]||31<n[5]||n[1]<70&&38<n[1]?!1:(r=0<=n[1]&&n[1]<=38?+n[1]+2e3:n[1],new Date(r,parseInt(n[3],10)-1,n[5],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3);case".":return 70<=n[5]?!(12<n[3]||31<n[1])&&new Date(n[5],parseInt(n[3],10)-1,n[1],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3:n[5]<60&&!n[6]&&(!(23<n[1]||59<n[3])&&(i=new Date,new Date(i.getFullYear(),i.getMonth(),i.getDate(),n[1]||0,n[3]||0,n[5]||0,n[9]||0)/1e3));case"/":return 12<n[1]||31<n[3]||n[5]<70&&38<n[5]?!1:(r=0<=n[5]&&n[5]<=38?+n[5]+2e3:n[5],new Date(r,parseInt(n[1],10)-1,n[3],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3);case":":return 23<n[1]||59<n[3]||59<n[5]?!1:(i=new Date,new Date(i.getFullYear(),i.getMonth(),i.getDate(),n[1]||0,n[3]||0,n[5]||0)/1e3)}if("now"===e)return null===o||isNaN(o)?(new Date).getTime()/1e3||0:o||0;if(t=Date.parse(e),!isNaN(t))return t/1e3||0;function c(e){var o=e.split(" "),t=o[0],n=o[1].substring(0,3),i=/\d+/.test(t),e=("last"===t?-1:1)*("ago"===o[2]?-1:1);if(i&&(e*=parseInt(t,10)),p.hasOwnProperty(n)&&!o[1].match(/^mon(day|\.)?$/i))return s["set"+p[n]](s["get"+p[n]]()+e);if("wee"===n)return s.setDate(s.getDate()+7*e);if("next"===t||"last"===t)t=t,e=e,void 0!==(n=a[n=n])&&(0===(n=n-s.getDay())?n=7*e:0<n&&"last"===t?n-=7:n<0&&"next"===t&&(n+=7),s.setDate(s.getDate()+n));else if(!i)return;return 1}if(s=o?new Date(1e3*o):new Date,a={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},p={yea:"FullYear",mon:"Month",day:"Date",hou:"Hours",min:"Minutes",sec:"Seconds"},o="(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?)",!(n=e.match(new RegExp("([+-]?\\d+\\s(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?)|(last|next)\\s(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?))(\\sago)?","gi"))))return!1;for(l=0,u=n.length;l<u;l+=1)if(!c(n[l]))return!1;return s.getTime()/1e3},serializeObject:function(e){a.extend({},e);var o={},t=a.extend(!0,{include:[],exclude:[],includeByClass:""},e);return this.find(":input").each(function(){var e;!this.name||this.disabled||window.PUM.utilities.inArray(this.name,t.exclude)||t.include.length&&!window.PUM.utilities.inArray(this.name,t.include)||-1===this.className.indexOf(t.includeByClass)||(e=this.name.replace(r,"[$1").split("["))[0]&&(this.checked||window.PUM.utilities.inArray(this.type,n)||window.PUM.utilities.inArray(this.nodeName.toLowerCase(),i))&&("checkbox"===this.type&&e.push(""),function e(o,t,n){var i=t[0];1<t.length?(o[i]||(o[i]=t[1]?{}:[]),e(o[i],t.slice(1),n)):o[i=i||o.length]=n}(o,e,a(this).val()))}),o}},a.fn.popmake.utilies=a.fn.popmake.utilities,window.PUM=window.PUM||{},window.PUM.utilities=window.PUM.utilities||{},window.PUM.utilities=a.extend(window.PUM.utilities,a.fn.popmake.utilities)}(jQuery,document),function(e){function o(n,o){var t={},i={};function r(e,o,t){return e[o]=t,e}function s(e,o){var t,n=e.match(p.key);try{o=JSON.parse(o)}catch(e){}for(;void 0!==(t=n.pop());)p.push.test(t)?o=r([],function(e){void 0===i[e]&&(i[e]=0);return i[e]++}(e.replace(/\[\]$/,"")),o):p.fixed.test(t)?o=r([],t,o):p.named.test(t)&&(o=r({},t,o));return o}function e(){return t}this.addPair=function(e){return p.validate.test(e.name)&&(e=s(e.name,"checkbox"===a('[name="'+(e=e).name+'"]',o).attr("type")&&"1"===e.value||e.value),t=n.extend(!0,t,e)),this},this.addPairs=function(e){if(!n.isArray(e))throw new Error("formSerializer.addPairs expects an Array");for(var o=0,t=e.length;o<t;o++)this.addPair(e[o]);return this},this.serialize=e,this.serializeJSON=function(){return JSON.stringify(t)}}var t,a,p;a=(t=e).jQuery||e.Zepto||e.ender||e.$,o.patterns=p={validate:/^[a-z_][a-z0-9_]*(?:\[(?:\d*|[a-z0-9_]+)\])*$/i,key:/[a-z0-9_]+|(?=\[\])/gi,push:/^$/,fixed:/^\d+$/,named:/^[a-z0-9_]+$/i},o.serializeObject=function(){var e=(this.is("form")?this:this.find(":input")).serializeArray();return new o(a,this).addPairs(e).serialize()},o.serializeJSON=function(){var e=(this.is("form")?this:this.find(":input")).serializeArray();return new o(a,this).addPairs(e).serializeJSON()},void 0!==a.fn&&(a.fn.pumSerializeObject=o.serializeObject,a.fn.pumSerializeJSON=o.serializeJSON),t.FormSerializer=o}(this),function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(o,e){if(1&e&&(o=i(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var n in o)i.d(t,n,function(e){return o[e]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s="./assets/js/src/integration/calderaforms.js")}({"./assets/js/src/integration/calderaforms.js":function(e,o,t){"use strict";t.r(o);var n,o=t("./node_modules/@babel/runtime/helpers/slicedToArray.js"),i=t.n(o);(0,window.jQuery)(document).on("cf.ajax.request",function(e,o){return n=o.$form}).on("cf.submission",function(e,o){var t;"complete"!==o.data.status&&"success"!==o.data.status||(t=n.attr("id").split("_"),t=(o=i()(t,2))[0],o=void 0===(o=o[1])?null:o,window.PUM.integrations.formSubmission(n,{formProvider:"calderaforms",formId:t,formInstanceId:o,extras:{state:window.cfstate.hasOwnProperty(t)?window.cfstate[t]:null}}))})},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(e,o){e.exports=function(e,o){(null==o||o>e.length)&&(o=e.length);for(var t=0,n=new Array(o);t<o;t++)n[t]=e[t];return n}},"./node_modules/@babel/runtime/helpers/arrayWithHoles.js":function(e,o){e.exports=function(e){if(Array.isArray(e))return e}},"./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":function(e,o){e.exports=function(e,o){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,i=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(t.push(s.value),!o||t.length!==o);n=!0);}catch(e){i=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}return t}}},"./node_modules/@babel/runtime/helpers/nonIterableRest.js":function(e,o){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},"./node_modules/@babel/runtime/helpers/slicedToArray.js":function(e,o,t){var n=t("./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),i=t("./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),r=t("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),s=t("./node_modules/@babel/runtime/helpers/nonIterableRest.js");e.exports=function(e,o){return n(e)||i(e,o)||r(e,o)||s()}},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,o,t){var n=t("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,o){if(e){if("string"==typeof e)return n(e,o);var t=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(t="Object"===t&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,o):void 0}}}}),function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(o,e){if(1&e&&(o=i(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var n in o)i.d(t,n,function(e){return o[e]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s="./assets/js/src/integration/contactform7.js")}({"./assets/js/src/integration/contactform7.js":function(e,o,t){"use strict";t.r(o);var o=t("./node_modules/@babel/runtime/helpers/typeof.js"),i=t.n(o),r=window.jQuery;r(document).on("wpcf7mailsent",function(e,o){var t=e.detail.contactFormId,n=r(e.target),e=(e.detail.id||e.detail.unitTag).split("-").pop().replace("o","");window.PUM.integrations.formSubmission(n,{formProvider:"contactform7",formId:t,formInstanceId:e,extras:{details:o}});o=n.find("input.wpcf7-pum"),o=!!o.length&&JSON.parse(o.val());"object"===i()(o)&&void 0!==o.closedelay&&3<=o.closedelay.toString().length&&(o.closedelay=o.closedelay/1e3),window.PUM.forms.success(n,o)})},"./node_modules/@babel/runtime/helpers/typeof.js":function(o,e){function t(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?o.exports=t=function(e){return typeof e}:o.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}o.exports=t}}),function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(o,e){if(1&e&&(o=i(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var n in o)i.d(t,n,function(e){return o[e]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s="./assets/js/src/integration/formidableforms.js")}({"./assets/js/src/integration/formidableforms.js":function(e,o){var r=window.jQuery;r(document).on("frmFormComplete",function(e,o,t){var n=r(o),i=n.find('input[name="form_id"]').val(),o=PUM.getPopup(n.find('input[name="pum_form_popup_id"]').val());window.PUM.integrations.formSubmission(n,{popup:o,formProvider:"formidableforms",formId:i,extras:{response:t}})})}}),function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(o,e){if(1&e&&(o=i(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var n in o)i.d(t,n,function(e){return o[e]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s="./assets/js/src/integration/gravityforms.js")}({"./assets/js/src/integration/gravityforms.js":function(e,o,t){"use strict";t.r(o);var o=t("./node_modules/@babel/runtime/helpers/typeof.js"),n=t.n(o),i=window.jQuery,r={};i(document).on("gform_confirmation_loaded",function(e,o){var t=i("#gform_confirmation_wrapper_"+o+",#gforms_confirmation_message_"+o)[0];window.PUM.integrations.formSubmission(t,{formProvider:"gravityforms",formId:o}),window.PUM.forms.success(t,r[o]||{})}),i(function(){i(".gform_wrapper > form").each(function(){var e=i(this),o=e.attr("id").replace("gform_",""),e=e.find("input.gforms-pum"),e=!!e.length&&JSON.parse(e.val());e&&"object"===n()(e)&&("object"===n()(e)&&void 0!==e.closedelay&&3<=e.closedelay.toString().length&&(e.closedelay=e.closedelay/1e3),r[o]=e)})})},"./node_modules/@babel/runtime/helpers/typeof.js":function(o,e){function t(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?o.exports=t=function(e){return typeof e}:o.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}o.exports=t}}),function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(o,e){if(1&e&&(o=i(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var n in o)i.d(t,n,function(e){return o[e]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s="./assets/js/src/integration/mc4wp.js")}({"./assets/js/src/integration/mc4wp.js":function(e,o){var r=window.jQuery;r(function(){"undefined"!=typeof mc4wp&&mc4wp.forms.on("success",function(e,o){var t=r(e.element),n=e.id,i=r(".mc4wp-form-"+e.id).index(t)+1;window.PUM.integrations.formSubmission(t,{formProvider:"mc4wp",formId:n,formInstanceId:i,extras:{form:e,data:o}})})})}}),function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(o,e){if(1&e&&(o=i(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var n in o)i.d(t,n,function(e){return o[e]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s="./assets/js/src/integration/ninjaforms.js")}({"./assets/js/src/integration/ninjaforms.js":function(e,o,t){"use strict";t.r(o);var o=t("./node_modules/@babel/runtime/helpers/slicedToArray.js"),a=t.n(o),p=window.jQuery,n=!1;p(function(){"undefined"!=typeof Marionette&&"undefined"!=typeof nfRadio&&!1===n&&new(n=Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.popupMaker)},popupMaker:function(e,o,t,n){var i=p("#nf-form-"+n+"-cont"),r=n.split("_"),s=a()(r,2),n=s[0],r=s[1],s=void 0===r?null:r,r={};e.errors&&e.errors.length||(window.PUM.integrations.formSubmission(i,{formProvider:"ninjaforms",formId:n,formInstanceId:s,extras:{response:e}}),e.data&&e.data.actions&&(r.openpopup=void 0!==e.data.actions.openpopup,r.openpopup_id=r.openpopup?parseInt(e.data.actions.openpopup):0,r.closepopup=void 0!==e.data.actions.closepopup,r.closedelay=r.closepopup?parseInt(e.data.actions.closepopup):0,r.closepopup&&e.data.actions.closedelay&&(r.closedelay=parseInt(e.data.actions.closedelay))),window.PUM.forms.success(i,r))}}))})},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(e,o){e.exports=function(e,o){(null==o||o>e.length)&&(o=e.length);for(var t=0,n=new Array(o);t<o;t++)n[t]=e[t];return n}},"./node_modules/@babel/runtime/helpers/arrayWithHoles.js":function(e,o){e.exports=function(e){if(Array.isArray(e))return e}},"./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":function(e,o){e.exports=function(e,o){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,i=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(t.push(s.value),!o||t.length!==o);n=!0);}catch(e){i=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}return t}}},"./node_modules/@babel/runtime/helpers/nonIterableRest.js":function(e,o){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},"./node_modules/@babel/runtime/helpers/slicedToArray.js":function(e,o,t){var n=t("./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),i=t("./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),r=t("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),s=t("./node_modules/@babel/runtime/helpers/nonIterableRest.js");e.exports=function(e,o){return n(e)||i(e,o)||r(e,o)||s()}},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,o,t){var n=t("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,o){if(e){if("string"==typeof e)return n(e,o);var t=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(t="Object"===t&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,o):void 0}}}}),function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(o,e){if(1&e&&(o=i(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var n in o)i.d(t,n,function(e){return o[e]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="",i(i.s="./assets/js/src/integration/wpforms.js")}({"./assets/js/src/integration/wpforms.js":function(e,o){var r=window.jQuery;r(document).on("wpformsAjaxSubmitSuccess",".wpforms-ajax-form",function(e,o){var t=r(this),n=t.data("formid"),i=r("form#"+t.attr("id")).index(t)+1;window.PUM.integrations.formSubmission(t,{formProvider:"wpforms",formId:n,formInstanceId:i})})}}),function(e){("object"!=typeof exports||"undefined"==typeof module)&&"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";function e(o){var t=this.constructor;return this.then(function(e){return t.resolve(o()).then(function(){return e})},function(e){return t.resolve(o()).then(function(){return t.reject(e)})})}var o=setTimeout;function p(e){return Boolean(e&&void 0!==e.length)}function n(){}function r(e){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function i(t,n){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,r._immediateFn(function(){var e,o=1===t._state?n.onFulfilled:n.onRejected;if(null!==o){try{e=o(t._value)}catch(e){return void a(n.promise,e)}s(n.promise,e)}else(1===t._state?s:a)(n.promise,t._value)})):t._deferreds.push(n)}function s(o,e){try{if(e===o)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if(e instanceof r)return o._state=3,o._value=e,void u(o);if("function"==typeof t)return void c((n=t,i=e,function(){n.apply(i,arguments)}),o)}o._state=1,o._value=e,u(o)}catch(e){a(o,e)}var n,i}function a(e,o){e._state=2,e._value=o,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&r._immediateFn(function(){e._handled||r._unhandledRejectionFn(e._value)});for(var o=0,t=e._deferreds.length;o<t;o++)i(e,e._deferreds[o]);e._deferreds=null}function l(e,o,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof o?o:null,this.promise=t}function c(e,o){var t=!1;try{e(function(e){t||(t=!0,s(o,e))},function(e){t||(t=!0,a(o,e))})}catch(e){if(t)return;t=!0,a(o,e)}}r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,o){var t=new this.constructor(n);return i(this,new l(e,o,t)),t},r.prototype.finally=e,r.all=function(o){return new r(function(i,r){if(!p(o))return r(new TypeError("Promise.all accepts an array"));var s=Array.prototype.slice.call(o);if(0===s.length)return i([]);var a=s.length;for(var e=0;e<s.length;e++)!function o(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){o(t,e)},r)}s[t]=e,0==--a&&i(s)}catch(e){r(e)}}(e,s[e])})},r.resolve=function(o){return o&&"object"==typeof o&&o.constructor===r?o:new r(function(e){e(o)})},r.reject=function(t){return new r(function(e,o){o(t)})},r.race=function(i){return new r(function(e,o){if(!p(i))return o(new TypeError("Promise.race accepts an array"));for(var t=0,n=i.length;t<n;t++)r.resolve(i[t]).then(e,o)})},r._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){o(e,0)},r._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var t=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"Promise"in t?t.Promise.prototype.finally||(t.Promise.prototype.finally=e):t.Promise=r});
|
classes/Analytics.php
CHANGED
@@ -27,6 +27,8 @@ class PUM_Analytics {
|
|
27 |
}
|
28 |
|
29 |
/**
|
|
|
|
|
30 |
* @return bool
|
31 |
*/
|
32 |
public static function analytics_enabled() {
|
@@ -36,7 +38,16 @@ class PUM_Analytics {
|
|
36 |
}
|
37 |
|
38 |
/**
|
39 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
*
|
41 |
* @return mixed
|
42 |
*/
|
@@ -50,6 +61,15 @@ class PUM_Analytics {
|
|
50 |
return apply_filters( 'pum_analytics_event_keys', $keys, $event );
|
51 |
}
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
/**
|
54 |
* Track an event.
|
55 |
*
|
@@ -71,7 +91,7 @@ class PUM_Analytics {
|
|
71 |
|
72 |
$popup = pum_get_popup( $args['pid'] );
|
73 |
|
74 |
-
if ( ! pum_is_popup( $popup ) || ! in_array( $event,
|
75 |
return;
|
76 |
}
|
77 |
|
27 |
}
|
28 |
|
29 |
/**
|
30 |
+
* Checks whether analytics is enabled.
|
31 |
+
*
|
32 |
* @return bool
|
33 |
*/
|
34 |
public static function analytics_enabled() {
|
38 |
}
|
39 |
|
40 |
/**
|
41 |
+
* Get a list of key pairs for each event type.
|
42 |
+
* Internally used only for meta keys.
|
43 |
+
*
|
44 |
+
* Example returns [[open,opened],[conversion,conversion]].
|
45 |
+
*
|
46 |
+
* Usage examples:
|
47 |
+
* - popup_open_count, popup_last_opened
|
48 |
+
* - popup_conversion_count, popup_last_conversion
|
49 |
+
*
|
50 |
+
* @param string $event Event key.
|
51 |
*
|
52 |
* @return mixed
|
53 |
*/
|
61 |
return apply_filters( 'pum_analytics_event_keys', $keys, $event );
|
62 |
}
|
63 |
|
64 |
+
/**
|
65 |
+
* Returns an array of valid event types.
|
66 |
+
*
|
67 |
+
* @return string[]
|
68 |
+
*/
|
69 |
+
public static function valid_events() {
|
70 |
+
return apply_filters( 'pum_analytics_valid_events', array( 'open', 'conversion' ) );
|
71 |
+
}
|
72 |
+
|
73 |
/**
|
74 |
* Track an event.
|
75 |
*
|
91 |
|
92 |
$popup = pum_get_popup( $args['pid'] );
|
93 |
|
94 |
+
if ( ! pum_is_popup( $popup ) || ! in_array( $event, self::valid_events(), true ) ) {
|
95 |
return;
|
96 |
}
|
97 |
|
classes/Model/Popup.php
CHANGED
@@ -946,27 +946,24 @@ class PUM_Model_Popup extends PUM_Abstract_Model_Post {
|
|
946 |
* @return int
|
947 |
*/
|
948 |
public function get_event_count( $event = 'open', $which = 'current' ) {
|
949 |
-
|
950 |
-
$keys = PUM_Analytics::event_keys( $event );
|
951 |
-
|
952 |
switch ( $which ) {
|
953 |
-
case 'current'
|
954 |
-
$current = $this->get_meta(
|
955 |
|
956 |
// Save future queries by inserting a valid count.
|
957 |
if ( $current === false || ! is_numeric( $current ) ) {
|
958 |
$current = 0;
|
959 |
-
$this->update_meta(
|
960 |
}
|
961 |
|
962 |
return absint( $current );
|
963 |
-
case 'total'
|
964 |
-
$total = $this->get_meta(
|
965 |
|
966 |
// Save future queries by inserting a valid count.
|
967 |
if ( $total === false || ! is_numeric( $total ) ) {
|
968 |
$total = 0;
|
969 |
-
$this->update_meta(
|
970 |
}
|
971 |
|
972 |
return absint( $total );
|
@@ -1169,4 +1166,3 @@ class PUM_Model_Popup extends PUM_Abstract_Model_Post {
|
|
1169 |
return pum_get_popup( $id );
|
1170 |
}
|
1171 |
}
|
1172 |
-
|
946 |
* @return int
|
947 |
*/
|
948 |
public function get_event_count( $event = 'open', $which = 'current' ) {
|
|
|
|
|
|
|
949 |
switch ( $which ) {
|
950 |
+
case 'current':
|
951 |
+
$current = $this->get_meta( "popup_{$event}_count" );
|
952 |
|
953 |
// Save future queries by inserting a valid count.
|
954 |
if ( $current === false || ! is_numeric( $current ) ) {
|
955 |
$current = 0;
|
956 |
+
$this->update_meta( "popup_{$event}_count", $current );
|
957 |
}
|
958 |
|
959 |
return absint( $current );
|
960 |
+
case 'total':
|
961 |
+
$total = $this->get_meta( "popup_{$event}_count_total" );
|
962 |
|
963 |
// Save future queries by inserting a valid count.
|
964 |
if ( $total === false || ! is_numeric( $total ) ) {
|
965 |
$total = 0;
|
966 |
+
$this->update_meta( "popup_{$event}_count_total", $total );
|
967 |
}
|
968 |
|
969 |
return absint( $total );
|
1166 |
return pum_get_popup( $id );
|
1167 |
}
|
1168 |
}
|
|
classes/Site/Popups.php
CHANGED
@@ -56,7 +56,7 @@ class PUM_Site_Popups {
|
|
56 |
*
|
57 |
* @param bool|object|null $new_popup
|
58 |
*
|
59 |
-
* @return null|
|
60 |
*
|
61 |
* @deprecated 1.8.0
|
62 |
*/
|
@@ -96,7 +96,7 @@ class PUM_Site_Popups {
|
|
96 |
return;
|
97 |
}
|
98 |
|
99 |
-
|
100 |
|
101 |
if ( ! empty( $popups ) ) {
|
102 |
|
56 |
*
|
57 |
* @param bool|object|null $new_popup
|
58 |
*
|
59 |
+
* @return null|PUM_Model_Popup
|
60 |
*
|
61 |
* @deprecated 1.8.0
|
62 |
*/
|
96 |
return;
|
97 |
}
|
98 |
|
99 |
+
$popups = pum_get_all_popups( [ 'post_status' => [ 'publish', 'private' ] ] );
|
100 |
|
101 |
if ( ! empty( $popups ) ) {
|
102 |
|
classes/Utils/Array.php
CHANGED
@@ -21,8 +21,8 @@ class PUM_Utils_Array {
|
|
21 |
*
|
22 |
* @return array
|
23 |
*/
|
24 |
-
public static function filter_null( $array =
|
25 |
-
return array_filter( $array,
|
26 |
}
|
27 |
|
28 |
/**
|
@@ -46,7 +46,7 @@ class PUM_Utils_Array {
|
|
46 |
return sanitize_text_field( $var );
|
47 |
}
|
48 |
|
49 |
-
return array_map(
|
50 |
}
|
51 |
|
52 |
/**
|
@@ -93,7 +93,10 @@ class PUM_Utils_Array {
|
|
93 |
|
94 |
$i = 0;
|
95 |
foreach ( $arr as &$val ) {
|
96 |
-
$val =
|
|
|
|
|
|
|
97 |
}
|
98 |
|
99 |
// Add a quick keyword `swap` to make syntax simpler to remember.
|
@@ -132,7 +135,7 @@ class PUM_Utils_Array {
|
|
132 |
}
|
133 |
}
|
134 |
|
135 |
-
uasort( $arr,
|
136 |
|
137 |
foreach ( $arr as &$val ) {
|
138 |
$val = $val['val'];
|
@@ -151,7 +154,7 @@ class PUM_Utils_Array {
|
|
151 |
*
|
152 |
* @return array
|
153 |
*/
|
154 |
-
public static function pluck_keys_starting_with( $array, $strings =
|
155 |
$to_be_removed = self::remove_keys_starting_with( $array, $strings );
|
156 |
|
157 |
return array_diff_key( $array, $to_be_removed );
|
@@ -165,15 +168,17 @@ class PUM_Utils_Array {
|
|
165 |
*
|
166 |
* @return array
|
167 |
*/
|
168 |
-
public static function pluck_keys_ending_with( $array, $strings =
|
169 |
$to_be_removed = self::remove_keys_ending_with( $array, $strings );
|
170 |
|
171 |
return array_diff_key( $array, $to_be_removed );
|
172 |
}
|
173 |
|
174 |
/**
|
175 |
-
*
|
176 |
-
*
|
|
|
|
|
177 |
*
|
178 |
* @return array
|
179 |
*/
|
@@ -184,19 +189,19 @@ class PUM_Utils_Array {
|
|
184 |
/**
|
185 |
* This works exactly the same as wp_parse_args, except we remove unused keys for sanitization.
|
186 |
*
|
187 |
-
* @param array $array
|
188 |
* @param array $allowed_args Array of key=>defaultValue pairs for each allowed argument.
|
189 |
*
|
190 |
* @return array
|
191 |
*/
|
192 |
-
public static function parse_allowed_args( $array, $
|
193 |
-
$array = wp_parse_args( $array, $
|
194 |
|
195 |
-
return self::allowed_keys( $array, array_keys( $
|
196 |
}
|
197 |
|
198 |
/**
|
199 |
-
* Pluck
|
200 |
*
|
201 |
* @param array $array
|
202 |
* @param string[] $keys
|
@@ -208,14 +213,14 @@ class PUM_Utils_Array {
|
|
208 |
}
|
209 |
|
210 |
/**
|
211 |
-
* Pluck all array keys
|
212 |
*
|
213 |
* @param array $array
|
214 |
* @param string[] $strings
|
215 |
*
|
216 |
* @return array
|
217 |
*/
|
218 |
-
public static function pluck_keys_containing( $array, $strings =
|
219 |
$to_be_removed = self::remove_keys_containing( $array, $strings );
|
220 |
|
221 |
return array_diff_key( $array, $to_be_removed );
|
@@ -229,13 +234,13 @@ class PUM_Utils_Array {
|
|
229 |
*
|
230 |
* @return array
|
231 |
*/
|
232 |
-
public static function remove_keys_starting_with( $array, $strings =
|
233 |
if ( ! $strings ) {
|
234 |
return $array;
|
235 |
}
|
236 |
|
237 |
if ( ! is_array( $strings ) ) {
|
238 |
-
$strings =
|
239 |
}
|
240 |
|
241 |
foreach ( $array as $key => $value ) {
|
@@ -257,13 +262,13 @@ class PUM_Utils_Array {
|
|
257 |
*
|
258 |
* @return array
|
259 |
*/
|
260 |
-
public static function remove_keys_ending_with( $array, $strings =
|
261 |
if ( ! $strings ) {
|
262 |
return $array;
|
263 |
}
|
264 |
|
265 |
if ( ! is_array( $strings ) ) {
|
266 |
-
$strings =
|
267 |
}
|
268 |
|
269 |
foreach ( $array as $key => $value ) {
|
@@ -287,14 +292,14 @@ class PUM_Utils_Array {
|
|
287 |
*
|
288 |
* @return array
|
289 |
*/
|
290 |
-
public static function remove_keys_containing( $array, $strings =
|
291 |
|
292 |
if ( ! $strings ) {
|
293 |
return $array;
|
294 |
}
|
295 |
|
296 |
if ( ! is_array( $strings ) ) {
|
297 |
-
$strings =
|
298 |
}
|
299 |
|
300 |
foreach ( $array as $key => $value ) {
|
@@ -316,14 +321,14 @@ class PUM_Utils_Array {
|
|
316 |
*
|
317 |
* @return array
|
318 |
*/
|
319 |
-
public static function remove_keys( $array, $keys =
|
320 |
|
321 |
if ( empty( $keys ) ) {
|
322 |
return $array;
|
323 |
}
|
324 |
|
325 |
if ( is_string( $keys ) ) {
|
326 |
-
$keys =
|
327 |
}
|
328 |
|
329 |
foreach ( (array) $keys as $key ) {
|
@@ -344,7 +349,7 @@ class PUM_Utils_Array {
|
|
344 |
*
|
345 |
* @return array
|
346 |
*/
|
347 |
-
public static function sort( $array =
|
348 |
if ( ! is_array( $array ) ) {
|
349 |
return $array;
|
350 |
}
|
@@ -364,9 +369,9 @@ class PUM_Utils_Array {
|
|
364 |
|
365 |
case 'priority':
|
366 |
if ( ! $reverse ) {
|
367 |
-
uasort( $array,
|
368 |
} else {
|
369 |
-
uasort( $array,
|
370 |
}
|
371 |
break;
|
372 |
}
|
@@ -434,7 +439,7 @@ class PUM_Utils_Array {
|
|
434 |
public static function replace_key( $array, $old_key, $new_key ) {
|
435 |
$keys = array_keys( $array );
|
436 |
if ( false === $index = array_search( $old_key, $keys, true ) ) {
|
437 |
-
//throw new \Exception( sprintf( 'Key "%s" does not exit', $old_key ) );
|
438 |
}
|
439 |
$keys[ $index ] = $new_key;
|
440 |
|
@@ -452,7 +457,7 @@ class PUM_Utils_Array {
|
|
452 |
|
453 |
if ( is_array( $data ) ) {
|
454 |
foreach ( (array) $data as $key => $value ) {
|
455 |
-
if ( is_string( $value ) && in_array( $value,
|
456 |
$data[ $key ] = json_decode( $value );
|
457 |
} elseif ( is_array( $value ) ) {
|
458 |
$data[ $key ] = self::fix_json_boolean_values( $value );
|
@@ -473,7 +478,7 @@ class PUM_Utils_Array {
|
|
473 |
$obj = (array) $obj;
|
474 |
}
|
475 |
if ( is_array( $obj ) ) {
|
476 |
-
$new =
|
477 |
foreach ( $obj as $key => $val ) {
|
478 |
$new[ $key ] = self::from_object( $val );
|
479 |
}
|
@@ -510,8 +515,8 @@ class PUM_Utils_Array {
|
|
510 |
*
|
511 |
* @return mixed|string
|
512 |
*/
|
513 |
-
public static function safe_json_encode( $data =
|
514 |
-
return wp_json_encode( self::
|
515 |
}
|
516 |
|
517 |
/**
|
@@ -523,7 +528,7 @@ class PUM_Utils_Array {
|
|
523 |
*
|
524 |
* @return array|string
|
525 |
*/
|
526 |
-
public static function make_safe_for_json_encode( $data =
|
527 |
if ( is_scalar( $data ) ) {
|
528 |
return html_entity_decode( (string) $data, ENT_QUOTES, 'UTF-8' );
|
529 |
}
|
@@ -551,7 +556,7 @@ class PUM_Utils_Array {
|
|
551 |
foreach ( $d as $k => $v ) {
|
552 |
$d[ $k ] = self::utf8_encode_recursive( $v );
|
553 |
}
|
554 |
-
}
|
555 |
return utf8_encode( $d );
|
556 |
}
|
557 |
|
@@ -561,7 +566,7 @@ class PUM_Utils_Array {
|
|
561 |
|
562 |
/**
|
563 |
* @param $value
|
564 |
-
* @param bool
|
565 |
*
|
566 |
* @return string
|
567 |
*/
|
@@ -596,4 +601,3 @@ class PUM_Utils_Array {
|
|
596 |
return $array;
|
597 |
}
|
598 |
}
|
599 |
-
|
21 |
*
|
22 |
* @return array
|
23 |
*/
|
24 |
+
public static function filter_null( $array = [] ) {
|
25 |
+
return array_filter( $array, [ __CLASS__, '_filter_null' ] );
|
26 |
}
|
27 |
|
28 |
/**
|
46 |
return sanitize_text_field( $var );
|
47 |
}
|
48 |
|
49 |
+
return array_map( [ __CLASS__, 'sanitize' ], (array) $var );
|
50 |
}
|
51 |
|
52 |
/**
|
93 |
|
94 |
$i = 0;
|
95 |
foreach ( $arr as &$val ) {
|
96 |
+
$val = [
|
97 |
+
'sort' => ( ++ $i * 10 ),
|
98 |
+
'val' => $val,
|
99 |
+
];
|
100 |
}
|
101 |
|
102 |
// Add a quick keyword `swap` to make syntax simpler to remember.
|
135 |
}
|
136 |
}
|
137 |
|
138 |
+
uasort( $arr, [ __CLASS__, 'sort_by_sort' ] );
|
139 |
|
140 |
foreach ( $arr as &$val ) {
|
141 |
$val = $val['val'];
|
154 |
*
|
155 |
* @return array
|
156 |
*/
|
157 |
+
public static function pluck_keys_starting_with( $array, $strings = [] ) {
|
158 |
$to_be_removed = self::remove_keys_starting_with( $array, $strings );
|
159 |
|
160 |
return array_diff_key( $array, $to_be_removed );
|
168 |
*
|
169 |
* @return array
|
170 |
*/
|
171 |
+
public static function pluck_keys_ending_with( $array, $strings = [] ) {
|
172 |
$to_be_removed = self::remove_keys_ending_with( $array, $strings );
|
173 |
|
174 |
return array_diff_key( $array, $to_be_removed );
|
175 |
}
|
176 |
|
177 |
/**
|
178 |
+
* Extract only allowed keys from an array.
|
179 |
+
*
|
180 |
+
* @param array $array Array to be extracted from.
|
181 |
+
* @param string[] $allowed_keys List of keys.
|
182 |
*
|
183 |
* @return array
|
184 |
*/
|
189 |
/**
|
190 |
* This works exactly the same as wp_parse_args, except we remove unused keys for sanitization.
|
191 |
*
|
192 |
+
* @param array $array Array to be parsed.
|
193 |
* @param array $allowed_args Array of key=>defaultValue pairs for each allowed argument.
|
194 |
*
|
195 |
* @return array
|
196 |
*/
|
197 |
+
public static function parse_allowed_args( $array, $allowed_args = [] ) {
|
198 |
+
$array = wp_parse_args( $array, $allowed_args );
|
199 |
|
200 |
+
return self::allowed_keys( $array, array_keys( $allowed_args ) );
|
201 |
}
|
202 |
|
203 |
/**
|
204 |
+
* Pluck specified array keys.
|
205 |
*
|
206 |
* @param array $array
|
207 |
* @param string[] $keys
|
213 |
}
|
214 |
|
215 |
/**
|
216 |
+
* Pluck all array keys containing a string or strings.
|
217 |
*
|
218 |
* @param array $array
|
219 |
* @param string[] $strings
|
220 |
*
|
221 |
* @return array
|
222 |
*/
|
223 |
+
public static function pluck_keys_containing( $array, $strings = [] ) {
|
224 |
$to_be_removed = self::remove_keys_containing( $array, $strings );
|
225 |
|
226 |
return array_diff_key( $array, $to_be_removed );
|
234 |
*
|
235 |
* @return array
|
236 |
*/
|
237 |
+
public static function remove_keys_starting_with( $array, $strings = [] ) {
|
238 |
if ( ! $strings ) {
|
239 |
return $array;
|
240 |
}
|
241 |
|
242 |
if ( ! is_array( $strings ) ) {
|
243 |
+
$strings = [ $strings ];
|
244 |
}
|
245 |
|
246 |
foreach ( $array as $key => $value ) {
|
262 |
*
|
263 |
* @return array
|
264 |
*/
|
265 |
+
public static function remove_keys_ending_with( $array, $strings = [] ) {
|
266 |
if ( ! $strings ) {
|
267 |
return $array;
|
268 |
}
|
269 |
|
270 |
if ( ! is_array( $strings ) ) {
|
271 |
+
$strings = [ $strings ];
|
272 |
}
|
273 |
|
274 |
foreach ( $array as $key => $value ) {
|
292 |
*
|
293 |
* @return array
|
294 |
*/
|
295 |
+
public static function remove_keys_containing( $array, $strings = [] ) {
|
296 |
|
297 |
if ( ! $strings ) {
|
298 |
return $array;
|
299 |
}
|
300 |
|
301 |
if ( ! is_array( $strings ) ) {
|
302 |
+
$strings = [ $strings ];
|
303 |
}
|
304 |
|
305 |
foreach ( $array as $key => $value ) {
|
321 |
*
|
322 |
* @return array
|
323 |
*/
|
324 |
+
public static function remove_keys( $array, $keys = [] ) {
|
325 |
|
326 |
if ( empty( $keys ) ) {
|
327 |
return $array;
|
328 |
}
|
329 |
|
330 |
if ( is_string( $keys ) ) {
|
331 |
+
$keys = [ $keys ];
|
332 |
}
|
333 |
|
334 |
foreach ( (array) $keys as $key ) {
|
349 |
*
|
350 |
* @return array
|
351 |
*/
|
352 |
+
public static function sort( $array = [], $type = 'key', $reverse = false ) {
|
353 |
if ( ! is_array( $array ) ) {
|
354 |
return $array;
|
355 |
}
|
369 |
|
370 |
case 'priority':
|
371 |
if ( ! $reverse ) {
|
372 |
+
uasort( $array, [ __CLASS__, 'sort_by_priority' ] );
|
373 |
} else {
|
374 |
+
uasort( $array, [ __CLASS__, 'rsort_by_priority' ] );
|
375 |
}
|
376 |
break;
|
377 |
}
|
439 |
public static function replace_key( $array, $old_key, $new_key ) {
|
440 |
$keys = array_keys( $array );
|
441 |
if ( false === $index = array_search( $old_key, $keys, true ) ) {
|
442 |
+
// throw new \Exception( sprintf( 'Key "%s" does not exit', $old_key ) );
|
443 |
}
|
444 |
$keys[ $index ] = $new_key;
|
445 |
|
457 |
|
458 |
if ( is_array( $data ) ) {
|
459 |
foreach ( (array) $data as $key => $value ) {
|
460 |
+
if ( is_string( $value ) && in_array( $value, [ 'true', 'false' ] ) ) {
|
461 |
$data[ $key ] = json_decode( $value );
|
462 |
} elseif ( is_array( $value ) ) {
|
463 |
$data[ $key ] = self::fix_json_boolean_values( $value );
|
478 |
$obj = (array) $obj;
|
479 |
}
|
480 |
if ( is_array( $obj ) ) {
|
481 |
+
$new = [];
|
482 |
foreach ( $obj as $key => $val ) {
|
483 |
$new[ $key ] = self::from_object( $val );
|
484 |
}
|
515 |
*
|
516 |
* @return mixed|string
|
517 |
*/
|
518 |
+
public static function safe_json_encode( $data = [] ) {
|
519 |
+
return wp_json_encode( self::make_safe_for_json_encode( $data ) );
|
520 |
}
|
521 |
|
522 |
/**
|
528 |
*
|
529 |
* @return array|string
|
530 |
*/
|
531 |
+
public static function make_safe_for_json_encode( $data = [] ) {
|
532 |
if ( is_scalar( $data ) ) {
|
533 |
return html_entity_decode( (string) $data, ENT_QUOTES, 'UTF-8' );
|
534 |
}
|
556 |
foreach ( $d as $k => $v ) {
|
557 |
$d[ $k ] = self::utf8_encode_recursive( $v );
|
558 |
}
|
559 |
+
} elseif ( is_string( $d ) ) {
|
560 |
return utf8_encode( $d );
|
561 |
}
|
562 |
|
566 |
|
567 |
/**
|
568 |
* @param $value
|
569 |
+
* @param bool $encode
|
570 |
*
|
571 |
* @return string
|
572 |
*/
|
601 |
return $array;
|
602 |
}
|
603 |
}
|
|
dist/block-editor/block-editor-styles.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '6008e2fb9b65943c753ca6af5add6346');
|
dist/block-editor/block-editor-styles.css
CHANGED
@@ -69,26 +69,32 @@
|
|
69 |
flex-grow: 1;
|
70 |
position: relative;
|
71 |
padding: 1px; }
|
72 |
-
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
.components-popover .block-editor-popup-select-input input[type="text"],
|
75 |
.components-popover .block-editor-popup-select-input select {
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
@media (min-width: 600px) {
|
82 |
-
.components-popover .block-editor-popup-select-input input[type="text"],
|
83 |
-
.components-popover .block-editor-popup-select-input select {
|
84 |
-
width: 300px; } }
|
85 |
-
@media (min-width: 600px) {
|
86 |
-
.components-popover .block-editor-popup-select-input input[type="text"],
|
87 |
-
.components-popover .block-editor-popup-select-input select {
|
88 |
-
font-size: 13px; } }
|
89 |
-
.components-popover .block-editor-popup-select-input input[type="text"]::-ms-clear,
|
90 |
-
.components-popover .block-editor-popup-select-input select::-ms-clear {
|
91 |
-
display: none; }
|
92 |
|
93 |
/**
|
94 |
* Colors
|
@@ -128,8 +134,9 @@
|
|
128 |
.block-editor-popup-trigger-popover .components-notice.is-dismissible {
|
129 |
margin: 0;
|
130 |
padding-right: 0; }
|
131 |
-
|
132 |
-
|
|
|
133 |
|
134 |
.block-editor-popup-trigger-popover__row {
|
135 |
display: flex; }
|
@@ -139,40 +146,48 @@
|
|
139 |
|
140 |
.block-editor-popup-trigger-popover .components-icon-button {
|
141 |
padding: 3px; }
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
|
161 |
.block-editor-popup-trigger-popover__settings-toggle {
|
162 |
flex-shrink: 0;
|
163 |
border-radius: 0;
|
164 |
border-left: 1px solid #e2e4e7;
|
165 |
margin-left: 1px; }
|
166 |
-
|
167 |
-
|
|
|
168 |
|
169 |
.block-editor-popup-trigger-popover__settings {
|
170 |
display: block;
|
171 |
padding: 16px;
|
172 |
border-top: 1px solid #e2e4e7; }
|
173 |
-
|
174 |
-
|
175 |
-
|
|
|
176 |
|
177 |
.block-editor-popup-trigger-popover__popup-editor,
|
178 |
.block-editor-popup-trigger-popover__popup-viewer {
|
@@ -187,8 +202,9 @@
|
|
187 |
white-space: nowrap;
|
188 |
min-width: 150px;
|
189 |
max-width: 500px; }
|
190 |
-
|
191 |
-
|
|
|
192 |
|
193 |
.popup-trigger[data-popup-id] {
|
194 |
border-bottom: 1px dashed #9aba27; }
|
69 |
flex-grow: 1;
|
70 |
position: relative;
|
71 |
padding: 1px; }
|
72 |
+
|
73 |
+
.components-popover .block-editor-popup-select-input .components-base-control__field {
|
74 |
+
margin-bottom: 0; }
|
75 |
+
|
76 |
+
.components-popover .block-editor-popup-select-input input[type="text"],
|
77 |
+
.components-popover .block-editor-popup-select-input select {
|
78 |
+
width: 100%;
|
79 |
+
min-width: 300px;
|
80 |
+
border: none;
|
81 |
+
border-radius: 0;
|
82 |
+
/* Fonts smaller than 16px causes mobile safari to zoom. */
|
83 |
+
font-size: 16px; }
|
84 |
+
|
85 |
+
@media (min-width: 600px) {
|
86 |
+
.components-popover .block-editor-popup-select-input input[type="text"],
|
87 |
+
.components-popover .block-editor-popup-select-input select {
|
88 |
+
width: 300px; } }
|
89 |
+
|
90 |
+
@media (min-width: 600px) {
|
91 |
.components-popover .block-editor-popup-select-input input[type="text"],
|
92 |
.components-popover .block-editor-popup-select-input select {
|
93 |
+
font-size: 13px; } }
|
94 |
+
|
95 |
+
.components-popover .block-editor-popup-select-input input[type="text"]::-ms-clear,
|
96 |
+
.components-popover .block-editor-popup-select-input select::-ms-clear {
|
97 |
+
display: none; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
|
99 |
/**
|
100 |
* Colors
|
134 |
.block-editor-popup-trigger-popover .components-notice.is-dismissible {
|
135 |
margin: 0;
|
136 |
padding-right: 0; }
|
137 |
+
|
138 |
+
.block-editor-popup-trigger-popover .components-notice.is-dismissible .components-notice__content {
|
139 |
+
margin: 0; }
|
140 |
|
141 |
.block-editor-popup-trigger-popover__row {
|
142 |
display: flex; }
|
146 |
|
147 |
.block-editor-popup-trigger-popover .components-icon-button {
|
148 |
padding: 3px; }
|
149 |
+
|
150 |
+
.block-editor-popup-trigger-popover .components-icon-button > svg {
|
151 |
+
padding: 5px;
|
152 |
+
border-radius: 4px;
|
153 |
+
height: 30px;
|
154 |
+
width: 30px; }
|
155 |
+
|
156 |
+
.block-editor-popup-trigger-popover .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover {
|
157 |
+
box-shadow: none; }
|
158 |
+
|
159 |
+
.block-editor-popup-trigger-popover .components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover > svg {
|
160 |
+
outline: none;
|
161 |
+
background-color: #fff;
|
162 |
+
color: #191e23;
|
163 |
+
box-shadow: inset 0 0 0 1px #ccd0d4, inset 0 0 0 2px #fff; }
|
164 |
+
|
165 |
+
.block-editor-popup-trigger-popover .components-icon-button:not(:disabled):focus {
|
166 |
+
box-shadow: none; }
|
167 |
+
|
168 |
+
.block-editor-popup-trigger-popover .components-icon-button:not(:disabled):focus > svg {
|
169 |
+
box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 4px #fff;
|
170 |
+
box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 4px #fff;
|
171 |
+
box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 4px #fff;
|
172 |
+
outline: 2px solid transparent; }
|
173 |
|
174 |
.block-editor-popup-trigger-popover__settings-toggle {
|
175 |
flex-shrink: 0;
|
176 |
border-radius: 0;
|
177 |
border-left: 1px solid #e2e4e7;
|
178 |
margin-left: 1px; }
|
179 |
+
|
180 |
+
.block-editor-popup-trigger-popover__settings-toggle[aria-expanded="true"] .dashicon {
|
181 |
+
transform: rotate(180deg); }
|
182 |
|
183 |
.block-editor-popup-trigger-popover__settings {
|
184 |
display: block;
|
185 |
padding: 16px;
|
186 |
border-top: 1px solid #e2e4e7; }
|
187 |
+
|
188 |
+
.block-editor-popup-trigger-popover__settings .components-base-control:last-child,
|
189 |
+
.block-editor-popup-trigger-popover__settings .components-base-control:last-child .components-base-control__field {
|
190 |
+
margin-bottom: 0; }
|
191 |
|
192 |
.block-editor-popup-trigger-popover__popup-editor,
|
193 |
.block-editor-popup-trigger-popover__popup-viewer {
|
202 |
white-space: nowrap;
|
203 |
min-width: 150px;
|
204 |
max-width: 500px; }
|
205 |
+
|
206 |
+
.block-editor-popup-trigger-popover__popup-viewer-text.has-invalid-link {
|
207 |
+
color: #d94f4f; }
|
208 |
|
209 |
.popup-trigger[data-popup-id] {
|
210 |
border-bottom: 1px dashed #9aba27; }
|
dist/block-editor/block-editor-styles.css.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sources":["webpack:///editor.scss"],"names":[],"mappings":"AAAA;;+EAE+E;AAC/E;;EAEE;AACF;;EAEE;AACF;;EAEE;AACF;;;EAGE;AACF;;EAEE;AACF;;EAEE;AACF;;EAEE;AACF;;EAEE;AACF;;EAEE;AACF;;EAEE;AACF;;;;;EAKE;AACF;;EAE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AAEpB;EACE,aAAa;EACb,sBAAsB;EACtB,cAAc;EACd,yDAAyD,EAAE;;AAE7D;EACE,gBAAgB,EAAE;;AAEpB;EACE,2DAA2D;EAC3D,2DAA+E;EAA/E,+EAA+E;EAC/E,8BAA8B,EAAE;;AAElC;EACE,cAAc;EACd,gBAAgB;EAChB,8BAA8B;EAC9B,gBAAgB,EAAE;;AAEpB;EACE,yBAAyB,EAAE;;AAE7B;EACE,cAAc;EACd,aAAa;EACb,6BAA6B,EAAE;;AAEjC;;EAEE,gBAAgB,EAAE;;AAEpB;;EAEE,aAAa,EAAE;;AAEjB;EACE,WAAW;EACX,YAAY;EACZ,cAAc;EACd,gBAAgB;EAChB,uBAAuB;EACvB,mBAAmB;EACnB,gBAAgB;EAChB,gBAAgB,EAAE;;AAEpB;EACE,cAAc,EAAE;;AAElB;EACE,iCAAiC,EAAE;;AAErC;EACE,qGAAqG;EACrG,+FAA+F;EAC/F,qBAAqB;EACrB,YAAY;EACZ,aAAa;EACb,YAAY;EACZ,kBAAkB;EAClB,wBAAwB;EACxB,gBAAgB;EAChB,wBAAwB;EACxB,oBAAoB;EACpB,kBAAkB,EAAE;;AAEtB;;EAEE,mBAAmB,EAAE","file":"block-editor/block-editor-styles.css","sourcesContent":["/*!******************************************************************************\n * Copyright (c) 2020, Code Atlantic LLC.\n ******************************************************************************/\n/**\n * Colors\n */\n/**\n * Colors\n */\n/**\n * Fonts & basic variables.\n */\n/**\n * Grid System.\n * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/\n */\n/**\n * Dimensions.\n */\n/**\n * Shadows.\n */\n/**\n * Editor widths.\n */\n/**\n * Block UI.\n */\n/**\n * Border radii.\n */\n/**\n * Breakpoint mixins\n */\n/**\n * Long content fade mixin\n *\n * Creates a fading overlay to signify that the content is longer\n * than the space allows.\n */\n/**\n * Focus styles.\n */\n/**\n * Applies editor left position to the selector passed as argument\n */\n/**\n * Styles that are reused verbatim in a few places\n */\n/**\n * Allows users to opt-out of animations via OS-level preferences.\n */\n/**\n * Reset default styles for JavaScript UI based pages.\n * This is a WP-admin agnostic reset\n */\n/**\n * Reset the WP Admin page styles for Gutenberg-like pages.\n */\n:root {\n --wp-admin-theme-color: #007cba;\n --wp-admin-theme-color-darker-10: #006ba1;\n --wp-admin-theme-color-darker-20: #005a87; }\n\n/**\n * Breakpoints & Media Queries\n */\n.components-popover .block-editor-popup-select-input {\n flex-grow: 1;\n position: relative;\n padding: 1px; }\n\n.components-popover .block-editor-popup-select-input .components-base-control__field {\n margin-bottom: 0; }\n\n.components-popover .block-editor-popup-select-input input[type=\"text\"],\n.components-popover .block-editor-popup-select-input select {\n width: 100%;\n min-width: 300px;\n border: none;\n border-radius: 0;\n /* Fonts smaller than 16px causes mobile safari to zoom. */\n font-size: 16px; }\n\n@media (min-width: 600px) {\n .components-popover .block-editor-popup-select-input input[type=\"text\"],\n .components-popover .block-editor-popup-select-input select {\n width: 300px; } }\n\n@media (min-width: 600px) {\n .components-popover .block-editor-popup-select-input input[type=\"text\"],\n .components-popover .block-editor-popup-select-input select {\n font-size: 13px; } }\n\n.components-popover .block-editor-popup-select-input input[type=\"text\"]::-ms-clear,\n.components-popover .block-editor-popup-select-input select::-ms-clear {\n display: none; }\n\n/**\n * Colors\n */\n/**\n * Fonts & basic variables.\n */\n/**\n * Grid System.\n * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/\n */\n/**\n * Dimensions.\n */\n/**\n * Shadows.\n */\n/**\n * Editor widths.\n */\n/**\n * Block UI.\n */\n/**\n * Border radii.\n */\n/** Copied from @wordpress/block-editor/src/components/url-popover/style.scss */\n.block-editor-popup-trigger-popover__additional-controls {\n border-top: 1px solid #e2e4e7; }\n\n.block-editor-popup-trigger-popover__additional-controls > div[role=\"menu\"] .components-icon-button:not(:disabled):not([aria-disabled=\"true\"]):not(.is-default) > svg {\n box-shadow: none; }\n\n.block-editor-popup-trigger-popover__additional-controls div[role=\"menu\"] > .components-icon-button {\n padding-left: 2px; }\n\n.block-editor-popup-trigger-popover .components-notice.is-dismissible {\n margin: 0;\n padding-right: 0; }\n\n.block-editor-popup-trigger-popover .components-notice.is-dismissible .components-notice__content {\n margin: 0; }\n\n.block-editor-popup-trigger-popover__row {\n display: flex; }\n\n.block-editor-popup-trigger-popover__row > :not(.block-editor-popup-trigger-popover__settings-toggle) {\n flex-grow: 1; }\n\n.block-editor-popup-trigger-popover .components-icon-button {\n padding: 3px; }\n\n.block-editor-popup-trigger-popover .components-icon-button > svg {\n padding: 5px;\n border-radius: 4px;\n height: 30px;\n width: 30px; }\n\n.block-editor-popup-trigger-popover .components-icon-button:not(:disabled):not([aria-disabled=\"true\"]):not(.is-default):hover {\n box-shadow: none; }\n\n.block-editor-popup-trigger-popover .components-icon-button:not(:disabled):not([aria-disabled=\"true\"]):not(.is-default):hover > svg {\n outline: none;\n background-color: #fff;\n color: #191e23;\n box-shadow: inset 0 0 0 1px #ccd0d4, inset 0 0 0 2px #fff; }\n\n.block-editor-popup-trigger-popover .components-icon-button:not(:disabled):focus {\n box-shadow: none; }\n\n.block-editor-popup-trigger-popover .components-icon-button:not(:disabled):focus > svg {\n box-shadow: inset 0 0 0 1.5px #007cba, inset 0 0 0 4px #fff;\n box-shadow: inset 0 0 0 1.5px var(--wp-admin-theme-color), inset 0 0 0 4px #fff;\n outline: 2px solid transparent; }\n\n.block-editor-popup-trigger-popover__settings-toggle {\n flex-shrink: 0;\n border-radius: 0;\n border-left: 1px solid #e2e4e7;\n margin-left: 1px; }\n\n.block-editor-popup-trigger-popover__settings-toggle[aria-expanded=\"true\"] .dashicon {\n transform: rotate(180deg); }\n\n.block-editor-popup-trigger-popover__settings {\n display: block;\n padding: 16px;\n border-top: 1px solid #e2e4e7; }\n\n.block-editor-popup-trigger-popover__settings .components-base-control:last-child,\n.block-editor-popup-trigger-popover__settings .components-base-control:last-child .components-base-control__field {\n margin-bottom: 0; }\n\n.block-editor-popup-trigger-popover__popup-editor,\n.block-editor-popup-trigger-popover__popup-viewer {\n display: flex; }\n\n.block-editor-popup-trigger-popover__popup-viewer-text {\n margin: 7px;\n flex-grow: 1;\n flex-shrink: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 150px;\n max-width: 500px; }\n\n.block-editor-popup-trigger-popover__popup-viewer-text.has-invalid-link {\n color: #d94f4f; }\n\n.popup-trigger[data-popup-id] {\n border-bottom: 1px dashed #9aba27; }\n\n.popup-trigger[data-popup-id]::after {\n /*background: url(\"/wp-content/plugins/popup-maker/assets/images/logo.png\") bottom center no-repeat;*/\n background: url(/wp-content/plugins/popup-maker/assets/images/logo.png) bottom center no-repeat;\n display: inline-block;\n width: 0.9em;\n height: 0.9em;\n content: \" \";\n position: relative;\n background-size: contain;\n margin-left: 2px;\n vertical-align: text-top;\n pointer-events: none;\n touch-action: none; }\n\n.components-dropdown-menu__menu .components-dropdown-menu__menu-item:not(:disabled):not([aria-disabled=\"true\"]):not(.is-default).is-active > svg.popup-trigger-button-svg,\n.components-dropdown-menu__menu .components-menu-item:not(:disabled):not([aria-disabled=\"true\"]):not(.is-default).is-active > svg.popup-trigger-button-svg {\n background: #ededed; }\n"],"sourceRoot":""}
|
dist/block-editor/block-editor.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-block-editor', 'wp-components', 'wp-compose', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-rich-text'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-block-editor', 'wp-components', 'wp-compose', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-rich-text'), 'version' => 'e9b2139f4d815a1ed49867b4a3fef47d');
|
dist/block-editor/block-editor.js
CHANGED
@@ -752,11 +752,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
752 |
|
753 |
|
754 |
|
|
|
755 |
|
756 |
|
757 |
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default()(this, result); }; }
|
758 |
|
759 |
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
760 |
|
761 |
//import Select from 'react-select/src/Select';
|
762 |
|
@@ -795,7 +796,7 @@ var PopupSelectControl = /*#__PURE__*/function (_Component) {
|
|
795 |
emptyValueLabel = _this$props$emptyValu === void 0 ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('Choose a popup', 'popup-maker') : _this$props$emptyValu,
|
796 |
_this$props$hideLabel = _this$props.hideLabelFromVision,
|
797 |
hideLabelFromVision = _this$props$hideLabel === void 0 ? false : _this$props$hideLabel,
|
798 |
-
props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_this$props,
|
799 |
|
800 |
var options = [{
|
801 |
value: '',
|
@@ -866,11 +867,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
866 |
|
867 |
|
868 |
|
|
|
869 |
|
870 |
|
871 |
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default()(this, result); }; }
|
872 |
|
873 |
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
874 |
|
875 |
/**
|
876 |
* WordPress dependencies
|
@@ -920,7 +922,7 @@ var TriggerPopover = /*#__PURE__*/function (_Component) {
|
|
920 |
_this$props$focusOnMo = _this$props.focusOnMount,
|
921 |
focusOnMount = _this$props$focusOnMo === void 0 ? 'firstElement' : _this$props$focusOnMo,
|
922 |
noticeUI = _this$props.noticeUI,
|
923 |
-
popoverProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_this$props,
|
924 |
|
925 |
var isSettingsExpanded = this.state.isSettingsExpanded;
|
926 |
var showSettings = !!renderSettings && isSettingsExpanded;
|
@@ -978,6 +980,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
978 |
/* harmony import */ var _popup_select_control__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../popup-select-control */ "./src/block-editor/components/popup-select-control/index.js");
|
979 |
|
980 |
|
|
|
981 |
|
982 |
|
983 |
/**
|
@@ -999,7 +1002,7 @@ function PopupTriggerEditor(_ref) {
|
|
999 |
var className = _ref.className,
|
1000 |
onChangeInputValue = _ref.onChangeInputValue,
|
1001 |
value = _ref.value,
|
1002 |
-
props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref,
|
1003 |
|
1004 |
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("form", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
|
1005 |
className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('block-editor-popup-trigger-popover__popup-editor', className)
|
@@ -1043,6 +1046,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
1043 |
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__);
|
1044 |
|
1045 |
|
|
|
1046 |
|
1047 |
|
1048 |
/**
|
@@ -1085,7 +1089,7 @@ function PopupTriggerViewer(_ref4) {
|
|
1085 |
spanClassName = _ref4.spanClassName,
|
1086 |
onEditLinkClick = _ref4.onEditLinkClick,
|
1087 |
popupId = _ref4.popupId,
|
1088 |
-
props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref4,
|
1089 |
|
1090 |
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("div", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
|
1091 |
className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('block-editor-popup-trigger-popover__popup-viewer', className)
|
@@ -1175,7 +1179,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
1175 |
|
1176 |
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }
|
1177 |
|
1178 |
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
1179 |
|
1180 |
/**
|
1181 |
* WordPress dependencies
|
@@ -1344,11 +1348,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
1344 |
|
1345 |
|
1346 |
|
|
|
1347 |
|
1348 |
|
1349 |
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }
|
1350 |
|
1351 |
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
1352 |
|
1353 |
/**
|
1354 |
* WordPress dependencies
|
@@ -1380,7 +1385,7 @@ var TriggerPopoverAtText = function TriggerPopoverAtText(_ref) {
|
|
1380 |
var isActive = _ref.isActive,
|
1381 |
addingTrigger = _ref.addingTrigger,
|
1382 |
value = _ref.value,
|
1383 |
-
props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_7___default()(_ref,
|
1384 |
|
1385 |
var anchorRect = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["useMemo"])(function () {
|
1386 |
var selection = window.getSelection();
|
752 |
|
753 |
|
754 |
|
755 |
+
var _excluded = ["onChangeInputValue", "value", "label", "emptyValueLabel", "hideLabelFromVision"];
|
756 |
|
757 |
|
758 |
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default()(this, result); }; }
|
759 |
|
760 |
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
761 |
|
762 |
//import Select from 'react-select/src/Select';
|
763 |
|
796 |
emptyValueLabel = _this$props$emptyValu === void 0 ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('Choose a popup', 'popup-maker') : _this$props$emptyValu,
|
797 |
_this$props$hideLabel = _this$props.hideLabelFromVision,
|
798 |
hideLabelFromVision = _this$props$hideLabel === void 0 ? false : _this$props$hideLabel,
|
799 |
+
props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_this$props, _excluded);
|
800 |
|
801 |
var options = [{
|
802 |
value: '',
|
867 |
|
868 |
|
869 |
|
870 |
+
var _excluded = ["additionalControls", "children", "renderSettings", "position", "focusOnMount", "noticeUI"];
|
871 |
|
872 |
|
873 |
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default()(this, result); }; }
|
874 |
|
875 |
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
876 |
|
877 |
/**
|
878 |
* WordPress dependencies
|
922 |
_this$props$focusOnMo = _this$props.focusOnMount,
|
923 |
focusOnMount = _this$props$focusOnMo === void 0 ? 'firstElement' : _this$props$focusOnMo,
|
924 |
noticeUI = _this$props.noticeUI,
|
925 |
+
popoverProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_this$props, _excluded);
|
926 |
|
927 |
var isSettingsExpanded = this.state.isSettingsExpanded;
|
928 |
var showSettings = !!renderSettings && isSettingsExpanded;
|
980 |
/* harmony import */ var _popup_select_control__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../popup-select-control */ "./src/block-editor/components/popup-select-control/index.js");
|
981 |
|
982 |
|
983 |
+
var _excluded = ["className", "onChangeInputValue", "value"];
|
984 |
|
985 |
|
986 |
/**
|
1002 |
var className = _ref.className,
|
1003 |
onChangeInputValue = _ref.onChangeInputValue,
|
1004 |
value = _ref.value,
|
1005 |
+
props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref, _excluded);
|
1006 |
|
1007 |
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("form", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
|
1008 |
className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('block-editor-popup-trigger-popover__popup-editor', className)
|
1046 |
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__);
|
1047 |
|
1048 |
|
1049 |
+
var _excluded = ["className", "spanClassName", "onEditLinkClick", "popupId"];
|
1050 |
|
1051 |
|
1052 |
/**
|
1089 |
spanClassName = _ref4.spanClassName,
|
1090 |
onEditLinkClick = _ref4.onEditLinkClick,
|
1091 |
popupId = _ref4.popupId,
|
1092 |
+
props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_ref4, _excluded);
|
1093 |
|
1094 |
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("div", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
|
1095 |
className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('block-editor-popup-trigger-popover__popup-viewer', className)
|
1179 |
|
1180 |
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }
|
1181 |
|
1182 |
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
1183 |
|
1184 |
/**
|
1185 |
* WordPress dependencies
|
1348 |
|
1349 |
|
1350 |
|
1351 |
+
var _excluded = ["isActive", "addingTrigger", "value"];
|
1352 |
|
1353 |
|
1354 |
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }
|
1355 |
|
1356 |
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
1357 |
|
1358 |
/**
|
1359 |
* WordPress dependencies
|
1385 |
var isActive = _ref.isActive,
|
1386 |
addingTrigger = _ref.addingTrigger,
|
1387 |
value = _ref.value,
|
1388 |
+
props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_7___default()(_ref, _excluded);
|
1389 |
|
1390 |
var anchorRect = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["useMemo"])(function () {
|
1391 |
var selection = window.getSelection();
|
dist/block-editor/block-editor.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/@babel/runtime/helpers/arrayLikeToArray.js","webpack:///./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack:///./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack:///./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack:///./node_modules/@babel/runtime/helpers/createClass.js","webpack:///./node_modules/@babel/runtime/helpers/extends.js","webpack:///./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack:///./node_modules/@babel/runtime/helpers/inherits.js","webpack:///./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack:///./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack:///./node_modules/@babel/runtime/helpers/objectWithoutProperties.js","webpack:///./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","webpack:///./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack:///./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack:///./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack:///./node_modules/@babel/runtime/helpers/typeof.js","webpack:///./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack:///./node_modules/classnames/index.js","webpack:///./src/block-editor/block-extensions/index.js","webpack:///./src/block-editor/block-extensions/popup-trigger/index.js","webpack:///./src/block-editor/components/popup-select-control/index.js","webpack:///./src/block-editor/components/trigger-popover/index.js","webpack:///./src/block-editor/components/trigger-popover/popup-trigger-editor.js","webpack:///./src/block-editor/components/trigger-popover/popup-trigger-viewer.js","webpack:///./src/block-editor/formats/index.js","webpack:///./src/block-editor/formats/popup-trigger/index.js","webpack:///./src/block-editor/formats/popup-trigger/inline.js","webpack:///./src/block-editor/formats/popup-trigger/utils.js","webpack:///./src/block-editor/icons/gears.js","webpack:///./src/block-editor/icons/logo.js","webpack:///./src/block-editor/index.js","webpack:///external [\"wp\",\"blockEditor\"]","webpack:///external [\"wp\",\"components\"]","webpack:///external [\"wp\",\"compose\"]","webpack:///external [\"wp\",\"dom\"]","webpack:///external [\"wp\",\"element\"]","webpack:///external [\"wp\",\"hooks\"]","webpack:///external [\"wp\",\"i18n\"]","webpack:///external [\"wp\",\"keycodes\"]","webpack:///external [\"wp\",\"richText\"]"],"names":["allowedBlocks","excludedBlocks","pum_block_editor_vars","popup_trigger_excluded_blocks","isAllowedForBlockType","name","length","includes","addAttributes","settings","attributes","Object","assign","openPopupId","type","default","withAdvancedControls","createHigherOrderComponent","BlockEdit","props","setAttributes","isSelected","__","GearIcon","verticalAlign","popupId","applyTriggerClass","extraProps","blockType","className","classnames","addFilter","popups","window","PopupSelectControl","onChangeInputValue","value","label","emptyValueLabel","hideLabelFromVision","options","map","popup","ID","post_title","Component","TriggerPopover","arguments","toggleSettingsVisibility","bind","state","isSettingsExpanded","setState","additionalControls","children","renderSettings","position","focusOnMount","noticeUI","popoverProps","showSettings","PopupTriggerEditor","getPopupById","parseInt","filter","PopupView","spanClassName","sprintf","PopupTriggerViewer","onEditLinkClick","trigger","forEach","registerFormatType","title","tagName","doDefault","edit","withSpokenMessages","addTrigger","stopAddingTrigger","onRemoveFormat","addingTrigger","onChange","speak","removeFormat","isActive","activeAttributes","LogoIcon","stopKeyPropagation","event","stopPropagation","isShowingInput","editTrigger","TriggerPopoverAtText","anchorRect","useMemo","selection","getSelection","range","rangeCount","getRangeAt","getRectangleFromRange","element","startContainer","nextElementSibling","nodeType","Node","ELEMENT_NODE","parentNode","closest","getBoundingClientRect","start","end","InlinePopupTriggerUI","setPopupID","setDoDefault","onFocusOutside","submitTrigger","resetState","LEFT","DOWN","RIGHT","UP","BACKSPACE","ENTER","indexOf","keyCode","noticeOperations","removeNotice","createNotice","id","status","content","applyFormat","createTriggerFormat","preventDefault","format","isCollapsed","toInsert","create","text","insert","showInput","onKeyDown","_","isString","update","keys","withNotices","doDefaultClass","class","GearsIcon","createElement","viewBox","width","height","d","fill"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;AClFA;AACA;;AAEA,wCAAwC,SAAS;AACjD;AACA;;AAEA;AACA;;AAEA,mC;;;;;;;;;;;ACVA,uBAAuB,mBAAO,CAAC,qFAAoB;;AAEnD;AACA;AACA;;AAEA,oC;;;;;;;;;;;ACNA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,wC;;;;;;;;;;;ACRA;AACA;AACA;AACA;AACA;;AAEA,iC;;;;;;;;;;;ACNA;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,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AAA;AAAA;AAAA;AACA;AACA;AAEA;;;;;;;;;;;;ACJA,aAAa,8CAA8C,EAAE,I;;;;;;;;;;;ACA7D,aAAa,6CAA6C,EAAE,I;;;;;;;;;;;ACA5D,aAAa,0CAA0C,EAAE,I;;;;;;;;;;;ACAzD,aAAa,sCAAsC,EAAE,I;;;;;;;;;;;ACArD,aAAa,0CAA0C,EAAE,I;;;;;;;;;;;ACAzD,aAAa,wCAAwC,EAAE,I;;;;;;;;;;;ACAvD,aAAa,uCAAuC,EAAE,I;;;;;;;;;;;ACAtD,aAAa,2CAA2C,EAAE,I;;;;;;;;;;;ACA1D,aAAa,2CAA2C,EAAE,I","file":"block-editor/block-editor.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/block-editor/index.js\");\n","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles;","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","function _extends() {\n module.exports = _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableSpread;","var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose\");\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutProperties;","function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;","var _typeof = require(\"@babel/runtime/helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;","var arrayWithoutHoles = require(\"./arrayWithoutHoles\");\n\nvar iterableToArray = require(\"./iterableToArray\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;","/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/**\n * Internal dependencies\n */\nimport './popup-trigger';\n","/**\n * External Dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress Dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { addFilter } from '@wordpress/hooks';\nimport { InspectorControls } from '@wordpress/block-editor';\nimport { Icon, Panel, PanelBody, PanelRow, Tooltip } from '@wordpress/components';\nimport { createHigherOrderComponent } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport PopupSelectControl from '../../components/popup-select-control';\nimport GearIcon from '../../icons/gears';\n\n/**\n * Either allowedBlocks or excludedBlocks should be used, not both.\n *\n * @type {Array}\n */\nconst allowedBlocks = [];\nconst excludedBlocks = pum_block_editor_vars.popup_trigger_excluded_blocks || [\n\t'core/nextpage',\n];\n\nfunction isAllowedForBlockType( name ) {\n\tif ( ! allowedBlocks.length && ! excludedBlocks.length ) {\n\t\treturn true;\n\t}\n\n\tif ( allowedBlocks.length ) {\n\t\treturn allowedBlocks.includes( name );\n\t}\n\n\tif ( excludedBlocks.length ) {\n\t\treturn ! excludedBlocks.includes( name );\n\t}\n\n\treturn true;\n}\n\n/**\n * Add custom attribute for mobile visibility.\n *\n * @param {Object} settings Settings for the block.\n *\n * @return {Object} settings Modified settings.\n */\nfunction addAttributes( settings ) {\n\t//check if object exists for old Gutenberg version compatibility\n\t//add allowedBlocks restriction\n\tif ( typeof settings.attributes !== 'undefined' && isAllowedForBlockType( settings.name ) ) {\n\t\tsettings.attributes = Object.assign( settings.attributes, {\n\t\t\topenPopupId: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '',\n\t\t\t},\n\t\t} );\n\t}\n\n\treturn settings;\n}\n\n/**\n * Add mobile visibility controls on Advanced Block Panel.\n *\n * @param {Function} BlockEdit Block edit component.\n *\n * @return {Function} BlockEdit Modified block edit component.\n */\nconst withAdvancedControls = createHigherOrderComponent( ( BlockEdit ) => {\n\treturn ( props ) => {\n\t\tconst { name, attributes, setAttributes, isSelected } = props;\n\t\tconst { openPopupId } = attributes;\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<BlockEdit { ...props } />\n\t\t\t\t{ isSelected && isAllowedForBlockType( name ) && (\n\t\t\t\t\t<InspectorControls>\n\t\t\t\t\t\t<Panel>\n\t\t\t\t\t\t\t<PanelBody\n\t\t\t\t\t\t\t\ttitle={ __( 'Popup Controls', 'popup-maker' ) }\n\t\t\t\t\t\t\t\ticon={ GearIcon }\n\t\t\t\t\t\t\t\tinitialOpen={ false }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<PanelRow>\n\t\t\t\t\t\t\t\t\t{ __( 'These settings allow you to control popups with this block.', 'popup-maker' ) }\n\t\t\t\t\t\t\t\t</PanelRow>\n\t\t\t\t\t\t\t\t<PanelRow>\n\t\t\t\t\t\t\t\t\t<PopupSelectControl\n\t\t\t\t\t\t\t\t\t\tlabel={ <>\n\t\t\t\t\t\t\t\t\t\t\t{ __( 'Open Popup', 'popup-maker' ) }\n\t\t\t\t\t\t\t\t\t\t\t<Tooltip\n\t\t\t\t\t\t\t\t\t\t\t\tposition=\"top\"\n\t\t\t\t\t\t\t\t\t\t\t\ttext={ __( 'This method does not work well with all block types.', 'popup-maker' ) }\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https://docs.wppopupmaker.com/article/395-trigger-click-open-overview-methods\" target=\"_blank\" rel=\"noopener noreferrer\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsize=\"16\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon=\"editor-help\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle={ __( 'Open documentation', 'popup-maker' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={ {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tverticalAlign: 'middle',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t\t\t\t\t\t</> }\n\t\t\t\t\t\t\t\t\t\tvalue={ openPopupId }\n\t\t\t\t\t\t\t\t\t\tonChange={ ( popupId ) => setAttributes( { openPopupId: popupId } ) }\n\t\t\t\t\t\t\t\t\t\thelp={ __( 'Open a popup when clicking this block', 'popup-maker' ) }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</PanelRow>\n\t\t\t\t\t\t\t</PanelBody>\n\t\t\t\t\t\t</Panel>\n\n\t\t\t\t\t</InspectorControls>\n\t\t\t\t) }\n\t\t\t</>\n\t\t);\n\t};\n}, 'withAdvancedControls' );\n\n/**\n * Add custom element class in save element.\n *\n * @param {Object} extraProps Block element.\n * @param {Object} blockType Blocks object.\n * @param {Object} attributes Blocks attributes.\n *\n * @return {Object} extraProps Modified block element.\n */\nfunction applyTriggerClass( extraProps, blockType, attributes ) {\n\tconst { openPopupId } = attributes;\n\n\t//check if attribute exists for old Gutenberg version compatibility\n\t//add class only when visibleOnMobile = false\n\t//add allowedBlocks restriction\n\tif ( typeof openPopupId !== 'undefined' && openPopupId > 0 && isAllowedForBlockType( blockType.name ) ) {\n\t\textraProps.className = classnames( extraProps.className, 'popmake-' + openPopupId );\n\t}\n\n\treturn extraProps;\n}\n\n//add filters\n\naddFilter(\n\t'blocks.registerBlockType',\n\t'popup-maker/popup-trigger-attributes',\n\taddAttributes,\n);\n\naddFilter(\n\t'editor.BlockEdit',\n\t'popup-maker/popup-trigger-advanced-control',\n\twithAdvancedControls,\n);\n\naddFilter(\n\t'blocks.getSaveContent.extraProps',\n\t'popup-maker/applyTriggerClass',\n\tapplyTriggerClass,\n);\n","//import Select from 'react-select/src/Select';\n/**\n * WordPress dependencies\n */\nimport { SelectControl } from '@wordpress/components';\nimport { Component } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal vars.\n */\nconst { popups } = window.pum_block_editor_vars;\n\nexport default class PopupSelectControl extends Component {\n\trender() {\n\t\tconst {\n\t\t\tonChangeInputValue,\n\t\t\tvalue,\n\t\t\tlabel = __( 'Select Popup', 'popup-maker' ),\n\t\t\temptyValueLabel = __( 'Choose a popup', 'popup-maker' ),\n\t\t\thideLabelFromVision = false,\n\t\t\t...props\n\t\t} = this.props;\n\n\t\tconst options = [\n\t\t\t{\n\t\t\t\tvalue: '',\n\t\t\t\tlabel: emptyValueLabel,\n\t\t\t},\n\t\t\t...popups.map( ( popup ) => {\n\t\t\t\treturn {\n\t\t\t\t\tvalue: `${ popup.ID }`,\n\t\t\t\t\tlabel: popup.post_title,\n\t\t\t\t\t//disabled: true\n\t\t\t\t};\n\t\t\t} ),\n\t\t];\n\n\t\treturn (\n\t\t\t<div className=\"block-editor-popup-select-input\">\n\t\t\t\t<SelectControl\n\t\t\t\t\tlabel={ label }\n\t\t\t\t\thideLabelFromVision={ hideLabelFromVision }\n\t\t\t\t\tvalue={ value }\n\t\t\t\t\tonChange={ onChangeInputValue }\n\t\t\t\t\toptions={ options }\n\t\t\t\t\t{ ...props }\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t}\n}\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Component } from '@wordpress/element';\nimport { IconButton, Popover } from '@wordpress/components';\n\n/**\n * Style Dependencies.\n * import './editor.scss';\n */\nexport default class TriggerPopover extends Component {\n\tconstructor() {\n\t\tsuper( ...arguments );\n\n\t\tthis.toggleSettingsVisibility = this.toggleSettingsVisibility.bind( this );\n\n\t\tthis.state = {\n\t\t\tisSettingsExpanded: false,\n\t\t};\n\t}\n\n\ttoggleSettingsVisibility() {\n\t\tthis.setState( {\n\t\t\tisSettingsExpanded: ! this.state.isSettingsExpanded,\n\t\t} );\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\tadditionalControls,\n\t\t\tchildren,\n\t\t\trenderSettings,\n\t\t\tposition = 'bottom center',\n\t\t\tfocusOnMount = 'firstElement',\n\t\t\tnoticeUI,\n\t\t\t...popoverProps\n\t\t} = this.props;\n\n\t\tconst {\n\t\t\tisSettingsExpanded,\n\t\t} = this.state;\n\n\t\tconst showSettings = !! renderSettings && isSettingsExpanded;\n\n\t\treturn (\n\t\t\t<Popover\n\t\t\t\tclassName=\"editor-popup-trigger-popover block-editor-popup-trigger-popover\"\n\t\t\t\tfocusOnMount={ focusOnMount }\n\t\t\t\tposition={ position }\n\t\t\t\t{ ...popoverProps }\n\t\t\t>\n\t\t\t\t<div className=\"block-editor-popup-trigger-popover__input-container\">\n\t\t\t\t\t{ noticeUI }\n\t\t\t\t\t<div className=\"editor-popup-trigger-popover__row block-editor-popup-trigger-popover__row\">\n\t\t\t\t\t\t{ children }\n\t\t\t\t\t\t{ !! renderSettings && (\n\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\tclassName=\"editor-popup-trigger-popover__settings-toggle block-editor-popup-trigger-popover__settings-toggle\"\n\t\t\t\t\t\t\t\ticon=\"arrow-down-alt2\"\n\t\t\t\t\t\t\t\tlabel={ __( 'Trigger settings', 'popup-maker' ) }\n\t\t\t\t\t\t\t\tonClick={ this.toggleSettingsVisibility }\n\t\t\t\t\t\t\t\taria-expanded={ isSettingsExpanded }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t</div>\n\t\t\t\t\t{ showSettings && (\n\t\t\t\t\t\t<div className=\"editor-popup-trigger-popover__row block-editor-popup-trigger-popover__row editor-popup-trigger-popover__settings block-editor-popup-trigger-popover__settings\">\n\t\t\t\t\t\t\t{ renderSettings() }\n\t\t\t\t\t\t</div>\n\t\t\t\t\t) }\n\t\t\t\t</div>\n\t\t\t\t{ additionalControls && ! showSettings && (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName=\"block-editor-popup-trigger-popover__additional-controls\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{ additionalControls }\n\t\t\t\t\t</div>\n\t\t\t\t) }\n\t\t\t</Popover>\n\t\t);\n\t}\n}\n","/**\n * External dependencies\n */\nimport classnames from 'classnames';\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { IconButton } from '@wordpress/components';\n/**\n * Internal dependencies\n */\nimport PopupSelectControl from '../popup-select-control';\n\nexport default function PopupTriggerEditor( {\n\tclassName,\n\tonChangeInputValue,\n\tvalue,\n\t...props\n} ) {\n\treturn (\n\t\t<form\n\t\t\tclassName={ classnames(\n\t\t\t\t'block-editor-popup-trigger-popover__popup-editor',\n\t\t\t\tclassName,\n\t\t\t) }\n\t\t\t{ ...props }\n\t\t>\n\t\t\t<PopupSelectControl\n\t\t\t\temptyValueLabel={ __( 'Which popup should open?', 'popup-maker' ) }\n\t\t\t\thideLabelFromVision={ true }\n\t\t\t\tvalue={ value }\n\t\t\t\tonChange={ onChangeInputValue }\n\t\t\t\trequired={ true }\n\t\t\t\t// postType=\"popup\"\n\t\t\t/>\n\t\t\t<IconButton icon=\"editor-break\" label={ __( 'Apply', 'popup-maker' ) } type=\"submit\" />\n\t\t</form>\n\t);\n}\n","/**\n * External dependencies\n */\nimport classnames from 'classnames';\n/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { IconButton } from '@wordpress/components';\n\nconst { popups } = window.pum_block_editor_vars || [];\n\nfunction getPopupById( popupId = 0 ) {\n\tpopupId = parseInt( popupId ) || 0;\n\tconst popup = popups.filter( ( { ID } ) => popupId === ID );\n\n\treturn popup.length === 1 ? popup[ 0 ] : false;\n}\n\nfunction PopupView( { popupId, className } ) {\n\tconst spanClassName = classnames(\n\t\tclassName,\n\t\t'block-editor-popup-trigger-popover__popup-viewer-text',\n\t);\n\n\tconst popup = getPopupById( popupId );\n\tconst label = !! popup ? sprintf( __( 'Open \"%s\" popup', 'popup-maker' ), popup.post_title ) : '';\n\n\treturn ( <span className={ spanClassName }>{ label }</span> );\n}\n\nexport default function PopupTriggerViewer( {\n\tclassName,\n\tspanClassName,\n\tonEditLinkClick,\n\tpopupId,\n\t...props\n} ) {\n\treturn (\n\t\t<div\n\t\t\tclassName={ classnames(\n\t\t\t\t'block-editor-popup-trigger-popover__popup-viewer',\n\t\t\t\tclassName,\n\t\t\t) }\n\t\t\t{ ...props }\n\t\t>\n\t\t\t<PopupView popupId={ popupId } className={ spanClassName } />\n\t\t\t{ onEditLinkClick && <IconButton\n\t\t\t\ticon=\"edit\"\n\t\t\t\tlabel={ __( 'Edit', 'popup-maker' ) }\n\t\t\t\tonClick={ onEditLinkClick }\n\t\t\t/> }\n\t\t</div>\n\t);\n}\n","/**\n * WordPress dependencies\n */\nimport { registerFormatType } from '@wordpress/rich-text';\n/**\n * Internal dependencies\n */\nimport * as trigger from './popup-trigger';\n\n[\n\ttrigger,\n].forEach( ( { name, settings } ) => registerFormatType( name, settings ) );\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { removeFormat } from '@wordpress/rich-text';\nimport { Component } from '@wordpress/element';\nimport { withSpokenMessages } from '@wordpress/components';\nimport { RichTextShortcut, RichTextToolbarButton } from '@wordpress/block-editor';\n/**\n * Internal dependencies\n */\nimport LogoIcon from '../../icons/logo';\nimport InlinePopupTriggerUI from './inline';\n\nconst title = __( 'Popup Trigger', 'popup-maker' );\n\nexport const name = `popup-maker/popup-trigger`;\nexport const settings = {\n\tname,\n\ttitle,\n\ttagName: 'span',\n\tclassName: 'popup-trigger',\n\tattributes: {\n\t\tpopupId: 'data-popup-id',\n\t\tdoDefault: 'data-do-default',\n\t},\n\tedit: withSpokenMessages( class TriggerEdit extends Component {\n\t\tconstructor() {\n\t\t\tsuper( ...arguments );\n\n\t\t\tthis.addTrigger = this.addTrigger.bind( this );\n\t\t\tthis.stopAddingTrigger = this.stopAddingTrigger.bind( this );\n\t\t\tthis.onRemoveFormat = this.onRemoveFormat.bind( this );\n\t\t\tthis.state = {\n\t\t\t\taddingTrigger: false,\n\t\t\t};\n\t\t}\n\n\t\taddTrigger() {\n\t\t\tthis.setState( { addingTrigger: true } );\n\t\t}\n\n\t\tstopAddingTrigger() {\n\t\t\tthis.setState( { addingTrigger: false } );\n\t\t}\n\n\t\tonRemoveFormat() {\n\t\t\tconst { value, onChange, speak } = this.props;\n\n\t\t\tonChange( removeFormat( value, name ) );\n\t\t\tspeak( __( 'Trigger removed.', 'popup-maker' ), 'assertive' );\n\t\t}\n\n\t\trender() {\n\t\t\tconst { isActive, activeAttributes, value, onChange } = this.props;\n\n\t\t\treturn (\n\t\t\t\t<>\n\t\t\t\t\t<RichTextShortcut\n\t\t\t\t\t\ttype=\"primary\"\n\t\t\t\t\t\tcharacter=\"[\"\n\t\t\t\t\t\tonUse={ this.addTrigger }\n\t\t\t\t\t/>\n\t\t\t\t\t<RichTextShortcut\n\t\t\t\t\t\ttype=\"primaryShift\"\n\t\t\t\t\t\tcharacter=\"[\"\n\t\t\t\t\t\tonUse={ this.onRemoveFormat }\n\t\t\t\t\t/>\n\t\t\t\t\t{ isActive && <RichTextToolbarButton\n\t\t\t\t\t\ticon={ LogoIcon }\n\t\t\t\t\t\ttitle={ __( 'Remove Trigger', 'popup-maker' ) }\n\t\t\t\t\t\tonClick={ this.onRemoveFormat }\n\t\t\t\t\t\tisActive={ isActive }\n\t\t\t\t\t\tshortcutType=\"primaryShift\"\n\t\t\t\t\t\tshortcutCharacter=\"[\"\n\t\t\t\t\t/> }\n\t\t\t\t\t{ ! isActive && <RichTextToolbarButton\n\t\t\t\t\t\ticon={ LogoIcon }\n\t\t\t\t\t\ttitle={ title }\n\t\t\t\t\t\tonClick={ this.addTrigger }\n\t\t\t\t\t\tisActive={ isActive }\n\t\t\t\t\t\tshortcutType=\"primary\"\n\t\t\t\t\t\tshortcutCharacter=\"[\"\n\t\t\t\t\t/> }\n\t\t\t\t\t<InlinePopupTriggerUI\n\t\t\t\t\t\taddingTrigger={ this.state.addingTrigger }\n\t\t\t\t\t\tstopAddingTrigger={ this.stopAddingTrigger }\n\t\t\t\t\t\tisActive={ isActive }\n\t\t\t\t\t\tactiveAttributes={ activeAttributes }\n\t\t\t\t\t\tvalue={ value }\n\t\t\t\t\t\tonChange={ onChange }\n\t\t\t\t\t/>\n\t\t\t\t</>\n\t\t\t);\n\t\t}\n\t} ),\n};\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Component, createRef, useMemo } from '@wordpress/element';\nimport { ToggleControl, withNotices, withSpokenMessages } from '@wordpress/components';\nimport { BACKSPACE, DOWN, ENTER, LEFT, RIGHT, UP } from '@wordpress/keycodes';\nimport { getRectangleFromRange } from '@wordpress/dom';\nimport { applyFormat, create, insert, isCollapsed } from '@wordpress/rich-text';\n/**\n * Internal dependencies\n */\nimport { createTriggerFormat } from './utils';\nimport TriggerPopover from '../../components/trigger-popover';\nimport PopupTriggerEditor from '../../components/trigger-popover/popup-trigger-editor';\nimport PopupTriggerViewer from '../../components/trigger-popover/popup-trigger-viewer';\n\nconst stopKeyPropagation = ( event ) => event.stopPropagation();\n\nfunction isShowingInput( props, state ) {\n\treturn props.addingTrigger || state.editTrigger;\n}\n\nconst TriggerPopoverAtText = ( { isActive, addingTrigger, value, ...props } ) => {\n\tconst anchorRect = useMemo( () => {\n\t\tconst selection = window.getSelection();\n\t\tconst range = selection.rangeCount > 0 ? selection.getRangeAt( 0 ) : null;\n\t\tif ( ! range ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( addingTrigger ) {\n\t\t\treturn getRectangleFromRange( range );\n\t\t}\n\n\t\tlet element = range.startContainer;\n\n\t\t// If the caret is right before the element, select the next element.\n\t\telement = element.nextElementSibling || element;\n\n\t\twhile ( element.nodeType !== window.Node.ELEMENT_NODE ) {\n\t\t\telement = element.parentNode;\n\t\t}\n\n\t\tconst closest = element.closest( 'span.popup-trigger' );\n\t\tif ( closest ) {\n\t\t\treturn closest.getBoundingClientRect();\n\t\t}\n\t}, [ isActive, addingTrigger, value.start, value.end ] );\n\n\tif ( ! anchorRect ) {\n\t\treturn null;\n\t}\n\n\treturn <TriggerPopover anchorRect={ anchorRect } { ...props } />;\n};\n\n/**\n * Generates a Popover with a select field to choose a popup, inline with the Rich Text editors.\n */\nclass InlinePopupTriggerUI extends Component {\n\tconstructor() {\n\t\tsuper( ...arguments );\n\n\t\tthis.editTrigger = this.editTrigger.bind( this );\n\t\tthis.setPopupID = this.setPopupID.bind( this );\n\t\tthis.setDoDefault = this.setDoDefault.bind( this );\n\t\tthis.onFocusOutside = this.onFocusOutside.bind( this );\n\t\tthis.submitTrigger = this.submitTrigger.bind( this );\n\t\tthis.resetState = this.resetState.bind( this );\n\n\t\tthis.state = {\n\t\t\tdoDefault: false,\n\t\t\tpopupId: '',\n\t\t};\n\t}\n\n\tstatic getDerivedStateFromProps( props, state ) {\n\t\tconst { activeAttributes } = props;\n\t\tconst { popupId = '' } = activeAttributes;\n\t\tlet { doDefault = false } = activeAttributes;\n\n\t\t// Convert string value to boolean for comparison.\n\t\tif ( window._.isString( doDefault ) ) {\n\t\t\tdoDefault = '1' === doDefault;\n\t\t}\n\n\t\tif ( ! isShowingInput( props, state ) ) {\n\t\t\tconst update = {};\n\t\t\tif ( popupId !== state.popupId ) {\n\t\t\t\tupdate.popupId = popupId;\n\t\t\t}\n\n\t\t\tif ( doDefault !== state.doDefault ) {\n\t\t\t\tupdate.doDefault = doDefault;\n\t\t\t}\n\t\t\treturn Object.keys( update ).length ? update : null;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tonKeyDown( event ) {\n\t\tif ( [ LEFT, DOWN, RIGHT, UP, BACKSPACE, ENTER ].indexOf( event.keyCode ) > -1 ) {\n\t\t\t// Stop the key event from propagating up to ObserveTyping.startTypingInTextField.\n\t\t\tevent.stopPropagation();\n\t\t}\n\t}\n\n\tsetPopupID( popupId ) {\n\t\tconst { noticeOperations } = this.props;\n\n\t\tnoticeOperations.removeNotice( 'missingPopupId' );\n\n\t\tif ( '' === popupId ) {\n\t\t\tnoticeOperations.createNotice( {\n\t\t\t\tid: 'missingPopupId',\n\t\t\t\tstatus: 'error',\n\t\t\t\tcontent: __( 'Choose a popup or the trigger won\\'t function.', 'popup-maker' ),\n\t\t\t} );\n\t\t}\n\n\t\tthis.setState( { popupId } );\n\t}\n\n\tsetDoDefault( doDefault ) {\n\t\tconst { activeAttributes: { popupId = 0 }, value, onChange } = this.props;\n\n\t\tthis.setState( { doDefault } );\n\n\t\t// Apply now if URL is not being edited.\n\t\tif ( ! isShowingInput( this.props, this.state ) ) {\n\t\t\tonChange( applyFormat( value, createTriggerFormat( {\n\t\t\t\tpopupId,\n\t\t\t\tdoDefault,\n\t\t\t} ) ) );\n\t\t}\n\t}\n\n\teditTrigger( event ) {\n\t\tthis.setState( { editTrigger: true } );\n\t\tevent.preventDefault();\n\t}\n\n\tsubmitTrigger( event ) {\n\t\tconst { isActive, value, onChange, speak } = this.props;\n\t\tconst { popupId, doDefault } = this.state;\n\t\tconst format = createTriggerFormat( {\n\t\t\tpopupId,\n\t\t\tdoDefault,\n\t\t} );\n\n\t\tevent.preventDefault();\n\n\t\tif ( isCollapsed( value ) && ! isActive ) {\n\t\t\tconst toInsert = applyFormat( create( { text: __( 'Open Popup', 'popup-maker' ) } ), format, 0, __( 'Open Popup', 'popup-maker' ).length );\n\t\t\tonChange( insert( value, toInsert ) );\n\t\t} else {\n\t\t\tonChange( applyFormat( value, format ) );\n\t\t}\n\n\t\tthis.resetState();\n\n\t\tif ( isActive ) {\n\t\t\tspeak( __( 'Trigger edited.', 'popup-maker' ), 'assertive' );\n\t\t} else {\n\t\t\tspeak( __( 'Trigger inserted.', 'popup-maker' ), 'assertive' );\n\t\t}\n\t}\n\n\tonFocusOutside() {\n\t\tthis.resetState();\n\t}\n\n\tresetState() {\n\t\tthis.props.stopAddingTrigger();\n\t\tthis.setState( { editTrigger: false } );\n\t}\n\n\trender() {\n\t\t/**\n\t\t * @constant {boolean} isActive True when the cursor is inside an existing trigger\n\t\t * @constant {boolean} addingTrigger True when the user has clicked the add trigger button\n\t\t * @constant {Object} activeAttributes Object containing the current attribute values for the selected text.\n\t\t * @constant {Object} value Object containing the current rich text selection object containing position & formats.\n\t\t * @constant {Object} value.activeFormats Array of registered & active WPFormat objects.\n\t\t * @constant {number} value.formats ?? Array of format history for the active text.\n\t\t * @constant {number} value.start Start offset of selected text\n\t\t * @constant {number} value.end End offset of selected text.\n\t\t * @constant {string} value.text Selected text.\n\t\t */\n\t\tconst { isActive, /* activeAttributes, */ addingTrigger, value, noticeUI } = this.props;\n\n\t\t// If the user is not adding a trigger from the toolbar or actively inside render nothing.\n\t\tif ( ! isActive && ! addingTrigger ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst { popupId, doDefault } = this.state;\n\t\tconst showInput = isShowingInput( this.props, this.state );\n\n\t\treturn (\n\t\t\t<TriggerPopoverAtText\n\t\t\t\tvalue={ value }\n\t\t\t\tisActive={ isActive }\n\t\t\t\taddingTrigger={ addingTrigger }\n\t\t\t\tonFocusOutside={ this.onFocusOutside }\n\t\t\t\tonClose={ this.resetState }\n\t\t\t\tnoticeUI={ noticeUI }\n\t\t\t\tfocusOnMount={ showInput ? 'firstElement' : false }\n\t\t\t\trenderSettings={ () => (\n\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\tlabel={ __( 'Do default browser action?', 'popup-maker' ) }\n\t\t\t\t\t\tchecked={ doDefault }\n\t\t\t\t\t\tonChange={ this.setDoDefault }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t>\n\t\t\t\t{ showInput ? (\n\t\t\t\t\t<PopupTriggerEditor\n\t\t\t\t\t\tclassName=\"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content\"\n\t\t\t\t\t\tvalue={ popupId }\n\t\t\t\t\t\tonChangeInputValue={ this.setPopupID }\n\t\t\t\t\t\tonKeyDown={ this.onKeyDown }\n\t\t\t\t\t\tonKeyPress={ stopKeyPropagation }\n\t\t\t\t\t\tonSubmit={ this.submitTrigger }\n\t\t\t\t\t/>\n\t\t\t\t) : (\n\t\t\t\t\t<PopupTriggerViewer\n\t\t\t\t\t\tclassName=\"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content\"\n\t\t\t\t\t\tonKeyPress={ stopKeyPropagation }\n\t\t\t\t\t\tpopupId={ popupId }\n\t\t\t\t\t\tonEditLinkClick={ this.editTrigger }\n\t\t\t\t\t\t// linkClassName=\"\"\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t</TriggerPopoverAtText>\n\t\t);\n\t}\n}\n\nexport default withSpokenMessages( withNotices( InlinePopupTriggerUI ) );\n","/**\n * Internal dependencies\n */\nimport { name } from './index';\n\n/**\n * Generates the format object that will be applied to the trigger text.\n *\n * @param {Object} options\n * @param {number} options.popupId The popup ID.\n * @param {boolean} options.doDefault Whether this trigger will act normally when clicked.\n *\n * @return {Object} The final format object.\n */\nexport function createTriggerFormat( { popupId = 0, doDefault = false } ) {\n\tconst doDefaultClass = doDefault ? 'pum-do-default' : '';\n\n\treturn {\n\t\ttype: name,\n\t\tattributes: {\n\t\t\tclass: `popmake-${ popupId } ${ doDefaultClass }`,\n\t\t\tpopupId: `${ popupId }`,\n\t\t\tdoDefault: doDefault ? '1' : '0',\n\t\t},\n\t};\n}\n","import { createElement } from '@wordpress/element';\n\nconst GearsIcon = createElement( 'svg',\n\t{\n\t\tviewBox: '0 0 512 512',\n\t\twidth: 20,\n\t\theight: 20,\n\t},\n\tcreateElement( 'path',\n\t\t{ d: 'M348,327.195v-35.741l-32.436-11.912c-2.825-10.911-6.615-21.215-12.216-30.687l0.325-0.042l15.438-32.153l-25.2-25.269 l-32.118,15.299l-0.031,0.045c-9.472-5.601-19.758-9.156-30.671-11.978L219.186,162h-35.739l-11.913,32.759 c-10.913,2.821-21.213,6.774-30.685,12.379l-0.048-0.248l-32.149-15.399l-25.269,25.219l15.299,32.124l0.05,0.039 c-5.605,9.471-11.159,19.764-13.98,30.675L50,291.454v35.741l34.753,11.913c2.821,10.915,7.774,21.211,13.38,30.685l0.249,0.045 l-15.147,32.147l25.343,25.274l32.188-15.298l0.065-0.046c9.474,5.597,19.782,10.826,30.695,13.652L183.447,460h35.739 l11.915-34.432c10.913-2.826,21.209-7.614,30.681-13.215l0.05-0.175l32.151,15.192l25.267-25.326l-15.299-32.182l-0.046-0.061 c5.601-9.473,8.835-19.776,11.66-30.688L348,327.195z M201.318,368.891c-32.897,0-59.566-26.662-59.566-59.565 c0-32.896,26.669-59.568,59.566-59.568c32.901,0,59.566,26.672,59.566,59.568C260.884,342.229,234.219,368.891,201.318,368.891z' } ),\n\tcreateElement( 'path',\n\t\t{ d: 'M462.238,111.24l-7.815-18.866l-20.23,1.012c-3.873-5.146-8.385-9.644-13.417-13.42l0.038-0.043l1.06-20.318l-18.859-7.822 L389.385,66.89l-0.008,0.031c-6.229-0.883-12.619-0.933-18.988-0.025L356.76,51.774l-18.867,7.815l1.055,20.32 c-5.152,3.873-9.627,8.422-13.403,13.46l-0.038-0.021l-20.317-1.045l-7.799,18.853l15.103,13.616l0.038,0.021 c-0.731,5.835-1.035,12.658-0.133,19.038l-15.208,13.662l7.812,18.87l20.414-1.086c3.868,5.144,8.472,9.613,13.495,13.385 l0.013,0.025l-1.03,20.312l20.668,7.815L374,201.703v-0.033c4,0.731,10.818,0.935,17.193,0.04l12.729,15.114l18.42-7.813 l-1.286-20.324c5.144-3.875,9.521-8.424,13.297-13.456l-0.023,0.011l20.287,1.047l7.802-18.864l-15.121-13.624l-0.033-0.019 c0.877-6.222,0.852-12.58-0.05-18.953L462.238,111.24z M392.912,165.741c-17.359,7.19-37.27-1.053-44.462-18.421 c-7.196-17.364,1.047-37.272,18.415-44.465c17.371-7.192,37.274,1.053,44.471,18.417 C418.523,138.643,410.276,158.547,392.912,165.741z' } ),\n);\n\nexport default GearsIcon;\n","import { createElement } from '@wordpress/element';\n\nconst LogoIcon = createElement( 'svg',\n\t{\n\t\tviewBox: '0 0 106 84', width: 24, height: 24, className: 'popup-trigger-button-svg',\n\t},\n\tcreateElement( 'path', {\n\t\td: 'M 74.98 0.00 L 80.18 0.00 C 86.85 0.96 93.11 3.19 97.92 8.09 C 102.82 12.91 105.07 19.19 106.00 25.89 L 106.00 29.25 C 105.01 36.93 101.84 43.76 95.96 48.90 C 85.62 57.23 75.10 65.38 64.88 73.86 C 58.14 79.85 49.63 82.94 40.76 84.00 L 36.17 84.00 C 27.56 83.00 19.39 80.03 12.89 74.16 C 5.17 67.38 1.08 57.89 0.00 47.78 L 0.00 43.19 C 1.06 33.34 4.97 24.08 12.35 17.32 C 19.55 10.62 29.39 7.33 38.98 6.07 C 50.98 4.07 63.06 2.41 74.98 0.00 Z',\n\t\tfill: '#98b729',\n\t} ),\n\tcreateElement( 'path', {\n\t\td: 'M 73.27 3.38 C 78.51 2.46 83.84 3.16 88.72 5.25 C 99.12 9.98 105.12 21.94 102.29 33.09 C 100.93 39.34 97.06 44.25 92.19 48.20 C 84.32 54.30 76.63 60.62 68.82 66.78 C 65.27 69.54 61.99 72.75 58.21 75.17 C 53.04 78.31 47.09 80.42 41.04 80.90 C 26.64 81.98 12.34 73.74 6.37 60.53 C 0.78 48.69 2.33 34.56 10.17 24.12 C 16.07 16.10 25.11 11.68 34.69 9.75 C 47.55 7.61 60.45 5.72 73.27 3.38 Z',\n\t\tfill: '#262d2b',\n\t} ),\n\tcreateElement( 'path', {\n\t\td: 'M 73.39 7.40 C 79.51 6.31 85.83 7.34 90.84 11.17 C 97.78 16.34 100.76 25.75 97.94 33.97 C 96.07 39.49 92.17 43.26 87.63 46.67 C 80.70 52.04 73.92 57.62 67.04 63.05 C 61.52 67.32 57.24 72.00 50.55 74.56 C 39.66 79.19 26.67 77.04 17.82 69.21 C 10.09 62.55 6.01 52.13 7.21 41.99 C 8.21 32.78 13.46 24.27 21.21 19.22 C 29.30 14.01 37.69 13.29 46.90 11.83 C 55.73 10.34 64.58 9.05 73.39 7.40 Z',\n\t\tfill: '#98b729',\n\t} ),\n\tcreateElement( 'path', {\n\t\td: 'M 79.33 11.15 C 80.91 11.34 82.49 11.77 84.05 12.13 C 83.96 13.78 83.90 15.42 83.83 17.07 C 85.21 18.44 86.59 19.81 87.96 21.19 C 89.56 21.12 91.16 21.05 92.76 20.97 C 93.19 22.58 93.62 24.19 94.07 25.79 C 92.62 26.56 91.18 27.34 89.74 28.11 C 89.27 30.00 88.80 31.89 88.29 33.77 C 89.17 35.11 90.05 36.46 90.93 37.80 C 89.75 38.99 88.56 40.18 87.37 41.36 C 86.03 40.50 84.69 39.65 83.36 38.79 C 81.43 39.31 79.50 39.83 77.57 40.33 C 76.86 41.76 76.14 43.18 75.44 44.61 C 73.84 44.14 72.22 43.70 70.60 43.30 C 70.70 41.70 70.79 40.09 70.89 38.49 C 69.46 37.08 68.05 35.65 66.64 34.22 C 65.07 34.33 63.50 34.41 61.94 34.52 C 61.54 32.88 61.09 31.25 60.61 29.63 C 62.04 28.92 63.45 28.20 64.87 27.48 C 65.38 25.56 65.93 23.65 66.45 21.74 C 65.57 20.37 64.69 19.01 63.80 17.65 C 64.99 16.46 66.17 15.27 67.36 14.08 C 68.70 14.97 70.04 15.86 71.38 16.75 C 73.20 16.26 75.02 15.78 76.84 15.32 C 77.62 13.91 78.39 12.46 79.33 11.15 Z',\n\t\tfill: '#262d2b',\n\t} ),\n\tcreateElement( 'path', {\n\t\td: 'M 31.46 18.53 C 35.73 17.41 39.75 17.90 44.06 18.38 C 43.69 20.25 43.38 22.13 43.00 23.99 C 46.30 25.32 49.40 26.46 52.10 28.89 C 56.07 32.21 58.00 36.65 59.46 41.49 C 61.32 41.26 63.19 41.04 65.06 40.81 C 65.30 45.35 65.55 49.64 64.02 54.02 C 62.82 57.89 60.52 60.95 58.09 64.10 C 56.66 62.88 55.24 61.65 53.81 60.43 C 50.80 62.88 47.90 65.17 44.07 66.21 C 39.50 67.65 35.11 67.00 30.55 65.99 C 29.84 67.72 29.12 69.46 28.40 71.19 C 24.48 69.34 20.78 67.44 17.87 64.12 C 14.90 61.08 13.34 57.40 11.80 53.51 C 13.55 52.89 15.31 52.27 17.06 51.65 C 16.43 47.16 15.95 42.88 17.48 38.49 C 18.70 34.52 21.22 31.56 23.95 28.54 C 22.80 27.05 21.69 25.54 20.55 24.05 C 23.99 21.67 27.30 19.46 31.46 18.53 Z',\n\t\tfill: '#262d2b',\n\t} ),\n\tcreateElement( 'path', {\n\t\td: 'M 76.34 24.32 C 79.21 23.52 81.89 26.79 80.48 29.46 C 79.35 31.71 76.40 32.21 74.62 30.38 C 72.72 28.34 73.67 25.06 76.34 24.32 Z',\n\t\tfill: '#98b729',\n\t} ),\n\tcreateElement( 'path', {\n\t\td: 'M 33.46 26.53 C 40.08 24.87 47.25 27.17 51.85 32.16 C 57.28 37.94 58.59 46.87 54.94 53.94 C 51.18 61.61 42.36 65.97 33.97 64.14 C 25.47 62.43 18.97 54.70 18.77 46.02 C 18.32 36.96 24.64 28.60 33.46 26.53 Z',\n\t\tfill: '#98b729',\n\t} ),\n);\n\nexport default LogoIcon;\n","/*******************************************************************************\n * Copyright (c) 2020, Code Atlantic LLC.\n ******************************************************************************/\n\nimport './formats';\nimport './block-extensions';","(function() { module.exports = window[\"wp\"][\"blockEditor\"]; }());","(function() { module.exports = window[\"wp\"][\"components\"]; }());","(function() { module.exports = window[\"wp\"][\"compose\"]; }());","(function() { module.exports = window[\"wp\"][\"dom\"]; }());","(function() { module.exports = window[\"wp\"][\"element\"]; }());","(function() { module.exports = window[\"wp\"][\"hooks\"]; }());","(function() { module.exports = window[\"wp\"][\"i18n\"]; }());","(function() { module.exports = window[\"wp\"][\"keycodes\"]; }());","(function() { module.exports = window[\"wp\"][\"richText\"]; }());"],"sourceRoot":""}
|
1 |
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/@babel/runtime/helpers/arrayLikeToArray.js","webpack:///./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack:///./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack:///./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack:///./node_modules/@babel/runtime/helpers/createClass.js","webpack:///./node_modules/@babel/runtime/helpers/extends.js","webpack:///./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack:///./node_modules/@babel/runtime/helpers/inherits.js","webpack:///./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack:///./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack:///./node_modules/@babel/runtime/helpers/objectWithoutProperties.js","webpack:///./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","webpack:///./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack:///./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack:///./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack:///./node_modules/@babel/runtime/helpers/typeof.js","webpack:///./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack:///./node_modules/classnames/index.js","webpack:///./src/block-editor/block-extensions/index.js","webpack:///./src/block-editor/block-extensions/popup-trigger/index.js","webpack:///./src/block-editor/components/popup-select-control/index.js","webpack:///./src/block-editor/components/trigger-popover/index.js","webpack:///./src/block-editor/components/trigger-popover/popup-trigger-editor.js","webpack:///./src/block-editor/components/trigger-popover/popup-trigger-viewer.js","webpack:///./src/block-editor/formats/index.js","webpack:///./src/block-editor/formats/popup-trigger/index.js","webpack:///./src/block-editor/formats/popup-trigger/inline.js","webpack:///./src/block-editor/formats/popup-trigger/utils.js","webpack:///./src/block-editor/icons/gears.js","webpack:///./src/block-editor/icons/logo.js","webpack:///./src/block-editor/index.js","webpack:///external [\"wp\",\"blockEditor\"]","webpack:///external [\"wp\",\"components\"]","webpack:///external [\"wp\",\"compose\"]","webpack:///external [\"wp\",\"dom\"]","webpack:///external [\"wp\",\"element\"]","webpack:///external [\"wp\",\"hooks\"]","webpack:///external [\"wp\",\"i18n\"]","webpack:///external [\"wp\",\"keycodes\"]","webpack:///external [\"wp\",\"richText\"]"],"names":["allowedBlocks","excludedBlocks","pum_block_editor_vars","popup_trigger_excluded_blocks","isAllowedForBlockType","name","length","includes","addAttributes","settings","attributes","Object","assign","openPopupId","type","default","withAdvancedControls","createHigherOrderComponent","BlockEdit","props","setAttributes","isSelected","__","GearIcon","verticalAlign","popupId","applyTriggerClass","extraProps","blockType","className","classnames","addFilter","popups","window","PopupSelectControl","onChangeInputValue","value","label","emptyValueLabel","hideLabelFromVision","options","map","popup","ID","post_title","Component","TriggerPopover","arguments","toggleSettingsVisibility","bind","state","isSettingsExpanded","setState","additionalControls","children","renderSettings","position","focusOnMount","noticeUI","popoverProps","showSettings","PopupTriggerEditor","getPopupById","parseInt","filter","PopupView","spanClassName","sprintf","PopupTriggerViewer","onEditLinkClick","trigger","forEach","registerFormatType","title","tagName","doDefault","edit","withSpokenMessages","addTrigger","stopAddingTrigger","onRemoveFormat","addingTrigger","onChange","speak","removeFormat","isActive","activeAttributes","LogoIcon","stopKeyPropagation","event","stopPropagation","isShowingInput","editTrigger","TriggerPopoverAtText","anchorRect","useMemo","selection","getSelection","range","rangeCount","getRangeAt","getRectangleFromRange","element","startContainer","nextElementSibling","nodeType","Node","ELEMENT_NODE","parentNode","closest","getBoundingClientRect","start","end","InlinePopupTriggerUI","setPopupID","setDoDefault","onFocusOutside","submitTrigger","resetState","LEFT","DOWN","RIGHT","UP","BACKSPACE","ENTER","indexOf","keyCode","noticeOperations","removeNotice","createNotice","id","status","content","applyFormat","createTriggerFormat","preventDefault","format","isCollapsed","toInsert","create","text","insert","showInput","onKeyDown","_","isString","update","keys","withNotices","doDefaultClass","class","GearsIcon","createElement","viewBox","width","height","d","fill"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;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EAAE,I;;;;;;;;;;;ACAzD,aAAa,wCAAwC,EAAE,I;;;;;;;;;;;ACAvD,aAAa,uCAAuC,EAAE,I;;;;;;;;;;;ACAtD,aAAa,2CAA2C,EAAE,I;;;;;;;;;;;ACA1D,aAAa,2CAA2C,EAAE,I","file":"block-editor/block-editor.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/block-editor/index.js\");\n","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles;","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","function _extends() {\n module.exports = _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableSpread;","var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose\");\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutProperties;","function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;","var _typeof = require(\"@babel/runtime/helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;","var arrayWithoutHoles = require(\"./arrayWithoutHoles\");\n\nvar iterableToArray = require(\"./iterableToArray\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;","/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/**\n * Internal dependencies\n */\nimport './popup-trigger';\n","/**\n * External Dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress Dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { addFilter } from '@wordpress/hooks';\nimport { InspectorControls } from '@wordpress/block-editor';\nimport { Icon, Panel, PanelBody, PanelRow, Tooltip } from '@wordpress/components';\nimport { createHigherOrderComponent } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport PopupSelectControl from '../../components/popup-select-control';\nimport GearIcon from '../../icons/gears';\n\n/**\n * Either allowedBlocks or excludedBlocks should be used, not both.\n *\n * @type {Array}\n */\nconst allowedBlocks = [];\nconst excludedBlocks = pum_block_editor_vars.popup_trigger_excluded_blocks || [\n\t'core/nextpage',\n];\n\nfunction isAllowedForBlockType( name ) {\n\tif ( ! allowedBlocks.length && ! excludedBlocks.length ) {\n\t\treturn true;\n\t}\n\n\tif ( allowedBlocks.length ) {\n\t\treturn allowedBlocks.includes( name );\n\t}\n\n\tif ( excludedBlocks.length ) {\n\t\treturn ! excludedBlocks.includes( name );\n\t}\n\n\treturn true;\n}\n\n/**\n * Add custom attribute for mobile visibility.\n *\n * @param {Object} settings Settings for the block.\n *\n * @return {Object} settings Modified settings.\n */\nfunction addAttributes( settings ) {\n\t//check if object exists for old Gutenberg version compatibility\n\t//add allowedBlocks restriction\n\tif ( typeof settings.attributes !== 'undefined' && isAllowedForBlockType( settings.name ) ) {\n\t\tsettings.attributes = Object.assign( settings.attributes, {\n\t\t\topenPopupId: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '',\n\t\t\t},\n\t\t} );\n\t}\n\n\treturn settings;\n}\n\n/**\n * Add mobile visibility controls on Advanced Block Panel.\n *\n * @param {Function} BlockEdit Block edit component.\n *\n * @return {Function} BlockEdit Modified block edit component.\n */\nconst withAdvancedControls = createHigherOrderComponent( ( BlockEdit ) => {\n\treturn ( props ) => {\n\t\tconst { name, attributes, setAttributes, isSelected } = props;\n\t\tconst { openPopupId } = attributes;\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<BlockEdit { ...props } />\n\t\t\t\t{ isSelected && isAllowedForBlockType( name ) && (\n\t\t\t\t\t<InspectorControls>\n\t\t\t\t\t\t<Panel>\n\t\t\t\t\t\t\t<PanelBody\n\t\t\t\t\t\t\t\ttitle={ __( 'Popup Controls', 'popup-maker' ) }\n\t\t\t\t\t\t\t\ticon={ GearIcon }\n\t\t\t\t\t\t\t\tinitialOpen={ false }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<PanelRow>\n\t\t\t\t\t\t\t\t\t{ __( 'These settings allow you to control popups with this block.', 'popup-maker' ) }\n\t\t\t\t\t\t\t\t</PanelRow>\n\t\t\t\t\t\t\t\t<PanelRow>\n\t\t\t\t\t\t\t\t\t<PopupSelectControl\n\t\t\t\t\t\t\t\t\t\tlabel={ <>\n\t\t\t\t\t\t\t\t\t\t\t{ __( 'Open Popup', 'popup-maker' ) }\n\t\t\t\t\t\t\t\t\t\t\t<Tooltip\n\t\t\t\t\t\t\t\t\t\t\t\tposition=\"top\"\n\t\t\t\t\t\t\t\t\t\t\t\ttext={ __( 'This method does not work well with all block types.', 'popup-maker' ) }\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https://docs.wppopupmaker.com/article/395-trigger-click-open-overview-methods\" target=\"_blank\" rel=\"noopener noreferrer\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsize=\"16\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon=\"editor-help\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle={ __( 'Open documentation', 'popup-maker' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={ {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tverticalAlign: 'middle',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t\t\t\t\t\t</> }\n\t\t\t\t\t\t\t\t\t\tvalue={ openPopupId }\n\t\t\t\t\t\t\t\t\t\tonChange={ ( popupId ) => setAttributes( { openPopupId: popupId } ) }\n\t\t\t\t\t\t\t\t\t\thelp={ __( 'Open a popup when clicking this block', 'popup-maker' ) }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</PanelRow>\n\t\t\t\t\t\t\t</PanelBody>\n\t\t\t\t\t\t</Panel>\n\n\t\t\t\t\t</InspectorControls>\n\t\t\t\t) }\n\t\t\t</>\n\t\t);\n\t};\n}, 'withAdvancedControls' );\n\n/**\n * Add custom element class in save element.\n *\n * @param {Object} extraProps Block element.\n * @param {Object} blockType Blocks object.\n * @param {Object} attributes Blocks attributes.\n *\n * @return {Object} extraProps Modified block element.\n */\nfunction applyTriggerClass( extraProps, blockType, attributes ) {\n\tconst { openPopupId } = attributes;\n\n\t//check if attribute exists for old Gutenberg version compatibility\n\t//add class only when visibleOnMobile = false\n\t//add allowedBlocks restriction\n\tif ( typeof openPopupId !== 'undefined' && openPopupId > 0 && isAllowedForBlockType( blockType.name ) ) {\n\t\textraProps.className = classnames( extraProps.className, 'popmake-' + openPopupId );\n\t}\n\n\treturn extraProps;\n}\n\n//add filters\n\naddFilter(\n\t'blocks.registerBlockType',\n\t'popup-maker/popup-trigger-attributes',\n\taddAttributes,\n);\n\naddFilter(\n\t'editor.BlockEdit',\n\t'popup-maker/popup-trigger-advanced-control',\n\twithAdvancedControls,\n);\n\naddFilter(\n\t'blocks.getSaveContent.extraProps',\n\t'popup-maker/applyTriggerClass',\n\tapplyTriggerClass,\n);\n","//import Select from 'react-select/src/Select';\n/**\n * WordPress dependencies\n */\nimport { SelectControl } from '@wordpress/components';\nimport { Component } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal vars.\n */\nconst { popups } = window.pum_block_editor_vars;\n\nexport default class PopupSelectControl extends Component {\n\trender() {\n\t\tconst {\n\t\t\tonChangeInputValue,\n\t\t\tvalue,\n\t\t\tlabel = __( 'Select Popup', 'popup-maker' ),\n\t\t\temptyValueLabel = __( 'Choose a popup', 'popup-maker' ),\n\t\t\thideLabelFromVision = false,\n\t\t\t...props\n\t\t} = this.props;\n\n\t\tconst options = [\n\t\t\t{\n\t\t\t\tvalue: '',\n\t\t\t\tlabel: emptyValueLabel,\n\t\t\t},\n\t\t\t...popups.map( ( popup ) => {\n\t\t\t\treturn {\n\t\t\t\t\tvalue: `${ popup.ID }`,\n\t\t\t\t\tlabel: popup.post_title,\n\t\t\t\t\t//disabled: true\n\t\t\t\t};\n\t\t\t} ),\n\t\t];\n\n\t\treturn (\n\t\t\t<div className=\"block-editor-popup-select-input\">\n\t\t\t\t<SelectControl\n\t\t\t\t\tlabel={ label }\n\t\t\t\t\thideLabelFromVision={ hideLabelFromVision }\n\t\t\t\t\tvalue={ value }\n\t\t\t\t\tonChange={ onChangeInputValue }\n\t\t\t\t\toptions={ options }\n\t\t\t\t\t{ ...props }\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t}\n}\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Component } from '@wordpress/element';\nimport { IconButton, Popover } from '@wordpress/components';\n\n/**\n * Style Dependencies.\n * import './editor.scss';\n */\nexport default class TriggerPopover extends Component {\n\tconstructor() {\n\t\tsuper( ...arguments );\n\n\t\tthis.toggleSettingsVisibility = this.toggleSettingsVisibility.bind( this );\n\n\t\tthis.state = {\n\t\t\tisSettingsExpanded: false,\n\t\t};\n\t}\n\n\ttoggleSettingsVisibility() {\n\t\tthis.setState( {\n\t\t\tisSettingsExpanded: ! this.state.isSettingsExpanded,\n\t\t} );\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\tadditionalControls,\n\t\t\tchildren,\n\t\t\trenderSettings,\n\t\t\tposition = 'bottom center',\n\t\t\tfocusOnMount = 'firstElement',\n\t\t\tnoticeUI,\n\t\t\t...popoverProps\n\t\t} = this.props;\n\n\t\tconst {\n\t\t\tisSettingsExpanded,\n\t\t} = this.state;\n\n\t\tconst showSettings = !! renderSettings && isSettingsExpanded;\n\n\t\treturn (\n\t\t\t<Popover\n\t\t\t\tclassName=\"editor-popup-trigger-popover block-editor-popup-trigger-popover\"\n\t\t\t\tfocusOnMount={ focusOnMount }\n\t\t\t\tposition={ position }\n\t\t\t\t{ ...popoverProps }\n\t\t\t>\n\t\t\t\t<div className=\"block-editor-popup-trigger-popover__input-container\">\n\t\t\t\t\t{ noticeUI }\n\t\t\t\t\t<div className=\"editor-popup-trigger-popover__row block-editor-popup-trigger-popover__row\">\n\t\t\t\t\t\t{ children }\n\t\t\t\t\t\t{ !! renderSettings && (\n\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\tclassName=\"editor-popup-trigger-popover__settings-toggle block-editor-popup-trigger-popover__settings-toggle\"\n\t\t\t\t\t\t\t\ticon=\"arrow-down-alt2\"\n\t\t\t\t\t\t\t\tlabel={ __( 'Trigger settings', 'popup-maker' ) }\n\t\t\t\t\t\t\t\tonClick={ this.toggleSettingsVisibility }\n\t\t\t\t\t\t\t\taria-expanded={ isSettingsExpanded }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t</div>\n\t\t\t\t\t{ showSettings && (\n\t\t\t\t\t\t<div className=\"editor-popup-trigger-popover__row block-editor-popup-trigger-popover__row editor-popup-trigger-popover__settings block-editor-popup-trigger-popover__settings\">\n\t\t\t\t\t\t\t{ renderSettings() }\n\t\t\t\t\t\t</div>\n\t\t\t\t\t) }\n\t\t\t\t</div>\n\t\t\t\t{ additionalControls && ! showSettings && (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName=\"block-editor-popup-trigger-popover__additional-controls\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{ additionalControls }\n\t\t\t\t\t</div>\n\t\t\t\t) }\n\t\t\t</Popover>\n\t\t);\n\t}\n}\n","/**\n * External dependencies\n */\nimport classnames from 'classnames';\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { IconButton } from '@wordpress/components';\n/**\n * Internal dependencies\n */\nimport PopupSelectControl from '../popup-select-control';\n\nexport default function PopupTriggerEditor( {\n\tclassName,\n\tonChangeInputValue,\n\tvalue,\n\t...props\n} ) {\n\treturn (\n\t\t<form\n\t\t\tclassName={ classnames(\n\t\t\t\t'block-editor-popup-trigger-popover__popup-editor',\n\t\t\t\tclassName,\n\t\t\t) }\n\t\t\t{ ...props }\n\t\t>\n\t\t\t<PopupSelectControl\n\t\t\t\temptyValueLabel={ __( 'Which popup should open?', 'popup-maker' ) }\n\t\t\t\thideLabelFromVision={ true }\n\t\t\t\tvalue={ value }\n\t\t\t\tonChange={ onChangeInputValue }\n\t\t\t\trequired={ true }\n\t\t\t\t// postType=\"popup\"\n\t\t\t/>\n\t\t\t<IconButton icon=\"editor-break\" label={ __( 'Apply', 'popup-maker' ) } type=\"submit\" />\n\t\t</form>\n\t);\n}\n","/**\n * External dependencies\n */\nimport classnames from 'classnames';\n/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { IconButton } from '@wordpress/components';\n\nconst { popups } = window.pum_block_editor_vars || [];\n\nfunction getPopupById( popupId = 0 ) {\n\tpopupId = parseInt( popupId ) || 0;\n\tconst popup = popups.filter( ( { ID } ) => popupId === ID );\n\n\treturn popup.length === 1 ? popup[ 0 ] : false;\n}\n\nfunction PopupView( { popupId, className } ) {\n\tconst spanClassName = classnames(\n\t\tclassName,\n\t\t'block-editor-popup-trigger-popover__popup-viewer-text',\n\t);\n\n\tconst popup = getPopupById( popupId );\n\tconst label = !! popup ? sprintf( __( 'Open \"%s\" popup', 'popup-maker' ), popup.post_title ) : '';\n\n\treturn ( <span className={ spanClassName }>{ label }</span> );\n}\n\nexport default function PopupTriggerViewer( {\n\tclassName,\n\tspanClassName,\n\tonEditLinkClick,\n\tpopupId,\n\t...props\n} ) {\n\treturn (\n\t\t<div\n\t\t\tclassName={ classnames(\n\t\t\t\t'block-editor-popup-trigger-popover__popup-viewer',\n\t\t\t\tclassName,\n\t\t\t) }\n\t\t\t{ ...props }\n\t\t>\n\t\t\t<PopupView popupId={ popupId } className={ spanClassName } />\n\t\t\t{ onEditLinkClick && <IconButton\n\t\t\t\ticon=\"edit\"\n\t\t\t\tlabel={ __( 'Edit', 'popup-maker' ) }\n\t\t\t\tonClick={ onEditLinkClick }\n\t\t\t/> }\n\t\t</div>\n\t);\n}\n","/**\n * WordPress dependencies\n */\nimport { registerFormatType } from '@wordpress/rich-text';\n/**\n * Internal dependencies\n */\nimport * as trigger from './popup-trigger';\n\n[\n\ttrigger,\n].forEach( ( { name, settings } ) => registerFormatType( name, settings ) );\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { removeFormat } from '@wordpress/rich-text';\nimport { Component } from '@wordpress/element';\nimport { withSpokenMessages } from '@wordpress/components';\nimport { RichTextShortcut, RichTextToolbarButton } from '@wordpress/block-editor';\n/**\n * Internal dependencies\n */\nimport LogoIcon from '../../icons/logo';\nimport InlinePopupTriggerUI from './inline';\n\nconst title = __( 'Popup Trigger', 'popup-maker' );\n\nexport const name = `popup-maker/popup-trigger`;\nexport const settings = {\n\tname,\n\ttitle,\n\ttagName: 'span',\n\tclassName: 'popup-trigger',\n\tattributes: {\n\t\tpopupId: 'data-popup-id',\n\t\tdoDefault: 'data-do-default',\n\t},\n\tedit: withSpokenMessages( class TriggerEdit extends Component {\n\t\tconstructor() {\n\t\t\tsuper( ...arguments );\n\n\t\t\tthis.addTrigger = this.addTrigger.bind( this );\n\t\t\tthis.stopAddingTrigger = this.stopAddingTrigger.bind( this );\n\t\t\tthis.onRemoveFormat = this.onRemoveFormat.bind( this );\n\t\t\tthis.state = {\n\t\t\t\taddingTrigger: false,\n\t\t\t};\n\t\t}\n\n\t\taddTrigger() {\n\t\t\tthis.setState( { addingTrigger: true } );\n\t\t}\n\n\t\tstopAddingTrigger() {\n\t\t\tthis.setState( { addingTrigger: false } );\n\t\t}\n\n\t\tonRemoveFormat() {\n\t\t\tconst { value, onChange, speak } = this.props;\n\n\t\t\tonChange( removeFormat( value, name ) );\n\t\t\tspeak( __( 'Trigger removed.', 'popup-maker' ), 'assertive' );\n\t\t}\n\n\t\trender() {\n\t\t\tconst { isActive, activeAttributes, value, onChange } = this.props;\n\n\t\t\treturn (\n\t\t\t\t<>\n\t\t\t\t\t<RichTextShortcut\n\t\t\t\t\t\ttype=\"primary\"\n\t\t\t\t\t\tcharacter=\"[\"\n\t\t\t\t\t\tonUse={ this.addTrigger }\n\t\t\t\t\t/>\n\t\t\t\t\t<RichTextShortcut\n\t\t\t\t\t\ttype=\"primaryShift\"\n\t\t\t\t\t\tcharacter=\"[\"\n\t\t\t\t\t\tonUse={ this.onRemoveFormat }\n\t\t\t\t\t/>\n\t\t\t\t\t{ isActive && <RichTextToolbarButton\n\t\t\t\t\t\ticon={ LogoIcon }\n\t\t\t\t\t\ttitle={ __( 'Remove Trigger', 'popup-maker' ) }\n\t\t\t\t\t\tonClick={ this.onRemoveFormat }\n\t\t\t\t\t\tisActive={ isActive }\n\t\t\t\t\t\tshortcutType=\"primaryShift\"\n\t\t\t\t\t\tshortcutCharacter=\"[\"\n\t\t\t\t\t/> }\n\t\t\t\t\t{ ! isActive && <RichTextToolbarButton\n\t\t\t\t\t\ticon={ LogoIcon }\n\t\t\t\t\t\ttitle={ title }\n\t\t\t\t\t\tonClick={ this.addTrigger }\n\t\t\t\t\t\tisActive={ isActive }\n\t\t\t\t\t\tshortcutType=\"primary\"\n\t\t\t\t\t\tshortcutCharacter=\"[\"\n\t\t\t\t\t/> }\n\t\t\t\t\t<InlinePopupTriggerUI\n\t\t\t\t\t\taddingTrigger={ this.state.addingTrigger }\n\t\t\t\t\t\tstopAddingTrigger={ this.stopAddingTrigger }\n\t\t\t\t\t\tisActive={ isActive }\n\t\t\t\t\t\tactiveAttributes={ activeAttributes }\n\t\t\t\t\t\tvalue={ value }\n\t\t\t\t\t\tonChange={ onChange }\n\t\t\t\t\t/>\n\t\t\t\t</>\n\t\t\t);\n\t\t}\n\t} ),\n};\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Component, createRef, useMemo } from '@wordpress/element';\nimport { ToggleControl, withNotices, withSpokenMessages } from '@wordpress/components';\nimport { BACKSPACE, DOWN, ENTER, LEFT, RIGHT, UP } from '@wordpress/keycodes';\nimport { getRectangleFromRange } from '@wordpress/dom';\nimport { applyFormat, create, insert, isCollapsed } from '@wordpress/rich-text';\n/**\n * Internal dependencies\n */\nimport { createTriggerFormat } from './utils';\nimport TriggerPopover from '../../components/trigger-popover';\nimport PopupTriggerEditor from '../../components/trigger-popover/popup-trigger-editor';\nimport PopupTriggerViewer from '../../components/trigger-popover/popup-trigger-viewer';\n\nconst stopKeyPropagation = ( event ) => event.stopPropagation();\n\nfunction isShowingInput( props, state ) {\n\treturn props.addingTrigger || state.editTrigger;\n}\n\nconst TriggerPopoverAtText = ( { isActive, addingTrigger, value, ...props } ) => {\n\tconst anchorRect = useMemo( () => {\n\t\tconst selection = window.getSelection();\n\t\tconst range = selection.rangeCount > 0 ? selection.getRangeAt( 0 ) : null;\n\t\tif ( ! range ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( addingTrigger ) {\n\t\t\treturn getRectangleFromRange( range );\n\t\t}\n\n\t\tlet element = range.startContainer;\n\n\t\t// If the caret is right before the element, select the next element.\n\t\telement = element.nextElementSibling || element;\n\n\t\twhile ( element.nodeType !== window.Node.ELEMENT_NODE ) {\n\t\t\telement = element.parentNode;\n\t\t}\n\n\t\tconst closest = element.closest( 'span.popup-trigger' );\n\t\tif ( closest ) {\n\t\t\treturn closest.getBoundingClientRect();\n\t\t}\n\t}, [ isActive, addingTrigger, value.start, value.end ] );\n\n\tif ( ! anchorRect ) {\n\t\treturn null;\n\t}\n\n\treturn <TriggerPopover anchorRect={ anchorRect } { ...props } />;\n};\n\n/**\n * Generates a Popover with a select field to choose a popup, inline with the Rich Text editors.\n */\nclass InlinePopupTriggerUI extends Component {\n\tconstructor() {\n\t\tsuper( ...arguments );\n\n\t\tthis.editTrigger = this.editTrigger.bind( this );\n\t\tthis.setPopupID = this.setPopupID.bind( this );\n\t\tthis.setDoDefault = this.setDoDefault.bind( this );\n\t\tthis.onFocusOutside = this.onFocusOutside.bind( this );\n\t\tthis.submitTrigger = this.submitTrigger.bind( this );\n\t\tthis.resetState = this.resetState.bind( this );\n\n\t\tthis.state = {\n\t\t\tdoDefault: false,\n\t\t\tpopupId: '',\n\t\t};\n\t}\n\n\tstatic getDerivedStateFromProps( props, state ) {\n\t\tconst { activeAttributes } = props;\n\t\tconst { popupId = '' } = activeAttributes;\n\t\tlet { doDefault = false } = activeAttributes;\n\n\t\t// Convert string value to boolean for comparison.\n\t\tif ( window._.isString( doDefault ) ) {\n\t\t\tdoDefault = '1' === doDefault;\n\t\t}\n\n\t\tif ( ! isShowingInput( props, state ) ) {\n\t\t\tconst update = {};\n\t\t\tif ( popupId !== state.popupId ) {\n\t\t\t\tupdate.popupId = popupId;\n\t\t\t}\n\n\t\t\tif ( doDefault !== state.doDefault ) {\n\t\t\t\tupdate.doDefault = doDefault;\n\t\t\t}\n\t\t\treturn Object.keys( update ).length ? update : null;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tonKeyDown( event ) {\n\t\tif ( [ LEFT, DOWN, RIGHT, UP, BACKSPACE, ENTER ].indexOf( event.keyCode ) > -1 ) {\n\t\t\t// Stop the key event from propagating up to ObserveTyping.startTypingInTextField.\n\t\t\tevent.stopPropagation();\n\t\t}\n\t}\n\n\tsetPopupID( popupId ) {\n\t\tconst { noticeOperations } = this.props;\n\n\t\tnoticeOperations.removeNotice( 'missingPopupId' );\n\n\t\tif ( '' === popupId ) {\n\t\t\tnoticeOperations.createNotice( {\n\t\t\t\tid: 'missingPopupId',\n\t\t\t\tstatus: 'error',\n\t\t\t\tcontent: __( 'Choose a popup or the trigger won\\'t function.', 'popup-maker' ),\n\t\t\t} );\n\t\t}\n\n\t\tthis.setState( { popupId } );\n\t}\n\n\tsetDoDefault( doDefault ) {\n\t\tconst { activeAttributes: { popupId = 0 }, value, onChange } = this.props;\n\n\t\tthis.setState( { doDefault } );\n\n\t\t// Apply now if URL is not being edited.\n\t\tif ( ! isShowingInput( this.props, this.state ) ) {\n\t\t\tonChange( applyFormat( value, createTriggerFormat( {\n\t\t\t\tpopupId,\n\t\t\t\tdoDefault,\n\t\t\t} ) ) );\n\t\t}\n\t}\n\n\teditTrigger( event ) {\n\t\tthis.setState( { editTrigger: true } );\n\t\tevent.preventDefault();\n\t}\n\n\tsubmitTrigger( event ) {\n\t\tconst { isActive, value, onChange, speak } = this.props;\n\t\tconst { popupId, doDefault } = this.state;\n\t\tconst format = createTriggerFormat( {\n\t\t\tpopupId,\n\t\t\tdoDefault,\n\t\t} );\n\n\t\tevent.preventDefault();\n\n\t\tif ( isCollapsed( value ) && ! isActive ) {\n\t\t\tconst toInsert = applyFormat( create( { text: __( 'Open Popup', 'popup-maker' ) } ), format, 0, __( 'Open Popup', 'popup-maker' ).length );\n\t\t\tonChange( insert( value, toInsert ) );\n\t\t} else {\n\t\t\tonChange( applyFormat( value, format ) );\n\t\t}\n\n\t\tthis.resetState();\n\n\t\tif ( isActive ) {\n\t\t\tspeak( __( 'Trigger edited.', 'popup-maker' ), 'assertive' );\n\t\t} else {\n\t\t\tspeak( __( 'Trigger inserted.', 'popup-maker' ), 'assertive' );\n\t\t}\n\t}\n\n\tonFocusOutside() {\n\t\tthis.resetState();\n\t}\n\n\tresetState() {\n\t\tthis.props.stopAddingTrigger();\n\t\tthis.setState( { editTrigger: false } );\n\t}\n\n\trender() {\n\t\t/**\n\t\t * @constant {boolean} isActive True when the cursor is inside an existing trigger\n\t\t * @constant {boolean} addingTrigger True when the user has clicked the add trigger button\n\t\t * @constant {Object} activeAttributes Object containing the current attribute values for the selected text.\n\t\t * @constant {Object} value Object containing the current rich text selection object containing position & formats.\n\t\t * @constant {Object} value.activeFormats Array of registered & active WPFormat objects.\n\t\t * @constant {number} value.formats ?? Array of format history for the active text.\n\t\t * @constant {number} value.start Start offset of selected text\n\t\t * @constant {number} value.end End offset of selected text.\n\t\t * @constant {string} value.text Selected text.\n\t\t */\n\t\tconst { isActive, /* activeAttributes, */ addingTrigger, value, noticeUI } = this.props;\n\n\t\t// If the user is not adding a trigger from the toolbar or actively inside render nothing.\n\t\tif ( ! isActive && ! addingTrigger ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst { popupId, doDefault } = this.state;\n\t\tconst showInput = isShowingInput( this.props, this.state );\n\n\t\treturn (\n\t\t\t<TriggerPopoverAtText\n\t\t\t\tvalue={ value }\n\t\t\t\tisActive={ isActive }\n\t\t\t\taddingTrigger={ addingTrigger }\n\t\t\t\tonFocusOutside={ this.onFocusOutside }\n\t\t\t\tonClose={ this.resetState }\n\t\t\t\tnoticeUI={ noticeUI }\n\t\t\t\tfocusOnMount={ showInput ? 'firstElement' : false }\n\t\t\t\trenderSettings={ () => (\n\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\tlabel={ __( 'Do default browser action?', 'popup-maker' ) }\n\t\t\t\t\t\tchecked={ doDefault }\n\t\t\t\t\t\tonChange={ this.setDoDefault }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t>\n\t\t\t\t{ showInput ? (\n\t\t\t\t\t<PopupTriggerEditor\n\t\t\t\t\t\tclassName=\"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content\"\n\t\t\t\t\t\tvalue={ popupId }\n\t\t\t\t\t\tonChangeInputValue={ this.setPopupID }\n\t\t\t\t\t\tonKeyDown={ this.onKeyDown }\n\t\t\t\t\t\tonKeyPress={ stopKeyPropagation }\n\t\t\t\t\t\tonSubmit={ this.submitTrigger }\n\t\t\t\t\t/>\n\t\t\t\t) : (\n\t\t\t\t\t<PopupTriggerViewer\n\t\t\t\t\t\tclassName=\"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content\"\n\t\t\t\t\t\tonKeyPress={ stopKeyPropagation }\n\t\t\t\t\t\tpopupId={ popupId }\n\t\t\t\t\t\tonEditLinkClick={ this.editTrigger }\n\t\t\t\t\t\t// linkClassName=\"\"\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t</TriggerPopoverAtText>\n\t\t);\n\t}\n}\n\nexport default withSpokenMessages( withNotices( InlinePopupTriggerUI ) );\n","/**\n * Internal dependencies\n */\nimport { name } from './index';\n\n/**\n * Generates the format object that will be applied to the trigger text.\n *\n * @param {Object} options\n * @param {number} options.popupId The popup ID.\n * @param {boolean} options.doDefault Whether this trigger will act normally when clicked.\n *\n * @return {Object} The final format object.\n */\nexport function createTriggerFormat( { popupId = 0, doDefault = false } ) {\n\tconst doDefaultClass = doDefault ? 'pum-do-default' : '';\n\n\treturn {\n\t\ttype: name,\n\t\tattributes: {\n\t\t\tclass: `popmake-${ popupId } ${ doDefaultClass }`,\n\t\t\tpopupId: `${ popupId }`,\n\t\t\tdoDefault: doDefault ? '1' : '0',\n\t\t},\n\t};\n}\n","import { createElement } from '@wordpress/element';\n\nconst GearsIcon = createElement( 'svg',\n\t{\n\t\tviewBox: '0 0 512 512',\n\t\twidth: 20,\n\t\theight: 20,\n\t},\n\tcreateElement( 'path',\n\t\t{ d: 'M348,327.195v-35.741l-32.436-11.912c-2.825-10.911-6.615-21.215-12.216-30.687l0.325-0.042l15.438-32.153l-25.2-25.269 l-32.118,15.299l-0.031,0.045c-9.472-5.601-19.758-9.156-30.671-11.978L219.186,162h-35.739l-11.913,32.759 c-10.913,2.821-21.213,6.774-30.685,12.379l-0.048-0.248l-32.149-15.399l-25.269,25.219l15.299,32.124l0.05,0.039 c-5.605,9.471-11.159,19.764-13.98,30.675L50,291.454v35.741l34.753,11.913c2.821,10.915,7.774,21.211,13.38,30.685l0.249,0.045 l-15.147,32.147l25.343,25.274l32.188-15.298l0.065-0.046c9.474,5.597,19.782,10.826,30.695,13.652L183.447,460h35.739 l11.915-34.432c10.913-2.826,21.209-7.614,30.681-13.215l0.05-0.175l32.151,15.192l25.267-25.326l-15.299-32.182l-0.046-0.061 c5.601-9.473,8.835-19.776,11.66-30.688L348,327.195z M201.318,368.891c-32.897,0-59.566-26.662-59.566-59.565 c0-32.896,26.669-59.568,59.566-59.568c32.901,0,59.566,26.672,59.566,59.568C260.884,342.229,234.219,368.891,201.318,368.891z' } ),\n\tcreateElement( 'path',\n\t\t{ d: 'M462.238,111.24l-7.815-18.866l-20.23,1.012c-3.873-5.146-8.385-9.644-13.417-13.42l0.038-0.043l1.06-20.318l-18.859-7.822 L389.385,66.89l-0.008,0.031c-6.229-0.883-12.619-0.933-18.988-0.025L356.76,51.774l-18.867,7.815l1.055,20.32 c-5.152,3.873-9.627,8.422-13.403,13.46l-0.038-0.021l-20.317-1.045l-7.799,18.853l15.103,13.616l0.038,0.021 c-0.731,5.835-1.035,12.658-0.133,19.038l-15.208,13.662l7.812,18.87l20.414-1.086c3.868,5.144,8.472,9.613,13.495,13.385 l0.013,0.025l-1.03,20.312l20.668,7.815L374,201.703v-0.033c4,0.731,10.818,0.935,17.193,0.04l12.729,15.114l18.42-7.813 l-1.286-20.324c5.144-3.875,9.521-8.424,13.297-13.456l-0.023,0.011l20.287,1.047l7.802-18.864l-15.121-13.624l-0.033-0.019 c0.877-6.222,0.852-12.58-0.05-18.953L462.238,111.24z M392.912,165.741c-17.359,7.19-37.27-1.053-44.462-18.421 c-7.196-17.364,1.047-37.272,18.415-44.465c17.371-7.192,37.274,1.053,44.471,18.417 C418.523,138.643,410.276,158.547,392.912,165.741z' } ),\n);\n\nexport default GearsIcon;\n","import { createElement } from '@wordpress/element';\n\nconst LogoIcon = createElement( 'svg',\n\t{\n\t\tviewBox: '0 0 106 84', width: 24, height: 24, className: 'popup-trigger-button-svg',\n\t},\n\tcreateElement( 'path', {\n\t\td: 'M 74.98 0.00 L 80.18 0.00 C 86.85 0.96 93.11 3.19 97.92 8.09 C 102.82 12.91 105.07 19.19 106.00 25.89 L 106.00 29.25 C 105.01 36.93 101.84 43.76 95.96 48.90 C 85.62 57.23 75.10 65.38 64.88 73.86 C 58.14 79.85 49.63 82.94 40.76 84.00 L 36.17 84.00 C 27.56 83.00 19.39 80.03 12.89 74.16 C 5.17 67.38 1.08 57.89 0.00 47.78 L 0.00 43.19 C 1.06 33.34 4.97 24.08 12.35 17.32 C 19.55 10.62 29.39 7.33 38.98 6.07 C 50.98 4.07 63.06 2.41 74.98 0.00 Z',\n\t\tfill: '#98b729',\n\t} ),\n\tcreateElement( 'path', {\n\t\td: 'M 73.27 3.38 C 78.51 2.46 83.84 3.16 88.72 5.25 C 99.12 9.98 105.12 21.94 102.29 33.09 C 100.93 39.34 97.06 44.25 92.19 48.20 C 84.32 54.30 76.63 60.62 68.82 66.78 C 65.27 69.54 61.99 72.75 58.21 75.17 C 53.04 78.31 47.09 80.42 41.04 80.90 C 26.64 81.98 12.34 73.74 6.37 60.53 C 0.78 48.69 2.33 34.56 10.17 24.12 C 16.07 16.10 25.11 11.68 34.69 9.75 C 47.55 7.61 60.45 5.72 73.27 3.38 Z',\n\t\tfill: '#262d2b',\n\t} ),\n\tcreateElement( 'path', {\n\t\td: 'M 73.39 7.40 C 79.51 6.31 85.83 7.34 90.84 11.17 C 97.78 16.34 100.76 25.75 97.94 33.97 C 96.07 39.49 92.17 43.26 87.63 46.67 C 80.70 52.04 73.92 57.62 67.04 63.05 C 61.52 67.32 57.24 72.00 50.55 74.56 C 39.66 79.19 26.67 77.04 17.82 69.21 C 10.09 62.55 6.01 52.13 7.21 41.99 C 8.21 32.78 13.46 24.27 21.21 19.22 C 29.30 14.01 37.69 13.29 46.90 11.83 C 55.73 10.34 64.58 9.05 73.39 7.40 Z',\n\t\tfill: '#98b729',\n\t} ),\n\tcreateElement( 'path', {\n\t\td: 'M 79.33 11.15 C 80.91 11.34 82.49 11.77 84.05 12.13 C 83.96 13.78 83.90 15.42 83.83 17.07 C 85.21 18.44 86.59 19.81 87.96 21.19 C 89.56 21.12 91.16 21.05 92.76 20.97 C 93.19 22.58 93.62 24.19 94.07 25.79 C 92.62 26.56 91.18 27.34 89.74 28.11 C 89.27 30.00 88.80 31.89 88.29 33.77 C 89.17 35.11 90.05 36.46 90.93 37.80 C 89.75 38.99 88.56 40.18 87.37 41.36 C 86.03 40.50 84.69 39.65 83.36 38.79 C 81.43 39.31 79.50 39.83 77.57 40.33 C 76.86 41.76 76.14 43.18 75.44 44.61 C 73.84 44.14 72.22 43.70 70.60 43.30 C 70.70 41.70 70.79 40.09 70.89 38.49 C 69.46 37.08 68.05 35.65 66.64 34.22 C 65.07 34.33 63.50 34.41 61.94 34.52 C 61.54 32.88 61.09 31.25 60.61 29.63 C 62.04 28.92 63.45 28.20 64.87 27.48 C 65.38 25.56 65.93 23.65 66.45 21.74 C 65.57 20.37 64.69 19.01 63.80 17.65 C 64.99 16.46 66.17 15.27 67.36 14.08 C 68.70 14.97 70.04 15.86 71.38 16.75 C 73.20 16.26 75.02 15.78 76.84 15.32 C 77.62 13.91 78.39 12.46 79.33 11.15 Z',\n\t\tfill: '#262d2b',\n\t} ),\n\tcreateElement( 'path', {\n\t\td: 'M 31.46 18.53 C 35.73 17.41 39.75 17.90 44.06 18.38 C 43.69 20.25 43.38 22.13 43.00 23.99 C 46.30 25.32 49.40 26.46 52.10 28.89 C 56.07 32.21 58.00 36.65 59.46 41.49 C 61.32 41.26 63.19 41.04 65.06 40.81 C 65.30 45.35 65.55 49.64 64.02 54.02 C 62.82 57.89 60.52 60.95 58.09 64.10 C 56.66 62.88 55.24 61.65 53.81 60.43 C 50.80 62.88 47.90 65.17 44.07 66.21 C 39.50 67.65 35.11 67.00 30.55 65.99 C 29.84 67.72 29.12 69.46 28.40 71.19 C 24.48 69.34 20.78 67.44 17.87 64.12 C 14.90 61.08 13.34 57.40 11.80 53.51 C 13.55 52.89 15.31 52.27 17.06 51.65 C 16.43 47.16 15.95 42.88 17.48 38.49 C 18.70 34.52 21.22 31.56 23.95 28.54 C 22.80 27.05 21.69 25.54 20.55 24.05 C 23.99 21.67 27.30 19.46 31.46 18.53 Z',\n\t\tfill: '#262d2b',\n\t} ),\n\tcreateElement( 'path', {\n\t\td: 'M 76.34 24.32 C 79.21 23.52 81.89 26.79 80.48 29.46 C 79.35 31.71 76.40 32.21 74.62 30.38 C 72.72 28.34 73.67 25.06 76.34 24.32 Z',\n\t\tfill: '#98b729',\n\t} ),\n\tcreateElement( 'path', {\n\t\td: 'M 33.46 26.53 C 40.08 24.87 47.25 27.17 51.85 32.16 C 57.28 37.94 58.59 46.87 54.94 53.94 C 51.18 61.61 42.36 65.97 33.97 64.14 C 25.47 62.43 18.97 54.70 18.77 46.02 C 18.32 36.96 24.64 28.60 33.46 26.53 Z',\n\t\tfill: '#98b729',\n\t} ),\n);\n\nexport default LogoIcon;\n","/*******************************************************************************\n * Copyright (c) 2020, Code Atlantic LLC.\n ******************************************************************************/\n\nimport './formats';\nimport './block-extensions';","(function() { module.exports = window[\"wp\"][\"blockEditor\"]; }());","(function() { module.exports = window[\"wp\"][\"components\"]; }());","(function() { module.exports = window[\"wp\"][\"compose\"]; }());","(function() { module.exports = window[\"wp\"][\"dom\"]; }());","(function() { module.exports = window[\"wp\"][\"element\"]; }());","(function() { module.exports = window[\"wp\"][\"hooks\"]; }());","(function() { module.exports = window[\"wp\"][\"i18n\"]; }());","(function() { module.exports = window[\"wp\"][\"keycodes\"]; }());","(function() { module.exports = window[\"wp\"][\"richText\"]; }());"],"sourceRoot":""}
|
includes/modules/admin-bar.php
CHANGED
@@ -96,7 +96,7 @@ class PUM_Modules_Admin_Bar {
|
|
96 |
// Single Popup Menu Node
|
97 |
$wp_admin_bar->add_node( array(
|
98 |
'id' => $node_id,
|
99 |
-
'title' => $popup->post_title,
|
100 |
'href' => $edit_url,
|
101 |
'parent' => 'popups',
|
102 |
) );
|
96 |
// Single Popup Menu Node
|
97 |
$wp_admin_bar->add_node( array(
|
98 |
'id' => $node_id,
|
99 |
+
'title' => esc_html( $popup->post_title ),
|
100 |
'href' => $edit_url,
|
101 |
'parent' => 'popups',
|
102 |
) );
|
languages/popup-maker.pot
CHANGED
@@ -27,11 +27,11 @@ msgstr ""
|
|
27 |
msgid "Translate"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: classes/Analytics.php:
|
31 |
msgid "Event Type"
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: classes/Analytics.php:
|
35 |
msgid "Popup ID"
|
36 |
msgstr ""
|
37 |
|
27 |
msgid "Translate"
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: classes/Analytics.php:177
|
31 |
msgid "Event Type"
|
32 |
msgstr ""
|
33 |
|
34 |
+
#: classes/Analytics.php:182, classes/Shortcode/Subscribe.php:410, includes/integrations/ninja-forms/Actions/OpenPopup.php:42
|
35 |
msgid "Popup ID"
|
36 |
msgstr ""
|
37 |
|
popup-maker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Popup Maker
|
4 |
* Plugin URI: https://wppopupmaker.com/?utm_campaign=plugin-info&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 |
-
* Version: 1.16.
|
7 |
* Author: Popup Maker
|
8 |
* Author URI: https://wppopupmaker.com/?utm_campaign=plugin-info&utm_source=plugin-header&utm_medium=author-uri
|
9 |
* License: GPL2 or later
|
@@ -11,7 +11,7 @@
|
|
11 |
* Text Domain: popup-maker
|
12 |
* Domain Path: /languages/
|
13 |
*
|
14 |
-
* @package
|
15 |
* @author Daniel Iser
|
16 |
* @copyright Copyright (c) 2021, Code Atlantic LLC
|
17 |
*/
|
3 |
* Plugin Name: Popup Maker
|
4 |
* Plugin URI: https://wppopupmaker.com/?utm_campaign=plugin-info&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 |
+
* Version: 1.16.3
|
7 |
* Author: Popup Maker
|
8 |
* Author URI: https://wppopupmaker.com/?utm_campaign=plugin-info&utm_source=plugin-header&utm_medium=author-uri
|
9 |
* License: GPL2 or later
|
11 |
* Text Domain: popup-maker
|
12 |
* Domain Path: /languages/
|
13 |
*
|
14 |
+
* @package PopupMaker
|
15 |
* @author Daniel Iser
|
16 |
* @copyright Copyright (c) 2021, Code Atlantic LLC
|
17 |
*/
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Tags: marketing, ecommerce, popup, popups, optin, conversion, promotion, pop-up
|
|
7 |
Requires at least: 4.9
|
8 |
Tested up to: 5.8
|
9 |
Requires PHP: 5.6
|
10 |
-
Stable tag: 1.16.
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -181,6 +181,11 @@ There are several common causes for this, check [this guide for help](https://do
|
|
181 |
|
182 |
View our [complete changelog](https://github.com/PopupMaker/Popup-Maker/blob/master/CHANGELOG.md) for up-to-date information on what has been going on with the development of Popup Maker.
|
183 |
|
|
|
|
|
|
|
|
|
|
|
184 |
= v1.16.2 - 07/07/2021 =
|
185 |
* Improvement: All plugin images optimized for size. This only affects our admin pages.
|
186 |
* Improvement: Various label & text changes.
|
@@ -210,30 +215,3 @@ View our [complete changelog](https://github.com/PopupMaker/Popup-Maker/blob/mas
|
|
210 |
* Fix: pum-admin-bar Script Fails to Load [Issue $907](https://github.com/PopupMaker/Popup-Maker/issues/907) Thanks @fluxism!
|
211 |
* Fix: JS error: Uncaught TypeError: Cannot set property 'popups' of undefined [Issue $635](https://github.com/PopupMaker/Popup-Maker/issues/635)
|
212 |
* Fix: Undefined SCSS variable causing errors in building block components
|
213 |
-
|
214 |
-
= v1.14.0 - 12/16/2020 =
|
215 |
-
* Improvement: Add a link to popups to admin bar [Issue #892](https://github.com/PopupMaker/Popup-Maker/issues/892)
|
216 |
-
* Improvement: Add a link to create a new popup to admin bar [Issue #892](https://github.com/PopupMaker/Popup-Maker/issues/892)
|
217 |
-
* Improvement: Add new welcome screen upon first activation [Issue #900](https://github.com/PopupMaker/Popup-Maker/issues/900)
|
218 |
-
* Improvement: Create example popup upon install [Issue #857](https://github.com/PopupMaker/Popup-Maker/issues/857)
|
219 |
-
* Improvement: Ensure subscribers table gets deleted if doing full deletion [Issue #895](https://github.com/PopupMaker/Popup-Maker/issues/895)
|
220 |
-
* Improvement: Add logging for DB table management and creation [Issue #879](https://github.com/PopupMaker/Popup-Maker/issues/879)
|
221 |
-
* Improvement: Set up continous integration for unit and integration tests [Issue #640](https://github.com/PopupMaker/Popup-Maker/issues/640)
|
222 |
-
* Improvement: Add filter to exclude blocks with isAllowedForBlockType [Issue #835](https://github.com/PopupMaker/Popup-Maker/issues/835)
|
223 |
-
* Fix: Backtick in settings page [Issue #904](https://github.com/PopupMaker/Popup-Maker/issues/904)
|
224 |
-
|
225 |
-
= v1.13.1 - 11/4/2020 =
|
226 |
-
* Fix: PHP error notice appears when submitting Gravity Forms without AJAX
|
227 |
-
|
228 |
-
= v1.13.0 - 10/30/2020 =
|
229 |
-
* Feature: Conversion tracking [Issue #775](https://github.com/PopupMaker/Popup-Maker/issues/775)
|
230 |
-
* Feature: Bypass adblockers for tracking opens and conversions [Issue #783](https://github.com/PopupMaker/Popup-Maker/issues/783)
|
231 |
-
* Feature: Periodical suggestions to improve plugin usage [Issue #834](https://github.com/PopupMaker/Popup-Maker/issues/834)
|
232 |
-
* Improvement: Reduce clutter in All Popups table [Issue #878](https://github.com/PopupMaker/Popup-Maker/issues/878)
|
233 |
-
* Improvement: Switch tab navigation to NAV elements instead of H2 [Issue #818](https://github.com/PopupMaker/Popup-Maker/issues/818)
|
234 |
-
* Improvement: Set up PHPUnit for integration and unit tests [Issue #563](https://github.com/PopupMaker/Popup-Maker/issues/563)
|
235 |
-
* Improvement: Continuously deploy readme and screenshot changes [Issue #827](https://github.com/PopupMaker/Popup-Maker/issues/827)
|
236 |
-
* Fix: AJAX for Gravity Forms not setting cookies [Issue #706](https://github.com/PopupMaker/Popup-Maker/issues/706)
|
237 |
-
* Fix: Disabling asset cache causes form integrations not to load their assets [Issue #755](https://github.com/PopupMaker/Popup-Maker/issues/755)
|
238 |
-
* Fix: Form submission cookies are not being set for some form integrations [Issue #886](https://github.com/PopupMaker/Popup-Maker/issues/886)
|
239 |
-
* Fix: Some form integrations are calling both AJAX and PHP submission handlers [Issue #887](https://github.com/PopupMaker/Popup-Maker/issues/887)
|
7 |
Requires at least: 4.9
|
8 |
Tested up to: 5.8
|
9 |
Requires PHP: 5.6
|
10 |
+
Stable tag: 1.16.3
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
181 |
|
182 |
View our [complete changelog](https://github.com/PopupMaker/Popup-Maker/blob/master/CHANGELOG.md) for up-to-date information on what has been going on with the development of Popup Maker.
|
183 |
|
184 |
+
= v1.16.3 - 11/16/2021 =
|
185 |
+
* Improvement: Code cleanup/simplifications, and more inline documentation.
|
186 |
+
* Improvement: Added enhancements in the analytics systems for upcoming extension updates.
|
187 |
+
* Fix: Issue with width of some popup editor select fields.
|
188 |
+
|
189 |
= v1.16.2 - 07/07/2021 =
|
190 |
* Improvement: All plugin images optimized for size. This only affects our admin pages.
|
191 |
* Improvement: Various label & text changes.
|
215 |
* Fix: pum-admin-bar Script Fails to Load [Issue $907](https://github.com/PopupMaker/Popup-Maker/issues/907) Thanks @fluxism!
|
216 |
* Fix: JS error: Uncaught TypeError: Cannot set property 'popups' of undefined [Issue $635](https://github.com/PopupMaker/Popup-Maker/issues/635)
|
217 |
* Fix: Undefined SCSS variable causing errors in building block components
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|