index of
/
home
/
thefkyzp
/
public_html
/
wp-content
/
plugins
/
forminator
/
requirejs
/
admin
/
File: /home/thefkyzp/public_html/wp-content/plugins/forminator/requirejs/admin/layout.js
function copyToClipboard(t){var e=jQuery("<input />");jQuery("body").append(e),e.val(t).select(),document.execCommand("copy"),e.remove()}function copyToClipboardModal(t){t.trigger("select"),document.execCommand("copy")}!function(t,e){"use strict";!function(){t(function(){if("object"==typeof window.Forminator&&"object"==typeof window.Forminator.Utils&&Forminator.Utils.sui_delegate_events(),t(".forminator-toggle-entries-filter").on("click",function(e){return t(this).toggleClass("sui-active"),t(this).closest(".sui-box-body").find(".sui-pagination-filter").toggleClass("sui-open"),!1}),void 0!==t.fn.daterangepicker){var e={},i=t("input.forminator-entries-filter-date");void 0!==window.forminator_entries_datepicker_ranges&&(e=window.forminator_entries_datepicker_ranges);var n={autoUpdateInput:!1,autoApply:!0,alwaysShowCalendars:!0,ranges:e,locale:forminatorl10n.daterangepicker};i.daterangepicker(n),i.on("apply.daterangepicker",function(e,i){t(this).val(i.startDate.format("YYYY-MM-DD")+" - "+i.endDate.format("YYYY-MM-DD"))})}if(t("form.forminator-entries-actions").on("submit",function(){return""===t(this).find("select[name=entries-action]").val()&&""===t(this).find("select[name=entries-action-bottom]").val()?t(this).find("fieldset.forminator-entries-nonce").attr("disabled","disabled"):t(this).find("fieldset.forminator-entries-nonce").removeAttr("disabled"),!0}),t(".forminator-entries-clear-filter").on("click",function(){return t(this).closest(".sui-pagination-filter").find("input[name=date_range]").val("").trigger("change"),t(this).closest(".sui-pagination-filter").find("input[name=search]").val("").trigger("change"),t(this).closest(".sui-pagination-filter").find("input[name=min_id]").val("").trigger("change"),t(this).closest(".sui-pagination-filter").find("input[name=max_id]").val("").trigger("change"),t(this).closest(".sui-pagination-filter").find("select[name=order_by] option").removeAttr("selected"),t(this).closest(".sui-pagination-filter").find("select[name=order_by]").val("").trigger("change"),t(this).closest(".sui-pagination-filter").find("select[name=order] option").removeAttr("selected"),t(this).closest(".sui-pagination-filter").find("select[name=order]").val("").trigger("change"),t(this).closest(".sui-pagination-filter").find("select[name=entry_status] option").removeAttr("selected"),t(this).closest(".sui-pagination-filter").find("select[name=entry_status]").val("").trigger("change"),t(this).closest(".sui-pagination-filter").find(".forminator-field-select-tab .sui-tabs-menu label[data-tab-index=1]").trigger("click"),t(this).closest(".sui-pagination-filter").find("fieldset.forminator-entries-fields-filter").attr("disabled","disabled"),!1}),t(".forminator-field-select-tab .sui-tabs-menu label").on("click",function(){var e=t(this).data("tab-index");e=+e,t(this).closest(".sui-side-tabs").find(".sui-tabs-menu label").removeClass("active"),t(this).addClass("active"),t(this).closest(".sui-side-tabs").find(".sui-tabs-content .sui-tab-content").removeClass("active"),t(this).closest(".sui-side-tabs").find(".sui-tabs-content .sui-tab-content[data-tab-index="+e+"]").addClass("active"),1===e?t(this).closest(".sui-side-tabs").find("fieldset.forminator-entries-fields-filter").attr("disabled","disabled"):t(this).closest(".sui-side-tabs").find("fieldset.forminator-entries-fields-filter").removeAttr("disabled")}),t("#wpf-cform-check_all").on("click",function(e){var i=this.checked,n=t(this).closest("table");t(n).find(".sui-checkbox input").each(function(){this.checked=i})}),t(document).on("click",".resend-activation-btn",function(e){e.preventDefault();const i=t(e.currentTarget);i.prop("disabled",!0),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_resend_activation_link",key:i.data("activation-key"),_ajax_nonce:i.data("nonce")},success:function(t){var e="success";t.success||(e="error"),Forminator.Notification.open(e,t.data,4e3)}}).always(function(){i.prop("disabled",!1)})}),t(document).on("click",".forminator-resend-notification-email",function(e){e.preventDefault();const i=t(e.currentTarget);i.prop("disabled",!0),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_resend_notification_email",entry_id:i.data("entry-id"),_ajax_nonce:i.data("nonce")},success:function(t){var e="success";t.success||(e="error"),Forminator.Notification.open(e,t.data,4e3)}}).always(function(){i.prop("disabled",!1)})}),t("#forminator-check-all-modules").on("click",function(){var e=this.checked;if(t("#forminator-modules-list").length&&(t("#forminator-modules-list").find('.sui-checkbox input[id|="wpf-module"]').each(function(){this.checked=e}),t('form[name="bulk-action-form"] input[name="ids"]').length)){var i=t("#forminator-modules-list").find('.sui-checkbox input[id|="wpf-module"]:checked').map(function(){if(parseFloat(this.value))return this.value}).get().join(",");t('form[name="bulk-action-form"] input[name="ids"]').val(i)}}),0!==t('form[name="bulk-action-form"]').length&&t(document).on("click",".sui-checkbox input",function(){if(t('form[name="bulk-action-form"] input[name="ids"]').length){var e=t(".sui-checkbox input:checked").map(function(){if(parseFloat(this.value))return this.value}).get().join(",");t('form[name="bulk-action-form"] input[name="ids"]').val(e)}"forminator-check-all-modules"!==t(this).attr("id")&&t("#forminator-check-all-modules").prop("checked",!1)}),t(function(){t(".wpmudev-can--hide").find(".wpmudev-box-header").on("click",function(){t(this).closest(".wpmudev-can--hide").toggleClass("wpmudev-is--hidden")})}),t(document).on("click",".wpmudev-open-entry",function(e){if("checkbox"!==t(e.target).attr("type")&&!t(e.target).hasClass("wpdui-icon-check")){e.preventDefault(),e.stopPropagation();var i=t(this),n=i.data("entry"),a=t("#forminator-"+n),o=!0;a.hasClass("wpmudev-is_open")&&(o=!1),t(".wpmudev-entries--result").removeClass("wpmudev-is_open"),o&&a.toggleClass("wpmudev-is_open")}}),t(function(){t(".wpmudev-result--menu").find(".wpmudev-button-action").on("click",function(){var e=t(this).next(".wpmudev-menu");t(".wpmudev-result--menu.wpmudev-active").removeClass("wpmudev-active"),t(".wpmudev-button-action.wpmudev-active").not(t(this)).removeClass("wpmudev-active"),t(".wpmudev-menu").not(e).addClass("wpmudev-hidden"),t(this).toggleClass("wpmudev-active"),e.toggleClass("wpmudev-hidden")})}),t(function(){var e=t(".wpmudev-list"),i=e.find(".wpmudev-list-table"),n=i.find(".wpmudev-table-body tr"),a=n.length,o=a;n.each(function(){t(this).find(".wpmudev-body-menu").css("z-index",o),o--})}),t(function(){t("body").on("change",".sui-insert-variables select",function(e){var i=t(e.target),n=i.data("textarea-id");if(n){if(e.preventDefault(),t("#"+n).length>0){var a=t("input#"+n+",textarea#"+n),o=a.val();a.val(o+" "+i.val()),a.trigger("change",a.val())}return!1}}),t(document).on("click",".copy-clipboard",function(e){e.preventDefault(),copyToClipboard(t(this).data("shortcode")),Forminator.Notification.open("success",Forminator.l10n.options.shortcode_copied,4e3)}),t("body").on("click",".delete-poll-submission",function(e){var i=t(e.target),n={action:"forminator_delete_poll_submissions",id:i.data("id"),_ajax_nonce:i.data("nonce")};i.addClass("sui-button-onload"),t.post({url:Forminator.Data.ajaxUrl,type:"post",data:n}).done(function(t){t.success&&jQuery(".sui-poll-submission").addClass("sui-message").html("").html(t.data.html),Forminator.Popup.close(),_.isUndefined(t.data.notification)||_.isUndefined(t.data.notification.type)||_.isUndefined(t.data.notification.text)||_.isUndefined(t.data.notification.duration)||Forminator.Notification.open(t.data.notification.type,t.data.notification.text,t.data.notification.duration).done(function(){})})}),t(".forminator-grouped-notice .notice-dismiss").on("click",function(e){e.preventDefault();const i=t(e.currentTarget).closest(".forminator-grouped-notice");jQuery.post(ajaxurl,{action:"forminator_dismiss_notice",slug:i.data("notice-slug"),_ajax_nonce:i.data("nonce")}).always(function(){i.hide()})})}),0!==t("#forminator-search-modules").length){var a=t("#forminator-search-modules"),o=a.find('input[name="page"]').val(),r=forminatorData.adminUrl+"admin.php?page="+o,s=a.find('input[name="search"]'),c=s.val(),d=t("#forminator-modules-list"),l=t("#search_loader");a.on("submit",function(e){if(e.preventDefault(),s=t(this).find('input[name="search"]'),c=s.val(),0===c.length)return void("true"===t(this).data("searched")&&(window.location.href=r));t(this).data("searched","true"),t.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_module_search",_ajax_nonce:t(this).find("#forminator-nonce-search-module").val(),search_keyword:c,modules:t(this).find('input[name="modules"]').val(),module_slug:t(this).find('input[name="module_slug"]').val(),preview_title:t(this).find('input[name="preview_title"]').val(),sql_month_start_date:t(this).find('input[name="sql_month_start_date"]').val(),wizard_page:t(this).find('input[name="wizard_page"]').val(),preview_dialog:t(this).find('input[name="preview_dialog"]').val(),export_dialog:t(this).find('input[name="export_dialog"]').val(),post_type:t(this).find('input[name="post_type"]').val(),page:o},beforeSend:function(){d.empty(),l.show(),s.prop("disabled",!0),t(".sui-pagination").remove(),t(".sui-pagination-results").html(""),t("#forminator-search-modules .search-reset").hide()},success:function(e){l.hide(),d.html(e.data),t("html").animate({scrollTop:d.offset().top-150},300),t('form[name="bulk-action-form"]').find('input[name="msearch"]').val(c),d.find('.module-actions input[name="msearch"]').val(c),s.prop("disabled",!1),t(".sui-pagination-results").html(window.singularPluralText(d.find(".sui-accordion-item").length,Forminator.l10n.form.result,Forminator.l10n.form.results)),t("#forminator-search-modules .search-reset").show()}})}),0!==s.length&&0!==c.length&&a.submit(),t(document).on("click","#forminator-search-modules .search-reset",function(t){t.preventDefault(),window.location.href=r})}t(document).on("click",".sui-box-search .sui-button",function(e){"apply-preset-forms"===t('select[name="forminator_action"]').val()&&(e.preventDefault(),t("#forminator_bulk_apply_preset").trigger("click"))})}),t(window).on("load",function(){"object"==typeof window.Forminator&&"object"==typeof window.Forminator.Utils&&"forminator-entries"===Forminator.Utils.get_url_param("page")&&!1===Forminator.Utils.get_url_param("form_type")&&!1===Forminator.Utils.get_url_param("form_id")&&t(".show-submissions").trigger("click")}),t(window).on("pageshow",function(t){(t.persisted||void 0!==window.performance&&"back_forward"===window.performance.getEntriesByType("navigation")[0].type)&&window.location.reload()})}()}(jQuery,document);var forminator_render_captcha=function(){jQuery(".forminator-g-recaptcha").each(function(){var t=jQuery(this).data("size"),e={sitekey:jQuery(this).data("sitekey"),theme:jQuery(this).data("theme"),badge:jQuery(this).data("badge"),size:t};if(""!==e.sitekey){window.grecaptcha.render(jQuery(this)[0],e)}})};