Server IP : 162.0.217.223 / Your IP : 216.73.216.168 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/yeslicense.org/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:()=>S});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(6724),y=o(790);const f=e=>{const{aspectRatio:t,height:o,width:s,scale:a}=e;return{height:o,width:s,objectFit:a,aspectRatio:t}},b=e=>{const{showFullSize:t,...o}=e,s=t?(0,c.getSetting)("placeholderImgSrcFullSize",c.PLACEHOLDER_IMG_SRC):c.PLACEHOLDER_IMG_SRC;return(0,y.jsx)("img",{...o,src:s,alt:"",width:void 0,height:void 0})},k=({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:o?l:n,...o&&{srcSet:d,sizes:u}},g=f({height:c,width:a,scale:r,aspectRatio:i});return e?(0,y.jsx)("img",{style:g,"data-testid":"product-image",...m}):(0,y.jsx)(b,{showFullSize:o,style:g})},w=e=>{const{product:t}=e;return!(0,p.isEmpty)(t)&&(0,h.S)(e.showSaleBadge)},S=(0,l.withProductDataContext)((e=>{const{aspectRatio:t,children:o,className:c,height:l,imageId:h,imageSizing:S=g.e.SINGLE,scale:x,showProductLink:_=!0,style:v,width:C,isAdmin:N,product:R,isResolving:j,...A}=e,z=(0,n.p)(e),{parentClassName:F}=(0,i.useInnerBlockLayoutContext)(),{product:L,isLoading:B}=(0,i.useProductDataContext)({isAdmin:N,product:R,isResolving:j}),{dispatchStoreEvent:P}=(0,d.y)(),D=S!==g.e.THUMBNAIL,I=(0,p.objectHasProp)(v,"dimensions")&&(0,p.objectHasProp)(v.dimensions,"aspectRatio")&&(0,p.isString)(v.dimensions.aspectRatio)?v.dimensions.aspectRatio:t,$=`wc-block-components-product-image--aspect-ratio-${I?I.replace("/","-"):"auto"}`;if(!L?.id){const e=f({height:l,width:C,scale:x,aspectRatio:I});return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:(0,r.A)(c,"wc-block-components-product-image",$,{[`${F}__product-image`]:F},z.className),style:z.style,children:(0,y.jsx)(b,{showFullSize:D,style:e})}),o]})}const E=((e,t)=>e.images.length?t&&e.images.find((e=>e.id===t))||e.images[0]:null)(L,h);E&&(E.alt=E.alt||(0,u.decodeEntities)(L.name));const O=_?"a":s.Fragment,H=L?.name? // translators: %s is the product name. // translators: %s is the product name. (0,a.sprintf)((0,a.__)("Link to %s","woocommerce"),L.name):"",T={href:_?L?.permalink:void 0,..._&&{"aria-label":H,onClick:()=>{P("product-view-link",{product:L})}}};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:(0,r.A)(c,"wc-block-components-product-image",$,{[`${F}__product-image`]:F},z.className),style:z.style,children:[w(e)&&(0,y.jsx)(m.default,{align:e.saleBadgeAlign||"right",...A}),(0,y.jsx)(O,{..._&&T,children:(0,y.jsx)(k,{fallbackAlt:(0,u.decodeEntities)(L.name),image:E,loaded:!B,showFullSize:D,width:C,height:l,scale:x,aspectRatio:I})})]}),o]})}))},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)},6724:(e,t,o)=>{"use strict";o.d(t,{S:()=>s});const s=e=>void 0===e||e},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,isDescendentOfSingleProductTemplate:n}=e,d=(0,i.p)(e),{parentClassName:u}=(0,c.useInnerBlockLayoutContext)(),{product:p}=(0,c.useProductDataContext)();if(!(p.id&&p.on_sale||n))return null;const m="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,m,{[`${u}__product-onsale`]:u},d.className),style:d.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":["imageId","postId","query","queryId"],"keywords":["WooCommerce"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}')}}]);