(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[8185],{8281:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>f});var n=o(9307),s=o(4184),r=o.n(s),l=o(987);const c=t=>t.replace(/<\/?[a-z][^>]*?>/gi,""),a=(t,e)=>t.replace(/[\s|\.\,]+$/i,"")+e;var u=o(5266);const i=({source:t,maxLength:e=15,countType:o="words",className:s="",style:r={}})=>{const i=(0,n.useMemo)((()=>((t,e=15,o="words")=>{const n=(0,l.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=c(t),r=s.split(" ").splice(0,e).join(" ");return r===s?n?(0,l.autop)(s):s:n?(0,l.autop)(a(r,o)):a(r,o)})(s,e):((t,e,o=!0,n="&hellip;",s=!0)=>{const r=c(t),u=r.slice(0,e);if(u===r)return s?(0,l.autop)(r):r;if(o)return(0,l.autop)(a(u,n));const i=u.match(/([\s]+)/g),d=i?i.length:0,p=r.slice(0,e+d);return s?(0,l.autop)(a(p,n)):a(p,n)})(s,e,"characters_including_spaces"===o)})(t,e,o)),[t,e,o]);return(0,n.createElement)(n.RawHTML,{style:r,className:s},i)};var d=o(5271),p=o(2864),y=o(3611),m=o(721);o(385);const f=(0,m.withProductDataContext)((t=>{const{className:e}=t,{parentClassName:o}=(0,p.useInnerBlockLayoutContext)(),{product:s}=(0,p.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)(i,{className:r()(e,l.className,"wc-block-components-product-summary",{[`${o}__product-summary`]:o}),source:c,maxLength:150,countType:d.Cm.wordCountType||"words",style:l.style}):null}))},3611:(t,e,o)=>{"use strict";o.d(e,{F:()=>u});var n=o(4184),s=o.n(n),r=o(7884),l=o(2646),c=o(1473),a=o(2661);const u=t=>{const e=(t=>{const e=(0,r.Kn)(t)?t:{style:{}};let o=e.style;return(0,l.H)(o)&&(o=JSON.parse(o)||{}),(0,r.Kn)(o)||(o={}),{...e,style:o}})(t),o=(0,a.vc)(e),n=(0,a.l8)(e),u=(0,a.su)(e),i=(0,c.f)(e);return{className:s()(i.className,o.className,n.className,u.className),style:{...i.style,...o.style,...n.style,...u.style}}}},1473:(t,e,o)=>{"use strict";o.d(e,{f:()=>r});var n=o(7884),s=o(2646);const r=t=>{const e=(0,n.Kn)(t.style.typography)?t.style.typography:{},o=(0,s.H)(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}}}},2661:(t,e,o)=>{"use strict";o.d(e,{l8:()=>d,su:()=>p,vc:()=>i});var n=o(4184),s=o.n(n),r=o(9784),l=o(2289),c=o(7884);function a(t={}){const e={};return(0,l.getCSSRules)(t,{selector:""}).forEach((t=>{e[t.key]=t.value})),e}function u(t,e){return t&&e?`has-${(0,r.o)(e)}-${t}`:""}function i(t){var e,o,n,r,l,i,d;const{backgroundColor:p,textColor:y,gradient:m,style:f}=t,v=u("background-color",p),g=u("color",y),h=function(t){if(t)return`has-${t}-gradient-background`}(m),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":y||(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)||m||(null==f||null===(r=f.color)||void 0===r?void 0:r.gradient),"has-link-color":(0,c.Kn)(null==f||null===(l=f.elements)||void 0===l?void 0:l.link)?null==f||null===(i=f.elements)||void 0===i||null===(d=i.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?u("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)||{}})}}},8519:(t,e,o)=>{"use strict";o.d(e,{F:()=>n});const n=t=>null===t},7884:(t,e,o)=>{"use strict";o.d(e,{$n:()=>r,Kn:()=>s,Qr:()=>l});var n=o(8519);const s=t=>!(0,n.F)(t)&&t instanceof Object&&t.constructor===Object;function r(t,e){return s(t)&&e in t}const l=t=>0===Object.keys(t).length},2646:(t,e,o)=>{"use strict";o.d(e,{H:()=>n});const n=t=>"string"==typeof t},385:()=>{}}]);