trAvis - MANAGER
Edit File: product-summary-frontend.js
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[76],{18:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return o}));const c=t=>!(t=>null===t)(t)&&t instanceof Object&&t.constructor===Object;function o(t,e){return c(t)&&e in t}},214:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n(100);var c=n(44);const o=()=>c.m>1},215:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var c=n(28),o=n(18);const s=t=>Object(c.a)(t)?JSON.parse(t)||{}:Object(o.a)(t)?t:{}},291:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var c=n(108),o=n(214),s=n(18),r=n(215);const a=t=>{if(!Object(o.a)())return{className:"",style:{}};const e=Object(s.a)(t)?t:{},n=Object(r.a)(e.style);return Object(c.__experimentalUseColorProps)({...e,style:n})}},299:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var c=n(18),o=n(215);const s=t=>{const e=Object(c.a)(t)?t:{},n=Object(o.a)(e.style),s=Object(c.a)(n.typography)?n.typography:{};return{style:{fontSize:e.fontSize?`var(--wp--preset--font-size--${e.fontSize})`:s.fontSize,lineHeight:s.lineHeight,fontWeight:s.fontWeight,textTransform:s.textTransform,fontFamily:e.fontFamily}}}},325:function(t,e,n){"use strict";var c=n(0),o=n(127),s=n(128);const r=t=>{const e=t.indexOf("</p>");return-1===e?t:t.substr(0,e+4)},a=t=>t.replace(/<\/?[a-z][^>]*?>/gi,""),u=(t,e)=>t.replace(/[\s|\.\,]+$/i,"")+e,i=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"…";const c=a(t),o=c.split(" ").splice(0,e).join(" ");return Object(s.autop)(u(o,n))},l=function(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"…";const o=a(t),r=o.slice(0,e);if(n)return Object(s.autop)(u(r,c));const i=r.match(/([\s]+)/g),l=i?i.length:0,p=o.slice(0,e+l);return Object(s.autop)(u(p,c))};e.a=t=>{let{source:e,maxLength:n=15,countType:a="words",className:u="",style:p={}}=t;const f=Object(c.useMemo)(()=>function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"words";const c=Object(s.autop)(t),a=Object(o.count)(c,n);if(a<=e)return c;const u=r(c),p=Object(o.count)(u,n);return p<=e?u:"words"===n?i(u,e):l(u,e,"characters_including_spaces"===n)}(e,n,a),[e,n,a]);return Object(c.createElement)(c.RawHTML,{style:p,className:u},f)}},389:function(t,e){},436:function(t,e,n){"use strict";n.r(e);var c=n(0),o=n(5),s=n.n(o),r=n(325),a=n(44),u=n(47),i=n(291),l=n(299),p=n(132);n(389),e.default=Object(p.withProductDataContext)(t=>{const{className:e}=t,{parentClassName:n}=Object(u.useInnerBlockLayoutContext)(),{product:o}=Object(u.useProductDataContext)(),p=Object(i.a)(t),f=Object(l.a)(t);if(!o)return Object(c.createElement)("div",{className:s()(e,"wc-block-components-product-summary",{[n+"__product-summary"]:n})});const b=o.short_description?o.short_description:o.description;return b?Object(c.createElement)(r.a,{className:s()(e,p.className,"wc-block-components-product-summary",{[n+"__product-summary"]:n}),source:b,maxLength:150,countType:a.n.wordCountType||"words",style:{...p.style,...f.style}}):null})}}]);