"use strict";(self.vcvWebpackJsonp4x=self.vcvWebpackJsonp4x||[]).push([["element"],{"./eventSummary/index.js":function(e,t,s){var a=s("./node_modules/vc-cake/index.js"),l=s.n(a),i=s("./node_modules/@babel/runtime/helpers/esm/extends.js"),n=s("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),o=s("./node_modules/@babel/runtime/helpers/esm/createClass.js"),c=s("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),r=s("./node_modules/@babel/runtime/helpers/esm/get.js"),u=s("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"),d=s("./node_modules/@babel/runtime/helpers/esm/inherits.js"),m=s("./node_modules/react/index.js");s("./node_modules/react-dom/server.browser.js");function p(e,t,s){return t=(0,u.default)(t),(0,c.default)(e,v()?Reflect.construct(t,s||[],(0,u.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 h=l().getService("api"),f=(l().getService("renderProcessor"),function(e){function t(e){var s;return(0,n.default)(this,t),(s=p(this,t,[e])).eventid="",s.width="",s.align="",s.featured="",s.limit="",s}return(0,d.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){(0,r.default)((0,u.default)(t.prototype),"updateShortcodeToHtml",this).call(this,"[event_summary]",this.ref)}},{key:"componentDidUpdate",value:function(e){var s=this.props.atts,a=s.eventid,l=s.width,i=s.align,n=s.featured,o=s.limit;a&&""!==a&&a!==e.atts.eventid&&(this.eventid="id="+a),l&&""!==l&&l!==e.atts.width&&(this.width="width="+l),i&&i!==e.atts.align&&(this.align="align="+i),n&&""!==n&&n!==e.atts.featured&&(this.featured="featured="+n),o&&"0"!==o&&o!==e.atts.limit&&(this.limit="limit="+o),(0,r.default)((0,u.default)(t.prototype),"updateShortcodeToHtml",this).call(this,"[event_summary ".concat(this.eventid," ").concat(this.width," ").concat(this.align," ").concat(this.featured," ").concat(this.limit,"]"),this.ref)}},{key:"render",value:function(){var e=this,t=this.props,s=t.id,a=t.atts,l=t.editor,n=a.customClass,o=a.metaCustomId,c="vce-text-test-block",r={};"string"==typeof n&&n&&(c=c.concat(" "+n)),o&&(r.id=o);var u=this.applyDO("all");return m.createElement("div",(0,i.default)({className:c},l,r),m.createElement("div",(0,i.default)({className:"vce-text-block-test-wrapper vce",id:"el-"+s},u),m.createElement("div",{className:"vcvhelper",ref:function(t){e.ref=t},"data-vcvs-html":"[event_summary ".concat(this.eventid," ").concat(this.width," ").concat(this.align," ").concat(this.featured," ").concat(this.limit,"]")})))}}]),t}(h.elementComponent));(0,l().getService("cook").add)(s("./eventSummary/settings.json"),(function(e){e.add(f)}))},"./eventSummary/settings.json":function(e){e.exports=JSON.parse('{"featured":{"type":"dropdown","access":"public","value":"","options":{"label":"Show Featured","values":[{"label":"All Events","value":""},{"label":"False","value":"false"},{"label":"True","value":"true"}]}},"align":{"type":"dropdown","access":"public","value":"left","options":{"label":"Align","values":[{"label":"Left","value":"left"},{"label":"Right","value":"right"}]}},"limit":{"type":"number","access":"public","value":"1","options":{"label":"Limit","min":1}},"width":{"type":"number","access":"public","value":"100","options":{"label":"Width","min":100}},"eventid":{"type":"autocomplete","access":"public","value":"","options":{"label":"Event Id","action":"eventId"}},"darkTextSkin":{"type":"toggleSmall","access":"public","value":false},"designOptions":{"type":"designOptions","access":"public","value":{},"options":{"label":"Design Options"}},"editFormTab1":{"type":"group","access":"protected","value":["eventid","width","align","featured","limit","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":"eventSummary"}}')}},[["./eventSummary/index.js"]]]);