__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[338,957],{6338:function(e,t,n){n.r(t),n.d(t,{fetchVideoBy:function(){return f},mount:function(){return v}});var o=n(4705),i=n(9338),a=n(9680),c=n(6555),s=n(9948);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){(0,o.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const u={},f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=d({ignoreVideoOptions:!1},t);let n=ct_localizations.ajax_url+"?action=blocksy_get_image_video_component&media="+e;return t.ignoreVideoOptions&&(n+="&ignore_video_options=true"),new Promise(function(e){(function(e){return u[e]?new Promise(function(t){t(u[e]),u[e]=u[e].clone()}):new Promise(function(t){return fetch(e).then(function(n){t(n),u[e]=n.clone()})})})(n).then(function(t){200===t.status&&t.json().then(function(t){let{success:n,data:o}=t;n&&e(o)})})})},l=function(e){e.querySelector(".ct-video-indicator").classList.add("loading");const t=e.dataset.state&&-1!==e.dataset.state.indexOf("hover")&&-1!==e.dataset.state.indexOf("revert");f(e.dataset.mediaId).then(function(n){const o=document.createElement("div");o.innerHTML=n.html;const c=o.firstChild;e.querySelector(".ct-dynamic-media-inner")?e.querySelector(".ct-dynamic-media-inner").insertAdjacentElement("beforeend",c):e.insertAdjacentElement("beforeend",c);const s=e.querySelector("video,iframe"),r=s.closest(".flexy-container[data-autoplay]"),u=null==r?void 0:r.flexy;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=d({onPause:function(){},onPlay:function(){},onReady:function(){}},t),e.isListeningForStateChanges||(e.isListeningForStateChanges=!0,(0,i.k7)(e,function(n){"pause"===n&&((0,i.Hl)(e),t.onPause()),"play"===n&&(t.onPlay(),(0,i.dP)(e)),"ready"===n&&t.onReady()}))}(s,{onPlay:function(){setTimeout(function(){e.querySelector(".ct-video-indicator").classList.remove("loading")},120),u&&(u.options=d(d({},u.options),{},{autoplay:!1,_autoplay:!1}))},onPause:function(){u&&(u.options=d(d({},u.options),{},{autoplay:parseInt(r.dataset.autoplay),_autoplay:parseInt(r.dataset.autoplay)}),u.state=d(d({},u.state),{},{lastTimeAnimated:(new Date).getTime()})),t&&!e.classList.contains("ct-simplified-player")&&(e.dataset.state="hover:paused")},onReady:function(){(0,a.e)()&&(0,i.jw)(s),(0,i._b)(s)}})})},m=function(e){const t=ct_localizations.dynamic_styles_selectors.find(function(e){return".ct-media-container[data-media-id], .ct-dynamic-media[data-media-id]"===e.selector});t&&(0,c.MK)(t.url).then(function(){l(e)})};ctEvents.on("blocksy:frontend:flexy:slide-change",function(e){let{instance:t,payload:n}=e;const o=(0,s.F)(t.sliderContainer);[...o.querySelectorAll("video,iframe")].map(function(e){return(0,i.WY)(e)});const a=o.children[n.currentIndex].querySelector(".ct-media-container[data-media-id], .ct-dynamic-media[data-media-id]");if(!a)return;const c=a.querySelector("video,iframe");c?(0,i.iY)(c):y(a,{performVisibilityCheck:!1})}),ctEvents.on("blocksy:ajax:filters:done",function(){[...document.querySelectorAll(".ct-media-container[data-media-id]")].map(function(e){y(e)})});const y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t=d({performVisibilityCheck:!0},t),!e.matches('[data-state*="autoplay"]'))return;let n=!0;if(t.performVisibilityCheck&&e.closest(".flexy-items")){const t=e.getBoundingClientRect(),o=e.closest(".flexy-items").getBoundingClientRect();n=t.left>=o.left&&t.left<=o.left+o.width&&t.top>=o.top&&t.top<=o.top+o.height}n&&(e.removeAttribute("data-state"),m(e))};let p=!1;const v=function(e,t){let{event:n}=t;if(!n||"scroll"===n.type){if(p)return;p=!0;const e=function(){[...document.querySelectorAll(".ct-media-container[data-media-id], .ct-dynamic-media[data-media-id]")].map(function(e){y(e)})};return ctEvents.on("blocksy:frontend:init",function(){e()}),void e()}n&&"mouseover"===n.type&&(e.hasMouseLeaveListener||(e.hasMouseLeaveListener=!0,e.addEventListener("mouseenter",function(){const t=e.querySelector("video,iframe");(0,i._b)(t)}),-1!==e.dataset.state.indexOf("revert")&&e.addEventListener("mouseleave",function(){const t=e.querySelector("video,iframe");(0,i.WY)(t,{shouldRevert:!0})})));if(e.querySelector("video")&&!e.closest(".ct-simplified-player"))return;const o=e.querySelector("video,iframe");o?e.matches('[data-state="playing"]')?(0,i.WY)(o):(0,i._b)(o):m(e)}},9338:function(e,t,n){n.d(t,{Hl:function(){return s},WY:function(){return r},_b:function(){return a},dP:function(){return o},iY:function(){return c},jw:function(){return i},k7:function(){return d}});const o=function(e){e.closest(".ct-media-container, .ct-dynamic-media").dataset.state="playing"},i=function(e){e&&(e.matches('iframe[src*="youtu"]')?e.contentWindow.postMessage(JSON.stringify({event:"command",func:"mute"}),"*"):e.matches('iframe[src*="vimeo"]')&&e.contentWindow.postMessage(JSON.stringify({method:"setMuted",value:!0}),"*"))},a=function(e){e&&(e.matches("video")?e.play():e.matches('iframe[src*="youtu"]')?e.contentWindow.postMessage(JSON.stringify({event:"command",func:"playVideo"}),"*"):e.matches('iframe[src*="vimeo"]')&&e.contentWindow.postMessage(JSON.stringify({method:"play"}),"*"))},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};e&&(e.matches("video[autoplay]")||e.matches('iframe[src*="youtu"][src*="autoplay=1"]')||e.matches('iframe[src*="vimeo"][src*="autoplay=1"]')?(t(),a(e)):n())},s=function(e){e.closest(".ct-media-container, .ct-dynamic-media").dataset.state="paused"},r=function(e){if(e)if(e.matches("video"))e.pause();else if(e.matches('iframe[src*="youtu"]'))e.contentWindow.postMessage(JSON.stringify({event:"command",func:"pauseVideo"}),"*");else if(e.matches('iframe[src*="vimeo"]'))e.contentWindow.postMessage(JSON.stringify({method:"pause"}),"*");else if(e.matches("iframe")){const t=e.src;e.src="",e.src=t}},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if(e)return e.matches("video")?(t("ready"),e.addEventListener("play",function(){return t("play")}),void e.addEventListener("pause",function(){return t("pause")})):e.matches('iframe[src*="youtu"]')?(window.addEventListener("message",function(n){if(n.data&&n.source===e.contentWindow)try{const e=JSON.parse(n.data);"onStateChange"===e.event&&(1===e.info&&t("play"),2===e.info&&t("pause"))}catch(n){}}),void e.addEventListener("load",function(){e.contentWindow.postMessage(JSON.stringify({event:"listening",id:1,channel:"widget"}),"*"),e.contentWindow.postMessage(JSON.stringify({event:"command",func:"addEventListener",args:["onStateChange"],id:1,channel:"widget"}),"*"),t("ready")})):void(e.matches('iframe[src*="vimeo"]')&&window.addEventListener("message",function(n){if(n.data&&n.source===e.contentWindow)try{const o=JSON.parse(n.data);"ready"===o.event&&(e.contentWindow.postMessage(JSON.stringify({method:"addEventListener",value:"pause"}),"*"),e.contentWindow.postMessage(JSON.stringify({method:"addEventListener",value:"play"}),"*"),t(o.event)),"pause"!==o.event&&"play"!==o.event||t(o.event)}catch(n){}}))}},9680:function(e,t,n){n.d(t,{e:function(){return o}});const o=function(){return"undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1)}},9948:function(e,t,n){n.d(t,{F:function(){return o}});const o=function(e){return e&&"[object Function]"==={}.toString.call(e)?e():e}}}]);