????JFIF??x?x????'
Server IP : 104.21.64.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/buyeaa.com/wp-content/plugins/woocommerce/assets/client/blocks/ |
Upload File : |
(globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[]).push([[4232,4442],{3104:(e,t,o)=>{"use strict";o.d(t,{A:()=>b});var s=o(6087),a=o(7723),r=o(4921),c=o(5703),i=o(415),n=o(371),l=o(1616),d=o(7052),u=o(8537),p=o(3993),m=o(3848),g=(o(1189),o(4264)),h=o(790);const y=e=>(0,h.jsx)("img",{...e,src:c.PLACEHOLDER_IMG_SRC,alt:e.alt,width:void 0,height:void 0}),f=({image:e,loaded:t,showFullSize:o,fallbackAlt:s,width:a,scale:r,height:c,aspectRatio:i})=>{const{thumbnail:n,src:l,srcset:d,sizes:u,alt:p}=e||{},m={alt:p||s,hidden:!t,src:n,...o&&{src:l,srcSet:d,sizes:u}},g={height:c,width:a,objectFit:r,aspectRatio:i};return(0,h.jsxs)(h.Fragment,{children:[m.src&&(0,h.jsx)("img",{style:g,"data-testid":"product-image",...m}),!e&&(0,h.jsx)(y,{style:g,alt:m.alt})]})},b=(0,l.withProductDataContext)((e=>{const{className:t,imageSizing:o=g.e.SINGLE,showProductLink:c=!0,showSaleBadge:l,saleBadgeAlign:b="right",height:k,width:w,scale:x,aspectRatio:S,style:_,...C}=e,N=(0,n.p)(e),{parentClassName:v}=(0,i.useInnerBlockLayoutContext)(),{product:j,isLoading:A}=(0,i.useProductDataContext)(),{dispatchStoreEvent:z}=(0,d.y)();if(!j.id)return(0,h.jsx)("div",{className:(0,r.A)(t,"wc-block-components-product-image",{[`${v}__product-image`]:v},N.className),style:N.style,children:(0,h.jsx)(y,{})});const R=!!j.images.length,B=R?j.images[0]:null,L=c?"a":s.Fragment,P=(0,a.sprintf)(/* translators: %s is referring to the product name */ /* translators: %s is referring to the product name */ (0,a.__)("Link to %s","woocommerce"),j.name),D={href:j.permalink,...!R&&{"aria-label":P},onClick:()=>{z("product-view-link",{product:j})}};return(0,h.jsx)("div",{className:(0,r.A)(t,"wc-block-components-product-image",{[`${v}__product-image`]:v},N.className),style:N.style,children:(0,h.jsxs)(L,{...c&&D,children:[!!l&&(0,h.jsx)(m.default,{align:b,...C}),(0,h.jsx)(f,{fallbackAlt:(0,u.decodeEntities)(j.name),image:B,loaded:!A,showFullSize:o!==g.e.THUMBNAIL,width:w,height:k,scale:x,aspectRatio:(0,p.objectHasProp)(_,"dimensions")&&(0,p.objectHasProp)(_.dimensions,"aspectRatio")&&(0,p.isString)(_.dimensions.aspectRatio)?_.dimensions.aspectRatio:S})]})})}))},933:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>c});var s=o(1616),a=o(3104),r=o(7746);const c=(0,s.withFilteredAttributes)(r.attributes)(a.A)},3848:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>d,default:()=>u});var s=o(7723),a=o(4921),r=o(4656),c=o(415),i=o(371),n=o(1616),l=(o(4313),o(790));const d=e=>{const{className:t,align:o}=e,n=(0,i.p)(e),{parentClassName:d}=(0,c.useInnerBlockLayoutContext)(),{product:u}=(0,c.useProductDataContext)();if(!(u.id&&u.on_sale||e.isDescendentOfSingleProductTemplate))return null;const p="string"==typeof o?`wc-block-components-product-sale-badge--align-${o}`:"";return(0,l.jsx)("div",{className:(0,a.A)("wc-block-components-product-sale-badge",t,p,{[`${d}__product-onsale`]:d},n.className),style:n.style,children:(0,l.jsx)(r.Label,{label:(0,s.__)("Sale","woocommerce"),screenReaderLabel:(0,s.__)("Product on sale","woocommerce")})})},u=(0,n.withProductDataContext)(d)},7052:(e,t,o)=>{"use strict";o.d(t,{y:()=>c});var s=o(2619),a=o(7143),r=o(6087);const c=()=>({dispatchStoreEvent:(0,r.useCallback)(((e,t={})=>{try{(0,s.doAction)(`experimental__woocommerce_blocks-${e}`,t)}catch(e){console.error(e)}}),[]),dispatchCheckoutEvent:(0,r.useCallback)(((e,t={})=>{try{(0,s.doAction)(`experimental__woocommerce_blocks-checkout-${e}`,{...t,storeCart:(0,a.select)("wc/store/cart").getCartData()})}catch(e){console.error(e)}}),[])})},371:(e,t,o)=>{"use strict";o.d(t,{p:()=>i});var s=o(4921),a=o(3993),r=o(219),c=o(17);const i=e=>{const t=(e=>{const t=(0,a.isObject)(e)?e:{style:{}};let o=t.style;return(0,a.isString)(o)&&(o=JSON.parse(o)||{}),(0,a.isObject)(o)||(o={}),{...t,style:o}})(e),o=(0,c.BK)(t),i=(0,c.aR)(t),n=(0,c.fo)(t),l=(0,r.x)(t);return{className:(0,s.A)(l.className,o.className,i.className,n.className),style:{...l.style,...o.style,...i.style,...n.style}}}},219:(e,t,o)=>{"use strict";o.d(t,{x:()=>a});var s=o(3993);const a=e=>{const t=(0,s.isObject)(e.style.typography)?e.style.typography:{},o=(0,s.isString)(t.fontFamily)?t.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:o,style:{fontSize:e.fontSize?`var(--wp--preset--font-size--${e.fontSize})`:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,letterSpacing:t.letterSpacing,lineHeight:t.lineHeight,textDecoration:t.textDecoration,textTransform:t.textTransform}}}},17:(e,t,o)=>{"use strict";o.d(t,{BK:()=>l,aR:()=>d,fo:()=>u});var s=o(4921),a=o(7356),r=o(9786),c=o(3993);function i(e={}){const t={};return(0,r.getCSSRules)(e,{selector:""}).forEach((e=>{t[e.key]=e.value})),t}function n(e,t){return e&&t?`has-${(0,a.c)(t)}-${e}`:""}function l(e){const{backgroundColor:t,textColor:o,gradient:a,style:r}=e,l=n("background-color",t),d=n("color",o),u=function(e){if(e)return`has-${e}-gradient-background`}(a),p=u||r?.color?.gradient;return{className:(0,s.A)(d,u,{[l]:!p&&!!l,"has-text-color":o||r?.color?.text,"has-background":t||r?.color?.background||a||r?.color?.gradient,"has-link-color":(0,c.isObject)(r?.elements?.link)?r?.elements?.link?.color:void 0}),style:i({color:r?.color||{}})}}function d(e){const t=e.style?.border||{};return{className:function(e){const{borderColor:t,style:o}=e,a=t?n("border-color",t):"";return(0,s.A)({"has-border-color":!!t||!!o?.border?.color,[a]:!!a})}(e),style:i({border:t})}}function u(e){return{className:void 0,style:i({spacing:e.style?.spacing||{}})}}},1189:()=>{},4313:()=>{},7746:e=>{"use strict";e.exports=JSON.parse('{"name":"woocommerce/product-image","title":"Product Image","description":"Display the main product image.","category":"woocommerce-product-elements","attributes":{"showProductLink":{"type":"boolean","default":true},"showSaleBadge":{"type":"boolean","default":true},"saleBadgeAlign":{"type":"string","default":"right"},"imageSizing":{"type":"string","default":"single"},"productId":{"type":"number","default":0},"isDescendentOfQueryLoop":{"type":"boolean","default":false},"isDescendentOfSingleProductBlock":{"type":"boolean","default":false},"width":{"type":"string"},"height":{"type":"string"},"scale":{"type":"string","default":"cover"},"aspectRatio":{"type":"string"}},"supports":{"interactivity":{"clientNavigation":true},"html":false,"__experimentalBorder":{"radius":true,"__experimentalSkipSerialization":true},"typography":{"fontSize":true,"__experimentalSkipSerialization":true},"spacing":{"margin":true,"padding":true},"dimensions":{"aspectRatio":true,"__experimentalSkipSerialization":true},"__experimentalSelector":".wc-block-components-product-image"},"ancestor":["woocommerce/all-products","woocommerce/single-product","woocommerce/product-template","core/post-template"],"usesContext":["query","queryId","postId"],"keywords":["WooCommerce"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}')}}]);