Your IP : 3.12.76.164


Current Path : /proc/self/root/home/sudancam/public_html/wp-content/plugins/wpforms-lite/assets/lite/js/admin/education/
Upload File :
Current File : //proc/self/root/home/sudancam/public_html/wp-content/plugins/wpforms-lite/assets/lite/js/admin/education/core.min.js

var WPFormsEducation=window.WPFormsEducation||{};WPFormsEducation.liteCore=window.WPFormsEducation.liteCore||function(e,l,c){const a={init(){c(a.ready)},ready(){a.events()},events(){a.openModalButtonClick()},openModalButtonClick(){c(e).on("click",".education-modal:not(.wpforms-add-fields-button)",a.openModalButtonHandler).on("mousedown",".education-modal.wpforms-add-fields-button",a.openModalButtonHandler)},openModalButtonHandler(o){var t=c(this);if(!t.data("action")||!["activate","install"].includes(t.data("action"))){o.preventDefault(),o.stopImmediatePropagation();let e=t.data("name");t.hasClass("wpforms-add-fields-button")&&(e=t.text(),e+=e.indexOf(wpforms_builder.field)<0?" "+wpforms_builder.field:"");o=WPFormsEducation.core.getUTMContentValue(t);a.upgradeModal(e,o,t.data("license"),t.data("video"),t.data("plural"))}},upgradeModal(o,t,a,n,d){if(void 0!==a&&0!==a.length||(a="pro"),!(c.inArray(a,["pro","elite"])<0)){var i=wpforms_education.upgrade[a].message.replace(/%name%/g,o);const r=!_.isEmpty(n);d=d?wpforms_education.upgrade[a].title_plural:wpforms_education.upgrade[a].title;let e=WPFormsEducation.core.getUpgradeModalWidth(r);const s=c.alert({backgroundDismiss:!0,title:o+" "+d,icon:"fa fa-lock",content:i,boxWidth:e,theme:"modern,wpforms-education",closeIcon:!0,onOpenBefore(){r&&this.$el.addClass("has-video");var e=r?'<iframe src="'+n+'" 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[a].doc.replace(/%25name%25/g,o)),this.$btnc.after(e),this.$body.find(".jconfirm-content").addClass("lite-upgrade")},buttons:{confirm:{text:wpforms_education.upgrade[a].button,btnClass:"btn-confirm",keys:["enter"],action:()=>{l.open(WPFormsEducation.core.getUpgradeURL(t,a),"_blank"),WPFormsEducation.core.upgradeModalThankYou(a)}}}});c(l).on("resize",function(){e=WPFormsEducation.core.getUpgradeModalWidth(r),s.isOpen()&&s.setBoxWidth(e)})}}};return a}(document,window,jQuery),WPFormsEducation.liteCore.init();