(window.vcvWebpackJsonp4x=window.vcvWebpackJsonp4x||[]).push([[0],{"./portoPageHeader/index.js":function(e,t,o){"use strict";o.r(t);var a=o("./node_modules/vc-cake/index.js"),l=o("./node_modules/@babel/runtime/helpers/extends.js"),r=o.n(l),s=o("./node_modules/@babel/runtime/helpers/classCallCheck.js"),i=o.n(s),n=o("./node_modules/@babel/runtime/helpers/createClass.js"),c=o.n(n),p=o("./node_modules/@babel/runtime/helpers/get.js"),u=o.n(p),d=o("./node_modules/@babel/runtime/helpers/inherits.js"),b=o.n(d),g=o("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),m=o.n(g),v=o("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),_=o.n(v),h=o("./node_modules/react/index.js"),f=o.n(h);function y(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 o,a=_()(e);if(t){var l=_()(this).constructor;o=Reflect.construct(a,arguments,l)}else o=a.apply(this,arguments);return m()(this,o)}}var T=function(e){b()(o,e);var t=y(o);function o(e){return i()(this,o),t.call(this,e)}return c()(o,[{key:"componentDidMount",value:function(){var e=this.props.atts;u()(_()(o.prototype),"updateShortcodeToHtml",this).call(this,this.getPageHeaderShortcode(e),this.ref)}},{key:"componentDidUpdate",value:function(e,t){var a=this.props.atts,l=this.getPageHeaderShortcode(a);l!==this.getPageHeaderShortcode(e.atts)&&u()(_()(o.prototype),"updateShortcodeToHtml",this).call(this,l,this.ref)}},{key:"shouldComponentUpdate",value:function(e,t){return!0}},{key:"getPageHeaderShortcode",value:function(e){var t="";for(var o in e){if("boolean"==typeof e[o])t+=" "+o+'="'+(e[o]?"1":"")+'"';else t+=" "+o+'="'+e[o]+'"';if("el_class"===o)break}return"[porto_page_header"+t+"]"}},{key:"render",value:function(){var e=this,t=this.props,o=t.id,a=t.editor,l=t.atts,s=this.applyDO("all");return f.a.createElement("div",r()({className:"porto-page-header-wrap"},a,{id:"el-"+o},s),f.a.createElement("div",{className:"porto-page-header vcvhelper",ref:function(t){e.ref=t},"data-vcvs-html":this.getPageHeaderShortcode(l)}))}}]),o}(Object(a.getService)("portoComponent").shortcodeComponent);(0,Object(a.getService)("cook").add)(o("./portoPageHeader/settings.json"),(function(e){e.add(T)}),{css:!1,editorCss:!1,mixins:!1})},"./portoPageHeader/settings.json":function(e){e.exports=JSON.parse('{"breadcrumbs_type":{"type":"dropdown","access":"public","value":"1","options":{"label":"Breadcrumbs Type","values":[{"label":"Type 1","value":"1"},{"label":"Type 2","value":"2"},{"label":"Type 3","value":"3"},{"label":"Type 4","value":"4"},{"label":"Type 5","value":"5"},{"label":"Type 6","value":"6"},{"label":"Type 7","value":"7"}]}},"page_title":{"type":"string","access":"public","value":"","options":{"label":"Page Title","description":"Please leave this field blank to display default page title."}},"page_sub_title":{"type":"string","access":"public","value":"","options":{"label":"Page Sub Title"}},"hide_breadcrumb":{"type":"toggle","access":"public","value":false,"options":{"label":"Hide Breadcrumbs"}},"breadcrumbs_text_color":{"type":"color","access":"public","value":"","options":{"label":"Breadcrumbs Text Color"}},"breadcrumbs_link_color":{"type":"color","access":"public","value":"","options":{"label":"Breadcrumbs Link Color"}},"page_title_font_size":{"type":"string","access":"public","value":"","options":{"label":"Page Title Font Size"}},"page_title_color":{"type":"color","access":"public","value":"","options":{"label":"Page Title Color"}},"page_title_margin_bottom":{"type":"string","access":"public","value":"","options":{"label":"Page Title Margin Bottom"}},"page_subtitle_color":{"type":"color","access":"public","value":"","options":{"label":"Page Sub Title Color"}},"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":["breadcrumbs_type","page_title","page_sub_title","hide_breadcrumb","breadcrumbs_text_color","breadcrumbs_link_color","page_title_font_size","page_title_color","page_title_margin_bottom","page_subtitle_color","el_class"],"options":{"label":"General"}},"metaEditFormTabs":{"type":"group","access":"protected","value":["editFormTab1","designOptions"]},"relatedTo":{"type":"group","access":"protected","value":["General"]},"tag":{"access":"protected","type":"string","value":"portoPageHeader"}}')}},[["./portoPageHeader/index.js"]]]);