(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[47],{139:function(t,e,c){"use strict";var s=c(0),n=c(51),o=c(292),r=c(109);e.a=({source:t,maxLength:e=15,countType:c="words",className:a="",style:u={}})=>{const i=Object(s.useMemo)((()=>((t,e=15,c="words")=>{const s=Object(n.autop)(t);if(Object(r.count)(s,c)<=e)return s;const a=(t=>{const e=t.indexOf("</p>");return-1===e?t:t.substr(0,e+4)})(s);return Object(r.count)(a,c)<=e?a:"words"===c?Object(o.b)(a,e):Object(o.a)(a,e,"characters_including_spaces"===c)})(t,e,c)),[t,e,c]);return Object(s.createElement)(s.RawHTML,{style:u,className:a},i)}},292:function(t,e,c){"use strict";c.d(e,"b",(function(){return r})),c.d(e,"a",(function(){return a}));var s=c(51);const n=t=>t.replace(/<\/?[a-z][^>]*?>/gi,""),o=(t,e)=>t.replace(/[\s|\.\,]+$/i,"")+e,r=(t,e,c="&hellip;",r=!0)=>{const a=n(t),u=a.split(" ").splice(0,e).join(" ");return u===a?r?Object(s.autop)(a):a:r?Object(s.autop)(o(u,c)):o(u,c)},a=(t,e,c=!0,r="&hellip;",a=!0)=>{const u=n(t),i=u.slice(0,e);if(i===u)return a?Object(s.autop)(u):u;if(c)return Object(s.autop)(o(i,r));const l=i.match(/([\s]+)/g),p=l?l.length:0,b=u.slice(0,e+p);return a?Object(s.autop)(o(b,r)):o(b,r)}},376:function(t,e,c){"use strict";c.r(e);var s=c(0),n=c(5),o=c.n(n),r=c(139),a=c(17),u=c(24),i=c(88),l=c(48);c(410),e.default=Object(l.withProductDataContext)((t=>{const{className:e}=t,{parentClassName:c}=Object(u.useInnerBlockLayoutContext)(),{product:n}=Object(u.useProductDataContext)(),l=Object(i.a)(t);if(!n)return Object(s.createElement)("div",{className:o()(e,"wc-block-components-product-summary",{[`${c}__product-summary`]:c})});const p=n.short_description?n.short_description:n.description;return p?Object(s.createElement)(r.a,{className:o()(e,l.className,"wc-block-components-product-summary",{[`${c}__product-summary`]:c}),source:p,maxLength:150,countType:a.p.wordCountType||"words",style:l.style}):null}))},410:function(t,e){}}]);