(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[8185],{1985:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>v});var n=o(9196),s=o(7608),r=o.n(s),l=o(9307),c=o(987);const a=t=>t.replace(/<\/?[a-z][^>]*?>/gi,""),i=(t,e)=>t.replace(/[\s|\.\,]+$/i,"")+e;var u=o(5266);const d=({source:t,maxLength:e=15,countType:o="words",className:s="",style:r={}})=>{const d=(0,l.useMemo)((()=>((t,e=15,o="words")=>{const n=(0,c.autop)(t);if((0,u.count)(n,o)<=e)return n;const s=(t=>{const e=t.indexOf("</p>");return-1===e?t:t.substr(0,e+4)})(n);return(0,u.count)(s,o)<=e?s:"words"===o?((t,e,o="&hellip;",n=!0)=>{const s=a(t),r=s.split(" ").splice(0,e).join(" ");return r===s?n?(0,c.autop)(s):s:n?(0,c.autop)(i(r,o)):i(r,o)})(s,e):((t,e,o=!0,n="&hellip;",s=!0)=>{const r=a(t),l=r.slice(0,e);if(l===r)return s?(0,c.autop)(r):r;if(o)return(0,c.autop)(i(l,n));const u=l.match(/([\s]+)/g),d=u?u.length:0,p=r.slice(0,e+d);return s?(0,c.autop)(i(p,n)):i(p,n)})(s,e,"characters_including_spaces"===o)})(t,e,o)),[t,e,o]);return(0,n.createElement)(l.RawHTML,{style:r,className:s},d)};var p=o(8752),m=o(2864),y=o(947),f=o(721);o(4950);const v=(0,f.withProductDataContext)((t=>{const{className:e}=t,{parentClassName:o}=(0,m.useInnerBlockLayoutContext)(),{product:s}=(0,m.useProductDataContext)(),l=(0,y.F)(t);if(!s)return(0,n.createElement)("div",{className:r()(e,"wc-block-components-product-summary",{[`${o}__product-summary`]:o})});const c=s.short_description?s.short_description:s.description;return c?(0,n.createElement)(d,{className:r()(e,l.className,"wc-block-components-product-summary",{[`${o}__product-summary`]:o}),source:c,maxLength:150,countType:p.Cm.wordCountType||"words",style:l.style}):null}))},947:(t,e,o)=>{"use strict";o.d(e,{F:()=>a});var n=o(7608),s=o.n(n),r=o(6946),l=o(3392),c=o(172);const a=t=>{const e=(t=>{const e=(0,r.isObject)(t)?t:{style:{}};let o=e.style;return(0,r.isString)(o)&&(o=JSON.parse(o)||{}),(0,r.isObject)(o)||(o={}),{...e,style:o}})(t),o=(0,c.vc)(e),n=(0,c.l8)(e),a=(0,c.su)(e),i=(0,l.f)(e);return{className:s()(i.className,o.className,n.className,a.className),style:{...i.style,...o.style,...n.style,...a.style}}}},3392:(t,e,o)=>{"use strict";o.d(e,{f:()=>s});var n=o(6946);const s=t=>{const e=(0,n.isObject)(t.style.typography)?t.style.typography:{},o=(0,n.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}}}},172:(t,e,o)=>{"use strict";o.d(e,{l8:()=>d,su:()=>p,vc:()=>u});var n=o(7608),s=o.n(n),r=o(7427),l=o(2289),c=o(6946);function a(t={}){const e={};return(0,l.getCSSRules)(t,{selector:""}).forEach((t=>{e[t.key]=t.value})),e}function i(t,e){return t&&e?`has-${(0,r.o)(e)}-${t}`:""}function u(t){var e,o,n,r,l,u,d;const{backgroundColor:p,textColor:m,gradient:y,style:f}=t,v=i("background-color",p),g=i("color",m),h=function(t){if(t)return`has-${t}-gradient-background`}(y),b=h||(null==f||null===(e=f.color)||void 0===e?void 0:e.gradient);return{className:s()(g,h,{[v]:!b&&!!v,"has-text-color":m||(null==f||null===(o=f.color)||void 0===o?void 0:o.text),"has-background":p||(null==f||null===(n=f.color)||void 0===n?void 0:n.background)||y||(null==f||null===(r=f.color)||void 0===r?void 0:r.gradient),"has-link-color":(0,c.isObject)(null==f||null===(l=f.elements)||void 0===l?void 0:l.link)?null==f||null===(u=f.elements)||void 0===u||null===(d=u.link)||void 0===d?void 0:d.color:void 0}),style:a({color:(null==f?void 0:f.color)||{}})}}function d(t){var e;const o=(null===(e=t.style)||void 0===e?void 0:e.border)||{};return{className:function(t){var e;const{borderColor:o,style:n}=t,r=o?i("border-color",o):"";return s()({"has-border-color":!!o||!(null==n||null===(e=n.border)||void 0===e||!e.color),[r]:!!r})}(t),style:a({border:o})}}function p(t){var e;return{className:void 0,style:a({spacing:(null===(e=t.style)||void 0===e?void 0:e.spacing)||{}})}}},4950:()=>{}}]);