(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[13],{170:function(t,e,c){"use strict";c.d(e,"a",(function(){return o}));var o=function(t,e){var c=[];return Object.keys(t).forEach((function(o){if(void 0!==e[o])switch(t[o].type){case"boolean":c[o]="false"!==e[o]&&!1!==e[o];break;case"number":c[o]=parseInt(e[o],10);break;case"array":case"object":c[o]=JSON.parse(e[o]);break;default:c[o]=e[o]}else c[o]=t[o].default})),c}},273:function(t,e,c){"use strict";var o=c(11),n=c.n(o),r=c(170);e.a=function(t){return function(e){return function(c){var o=Object(r.a)(t,c);return React.createElement(e,n()({},c,o))}}}},278:function(t,e){},298:function(t,e,c){"use strict";c.r(e);var o=c(26),n=c(273),r=c(6),a=c.n(r),i=(c(4),c(5)),s=c.n(i),l=c(16),u=c(66),p=c(179),b=c(8),f=function(t){var e=t.color,c=t.fontSize;return Object(b.C)()?{color:e,fontSize:c}:{}},O=c(178),d=(c(278),Object(O.withProductDataContext)((function(t){var e,c,o,n=t.className,r=t.headingLevel,i=void 0===r?2:r,O=t.productLink,d=void 0===O||O,j=t.align,m=t.color,y=t.customColor,g=t.fontSize,v=t.customFontSize,w=Object(u.useInnerBlockLayoutContext)().parentClassName,k=Object(u.useProductDataContext)().product,C="h".concat(i),h=Object(p.getColorClassName)("color",m),S=Object(p.getFontSizeClass)(g),z=s()((e={"has-text-color":m||y,"has-font-size":g||v},a()(e,h,h),a()(e,S,S),e));if(!k.id)return React.createElement(C,{className:s()(n,"wc-block-components-product-title",(o={},a()(o,"".concat(w,"__product-title"),w),a()(o,"wc-block-components-product-title--align-".concat(j),j&&Object(b.C)()),a()(o,z,Object(b.C)()),o)),style:f({color:y,fontSize:v})});var P=Object(l.decodeEntities)(k.name);return React.createElement(C,{className:s()(n,"wc-block-components-product-title",(c={},a()(c,"".concat(w,"__product-title"),w),a()(c,"wc-block-components-product-title__align-".concat(j),j&&Object(b.C)()),c))},d?React.createElement("a",{href:k.permalink,rel:"nofollow",className:s()(a()({},z,Object(b.C)())),style:f({color:y,fontSize:v})},P):P)})));function j(t,e){var c=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),c.push.apply(c,o)}return c}function m(t){for(var e=1;e<arguments.length;e++){var c=null!=arguments[e]?arguments[e]:{};e%2?j(Object(c),!0).forEach((function(e){a()(t,e,c[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(c)):j(Object(c)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(c,e))}))}return t}var y={headingLevel:{type:"number",default:2},productLink:{type:"boolean",default:!0},productId:{type:"number",default:0}};Object(b.C)()&&(y=m(m({},y),{},{align:{type:"string"},color:{type:"string"},customColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"}}));var g=y;e.default=Object(o.compose)(Object(n.a)(g))(d)}}]);
