"use strict";(globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[]).push([[8647],{4514:(t,e,o)=>{o.r(e),o.d(e,{Block:()=>i,default:()=>u});var r=o(4921),n=o(415),s=o(371),a=o(7723),c=o(1616),l=o(790);const i=t=>{const{textAlign:e}=t,o=(0,s.p)(t),{product:c}=(0,n.useProductDataContext)(),i=(0,r.A)(o.className,"wc-block-components-product-average-rating",{[`has-text-align-${e}`]:e});return(0,l.jsx)("div",{className:i,style:o.style,children:Number(c.average_rating)>0?c.average_rating:(0,a.__)("No ratings","woocommerce")})},u=(0,c.withProductDataContext)(i)},371:(t,e,o)=>{o.d(e,{p:()=>c});var r=o(4921),n=o(3993),s=o(219),a=o(17);const c=t=>{const e=(t=>{const e=(0,n.isObject)(t)?t:{style:{}};let o=e.style;return(0,n.isString)(o)&&(o=JSON.parse(o)||{}),(0,n.isObject)(o)||(o={}),{...e,style:o}})(t),o=(0,a.BK)(e),c=(0,a.aR)(e),l=(0,a.fo)(e),i=(0,s.x)(e);return{className:(0,r.A)(i.className,o.className,c.className,l.className),style:{...i.style,...o.style,...c.style,...l.style}}}},219:(t,e,o)=>{o.d(e,{x:()=>n});var r=o(3993);const n=t=>{const e=(0,r.isObject)(t.style.typography)?t.style.typography:{},o=(0,r.isString)(e.fontFamily)?e.fontFamily:"";return{className:t.fontFamily?`has-${t.fontFamily}-font-family`:o,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}}}},17:(t,e,o)=>{o.d(e,{BK:()=>i,aR:()=>u,fo:()=>g});var r=o(4921),n=o(7356),s=o(9786),a=o(3993);function c(t={}){const e={};return(0,s.getCSSRules)(t,{selector:""}).forEach((t=>{e[t.key]=t.value})),e}function l(t,e){return t&&e?`has-${(0,n.c)(e)}-${t}`:""}function i(t){const{backgroundColor:e,textColor:o,gradient:n,style:s}=t,i=l("background-color",e),u=l("color",o),g=function(t){if(t)return`has-${t}-gradient-background`}(n),y=g||s?.color?.gradient;return{className:(0,r.A)(u,g,{[i]:!y&&!!i,"has-text-color":o||s?.color?.text,"has-background":e||s?.color?.background||n||s?.color?.gradient,"has-link-color":(0,a.isObject)(s?.elements?.link)?s?.elements?.link?.color:void 0}),style:c({color:s?.color||{}})}}function u(t){const e=t.style?.border||{};return{className:function(t){const{borderColor:e,style:o}=t,n=e?l("border-color",e):"";return(0,r.A)({"has-border-color":!!e||!!o?.border?.color,[n]:!!n})}(t),style:c({border:e})}}function g(t){return{className:void 0,style:c({spacing:t.style?.spacing||{}})}}}}]);