File: /home/circuix/adrRc/wp-content/plugins/essential-blocks/blocks/image-comparison/frontend/index.js
(()=>{"use strict";var e,t={5859:(e,t,r)=>{var n=r(9307),a=r(864),o=r.n(a);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}window.addEventListener("DOMContentLoaded",(function(e){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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,i=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw o}}}}(document.getElementsByClassName("eb-image-comparison-wrapper"));try{for(r.s();!(t=r.n()).done;){var a=t.value,u=a.getAttribute("data-left-image"),f=a.getAttribute("data-right-image"),c=a.getAttribute("data-vertical-mode"),s=a.getAttribute("data-hover"),d=a.getAttribute("data-show-label"),b=a.getAttribute("data-left-label"),g=a.getAttribute("data-right-label"),v=a.getAttribute("data-slider-position"),p=a.getAttribute("data-line-width"),h=a.getAttribute("data-line-color"),y=a.getAttribute("data-handle");(0,n.render)(React.createElement(o(),i({leftImage:u,rightImage:f},"true"==c?{vertical:"vertical"}:{},"true"==s?{hover:"hover"}:{},"true"==d?{leftImageLabel:b}:{},"true"==d?{rightImageLabel:g}:{},"true"==y?{handle:React.createElement(React.Fragment,null)}:{},{sliderPositionPercentage:v?v/100:.5,sliderLineWidth:p||0,sliderLineColor:h||"#ffffff"})),a)}}catch(e){r.e(e)}finally{r.f()}}))},9196:e=>{e.exports=window.React},9307:e=>{e.exports=window.wp.element}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}};return t[e].call(o.exports,o,o.exports,n),o.exports}n.m=t,e=[],n.O=(t,r,a,o)=>{if(!r){var i=1/0;for(c=0;c<e.length;c++){r=e[c][0],a=e[c][1],o=e[c][2];for(var l=!0,u=0;u<r.length;u++)(!1&o||i>=o)&&Object.keys(n.O).every((e=>n.O[e](r[u])))?r.splice(u--,1):(l=!1,o<i&&(i=o));if(l){e.splice(c--,1);var f=a();void 0!==f&&(t=f)}}return t}o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[r,a,o]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.j=804,(()=>{var e={804:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var a,o,i=r[0],l=r[1],u=r[2],f=0;if(i.some((t=>0!==e[t]))){for(a in l)n.o(l,a)&&(n.m[a]=l[a]);if(u)var c=u(n)}for(t&&t(r);f<i.length;f++)o=i[f],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(c)},r=self.webpackChunkessential_blocks=self.webpackChunkessential_blocks||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a=n.O(void 0,[277],(()=>n(5859)));a=n.O(a)})();