"use strict";(self.webpackChunkwebpackWcBlocksMainJsonp=self.webpackChunkwebpackWcBlocksMainJsonp||[]).push([[8647],{1579:(t,o,e)=>{e.r(o),e.d(o,{Block:()=>i,default:()=>u});var l=e(1609),n=e(851),r=e(2796),a=e(3566),s=e(7723),c=e(1616);const i=t=>{const{textAlign:o}=t,e=(0,a.p)(t),{product:c}=(0,r.useProductDataContext)(),i=(0,n.A)(e.className,"wc-block-components-product-average-rating",{[`has-text-align-${o}`]:o});return(0,l.createElement)("div",{className:i,style:e.style},Number(c.average_rating)>0?c.average_rating:(0,s.__)("No ratings","woocommerce"))},u=(0,c.withProductDataContext)(i)},3566:(t,o,e)=>{e.d(o,{p:()=>s});var l=e(851),n=e(3993),r=e(92),a=e(6032);const s=t=>{const o=(t=>{const o=(0,n.isObject)(t)?t:{style:{}};let e=o.style;return(0,n.isString)(e)&&(e=JSON.parse(e)||{}),(0,n.isObject)(e)||(e={}),{...o,style:e}})(t),e=(0,a.BK)(o),s=(0,a.aR)(o),c=(0,a.fo)(o),i=(0,r.x)(o);return{className:(0,l.A)(i.className,e.className,s.className,c.className),style:{...i.style,...e.style,...s.style,...c.style}}}},92:(t,o,e)=>{e.d(o,{x:()=>n});var l=e(3993);const n=t=>{const o=(0,l.isObject)(t.style.typography)?t.style.typography:{},e=(0,l.isString)(o.fontFamily)?o.fontFamily:"";return{className:t.fontFamily?`has-${t.fontFamily}-font-family`:e,style:{fontSize:t.fontSize?`var(--wp--preset--font-size--${t.fontSize})`:o.fontSize,fontStyle:o.fontStyle,fontWeight:o.fontWeight,letterSpacing:o.letterSpacing,lineHeight:o.lineHeight,textDecoration:o.textDecoration,textTransform:o.textTransform}}}},6032:(t,o,e)=>{e.d(o,{BK:()=>i,aR:()=>u,fo:()=>d});var l=e(851),n=e(1194),r=e(9786),a=e(3993);function s(t={}){const o={};return(0,r.getCSSRules)(t,{selector:""}).forEach((t=>{o[t.key]=t.value})),o}function c(t,o){return t&&o?`has-${(0,n.c)(o)}-${t}`:""}function i(t){var o,e,n,r,i,u,d;const{backgroundColor:v,textColor:y,gradient:f,style:g}=t,m=c("background-color",v),p=c("color",y),b=function(t){if(t)return`has-${t}-gradient-background`}(f),h=b||(null==g||null===(o=g.color)||void 0===o?void 0:o.gradient);return{className:(0,l.A)(p,b,{[m]:!h&&!!m,"has-text-color":y||(null==g||null===(e=g.color)||void 0===e?void 0:e.text),"has-background":v||(null==g||null===(n=g.color)||void 0===n?void 0:n.background)||f||(null==g||null===(r=g.color)||void 0===r?void 0:r.gradient),"has-link-color":(0,a.isObject)(null==g||null===(i=g.elements)||void 0===i?void 0:i.link)?null==g||null===(u=g.elements)||void 0===u||null===(d=u.link)||void 0===d?void 0:d.color:void 0}),style:s({color:(null==g?void 0:g.color)||{}})}}function u(t){var o;const e=(null===(o=t.style)||void 0===o?void 0:o.border)||{};return{className:function(t){var o;const{borderColor:e,style:n}=t,r=e?c("border-color",e):"";return(0,l.A)({"has-border-color":!!e||!(null==n||null===(o=n.border)||void 0===o||!o.color),[r]:!!r})}(t),style:s({border:e})}}function d(t){var o;return{className:void 0,style:s({spacing:(null===(o=t.style)||void 0===o?void 0:o.spacing)||{}})}}}}]);