"use strict";(self.vcvWebpackJsonp4x=self.vcvWebpackJsonp4x||[]).push([["element"],{"./eventRegistration/index.js":function(e,t,s){var n=s("./node_modules/vc-cake/index.js"),o=s.n(n),a=s("./node_modules/@babel/runtime/helpers/esm/extends.js"),l=s("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=s("./node_modules/@babel/runtime/helpers/esm/createClass.js"),i=s("./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"),c=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"),p=s("./node_modules/react/index.js");s("./node_modules/react-dom/server.browser.js");function m(e,t,s){return t=(0,u.default)(t),(0,i.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 f=o().getService("api"),b=(o().getService("renderProcessor"),function(e){function t(e){var s;return(0,l.default)(this,t),(s=m(this,t,[e])).eventid="",s}return(0,d.default)(t,e),(0,r.default)(t,[{key:"componentDidMount",value:function(){(0,c.default)((0,u.default)(t.prototype),"updateShortcodeToHtml",this).call(this,"[event_register]",this.ref)}},{key:"componentDidUpdate",value:function(e){var s=this.props.atts.eventid;s&&""!==s&&s!==e.atts.eventid&&(this.eventid="id="+s),(0,c.default)((0,u.default)(t.prototype),"updateShortcodeToHtml",this).call(this,"[event_register ".concat(this.eventid,"]"),this.ref)}},{key:"render",value:function(){var e=this,t=this.props,s=t.id,n=t.atts,o=t.editor,l=n.customClass,r=n.metaCustomId,i="vce-text-test-block",c={};"string"==typeof l&&l&&(i=i.concat(" "+l)),r&&(c.id=r);var u=this.applyDO("all");return p.createElement("div",(0,a.default)({className:i},o,c),p.createElement("div",(0,a.default)({className:"vce-text-block-test-wrapper vce",id:"el-"+s},u),p.createElement("div",{className:"vcvhelper",ref:function(t){e.ref=t},"data-vcvs-html":"[event_register ".concat(this.eventid,"]")})))}}]),t}(f.elementComponent));(0,o().getService("cook").add)(s("./eventRegistration/settings.json"),(function(e){e.add(b)}))},"./eventRegistration/settings.json":function(e){e.exports=JSON.parse('{"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","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":"eventRegistration"}}')}},[["./eventRegistration/index.js"]]]);