%PDF- %PDF-
Mini Shell

Mini Shell

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

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

Zerion Mini Shell 1.0