File "title.js"

Full Path: /home/vantageo/public_html/cache/cache/cache/cache/.wp-cli/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/atomic-block-components/title.js
File size: 3.04 KB
MIME-type: text/plain
Charset: utf-8

(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[18],{176:function(t,e,o){"use strict";var c=o(10),n=o.n(c),r=o(23),a=o.n(r),i=o(0),l=(o(2),o(26)),s=o(7),u=o.n(s);o(222);e.a=function(t){var e=t.className,o=void 0===e?"":e,c=t.disabled,r=void 0!==c&&c,s=t.name,p=t.permalink,b=void 0===p?"":p,d=a()(t,["className","disabled","name","permalink"]),m=u()("wc-block-components-product-name",o);return r?Object(i.createElement)("span",n()({className:m},d),Object(l.decodeEntities)(s)):Object(i.createElement)("a",n()({className:m,href:b},d),Object(l.decodeEntities)(s))}},222:function(t,e){},386:function(t,e,o){"use strict";var c=o(4),n=o.n(c),r=o(14);function a(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);e&&(c=c.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,c)}return o}function i(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?a(Object(o),!0).forEach((function(e){n()(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var l={headingLevel:{type:"number",default:2},productLink:{type:"boolean",default:!0},productId:{type:"number",default:0}};Object(r.o)()&&(l=i(i({},l),{},{align:{type:"string"},color:{type:"string"},customColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"}})),e.a=l},392:function(t,e,o){"use strict";var c=o(4),n=o.n(c),r=o(0),a=(o(2),o(7)),i=o.n(a),l=o(38),s=o(22),u=o(14),p=function(t){var e=t.color,o=t.fontSize;return Object(u.o)()?{color:e,fontSize:o}:{}},b=o(69),d=o(176),m=o(85);o(546),e.a=Object(b.withProductDataContext)((function(t){var e,o,c,a=t.className,b=t.headingLevel,O=void 0===b?2:b,f=t.productLink,j=void 0===f||f,y=t.align,v=t.color,w=t.customColor,g=t.fontSize,k=t.customFontSize,h=Object(l.useInnerBlockLayoutContext)().parentClassName,S=Object(l.useProductDataContext)().product,z=Object(m.a)().dispatchStoreEvent,C="h".concat(O),E=Object(s.getColorClassName)("color",v),N=Object(s.getFontSizeClass)(g),P=i()((e={"has-text-color":v||w,"has-font-size":g||k},n()(e,E,E),n()(e,N,N),e));return S.id?Object(r.createElement)(C,{className:i()(a,"wc-block-components-product-title",(o={},n()(o,"".concat(h,"__product-title"),h),n()(o,"wc-block-components-product-title--align-".concat(y),y&&Object(u.o)()),o))},Object(r.createElement)(d.a,{className:i()(n()({},P,Object(u.o)())),disabled:!j,name:S.name,permalink:S.permalink,rel:j?"nofollow":null,style:p({color:w,fontSize:k}),onClick:function(){z("product-view-link",{product:S})}})):Object(r.createElement)(C,{className:i()(a,"wc-block-components-product-title",(c={},n()(c,"".concat(h,"__product-title"),h),n()(c,"wc-block-components-product-title--align-".concat(y),y&&Object(u.o)()),n()(c,P,Object(u.o)()),c)),style:p({color:w,fontSize:k})})}))},546:function(t,e){},944:function(t,e,o){"use strict";o.r(e);var c=o(942),n=o(392),r=o(386);e.default=Object(c.a)(r.a)(n.a)}}]);