(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[79,77],{120:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const o=t=>"number"==typeof t},20:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return c}));var o=n(38);const r=t=>!Object(o.a)(t)&&t instanceof Object&&t.constructor===Object;function c(t,e){return r(t)&&e in t}},286:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o=function(){return o=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};Object.create,Object.create},287:function(t,e,n){"use strict";function o(t){return t.toLowerCase()}n.d(e,"a",(function(){return i}));var r=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],c=/[^A-Z0-9]+/gi;function i(t,e){void 0===e&&(e={});for(var n=e.splitRegexp,i=void 0===n?r:n,l=e.stripRegexp,a=void 0===l?c:l,u=e.transform,d=void 0===u?o:u,f=e.delimiter,b=void 0===f?" ":f,v=s(s(t,i,"$1\0$2"),a,"\0"),p=0,m=v.length;"\0"===v.charAt(p);)p++;for(;"\0"===v.charAt(m-1);)m--;return v.slice(p,m).split("\0").map(d).join(b)}function s(t,e,n){return e instanceof RegExp?t.replace(e,n):e.reduce((function(t,e){return t.replace(e,n)}),t)}},29:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const o=t=>"string"==typeof t},290:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var o=n(286),r=n(287);function c(t,e){return void 0===e&&(e={}),function(t,e){return void 0===e&&(e={}),Object(r.a)(t,Object(o.a)({delimiter:"."},e))}(t,Object(o.a)({delimiter:"-"},e))}},291:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n(4),r=n.n(o),c=n(20),i=n(29),s=n(290),l=n(132);function a(t={}){const e={};return Object(l.getCSSRules)(t,{selector:""}).forEach((t=>{e[t.key]=t.value})),e}function u(t,e){return t&&e?`has-${Object(s.a)(e)}-${t}`:""}const d=t=>{const e=(t=>{const e=Object(c.a)(t)?t:{style:{}};let n=e.style;return Object(i.a)(n)&&(n=JSON.parse(n)||{}),Object(c.a)(n)||(n={}),{...e,style:n}})(t),n=function(t){var e,n,o,i,s,l,d;const{backgroundColor:f,textColor:b,gradient:v,style:p}=t,m=u("background-color",f),g=u("color",b),y=function(t){if(t)return`has-${t}-gradient-background`}(v),O=y||(null==p||null===(e=p.color)||void 0===e?void 0:e.gradient);return{className:r()(g,y,{[m]:!O&&!!m,"has-text-color":b||(null==p||null===(n=p.color)||void 0===n?void 0:n.text),"has-background":f||(null==p||null===(o=p.color)||void 0===o?void 0:o.background)||v||(null==p||null===(i=p.color)||void 0===i?void 0:i.gradient),"has-link-color":Object(c.a)(null==p||null===(s=p.elements)||void 0===s?void 0:s.link)?null==p||null===(l=p.elements)||void 0===l||null===(d=l.link)||void 0===d?void 0:d.color:void 0}),style:a({color:(null==p?void 0:p.color)||{}})}}(e),o=function(t){var e;const n=(null===(e=t.style)||void 0===e?void 0:e.border)||{};return{className:function(t){var e;const{borderColor:n,style:o}=t,c=n?u("border-color",n):"";return r()({"has-border-color":!!n||!(null==o||null===(e=o.border)||void 0===e||!e.color),[c]:!!c})}(t),style:a({border:n})}}(e),s=function(t){var e;return{className:void 0,style:a({spacing:(null===(e=t.style)||void 0===e?void 0:e.spacing)||{}})}}(e),l=(t=>{const e=Object(c.a)(t.style.typography)?t.style.typography:{},n=Object(i.a)(e.fontFamily)?e.fontFamily:"";return{className:t.fontFamily?`has-${t.fontFamily}-font-family`:n,style:{fontSize:t.fontSize?`var(--wp--preset--font-size--${t.fontSize})`:e.fontSize,fontStyle:e.fontStyle,fontWeight:e.fontWeight,letterSpacing:e.letterSpacing,lineHeight:e.lineHeight,textDecoration:e.textDecoration,textTransform:e.textTransform}}})(e);return{className:r()(l.className,n.className,o.className,s.className),style:{...l.style,...n.style,...o.style,...s.style}}}},38:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const o=t=>null===t},466:function(t,e,n){"use strict";n.r(e),n.d(e,"Block",(function(){return b}));var o=n(0),r=n(1),c=n(4),i=n.n(c),s=n(60),l=n(291),a=n(145),u=n(120),d=n(282);const f=t=>{const{reviews:e}=t,n=e?Object(r.sprintf)(/* translators: %s is referring to the total of reviews for a product */
Object(r._n)("(%s customer review)","(%s customer reviews)",e,"woocommerce"),e):Object(r.__)("(X customer reviews)","woocommerce");return Object(o.createElement)("span",{className:"wc-block-components-product-rating-counter__reviews_count"},Object(o.createElement)(d.Disabled,null,Object(o.createElement)("a",{href:"/"},n)))},b=t=>{const{textAlign:e,shouldDisplayMockedReviewsWhenProductHasNoReviews:n}=t,r=Object(l.a)(t),{parentClassName:c}=Object(s.useInnerBlockLayoutContext)(),{product:a}=Object(s.useProductDataContext)(),d=(t=>{const e=Object(u.a)(t.review_count)?t.review_count:parseInt(t.review_count,10);return Number.isFinite(e)&&e>0?e:0})(a),b=i()(r.className,"wc-block-components-product-rating-counter",{[`${c}__product-rating`]:c,[`has-text-align-${e}`]:e});if(d||n)return Object(o.createElement)("div",{className:b,style:r.style},Object(o.createElement)("div",{className:"wc-block-components-product-rating-counter__container"},Object(o.createElement)(f,{reviews:d})))};e.default=Object(a.withProductDataContext)(b)}}]);