PageSourceSearch

https://www.nomadmusic.fr/wp-content/plugins/acf-views-pro/pro/Ass…/js/acf-views-pagination.min.js?ver=3.8.8

js nomadmusic.fr collected 2026-10-02 11:42:18 UTC 7,816 bytes, 1 lines download raw bytes

1(()=>{function e(e,n){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return t(e,n)}(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw o}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(r=a.key,o=void 0,o=function(e,t){if("object"!==n(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var a=i.call(e,t||"default");if("object"!==n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(r,"string"),"symbol"===n(o)?o:String(o)),a)}var r,o}function r(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;console.log("ACF Card : "+e),t&&console.log(t)}if(!(window.hasOwnProperty("acfViewsPagination")&&window.acfViewsPagination.hasOwnProperty("ajaxData")&&window.acfViewsPagination.ajaxData.hasOwnProperty("url")&&window.acfViewsPagination.ajaxData.hasOwnProperty("name")&&window.acfViewsPagination.hasOwnProperty("instances")))throw o("ajax data is missing"),new Error("ajax data is missing");var s={PAGINATION:"__pagination",PAGINATION__TYPE__BUTTON:"__pagination--type--load_more_button",PAGINATION__TYPE__PAGES:"__pagination--type--page_numbers",PAGINATION__TYPE__INFINITY:"__pagination--type--infinity_scroll",PAGINATION__LOCKED:"__pagination--locked",LOAD_MORE:"__load-more",ITEMS:"__items",PAGE:"__page",PAGE__ACTIVE:"__page--active"},l={BUTTON:"button",PAGES:"pages",INFINITY:"infinity"},u={PAGES_AMOUNT:"pagesAmount",CARD_ID:"cardId",PAGE_NUMBER:"pageNumber"},c=window.acfViewsPagination.ajaxData.url,p=window.acfViewsPagination.ajaxData.name,h=function(){function e(t,n){i(this,e),this.element=t,this.elementClass=n,this.pagination=this.getInnerElement(s.PAGINATION),null!==this.pagination&&(this.pageNumber=1,this.pagesAmount=parseInt(this.pagination.dataset[u.PAGES_AMOUNT]||"0"),this.cardId=this.pagination.dataset[u.CARD_ID]||"",this.isRunningAjax=!1,this.scrollListener=null,this.paginationType="",this.paginationType=this.pagination.classList.contains(this.getSelector(s.PAGINATION__TYPE__BUTTON))?l.BUTTON:this.paginationType,this.paginationType=this.pagination.classList.contains(this.getSelector(s.PAGINATION__TYPE__PAGES))?l.PAGES:this.paginationType,this.paginationType=this.pagination.classList.contains(this.getSelector(s.PAGINATION__TYPE__INFINITY))?l.INFINITY:this.paginationType,this.setupListeners())}return r(e,[{key:"getSelector",value:function(e){return this.elementClass+e}},{key:"getInnerElement",value:function(e){return this.element.querySelector("."+this.getSelector(e))}},{key:"getInnerElements",value:function(e){return this.element.querySelectorAll("."+this.getSelector(e))}},{key:"setupListeners",value:function(){var e=this;switch(this.paginationType){case l.BUTTON:this.getInnerElement(s.LOAD_MORE).addEventListener("click",this.prepareAjax.bind(this));break;
1case l.PAGES:this.getInnerElements(s.PAGE).forEach((function(t){t.addEventListener("click",e.prepareAjax.bind(e))}));break;case l.INFINITY:this.scrollListener=this.prepareAjax.bind(this),window.addEventListener("scroll",this.scrollListener)}}},{key:"prepareAjax",value:function(e){if(!this.isRunningAjax){if(l.INFINITY===this.paginationType)if(this.element.getBoundingClientRect().bottom-2*window.innerHeight>0)return;switch(this.isRunningAjax=!0,this.pagination.classList.add(this.getSelector(s.PAGINATION__LOCKED)),this.paginationType){case l.BUTTON:this.pageNumber++;break;case l.PAGES:e.stopPropagation(),e.preventDefault();var t=e.target.closest("."+this.getSelector(s.PAGE)),n=parseInt(t.dataset[u.PAGE_NUMBER])||0;if(n<1||n>this.pagesAmount)return o("requested page number is over limits"),void this.removePaginationUI();this.getInnerElement(s.PAGE__ACTIVE).classList.remove(this.getSelector(s.PAGE__ACTIVE)),this.pageNumber=n;break;case l.INFINITY:this.pageNumber++}this.makeAjax()}}},{key:"removePaginationUI",value:function(){switch(this.paginationType){case l.BUTTON:this.pagination.remove(),this.pagination=null;break;case l.INFINITY:window.removeEventListener("scroll",this.scrollListener),this.scrollListener=null}}},{key:"updateUIAfterAjax",value:function(){if(this.pageNumber===this.pagesAmount&&l.PAGES!==this.paginationType)return this.removePaginationUI(),void(this.isRunningAjax=!1);l.PAGES===this.paginationType&&this.getInnerElement(s.PAGE+'[data-page-number="'+this.pageNumber+'"]').classList.add(this.getSelector(s.PAGE__ACTIVE)),this.isRunningAjax=!1,this.pagination.classList.remove(this.getSelector(s.PAGINATION__LOCKED))}},{key:"makeAjax",value:function(){var e=this,t=new FormData;t.append("action",p),t.append("_noCache",(new Date).getTime().toString()),t.append("_acfCardId",this.cardId),t.append("_pageNumber",this.pageNumber.toString());var n=new XMLHttpRequest;n.timeout=3e4,n.open("POST",c,!0),n.addEventListener("readystatechange",this.processAjaxResponse.bind(this,n)),n.addEventListener("timeout",(function(){o("ajax timeout"),e.removePaginationUI()})),n.send(t)}},{key:"processAjaxResponse",value:function(e){if(4===e.readyState)if(200===e.status){var t={};try{if(!(t=JSON.parse(e.responseText)).hasOwnProperty("error")||!t.hasOwnProperty("html"))throw new Error("Property is missing")}catch(e){return o("ajax response is wrong"),void this.removePaginationUI()}if(t.error)return o("ajax request was wrong, details : "+t.error),void this.removePaginationUI();l.PAGES===this.paginationType?this.getInnerElement(s.ITEMS).innerHTML=t.html:this.getInnerElement(s.ITEMS).innerHTML+=t.html,this.updateUIAfterAjax()}else o("ajax request is failed")}}]),e}();new(function(){function t(){i(this,t),this.paginationData=window.acfViewsPagination.instances,"loading"!==document.readyState?this.setup():window.addEventListener("DOMContentLoaded",this.setup.bind(this))}return r(t,[{key:"setup",value:function(){var t=this;new MutationObserver((function(n,i){var a,r=e(n);try{for(r.s();!(a=r.n()).done;){a.value.addedNodes.forEach((function(e){t.addListeners(e)}))}}catch(e){r.e(e)}finally{r.f()}})).observe(document.body,{childList:!0,subtree:!0}),this.addListeners(document.body)}},{key:"addListeners",value:function(e){Node.ELEMENT_NODE===e.nodeType&&this.paginationData.forEach((function(t){t.hasOwnProperty("selector")&&t.hasOwnProperty("elementClass")?e.querySelectorAll(t.selector).forEach((function(e){e=null!==e.shadowRoot?e.shadowRoot:e,new h(e,t.elementClass)})):console.log("Advanced Views: Pagination data is broken")}))}}]),t}())})();

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.