uawdijnntqw1x1x1
IP : 216.73.216.109
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
www
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
blocks
/
product-summary-frontend.js
/
/
(globalThis.webpackChunkwebpackWcBlocksFrontendJsonp=globalThis.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[895],{4001:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>T});var o=s(7723),r=s(4921),n=s(6087),c=s(3240),a=s.n(c);const l=["a","b","em","i","strong","p","br"],i=["target","href","rel","name","download"],u=(t,e)=>{const s=e?.tags||l,o=e?.attr||i;return a().sanitize(t,{ALLOWED_TAGS:s,ALLOWED_ATTR:o})};var d=s(6004);const m=t=>t.replace(/<\/?[a-z][^>]*?>/gi,""),p=(t,e)=>t.replace(/[\s|\.\,]+$/i,"")+e;var h=s(9446);var y=s(790);const g=["a","b","em","i","strong","p","br","ul","ol","li","h1","h2","h3","h4","h5","h6","pre","blockquote","img"],f=["target","href","rel","name","download","src","class","alt","style"],b=({source:t,maxLength:e=15,countType:s="words",className:o="",style:r={}})=>{const c=(0,n.useMemo)((()=>((t,e=15,s="words")=>{const o=(0,d.autop)(t);if((0,h.count)(o,s)<=e)return o;const r=(t=>{const e=t.indexOf("</p>");return-1===e?t:t.substr(0,e+4)})(o);return(0,h.count)(r,s)<=e?r:"words"===s?((t,e,s="…",o=!0)=>{const r=m(t),n=r.split(" ").splice(0,e).join(" ");return n===r?o?(0,d.autop)(r):r:o?(0,d.autop)(p(n,s)):p(n,s)})(r,e):((t,e,s=!0,o="…",r=!0)=>{const n=m(t),c=n.slice(0,e);if(c===n)return r?(0,d.autop)(n):n;if(s)return(0,d.autop)(p(c,o));const a=c.match(/([\s]+)/g),l=a?a.length:0,i=n.slice(0,e+l);return r?(0,d.autop)(p(i,o)):p(i,o)})(r,e,"characters_including_spaces"===s)})(t,e,s)),[t,e,s]);return(0,y.jsx)(n.RawHTML,{style:r,className:o,children:u(c,{tags:g,attr:f})})};var k=s(8331),x=s(3993),w=s(2796),N=s(41),S=s(1616);s(3608);const j=t=>{const{className:e,showDescriptionIfEmpty:s,summaryLength:n,showLink:c,linkText:a,isDescendantOfAllProducts:l,isDescendentOfSingleProductTemplate:i,product:u,isAdmin:d}=t,{parentClassName:m}=(0,w.useInnerBlockLayoutContext)(),{product:p}=(0,w.useProductDataContext)({product:u,isAdmin:d}),h=(0,N.p)(t),g=(t=>{const{isDescendantOfAllProducts:e,summaryLength:s,showDescriptionIfEmpty:o,showLink:r}=t;return e&&(0,x.isEmpty)(s)&&(0,x.isEmpty)(o)&&(0,x.isEmpty)(r)})(t),f=g?150:n,S=!g&&c,j=p?((t,e)=>{const{short_description:s,description:o}=t;return s||(e&&o?o:"")})(p,!!g||s):"",T=f||1/0,v="wc-block-components-product-summary";return i?(0,y.jsx)("div",{className:v,children:(0,y.jsx)("p",{children:(0,o.__)("This block displays the product summary and all its customizations.","woocommerce")})}):p?j?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(b,{className:(0,r.A)(e,h.className,v,{[`${m}__product-summary`]:m}),source:j,maxLength:T,countType:k.r7.wordCountType||"words",style:h.style}),l&&S&&a&&p?.permalink?(0,y.jsx)("a",{href:`${p.permalink}#tab-description`,children:a}):null]}):l?null:(0,y.jsx)("div",{className:v,children:(0,y.jsx)("p",{children:(0,o.__)("No product summary to show.","woocommerce")})}):(0,y.jsx)("div",{className:(0,r.A)(e,v,{[`${m}__product-summary`]:m})})},T=t=>t.isDescendentOfSingleProductTemplate?(0,y.jsx)(j,{...t}):(0,S.withProductDataContext)(j)(t)},41:(t,e,s)=>{"use strict";s.d(e,{p:()=>i});var o=s(4921),r=s(3993),n=s(7356),c=s(9786);function a(t={}){const e={};return(0,c.getCSSRules)(t,{selector:""}).forEach((t=>{e[t.key]=t.value})),e}function l(t,e){return t&&e?`has-${(0,n.c)(e)}-${t}`:""}const i=t=>{const e=(t=>{const e=(0,r.isObject)(t)?t:{style:{}};let s=e.style;return(0,r.isString)(s)&&(s=JSON.parse(s)||{}),(0,r.isObject)(s)||(s={}),{...e,style:s}})(t),s=function(t){const{backgroundColor:e,textColor:s,gradient:n,style:c}=t,i=l("background-color",e),u=l("color",s),d=function(t){if(t)return`has-${t}-gradient-background`}(n),m=d||c?.color?.gradient;return{className:(0,o.A)(u,d,{[i]:!m&&!!i,"has-text-color":s||c?.color?.text,"has-background":e||c?.color?.background||n||c?.color?.gradient,"has-link-color":(0,r.isObject)(c?.elements?.link)?c?.elements?.link?.color:void 0}),style:a({color:c?.color||{}})}}(e),n=function(t){const e=t.style?.border||{};return{className:function(t){const{borderColor:e,style:s}=t,r=e?l("border-color",e):"";return(0,o.A)({"has-border-color":!!e||!!s?.border?.color,[r]:!!r})}(t),style:a({border:e})}}(e),c=function(t){return{className:void 0,style:a({spacing:t.style?.spacing||{}})}}(e),i=(t=>{const e=(0,r.isObject)(t.style.typography)?t.style.typography:{},s=(0,r.isString)(e.fontFamily)?e.fontFamily:"";return{className:t.fontFamily?`has-${t.fontFamily}-font-family`:s,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}}})(e);return{className:(0,o.A)(i.className,s.className,n.className,c.className),style:{...i.style,...s.style,...n.style,...c.style}}}},3608:()=>{}}]);
/home/batcwwjx/www/wp-content/plugins/woocommerce/assets/client/blocks/product-summary-frontend.js