%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tradesc/www/relax/wp-content/plugins/woocommerce/assets/client/blocks/
Upload File :
Create Path :
Current File : /home/tradesc/www/relax/wp-content/plugins/woocommerce/assets/client/blocks/product-sku-frontend.js

(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[724],{3975:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>u});var s=l(1609),o=l(851),n=l(2796),r=l(1616),a=l(3249),c=l(4715);l(7663);const i=({setAttributes:e,parentClassName:t,sku:l,className:n,style:r,prefix:a,suffix:i})=>(0,s.createElement)("div",{className:(0,o.A)(n,{[`${t}__product-sku`]:t}),style:r},(0,s.createElement)(c.RichText,{tagName:"span",placeholder:"Prefix",value:a,onChange:t=>e({prefix:t})}),(0,s.createElement)("strong",null,l),(0,s.createElement)(c.RichText,{tagName:"span",placeholder:"Suffix",value:i,onChange:t=>e({suffix:t})})),u=(0,r.withProductDataContext)((e=>{const{className:t}=e,l=(0,a.p)(e),{parentClassName:r}=(0,n.useInnerBlockLayoutContext)(),{product:c}=(0,n.useProductDataContext)(),u=c.sku;return e.isDescendentOfSingleProductTemplate?(0,s.createElement)(i,{setAttributes:e.setAttributes,parentClassName:r,className:t,sku:"Product SKU",prefix:e.prefix,suffix:e.suffix}):u?(0,s.createElement)(i,{setAttributes:e.setAttributes,className:t,parentClassName:r,sku:u,prefix:e.prefix,suffix:e.suffix,...e.isDescendantOfAllProducts&&{className:(0,o.A)(t,"wc-block-components-product-sku wp-block-woocommerce-product-sku",l.className),style:{...l.style}}}):null}))},3249:(e,t,l)=>{"use strict";l.d(t,{p:()=>i});var s=l(851),o=l(3993),n=l(1194),r=l(9786);function a(e={}){const t={};return(0,r.getCSSRules)(e,{selector:""}).forEach((e=>{t[e.key]=e.value})),t}function c(e,t){return e&&t?`has-${(0,n.c)(t)}-${e}`:""}const i=e=>{const t=(e=>{const t=(0,o.isObject)(e)?e:{style:{}};let l=t.style;return(0,o.isString)(l)&&(l=JSON.parse(l)||{}),(0,o.isObject)(l)||(l={}),{...t,style:l}})(e),l=function(e){var t,l,n,r,i,u,d;const{backgroundColor:f,textColor:m,gradient:p,style:y}=e,v=c("background-color",f),g=c("color",m),k=function(e){if(e)return`has-${e}-gradient-background`}(p),b=k||(null==y||null===(t=y.color)||void 0===t?void 0:t.gradient);return{className:(0,s.A)(g,k,{[v]:!b&&!!v,"has-text-color":m||(null==y||null===(l=y.color)||void 0===l?void 0:l.text),"has-background":f||(null==y||null===(n=y.color)||void 0===n?void 0:n.background)||p||(null==y||null===(r=y.color)||void 0===r?void 0:r.gradient),"has-link-color":(0,o.isObject)(null==y||null===(i=y.elements)||void 0===i?void 0:i.link)?null==y||null===(u=y.elements)||void 0===u||null===(d=u.link)||void 0===d?void 0:d.color:void 0}),style:a({color:(null==y?void 0:y.color)||{}})}}(t),n=function(e){var t;const l=(null===(t=e.style)||void 0===t?void 0:t.border)||{};return{className:function(e){var t;const{borderColor:l,style:o}=e,n=l?c("border-color",l):"";return(0,s.A)({"has-border-color":!!l||!(null==o||null===(t=o.border)||void 0===t||!t.color),[n]:!!n})}(e),style:a({border:l})}}(t),r=function(e){var t;return{className:void 0,style:a({spacing:(null===(t=e.style)||void 0===t?void 0:t.spacing)||{}})}}(t),i=(e=>{const t=(0,o.isObject)(e.style.typography)?e.style.typography:{},l=(0,o.isString)(t.fontFamily)?t.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:l,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}}})(t);return{className:(0,s.A)(i.className,l.className,n.className,r.className),style:{...i.style,...l.style,...n.style,...r.style}}}},7663:()=>{}}]);

Zerion Mini Shell 1.0