jQuery(document).ready(function(t){!function(){var e=t(".tablenav.top");if(e.length){var n=window.metform_entry_i18n||{};e.find("#bulk-action-selector-top").length||e.prepend('<div class="alignleft actions bulkactions"><select name="action" id="bulk-action-selector-top"><option value="-1">'+(n.bulk_actions||"Bulk actions")+'</option><option value="trash">'+(n.move_to_trash||"Move to Trash")+'</option></select><input type="submit" id="doaction" class="button action" value="'+(n.apply||"Apply")+'"></div>');var i=t("#metform-formlist");if(i.length&&!e.find("#metform-form_id").length){var a=t('<div class="alignleft actions"></div>').append(i.html()).append('<input type="submit" id="post-query-submit" class="button" value="'+(n.filter||"Filter")+'">');e.find(".bulkactions").after(a),i.remove()}if(!t("#post-search-input").length&&!e.find(".mf-entries-search-box").length){var o=t('<div class="mf-tablenav-right"></div>'),r=t('<div class="mf-entries-search-box"><div class="mf-search-input-wrapper"><span class="mf-search-icon"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.6387 11.6387L14.7498 14.7498" stroke="#9D9EA1" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M13.1944 6.97222C13.1944 3.53578 10.4087 0.75 6.97222 0.75C3.53578 0.75 0.75 3.53578 0.75 6.97222C0.75 10.4087 3.53578 13.1944 6.97222 13.1944C10.4087 13.1944 13.1944 10.4087 13.1944 6.97222Z" stroke="#9D9EA1" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></span><input type="search" id="post-search-input" name="s" value=""></div><input type="submit" id="search-submit" class="button" value="'+(n.search_item||"Search Item")+'"></div>');o.append(r),e.append(o)}}}();var e=t("#metform-formlist");e.length&&t("#post-query-submit").length&&(t("#post-query-submit").before(e.html()),e.remove());let n=new URL(window.location.href).searchParams.get("mf_form_id");n&&t("#metform-form_id").length&&t("#metform-form_id").val(n),t(".row-actions .edit a, .page-title-action").html("View"),t(".mf-entry-pro.mf-svg-container").on("click",function(t){window.open("https://wpmet.com/plugin/metform/pricing/","_blank")});var i=t(".search-box"),a=t(".tablenav.top"),o=0,r=setInterval(function(){o++,(function(){if(i=t(".search-box"),a=t(".tablenav.top"),!i.length||!a.length)return!1;var e=t(".mf-entries-search-box");if(e.length)return(o=a.find(".mf-tablenav-right")).length||(o=t('<div class="mf-tablenav-right"></div>'),a.append(o)),o.append(e),!0;i.removeClass("search-box").addClass("mf-entries-search-box");var n=t("#post-search-input");n.length&&!n.parent().hasClass("mf-search-input-wrapper")&&(n.wrap('<div class="mf-search-input-wrapper"></div>'),n.siblings(".mf-search-icon").length||n.before('<span class="mf-search-icon"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.6387 11.6387L14.7498 14.7498" stroke="#9D9EA1" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M13.1944 6.97222C13.1944 3.53578 10.4087 0.75 6.97222 0.75C3.53578 0.75 0.75 3.53578 0.75 6.97222C0.75 10.4087 3.53578 13.1944 6.97222 13.1944C10.4087 13.1944 13.1944 10.4087 13.1944 6.97222Z" stroke="#9D9EA1" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></span>'));var o=t('<div class="mf-tablenav-right"></div>');return a.append(o),o.append(i),!0}()||o>=5)&&clearInterval(r)},60);t(".mf-entry-pro.mf-svg-container").not(".mf-feature-disabled").on("click",function(t){window.open("https://wpmet.com/plugin/metform/pricing/","_blank")})});