File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/product-rating-counter-frontend.js.tar
wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/product-rating-counter-frontend.js 0000644 00000012267 15154763560 0040217 0 ustar 00 var/www/vhosts/uyarreklam.com.tr/httpdocs (window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[81,79],{119:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const o=t=>"number"==typeof t},19:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return c}));var o=n(37);const r=t=>!Object(o.a)(t)&&t instanceof Object&&t.constructor===Object;function c(t,e){return r(t)&&e in t}},28:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const o=t=>"string"==typeof t},287:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o=function(){return o=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},288:function(t,e,n){"use strict";function o(t){return t.toLowerCase()}n.d(e,"a",(function(){return i}));var r=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],c=/[^A-Z0-9]+/gi;function i(t,e){void 0===e&&(e={});for(var n=e.splitRegexp,i=void 0===n?r:n,l=e.stripRegexp,a=void 0===l?c:l,u=e.transform,d=void 0===u?o:u,f=e.delimiter,b=void 0===f?" ":f,v=s(s(t,i,"$1\0$2"),a,"\0"),p=0,m=v.length;"\0"===v.charAt(p);)p++;for(;"\0"===v.charAt(m-1);)m--;return v.slice(p,m).split("\0").map(d).join(b)}function s(t,e,n){return e instanceof RegExp?t.replace(e,n):e.reduce((function(t,e){return t.replace(e,n)}),t)}},291:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var o=n(287),r=n(288);function c(t,e){return void 0===e&&(e={}),function(t,e){return void 0===e&&(e={}),Object(r.a)(t,Object(o.a)({delimiter:"."},e))}(t,Object(o.a)({delimiter:"-"},e))}},293:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n(4),r=n.n(o),c=n(19),i=n(28),s=n(291),l=n(131);function a(t={}){const e={};return Object(l.getCSSRules)(t,{selector:""}).forEach((t=>{e[t.key]=t.value})),e}function u(t,e){return t&&e?`has-${Object(s.a)(e)}-${t}`:""}const d=t=>{const e=(t=>{const e=Object(c.a)(t)?t:{style:{}};let n=e.style;return Object(i.a)(n)&&(n=JSON.parse(n)||{}),Object(c.a)(n)||(n={}),{...e,style:n}})(t),n=function(t){var e,n,o,i,s,l,d;const{backgroundColor:f,textColor:b,gradient:v,style:p}=t,m=u("background-color",f),g=u("color",b),y=function(t){if(t)return`has-${t}-gradient-background`}(v),O=y||(null==p||null===(e=p.color)||void 0===e?void 0:e.gradient);return{className:r()(g,y,{[m]:!O&&!!m,"has-text-color":b||(null==p||null===(n=p.color)||void 0===n?void 0:n.text),"has-background":f||(null==p||null===(o=p.color)||void 0===o?void 0:o.background)||v||(null==p||null===(i=p.color)||void 0===i?void 0:i.gradient),"has-link-color":Object(c.a)(null==p||null===(s=p.elements)||void 0===s?void 0:s.link)?null==p||null===(l=p.elements)||void 0===l||null===(d=l.link)||void 0===d?void 0:d.color:void 0}),style:a({color:(null==p?void 0:p.color)||{}})}}(e),o=function(t){var e;const n=(null===(e=t.style)||void 0===e?void 0:e.border)||{};return{className:function(t){var e;const{borderColor:n,style:o}=t,c=n?u("border-color",n):"";return r()({"has-border-color":!!n||!(null==o||null===(e=o.border)||void 0===e||!e.color),[c]:!!c})}(t),style:a({border:n})}}(e),s=function(t){var e;return{className:void 0,style:a({spacing:(null===(e=t.style)||void 0===e?void 0:e.spacing)||{}})}}(e),l=(t=>{const e=Object(c.a)(t.style.typography)?t.style.typography:{},n=Object(i.a)(e.fontFamily)?e.fontFamily:"";return{className:t.fontFamily?`has-${t.fontFamily}-font-family`:n,style:{fontSize:t.fontSize?`var(--wp--preset--font-size--${t.fontSize})`:e.fontSize,fontStyle:e.fontStyle,fontWeight:e.fontWeight,letterSpacing:e.letterSpacing,lineHeight:e.lineHeight,textDecoration:e.textDecoration,textTransform:e.textTransform}}})(e);return{className:r()(l.className,n.className,o.className,s.className),style:{...l.style,...n.style,...o.style,...s.style}}}},37:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const o=t=>null===t},468:function(t,e,n){"use strict";n.r(e),n.d(e,"Block",(function(){return b}));var o=n(0),r=n(1),c=n(4),i=n.n(c),s=n(59),l=n(293),a=n(144),u=n(119),d=n(283);const f=t=>{const{reviews:e}=t,n=e?Object(r.sprintf)(/* translators: %s is referring to the total of reviews for a product */
Object(r._n)("(%s customer review)","(%s customer reviews)",e,"woocommerce"),e):Object(r.__)("(X customer reviews)","woocommerce");return Object(o.createElement)("span",{className:"wc-block-components-product-rating-counter__reviews_count"},Object(o.createElement)(d.Disabled,null,Object(o.createElement)("a",{href:"/"},n)))},b=t=>{const{textAlign:e,shouldDisplayMockedReviewsWhenProductHasNoReviews:n}=t,r=Object(l.a)(t),{parentClassName:c}=Object(s.useInnerBlockLayoutContext)(),{product:a}=Object(s.useProductDataContext)(),d=(t=>{const e=Object(u.a)(t.review_count)?t.review_count:parseInt(t.review_count,10);return Number.isFinite(e)&&e>0?e:0})(a),b=i()(r.className,"wc-block-components-product-rating-counter",{[`${c}__product-rating`]:c,[`has-text-align-${e}`]:e});if(d||n)return Object(o.createElement)("div",{className:b,style:r.style},Object(o.createElement)("div",{className:"wc-block-components-product-rating-counter__container"},Object(o.createElement)(f,{reviews:d})))};e.default=Object(a.withProductDataContext)(b)}}]);