File "blocks.build.js"
Full Path: /home/londdqdw/public_html/06/wp-content/plugins/revslider/admin/includes/shortcode_generator/gutenberg/dist/blocks.build.js
File size: 14.62 KB
MIME-type: text/plain
Charset: utf-8
(window.webpackJsonp_revslider_gutenberg=window.webpackJsonp_revslider_gutenberg||[]).push([[1],{8:function(t,e,r){}}]),function(t){function e(e){for(var i,o,a=e[0],l=e[1],p=e[2],u=0,d=[];u<a.length;u++)o=a[u],Object.prototype.hasOwnProperty.call(s,o)&&s[o]&&d.push(s[o][0]),s[o]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(t[i]=l[i]);for(c&&c(e);d.length;)d.shift()();return n.push.apply(n,p||[]),r()}function r(){for(var t,e=0;e<n.length;e++){for(var r=n[e],i=!0,a=1;a<r.length;a++){var l=r[a];0!==s[l]&&(i=!1)}i&&(n.splice(e--,1),t=o(o.s=r[0]))}return t}var i={},s={0:0},n=[];function o(e){if(i[e])return i[e].exports;var r=i[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=t,o.c=i,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(r,i,function(e){return t[e]}.bind(null,i));return r},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="";var a=window.webpackJsonp_revslider_gutenberg=window.webpackJsonp_revslider_gutenberg||[],l=a.push.bind(a);a.push=e,a=a.slice();for(var p=0;p<a.length;p++)e(a[p]);var c=l;n.push([14,1]),r()}([function(t,e){t.exports=window.wp.element},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(e)}t.exports=r},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}t.exports=function(t,e,i){return e&&r(t.prototype,e),i&&r(t,i),t}},function(t,e,r){var i=r(10);t.exports=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,writable:!0,configurable:!0}}),e&&i(t,e)}},function(t,e,r){var i=r(11),s=r(1);t.exports=function(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?s(t):e}},,function(t,e,r){},function(t,e){function r(e,i){return t.exports=r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(e,i)}t.exports=r},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},function(t,e){t.exports=window.wp.blockEditor},function(t,e){t.exports=window.wp.components},function(t,e,r){"use strict";r.r(e);var i=r(3),s=r.n(i),n=r(0),o=(r(8),r(9),[{attributes:{checked:{type:"boolean",default:!1},modal:{type:"boolean",default:!1},text:{selector:".revslider",type:"string",source:"text"},sliderTitle:{selector:".revslider",type:"string",source:"attribute",attribute:"data-slidertitle"},sliderImage:{type:"string"},hideSliderImage:{boolean:!1}},save:function(t){var e=t.attributes,r=e.text,i=e.sliderTitle,s=e.modal;return Object(n.createElement)("div",{className:"revslider","data-modal":s,"data-slidertitle":i},r)}},{attributes:{checked:{type:"boolean",default:!1},text:{selector:".revslider",type:"string",source:"text"},sliderTitle:{selector:".revslider",type:"string",source:"attribute",attribute:"data-slidertitle"}},save:function(t){return Object(n.createElement)("div",{className:"revslider","data-slidertitle":t.attributes.sliderTitle},t.attributes.text)}},{attributes:{checked:{type:"boolean",default:!1},modal:{type:"boolean",default:!1},popup:{type:"object"},text:{selector:".revslider",type:"string",source:"text"},sliderTitle:{selector:".revslider",type:"string",source:"attribute",attribute:"data-slidertitle"},sliderImage:{type:"string"},hideSliderImage:{boolean:!1},offset:{type:"object"},layout:{type:"string "},alias:{type:"string"},zindex:{type:"string"},shortcode:{type:"string"}},save:function(t){var e,r=t.attributes,i=r.text,s=r.sliderTitle,o=r.modal,a=r.zindex;return e=a?"z-index:"+a+";":"",Object(n.createElement)("div",{className:"revslider","data-modal":o,"data-slidertitle":s,style:e},i)}},{attributes:{checked:{type:"boolean",default:!1},modal:{type:"boolean",default:!1},popup:{type:"object"},content:{selector:".revslider",type:"string",source:"text"},text:{selector:".revslider",type:"string",source:"text"},sliderTitle:{selector:".revslider",type:"string",source:"attribute",attribute:"data-slidertitle"},sliderImage:{type:"string"},hideSliderImage:{boolean:!1},offset:{type:"object"},layout:{type:"string "},alias:{type:"string"},zindex:{type:"string"},shortcode:{type:"string"}},save:function(t){var e,r=t.attributes,i=r.text,s=r.content,o=r.sliderTitle,a=r.modal,l=r.zindex;e=l?"z-index:"+l+";":"";var p=!s&&i?i:s;return Object(n.createElement)("div",{className:"revslider","data-modal":a,"data-slidertitle":o,style:e},p)}}]),a=r(4),l=r.n(a),p=r(5),c=r.n(p),u=r(1),d=r.n(u),b=r(6),f=r.n(b),y=r(7),h=r.n(y),v=r(2),m=r.n(v);var g=function(t){f()(s,t);var e,r,i=(e=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,i=m()(e);if(r){var s=m()(this).constructor;t=Reflect.construct(i,arguments,s)}else t=i.apply(this,arguments);return h()(this,t)});function s(){var t;return l()(this,s),(t=i.apply(this,arguments)).state={response:void 0,alias:t.props.attributes.alias,slidertitle:t.props.attributes.slidertitle},t}return c()(s,[{key:"componentDidMount",value:function(){this.loadSliderImage()}},{key:"componentDidUpdate",value:function(){this.state.alias!=this.props.attributes.alias&&this.loadSliderImage()}},{key:"loadSliderImage",value:function(){this.setState({response:void 0}),this.setState({alias:this.props.attributes.alias});var t=this;if(!this.props.attributes.alias&&(void 0!==this.props.attributes.content||void 0!==this.props.attributes.text)){var e=void 0!==this.props.attributes.content?RVS.SC.parseShortCode(this.props.attributes.content):RVS.SC.parseShortCode(this.props.attributes.text);e.attributes.alias&&(this.props.attributes.alias=e.attributes.alias)}this.props.attributes.alias&&RVS.F.ajaxRequest("getSliderImage",{alias:this.props.attributes.alias},(function(e){e.success&&(void 0!==e&&void 0!==e.image&&t.setState({response:e}),RVS.F.showWaitAMinute({fadeIn:0,text:RVS_LANG.loadingcontent}))}))}},{key:"render",value:function(){return this.state.response&&""!==this.state.response.image?[Object(n.createElement)("div",{key:this.state.response.image,className:"sliderImage"},Object(n.createElement)("div",{style:{backgroundImage:"url("+this.state.response.image+")"}}))]:this.state.response?[Object(n.createElement)("div",{key:"0",className:"noSliderImage"})]:[Object(n.createElement)("div",{key:"12",className:"sliderImageLoading"})]}}]),s}(wp.element.Component);function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function S(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach((function(e){s()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var w=wp.element.Component,j=wp.components,x=j.TextControl,k=j.Button,_=j.Tooltip;if(void 0!==wp.blockEditor)var E=wp.blockEditor,C=E.InspectorControls,R=E.InspectorAdvancedControls;else{var P=wp.editor;C=P.InspectorControls,R=P.InspectorAdvancedControls}var I=function(t){f()(s,t);var e,r,i=(e=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,i=m()(e);if(r){var s=m()(this).constructor;t=Reflect.construct(i,arguments,s)}else t=i.apply(this,arguments);return h()(this,t)});function s(){var t;return l()(this,s),(t=i.apply(this,arguments)).state=jQuery.extend(!0,{},t.props.attributes),window.revslider_react={},t.openBlockSettings=t.openBlockSettings.bind(d()(t)),t.openLibrary=t.openLibrary.bind(d()(t)),t.openOptimizer=t.openOptimizer.bind(d()(t)),t.setwrapperid=t.setwrapperid.bind(d()(t)),t.setSliderAttributes=t.setSliderAttributes.bind(d()(t)),t.openSliderEditor=t.openSliderEditor.bind(d()(t)),t}return c()(s,[{key:"componentDidMount",value:function(){if(revslider_react=this,RVS.SC.BLOCK=this.state,this.props.attributes.content||this.props.attributes.text||!wp.data.select("core/editor").isEditedPostDirty()){if(!this.props.attributes.alias){var t=void 0!==this.props.attributes.content?RVS.SC.parseShortCode(this.props.attributes.content):RVS.SC.parseShortCode(this.props.attributes.text);t.attributes.alias&&(this.props.attributes.alias=t.attributes.alias,RVS.SC.BLOCK.alias=this.props.attributes.alias,this.props.setAttributes({alias:t.attributes.alias}))}this.props.attributes.slidertitle||this.props.attributes.sliderTitle&&this.props.setAttributes({slidertitle:this.props.attributes.sliderTitle})}else RVS.SC.openTemplateLibrary("gutenberg")}},{key:"openBlockSettings",value:function(){if(RVS.SC.BLOCK=this.state,revslider_react=this,!this.props.attributes.alias)return!1;RVS.SC.openBlockSettings("gutenberg",this.props.attributes.content)}},{key:"openLibrary",value:function(){revslider_react=this,RVS.SC.BLOCK=this.props.attributes,RVS.SC.openTemplateLibrary("gutenberg")}},{key:"openSliderEditor",value:function(){if(!this.props.attributes.alias)return!1;RVS.SC.openSliderEditor(this.props.attributes.alias)}},{key:"setwrapperid",value:function(t){revslider_react=this,this.props.setAttributes({wrapperid:t}),RVS.SC.BLOCK=this.state,RVS.SC.BLOCK.wrapperid=t}},{key:"openOptimizer",value:function(){if(!this.props.attributes.alias)return!1;RVS.SC.openOptimizer(this.props.attributes.alias)}},{key:"setSliderAttributes",value:function(t){setAttributes({alias:t}),setAttributes({sliderImage:this.state.sliderImage})}},{key:"render",value:function(){var t=this;revslider_react=this;var e=this.props.setAttributes;return!this.props.isSelected&&RVS.SC.updateBlockViews(!1),this.props.attributes.slidertitle||this.props.attributes.sliderTitle&&this.props.setAttributes({slidertitle:this.props.attributes.sliderTitle}),[Object(n.createElement)(C,{key:"revslider_opt_"+this.props.attributes.alias},this.props.attributes.alias&&Object(n.createElement)("div",{className:"rs_optimizer_button_wrapper",onClick:this.openOptimizer},Object(n.createElement)(k,{isDefault:!0,className:"rs_optimizer_button"},"flash_on"),Object(n.createElement)("span",null,"Optimize File Sizes"))),Object(n.createElement)(R,{key:"revslider_wrap_"+this.props.attributes.alias},Object(n.createElement)(x,{label:"Module Wrapper IDs",value:this.props.attributes.wrapperid,onChange:function(e){return t.setwrapperid(e)},help:"Enter a word or two — without spaces or special characters — to make a unique web address just for this module."})),Object(n.createElement)("div",{key:"revslider_div_"+this.props.attributes.alias,className:"revslider_block","data-modal":this.props.attributes.modal},Object(n.createElement)("div",{className:"sliderBar"},Object(n.createElement)("span",null,this.props.attributes.slidertitle," "),Object(n.createElement)(x,{className:"slider_slug",value:this.props.attributes.content,onChange:function(e){return setSliderAttributes(t.props.attributes.content)}}),Object(n.createElement)(_,{text:"Open Block Settings"},Object(n.createElement)(k,{isDefault:!0,onClick:this.openBlockSettings,className:"slider_editor_button"},"tune")),Object(n.createElement)(_,{text:"Open Slider Editor"},Object(n.createElement)(k,{isDefault:!0,onClick:this.openSliderEditor,className:"slider_editor_button"},"edit")),Object(n.createElement)(k,{isDefault:!0,onClick:this.openLibrary,className:"slider_edit_button"},"Select Module")),Object(n.createElement)(g,S({setAttributes:e},this.props)))]}}]),s}(w);function T(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function D(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?T(Object(r),!0).forEach((function(e){s()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}r(12),r(13);var __=wp.i18n.__,A=wp.blocks.registerBlockType;wp.element.Component,wp.compose.withState,e.default=A("themepunch/revslider",{title:__("Slider Revolution","revslider"),description:__("Add your Slider Revolution 6 Module!","revslider"),category:"common",icon:{src:"update",background:"rgb(94, 53, 177)",color:"white",viewbox:"0 0 28 28"},keywords:[__("Banner","revslider"),__("CTA","revslider"),__("Slider","revslider")],attributes:{checked:{type:"boolean",default:!1},modal:{type:"boolean",default:!1},content:{selector:".revslider",type:"string",source:"text"},text:{selector:".revslider",type:"string",source:"text"},slidertitle:{selector:".revslider",type:"string",source:"attribute",attribute:"data-slidertitle"},sliderImage:{type:"string"},hideSliderImage:{boolean:!1},alias:{type:"string"},zindex:{type:"string"},wrapperid:{type:"string"}},edit:function(t){var e=t.setAttributes;return t.attributes.wrapperid,[Object(n.createElement)("div",{key:"1"},Object(n.createElement)(I,D({setAttributes:e},t)))]},deprecated:o,save:function(t){var e,r=t.attributes,i=r.text,s=r.content,o=r.slidertitle,a=r.modal,l=r.zindex,p=r.wrapperid;e=l?"z-index:"+l+";":"";var c=!s&&i?i:s;return Object(n.createElement)("div",{className:"revslider",id:p,"data-modal":a,"data-slidertitle":o,style:e},c)}})}]);