PageSourceSearch

https://loving-london.com/es/wp-content/plugins/table-composer/public/js/metc-public.min.js?ver=1.5.9

js loving-london.com collected 2026-09-29 13:22:55 UTC 15,208 bytes, 2 lines download raw bytes

1!function(f){"use strict";var g={},u={},a=".metc-table-wrap";function e(){f(".metc-table-header-sticky").not(".metc-table-header-sticky-clone").each(function(){f(this).next().length||f(this).before(f(this).clone()).addClass("metc-table-header-sticky-clone");var e=f(this).closest(".metc-table-wrap"),t=f(window).scrollTop(),a=f(".metc-table-header-sticky-clone",e),l=e.offset().top-a.position().top,i=e.height()-a.height(),c=e.children(".metc-highlight-cell-spacer").eq(0);c.length&&(l+=parseInt(c.css("min-height"))),l<t&&t<l+i&&(g.mobileView&&e.hasClass("metc-snap-wrap")||!g.mobileView)?a.css({visibility:"visible"}):a.css({visibility:"hidden"})})}function t(){f(".metc-table-footer-sticky").not(".metc-table-footer-sticky-clone").each(function(){f(this).next().length||f(this).before(f(this).clone()).addClass("metc-table-footer-sticky-clone");var e=f(this).closest(".metc-table-wrap"),t=f(window).scrollTop(),a=f(".metc-table-footer-sticky-clone",e),l=e.offset().top-(a.position().top+a.height()),i=e.height()-a.height(),c=e.children(".metc-highlight-cell-spacer").eq(0);c.length&&(l+=parseInt(c.css("min-height"))),t>l+f(this).height()&&t<l+i&&(g.mobileView&&e.hasClass("metc-snap-wrap")||!g.mobileView)?a.css({visibility:"visible"}):a.css({visibility:"hidden"})})}function l(){f(".metc-table-header-sticky, .metc-table-footer-sticky").each(function(e,a){f.each(f(a).next('tr[class$="clone"]').children(),function(e,t){e=f(a)[0].cells[e].getBoundingClientRect();f(t).css({"max-width":e.width,width:e.width})})})}function i(e){var t=metcScriptVars.mobileClasses?new RegExp(metcScriptVars.mobileClasses.replace(" ","|")):null;f(window).width()<=metcScriptVars.mobileBreakpoint||f("body").attr("class").match(t)?(g.createdMobileView||(g.createdMobileView=!0,u.mobile={itemWrapper:"<ul class='metc-table-list metc-hidden-desktop'></ul>",item:"<li class='metc-table-list-item'></li>",subItemWrapper:"<div class='metc-toggleable-area-container metc-toggleable-area-collapsed'><ul class='metc-toggleable-area metc-toggleable-area-list'></ul></div>"},f(".metc-table-table").each(function(l,a){if(!g["table"+l].metcSnapForMobile||!S()){for(var e=f(u.mobile.itemWrapper),i=[],t=g["table"+l].metcRowStack?g["table"+l].metcRowCount:g["table"+l].metcColumnCount,c=0;c<t;c++){var n,o=f(u.mobile.item);if(g["table"+l].metcRowStack&&g["table"+l].metcVisibleRowsOnMobile&&c>=g["table"+l].metcVisibleRowsOnMobile&&o.addClass("metc-hidden-mobile"),!g["table"+l].metcRowStack){switch(g["table"+l].metcTableHeaderPosition&&g["table"+l].metcTableHeaderPosition.includes("left")&&0===c&&(o=null),g["table"+l].metcTableHeaderPosition){case"left":case"top-left":n=c;break;default:n=c+1}n>g["table"+l].metcVisibleColumnsOnMobile&&o.addClass("metc-hidden-mobile")}i.push(o)}!g["table"+l].metcRowStack&&g["table"+l].metcTableHeaderPosition&&g["table"+l].metcTableHeaderPosition.includes("top")&&f.each(f(a).find("tr").eq(0).children(),function(e,t){var a;g["table"+l].metcTableHeaderPosition.includes("left")&&0===e||(a=f("<div class='metc-table-list-cell metc-table-list-item-header' />"),g["table"+l].metcRowStack||(a=w(l,0,e,t,a)),a=v(0,0,0,t,a),i[e].append(a))});var s=[];f.each(f(a).children("tbody").children(),function(e,t){g["table"+l].metcRowStack&&f(t).children().first().data("metc-toggleable-area")?f.each(f(t).children().first().find("tr"),function(e,t){s.push(t)}):s.push(t)}),f.each(s,function(e,t){C(e,t,l,a,i)}),f.each(i,function(){e.append(f(this))}),f(a).before(e)}}),s()),t=e,g.mobileView&&!t||(0!==f(".metc-snap-wrap").length&&S()&&(f("body").addClass("snapview--active"),b(".metc-hidden-cell"),c(),f(".metc-table-wrap").each(function(e,t){"top-left"==g["table"+e].metcTableHeaderPosition&&4<=g["table"+e].metcColumnCount&&(g["table"+e].metcSnapForMobileUseMobileColumnCount&&g["table"+e].metcVisibleColumnsOnMobile<=3||f(t).find(".metc-table-front-header-cell").css("display","none"))}),h(".metc-hide-cell-in-snap-view")),h(".metc-hidden-mobile"),b(".metc-hidden-desktop"),f(".metc-table-hidden-mobile").each(function(){f(this).closest(".metc-table-wrap").hasClass("metc-snap-wrap")&&(!f(this).closest(".metc-table-wrap").hasClass("metc-snap-wrap")||S())||f(this).css("display","none")}
1)),g.mobileView=!0):(t=e,(g.mobileView||t)&&(f("body").removeClass("snapview--active"),f(".metc-table-header-sticky-clone, .metc-table-footer-sticky-clone").each(function(e,t){t.style.left=""}),h(".metc-hidden-desktop"),h(".metc-hidden-cell"),b(".metc-hidden-mobile"),f(".metc-hide-cell-in-snap-view").each(function(){f(this).hasClass("metc-hidden-cell")||(f(this)[0].style.display="")}),f(".metc-table-front-header-cell").each(function(){f(this)[0].style.display=""}),c(),f(".metc-table-hidden-mobile").css("display","")),g.mobileView=!1)}function C(a,l,i,c,n,o){o=o||!1;var s=0,r=0;f.each(f(l).children(),function(e,t){if(g["table"+i].metcRowStack)f(t).data("metc-toggleable-area")?f.each(f(t).find("tr"),function(e,t){n[a].append(m(e,t,s,i,c,l,a,o))}):n[a].append(m(e,t,s,i,c,l,a,o));else if(g["table"+i].metcTableHeaderActive&&g["table"+i].metcTableHeaderPosition.includes("left")&&0===e&&!f(t).data("metc-toggleable-area"))r++;else if(f(t).data("metc-toggleable-area")||n[r].append(m(e,t,s,i,c,l,a,o)),f(t).data("colspan")?s=parseInt(f(t).data("colspan")):f(t).attr("colspan")&&(s=parseInt(f(t).attr("colspan"))),0===s)r++;else for(;0<s;s--){if(!f(t).data("metc-toggleable-area")||g["table"+i].metcTableHeaderActive&&g["table"+i].metcTableHeaderPosition.includes("left")){if(r++,1==s)return}else if(1==s&&!f(t).data("metc-toggleable-area"))return;f(t).data("metc-toggleable-area")&&g["table"+i].metcTableHeaderActive&&g["table"+i].metcTableHeaderPosition.includes("left")?n[r].append(m(e,t,s-1,i,c,l,a,o)):n[r].append(m(e,t,s,i,c,l,a,o)),!f(t).data("metc-toggleable-area")||g["table"+i].metcTableHeaderActive&&g["table"+i].metcTableHeaderPosition.includes("left")||r++}})}function m(e,t,a,l,i,c,n,o){var s,r=f("<div class='metc-table-list-cell' />");if(g["table"+l].metcRowStack){switch(g["table"+l].metcTableHeaderPosition){case"left":case"top-left":s=e;break;default:s=e+1}s>g["table"+l].metcVisibleColumnsOnMobile&&r.addClass("metc-hidden-mobile")}if(!g["table"+l].metcRowStack&&n>=g["table"+l].metcVisibleRowsOnMobile&&!o&&r.addClass("metc-hidden-mobile"),f(t).is("th")){if(!g["table"+l].metcRowStack)return;r.addClass("metc-table-list-item-header")}if(!g["table"+l].metcRowStack&&f(t).data("metc-toggleable-area")){r.addClass("metc-toggleable-area-wrapper").attr("data-metc-toggleable-area",!0).append(f(t).find(".metc-toggleable-area-toggle").clone(),u.mobile.subItemWrapper),f(t).data("metc-toggleable-area-open")&&r.attr("data-metc-toggleable-area-open",!0),f(t).data("mobile-content")&&r.find(".metc-toggleable-area-toggle").html(JSON.parse(f(t).data("mobile-content")));for(var m=r.find(".metc-toggleable-area-list"),n=f(t).find(".metc-toggleable-area-table"),d=[],h=g["table"+l].metcColumnCount,b=0;b<h;b++){var p=f(u.mobile.item);g["table"+l].metcTableHeaderPosition&&g["table"+l].metcTableHeaderPosition.includes("left")&&0===b&&(p=null),d.push(p)}f.each(n.find("tr"),function(e,t){C(e,t,l,i,d,!0)}),f.each(d,function(e,t){d.length-a==e&&m.append(f(t))})}else r=function(e,t,a,l,i,c){var n=null;g["table"+e].metcShowHeaderInMobileCell&&g["table"+e].metcTableHeaderActive&&(n=g["table"+e].metcRowStack?f(t).find(".metc-table-header-cell").eq(a):f(i).find("th"));n&&n.html()&&!f(l).data("metc-toggleable-area")&&(c.append("<div class='metc-table-list-cell-header'>"+n.html()+"</div>"),e=n.data("mobile-content"))&&(""===(e=JSON.parse(e))?c.children(".metc-table-list-cell-header").remove():c.children(".metc-table-list-cell-header").children(".metc-table-cell-content").html(JSON.parse(n.data("mobile-content"))));return c}(l,i,e,t,c,r),g["table"+l].metcRowStack||(r=w(l,0,e,t,r)),r=v(0,0,0,t,r);return r}function w(e,t,a,l,i){return g["table"+e].metcHighlightColumns&&-1!==f.inArray(a,g["table"+e].metcHighlightColumns)&&(i.attr("style",f(l).attr("style")).css("display","").addClass("metc-highlight-cell").prepend(f(l).find(".metc-highlight-cell-title").clone()),f(l).find(".metc-highlight-cell-title").data("mobile-content"))&&i.find(".metc-highlight-cell-title").children(".metc-table-cell-content").html(JSON.parse(f(l).find(".metc-highlight-cell-title").data("mobile-content"))),i}function v(e,t,a,l,i){return f(l).children(".metc-table-cell-content").html()&&(i.append(f(l).children(".metc-table-cell-content").clone()),f(l).data("mobile-content"))&&i.children(".metc-table-cell-content").html(JSON.parse(f(l).data("mobile-content"))),i}function n(){g.mobileView||f(".metc-table-wrap").each(function(i,e){if(g["table"+i].metcHideColumnsOnResize){g["table"+i].metcCurrentColumnCount||(g["table"+i].metcCurrentColumnCount=g["table"+i].metcColumnCount);
1var c=g["table"+i].metcCurrentColumnCount,t=f(e).children("table").outerWidth(),a=g["table"+i].metcMinimumColumnCount?parseInt(g["table"+i].metcMinimumColumnCount):parseInt(metcScriptVars.minimumColumnCount),l=g["table"+i].metcMinimumColumnWidth?parseInt(g["table"+i].metcMinimumColumnWidth):parseInt(metcScriptVars.minimumColumnWidth);if(!(t/c<=l&&c==a)){if(l<t/c){if(!(l<t/(c+1)&&c!=g["table"+i].metcColumnCount))return;f.each(f(e).find("tr"),function(e,t){f.each(f(t).children(),function(e,t){var a=parseInt(f(t).data("colspan")),l=parseInt(f(t).attr("colspan"))||0;return f(t).hasClass("metc-hidden-cell")?(f(t).removeClass("metc-hidden-cell").css("display",""),!1):a?(l<a&&(l++,f(t).attr("colspan",l)),l===a&&f(t).removeData("colspan"),!1):void 0}),c!==f(t).children().not(".metc-hidden-cell").length&&(g["table"+i].metcCurrentColumnCount=f(t).children().not(".metc-hidden-cell").length)})}else f.each(f(e).find("tr"),function(e,t){var a=f(t).children().not(".metc-hidden-cell").not(".metc-highlight-cell").last(),l=parseInt(a.attr("colspan"))||0;l&&!a.data("colspan")&&a.data("colspan",l),1<l?a.attr("colspan",--l):a.addClass("metc-hidden-cell").css("display","none"),c!==f(t).children().not(".metc-hidden-cell").length+l&&(g["table"+i].metcCurrentColumnCount=f(t).children().not(".metc-hidden-cell").length+l)});n()}}})}function c(){f(".metc-table-wrap").each(function(e,t){l=(0!==f(l=t).find(".metc-table-header").length?f(l).find(".metc-table-header"):f(l).find(".metc-table-body-row"))[0].children,l=Array.prototype.slice.call(l),a=0,l.forEach(function(e){f(e).is(":visible")&&a++});var a,l=a;f(t).find(".metc-comparison-header > td").attr("colspan",l),f(t).find('[data-metc-toggleable-area="1"]').attr("colspan",l)})}function o(){f(document.body).on("click.metc",".metc-toggleable-area-toggle",function(){var e=f(this),t=e.next(".metc-toggleable-area-container"),a=e.children("span.metc-toggleable-area-toggle-status"),l="metc-toggleable-area-collapsed",i="metc-hidden",c="metc-toggleable-area-toggle-open";r(t),t.hasClass(l)?t.removeClass(l):t.addClass(l),a.each(function(){f(this).hasClass(i)?f(this).removeClass(i):f(this).addClass(i)}),e.hasClass(c)?e.removeClass(c):e.addClass(c)}),s()}function s(){f(".metc-table-wrap").each(function(e,t){f.each(f(t).find("[data-metc-toggleable-area]"),function(e,t){var a=f(t).find(".metc-toggleable-area-toggle"),l=f(t).find(".metc-toggleable-area-container"),i=f(t).data("metc-toggleable-area-open");i?(a.addClass("metc-toggleable-area-toggle-open"),l.removeClass("metc-toggleable-area-collapsed")):a.removeClass("metc-toggleable-area-toggle-open"),f.each(f(t).find(".metc-toggleable-area-toggle-status"),function(e,t){0===e?i?f(t).addClass("metc-hidden"):f(t).removeClass("metc-hidden"):i?f(t).removeClass("metc-hidden"):f(t).addClass("metc-hidden")})})}),r()}function r(e){e=e||f(".metc-toggleable-area-container"),f.each(e,function(e,t){var a=f(t).children(".metc-toggleable-area");f(t).css({height:a[0].getBoundingClientRect().height+parseInt(a.css("margin-top"))+parseInt(a.css("margin-bottom"))})})}function d(){f(".metc-table-wrap").each(function(e,t){var c,a;g["table"+e].metcHighlightColumns&&(f(t).children(".metc-highlight-cell-spacer").length||f(t).prepend('<div class="metc-highlight-cell-spacer metc-hidden-mobile" />'),a=f(t).children(".metc-highlight-cell-spacer"),f.each(f(t).find(".metc-highlight-cell-title"),function(e,t){var a=0,l=f(t).children(".metc-table-cell-content"),i=f(t).closest(".metc-table-list-cell"),a=(a=(a=(a=(a+=parseInt(l[0].getBoundingClientRect().height))+parseInt(l.css("margin-top")))+parseInt(l.css("margin-bottom")))+parseInt(f(t).css("padding-top")))+parseInt(f(t).css("padding-bottom"));(!c||c<a)&&(c=a),i.length&&(i.css("margin-top",a),f(t).css("min-height",""))}),f(t).children(".metc-table-table").find(".metc-highlight-cell-title").css("min-height",c),a.css("min-height",c),g["table"+e].metcHighlightCellSpacerHeight=c)}),i(!0)}function h(e){f(e).css("display","none")}function b(e){f(e).css("display","")}function p(){g.mobileView&&f(".metc-snap-wrap").each(function(e,t){document.querySelector(a).offsetHeight;!function(e){for(var t=e.offsetTop,a=e.offsetLeft,l=e.offsetWidth,i=e.offsetHeight;e.offsetParent;)t+=(e=e.offsetParent).offsetTop,a+=e.offsetLeft;return t<window.pageYOffset+window.innerHeight-300&&a<window.pageXOffset+window.innerWidth&&t+i>window.pageYOffset+300&&a+l>window.pageXOffset}(this)?f(this).find(".snap-navigation").removeClass("--active"):f(this).find(".snap-navigation").addClass("--active")})}function y(){var e=f(this),t=e.find(".snap-button--right"),a=e.find(".snap-button--left"),l=e.context.scrollLeft,i=e.context.offsetWidth,c=e.find("table")[0].offsetWidth;e[0].style.setProperty("--scroll-offset-left",-1*l+"px"),f(e).find('tr[class$="clone"]').each(function(e,t){t.style.left="-"+l+"px"}),l+i==c?t.addClass("--inactive"):t.removeClass("--inactive"),0===l?a.addClass("--inactive"):a.removeClass("--inactive")}function S(){return!!window.CSS&&(CSS.supports("(scroll-snap-type: x mandatory)")||CSS.supports("(-ms-scroll-snap-type: x mandatory)")||CSS.supports("(-webkit-scroll-snap-type: x mandatory)"))&&(CSS.supports("(position:sticky)")||CSS.supports("(position: -webkit-sticky)"))}f(".snap-button").on("click",function(){var e=f(this).context,t=f(e).parents(".metc-table-wrap")[0].scrollLeft,a=window.innerWidth/2;f(this).hasClass("snap-button--right")?f(e).parents(".metc-table-wrap").animate({scrollLeft:t+a},400):f(e).parents(".metc-table-wrap").animate({scrollLeft:t-a},400)}),f(function(){"undefined"==typeof metcScriptVars?alert('Please save the settings of the plugin "Table Composer" first.'):(f(".metc-table-wrap").each(function(a,e){g["table"+a]={},f.each(f(e).data(),function(e,t){g["table"+a][e]=t})}),f(".metc-snap-wrap").on("scroll",y),f(window).on("scroll.metc",function(){e(),t(),l(),p()}).on("resize.metc",function(){i(),n(),r(),d(),e(),t(),l()}),i(),n(),d(),e(),t(),l(),p(),o(),f(".metc-table-wrap").each(function(e,t){var a,l;g["table"+e].metcSnapForMobileUseMobileColumnCount&&g["table"+e].metcVisibleColumnsOnMobile&&(a=g["table"+e].metcVisibleColumnsOnMobile,l=g["table"+e].metcColumnCount,f(t).find("tr").each(function(){f(this)[0].childElementCount==l&&f(this).children().each(function(e,t){a-1<e&&f(t).addClass("metc-hide-cell-in-snap-view")})}))}),f(".metc-table-wrap").each(function(e,t){f(t).removeClass("metc-fade-out")}))})}(jQuery);
2//# sourceMappingURL=metc-public.min.js.map

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.