"use strict";(self.vcvWebpackJsonp4x=self.vcvWebpackJsonp4x||[]).push([["element"],{"./eventDashboard/index.js":function(e,t,s){var o=s("./node_modules/vc-cake/index.js"),a=s.n(o),n=s("./node_modules/@babel/runtime/helpers/esm/extends.js"),r=s("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),l=s("./node_modules/@babel/runtime/helpers/esm/createClass.js"),c=s("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),p=s("./node_modules/@babel/runtime/helpers/esm/get.js"),i=s("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),u=s("./node_modules/@babel/runtime/helpers/esm/inherits.js"),d=s("./node_modules/react/index.js");s("./node_modules/react-dom/server.browser.js");function m(e,t,s){return t=(0,i.default)(t),(0,c.default)(e,v()?Reflect.construct(t,s||[],(0,i.default)(e).constructor):t.apply(e,s))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}var b=a().getService("api"),f=(a().getService("renderProcessor"),function(e){function t(e){var s;return(0,r.default)(this,t),(s=m(this,t,[e])).posts_per_page="",s}return(0,u.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){(0,p.default)((0,i.default)(t.prototype),"updateShortcodeToHtml",this).call(this,"[event_dashboard]",this.ref)}},{key:"componentDidUpdate",value:function(e){var s=this.props.atts.posts_per_page;s&&"0"!==s&&s!==e.atts.posts_per_page&&(this.posts_per_page="posts_per_page="+s),(0,p.default)((0,i.default)(t.prototype),"updateShortcodeToHtml",this).call(this,"[event_dashboard ".concat(this.posts_per_page,"]"),this.ref)}},{key:"render",value:function(){var e=this,t=this.props,s=t.id,o=t.atts,a=t.editor,r=o.customClass,l=o.metaCustomId,c="vce-text-test-block",p={};"string"==typeof r&&r&&(c=c.concat(" "+r)),l&&(p.id=l);var i=this.applyDO("all");return d.createElement("div",(0,n.default)({className:c},a,p),d.createElement("div",(0,n.default)({className:"vce-text-block-test-wrapper vce",id:"el-"+s},i),d.createElement("div",{className:"vcvhelper",ref:function(t){e.ref=t},"data-vcvs-html":"[event_dashboard ".concat(this.posts_per_page,"]")})))}}]),t}(b.elementComponent));(0,a().getService("cook").add)(s("./eventDashboard/settings.json"),(function(e){e.add(f)}))},"./eventDashboard/settings.json":function(e){e.exports=JSON.parse('{"posts_per_page":{"type":"number","access":"public","value":"","options":{"label":"Post Per Page","min":1}},"darkTextSkin":{"type":"toggleSmall","access":"public","value":false},"designOptions":{"type":"designOptions","access":"public","value":{},"options":{"label":"Design Options"}},"editFormTab1":{"type":"group","access":"protected","value":["posts_per_page","metaCustomId","customClass"],"options":{"label":"General"}},"metaEditFormTabs":{"type":"group","access":"protected","value":["editFormTab1","designOptions"]},"relatedTo":{"type":"group","access":"protected","value":["General"]},"metaOrder":{"type":"number","access":"protected","value":3},"customClass":{"type":"string","access":"public","value":"","options":{"label":"Extra class name","description":"Add an extra class name to the element and refer to it from Custom CSS option."}},"metaCustomId":{"type":"customId","access":"public","value":"","options":{"label":"Element ID","description":"Apply unique ID to element to link directly to it by using #your_id (for element ID use lowercase input only)."}},"tag":{"access":"protected","type":"string","value":"eventDashboard"}}')}},[["./eventDashboard/index.js"]]]);