PageSourceSearch

https://moneyandmesolicitors.co.uk/wp-content/plugins/gs-team-members/assets/js/gs-team.min.js?ver=2.8.1

js moneyandmesolicitors.co.uk collected 2026-10-09 21:51:41 UTC 27,215 bytes, 1 lines download raw bytes

1jQuery((function(e){"use strict";var t=e("html").attr("dir")=="rtl";var a=false;var s;function i(){function t(t,a){this.$widget=t;this.config=e.extend({},{ellipsis:false},a);this.$wrapper=this.$widget.closest(".gs_team_area");this.init();return this}t.prototype.init=function(){var t=this.$wrapper.find(".search-filter select");var a=this;if(!t.length)return;t.each((function(){a.build_multi_select(e(this))}));e("body").on("change",".gs-multi-select--wrapper input[type=checkbox]",(function(t){a.update_value(e(t.target).closest(".gs-multi-select--wrapper"),e(t.target))}));e("body").on("click",".gs-mu-select--has-value .gs-multi-select--arrow",(function(t){t.stopPropagation();e(t.target).closest(".gs-multi-select--wrapper").removeClass("gs-select--open").find("input[type=checkbox]").prop("checked",false).first().prop("checked",true).trigger("change")}))};t.prototype.build_multi_select=function(t){t.prop("multiple",true);var a=t.find("option").map((function(){return`<div class="gs-multi-select--single">\n\t\t\t\t\t<label>\n\t\t\t\t\t\t<input style="display: none !important;" type="checkbox" data-text="${e(this).text()}" value="${e(this).val()}" ${e(this).is(":checked")?"checked":""} />\n\t\t\t\t\t\t<span class="gs-select--indicator"></span>\n\t\t\t\t\t\t<span class="gs-select--text">${e(this).text()}</span>\n\t\t\t\t\t</label>\n\t\t\t\t</div>`})).toArray().join("");var s='<div class="gs-multi-select--options">'+a+"</div>";var i=`<div class="gs-multi-select--bar"><span class="gs-multi-select--value ${this.config.ellipsis?"gs-text-ellipsis":""}">${t.find("option:selected").text()}</span><span class="gs-multi-select--arrow"></span></div>`;var n='<div class="gs-multi-select--wrapper">'+i+s+"</div>";t.hide().after(e(n))};t.prototype.update_value=function(t,a){var s=t.find("input[type=checkbox]");var i=s.filter('[value="*"]');var n=s.filter(":checked");var r=t.siblings("select");var l=[];var o=[];var c="";if(a.val()=="*"&&a.is(":checked")){s.not(a).prop("checked",false);t.removeClass("gs-mu-select--has-value")}if(i.length&&a.val()!="*"&&a.is(":checked")){i.prop("checked",false);t.addClass("gs-mu-select--has-value")}if(i.length&&!n.length){i.prop("checked",true);t.removeClass("gs-mu-select--has-value")}n=n=s.filter(":checked");n.each((function(){l.push(e(this).val());o.push(e(this).data("text"))}));r.children().each((function(){e(this).prop("selected",l.indexOf(e(this).val())>-1)})).end().trigger("change");if(o&&o.length){if(this.config.ellipsis){c=o.join(", ")}else{c=o[0];if(o.length>1)c=c+" (+"+(o.length-1)+")"}}t.find(".gs-multi-select--bar .gs-multi-select--value").text(c)};e.fn.gs_multi_select=function(a){return new t(e(this).first(),a)};e("body").on("click",(function(){e(".gs-multi-select--wrapper").removeClass("gs-select--open")}));e("body").on("click",".gs-multi-select--wrapper",(function(e){e.stopPropagation()}));e("body").on("click",".gs-multi-select--wrapper .gs-multi-select--bar",(function(){var t=e(this).parent();e(".gs-multi-select--wrapper").not(t).removeClass("gs-select--open");t.toggleClass("gs-select--open")}))}function n(){function a(t){this.$widget=t;this.$wrapper=this.$widget.closest(".gs_team_area");this.wrapperOptions=e.extend({},{search_through_all_fields:"off"},this.$wrapper.data("options"));this.filters={};const a=e(".search-filter").hasClass("search-filter-ajax");if(a){this.setFilterEventsAjax()}else{this.initIsotope();this.setFilterEvents()}this.$widget.data("gs-team-filter",this);return this}a.prototype.initIsotope=function(){if(!this.filters.group){this.filters.group=this.$wrapper.find(".gs-team-filter-cats > li.filter").first().addClass("active").children("a").data("filter")}this.$filter_widget=this.$widget.gs_isotope({itemSelector:".gs-filter-single-item",layoutMode:"fitRows",originLeft:!t,filter:this.isotopeFilter.bind(this)})};a.prototype.isotopeFilter=function(t,a){var s=e(a);if(s.hasClass("gs-filter--group-title")||s.hasClass("gs-filter--group-divider"))return true;var i=this.filters.search;var n=true;if(i){i=i.toLocaleLowerCase().replaceAll("-"," ").replaceAll("_"," ");if(s.find(".gs-member-name").length){n=s.find(".gs-member-name").text().toLocaleLowerCase().match(i)}if(!n&&this.wrapperOptions.search_through_all_fields=="on"){let e=s.attr("class");if(e){e=s.attr("class").toLocaleLowerCase().replaceAll("-"," ").replaceAll("_"," ");n=i?e.match(i):true}}}var r=this.filters.companySearch;var l=true;if(r){r=r.toLocaleLowerCase();if(s.find(".gs-team-member--company").length){l=s.find(".gs-team-member--company").text().toLocaleLowerCase().match(r)}}var o=this.filters.zipSearch;var c=true;if(o){o=o.toLocaleLowerCase();if(s.find(".gs-team-member--zip-codes").length){c=s.find(".gs-team-member--zip-codes").text().toLocaleLowerCase().match(o)}}var f=this.filters.tagSearch;var p=true;if(f){f=f.toLocaleLowerCase();if(s.find(".gs-team-member--tags").length){p=s.find(".gs-team-member--tags").text().toLocaleLowerCase().match(f)}}var h=[n,l,c,p,this.filters.group?s.is(this.filters.group):true];var d=[this.filters.designation,this.filters.location,this.filters.language,this.filters.gender,this.filters.specialty,this.filters.extra_one,this.filters.extra_two,this.filters.extra_three,this.filters.extra_four,this.filters.extra_five].map((function(e){if(!e)return true;if(typeof e!=="object")return s.is(e);if(!e.length)return true;return e.some((function(e){return s.is(e)}))}));return h.concat(d).every((function(e){return!!e}))};a.prototype.setFilterEvents=function(){var t=this;this.$wrapper.find(".gs-team-filter-cats").on("click","a",(function(a){a.preventDefault();t.filters.group=e(this).data("filter");t.refreshIsotope()}));this.$wrapper.find(".filters-select-designation").on("change",(function(){t.filters.designation=e(this).val();t.refreshIsotope()}));this.$wrapper.find(".filters-select-location").on("change",(function(){t.filters.location=e(this).val();t.refreshIsotope()}));this.$wrapper.find(".filters-select-language").on("change",(function(){t.filters.language=e(this).val();t.refreshIsotope()}));this.$wrapper.find(".filters-select-gender").on("change",(function(){t.filters.gender=e(this).val();t.refreshIsotope()}));this.$wrapper.find(".filters-select-specialty").on("change",(function(){t.filters.specialty=e(this).val();t.refreshIsotope()}));this.$wrapper.find(".filters-select-extra_one").on("change",(function(){t.filters.extra_one=e(this).val();t.refreshIsotope()}));this.$wrapper.find(".filters-select-extra_two").on("change",(function(){t.filters.extra_two=e(this).val();t.refreshIsotope()}));this.$wrapper.find(".filters-select-extra_three").on("change",(function(){t.filters.extra_three=e(this).val();t.refreshIsotope()}));this.$wrapper.find(".filters-select-extra_four").on("change",(function(){t.filters.extra_four=e(this).val();t.refreshIsotope()}));this.$wrapper.find(".filters-select-extra_five").on("change",(function(){t.filters.extra_five=e(this).val();t.refreshIsotope()}));var a=this.$wrapper.find(".search-by-name");a.on("keyup",l((function(){t.filters.search=a.val();t.refreshIsotope()})));a.on("change",(function(){t.filters.search=a.val();t.refreshIsotope()}));var s=this.$wrapper.find(".search-by-company");s.on("keyup",l((function(){t.filters.companySearch=s.val();t.refreshIsotope()})));s.on("change",(function(){t.filters.companySearch=s.val();t.refreshIsotope()}));var i=this.$wrapper.find(".search-by-zip");i.on("keyup",l((function(){t.filters.zipSearch=i.val();t.refreshIsotope()})));i.on("change",(function(){t.filters.zipSearch=i.val();t.refreshIsotope()}));var n=this.$wrapper.find(".search-by-tag");n.on("keyup",l((function(){t.filters.tagSearch=n.val();t.refreshIsotope()})));n.on("change",(function(){t.filters.tagSearch=n.val();t.refreshIsotope()}));this.$wrapper.find(".gs-team-filter-cats").on("click","a",(function(t){t.preventDefault();e(this).parents(".gs-team-filter-cats").find("li").removeClass("active");e(this).parent("li").addClass("active")}));e(window).on("load",(function(){t.refreshIsotope();setTimeout((function(){t.refreshIsotope()}),200)}))};a.prototype.renderAjaxTemplate=function(){const t=e(".gs_team_area");const a=t.data("shortcode-id");const s=t.find(".gs-team-filter-loader-spinner");const i=e(`#gs_team_area_${a}`);const n=i.data("options").initial_items;let r;let l=e(`#gs-team-pagination-wrapper-${a}`);const o=l.find(`#gs-team-ajax-pagination-${a}`).length>0;const c=l.find(`#gs-team-load-more-button-${a}`).length>0;const f=l.find(`#gs-team-load-more-scroll-${a}`).length>0;const p=!o&&!c&&!f;if(p){r=-1}else if(o){r=i.data("options").team_per_page;l=l.find(`#gs-team-ajax-pagination-${a}`)}else if(c){r=i.data("options").load_per_click;l=l.find(`#gs-team-load-more-button-${a}`)}else if(f){r=i.data("options").per_load;l=l.find(`#gs-team-load-more-scroll-${a}`)}e.ajax({url:GSTeamData.ajaxUrl,type:"POST",data:{action:"gsteam_filter_members",_aja
1x_nonce:GSTeamData.nonce,shortcode_id:a,filters:this.filters,posts_per_page:r},beforeSend:function(){i.find(".gs_team").hide();l.hide();s.show()}}).done((t=>{let a=e("<div>").append(e.parseHTML(t.data.teamMembers,document,true));let r=a.find(".gs_team");setTimeout((()=>{s.hide();i.find(".gs_team").replaceWith(r);let c=a.find(".gs-team-panel-container");if(c.length){i.find(".gs-team-panel-container").replaceWith(c)}v(e(".gs_team_panelslide_link",i));i.find(".gs_team").show();if(t.data.foundMembers<=n){l.hide();if(f){l.hide()}}else{e("#gs-team-load-more-member-btn").show();if(o){l.html(t.data.pagination)}if(f){initGSTeamScrollLoader()}l.show()}}),500)})).fail(((e,t,a)=>{console.error("AJAX request failed:",t,a)}))};a.prototype.setFilterEventsAjax=function(){s=this.filters;var t=this;this.$wrapper.find(".gs-team-filter-cats").on("click","a",(function(a){a.preventDefault();const s=e(this).data("filter")==="*"?"":e(this).data("filter");t.filters.group=s.replace(".","");t.renderAjaxTemplate()}));this.$wrapper.find(".filters-select-designation").on("change",(function(){const a=e(".filters-select-designation option:selected").text();t.filters.designation=a==="Show All Designation"?"":a;t.renderAjaxTemplate()}));this.$wrapper.find(".filters-select-language").on("change",(function(){const a=e(this).val()==="*"?"":e(this).val();t.filters.language=a.replace(".","");t.renderAjaxTemplate()}));this.$wrapper.find(".filters-select-location").on("change",(function(){const a=e(this).val()==="*"?"":e(this).val();t.filters.location=a.replace(".","");t.renderAjaxTemplate()}));this.$wrapper.find(".filters-select-gender").on("change",(function(){const a=e(this).val()==="*"?"":e(this).val();t.filters.gender=a.replace(".","");t.renderAjaxTemplate()}));this.$wrapper.find(".filters-select-specialty").on("change",(function(){const a=e(this).val()==="*"?"":e(this).val();t.filters.specialty=a.replace(".","");t.renderAjaxTemplate()}));this.$wrapper.find(".filters-select-extra_one").on("change",(function(){const a=e(this).val()==="*"?"":e(this).val();t.filters.extra_one=a.replace(".","");t.renderAjaxTemplate()}));this.$wrapper.find(".filters-select-extra_two").on("change",(function(){const a=e(this).val()==="*"?"":e(this).val();t.filters.extra_two=a.replace(".","");t.renderAjaxTemplate()}));this.$wrapper.find(".filters-select-extra_three").on("change",(function(){const a=e(this).val()==="*"?"":e(this).val();t.filters.extra_three=a.replace(".","");t.renderAjaxTemplate()}));this.$wrapper.find(".filters-select-extra_four").on("change",(function(){const a=e(this).val()==="*"?"":e(this).val();t.filters.extra_four=a.replace(".","");t.renderAjaxTemplate()}));this.$wrapper.find(".filters-select-extra_five").on("change",(function(){const a=e(this).val()==="*"?"":e(this).val();t.filters.extra_five=a.replace(".","");t.renderAjaxTemplate()}));var a=this.$wrapper.find(".search-by-name");a.on("keyup",l((function(){t.filters.search=a.val();t.renderAjaxTemplate()})));var i=this.$wrapper.find(".search-by-company");i.on("keyup",l((function(){t.filters.companySearch=i.val();t.renderAjaxTemplate()})));var n=this.$wrapper.find(".search-by-tag");n.on("keyup",l((function(){t.filters.tagSearch=n.val();t.renderAjaxTemplate()})));this.$wrapper.find(".gs-team-filter-cats > li.filter").first().addClass("active");this.$wrapper.find(".gs-team-filter-cats").on("click","a",(function(t){t.preventDefault();e(this).parents(".gs-team-filter-cats").find("li").removeClass("active");e(this).parent("li").addClass("active")}));this.$wrapper.find(".gs-clear-filter-button").on("click",(function(e){e.preventDefault();t.filters.search="";t.filters.companySearch="";t.filters.tagSearch="";t.renderAjaxTemplate()}))};a.prototype.refreshIsotope=function(){this.$filter_widget.gs_isotope()};e.fn.gs_team_filter=function(){return new a(e(this).first())}}function r(t,a){var s=e.extend({},{multiSelect:false,resetFilterText:"Reset Filters"},a);var i=t.closest(".gs_team_area");var n=i.find(".search-filter");var r;if(!n.length)return;if(!r||!r.length){r=e('<div class="gs-clear-filter-button--area"><span class="gs-clear-filter-button">'+s.resetFilterText+"</span></div>").insertAfter(n)}r.find(".gs-clear-filter-button").on("click",(function(a){a.preventDefault();i.find(".gs-team-filter-cats li.filter").removeClass("active");n.find("input[type=text]").val("").trigger("change");if(s.multiSelect){n.find("input[type=checkbox]").prop("checked",false).trigger("change")}else{n.find("select").each((function(){e(this).find("option").eq(0).prop("selected",true);e(this).trigger("change")}))}var r=t.data("gs-team-filter");if(r&&r.refreshIsotope){r.filters.group="*";r.refreshIsotope()}}));n.find("input, select").on("change",(function(){var e=n.find("input, select").toArray().map((function(e){var t=false;if(e.type=="text")t=e.value.trim()?true:false;if(s.multiSelect){if(e.type=="checkbox"&&e.checked)t=e.value!=="*"?true:false}else{if(e.type=="select-one")t=e.value!=="*"?true:false}return t})).some((function(e){return e}));e?r.show():r.hide()}))}function l(e,t){var a;return function s(){if(a)clearTimeout(a);function i(){e();a=null}setTimeout(i,t||100)}}function o(e){if(!e.length)return;e.flip({trigger:"hover"})}function c(e){if(!("cbpScroller"in window))return;if(!e.length)return;e.each((function(){new cbpScroller(this)}))}function f(a){if(!a.length)return;a.each((function(){var a=e(this);a.find("img").each((function(){if(e(this).data("src")){e(this).attr("src",e(this).data("src"));e(this).removeClass("ld-lazyload")}}));var s=a.closest(".gs_team_area").data("options");var i=[s.prev_txt,s.next_txt];if(a.hasClass("carousel-has-navs")&&!a.hasClass("carousel-navs--default")){if(a.hasClass("carousel-navs--style-two")){i=['<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1792 800v192q0 14-9 23t-23 9h-1248v224q0 21-19 29t-35-5l-384-350q-10-10-10-23 0-14 10-24l384-354q16-14 35-6 19 9 19 29v224h1248q14 0 23 9t9 23z"/></svg>','<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1728 893q0 14-10 24l-384 354q-16 14-35 6-19-9-19-29v-224h-1248q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h1248v-224q0-21 19-29t35 5l384 350q10 10 10 23z"/></svg>']}else{i=['<i class="fas fa-angle-left"></i>','<i class="fas fa-angle-right"></i>']}}var n=s.carousel_autoplay!=="off";var r=s.carousel_autoplay_hover_pause!=="off";var l=s.carousel_loop!=="off";var o=parseInt(s.carousel_autoplay_speed,10)||1e3;var c=parseInt(s.carousel_autoplay_timeout,10)||2500;var f=parseInt(s.carousel_items_to_scroll,10)||1;e(this).owlCarousel({rtl:t,autoplay:n,autoplayHoverPause:r,loop:l,rewind:false,margin:30,slideBy:f,smartSpeed:o,autoplaySpeed:o,autoplayTimeout:c,navSpeed:o,dotsSpeed:o,dots:a.hasClass("carousel-has-dots"),nav:a.hasClass("carousel-has-navs"),navText:i,responsiveClass:true,lazyLoad:true,responsive:{0:{items:a.data("carousel-mobile"),nav:a.hasClass("carousel-has-navs")},576:{items:a.data("carousel-mobile-portrait"),nav:a.hasClass("carousel-has-navs")},768:{items:a.data("carousel-tablet"),nav:a.hasClass("carousel-has-navs")},1025:{items:a.data("carousel-desktop"),nav:a.hasClass("carousel-has-navs")}}})}))}function p(t,s){if(!t.length)return;s.each((function(){e(this).magnificPopup({type:"inline",midClick:true,gallery:{enabled:true},delegate:".single-member-pop a.gs_team_pop:visible",closeMarkup:'<button title="%title%" type="button" class="mfp-close"><svg xmlns="http://www.w3.org/2000/svg" width="22.62" height="22.62" viewBox="0 0 22.62 22.62"><path fill="#c1c1c7" d="M1474.1,7297.69l21.21,21.21-1.41,1.41-21.21-21.21Zm-1.41,21.21,21.21-21.21,1.41,1.41-21.21,21.21Z" transform="translate(-1472.69 -7297.69)"/></svg></button>',removalDelay:500,callbacks:{beforeOpen:function(){var e=["mfp-gsteam"];e.push(this.st.el.attr("data-effect")?this.st.el.attr("data-effect"):"mfp-fade");e.push(this.st.el.attr("data-theme")?this.st.el.attr("data-theme"):"gs-team-popup--default");this.st.mainClass=this.st.mainClass+" "+e.join(" ")}}})}));if(a)return;e("body").on("click",".mfp-close",(function(t){t.preventDefault();e.magnificPopup.instance.close()}));e("body").on("click",".gs_team_popup .popup-navigation .popup-nav",(function(t){t.preventDefault();e(this).hasClass("next")?e.magnificPopup.instance.next():e.magnificPopup.instance.prev()}));function i(t,a,s,n){var r=t=="next"?n+1:n-1;if(r<0)r=a.items.length-1;if(r>=a.items.length)r=0;var l=a.items[r];var o=l.src?l.src:e(l).data("mfp-src");if(s!==o)return r;return i(t,a,o,r)}e.magnificPopup.instance.next=function(){this.index=i("next",this,this.currItem.src,this.index)-1;e.magnificPopup.proto.next()};e.magnificPopup.instance.prev=function(){this.index=i("prev",this,this.currItem.src,this.index)+1;e.magnificPopup.proto.prev()};a=true}function h(e){if(!e.length)return;e.gridderExpander({is_rtl:t,scrollOffset:30,scrollTo:"listitem",animationSpeed:400,animationEasing:"easeInOutExpo",showNav:true,nextText:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="12px" height="20px"><path fill-rule="evenodd"  fill-opacity="0.502" fill="rgb(255, 255, 255)" d="M11.899,10.000 L2.000,19.899 L0.586,18.485 L9.071,10.000 L0.586,1.514 L2.000,0.100 L10.485,8.585 L10.485,8.585 L11.899,10.000 Z"/></svg>',prevText:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="12px" height="20px"><path fill-rule="evenodd"  fill="rgb(255, 255, 255)" d="M11.414,18.485 L10.000,19.899 L0.100,10.000 L1.515,8.585 L1.515,8.585 L10.000,0.100 L11.414,1.514 L2.929,10.000 L11.414,18.485 Z"/></svg>',closeText:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24">
1<path fill-rule="evenodd" fill="rgb(204, 204, 204)" d="M23.314,21.899 L21.899,23.313 L12.000,13.414 L2.100,23.313 L0.686,21.899 L10.586,12.000 L0.686,2.100 L2.100,0.686 L12.000,10.585 L21.899,0.686 L23.314,2.100 L13.414,12.000 L23.314,21.899 Z"/></svg>'})}function d(t){e(".gs_team_area .gs_team_image__wrapper img").removeAttr("style");var a=".gs_tm_theme1, .gs_tm_theme2, .gs_tm_grid2, .gs_tm_drawer2, .gs_tm_theme7, .gs_tm_theme8, .gs_tm_theme9, .gs_tm_theme10, .gs_tm_theme11, .gs_tm_theme12, .gs_tm_theme13, .gs_tm_theme20, .gs_tm_theme23, .gs_tm_theme24, .gs-team-circle-three, .gs-team-horizontal-three";if(!t){t=e(a)}else if(t.length){t=t.filter(a)}if(t.length){t.each((function(){if(t.hasClass("gs-team-circle-three")&&!t.find(".gstm-gridder").length)return;var a=e(this).removeClass("gs-team--fixed-height");var a=e(this).find(".single-member").css({"min-height":"0","max-height":"none",height:"auto"});var s=a.map((function(){return e(this).height()}));a.height(Math.max.apply(Math,s));if(!t.hasClass("gs-team-circle-three")){e(this).addClass("gs-team--fixed-height")}}))}e(".gs_team_area.gs_team_loading").removeClass("gs_team_loading")}function g(t){if(!t.length)return;var a=t.closest(".gs_team_area").data("options");if(a.enable_multi_select=="on"&&!e.fn.gs_multi_select)i();if(!e.fn.gs_team_filter)n();t.each((function(){if(a.enable_multi_select=="on")e(this).gs_multi_select({ellipsis:a.multi_select_ellipsis=="on"});if(a.enable_clear_filters=="on")r(e(this),{multiSelect:a.enable_multi_select=="on",resetFilterText:a.reset_filters_text});e(this).gs_team_filter()}))}function u(e){if(!e.length)return;e.css("display","block")}function m(t){if(!t.length)return;t.delegate(".staff-member","mouseover mouseout",(function(t){if(t.type=="mouseover"){e(this).not(this).dequeue().animate({opacity:"0.4"},600)}else{e(this).not(this).dequeue().animate({opacity:"1"},600)}}))}function v(e){if(!e.length)return;e.panelslider({side:"right",clickClose:true,duration:200})}function _(t){e(t).on("click",".gs-team-ajax-pagination-link a",(function(a){a.preventDefault();const i=e(this).attr("href");const n=new URLSearchParams(i.split("?")[1]);const r=n.get(Object.keys(Object.fromEntries(n)).find((e=>e.includes("paged"))));let l=t.find(".gs_team");const o=l.find("table");let c;let f;if(o.length>0){c=true;f=o.find("tbody");l=f}const p=e(this).closest("[id^=gs-team-ajax-pagination-]");const h=p.attr("id").replace("gs-team-ajax-pagination-","");const d=p.data("posts-per-page");e.ajax({url:GSTeamData.ajaxUrl,type:"POST",data:{action:"gsteam_ajax_pagination",_ajax_nonce:GSTeamData.nonce,shortcode_id:h,filters:s,paged:r,posts_per_page:d},beforeSend:function(){p.css("opacity","0.5");l.css("opacity","0.5")}}).done((a=>{let s=e("<div>").append(e.parseHTML(a.data.teamMembers,document,true));let i=s.find(".single-member-div");if(c){t.find(".gs_team").append(s.find(".gs_team_popup"));f.html(i)}else{let e=t.find(".gs_team > .gridder");if(e.length){e.html(i)}else{l.html(i)}}let n=s.find(".gs-team-panel-container");if(n.length){t.find(".gs-team-panel-container").replaceWith(n)}let r=s.find(".gs_team > .gridder-content");if(r.length){t.find(".gs_team > .gridder-content").remove();t.find(".gs_team").append(r)}v(e(".gs_team_panelslide_link",t));p.html(a.data.pagination);p.css("opacity","1");l.css("opacity","1")})).fail(((e,t,a)=>{console.error("AJAX request failed:",t,a);p.css("opacity","1")}))}));e(t).on("click","#gs-team-load-more-member-btn",(function(a){a.preventDefault();const i=t.data("shortcode-id");let n=t.find(".gs_team");const r=n.find("table");let l;let o;if(r.length>0){l=true;o=r.find("tbody");n=o}const c=parseInt(n[0].children.length);const f=t.attr("data-options");const p=f.replace(/'/g,'"');const h=JSON.parse(p);const d=parseInt(h.load_per_click);e.ajax({url:GSTeamData.ajaxUrl,type:"POST",data:{action:"gsteam_load_more_members",_ajax_nonce:GSTeamData.nonce,shortcodeId:i,filters:s,loadPerAction:d,offset:c}}).done((a=>{let s=e("<div>").append(e.parseHTML(a.data.teamMembers,document,true));let i=s.find(".single-member-div");if(l){t.find(".gs_team").append(s.find(".gs_team_popup"));o.append(i)}else{let e=t.find(".gs_team > .gridder");if(e.length){e.append(i)}else{n.append(i)}}let r=s.find(".gs-team-panel-container");if(r.length){t.find(".gs-team-panel-container").append(r.find(".gstm-panel"))}let f=s.find(".gs_team > .gridder-content");
1if(f.length){t.find(".gs_team").append(f)}v(e(".gs_team_panelslide_link",t));if(a.data.foundMembers<=c+d){t.find("#gs-team-load-more-member-btn").hide()}})).fail(((e,t,a)=>{console.error("AJAX request failed:",t,a)}))}));function a(){const a=t.data("shortcode-id");const i=t.find(`#gs-team-load-more-scroll-${a}`);const n=t.attr("data-options");if(!a||!n)return;const r=JSON.parse(n);const l=parseInt(r.per_load);let o=t.find(".gs_team");const c=o.find("table");let f;let p;if(c.length>0){f=true;p=c.find("tbody");o=p}let h=false;let d=false;function g(){if(h||d)return;const n=parseInt(o[0].children.length);h=true;i.find(".gs-team-loader-spinner").show();e.ajax({url:GSTeamData.ajaxUrl,type:"POST",data:{action:"gsteam_load_more_members",_ajax_nonce:GSTeamData.nonce,shortcodeId:a,filters:s,loadPerAction:l,offset:n}}).done((a=>{i.find(".gs-team-loader-spinner").fadeOut();setTimeout((function(){h=false;if(a.success){let s=e("<div>").append(e.parseHTML(a.data.teamMembers,document,true));let i=s.find(".single-member-div");if(f){t.find(".gs_team").append(s.find(".gs_team_popup"));p.append(i)}else{let e=t.find(".gs_team > .gridder");if(e.length){e.append(i)}else{o.append(i)}}let n=s.find(".gs-team-panel-container");if(n.length){t.find(".gs-team-panel-container").append(n.find(".gstm-panel"))}let r=s.find(".gs_team > .gridder-content");if(r.length){t.find(".gs_team").append(r)}v(e(".gs_team_panelslide_link",t))}}),600);if(a.data.foundMembers<=n+l){d=true}})).fail(((e,t,a)=>{console.error("AJAX request failed:",t,a)}))}e(window).on("scroll",(function(){if(h||d)return;const a=e(window).scrollTop();const s=e(window).height();const i=t.offset().top+t.outerHeight();if(a+s>=i-100){g()}}))}const i=t.data("shortcode-id");const n=t.find(`#gs-team-load-more-scroll-${i}`);if(n.length!==0){a()}}if(e.panelslider!==undefined){e("body").on("click",".close-gstm-panel-bt",(function(){e.panelslider.close()}));e("body").on("click",".next-gstm-panel-bt",(function(t){t.preventDefault();t.stopPropagation();e.panelslider.next()}));e("body").on("click",".prev-gstm-panel-bt",(function(t){t.preventDefault();t.stopPropagation();e.panelslider.prev()}))}function w(t){var a=".gs-team-circle-two";if(!t){t=e(a)}else if(t.length){t=t.filter(a)}if(t.length){var s=["9s","10s","11s","12s","13s","14s"];t.each((function(){e(this).find(".gs_team_image__wrapper").each((function(){var t=s[Math.floor(Math.random()*s.length)];e(this).css({"animation-duration":t,"-webkit-animation-duration":t})}))}))}}function x(t){o(e(".flip-vertical",t));c(e(".cbp-so-scroller",t));f(e(".slider",t));h(e(".gridder",t));g(e(".gs-all-items-filter-wrapper",t));p(e(".single-member-pop",t),t);u(e(".staff-meta",t));m(e(".staff-category",t));v(e(".gs_team_panelslide_link",t));_(t);d(t);w(t);t.addClass("gs_geam--loaded")}window.gs_team_init=function(){var t=e(".gs_team_area");if(!t.length)return;t.each((function(){if(!e(this).parent().is(":visible"))return;if(e(this).data("et-js-processed"))return;e(this).data("et-js-processed",1);x(e(this))}))};gs_team_init();e(window).on("gsteam:scripts:reprocess",(function(){gs_team_init()}));e(window).on("load",(function(){d();gs_team_init()}));e(window).on("resize",l((function(){d()})));e("body").on("click",(function(){d();gs_team_init();jQuery(window).trigger("resize")}));e(".table-responsive--dense").on("search.bs.table",(function(t,a){var s=e(this).find("table.table");if(a){s.show()}else{s.hide()}}));e(".gs-team--scrollbar").on("wheel mousewheel DOMMouseScroll",(function(e){e.stopPropagation();e.stopImmediatePropagation()}));e(document).on("click",".gs_team_area.gs_tm_theme_custom_11 .single-member",(function(t){var a=e(this);if(e(t.target).closest("a, button, input, select, textarea, .social-icons a").length)return;if(window.getSelection&&window.getSelection().toString())return;var s=a.find(".gs-member-name a").first();if(!s.length)s=a.find("a").first();if(!s.length)return;var i=s.attr("href")||"";var n=(s.attr("target")||"").toLowerCase();var r=s.is(".open-popup-link, .gs_team_panelslide_link, .gs_team_drawer")||s.is("[data-mfp-src], [data-theme]")||i==="#"||i.indexOf("#")===0;if(r){if(s.is(".gs_team_drawer")){s.first().triggerHandler("click")}else{s.first().trigger("click")}return}if(t.ctrlKey||t.metaKey||n==="_blank"){window.open(i,"_blank","noopener")}else{window.location.href=i}}))}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.