Mini Shell

Direktori : /home/brasafestival/www/old/wp-content/plugins/jetpack/_inc/blocks/slideshow/
Upload File :
Current File : /home/brasafestival/www/old/wp-content/plugins/jetpack/_inc/blocks/slideshow/view.js

!function(){var t,e,n,i,r,o,s={6209:function(t,e){"use strict";var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,i){return t[0]===e&&(n=i,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];t.call(e,r[1],r[0])}},e}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,r="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},s=2;var a=20,c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,l=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,i=!1,r=0;function a(){n&&(n=!1,t()),i&&u()}function c(){o(a)}function u(){var t=Date.now();if(n){if(t-r<s)return;i=!0}else n=!0,i=!1,setTimeout(c,e);r=t}return u}(this.refresh.bind(this),a)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;c.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),f=function(t,e){for(var n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];Object.defineProperty(t,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return t},d=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||r},h=y(0,0,0,0);function p(t){return parseFloat(t)||0}function v(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+p(t["border-"+n+"-width"])}),0)}function b(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return h;var i=d(t).getComputedStyle(t),r=function(t){for(var e={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n],o=t["padding-"+r];e[r]=p(o)}return e}(i),o=r.left+r.right,s=r.top+r.bottom,a=p(i.width),c=p(i.height);if("border-box"===i.boxSizing&&(Math.round(a+o)!==e&&(a-=v(i,"left","right")+o),Math.round(c+s)!==n&&(c-=v(i,"top","bottom")+s)),!function(t){return t===d(t).document.documentElement}(t)){var u=Math.round(a+o)-e,l=Math.round(c+s)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(l)&&(c-=l)}return y(r.left,r.top,a,c)}var m="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof d(t).SVGGraphicsElement}:function(t){return t instanceof d(t).SVGElement&&"function"==typeof t.getBBox};function w(t){return i?m(t)?function(t){var e=t.getBBox();return y(0,0,e.width,e.height)}(t):b(t):h}function y(t,e,n,i){return{x:t,y:e,width:n,height:i}}var _=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=w(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),g=function(t,e){var n,i,r,o,s,a,c,u=(i=(n=e).x,r=n.y,o=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),f(c,{x:i,y:r,width:o,height:s,top:r,right:i+o,bottom:s+r,left:i}),c);f(this,{target:t,contentRect:u})},E=function(){function t(t,e,i){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=i}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof d(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new _(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof d(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new g(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),O="undefined"!=typeof WeakMap?new WeakMap:new n,k=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),i=new E(e,n,this);O.set(this,i)};["observe","unobserve","disconnect"].forEach((function(t){k.prototype[t]=function(){var e;return(e=O.get(this))[t].apply(e,arguments)}}));var A=void 0!==r.ResizeObserver?r.ResizeObserver:k;e.Z=A},30847:function(t,e,n){"use strict";async function i(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".swiper-container",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicks:!1,preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,threshold:5,touchStartPreventDefault:!1,on:Object.fromEntries(Object.entries(i||{}).map((t=>{let[e,n]=t;return[e,function(){n(this)}]})))},[{default:o}]=await Promise.all([Promise.all([n.e(96),n.e(390)]).then(n.t.bind(n,59101,23)),Promise.all([n.e(96),n.e(390)]).then(n.bind(n,89701))]);return new o(t,{...r,...e})}n.d(e,{Z:function(){return i}})},85575:function(t,e,n){"use strict";n.d(e,{D:function(){return r}});var i=n(65736);const __=i.__;function r(t,e,n){let r="";if(n<=5)for(let t=1;t<=n;t++){r+='<button class="'+`swiper-pagination-bullet${t===e?" swiper-pagination-bullet-active":""}`+'" tab-index="0" role="button" aria-label="'+(0,i.sprintf)(/* translators: placeholder is the the video number to navigate to */
__("Go to slide %s","jetpack"),t)+'"></button>'}else r+=`<div class="swiper-pagination-simple">${e} / ${n}</div>`;return r}},17766:function(t,e,n){"use strict";n.d(e,{$m:function(){return u},HV:function(){return l},UA:function(){return c},Wj:function(){return f}});var i=n(81975);const r=16/9,o=.8,s=600,a="wp-block-jetpack-slideshow_autoplay-paused";function c(t){u(t),l(t);document.querySelector("body").dispatchEvent(new Event("jetpack-lazy-images-load")),t.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",(function(){t.el&&(t.el.classList.contains(a)?(t.el.classList.remove(a),t.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(t.el.classList.add(a),t.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))}))}function u(t){if(!t||!t.el)return;const e=t.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img');if(!e)return;const n=e.clientWidth/e.clientHeight,i=Math.max(Math.min(n,r),1),a="undefined"!=typeof window?window.innerHeight*o:s,c=Math.min(t.width/i,a),u=`${Math.floor(c)}px`,l=`${Math.floor(c/2)}px`;t.el.classList.add("wp-swiper-initialized"),t.wrapperEl.style.height=u,t.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=l,t.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=l}function l(t){(t.slides||[]).forEach(((e,n)=>{e.setAttribute("aria-hidden",n===t.activeIndex?"false":"true"),n===t.activeIndex?e.setAttribute("tabindex","-1"):e.removeAttribute("tabindex")})),function(t){const e=t.slides[t.activeIndex];if(!e)return;const n=e.getElementsByTagName("FIGCAPTION")[0],r=e.getElementsByTagName("IMG")[0];t.a11y.liveRegion&&(t.a11y.liveRegion[0].innerHTML=n?n.innerHTML:(0,i.escapeHTML)(r.alt))}(t)}function f(t){(t.pagination.bullets||[]).forEach((e=>{e.addEventListener("click",(()=>{const e=t.slides[t.realIndex];setTimeout((()=>{e.focus()}),500)}))}))}},80425:function(t,e,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&window.Jetpack_Block_Assets_Base_Url.url&&(n.p=window.Jetpack_Block_Assets_Base_Url.url)},47701:function(t){"use strict";t.exports=window.wp.domReady},81975:function(t){"use strict";t.exports=window.wp.escapeHtml},65736:function(t){"use strict";t.exports=window.wp.i18n}},a={};function c(t){var e=a[t];if(void 0!==e)return e.exports;var n=a[t]={exports:{}};return s[t].call(n.exports,n,n.exports,c),n.exports}c.m=s,c.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return c.d(e,{a:e}),e},e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},c.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var r=Object.create(null);c.r(r);var o={};t=t||[null,e({}),e([]),e(e)];for(var s=2&i&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((function(t){o[t]=function(){return n[t]}}));return o.default=function(){return n},c.d(r,o),r},c.d=function(t,e){for(var n in e)c.o(e,n)&&!c.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},c.f={},c.e=function(t){return Promise.all(Object.keys(c.f).reduce((function(e,n){return c.f[n](t,e),e}),[]))},c.u=function(t){return(390===t?"swiper":t)+".js?minify=false&ver="+{96:"1853a9023180e8177bed",390:"dd486a9e4cc722c1e1d7"}[t]},c.miniCssF=function(t){return"swiper.css?minify=false&ver=177bc86651b3aacafd09"},function(){if(!c.miniCssF)throw new Error("MiniCSSWithRTLPlugin was loaded before MiniCSSExtractPlugin");var t;c.miniCssF=(t=c.miniCssF,function(e){var n="rtl"===document.dir,i=t(e);return n?i.replace(/\.css(?:$|\?)/,".rtl$&"):i})}(),c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n={},i="Jetpack:",c.l=function(t,e,r,o){if(n[t])n[t].push(e);else{var s,a;if(void 0!==r)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==i+r){s=f;break}}s||(a=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,c.nc&&s.setAttribute("nonce",c.nc),s.setAttribute("data-webpack",i+r),s.src=t),n[t]=[e];var d=function(e,i){s.onerror=s.onload=null,clearTimeout(h);var r=n[t];if(delete n[t],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach((function(t){return t(i)})),e)return e(i)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),a&&document.head.appendChild(s)}},c.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;c.g.importScripts&&(t=c.g.location+"");var e=c.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=t+"../"}(),r=function(t){return new Promise((function(e,n){var i=c.miniCssF(t),r=c.p+i;if(function(t,e){for(var n=document.getElementsByTagName("link"),i=0;i<n.length;i++){var r=(s=n[i]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(r===t||r===e))return s}var o=document.getElementsByTagName("style");for(i=0;i<o.length;i++){var s;if((r=(s=o[i]).getAttribute("data-href"))===t||r===e)return s}}(i,r))return e();!function(t,e,n,i){var r=document.createElement("link");r.rel="stylesheet",r.type="text/css",r.onerror=r.onload=function(o){if(r.onerror=r.onload=null,"load"===o.type)n();else{var s=o&&("load"===o.type?"missing":o.type),a=o&&o.target&&o.target.href||e,c=new Error("Loading CSS chunk "+t+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=s,c.request=a,r.parentNode.removeChild(r),i(c)}},r.href=e,document.head.appendChild(r)}(t,r,e,n)}))},o={72:0},c.f.miniCss=function(t,e){o[t]?e.push(o[t]):0!==o[t]&&{390:1}[t]&&e.push(o[t]=r(t).then((function(){o[t]=0}),(function(e){throw delete o[t],e})))},function(){var t={72:0};c.f.j=function(e,n){var i=c.o(t,e)?t[e]:void 0;if(0!==i)if(i)n.push(i[2]);else if(390!=e){var r=new Promise((function(n,r){i=t[e]=[n,r]}));n.push(i[2]=r);var o=c.p+c.u(e),s=new Error;c.l(o,(function(n){if(c.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",s.name="ChunkLoadError",s.type=r,s.request=o,i[1](s)}}),"chunk-"+e,e)}else t[e]=0};var e=function(e,n){var i,r,o=n[0],s=n[1],a=n[2],u=0;if(o.some((function(e){return 0!==t[e]}))){for(i in s)c.o(s,i)&&(c.m[i]=s[i]);if(a)a(c)}for(e&&e(n);u<o.length;u++)r=o[u],c.o(t,r)&&t[r]&&t[r][0](),t[r]=0},n=self.webpackChunkJetpack=self.webpackChunkJetpack||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}(),function(){"use strict";c(80425)}(),function(){"use strict";var t=c(47701),e=c.n(t),n=c(6209),i=c(30847),r=c(85575),o=c(17766);"undefined"!=typeof window&&e()((function(){const t=document.getElementsByClassName("wp-block-jetpack-slideshow");Array.from(t).forEach((t=>{if("true"===t.getAttribute("data-jetpack-block-initialized"))return;const{autoplay:e,delay:s,effect:a}=t.dataset,c=window.matchMedia("(prefers-reduced-motion: reduce)").matches,u=e&&!c,l=t.getElementsByClassName("swiper-container")[0];let f=null;(0,i.Z)(l,{autoplay:!!u&&{delay:1e3*s,disableOnInteraction:!1},effect:a,init:!0,initialSlide:0,loop:!0,keyboard:{enabled:!0,onlyInViewport:!0},pagination:{el:".swiper-pagination",clickable:!0,type:"custom",renderCustom:r.D}},{init:o.UA,imagesReady:o.$m,paginationRender:o.Wj,transitionEnd:o.HV}).then((t=>{new n.Z((()=>{f&&(cancelAnimationFrame(f),f=null),f=requestAnimationFrame((()=>{(0,o.$m)(t),t.update()}))})).observe(t.el)})).catch((()=>{t.querySelector(".wp-block-jetpack-slideshow_container").classList.add("wp-swiper-initialized")})),t.setAttribute("data-jetpack-block-initialized","true")}))}))}()}();

Zerion Mini Shell 1.0