File: /var/www/html/wp-content/plugins/hover_effects_pack/js/gutenberg_block.js
!function(e){var l={};function t(a){if(l[a])return l[a].exports;var n=l[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=e,t.c=l,t.d=function(e,l,a){t.o(e,l)||Object.defineProperty(e,l,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,l){if(1&l&&(e=t(e)),8&l)return e;if(4&l&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&l&&"string"!=typeof e)for(var n in e)t.d(a,n,function(l){return e[l]}.bind(null,n));return a},t.n=function(e){var l=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(l,"a",l),l},t.o=function(e,l){return Object.prototype.hasOwnProperty.call(e,l)},t.p="",t(t.s=0)}([function(e,l){function t(e){return function(e){if(Array.isArray(e)){for(var l=0,t=new Array(e.length);l<e.length;l++)t[l]=e[l];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e){for(var l=1;l<arguments.length;l++){var t=null!=arguments[l]?arguments[l]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.forEach(function(l){n(e,l,t[l])})}return e}function n(e,l,t){return l in e?Object.defineProperty(e,l,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[l]=t,e}!function(e,l,n,o){var r=o.InspectorControls,i=o.MediaUpload,c=o.MediaUploadCheck,u=n.ServerSideRender,p=n.TextControl,s=n.CheckboxControl,b=n.SelectControl,f=n.ColorPicker,d=n.TextareaControl,m=[];var v={text:function(e){e.ctrl_name;var l=e.data,t=e.value,a=e.onChange;return[wp.element.createElement(p,{label:l.label,value:t||l.default,onChange:a,help:l.help})]},textarea:function(e){e.ctrl_name;var l=e.data,t=e.value,a=e.onChange;return[wp.element.createElement(d,{label:l.label,value:t,onChange:a,help:l.help})]},checkbox:function(e){var l=e.ctrl_name,t=e.data,a=e.value,n=e.onChange;return[wp.element.createElement(s,{label:t.label,checked:!!a,onChange:function(e){return n(e?l:"")},help:t.help})]},select:function(e){e.ctrl_name;var l=e.data,t=e.value,a=e.onChange;return[wp.element.createElement(b,{label:l.label,value:t,onChange:a,options:l.options,help:l.help})]},colorpicker:function(e){e.ctrl_name;var l=e.data,t=e.value,a=e.onChange;return[wp.element.createElement("label",null,l.label),wp.element.createElement(f,{label:l.label,color:{hex:t||null},onChangeComplete:function(e){return a(e.hex)},disableAlpha:!0,help:l.help})]}},g={img_title:{type:"string",default:null,control:"text",label:"Image Title Attribute",help:"Set image title attribute"},img_alt:{type:"string",default:null,control:"text",label:"Image Alt Attribute",help:"Set image alt attribute"},disable_popup:{type:"string",default:null,control:"checkbox",label:"Disable popup for this link",help:"Prevent error with open links to other site when popup is enabled"},link_tab:{type:"string",default:null,control:"checkbox",label:"Open link in new tab",help:"Works only when image popup effects disabled or previous checkbox is checked"},gallery_id:{type:"string",default:null,control:"text",label:"Image Gallery Id",help:"Images with same Gallery Id will be grouped, and you can navigate between them with prev/next buttons"},width:{type:"string",default:"150",control:"text",label:"Image Width",help:"Set image width"},height:{type:"string",default:"150",control:"text",label:"Image Height",help:"Set image height"},class:{type:"string",default:null,control:"text",label:"Custom link class",help:"You can add custom CSS class for link"},radius:{type:"string",default:null,control:"text",label:"Border radius",help:"You can add border radius in px"},effect:{type:"string",default:null,control:"select",label:"Effect",help:"Set image hover effect",options:[{value:"none",label:"None"},{value:"fade",label:"Fade"},{value:"stroke",label:"Stroke"},{value:"twist",label:"Twist"},{value:"flip",label:"Flip"},{value:"flow",label:"Flow"},{value:"box",label:"Box"},{value:"stripe",label:"Stripe"},{value:"apart",label:"Apart Horizontal"},{value:"apart",label:"Apart Vertical"},{value:"diagonal",label:"Diagonal"}]},inverse_effect:{type:"string",default:null,control:"checkbox",label:"Inverse Behavior",help:"Hover layer will be visible by default and hidden on mouse hover"},color:{type:"string",default:null,control:"colorpicker",label:"Hover Color",help:"Use this field to override global value"},opacity:{type:"string",default:null,control:"select",label:"Opacity",help:"Set image hover opacity (except flip and twist effects)",options:[{value:"100",label:"100%"},{value:"90",label:"90%"},{value:"80",label:"80%"},{value:"70",label:"70%"},{value:"60",label:"60%"},{value:"50",label:"50%"},{value:"40",label:"40%"},{value:"30",label:"30%"},{value:"20",label:"20%"},{value:"10",label:"10%"}]},title:{type:"string",default:null,control:"text",label:"Image Hover Title",help:"Set title, that will go over image"},title_visible:{type:"string",default:null,control:"checkbox",label:"Disable Title Animation",help:"Disable Title Animation (Title Always Visible)"},title_delay:{type:"string",default:null,control:"select",label:"Title Effect Delay",help:"Set title effect delay",options:[{value:"",label:"None"},{value:"03",label:"0,3 seconds"},{value:"06",label:"0,6 seconds"},{value:"09",label:"0,9 seconds"},{value:"12",label:"1,2 seconds"},{value:"15",label:"1,5 seconds"}]},title_slide:{type:"string",default:null,control:"select",label:"Title Slide Effect",help:"Set title slide effect direction",options:[{value:"",label:"None"},{value:"from-left",label:"From left"},{value:"from-right",label:"From right"},{value:"from-bottom",label:"From bottom"},{value:"from-top",label:"From top"}]},title_rotation:{type:"string",default:null,control:"select",label:"Title Rotation Effect",help:"Set title rotation effect direction and angle",options:[{value:"",label:"None"},{value:"cw-90",label:"Clockwise 90"},{value:"cw-180",label:"Clockwise 180"},{value:"ccw-90",label:"Counterclockwise 90"},{value:"ccw-180",label:"Counterclockwise 180"}]},title_scale:{type:"string",default:null,control:"checkbox",label:"Title Scale Effect",help:"Enable scale effect"},title_fade:{type:"string",default:null,control:"checkbox",label:"Title Fade Effect",help:"Enable fade effect"},text:{type:"string",default:null,control:"textarea",label:"Image Hover Text",help:"Set text, that will go over image. You can use HTML tags"},text_visible:{type:"string",default:null,control:"checkbox",label:"Disable Text Animation",help:"Disable Text Animation (Text Always Visible)"},text_delay:{type:"string",default:null,control:"select",label:"Text Effect Delay",help:"Set text effect delay",options:[{value:"",label:"None"},{value:"03",label:"0,3 seconds"},{value:"06",label:"0,6 seconds"},{value:"09",label:"0,9 seconds"},{value:"12",label:"1,2 seconds"},{value:"15",label:"1,5 seconds"}]},text_slide:{type:"string",default:null,control:"select",label:"Text Slide Effect",help:"Set text slide effect direction",options:[{value:"",label:"None"},{value:"from-left",label:"From left"},{value:"from-right",label:"From right"},{value:"from-bottom",label:"From bottom"},{value:"from-top",label:"From top"}]},text_rotation:{type:"string",default:null,control:"select",label:"Text Rotation Effect",help:"Set text rotation effect direction and angle",options:[{value:"",label:"None"},{value:"cw-90",label:"Clockwise 90"},{value:"cw-180",label:"Clockwise 180"},{value:"ccw-90",label:"Counterclockwise 90"},{value:"ccw-180",label:"Counterclockwise 180"}]},text_scale:{type:"string",default:null,control:"checkbox",label:"Text Scale Effect",help:"Enable scale effect"},text_fade:{type:"string",default:null,control:"checkbox",label:"Text Fade Effect",help:"Enable fade effect"}};e.registerBlockType("hoverpack/block",{title:"Hover Effects Pack",icon:"format-image",category:"common",attributes:a({img:{type:"string",default:null},img_id:{type:"string",default:null},link:{type:"string",default:null}},g),edit:function(e){var l,a,n,o=e.attributes,s=o.img,b=o.link,f=(o.img_id,e.setAttributes),d={};function h(e,l){var t={};t[e]=l,function(e,l){d[e]&&d[e].map(function(e){return e.call(null,l)})}(e,l),f(t)}function y(e){return function(l){h(e,l)}}a=function(e){h("link",e)},(n=d[l="img"]||[]).push(a),d[l]=n;var w=[];for(var x in g){var k=g[x];w.push.apply(w,t(v[k.control]({ctrl_name:x,data:k,value:e.attributes[x],onChange:y(x)})))}var S=e.isSelected&&wp.element.createElement(r,{className:"hoverpack-inspector-controls"},wp.element.createElement("div",{className:"hoverpack-inspector-controls"},wp.element.createElement("div",{className:"control-item inline-item"},wp.element.createElement("label",null,"Image"),wp.element.createElement(c,null,wp.element.createElement(i,{type:"image",onSelect:function(e){h("img",e.url),h("img_id",String(e.id))},value:s,render:function(e){var l=e.open;return wp.element.createElement("button",{type:"button",onClick:l,className:"button inline-button"},"Select the image")}})),wp.element.createElement(p,{label:"",value:s,onChange:y("img"),help:"Select the image"})),wp.element.createElement("div",{className:"control-item"},wp.element.createElement(p,{label:"Image link",value:b,onChange:y("link"),help:"Set image link address"})),w));return function(){m.map(function(e){clearTimeout(e)}),m=[];for(var e=1;e<=3;e++)m.push(setTimeout(function(){hp_document_ready()},500*e))}(),[S,wp.element.createElement(u,{block:"hoverpack/block",attributes:e.attributes})]},save:function(){return null}})}(window.wp.blocks,window.wp.element,window.wp.components,window.wp.editor)}]);