File: /home/lucendi/www/wp-content/plugins/wpforms-lite/assets/lite/js/admin/education/core.min.js
var WPFormsEducation=window.WPFormsEducation||{};WPFormsEducation.liteCore=window.WPFormsEducation.liteCore||((e,c,m)=>{let p={init(){m(p.ready)},ready(){p.events()},events(){p.openModalButtonClick()},openModalButtonClick(){m(e).on("click",".education-modal:not(.wpforms-add-fields-button)",p.openModalButtonHandler).on("mousedown",".education-modal.wpforms-add-fields-button",p.openModalButtonHandler)},openModalButtonHandler(t){var o=m(this);if(!o.data("action")||!["activate","install"].includes(o.data("action"))){t.preventDefault(),t.stopImmediatePropagation();let e=o.data("name");o.hasClass("wpforms-add-fields-button")&&(e=o.text(),e+=e.indexOf(wpforms_builder.field)<0?" "+wpforms_builder.field:"");t=WPFormsEducation.core.getUTMContentValue(o);p.upgradeModal(e,t,o.data("license"),o.data("video"),o.data("plural"),o.data("demo-url"),o.data("utm-medium"))}},getUpgradeModalButtons(e,t,o,a){var d={confirm:{text:wpforms_education.upgrade[t].button,btnClass:"btn-confirm",keys:["enter"],action:()=>{c.open(WPFormsEducation.core.getUpgradeURL(e,t,a),"_blank"),WPFormsEducation.core.upgradeModalThankYou(t)}}};return o&&(d.demo={text:wpforms_education.view_demo,btnClass:"wpforms-btn-light-grey",action:()=>{c.open(o,"_blank")}}),d},upgradeModal(a,d,n,i,r,s,l){if(void 0!==n&&0!==n.length||(n="pro"),!(m.inArray(n,["pro","elite"])<0)){var u=wpforms_education.upgrade[n].message.replace(/%name%/g,a);let t=Boolean(i);r=r?wpforms_education.upgrade[n].title_plural:wpforms_education.upgrade[n].title;let e=WPFormsEducation.core.getUpgradeModalWidth(t),o=m.alert({backgroundDismiss:!0,title:a+" "+r,icon:"fa fa-lock",content:u,boxWidth:e,theme:"modern,wpforms-education",closeIcon:!0,onOpenBefore(){t&&this.$el.addClass("has-video");var e=t?'<iframe src="'+i+'" class="feature-video" allowfullscreen="" width="475" height="267"></iframe>':"";this.$btnc.after('<div class="discount-note">'+wpforms_education.upgrade_bonus+"</div>"),this.$btnc.after(wpforms_education.upgrade[n].doc.replace(/%25name%25/g,a)),this.$btnc.after(e),this.$body.find(".jconfirm-content").addClass("lite-upgrade")},buttons:p.getUpgradeModalButtons(d,n,s,l)});m(c).on("resize",function(){e=WPFormsEducation.core.getUpgradeModalWidth(t),o.isOpen()&&o.setBoxWidth(e)})}}};return p})(document,window,jQuery),WPFormsEducation.liteCore.init();