PageSourceSearch

https://www.fundacionrepsol.com/etc.clientlibs/catalog-comp-cloud/…-9f302413b4a70903923a06e468dca145-lc.min.js

js fundacionrepsol.com collected 2026-10-02 02:56:50 UTC 7,135 bytes, 14 lines download raw bytes

1List={init:function(){$(".list-component").each(function(){List.pagination.init($(this));List.loadNoCacheItems($(this))});List.addQueryParamToButton();List.events();Repsol.page.deleteTags()},events:function(){$(document).on("change",".rp-dropdown.mode-select",function(){var a=List.getUrlFilter($(this).parents(".list-component"));List.getNewInfo($(this).parents(".list-component"),a,"filter")})},loadNoCacheItems:function(a){if("true"==a.attr("data-no-cache")){var b=List.getUrlFilter(a);List.getNewInfo(a,
2b,"filter");a.find(".document-list").removeClass("d-none")}},addQueryParamToButton:function(){window.location.search&&$.each($(".list-component .see-all-hyperlink"),function(a,b){a=b.href;-1==a.indexOf("?")&&(b.href=a+window.location.search)})},getNewInfo:function(a,b,d){b={url:b,method:"GET"};Repsol.utils.setLoader(!0,a);$.ajax(b).done(function(c){List.responseOK(c,a,d);Repsol.page.deleteTags()}).fail(function(c){List.responseKO(c,a,d)})},getUrlAjax:function(a){var b=a.attr("data-current-page"),
3d=a.attr("data-no-cache"),c=a.attr("data-current-num-page")||1,e=a.find(".block-month .dropdown-toggle").attr("data-value")||0,g=a.find(".block-year .dropdown-toggle").attr("data-value")||0;a.attr("data-current-num-page","1");var k="";a="";d&&(a=new Date,k=".nocache",a="?_\x3d"+a.getTime());b=b+"."+c+"."+e+"."+g+".0"+k;0<$(".rp-lubricantes-page").length&&(c=Repsol.utils.getCookie("country-selected-rp"),b+="."+JSON.parse(c).countryId);b+=".html"+a;(c=new URLSearchParams(window.location.search),c.get("topic"))&&
4(b=b+"?topic\x3d"+c.get("topic"));return b},getUrlFilter:function(a){var b=a.attr("data-current-page"),d="true"==a.attr("data-no-cache");List.pagination.reset(a);a.attr("data-current-num-page",1);var c=a.find(".block-month .dropdown-toggle").attr("data-value")||0,e=a.find(".block-year .dropdown-toggle").attr("data-value")||0;(a=a.find(".block-tags .dropdown-toggle").attr("data-value")||0)&&
4(a=a.replaceAll("/","@"));var g="",k="";d&&(d=new Date,g=".nocache",k="?_\x3d"+d.getTime());return b+".1."+c+
5"."+e+"."+a+g+".html"+k},responseOK:function(a,b,d){if(0<$(a).find(".document-list").length){var c=$(a).find(".document-list").children();b.find(".document-list").html(c);"filter"==d&&(a=$(a),a=$(a[0]).attr("data-total"),b.attr("data-total",a),List.pagination.init(b))}else b.find(".document-list").html(""),b.find(".no-results").removeClass("hide"),b.find(".see-all-button").hide(),List.pagination.reset(b);Repsol.utils.setLoader(!1,b)},responseKO:function(a,b){b.find(".document-list").empty();b.find(".no-results").removeClass("hide");
6b.find(".see-all-button").hide();Repsol.utils.setLoader(!1,b)},pagination:{init:function(a){List.pagination.reset(a);var b=parseInt(a.attr("data-total")),d=parseInt(a.attr("data-num"));0<b?(a.find(".no-results").addClass("hide"),b>d&&0<d&&List.pagination.buildPagination(a,Math.ceil(b/d))):(a.find(".no-results").removeClass("hide"),a.find(".see-all-button").hide())},reset:function(a){a.find(".pagination-container .pagination").html(null)},buildPagination:function(a,b){function d(f,l){f.find(".page-item--prev, .page-item--next").removeClass("disabled");
71==l?f.find(".page-item--prev").addClass("disabled"):l==b&&f.find(".page-item--next").addClass("disabled")}for(var c=parseInt(a.attr("data-current-num-page")),e='\x3cli class\x3d"page-item page-item--prev page-item--text"\x3e\x3ca class\x3d"page-link" href\x3d"#"\x3e\x3cspan class\x3d"icon-rp-Arrow_left"\x3e\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e',g=0;g<b;g++){var k=g+1==c?"active":"";3>g?e+='\x3cli class\x3d"page-item changeNum '+k+'"\x3e\x3ca class\x3d"page-link" href\x3d"#" data-page\x3d"'+(g+1)+'"\x3e'+
8(g+1)+"\x3c/a\x3e\x3c/li\x3e":3==g&&5>b&&(e+='\x3cli class\x3d"page-item '+k+'"\x3e\x3ca class\x3d"page-link" href\x3d"#" data-page\x3d"'+(g+1)+'"\x3e'+(g+1)+"\x3c/a\x3e\x3c/li\x3e")}4<b&&(e+='\x3cli class\x3d"page-item last-page'+k+'"\x3e\x3cspan class\x3d"ellipsis"\x3e...\x3c/span\x3e\x3ca class\x3d"page-link" href\x3d"#" data-page\x3d"'+b+'"\x3e'+b+"\x3c/a\x3e\x3c/li\x3e");e+='\x3cli class\x3d"page-item page-item--next page-item--text"\x3e\x3ca class\x3d"page-link" href\x3d"#"\x3e\x3cspan class\x3d"icon-rp-Arrow_right"\x3e\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e';
9var h=a.find(".pagination-container .pagination");h.html(e);d(a,c);h.find(".page-item:not(.page-item--text)").on("click",".page-link",function(f){f.preventDefault();h.find(".page-item").removeClass("active");$(this).parent().addClass("active");a.attr("data-current-num-page",$(this).attr("data-page"));d(a,parseInt(a.attr("data-current-num-page")));List.pagination.getList(a);List.pagination.refreshPagination(a,parseInt($(this).attr("data-page")),b)});h.find(".page-item--prev .page-link").on("click",
10function(f){f.preventDefault();f=parseInt(a.attr("data-current-num-page"));1<f&&(--f,a.attr("data-current-num-page",f),h.find(".page-item.active").removeClass("active"),h.find('.page-link[data-page\x3d"'+f+'"]').parent().addClass("active"),d(a,f),h.find(".page-item.active .page-link").click())});h.find(".page-item--next .page-link").on("click",function(f){f.preventDefault();f=parseInt(a.attr("data-current-num-page"));f<b&&(f+=1,a.attr("data-current-num-page",f),h.find(".page-item.active").removeClass("active"),
11h.find('.page-link[data-page\x3d"'+f+'"]').parent().addClass("active"),d(a,f),h.find(".page-item.active .page-link").click())})},refreshPagination:function(a,b,d){a.attr("data-current-num-page",b);var c=a.find(".pagination-container .pagination");c.find(".page-item.active").removeClass("active");1!=b&&(3<d&&b<d-2?(c.find(".changeNum").each(function(e){$(this).html("");0==e?$(this).append('\x3ca class\x3d"page-link" href\x3d"#" data-page\x3d"'+(b-1)+'"\x3e'+(b-1)+"\x3c/a\x3e"):1==e?$(this).append('\x3ca class\x3d"page-link" href\x3d"#" data-page\x3d"'+
12b+'"\x3e'+b+"\x3c/a\x3e"):2==e&&$(this).append('\x3ca class\x3d"page-link" href\x3d"#" data-page\x3d"'+(b+1)+'"\x3e'+(b+1)+"\x3c/a\x3e")}),c.find(".last-page .ellipsis").show()):b==d-2&&(c.find(".changeNum").each(function(e){$(this).html("");c.find(".num-pagi-extra").html("");0==e?$(this).append('\x3ca class\x3d"page-link" href\x3d"#" data-page\x3d"'+(b-1)+'"\x3e'+(b-1)+"\x3c/a\x3e"):1==e?$(this).append('\x3ca class\x3d"page-link" href\x3d"#" data-page\x3d"'+b+'"\x3e'+b+"\x3c/a\x3e"):2==e&&$(this).append('\x3ca class\x3d"page-link" href\x3d"#" data-page\x3d"'+
13(b+1)+'"\x3e'+(b+1)+"\x3c/a\x3e")}),c.find(".last-page .ellipsis").hide()),c.find('.page-link[data-page\x3d"'+b+'"]').parent().addClass("active"),!(3>=d&&d==b+2)&&d==b&&3<d&&(c.find(".changeNum").each(function(e){$(this).html("");0==e?$(this).append('\x3ca class\x3d"page-link" href\x3d"#" data-page\x3d"'+(b-3)+'"\x3e'+(b-3)+"\x3c/a\x3e"):1==e?$(this).append('\x3ca class\x3d"page-link" href\x3d"#" data-page\x3d"'+(b-2)+'"\x3e'+(b-2)+"\x3c/a\x3e"):2==e&&$(this).append('\x3ca class\x3d"page-link" href\x3d"#" data-page\x3d"'+
14(b-1)+'"\x3e'+(b-1)+"\x3c/a\x3e")}),c.find(".last-page .ellipsis").hide()));c.find('.page-link[data-page\x3d"'+b+'"]').parent().addClass("active")},getList:function(a){var b=List.getUrlAjax(a);List.getNewInfo(a,b)}}};
14$(document).ready(function(){List.init()});

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.