(window.vcvWebpackJsonp4x=window.vcvWebpackJsonp4x||[]).push([[0],{"./portoShopToggle/index.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/vc-cake/index.js"),r=o("./node_modules/@babel/runtime/helpers/extends.js"),s=o.n(r),i=o("./node_modules/@babel/runtime/helpers/classCallCheck.js"),l=o.n(i),a=o("./node_modules/@babel/runtime/helpers/createClass.js"),c=o.n(a),u=o("./node_modules/@babel/runtime/helpers/inherits.js"),p=o.n(u),d=o("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),g=o.n(d),v=o("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),h=o.n(v),m=o("./node_modules/react/index.js"),b=o.n(m);function f(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,n=h()(e);if(t){var r=h()(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return g()(this,o)}}var y=function(e){p()(o,e);var t=f(o);function o(){return l()(this,o),t.apply(this,arguments)}return c()(o,[{key:"getShortcode",value:function(){return"[porto_sb_toggle]"}},{key:"render",value:function(){var e=this.props,t=e.id,o=e.atts,n=e.editor,r=o.sbAlign,i=o.el_class,l="vc-shop-grid-toggle";l=l.concat(" shop-grid-toggle-".concat(t)),r&&(l=l.concat(" text-".concat(r))),"string"==typeof i&&i&&(l+=" "+i);var a=this.applyDO("margin border padding animation");return b.a.createElement("div",s()({className:l},n,{id:"el-"+t},a),b.a.createElement("div",{className:"vcvhelper",ref:"vcvhelper","data-vcvs-html":this.getShortcode()},b.a.createElement("div",{class:"gridlist-toggle"},b.a.createElement("a",{href:"#",id:"grid",title:"Grid View"}),b.a.createElement("a",{href:"#",id:"list",title:"List View",class:"active"})),b.a.createElement("br",null),"To change the products Archives's layout, go to Porto / Theme Options / WooCommerce / Product Archives.",b.a.createElement("br",null),"The editor's preview might look different from the live site. Please check the frontend."))}}]),o}(Object(n.getService)("portoComponent").shortcodeComponent);(0,Object(n.getService)("cook").add)(o("./portoShopToggle/settings.json"),(function(e){e.add(y)}))},"./portoShopToggle/settings.json":function(e){e.exports=JSON.parse('{"sbAlign":{"type":"buttonGroup","access":"public","value":"left","options":{"label":"Alignment","values":[{"label":"Left","value":"left","icon":"vcv-ui-icon-attribute-alignment-left"},{"label":"Center","value":"center","icon":"vcv-ui-icon-attribute-alignment-center"},{"label":"Right","value":"right","icon":"vcv-ui-icon-attribute-alignment-right"}]}},"designOptions":{"type":"designOptions","access":"public","value":{},"options":{"label":"Design Options"}},"editFormTab1":{"type":"group","access":"protected","value":["sbAlign","el_class"],"options":{"label":"General"}},"metaEditFormTabs":{"type":"group","access":"protected","value":["editFormTab1","designOptions"]},"relatedTo":{"type":"group","access":"protected","value":["General"]},"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."}},"tag":{"access":"protected","type":"string","value":"portoShopToggle"}}')}},[["./portoShopToggle/index.js"]]]);