(window.vcvWebpackJsonp4x=window.vcvWebpackJsonp4x||[]).push([[0],{"./portoSidebarMenu/index.js":function(e,t,n){"use strict";n.r(t);var o=n("./node_modules/vc-cake/index.js"),s=n.n(o),r=n("./node_modules/@babel/runtime/helpers/extends.js"),a=n.n(r),i=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),l=n.n(i),c=n("./node_modules/@babel/runtime/helpers/createClass.js"),u=n.n(c),p=n("./node_modules/@babel/runtime/helpers/get.js"),d=n.n(p),m=n("./node_modules/@babel/runtime/helpers/inherits.js"),h=n.n(m),v=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),b=n.n(v),f=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),_=n.n(f),g=n("./node_modules/react/index.js"),y=n.n(g);function S(e){var t=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(e){return!1}}();return function(){var n,o=_()(e);if(t){var s=_()(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return b()(this,n)}}var j=function(e){h()(n,e);var t=S(n);function n(e){return l()(this,n),t.call(this,e)}return u()(n,[{key:"componentDidMount",value:function(){var e=this.props.atts;d()(_()(n.prototype),"updateShortcodeToHtml",this).call(this,this.getMenuShortcode(e.title1,e.nav_menu,e.el_class),this.ref)}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.atts,s=this.getMenuShortcode(o.title1,o.nav_menu,o.el_class);s!==this.getMenuShortcode(e.atts.title1,e.atts.nav_menu,e.el_class)&&d()(_()(n.prototype),"updateShortcodeToHtml",this).call(this,s,this.ref)}},{key:"shouldComponentUpdate",value:function(e,t){return!0}},{key:"getMenuShortcode",value:function(e,t,n){return!!t&&'[porto_sidebar_menu title="'.concat(e,'" nav_menu="').concat(t,'" el_class="').concat(n,'"]')}},{key:"render",value:function(){var e=this,t=this.props,n=t.id,o=t.editor,s=t.atts,r=this.applyDO("all"),i=s.nav_menu,l=s.el_class;return y.a.createElement("div",a()({className:"porto-menu-wrap"},o,{id:"el-"+n},r),i&&y.a.createElement("div",{className:"widget_sidebar_menu main-sidebar-menu vcvhelper",ref:function(t){e.ref=t},"data-vcvs-html":this.getMenuShortcode(s.title1,i,l)}),!i&&"Please select a menu to display.")}}]),n}(Object(o.getService)("portoComponent").shortcodeComponent);(0,s.a.getService("cook").add)(n("./portoSidebarMenu/settings.json"),(function(e){e.add(j)}),{css:!1,editorCss:!1,mixins:{}})},"./portoSidebarMenu/settings.json":function(e){e.exports=JSON.parse('{"title1":{"type":"string","access":"public","value":""},"nav_menu":{"type":"dropdown","access":"public","value":"","options":{"label":"Menu","description":"Select menu to display.","global":"portoMenus"}},"el_class":{"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."}},"designOptions":{"type":"designOptions","access":"public","value":{},"options":{"label":"Design Options"}},"editFormTab1":{"type":"group","access":"protected","value":["title1","nav_menu","el_class"],"options":{"label":"Block"}},"metaEditFormTabs":{"type":"group","access":"protected","value":["editFormTab1","designOptions"]},"relatedTo":{"type":"group","access":"protected","value":["General"]},"tag":{"access":"protected","type":"string","value":"portoSidebarMenu"}}')}},[["./portoSidebarMenu/index.js"]]]);