File manager - Edit - /home/rangceb/diohome.com/wp-content468461/updraft/plugins-old/elegantspot/scripts/builder-bundle.min.js
Back
!function(t){var e={};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/",o(o.s=3)}([function(t,e){t.exports=jQuery},function(t,e){t.exports=React},function(t,e){},function(t,e,o){o(4),t.exports=o(5)},function(t,e,o){"use strict"},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(0),r=o.n(n),i=o(6),a=o(9);r()(window).on("et_builder_api_ready",function(t,e){e.registerModules(i.a),e.registerModalFields(a.a)})},function(t,e,o){"use strict";var n=o(7),r=o(8);e.a=[n.a,r.a]},function(t,e,o){"use strict";var n=o(1),r=o.n(n),i=o(0);o.n(i);function a(t){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function p(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}var c=function(t){function e(t){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(o=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))).mainRef=r.a.createRef(),o.mainID="elegantHotspot-"+Math.floor(1e3*Math.random()+1)+Math.random().toString(36).substring(2,15),o.delayedRefreh="",o}var o,i,a;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,n["Component"]),o=e,(i=[{key:"componentDidMount",value:function(){"undefined"!==typeof this.props.image&&(window.parent.elegantHotspotImage=this.props.image)}},{key:"componentDidUpdate",value:function(t){"undefined"!==typeof this.props.image&&(window.parent.elegantHotspotImage=this.props.image)}},{key:"render",value:function(){return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{id:this.mainID,ref:this.mainRef,className:"elegant-image-hotspot-wrapper"},r.a.createElement("img",{className:"elegant-image-hotspot-main",src:this.props.image}),this.props.content))}}])&&s(o.prototype,i),a&&s(o,a),e}();Object.defineProperty(c,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"eleganthotspot"}),e.a=c},function(t,e,o){"use strict";var n=o(1),r=o.n(n),i=o(0),a=o.n(i);function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e){return!e||"object"!==s(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}var l=function(t){function e(t){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(o=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))).mainRef=r.a.createRef(),o.state={identifier:"eleganthotspot-tooltip"},o}var o,i,s;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,n["Component"]),o=e,s=[{key:"css",value:function(t){window.ET_Builder.API.Utils;var e=[];return e.push([{selector:"%%order_class%% .elegant-image-hotspot-main-spot",declaration:"background-color: ".concat(t.spot_background?t.spot_background:"#000000"," !important;")}]),e.push([{selector:"%%order_class%% .eleganthotspot_content",declaration:"color: ".concat(t.spot_icon_color?t.spot_icon_color:"#ffffff"," !important;")}]),e.push([{selector:"%%order_class%% .eleganthotspot_content",declaration:"font-size: ".concat(t.spot_icon_size?t.spot_icon_size:"14","px;")}]),e.push([{selector:"%%order_class%% .eleganthotspot_content",declaration:"line-height: ".concat(t.spot_icon_size?t.spot_icon_size:"14","px;")}]),e.push([{selector:"%%order_class%% .elegant-image-hotspot-main-spot",declaration:"border-radius: ".concat(t.spot_icon_radius?t.spot_icon_radius:"0","px !important;")}]),e.push([{selector:"%%order_class%% .eleganthotspot-pulse-effect",declaration:"border-radius: ".concat(t.spot_icon_radius?t.spot_icon_radius:"0","px !important;")}]),e}}],(i=[{key:"componentDidMount",value:function(){var t=this,e=this.mainRef.current,o=(this.props.content(),a()(e).parents(".elegant-image-hotspot-wrapper").attr("id"));window.hasOwnProperty(o)&&window[o].state.isShown&&this._mouseFunc("destroy"),a()(e).parents(".et_pb_module").attr("class").split(" ").forEach(function(e){e.includes("eleganthotspot_")&&t.setState({identifier:e+"-tooltip"})})}},{key:"_mouseFunc",value:function(t){var e=this.mainRef.current,o=this.props.content(),n=a()(e).parents(".elegant-image-hotspot-wrapper"),r=n.attr("id");"enter"===t&&""!==o.props.content&&(window.hasOwnProperty(r)?!1===window[r].state.isShown&&(window[r]=window.tippy(e,{content:o.props.content,allowHTML:!0,placement:this.props.tooltip_placement?this.props.tooltip_placement:"top",trigger:this.props.tooltip_trigger?this.props.tooltip_trigger:"mouseenter",theme:"."+this.state.identifier,maxWidth:this.props.tooltip_width&&"0"!==this.props.tooltip_width?parseInt(this.props.tooltip_width):"none"})):window[r]=window.tippy(e,{content:o.props.content,allowHTML:!0,placement:this.props.tooltip_placement?this.props.tooltip_placement:"top",trigger:this.props.tooltip_trigger?this.props.tooltip_trigger:"mouseenter",theme:"."+this.state.identifier,maxWidth:this.props.tooltip_width&&"0"!==this.props.tooltip_width?parseInt(this.props.tooltip_width):"none"})),"leave"===t&&window.hasOwnProperty(r)&&"click"!==this.props.tooltip_trigger&&(window[r].destroy(),delete window[r]),"destroy"===t&&(window[r].hide(),window[r].destroy(),delete window[r])}},{key:"render",value:function(){var t=this,e=window.ET_Builder.API.Utils,o={};this.props.hasOwnProperty("spot")&&""!==this.props.spot&&(o=JSON.parse(this.props.spot));var n="off"===this.props.pulse_effect?"":r.a.createElement("div",{className:"eleganthotspot-pulse-effect"}),i="on"===this.props.use_title?r.a.createElement("div",{className:"eleganthotspot_title eleganthotspot_content"},this.props.name):r.a.createElement("div",{className:"eleganthotspot_icon eleganthotspot_content"},this.props.spot_icon?e.processFontIcon(this.props.spot_icon):"\ue0f5"),a=this.props.tooltip_background?this.props.tooltip_background:"#333333",s=r.a.createElement("style",{dangerouslySetInnerHTML:{__html:"\n .tippy-box[data-theme~='.".concat(this.state.identifier,"'] { background-color: ").concat(a,"; }\n .tippy-box[data-theme~='.").concat(this.state.identifier,"'] .tippy-arrow{ color: ").concat(a,"; }\n ")}});return r.a.createElement("div",{className:"elegant-image-hotspot-main-spot",onClick:function(e){t._mouseFunc("click")},onMouseEnter:function(e){t._mouseFunc("enter")},onMouseLeave:function(e){t._mouseFunc("leave")},style:o,ref:this.mainRef},r.a.createElement("div",{className:"elegant-image-hotspot-main-spot-inner"},n,i),s)}}])&&p(o.prototype,i),s&&p(o,s),e}();Object.defineProperty(l,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"eleganthotspot_child"}),e.a=l},function(t,e,o){"use strict";var n=o(10);e.a=[n.a]},function(t,e,o){"use strict";var n=o(1),r=o.n(n),i=o(0),a=o.n(i),s=o(2);o.n(s);function p(t){return(p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var u=function(t){function e(t){var o,n,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=!(i=(e.__proto__||Object.getPrototypeOf(e)).call(this,t))||"object"!==p(i)&&"function"!==typeof i?l(n):i,Object.defineProperty(l(o),"_onChange",{configurable:!0,enumerable:!0,writable:!0,value:function(t){}}),o.mainImage=r.a.createRef(),o.mainSpot=r.a.createRef(),o.mainID="elegantHotspot-field-"+Math.floor(1e3*Math.random()+1)+Math.random().toString(36).substring(2,15),o.state={imageSrc:""},o}var o,i,s;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,n["Component"]),o=e,(i=[{key:"componentDidMount",value:function(){window.parent.hasOwnProperty("elegantHotspotImage")&&this.setState({imageSrc:window.parent.elegantHotspotImage})}},{key:"componentDidUpdate",value:function(t){}},{key:"_sportMark",value:function(t){var e=a()(this.mainImage.current),o=e.outerWidth(),n=e.outerHeight(),r=a()(this.mainSpot.current),i=r.outerWidth(),s=r.outerHeight(),p={left:(t.nativeEvent.offsetX/o*100).toFixed(2)+"%",top:(t.nativeEvent.offsetY/n*100).toFixed(2)+"%",marginLeft:-parseInt(i)/2,marginTop:-parseInt(s)/2,position:"absolute"};p=JSON.stringify(p),this.props._onChange(this.props.name,p)}},{key:"render",value:function(){var t=this,e=window.ET_Builder.API.Utils,o="";if(this.props.hasOwnProperty("value")&&""!==this.props.value){var n=JSON.parse(this.props.value),i="on"===this.props.moduleSettings.use_title?r.a.createElement("div",{className:"eleganthotspot_title eleganthotspot_content"},this.props.moduleSettings.name):r.a.createElement("div",{className:"eleganthotspot_icon eleganthotspot_content"},this.props.moduleSettings.spot_icon?e.processFontIcon(this.props.moduleSettings.spot_icon):"\ue0f5");o=r.a.createElement("div",{ref:this.mainSpot,style:n,className:"elegant-image-hotspot-mark"},i)}var a="undefined"!==typeof this.state.imageSrc&&""!==this.state.imageSrc?r.a.createElement("img",{ref:this.mainImage,onClick:function(e){t._sportMark(e)},src:this.state.imageSrc}):"",s=r.a.createElement("style",{dangerouslySetInnerHTML:{__html:"\n #".concat(this.mainID," .elegant-image-hotspot-mark { background-color: ").concat(this.props.moduleSettings.spot_background," !important; }\n #").concat(this.mainID," .eleganthotspot_content { color: ").concat(this.props.moduleSettings.spot_icon_color," !important; }\n #").concat(this.mainID," .eleganthotspot_content { font-size: ").concat(this.props.moduleSettings.spot_icon_size?this.props.moduleSettings.spot_icon_size:"14","px !important; }\n #").concat(this.mainID," .eleganthotspot_content { line-height: ").concat(this.props.moduleSettings.spot_icon_size?this.props.moduleSettings.spot_icon_size:"14","px !important; }\n\n ")}});return r.a.createElement("div",{id:this.mainID,style:{position:"relative"},className:"elegant-image-hotspot-field-wrapper"},o,a,s)}}])&&c(o.prototype,i),s&&c(o,s),e}();Object.defineProperty(u,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"hotspot_field"}),e.a=u}]);
| ver. 1.4 |
Github
|
.
| PHP 8.4.10 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings