File: /home/circuix/adrRc/wp-content/plugins/essential-blocks/blocks/post-carousel/frontend/index.js
(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.apiFetch;var o=e.n(t);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}var n=!!EssentialBlocksLocalize&&EssentialBlocksLocalize.rest_rootURL;o().use(o().createRootURLMiddleware(n)),window.addEventListener("DOMContentLoaded",(function(e){var t,o,n,i,a,s,d,l,u,c,v,f,p,y,w=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 a,s=!0,d=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return s=e.done,e},e:function(e){d=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(d)throw a}}}}(document.getElementsByClassName("eb-post-carousel-wrapper"));try{for(w.s();!(t=w.n()).done;)o=void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,n=(o=t.value).getAttribute("data-id"),a=(i=JSON.parse(o.getAttribute("data-slidersettings"))).arrows,s=i.autoplay,d=i.dots,l=i.infinite,u=i.pauseOnHover,c=i.slideToShowRange,v=i.MOBslideToShowRange,f=i.TABslideToShowRange,p=i.autoplaySpeed,y=i.speed,jQuery("."+n).slick({arrows:a,autoplay:s,dots:d,infinite:l,pauseOnHover:u,slidesToShow:c,autoplaySpeed:p,speed:y,responsive:[{breakpoint:1024,settings:{slidesToShow:f}},{breakpoint:767,settings:{slidesToShow:v}}]})}catch(e){w.e(e)}finally{w.f()}}))})();